query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
cdb817fbb14d473e347ed59a9695b84b
returns name who raised insuff
[ { "docid": "445448a792df22c661da6ca2631b6098", "score": "0.5300847", "text": "public String getraisedBy() {\r\n\t\treturn super\r\n\t\t\t\t.getText(\"ctl00_ContentPlaceHolder1_rdmHistoryPopup1_C_grdInsuffHistory_ctl00_ctl04_lblRaisedBy\")\r\n\t\t\t\t.trim();\r\n\t}", "title": "" } ]
[ { "docid": "a81478dd16b267beafc5dbb9dd14336c", "score": "0.6001489", "text": "SitName getSituationName();", "title": "" }, { "docid": "89d73967dd9b9f8ba661cad7fbec44d6", "score": "0.59530884", "text": "public String getNameAtIncident();", "title": "" }, { "docid": "43d3e77b46a51486aa6c66f837de91c1", "score": "0.592865", "text": "@Override\r\n\tpublic String getInsuranceName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2a1bdb7d39dc8c184b6863b12582f51b", "score": "0.5856474", "text": "@Override\r\n\tpublic String getInsuranceName() {\n\t\treturn \"Jivan Bima\";\r\n\t}", "title": "" }, { "docid": "d926ff41a16e98cbd8908fb72b27c16b", "score": "0.57375544", "text": "public String getIllnessName(){\n return illness;\n }", "title": "" }, { "docid": "ce5111dab0029eebe2fddfaa8c933e34", "score": "0.5725853", "text": "String getSUPname();", "title": "" }, { "docid": "8ae32bfc387fce85cee54f7ac88a7edb", "score": "0.5552945", "text": "@Override\n\tpublic String getName() {\n\t\treturn this.befehl;\n\t}", "title": "" }, { "docid": "46f71cd2937650c6f87d46179571c81e", "score": "0.5444997", "text": "java.lang.String getInviterName();", "title": "" }, { "docid": "46f71cd2937650c6f87d46179571c81e", "score": "0.5444997", "text": "java.lang.String getInviterName();", "title": "" }, { "docid": "62f2c449fff3bfa86b5ca5a96a9af1cb", "score": "0.53803754", "text": "public String getInsure() {\r\n return insure;\r\n }", "title": "" }, { "docid": "e52211b3fd1552d86542a2aa749bf1d8", "score": "0.5315332", "text": "String getAlarmFaultMember();", "title": "" }, { "docid": "91822d47b8f7f6072a4268671a51d75e", "score": "0.52992", "text": "String getObserverName();", "title": "" }, { "docid": "d372b52b54e54f641d591485312b75b7", "score": "0.52786654", "text": "@Override\n public String getUnlocalizedName(ItemStack stack)\n {\n int i = stack.getMetadata();\n return super.getUnlocalizedName() + \".\" + EnumDyeColor.byDyeDamage(i).getUnlocalizedName();\n }", "title": "" }, { "docid": "ff39bc52b38efdc512019f53c1b0633c", "score": "0.5266274", "text": "public String getName() {\n\tLOGGER.fine(\"name of expense \" + name + \" returned\");\n\treturn name;\n }", "title": "" }, { "docid": "cd95a9b3d3f6b943734da627aaf169df", "score": "0.526502", "text": "ENAME getEname();", "title": "" }, { "docid": "9ee01308b0589ced4976640c983006fe", "score": "0.5263034", "text": "Name getExceptionName();", "title": "" }, { "docid": "e5c56d31a4f3045596da96466d7d56ff", "score": "0.5260067", "text": "public String getUnlocalizedName(ItemStack p_77667_1_)\n {\n int i = p_77667_1_.getItemDamage();\n\n if (i < 0 || i >= this.field_150940_b.func_150125_e().length)\n {\n i = 0;\n }\n\n return super.getUnlocalizedName() + \".\" + this.field_150940_b.func_150125_e()[i];\n }", "title": "" }, { "docid": "6672cd1ad8d2664c3b74d6e8ffcba8e0", "score": "0.52303034", "text": "public String getEnterprisename() {\r\n return enterprisename;\r\n }", "title": "" }, { "docid": "2328ba6a5969a36eabfcd680ccdc41fc", "score": "0.5210754", "text": "@Override\n\tpublic java.lang.String getOfficerName() {\n\t\treturn _resultHistoryMinistry.getOfficerName();\n\t}", "title": "" }, { "docid": "f02debbf12a55704abf3d3ed2748e60b", "score": "0.5204044", "text": "@Override\r\n\tpublic String getDescription() {\n\t\treturn \"Alerts the player when a user holding an incantation is nearby\";\r\n\t}", "title": "" }, { "docid": "ab4699b6d561fa5ca85e1330be90f1b9", "score": "0.51940846", "text": "public String getName(long mid) throws ITrustException {\n\t\tif(mid < 7000000000L)\n\t\t\treturn patientDAO.getName(mid);\n\t\telse\n\t\t\treturn personnelDAO.getName(mid);\n\t}", "title": "" }, { "docid": "04fd65d742e39bdc3d8142cdd38bf370", "score": "0.5190388", "text": "public String getSname();", "title": "" }, { "docid": "f1f1eec3d13b8c35ab160f66c3dbd589", "score": "0.5188899", "text": "@Override\n\tpublic String getEntityName() \n\t{\n\t\tString s = type.getAltName() + \".\" + underlingName;\n\t\treturn StatCollector.translateToLocal(\"entity.\" + s + \".name\");\n\t}", "title": "" }, { "docid": "1a0ee65feedcbcec37a7322dd80e12ca", "score": "0.5187219", "text": "@Override\n public String catchName() {\n return aioStaffPlanDetailId.toString();\n }", "title": "" }, { "docid": "d6647ede682a12dcd1b31b9d549eed8a", "score": "0.5183352", "text": "public String getFaultName();", "title": "" }, { "docid": "a13a37ca109d542878609b2651e1c763", "score": "0.51593226", "text": "String getReason();", "title": "" }, { "docid": "a13a37ca109d542878609b2651e1c763", "score": "0.51593226", "text": "String getReason();", "title": "" }, { "docid": "21c3e078e4c990db580c5a48717298a2", "score": "0.51592916", "text": "public String getName()\r\n {\r\n return event.header.fixed_header.event_name;\r\n }", "title": "" }, { "docid": "0d890c8c0e00129b84b6fb803635e855", "score": "0.51252234", "text": "public String getPatientName(long mid) throws ITrustException {\n\t\treturn patientDAO.getName(mid);\n\t}", "title": "" }, { "docid": "5cc9081e5561e86d7f6da1714d0f1073", "score": "0.5112591", "text": "public String getHireEvntFlg()\n {\n \treturn mHireEvntFlg;\n }", "title": "" }, { "docid": "adbe3f84521baabf12e3bcad1c35f75e", "score": "0.5108713", "text": "public String getBeeName() {\n return bee.getName()+\"-\"+getEventHash();\n }", "title": "" }, { "docid": "c06a88847aa6af773681ead57b59174b", "score": "0.5098616", "text": "String getDeathCause();", "title": "" }, { "docid": "c078c747bced9c9962d0b4b1de2bb672", "score": "0.5091958", "text": "public void setIllnessName(String ill){\n illness = ill;\n }", "title": "" }, { "docid": "2d2f012a20b04977972d178963bb9fb3", "score": "0.5084579", "text": "@Override\n\tpublic String getName() {\n\t\treturn SSEType.CANCELFOLLOW.name();\n\t}", "title": "" }, { "docid": "a22e64dcd9dbb9f1dfe9acd417bf0edf", "score": "0.5073735", "text": "@Override\n\t\tpublic String getStateName() {\n\t\t\treturn UNCONFIRMED_NAME;\n\t\t}", "title": "" }, { "docid": "aa1cec2e0ba73ec38c238cb7dfb29df3", "score": "0.5041649", "text": "public String getHurtSound() {\n if (dragon.isEgg()) {\n return \"mob.zombie.wood\";\n } else {\n return dragon.getBreed().getHurtSound(dragon);\n }\n }", "title": "" }, { "docid": "44b55a080b544438845a66ac0c7d54e2", "score": "0.50340694", "text": "int getReason();", "title": "" }, { "docid": "5c4ae499cddbf52981cfa5592038d926", "score": "0.50323564", "text": "protected String getHurtSound()\n {\n return \"mob.zombie.hurt\";\n }", "title": "" }, { "docid": "39e86d31a8abfa43ee117587a37047ba", "score": "0.50284076", "text": "public void setNameAtIncident(String name);", "title": "" }, { "docid": "ab11ddb4d75fd6f9ee9eef5916c31d4f", "score": "0.5028057", "text": "public void tellPreyName() {\n Iterator<HuntPlayer> i = players.iterator();\n\n while (i.hasNext()) {\n HuntPlayer p = i.next();\n p.tellPreyName();\n }\n }", "title": "" }, { "docid": "6ec2864a32279a1a56c8467eff797ba0", "score": "0.5015567", "text": "protected SoundEvent func_184601_bQ(DamageSource damageSourceIn) { return SoundsTC.tentacle; }", "title": "" }, { "docid": "488f45144fd5ac2448cbe5c8890f2ce6", "score": "0.5006322", "text": "public String getExemptReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "8d544960cdd25364addda406c21e7d55", "score": "0.49907824", "text": "java.lang.String getReason();", "title": "" }, { "docid": "baad56f62d76e84e89ea210fc76f6b2d", "score": "0.49823248", "text": "public String getReason();", "title": "" }, { "docid": "70a598fed634cabf6f8a4c8192080dda", "score": "0.49734023", "text": "public String getIlceName() throws Exception {\n\t\treturn ilceName;\r\n\t}", "title": "" }, { "docid": "74f09d7b25826992ed55762cae4d8c64", "score": "0.49726924", "text": "String getCheckName();", "title": "" }, { "docid": "46e5b4595d4e0bbab9acf5efe4d39796", "score": "0.49678603", "text": "@Override\n\tpublic String getChiefName() {\n\t\treturn \"dummytribemember\";\n\t}", "title": "" }, { "docid": "65184389d579d63a1811fa1918df3d62", "score": "0.49644145", "text": "@Nonnull\n String getReasonerName();", "title": "" }, { "docid": "012183fd5a228a49e258599619ca0ad6", "score": "0.4958316", "text": "@Override\n\tpublic String getName() {\n\t\treturn \"Ultimate life stealer\";\n\t}", "title": "" }, { "docid": "28150ba1eac06c5e6f9fec9cbaea5ffe", "score": "0.49533913", "text": "String getWhoEstablished();", "title": "" }, { "docid": "f3145041f477beec3d2a1ba35cf820ef", "score": "0.49491328", "text": "String getHuman();", "title": "" }, { "docid": "70911622a2900d2a62cfd3024676016f", "score": "0.49384892", "text": "public String getBadName()\n {\n return badSchoolName;\n }", "title": "" }, { "docid": "46e9052a01296eb34b3b1e68dad21dd1", "score": "0.49355006", "text": "public String getOnuLabel() {\n return onuLabel;\n }", "title": "" }, { "docid": "46e9052a01296eb34b3b1e68dad21dd1", "score": "0.49355006", "text": "public String getOnuLabel() {\n return onuLabel;\n }", "title": "" }, { "docid": "96cfbf6ca8a32ddadb056b46afb6d8c3", "score": "0.49334204", "text": "public String getIllness() {\n\t\treturn this.illness;\n\t}", "title": "" }, { "docid": "1e4298a6fcd1dfab48b160d2af8d74cb", "score": "0.49138632", "text": "String getUsrName();", "title": "" }, { "docid": "a77a795d12c3e1174bca2dbe22bad04a", "score": "0.49015445", "text": "@Override\n\tpublic String getUnlocalizedName(ItemStack p_77667_1_) {\n\t\tfinal int var2 = MathHelper\n\t\t\t\t.clamp_int(p_77667_1_.getItemDamage(), 0, 15);\n\t\treturn super.getUnlocalizedName() + \".\" + field_150923_a[var2];\n\t}", "title": "" }, { "docid": "19141d5301c03f3bea324959957c12c2", "score": "0.4897894", "text": "@Override public String toString(){\n String str = name + \":\" + signal;\n return str;\n }", "title": "" }, { "docid": "a2a2c7e96d6310bf578f8036263d1240", "score": "0.4890126", "text": "public String getOverfolw() {\n\t\treturn overfolw;\n\t}", "title": "" }, { "docid": "5e9e678a9a51958d56f23569439daad0", "score": "0.48882923", "text": "java.lang.String getExtendee();", "title": "" }, { "docid": "71a38fb6e609b964dfa47aee534b2cae", "score": "0.4887406", "text": "public String getInstName() { return instName; }", "title": "" }, { "docid": "6f302ea8b13cc272ad75b45485a97cbf", "score": "0.48848695", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn this.getExamname();\r\n\t}", "title": "" }, { "docid": "7cbdd527b715bc2dd4ab4aff94d1fb9e", "score": "0.48776153", "text": "public String reportedBy();", "title": "" }, { "docid": "3f3e0fb6c870a34075f947a80832cd60", "score": "0.48769116", "text": "private String getPurpose() {\n int size = purposes.length;\n int random = ThreadLocalRandom.current().nextInt(0, size);\n\n return purposes[random];\n }", "title": "" }, { "docid": "2a649ad5ac6f6c4b6b5d71059657907c", "score": "0.48762938", "text": "SubscribableByOthers getExCausedBy();", "title": "" }, { "docid": "a5aad0be770e0ff77a3f8e3907e50476", "score": "0.48707783", "text": "public String getHabitReason() {\n return habitReason;\n }", "title": "" }, { "docid": "3f421d968341561b088ddd7978f186ae", "score": "0.48670876", "text": "public java.lang.String getInverseName( );", "title": "" }, { "docid": "92afd49b589d226f878b7ea7cd07eba4", "score": "0.4865879", "text": "String getDisplayName();", "title": "" }, { "docid": "92afd49b589d226f878b7ea7cd07eba4", "score": "0.4865879", "text": "String getDisplayName();", "title": "" }, { "docid": "92afd49b589d226f878b7ea7cd07eba4", "score": "0.4865879", "text": "String getDisplayName();", "title": "" }, { "docid": "92afd49b589d226f878b7ea7cd07eba4", "score": "0.4865879", "text": "String getDisplayName();", "title": "" }, { "docid": "92afd49b589d226f878b7ea7cd07eba4", "score": "0.4865879", "text": "String getDisplayName();", "title": "" }, { "docid": "92afd49b589d226f878b7ea7cd07eba4", "score": "0.4865879", "text": "String getDisplayName();", "title": "" }, { "docid": "0d45d8217258483a2d5d4ef21fbe8a1b", "score": "0.48637477", "text": "java.lang.String getScientificname();", "title": "" }, { "docid": "58bec3b8e822faa92858d23e96703030", "score": "0.48610264", "text": "Text getDisplayName();", "title": "" }, { "docid": "0958093d88797a39897638805824dfb4", "score": "0.48586324", "text": "protected String displayName () {\n try {\n return Introspector.getBeanInfo (getClass ()).getBeanDescriptor ().getDisplayName ();\n } catch (Exception e) {\n // Catching IntrospectionException, but also maybe NullPointerException...?\n ErrorManager.getDefault ().notify (ErrorManager.INFORMATIONAL, e);\n return getClass ().getName ();\n }\n }", "title": "" }, { "docid": "1bbc46ba8bc011a3d52d94170a662f90", "score": "0.48580617", "text": "public String getName() {\r\n return this.ingredient;\r\n }", "title": "" }, { "docid": "11e4d89040d057aebc2f385b6c737049", "score": "0.4857735", "text": "public java.lang.String getOffhireno () {\n\t\treturn offhireno;\n\t}", "title": "" }, { "docid": "5124aabcf38ee29fdbded0c9394f9767", "score": "0.4851203", "text": "public String getName() {\n\t\treturn nameEvent;\n\t}", "title": "" }, { "docid": "3eedc4ff26a69df02bef7931617abb2c", "score": "0.48511186", "text": "String getSelfIntroduce();", "title": "" }, { "docid": "65db40b068d132c8a0da55ac2d8c0a42", "score": "0.48505262", "text": "@Override\n\tpublic String hunt() {\n\t\treturn getType()+\" is underwater hunter\";\n\t}", "title": "" }, { "docid": "eb24af6b68d6f118ac679802e81c74b2", "score": "0.48489863", "text": "public String getLowResName() {\n return lowResName; \n }", "title": "" }, { "docid": "91e21addff6f916206ae05683da8ce0b", "score": "0.4847309", "text": "private String getIntroducerUIN(String intoducerRid) {\n\t\tList<DemographicInfoDto> demographicDedupeDtoList = packetInfoManager.findDemoById(intoducerRid);\n\t\tif (!demographicDedupeDtoList.isEmpty()) {\n\t\t\treturn demographicDedupeDtoList.get(0).getUin();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "866c191c5ffe49d9beb58655ef382dcc", "score": "0.48463523", "text": "public String getName() {\n\t\treturn \"Sucess\";\n\t}", "title": "" }, { "docid": "9a7af350f94c8dcc83a9faa73dccaf82", "score": "0.48368627", "text": "EntityName getEntityName();", "title": "" }, { "docid": "d6732e7890d94bffcaafa18578c292a1", "score": "0.48354098", "text": "@Override\n\tString tell() {\n\t\treturn \"i tell you to do this\";\n\t}", "title": "" }, { "docid": "3229c693b2ac37aae357e1bd187662f1", "score": "0.48279667", "text": "String getWhen();", "title": "" }, { "docid": "38f9e73fd4a52422c262f09483134557", "score": "0.4826133", "text": "String getNameUsage();", "title": "" }, { "docid": "03abcfe64ffa5ccfdea8026c8ffc0460", "score": "0.48245707", "text": "public java.lang.String getOnhireno () {\n\t\treturn onhireno;\n\t}", "title": "" }, { "docid": "5e57e239af76d314e7b9977dd0d8ed3f", "score": "0.4824505", "text": "java.lang.String getSenderName();", "title": "" }, { "docid": "8cee12530170aa36f59bcc89026519cf", "score": "0.48244354", "text": "public String getEventName()\n {\n return TicketSystem.events.get(eventID).getName();\n }", "title": "" }, { "docid": "724d4afd1b56f6dbd3130d98ad6d7cad", "score": "0.48198596", "text": "public String getName() \n { \n return \"ignoreGameRuleMobGriefing\"; \n }", "title": "" }, { "docid": "50def32976ccbda89646b384cf5ccf5d", "score": "0.48195544", "text": "java.lang.String getUnacceptreason();", "title": "" }, { "docid": "cd62a2f7a61d12fb67466ab3ef4b0a78", "score": "0.48088712", "text": "final public String getDisplayName() {\n \treturn (toString());\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7d16467f73a025da83d5bcd237c4207c", "score": "0.0", "text": "@Override\n\tpublic Ledger getLedger() {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6646134", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5314003d8592219f71035b81985fabc0", "score": "0.64631", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.6461734", "text": "@Override\n\tpublic void comer() {\n\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": "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": "f9de8c9acb961a9d05ed00de5fe361e7", "score": "0.60638905", "text": "@Override\n\tpublic void seRetrage() {\n\t\t\n\t}", "title": "" }, { "docid": "483ae2cb94563f8e11864a532e44b464", "score": "0.606149", "text": "@Override\r\n public void perturb() {\n \r\n }", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.6048755", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "1fd4f5b0b471084e004373c89c1cf248", "score": "0.6040993", "text": "@Override\r\n\tpublic void sen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.60228735", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.6014977", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.6005143", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.59771466", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "f3ea867fdaa4b61546bfc393614a093c", "score": "0.59687567", "text": "@Override\n\tpublic void setingInicial() {\n\t\t\n\t}", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.59549016", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.5943817", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.5926535", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5925673", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.591947", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "8f8a1c1dfa100614be8cac1247e068d5", "score": "0.59192646", "text": "@Override\r\n\t\t\tpublic void work() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.5910928", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3e6e2e657db69bfc88c40c8467801266", "score": "0.5899844", "text": "@Override\r\n\tpublic void ben() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1134c4caabd33b9bbd414763740fddde", "score": "0.5896682", "text": "@Override\n\tpublic void respirar() {\n\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "1dc1426b3b1c079ac18377166a6b34d3", "score": "0.5893354", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "f737e2251cf43d326f43b44297696e55", "score": "0.58891016", "text": "@Override\n\tpublic void patrol() {\n\n\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.5887025", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5879506", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "bafce2e94d56e61baeadcb37047f6035", "score": "0.5858384", "text": "@Override\n\tprotected void postprocess() {\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.5849137", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5848443", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "6ed3e363c02164bd00163fa46e2c48c2", "score": "0.58366287", "text": "@Override\n public void init_moduule() {\n \n }", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\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": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b04ed49986fb3f4321a90ec19ab7f86d", "score": "0.57759553", "text": "@Override\n public void alistar() {\n }", "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": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.57712233", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "683eea6c39ec4e6df90f6be05200559d", "score": "0.5769485", "text": "@Override\r\n public void confer(){\n \r\n }", "title": "" }, { "docid": "728d084a23664ecf9b5c04acb6367b9c", "score": "0.5769356", "text": "@Override\r\n\tpublic void descarnsar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.5769273", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5768801", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "3f651ef5a6fad17e313e8da4ea72b6e3", "score": "0.57645357", "text": "@Override\n\tpublic void CT() {\n\t\t\n\t}", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.5759138", "text": "@Override\n public void init()\n {\n \n }", "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": "e634836bc1d61a011e04bfb67a971792", "score": "0.5745885", "text": "@Override\r\n\tpublic void sair() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.57428306", "text": "public void emettreSon() {\n\t\t\r\n\t}", "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": "ac5a7a92eda66d2b7ef40199230fa4af", "score": "0.5731894", "text": "@Override\n\tpublic void arbeiteInPizzeria() {\n\n\t}", "title": "" }, { "docid": "d1c2c284b75d7d46145b6f407496cd96", "score": "0.5725441", "text": "@Override\n\t\tprotected void initParameters() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.57112384", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "216da885329e8d80cdc3490fda895c11", "score": "0.57087225", "text": "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f3e16954465fbae384d88f411211419", "score": "0.56972444", "text": "@Override\r\n public int E_generar() {\r\n return 0;\r\n }", "title": "" }, { "docid": "365a661b2084f764f5e458915ff735ac", "score": "0.56864643", "text": "@Override\n public int getMunition() {\n return 0;\n }", "title": "" }, { "docid": "40539b782464082aab77fae6b047eade", "score": "0.5681723", "text": "@Override\n\tprotected int get_count() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5f628d368579dd40ef68362831006940", "score": "0.56769013", "text": "@Override\n\tpublic void fahreFahrzeug() {\n\n\t}", "title": "" }, { "docid": "5ae17f2516c21590c850e6758048effe", "score": "0.56625473", "text": "@Override\n public int getID()\n {\n return 0;\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.5660459", "text": "public void mo3639d() {\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": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
3a74d38ca4f826052828c40478c0b0ce
Parses a SERVER_ERROR statefully for this instance.
[ { "docid": "b5434f85c23eb61ad0f28d6a13f5cc05", "score": "0.6949927", "text": "private void parseServerErrorHeader()\n {\n this.workUnit = new WorkUnitServerError(this.client, header);\n this.logger.log(Level.DEBUG, \"Parsed header as 'SERVER_ERROR'.\");\n }", "title": "" } ]
[ { "docid": "705339dd06779231b1dc591732a65e64", "score": "0.5950926", "text": "private synchronized Message processError(GameException e) {\r\n Message error = null;\r\n switch (e.getError()) {\r\n case SYSKO:\r\n error = new Message(Message.SYSKO, \"\");\r\n outputPrint(\"Server error : System KO.\");\r\n break;\r\n case PLAYER_EXISTS:\r\n error = new Message(Message.PLAYER_EXISTS, \"\");\r\n outputPrint(\"Server error : Player already exists.\");\r\n break;\r\n case PLAYER_NOT_EXISTS:\r\n error = new Message(Message.PLAYER_NOT_EXISTS, \"\");\r\n outputPrint(\"Server error : Player does not yet exist.\");\r\n break;\r\n case LOGIN_ERROR:\r\n error = new Message(Message.LOGIN_ERROR, \"\");\r\n outputPrint(\"Server error : Login error.\");\r\n break;\r\n case LOGOUT_ERROR:\r\n error = new Message(Message.LOGOUT_ERROR, \"\");\r\n outputPrint(\"Server error : Logout error.\");\r\n break;\r\n case PLAYER_NOT_LOGGED:\r\n error = new Message(Message.PLAYER_NOT_LOGGED, \"\");\r\n outputPrint(\"Server error : The current player does not yet logged.\");\r\n break;\r\n case LOAD_GAME_LIST_ERROR:\r\n error = new Message(Message.LOAD_GAME_LIST_ERROR, \"\");\r\n outputPrint(\"Server error : The current player does not yet any plays saved on the server.\");\r\n break;\r\n case LOAD_GAME_ERROR:\r\n error = new Message(Message.LOAD_GAME_ERROR, \"\");\r\n outputPrint(\"Server error : The current player can not load play saved on the server.\");\r\n break;\r\n case XML_FILE_NOT_EXISTS:\r\n error = new Message(Message.LOAD_GAME_ERROR, \"\"); // Send this error because the client side must ignore how data are saved on the server. This error concerned a data loading error. (from file or DB, ...)\r\n outputPrint(\"Server error : The current player can not load play saved on the server.\");\r\n break;\r\n case NEW_GAME_ANONYM_ERROR:\r\n error = new Message(Message.NEW_GAME_ANONYM_ERROR, \"\");\r\n outputPrint(\"Server error : The current anonymous player is already logged on the server. No play may be created.\");\r\n break;\r\n case DELETE_ANONYM_ERROR:\r\n error = new Message(Message.DELETE_ANONYM_ERROR, \"\");\r\n outputPrint(\"Server error : The current anonymous player does not yet logged on the server. No play to remove.\");\r\n break;\r\n case GAME_IDENT_ERROR:\r\n error = new Message(Message.GAME_IDENT_ERROR, \"\");\r\n outputPrint(\"Server error : The current player does not yet logged on the server or can't play at specific game.\");\r\n break;\r\n case TILE_EXCHANGE_ERROR:\r\n error = new Message(Message.TILE_EXCHANGE_ERROR, \"\");\r\n outputPrint(\"Server error : Something went wrong with the tile exchange. Don't ask me, I don't know what.\");\r\n break;\r\n }\r\n return error;\r\n }", "title": "" }, { "docid": "ed98f2fe21d9d3c5b4b60f3514178963", "score": "0.59507513", "text": "private void parseClientErrorHeader()\n {\n this.workUnit = new WorkUnitClientError(this.client, header);\n this.logger.log(Level.DEBUG, \"Parsed header as 'CLIENT_ERROR'.\");\n }", "title": "" }, { "docid": "3db79ec3a96fe5628480fa07beed0717", "score": "0.5925873", "text": "public abstract void serverGeneralError(int error);", "title": "" }, { "docid": "6af3c8ac38929965d8ebf5ae8c5c6852", "score": "0.5794226", "text": "private void checkError(String raw)\n\t\t\tthrows ToManyRequests, IOException, LockedIp, InvalidParameters, InvalidCredentials, UnknownServerError, InvalidId, PersistError {\n\t\tMatcher matcher = INLINE_ERROR_FORMAT.matcher(raw);\n\t\tif (matcher.find()) {\n\t\t\tServerBaseResponse response = new ServerBaseResponse();\n\t\t\tresponse.setError(matcher.group(2));\n\t\t\tresponse.setErrorCode(Integer.parseInt(matcher.group(1)));\n\t\t\tcheckError(response);\n\t\t}\n\t}", "title": "" }, { "docid": "86a051df755c6a54f9376dcfbb24a6a3", "score": "0.57101643", "text": "private static ErrorMessage parseError(Throwable throwable) {\n return new ErrorMessage(500, TextUtils.isEmpty(throwable.getMessage()) ? \"Unknown error\" : throwable.getMessage());\n }", "title": "" }, { "docid": "fe461cc0508456a9123d4b8ab9cf59b7", "score": "0.56249374", "text": "private void parseErrorHeader()\n {\n this.workUnit = new WorkUnitError(this.client);\n this.logger.log(Level.DEBUG, \"Parsed header as 'ERROR'.\");\n\n }", "title": "" }, { "docid": "0654e708842fac461b84ccfb99459119", "score": "0.54770017", "text": "private Exception decodeError(Response response) throws IOException {\n Exception bexp = null;\n final byte[] body = readResponse(response);\n\n if (body == null) {\n return bexp;\n }\n\n String rspString = new String(body);\n\n //client side error\n if (response.status() >= 400 && response.status() <= 499) {\n log.debug(\"Decoding client side error.\");\n\n bexp = handleClientException(rspString);\n\n if (bexp == null) {\n bexp = new ClientException(rspString, rspString);\n }\n }\n\n //server side error\n if (response.status() >= 500 && response.status() <= 599) {\n log.debug(\"Decoding server side error.\");\n\n bexp = handleServerException(rspString);\n\n if (bexp == null) {\n bexp = new ServerException(rspString);\n }\n }\n\n return bexp;\n }", "title": "" }, { "docid": "a1394dc6f4647068d82f807d53e5fd2e", "score": "0.5465945", "text": "@Override\n\tpublic Status getStatus() {\n\t\treturn Response.Status.INTERNAL_SERVER_ERROR;\n\t}", "title": "" }, { "docid": "aa4ad1d6441ee47c9d7916d34880b302", "score": "0.54502636", "text": "@Override\n\tpublic void serverDidError(String error) {\n\t\t\n\t}", "title": "" }, { "docid": "e6bfaa6472d666f4a276d22c33f232c3", "score": "0.5448302", "text": "public synchronized void createServerErrorMessage(Exception e) {\n\t\tcreateServerOutputMessage(\"-- ERROR --\", e.getClass().getSimpleName(), e.getMessage());\n\t}", "title": "" }, { "docid": "118e24646475dd6791dc5856d2a6b7f4", "score": "0.544786", "text": "public void serverError(){\n \talert.showAlertDialog(PrototypeCreateIssueActivity.this,\"Network Error\",\"Could Not Establish Connection To Server, Check Network\", false);\n\t\treturn;\n }", "title": "" }, { "docid": "be05cc49eeed52d2e692a5a2e815afbb", "score": "0.53964245", "text": "private void buildErrorResponse(int sc) {\n\t\tString errorContent = \"<HTML><BODY><P>HTTP Error \" + sc + \" - \" + HttpResponse.getStatusMessage(sc) + \"</P></BODY></HTML>\\r\\n\";\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(request.getVersion()+ \" \" + String.valueOf(sc) + \" \" + HttpResponse.getStatusMessage(sc)+\"\\r\\n\");\n\t\tsb.append(\"Date: \" + getServerTime() + \"\\r\\n\");\n\t\tsb.append(\"Content-Type:\" + \"text/html\" + \"\\r\\n\");\n\t\tsb.append(\"Content-Length:\" + String.valueOf(errorContent.getBytes().length) + \"\\r\\n\");\n\t\tsb.append(\"Connection: close\\r\\n\\r\\n\");\n\t\tthis.responseData = errorContent.getBytes();\n\t\tresponseString = sb.toString();\n\t}", "title": "" }, { "docid": "ef7d1b977464a08ab76c54bba8a478ed", "score": "0.53381217", "text": "private static boolean isServerProblem(Object error)\n {\n return (error instanceof ServerError) || (error instanceof AuthFailureError);\n }", "title": "" }, { "docid": "e364382ec08122ef7c6a4c312cd864be", "score": "0.53203166", "text": "private ResponseEntity<?> constructInternalServerException(Exception e) {\r\n\t\treturn new ResponseEntity<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t}", "title": "" }, { "docid": "7af1f2f0381ceac85f6b4895a30d5866", "score": "0.52681524", "text": "private void handleError(JsonObject inputFromServer) {\n logger.info(inputFromServer.toString());\n String errorMessage = inputFromServer.get(\"Fehler\").getAsJsonObject().get(\"Meldung\").getAsString();\n if(errorMessage.equals(\"Farbe bereits vergeben\")){\n try{\n for(Player pl : controller.getPlayers()){\n logger.info(pl.toExtendedString());\n }\n }catch (Exception e){\n logger.info(\"controller.getPlayers doesn't work\");\n }\n sendPlayerInfo(kiName(), colors.get((int) (colors.size() * new Random().nextDouble())));\n sendImReady();\n }\n }", "title": "" }, { "docid": "5a6bfcb29fb5c5015f0fd09c45b615d4", "score": "0.52574974", "text": "public void parseAndThrow(int status, Object response) throws HttpAppException;", "title": "" }, { "docid": "2e04a1a9ed8d3b59af4bb6d20858c8de", "score": "0.5239008", "text": "public InternalServerException() {\n super(ResponseCode.INTERNAL_SERVER_ERROR);\n }", "title": "" }, { "docid": "87e69dfe5889804ea778dd3a135218d2", "score": "0.5231896", "text": "void parseGraphResponseForError(JsonObject graphResponse) {\n\t\tJsonArray errorMessage = graphResponse.getAsJsonArray(\"errors\");\n\t\tif (errorMessage != null && errorMessage.size() >= 1) {\n\t\t\tString errorMessageText = errorMessage.get(0).getAsJsonObject().get(\"message\").getAsString();\n\t\t\tthrow new InsightsJobFailedException(errorMessageText);\n\t\t}\n\t}", "title": "" }, { "docid": "7093e66193b07dea323abde2bc0ce69d", "score": "0.5180689", "text": "protected abstract void handleError(String error);", "title": "" }, { "docid": "579f951652e291adb973a35df757c2e5", "score": "0.5173126", "text": "public ResponseError getError() {\n return this.error;\n }", "title": "" }, { "docid": "c1030a6506907b6c0e8d767f3859c30c", "score": "0.5172512", "text": "private void handleError(Response response)\n {\n String reason = response.getStatusInfo().getReasonPhrase();\n throw new IllegalStateException(reason);\n }", "title": "" }, { "docid": "88a1920cd62e0c1c5a1aa2c0c3643793", "score": "0.51196575", "text": "private static void handleMalformedJsonError(String response, String s, Exception e) {\n Log.e(TAG, s, e);\n Log.d(TAG, \"Json response: \" + response);\n }", "title": "" }, { "docid": "57ab2153b67169e0f3a5cf7b6c64a625", "score": "0.51137084", "text": "private void setErrorState() {\n }", "title": "" }, { "docid": "a69d130a9301c9109fa1ea5f4fdaaadb", "score": "0.5089623", "text": "private static void handleMalformedJsonError(String response, String s) {\n Log.e(TAG, s);\n Log.d(TAG, \"Json response: \" + response);\n }", "title": "" }, { "docid": "da90b9d7148a9d16b4d8c04adc2ecb50", "score": "0.5073737", "text": "java.lang.String getErrorMsg();", "title": "" }, { "docid": "da90b9d7148a9d16b4d8c04adc2ecb50", "score": "0.5073737", "text": "java.lang.String getErrorMsg();", "title": "" }, { "docid": "ccfb6b0aebefaf3d1ccba68198266eac", "score": "0.5072949", "text": "private String getErrorMessageFromStream(ResponseBody errorResponse){\n String message;\n\n try {\n message = errorResponse.string();\n } catch (IOException e) {\n message = UNIVERSAL_ERROR_STRING;\n e.printStackTrace();\n }\n\n JSONObject mainObject;\n try {\n mainObject = new JSONObject(message);\n message = mainObject.getString(\"message\");\n } catch (JSONException e) {\n message = UNIVERSAL_ERROR_STRING;\n e.printStackTrace();\n }\n\n return message;\n }", "title": "" }, { "docid": "10a160f9b7d7db7e27037ccea07d90fa", "score": "0.50560385", "text": "public void handleErrorState(String str) {\n EventBus.getDefault().post(new ShutdownEvent(5, str));\n }", "title": "" }, { "docid": "769e00330514e32f5b72155410c7a0a5", "score": "0.5044675", "text": "@Override\n\tpublic void error(ServerRequest request, ServerResponse response,\n\t\t\tThrowable exception) {\n\n\t}", "title": "" }, { "docid": "bdf1d9433a5d041032fe179c548eddd7", "score": "0.5040999", "text": "public ServerException(String message) {\n super(message);\n }", "title": "" }, { "docid": "88f5a6bf86687ae781f12aa642ffab6a", "score": "0.5025309", "text": "public String getError() {\n return this.error;\n }", "title": "" }, { "docid": "040f501e56c55ec1daa6ffc8004b3d36", "score": "0.5020871", "text": "private String getErrorMessage () {\n\t\tString status = this.getStatus()\n\t\t\t\t.orElseThrow(() -> NoNecessaryKeyException.of(\"GenericException2.rsp.@status\"));\n\t\tif (status.equals(\"fail\")) {\n\t\t\treturn this.getError();\n\t\t} else if (!status.equals(\"ok\")) {\n\t\t\treturn \"Unknown status: \" + status;\n\t\t}\n\t\treturn null; // status ok\n\t}", "title": "" }, { "docid": "d89d6d2bd7330c68c4900284ec70a667", "score": "0.4997948", "text": "java.lang.String getError();", "title": "" }, { "docid": "d89d6d2bd7330c68c4900284ec70a667", "score": "0.4997948", "text": "java.lang.String getError();", "title": "" }, { "docid": "d89d6d2bd7330c68c4900284ec70a667", "score": "0.4997948", "text": "java.lang.String getError();", "title": "" }, { "docid": "47af369e5e1e97457c1b131f0ed2ba64", "score": "0.49972793", "text": "private void recordError(CoreException error) {\n if (errorStatus == null) {\n errorStatus = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.ERROR, getProblemsMessage(), error);\n }\n\n errorStatus.merge(error.getStatus());\n }", "title": "" }, { "docid": "8c9ba16c48b76468ec3baa0542b69f10", "score": "0.49803323", "text": "boolean isServerError();", "title": "" }, { "docid": "4db29e38f32e437e04d7be2fd81bbc55", "score": "0.4979401", "text": "protected void serverFailed (Destination server){\n\t }", "title": "" }, { "docid": "4ad7a60131db19dc894f21c9b06dec2b", "score": "0.4977868", "text": "private void processSecurityErrorResp()\n {\n // Extract the message\n this.reusableSecurityErrorResp.fromBinary(this.bufferSerializer);\n\n if (log.isTraceEnabled())\n {\n log.trace(\"Security error response message received. {}\", this.reusableSecurityErrorResp);\n }\n\n // Verify that the message is for the current instance, ignore in other case\n if (!this.reusableSecurityErrorResp.getTargetVegaInstanceId().equals(this.ownInstanceId))\n {\n return;\n }\n\n // Notify the listener\n this.secRespListener.onSecurityErrorResponseReceived(this.reusableSecurityErrorResp);\n }", "title": "" }, { "docid": "cc3265507f8b1a50e662ff7a64c68be8", "score": "0.49344462", "text": "public void throwExceptionIfNeeded() {\n if (resultReceived && errorCode != null) {\n throw new ObjectServerError(ErrorCode.UNKNOWN,\n String.format(Locale.US, \"Internal error (%d): %s\", errorCode, errorMessage));\n }\n }", "title": "" }, { "docid": "bfee2c5fd31ab27c5a8a0350faefd16d", "score": "0.4927901", "text": "public java.lang.String getErrorResponse() {\n synchronized (monitor()) {\n check_orphaned();\n\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue) get_store()\n .find_element_user(ERRORRESPONSE$2,\n 0);\n\n if (target == null) {\n return null;\n }\n\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "dcb0c391e9a02b1c0e18255ab0afc2bf", "score": "0.49223897", "text": "public String getError() {\r\n\t\treturn this.error;\r\n\t}", "title": "" }, { "docid": "dcb0c391e9a02b1c0e18255ab0afc2bf", "score": "0.49223897", "text": "public String getError() {\r\n\t\treturn this.error;\r\n\t}", "title": "" }, { "docid": "9f3ea90bfc40550acce4b4e43bfa4712", "score": "0.49216732", "text": "public RestStatus status() {\n Throwable cause = unwrapCause();\n if (cause == this) {\n return RestStatus.INTERNAL_SERVER_ERROR;\n } else {\n return ExceptionsHelper.status(cause);\n }\n }", "title": "" }, { "docid": "64ed399ff648ef0aad0feb4adb60bd22", "score": "0.4920644", "text": "com.wolf.javabean.SystemNet.ServerResponseOrBuilder getServerResponseOrBuilder();", "title": "" }, { "docid": "b3700247d6197032910e8774306c860a", "score": "0.49071512", "text": "@Override\n public void handleError(ClientHttpResponse response) throws IOException {\n }", "title": "" }, { "docid": "a6b0dba1e791b393e599eea2b6b0b8d4", "score": "0.490291", "text": "public final String getError() {\n return error;\n }", "title": "" }, { "docid": "e78ab90fd679028a7c55efa89dfb7b0b", "score": "0.48994726", "text": "public void setErrorResponse(java.lang.String errorResponse) {\n synchronized (monitor()) {\n check_orphaned();\n\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue) get_store()\n .find_element_user(ERRORRESPONSE$2,\n 0);\n\n if (target == null) {\n target = (org.apache.xmlbeans.SimpleValue) get_store()\n .add_element_user(ERRORRESPONSE$2);\n }\n\n target.setStringValue(errorResponse);\n }\n }", "title": "" }, { "docid": "0929b041f808552c961daa3df97a48b8", "score": "0.48975772", "text": "public InternalServerErrorException(String message) {\n\t\tsuper();\n\t\tthis.message = message;\n\t}", "title": "" }, { "docid": "8d43ce52aa6bc89c88557365e7cf29af", "score": "0.48954946", "text": "@Override\r\n\tpublic void onServerError(int code, String msg) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6164ddf2f34c26b281d60e2d16b8e57e", "score": "0.48949698", "text": "public RPCError getError() {\n\t\treturn error;\n\t}", "title": "" }, { "docid": "1d400523db1ef1d3a7ec1cfac3301eba", "score": "0.48944938", "text": "private String getError () {\n\t\treturn this.streamOf(\"err\")\n\t\t\t\t.findFirst()\n\t\t\t\t.map(this::errorMessage)\n\t\t\t\t.orElseThrow(() -> NoNecessaryKeyException.of(\"GenericException2.err\"));\n\t}", "title": "" }, { "docid": "059b1be564a47b9cf7a0227e7b7f2c65", "score": "0.48941296", "text": "public void setErrorResponse(ErrorResponse errorResponse) {\r\n this.errorResponse = errorResponse;\r\n }", "title": "" }, { "docid": "82b4535b0e40c5cd957baa1f7cf21158", "score": "0.48917398", "text": "@Nullable\n public static ErrorResponse getError(@NonNull okhttp3.Response response) {\n try {\n // get raw response json\n // use peek to not disturb any possible call chain. However, limit to just 64k as a error response shouldn't be any bigger anyways\n final String json = response.peekBody(65536).string();\n\n // deserialize using Gson\n return new Gson().fromJson(json, ErrorResponse.class);\n } catch (IOException | JsonSyntaxException ignored) {\n return null;\n }\n }", "title": "" }, { "docid": "5dfb87bfad8c9c104e19d3154c82fab6", "score": "0.48797563", "text": "public String error() {\n return this.error;\n }", "title": "" }, { "docid": "1e010a8af1d7e23de5f5f574b8375cbd", "score": "0.4876691", "text": "public java.lang.String getError() {\n java.lang.Object ref = error_;\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 error_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "5d56bfcad8c46763f805002b2af7d594", "score": "0.48747465", "text": "@RequestMapping(value = \"/error/500**\", method = RequestMethod.GET)\n public ModelAndView serverError() {\n ModelAndView model = new ModelAndView();\n\n model.setViewName(\"errors/500\");\n \n return model;\n }", "title": "" }, { "docid": "1974f55dd296419273b6e41bd425d611", "score": "0.486913", "text": "public java.lang.String getError() {\n java.lang.Object ref = error_;\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 error_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a9c29d769d63ef9f506bfdff82c8b38d", "score": "0.48674312", "text": "public void parseError(int position, int size, String message)\n {\n if (listener != null) {\n pendingErrors.add(new PendingError(position, size, message));\n }\n }", "title": "" }, { "docid": "b4ddb20917c9f682c6e362216b7529f7", "score": "0.48659128", "text": "public boolean isServerError() {\n return code >= 500 && code < 600;\n }", "title": "" }, { "docid": "f7a4c1c405f5e9e7b1dfaff0d9c01a12", "score": "0.48609704", "text": "@Override\n\tpublic ResponseEntity<Object> getResponseEntity() {\n\t\treturn new ResponseEntity<>((Object) new ErrorResponseDTO(HttpStatus.INTERNAL_SERVER_ERROR.value(),\n\t\t\t\tHttpStatus.INTERNAL_SERVER_ERROR.name(), this.message), HttpStatus.INTERNAL_SERVER_ERROR);\n\t}", "title": "" }, { "docid": "5fac68118aaa60ca71c2fed2584fa082", "score": "0.48465252", "text": "public void send_exception(ServerRequestInfo ri) {\n \n }", "title": "" }, { "docid": "87d7d4b3e529fa5a2be5421d5e9766ca", "score": "0.48435208", "text": "private Long errorCodeHandling(Object response) {\n\t\ttry {\n\t\t\tLong errorCode = extractResponseValue(response, GetterNameErrorCode, Long.class);\n\t\t\treturn errorCode;\n\t\t} catch (ClassCastException e) {\n\t\t\tString errorCodeString = extractResponseValue(response, GetterNameErrorCode, String.class);\n\t\t\treturn Long.valueOf(errorCodeString);\n\t\t}\n\t}", "title": "" }, { "docid": "fe34d9d90fa9dd3cf78f9afa8f8145ce", "score": "0.4842047", "text": "private void handleError(String[] args) {\n StringBuilder parts = new StringBuilder();\n for(String arg : args) {\n parts.append(arg);\n parts.append(\" \");\n }\n delegate.serverError(parts.toString().trim());\n }", "title": "" }, { "docid": "65d5e8f5d718f274a8437933158b7c84", "score": "0.48411492", "text": "String getError() {\n return error;\n }", "title": "" }, { "docid": "8b8013e95e0db0b27edc9a2ac0c3482a", "score": "0.4832336", "text": "@Override\n public String getNonErrorVServerStatus(PropertyHandler paramHandler)\n throws Exception {\n final String status = this.getVServerStatus(paramHandler);\n boolean isErrorState = false;\n String errorCode = \"\";\n if (status != null) {\n switch (status) {\n case VServerStatus.ERROR:\n isErrorState = true;\n errorCode = \"error_state_vserver\";\n break;\n case VServerStatus.START_ERROR:\n isErrorState = true;\n errorCode = \"error_failed_to_start_vserver\";\n break;\n case VServerStatus.STOP_ERROR:\n isErrorState = true;\n errorCode = \"error_failed_to_stop_vserver\";\n break;\n case VServerStatus.UNEXPECTED_STOP:\n isErrorState = true;\n errorCode = \"error_unexpected_stop_vserver\";\n break;\n }\n }\n\n if (isErrorState) {\n throw new SuspendException(Messages.getAll(errorCode,\n new Object[] { paramHandler.getVserverId() }));\n }\n\n return status;\n }", "title": "" }, { "docid": "0ccdc51de327fc0ba43f3472ddcba6f2", "score": "0.4829524", "text": "public String getError() {\n\t\treturn error;\n\t}", "title": "" }, { "docid": "0ccdc51de327fc0ba43f3472ddcba6f2", "score": "0.4829524", "text": "public String getError() {\n\t\treturn error;\n\t}", "title": "" }, { "docid": "0ccdc51de327fc0ba43f3472ddcba6f2", "score": "0.4829524", "text": "public String getError() {\n\t\treturn error;\n\t}", "title": "" }, { "docid": "e9f5a7b0060ab79c8f48e0dd43cb4f95", "score": "0.48244616", "text": "@Override\n\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t}", "title": "" }, { "docid": "ecfa15a5ae1564cf45bceca2755ccac7", "score": "0.48189154", "text": "public InternalServerException(final String message) {\n super(ResponseCode.INTERNAL_SERVER_ERROR, message);\n }", "title": "" }, { "docid": "18f031aea98cdd2b5d73e7c61a585cba", "score": "0.48188928", "text": "public String getError() {\n return error;\n }", "title": "" }, { "docid": "7bb07adb0b0d7e65b6a17d33215188ed", "score": "0.48025635", "text": "public org.apache.xmlbeans.XmlString xgetErrorResponse() {\n synchronized (monitor()) {\n check_orphaned();\n\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString) get_store()\n .find_element_user(ERRORRESPONSE$2,\n 0);\n\n return target;\n }\n }", "title": "" }, { "docid": "5159e6fcfe81474ccdcf7df1621d3931", "score": "0.48014417", "text": "private String makeErrorText() {\n \t\n \tString decodedEntity = \"\";\n \n String msg = headers.get(null).get(0); \t\n \t\n \n if(this.response == null || this.response.length == 0)\n return msg += \": Empty http response entity\"; \n \n String type = this.findContentType();\n \n if(type.equals(\"html\"))\n msg = msg + \":Internal error report from service (html)\";\n else if(type.equals(\"xml\"))\n msg = msg + \":Custom application content (xml)\";\n else if(type.equals(\"json\"))\n msg = msg + \":Custom application content (json)\";\n else if(type.equals(\"text\") || type.equals(\"unknown\")){\n \tdecodedEntity = new String(response);\n \tmsg = msg + \":\" + decodedEntity;\n }\n \n return msg;\n \n }", "title": "" }, { "docid": "4e63908156bea204a6bcb02843f15940", "score": "0.47981322", "text": "private void handleError(final VolleyError error) {\n if (Objects.isNull(error.networkResponse)) {\n try {\n mResponse.setValue(new JSONObject(\"{\" +\n \"error:\\\"\" + error.getMessage() +\n \"\\\"}\"));\n } catch (JSONException e) {\n Log.e(\"JSON PARSE\", \"JSON Parse Error in handleError\");\n }\n }\n else {\n String data = new String(error.networkResponse.data, Charset.defaultCharset())\n .replace('\\\"', '\\'');\n try {\n JSONObject response = new JSONObject();\n response.put(\"code\", error.networkResponse.statusCode);\n response.put(\"data\", new JSONObject(data));\n mResponse.setValue(response);\n } catch (JSONException e) {\n Log.e(\"JSON PARSE\", \"JSON Parse Error in handleError\");\n }\n }\n }", "title": "" }, { "docid": "ddcf34795de615cc97644ffbe3689d67", "score": "0.47954816", "text": "private void parseError(String e) {\n\t\tSystem.out.println(\"Parse error: \" + e);\n\t\tSystem.exit(4);\n\t}", "title": "" }, { "docid": "324cf11c8c56ddb5b655bdb5d3626c21", "score": "0.4794459", "text": "@RequestMapping(value = PATH)\n ResponseBean<String> error(HttpServletRequest request, HttpServletResponse response) {\n\n String result = null;\n if (debug) {\n result = JsonUtil.toJsonString(getErrorAttributes(request, true));\n }\n\n return ResponseUtil.fail(-1, \"System Error\", result);\n }", "title": "" }, { "docid": "d6f09b4f112231178ab34e6db0d8eb68", "score": "0.47935027", "text": "@Override\n public final String getError() {\n return error;\n }", "title": "" }, { "docid": "4e9d9a383ad119127deda22f341326c0", "score": "0.47916675", "text": "public C13600a loadRequestError(ErrorResponse errorResponse) {\n return new ErrorAction(\"LOAD_REQUEST_ERROR\", errorResponse);\n }", "title": "" }, { "docid": "4b5a4b178a0d6808829f94a27b47dd15", "score": "0.4779514", "text": "public void setError(RPCError error) {\n\t\tthis.error = error;\n\t}", "title": "" }, { "docid": "14bcf32a241e912c8cdcd9db35c7d36b", "score": "0.47714856", "text": "@Override\n\tpublic void handleException(Throwable throwable, String errorResponse) {\n\n\t\tMessage parseMessage;\n\t\tif (errorResponse != null) {\n\t\t\tparseMessage = parseMessage(errorResponse);\n\t\t\tthrowException(throwable, parseMessage);\n\t\t} else {\n\t\t\tthrowDefaultException(throwable);\n\t\t}\n\t}", "title": "" }, { "docid": "4db10e2c38792dcf3bed8e3ac69dc008", "score": "0.4767061", "text": "public void sendError(int sc) throws IOException {\n\t\thttpStatus = sc;\n\t\tresponse.sendError(sc);\n\t}", "title": "" }, { "docid": "b0deaccbe0cd8ba95103493873368c43", "score": "0.47536272", "text": "@Override\n public void handleNameResolutionError(Status error) {\n if (!endpointWatcher.firstEndpointUpdateReceived) {\n helper.updateBalancingState(TRANSIENT_FAILURE, new ErrorPicker(error));\n }\n }", "title": "" }, { "docid": "5fda3a2ac2be3b5b43e1cee349805376", "score": "0.4751595", "text": "public ErrorResponse getErrorResponse() {\r\n return errorResponse;\r\n }", "title": "" }, { "docid": "550e16b48003b767b6957ffb5622b369", "score": "0.47494465", "text": "public String getErrorMsg();", "title": "" }, { "docid": "4e5f819d31875038b47aa447ca73e3c5", "score": "0.47474203", "text": "protected ByteBuffer handleBinaryException(Object key, RequestReader request, ByteBuffer response,\n String operation, Exception e) {\n getLogger().info(\"Exception occurred while processing \" + operation + \" :\" + key, e);\n String errStr = e.getMessage() == null ? \"SERVER ERROR\" : e.getMessage();\n byte[] errMsg = errStr.getBytes(asciiCharset);\n int responseLength = HEADER_LENGTH + errMsg.length;\n if (response.capacity() < responseLength) {\n response = request.getResponse(responseLength);\n }\n response.limit(responseLength);\n response.putShort(POSITION_RESPONSE_STATUS, ResponseStatus.INTERNAL_ERROR.asShort());\n response.putInt(TOTAL_BODY_LENGTH_INDEX, errMsg.length);\n response.position(HEADER_LENGTH);\n response.put(errMsg);\n return response;\n }", "title": "" }, { "docid": "0ccbdc7446efa6da8f5714de788c1985", "score": "0.4744457", "text": "public void createStatus(Exception e){\n\t List<Status> childStatuses = new ArrayList<>();\n\n\t // Split output by OS-independend new-line\n\t for (StackTraceElement elt: e.getStackTrace()) {\n\t // build & add status\n\t childStatuses.add(new Status(IStatus.ERROR, PLUGIN_ID, elt.toString()));\n\t }\n\t\tstatus = new MultiStatus(PLUGIN_ID, IStatus.ERROR, childStatuses.toArray(new Status[]{}), e.getLocalizedMessage(), e);\n\t}", "title": "" }, { "docid": "a768da11a7fe981c1915b999518e033d", "score": "0.4743937", "text": "private String extractServerResponse(String response) {\n Map<String, Object> responseMap = toMap(JSONValue.parse(stripJsonPrefix(response)));\n\n // TODO(user): consider using jart's FormField Framework.\n // See: j/c/g/d/r/ui/server/RegistrarFormFields.java\n String status = (String) responseMap.get(\"status\");\n Verify.verify(!status.equals(\"error\"), \"Server error: %s\", responseMap.get(\"error\"));\n return String.format(\"Successfully saved premium list %s\\n\", name);\n }", "title": "" }, { "docid": "feb2df8dad54e611c00fe3cef20b650c", "score": "0.47425735", "text": "public void xsetErrorResponse(org.apache.xmlbeans.XmlString errorResponse) {\n synchronized (monitor()) {\n check_orphaned();\n\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString) get_store()\n .find_element_user(ERRORRESPONSE$2,\n 0);\n\n if (target == null) {\n target = (org.apache.xmlbeans.XmlString) get_store()\n .add_element_user(ERRORRESPONSE$2);\n }\n\n target.set(errorResponse);\n }\n }", "title": "" }, { "docid": "1a18534cea9957d410695e4dc502f7f4", "score": "0.47331548", "text": "public String getErrorMsg() {\n return this.errorMsg;\n }", "title": "" }, { "docid": "a98c2bc7469b39bc708b96d795e09080", "score": "0.47330606", "text": "@JsonIgnore\n protected boolean is5xxServerError() {\n return HttpStatus.valueOf(this.status).is5xxServerError();\n }", "title": "" }, { "docid": "4792acd60445c12787c093c4c5b3dd78", "score": "0.472408", "text": "private static void _checkForHttpErrors(HttpResponse response)\n throws CrocodocException {\n Integer httpCode = response.getStatusLine().getStatusCode();\n\n Map<Integer, String> http4xxErrorCodes = new HashMap<Integer, String>();\n http4xxErrorCodes.put(400, \"bad_request\");\n http4xxErrorCodes.put(401, \"unauthorized\");\n http4xxErrorCodes.put(404, \"not_found\");\n http4xxErrorCodes.put(405, \"method_not_allowed\");\n\n if (http4xxErrorCodes.containsKey(httpCode)) {\n String error = \"server_error_\" + httpCode + \"_\"\n + http4xxErrorCodes.get(httpCode);\n _error(error, \"Crocodoc\", \"_request\", null);\n }\n\n if (httpCode >= 500 && httpCode < 600) {\n String error = \"server_error_\" + httpCode + \"_unknown\";\n _error(error, \"Crocodoc\", \"_request\", null);\n }\n }", "title": "" }, { "docid": "eabbb50dab882e25c45328c76c564581", "score": "0.4722617", "text": "public int getError() {\n return error;\n }", "title": "" }, { "docid": "9823031c5a6283c809945628b88bb20e", "score": "0.47167394", "text": "protected static void _error(String error, String client, String method,\n Object response) throws CrocodocException {\n String message = \"Crocodoc: [\" + error + \"] \" + client + \"::\" + method\n + \"\\n\\n\";\n message += JSONValue.toJSONString(response);\n throw new CrocodocException(message, error);\n }", "title": "" }, { "docid": "4889c449753414fd966ed41e6d12de36", "score": "0.47127205", "text": "private native String getError(int handle);", "title": "" }, { "docid": "745bc7262f6c6abfd72a42e90b3ac7fd", "score": "0.47098815", "text": "public void unsetErrorResponse() {\n synchronized (monitor()) {\n check_orphaned();\n get_store().remove_element(ERRORRESPONSE$2, 0);\n }\n }", "title": "" }, { "docid": "a6056bc382213a6789fc0ac8ac46faa6", "score": "0.4708155", "text": "private void error() {\n status = ERROR;\n stateChanged();\n }", "title": "" }, { "docid": "5614118066232e2b3633700370a385eb", "score": "0.47017998", "text": "public static String getError(String error){\n\n return \"Error\";\n }", "title": "" }, { "docid": "e90163d0e3c9127cd99e6a694116164e", "score": "0.46983182", "text": "@Override\n\t\t\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\t\tonFailureForString(error.getMessage(), msg);\n\t\t\t\t}", "title": "" }, { "docid": "d6e82b25a23b66c01db25d6b1a447731", "score": "0.46973482", "text": "public java.lang.String getErrorMsg() {\n java.lang.Object ref = errorMsg_;\n if (!(ref instanceof java.lang.String)) {\n shade.protobuf.ByteString bs =\n (shade.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMsg_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" } ]
b3ba925f74eab0e44a46265e638e5bb9
Sorts the Point objects according to xcoordinates in natural order
[ { "docid": "25f3a689f03c1897a10b0d5e0fb990ad", "score": "0.6624164", "text": "public int compare(Point p1, Point p2)\n {\n return p1.x - p2.x;\n }", "title": "" } ]
[ { "docid": "a137ea532a7fa03f1ac2a3b1d25a8e4d", "score": "0.6982592", "text": "public void sort() {\n List<Integer> groupLeft = new ArrayList<>();\n List<Integer> groupRight = new ArrayList<>();\n for (int i = 0; i < pointAddress.size(); i++) {\n if (points[pointAddress.get(i)][0] >= points[minimumY][0]) {\n groupRight.add(pointAddress.get(i));\n } else {\n groupLeft.add(pointAddress.get(i));\n }\n }\n pointAddress.clear();\n sortByArctan(groupLeft);\n sortByArctan(groupRight);\n pointAddress.addAll(groupLeft);\n pointAddress.addAll(groupRight);\n }", "title": "" }, { "docid": "eae9deb51fe36addd7cc77c53f0a7d40", "score": "0.6593454", "text": "private Set<Point> getSortedPoints(List<Point> points) {\n\n PointsComparator pointsComparator\n = new PointsComparator(getLowestPoint(points));\n TreeSet<Point> pointsSet = new TreeSet<>(pointsComparator);\n pointsSet.addAll(points);\n\n return pointsSet;\n }", "title": "" }, { "docid": "f4b048d6bcafdebc3d4b318cfff3716d", "score": "0.65764594", "text": "@Override\t\t\t\t\t\t\t\t//which lets us use the compareTo method found in point\n\t\t\t\tpublic int compare(Point a, Point b)\t\n\t\t\t\t{\n\t\t\t\t\treturn a.compareTo(b);\n\t\t\t\t}", "title": "" }, { "docid": "11aea1fd6f2d3ccacc30419cd1014c1d", "score": "0.6403434", "text": "public void sortAnchorPoints(double segPoints[][], int sortBy){\n\t\t\t int n = segPoints.length;\n\t\t\t System.out.println(\"total points \" + n );\n\t\t for (int pass=1; pass < n; pass++) { // count how many times\n\t\t for (int i=0; i < n-pass; i++) {\n\t\t if (segPoints[i][sortBy] > segPoints[i+1][sortBy]) {\n\t\t // exchange elements\n\t\t double tempX = segPoints[i][0];\n\t\t double tempY = segPoints[i][1];\n\t\t segPoints[i][0] = segPoints[i+1][0];\n\t\t segPoints[i][1] = segPoints[i+1][1];\n\t\t segPoints[i+1][0] = tempX;\n\t\t segPoints[i+1][1] = tempY;\n\t\t }\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(\"Sorted Points\");\n\t\t for(int i = 0; i < n; i++){\n\t\t \tSystem.out.println(\"Points X: \" + segPoints[i][0] + \"Y: \" + segPoints[i][1]);\n\t\t }\n\t\t \n\t\t // return segPoints;\n\t}", "title": "" }, { "docid": "83a8366be3b1b1cac950c005342baba2", "score": "0.6381625", "text": "@Override\r\n\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\treturn 0;\r\n\t\t}", "title": "" }, { "docid": "686a72d63598c44462192b37642fdd0a", "score": "0.62728554", "text": "@Override\r\n\t\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "title": "" }, { "docid": "9235dd29cf3f52d398d324445311ed55", "score": "0.62503713", "text": "protected void sortAnchors() {\r\n\tint count;\r\n\tfloat tempX;\r\n\tfloat tempY;\r\n\twhile (true){\r\n\t count = 0;\r\n\t for (int i = 1; i < nPts; i++) {\r\n\t\tif (xPts[i-1] > xPts[i]) {\r\n\t\t tempX = xPts[i-1];\r\n\t\t tempY = yPts[i-1];\r\n\t\t xPts[i-1] = xPts[i];\r\n\t\t yPts[i-1] = yPts[i];\r\n\t\t xPts[i] = tempX;\r\n\t\t yPts[i] = tempY;\r\n\t\t count++;\r\n\t\t}\r\n\t }\r\n\t if (count == 0) break;\r\n\t}\r\n\r\n }", "title": "" }, { "docid": "e5fc985e2b5bcda33d853a9accb85607", "score": "0.6017608", "text": "private void sortProps() {\n // Create an anonymous inner class to define how props will be sorted--\n // in this case, by their anchor.\n Collections.sort(props, new Comparator<Prop>() {\n @Override\n public int compare(Prop p1, Prop p2) {\n int prop1 = ((Prop) p1).getAnchor();\n int prop2 = ((Prop) p2).getAnchor();\n\n // If you reverse these two, you get trippy results where front\n // objects get rendered in front of back objects. That said,\n // I do not recommend you do that unless you're feeling lulzy.\n return prop1 - prop2;\n }\n });\n }", "title": "" }, { "docid": "b3990d4169531a6b8b6de10f18dfd294", "score": "0.5993135", "text": "private void sortEntities(){\n Collections.sort(this.entities, new Comparator<Entity>(){\n @Override\n public int compare(Entity entity1, Entity entity2) {\n return (\n SpriteRenderBlock.this.positionComponentMapper.get(entity1).z < SpriteRenderBlock.this.positionComponentMapper.get(entity2).z ? -1\n : SpriteRenderBlock.this.positionComponentMapper.get(entity1).z > SpriteRenderBlock.this.positionComponentMapper.get(entity2).z ? 1\n : 0\n );\n }\n });\n }", "title": "" }, { "docid": "db0428baaf786f730070c024b2baeef7", "score": "0.5954656", "text": "public void sortParticles() \r\n {\r\n for (int i = 0; i < numberParticles-1; i++)\r\n for (int j = 0; j < numberParticles-i-1; j++)\r\n if (matrix.calculateDistance(this.particlesList.get(j).bestPath) > matrix.calculateDistance(this.particlesList.get(j+1).bestPath))\r\n {\r\n PSOParticle auxiliar = this.particlesList.get(j);\r\n this.particlesList.set(j,this.particlesList.get(j+1));\r\n this.particlesList.set(j+1,auxiliar);\r\n }\r\n }", "title": "" }, { "docid": "d9cbc863bc3d542081cbef0d4576ac4f", "score": "0.5834937", "text": "public void sort() {\n if (timestamps.size() > 1) {\n\n LongList sortedTimes = new LongList(timestamps.size());\n List<T> sortedValues = new ArrayList<>(timestamps.size());\n\n points().sorted((o1, o2) -> Long.compare(o1.getTimestamp(), o2.getTimestamp())).forEachOrdered(p -> {\n sortedTimes.add(p.getTimestamp());\n sortedValues.add(p.getValue());\n });\n\n timestamps = sortedTimes;\n values = sortedValues;\n }\n }", "title": "" }, { "docid": "2992c4a5defd5ebda91831fb9783892d", "score": "0.5830645", "text": "public int compareTo(Point p) {\r\n Point that = p;\r\n if(this.y > that.y) {\r\n return 1;\r\n }\r\n else if(this.y < that.y) {\r\n return -1;\r\n }\r\n else if(this.x > that.x) {\r\n return 1;\r\n }\r\n else if(this.x < that.x) {\r\n return -1;\r\n }\r\n else {\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "87922c03e62d0da5866b56aabfae3603", "score": "0.58229744", "text": "public void sort() {\n \tint x = 0;\n \twhile (x < this.size()-1) {\n \t\tint first = x;\n \t\tint second = first + 1;\n \t\t//compares value at x with the value in front of it\n \t\tif (this.get(first).compareTo(this.get(second)) > 0) {\n \t\t\tE temp = this.get(second);\n \t\t\tthis.put(second, this.get(first));\n \t\t\tthis.put(first, temp);\n \t\t\tx++;\n \t\t\t//recursion to test all values\n \t\t\tthis.sort();\n \t\t}\n \t\telse {\n \t\t\tx++;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "5414313edc527f975c22d42f020e4d01", "score": "0.58018166", "text": "@Override\n public int compareTo(PairOfPoints o) {\n if (this.start.compareTo(o.start) == 0)\n return this.end.compareTo(o.end);\n else\n return this.start.compareTo(o.start);\n }", "title": "" }, { "docid": "07834d3db8c22620fdb175ad50e7f358", "score": "0.5797005", "text": "public void sort(int x, int y)\r\n\t{\r\n\t\tif(x>1000)\r\n\t\t\tx=1000;\r\n\t\telse if(x<0)\r\n\t\t\tx=0;\r\n\t\t\r\n\t\tif(y>1000)\r\n\t\t\ty=1000;\r\n\t\telse if(y<0)\r\n\t\t\ty=0;\r\n\t\t\r\n\t\tList<OrderElement> listToSort=new ArrayList<OrderElement>();\r\n\t\tList<OrderElement> alreadyDone=new ArrayList<OrderElement>();\r\n\r\n\t\tfor (OrderElement oe:orderElementList)\r\n\t\t{\r\n\t\t\tif(oe.done)\r\n\t\t\t\talreadyDone.add(oe);\r\n\t\t\telse\r\n\t\t\t\tlistToSort.add(oe);\r\n\t\t}\r\n\t\t\r\n\t\tif (listToSort.size()<1)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tList<OrderElement> sorted=sort(x,y,listToSort,x,y).o2;\r\n\t\t\r\n\t\torderElementList.clear();\r\n\t\t\r\n\t\tfor (OrderElement oe:sorted)\r\n\t\t{\r\n\t\t\torderElementList.add(oe);\r\n\t\t}\r\n\t\t\r\n\t\tfor (OrderElement oe:alreadyDone)\r\n\t\t{\r\n\t\t\torderElementList.add(oe);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8ce2ea1953a8b5a45d7d3210e63f47d9", "score": "0.57855046", "text": "public int compare(PairOfPoints o1, PairOfPoints o2) {\n if (o1.start.compareTo(o2.start) == 0)\n return o1.end.compareTo(o2.end);\n else\n return o1.start.compareTo(o2.start);\n }", "title": "" }, { "docid": "4cfb17bd1eb4a5f5a958b4b7e168f60a", "score": "0.57850987", "text": "public int compareTo(Object o)\n\t{\n\t\tSuperPoint point = (SuperPoint) o;\n\t\tif (this.getX() > point.getX())\n\t\t\treturn 1;\n\t\telse if (this.getX() < point.getX())\n\t\t{\n\t\t\treturn -1;\n\t\t} else\n\t\t{\n\t\t\tif (this.y > point.y)\n\t\t\t\treturn 1;\n\t\t\telse if (this.y < point.y)\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "3f81cd05ca1434d5107edfb90bafeb9c", "score": "0.574341", "text": "private void sort(Point[] array) {\n\n for (int i = 1; i < array.length; i++) {\n\n for (int j = i; j > 0; j--) {\n\n if (array[j].compareTo(array[j - 1]) > -1) {\n break;\n }\n\n Point tmp = array[j];\n array[j] = array[j - 1];\n array[j - 1] = tmp;\n }\n }\n }", "title": "" }, { "docid": "e565ec9c461e5da83f942c94a5e89587", "score": "0.5679985", "text": "public static void main(String[] args) \n {\n Point arr[] = {\n new Point(10, 20), \n new Point(3, 12), \n new Point(5, 7) };\n \n // Sorting the object containing the array \n // by passing the array and object MyCmp\n Arrays.sort(arr, new MyCmp());\n \n // Displaying the sorted array\n for(int i = 0; i < arr.length; i++)\n System.out.println(\n arr[i].x + \" \" + arr[i].y);\n }", "title": "" }, { "docid": "018b9b73a5115d6e28340825cad8629e", "score": "0.56551975", "text": "public int compare(Object firstObject, Object secondObject){\r\n \r\n double d1 = ((Shape3D) firstObject).GetDistance() ;\r\n double d2 = ((Shape3D) secondObject).GetDistance() ;\r\n\r\n // order based on distance, ascending\r\n if(d1 < d2){ //d1 comes first\r\n return -1 ;\r\n }\r\n if(d1 > d2){ //d2 comes first\r\n return 1 ;\r\n }\r\n else { // they are equal\r\n return 0 ;\r\n } \r\n }", "title": "" }, { "docid": "9ed654485466c69cc001628dd10f268b", "score": "0.5636415", "text": "public void sort() {\n if (needsSort && timestamps.size() > 1) {\n\n LongList sortedTimes = new LongList(timestamps.size());\n DoubleList sortedValues = new DoubleList(values.size());\n FloatList sortedQualities = new FloatList(qualities.size());\n\n points().sorted(Comparator.comparingLong(Measure::getTimestamp)).forEachOrdered(p -> {\n sortedTimes.add(p.getTimestamp());\n sortedValues.add(p.getValue());\n sortedQualities.add(p.getQuality());\n });\n\n timestamps = sortedTimes;\n values = sortedValues;\n qualities = sortedQualities;\n\n needsSort = false;\n }\n }", "title": "" }, { "docid": "5ae2b9e2ccfcd5bdaea743a4fd3621d8", "score": "0.562504", "text": "public void sort() {\n \tNode<T> current = first;\n \tNode<T> insertionPoint=current;\n current=current.next;\n while(current!=null){\n \t insertionPoint=first;\n \t while (insertionPoint!=current){\n \t\t if(0<insertionPoint.value.compareTo((T) current.value)){\n \t\t\t T temp=current.value;\n \t\t\t current.value=insertionPoint.value;\n \t\t\t insertionPoint.value=temp;\n \t\t }\n \t\t else{\n \t\t\t insertionPoint=insertionPoint.next;\n \t\t }\n \t }\n \t current=current.next;\n }\n \n }", "title": "" }, { "docid": "c4ec8b10b5c37f5901b54570a206e300", "score": "0.5616478", "text": "public void sort();", "title": "" }, { "docid": "930151dcfd099edd24f1fcc97a2ae9c4", "score": "0.56146306", "text": "@Override\n\t\t\tpublic int compare(Point o1, Point o2) {\n\t\t\t\treturn o1.y - o2.y;\n\t\t\t}", "title": "" }, { "docid": "929dc8e4b576f7c21bb1cc7ea2a6d8b6", "score": "0.55978066", "text": "public void sort() ;", "title": "" }, { "docid": "f537e36cd6e1727854fff16e03304269", "score": "0.55913806", "text": "@Override\r\n\t\t\tpublic int compare(Point p1, Point p2) {\n\t\t\t\treturn Double.compare(p1.distance, p2.distance);\r\n\t\t\t}", "title": "" }, { "docid": "cf96a69d4a8c1c822e1f7083e8d343f3", "score": "0.55907977", "text": "@Override\n\t\tpublic int compare(Point o1, Point o2) {\n\t\t\tif(firstOperand)\n\t\t\t\treturn Integer.compare(o1.x, o2.x);\n\t\t\telse\n\t\t\t\treturn Integer.compare(o1.y, o2.y);\n\t\t}", "title": "" }, { "docid": "4477b89433b56bcacec281b654bac857", "score": "0.5579459", "text": "public int compareTo(GoPoint p)\n {\n if (m_index < p.m_index)\n return -1;\n else if (m_index > p.m_index)\n return 1;\n else\n return 0;\n }", "title": "" }, { "docid": "2a90483fe25a518c8bd0c8dfd89513f3", "score": "0.5542686", "text": "public interface Point extends Geometry, Puntal, Serializable {\n /**\n * The value used to indicate a null or missing ordinate value.\n * In particular, used for the value of ordinates for dimensions\n * greater than the defined dimension of a coordinate.\n */\n double NULL_ORDINATE = Double.NaN;\n\n /**\n * Standard ordinate index values\n */\n int X = 0;\n\n int Y = 1;\n\n int Z = 2;\n\n /**\n * Calculate the counter clockwise angle in radians of the vector from this\n * point to another point. The angle is relative to the positive x-axis\n * relative to the positive X-axis. The angle will be in the range -PI -> PI\n * where negative values have a clockwise orientation.\n *\n * @return The angle in radians.\n */\n double angle2d(Point other);\n\n /**\n * Creates and returns a full copy of this {@link Point} object.\n * (including all coordinates contained by it).\n *\n * @return a clone of this instance\n */\n @Override\n Point clone();\n\n Point clonePoint();\n\n /**\n * Compares this {@link Coordinates} with the specified {@link Coordinates} for order.\n * This method ignores the z value when making the comparison.\n * Returns:\n * <UL>\n * <LI> -1 : this.x < other.x || ((this.x == other.x) && (this.y <\n * other.y))\n * <LI> 0 : this.x == other.x && this.y = other.y\n * <LI> 1 : this.x > other.x || ((this.x == other.x) && (this.y > other.y))\n *\n * </UL>\n * Note: This method assumes that ordinate values\n * are valid numbers. NaN values are not handled correctly.\n *\n *@param o the <code>Coordinate</code> with which this <code>Coordinate</code>\n * is being compared\n *@return -1, zero, or 1 as this <code>Coordinate</code>\n * is less than, equal to, or greater than the specified <code>Coordinate</code>\n */\n @Override\n int compareTo(Object o);\n\n void copyCoordinates(GeometryFactory geometryFactory, double[] coordinates);\n\n double distance(double x, double y);\n\n /**\n * Computes the 2-dimensional Euclidean distance to another location.\n * The Z-ordinate is ignored.\n *\n * @param c a point\n * @return the 2-dimensional Euclidean distance between the locations\n */\n double distance(final Point point);\n\n /**\n * Computes the 3-dimensional Euclidean distance to another location.\n *\n * @param c a coordinate\n * @return the 3-dimensional Euclidean distance between the locations\n */\n double distance3d(Point c);\n\n boolean equals(double... coordinates);\n\n boolean equals(Point point);\n\n /**\n * Tests if another coordinate has the same values for the X and Y ordinates.\n * The Z ordinate is ignored.\n *\n *@param other a <code>Coordinate</code> with which to do the 2D comparison.\n *@return true if <code>other</code> is a <code>Coordinate</code>\n * with the same values for X and Y.\n */\n boolean equals2d(Point point, double tolerance);\n\n /**\n * Gets the ordinate value for the given index.\n * The supported values for the index are\n * {@link #X}, {@link #Y}, and {@link #Z}.\n *\n * @param axisIndex the ordinate index\n * @return the value of the ordinate\n * @throws IllegalArgumentException if the index is not valid\n */\n double getCoordinate(int axisIndex);\n\n double[] getCoordinates();\n\n double getM();\n\n long getTime();\n\n double getX();\n\n double getY();\n\n double getZ();\n\n @Override\n Point move(double... deltas);\n\n @Override\n Point normalize();\n\n @Override\n Point prepare();\n}", "title": "" }, { "docid": "ec7c386154ae329339dc82bc46f71766", "score": "0.5537266", "text": "public void sort() {}", "title": "" }, { "docid": "292eae59719baefa9e0b04fb8f38e30c", "score": "0.55349964", "text": "public void graficoSort(Linked_List listadragones,int x){\r\n Dragon current;\r\n current = listadragones.root;\r\n while(current.getNext()!= null){\r\n current.setPos(x,getNumeroRandom());\r\n current = current.getNext();\r\n x = x + 97; \r\n } \r\n }", "title": "" }, { "docid": "36ded46435fbd5241a9e96d3fa53d1e6", "score": "0.5532742", "text": "@Override\n\tpublic int compare(PrimitivePair ex1, PrimitivePair ex2) {\n\t\tPrimitivePair l1 = ex1;\n\t\tPrimitivePair l2 = ex2;\n\n\t\tif (l1.first > l2.first)\n\t\t\treturn -1;\n\t\telse if (l1.first < l2.first)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "title": "" }, { "docid": "965274a7fed280387517ecb1c4b195cb", "score": "0.5528357", "text": "public void sortElementsByZ(){\n\t\tGameElement element = null;\n\t\tint j = 0;\n\t\tfor(int i = 1; i < elements.size(); i++){\n\t\t\tj = i - 1;\n\t\t\telement = elements.get(i);\n\t\t\twhile(j >= 0 && element.getZ() < elements.get(j).getZ()){\n\t\t\t\telements.set(j + 1, elements.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telements.set(j + 1, element);\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "fda96878d3d7584ad1def4e97caed8d9", "score": "0.551803", "text": "public int compare1(Point o1, Point o2) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "6f123bc6ef5f9dd4cec08bfe3cef748a", "score": "0.55087584", "text": "@Override\n public void sort(X[] xs, int from, int to) {\n for (int i = from; i < to; i++) {\n int min = i;\n for (int j = i + 1; j < to; j++) {\n if (less(xs[j], xs[min])) {\n min = j;\n }\n }\n swap(xs, i, min);\n\n }\n }", "title": "" }, { "docid": "1c39d2f82d589a19cd4e92c2f6e0e12d", "score": "0.5499458", "text": "public int compareTo(Point that) {\n if(this.y < that.y) return -1;\n else if (this.y == that.y) {\n if (this.x < that.x) return -1;\n else if (this.x > that.x) return +1; \n else return 0;\n }\n else return +1;\n \n }", "title": "" }, { "docid": "588b552272cd535cc20c3d5ac2615a0d", "score": "0.54993844", "text": "@Test\n public void testPoint3DCompareTo() {\n System.out.println(\"compareTo\");\n assertEquals(1, (new Point3D(1,2,3).compareTo(new Point3D(1,2,4))));\n assertEquals(1, (new Point3D(2.23,5.56,8.34).compareTo(new Point3D(2.28,5.51,8.32))));\n assertEquals(0, (new Point3D(0,0,0).compareTo(new Point3D())));\n }", "title": "" }, { "docid": "fe1a9661b49eafae886c69a65fc49899", "score": "0.5488388", "text": "public int compareTo(Point that) {\n if (this.y < that.y) { return -1; }\n else if (this.y > that.y) { return 1; }\n else if (this.x < that.x) { return -1; }\n else if (this.x > that.x) { return 1; }\n else { return 0; }\n }", "title": "" }, { "docid": "1232faa6fa0ab5366e116fa87eee3c74", "score": "0.54740053", "text": "@Override\r\n\t\t\t\tpublic int compare(Pair o1, Pair o2) {\n\t\t\t\t\tInteger area1 = o1.area;\r\n\t\t\t\t\tInteger area2 = o2.area;\r\n\t\t\t\t\tif(!area1.equals(area2))\r\n\t\t\t\t\t\treturn area1.compareTo(area2);\r\n\t\t\t\t\tInteger hang1 = o1.x;\r\n\t\t\t\t\tInteger hang2 = o2.x;\r\n\t\t\t\t\treturn hang1.compareTo(hang2);\r\n\t\t\t\t}", "title": "" }, { "docid": "9ab66d085c46a9b84d2c704287953f34", "score": "0.5466121", "text": "protected AbstractSorter(Point[] pts) throws IllegalArgumentException\n\t{\n\t\tif (pts == null || pts.length == 0)\n\t\t\tthrow new IllegalArgumentException(\"Invalid Point array parameter for \" + this.getClass());\n\t\t\n\t\tpoints = new Point[pts.length];\n\t\tfor (int i = 0; i < pts.length; i++) //copying our parameter argument into our field\n\t\t{\n\t\t\tpoints[i] = pts[i];\n\t\t}\n\t\t\n\t\tlowestPoint = points[0]; //we set the lowestPoint as the first point\n\t\t//this for loop goes thru each point and compares its y-coordinate with the lowestPoints' y-coord\n\t\tfor (int i = 1; i < points.length; i++)\n\t\t{\n\t\t\tif (points[i].getY() < lowestPoint.getY()) //if our points y coord is smaller we change lowestPoint\n\t\t\t\tlowestPoint = points[i];\n\t\t\t\n\t\t\tif (points[i].getY() == lowestPoint.getY())//if our points y coord is the same then we must compare our x coord\n\t\t\t\tif(points[i].getX() < lowestPoint.getX()) \n\t\t\t\t\tlowestPoint = points[i];\n\t\t}\n\t}", "title": "" }, { "docid": "40e6801e7c1d167312bb95f5119c2db2", "score": "0.54617375", "text": "@Override\n\tpublic int compare(Pair<Integer, Double> p1, Pair<Integer, Double> p2) {\n\t\tDouble x = p1.getSecond();\n\t\tDouble y = p2.getSecond();\n\t\tif (x < y) {\n\t\t\treturn -1;\n\t\t} else if (x > y) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "01bf21ccbda84e30268ece7cb33b04e1", "score": "0.5446548", "text": "private static void reorderPoints(Point[] points) {\r\n\r\n // Use cross products of first few (two, actually) edges to\r\n // see whether the points are in clockwise.\r\n final double x0 = points[0].x - points[1].x;\r\n final double y0 = points[0].y - points[1].y;\r\n final double x1 = points[1].x - points[2].x;\r\n final double y1 = points[1].y - points[2].y;\r\n final double cross = x0 * y1 - y0 * x1;\r\n\r\n // If it is counterclockwise, reverse the order.\r\n // Be careful when interpreting signs of cross products to\r\n // note that our coordinate system is flipped from the\r\n // standard mathematical planar systems in that the Y axis\r\n // grows toward bottom. This alert is to myself! :-(\r\n if (cross < 0) {\r\n for (int i = 1, j = points.length - 1; i < j; i++, --j) {\r\n final Point t = points[i];\r\n points[i] = points[j];\r\n points[j] = t;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b177940ea498260d7890c8e6c7adc3c3", "score": "0.5436413", "text": "public int compareTo(Point that) {\n if (this.y > that.y) return +1;\n else if (this.y < that.y) return -1;\n else {\n return Integer.compare(this.x, that.x);\n }\n }", "title": "" }, { "docid": "5653afa68e2d06320aff229260f0589d", "score": "0.5433295", "text": "private void Sort(Pointd[] v, int first, int last)\r\n\t{\r\n\t\tint lo, hi;\r\n\r\n\t\tif (first >= last)\r\n\t\t\treturn;\r\n\r\n\t\tPointd piv = v[(first + last)/2];\r\n\t\tlo = first;\r\n\t\thi = last;\r\n\r\n\t\tdo\r\n\t\t{\r\n\t\t\twhile (lo <= last && compare(v, lo, piv) < 0)\r\n\t\t\t\tlo++;\r\n\r\n\t\t\twhile (hi >= first && compare(v, hi, piv) > 0)\r\n\t\t\t\thi--;\r\n\r\n\t\t\tif (lo <= hi)\r\n\t\t\t{\r\n\t\t\t\tif (compare(v, lo, hi) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tlo++;\r\n\t\t\t\t\thi--;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSwap(v, lo, hi);\r\n\t\t\t}\r\n\t\t} while (lo <= hi);\r\n\t\tSort(v, first, hi);\r\n\t\tSort(v, lo, last);\r\n\t}", "title": "" }, { "docid": "6aa4df8c8b88ffb1e4eacd32c6ad16bb", "score": "0.5419664", "text": "public void sortCoordinatesByCost(ArrayList<AStarCoordinate> coords) {\n for (AStarCoordinate c : coords) {\n c.setDistanceToGoal(getDistanceToPoint(c,interimGoal)); //use the interim goal since this function is used on an iteration basis\n }\n\n Collections.sort(coords); //Do the sort, per the \"compareTo\" method in AStarCoordinate\n }", "title": "" }, { "docid": "ff8dcdb20f34cd4d9dedd05a8b781554", "score": "0.5397396", "text": "List<PowerBar> javaSort();", "title": "" }, { "docid": "68b000ff3be5e4b897c59a0355821bb1", "score": "0.5388518", "text": "protected void sortCrossingPoints(final int[] aiList, final int iNumElements) {\r\n boolean bDidSwap = true;\r\n\r\n while (bDidSwap) {\r\n bDidSwap = false;\r\n\r\n for (int iPoint = 0; iPoint < (iNumElements - 1); iPoint++) {\r\n\r\n if (aiList[iPoint] > aiList[iPoint + 1]) {\r\n final int iTmp = aiList[iPoint];\r\n aiList[iPoint] = aiList[iPoint + 1];\r\n aiList[iPoint + 1] = iTmp;\r\n bDidSwap = true;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "8a67c224b5048b23113bae444da2286e", "score": "0.5384116", "text": "public int compareTo(LignePointage o) {\n\t\treturn (int)o.getId();\n\t}", "title": "" }, { "docid": "31adfe1d3e4899b3bb59981befc7a7f5", "score": "0.5374132", "text": "public void sort(){\r\n ObjectListNode p,q,r,s;\r\n ObjectList newList=new ObjectList();\r\n Comparable e,f;\r\n while(list!=null){\r\n q=list;\r\n p=q.getNext();\r\n r=q;\r\n s=q;\r\n while(p!=null){\r\n e=(Comparable)p.getInfo();\r\n f=(Comparable)r.getInfo();\r\n if(f.compareTo(e)<0){\r\n s=q;\r\n r=p;\r\n }\r\n else if(f.compareTo(e)==0&&f.compareTo(e)<0){\r\n s=q;\r\n r=p;\r\n }\r\n q=p;\r\n p=p.getNext();\r\n }\r\n if(r==list)\r\n newList.addFirst(new ObjectListNode(this.removeFirst()));\r\n else\r\n newList.addFirst(new ObjectListNode(this.deleteAfter(s)));\r\n }\r\n list=newList.getFirstNode();\r\n q=list;\r\n p=list.getNext();\r\n while(p!=null){\r\n q=p;\r\n p=p.getNext();\r\n }\r\n last=q;\r\n }", "title": "" }, { "docid": "6823583ee5e96ea51e0175dbc793ae6d", "score": "0.5370368", "text": "public int getXOrdering () {\n\t\treturn xOrdering;\n\t}", "title": "" }, { "docid": "25cfb82b0cf864286a55b405b60799db", "score": "0.53630614", "text": "@Override\n public int compareTo(PrZ o) {\n return prh[0].compareTo(o.prh[0]);\n }", "title": "" }, { "docid": "e7571d8fbfa44447c919cb99d0df399f", "score": "0.53514093", "text": "private void sortCorners() {\n\n if (a.x < e.x) { // x-Werte sortieren\n xmin = a.x;\n xmax = e.x;\n } else {\n xmin = e.x;\n xmax = a.x;\n }\n\n if (a.y < e.y) { // y-Werte sortieren\n ymin = a.y;\n ymax = e.y;\n } else {\n ymin = e.y;\n ymax = a.y;\n }\n\n a.x = xmin; // Jetzt Ecken sichern\n a.y = ymin;\n e.x = xmax;\n e.y = ymax;\n }", "title": "" }, { "docid": "87906f021e4d14c5a9ab44ecaa972111", "score": "0.53450817", "text": "@Override\n\tpublic int compareTo(Tree o) {\n\t\treturn x - o.x;\n\t}", "title": "" }, { "docid": "7759cd6ddf58bc88527f772bf1a84139", "score": "0.53391635", "text": "@Override\n\t\tpublic int compare(Integer x, Integer y) {\n\t\t\tif (x < y)\n\t return -1;\n\t if (x > y)\n\t return 1;\n\t\t\treturn 0;\n\t\t}", "title": "" }, { "docid": "30882eeff208ed8084d5988cadac6eac", "score": "0.53378505", "text": "public List<Point> getOrdinates() {\n return points;\n }", "title": "" }, { "docid": "949db6f9a76df21a723d1c316f77384f", "score": "0.5336764", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate ArrayList<Position> SortedPositions(int xPos, int yPos){\n\t\t\n\t\tint xNext;\n\t\tint yNext;\n\t\t\n\t\tArrayList<Position> arrayPosition = new ArrayList<Position>();\n\t\t\n\t\tfor(int i = 0; i < HORSE_MOVES; i++) {\n\t\t\t\n\t\t\txNext = xPos + xMoves[i];\n\t\t\tyNext = yPos + yMoves[i];\n\t\t\t\n\t\t\t//Checks if position is in bounds and is an empty spot\n\t\t\tif(IsInBounds(xNext, yNext) && IsEmpty(xNext, yNext)) {\n\t\t\t\t\n\t\t\t\tPosition position = new Position(xNext, yNext);\n\t\t\t\tposition.SetEdge(heuristicBoard[xNext][yNext]);\n\t\t\t\tarrayPosition.add(position);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tCollections.sort(arrayPosition);\n\t\treturn arrayPosition;\n\t\t\n\t}", "title": "" }, { "docid": "e07c866a7da8e13830b31437752af24d", "score": "0.53323746", "text": "public void sort() {\n Collections.sort(individuals, new IndividualComparator());\n }", "title": "" }, { "docid": "fcb92216d267deb2ea3a0a79ed00604b", "score": "0.53317887", "text": "@Override\n public int compareTo(Position p) {\n if(y < p.y) {\n return -1;\n } else if(y > p.y) {\n return 1;\n } else {\n if(x < p.x) {\n return -1;\n } else if(x > p.x) {\n return 1;\n } else {\n if(z < p.z) {\n return -1;\n } else if(z > p.z) {\n return 1;\n } else {\n return 0;\n }\n }\n }\n }", "title": "" }, { "docid": "c951e37e2ccc758d7dd6aacc21d7a529", "score": "0.5311943", "text": "public List<XOctPoint> getAllObjects(List<XOctPoint> points){\n \treturn root.getAllObjects(points);\n }", "title": "" }, { "docid": "d0c085420c18a45654a781b503b813e2", "score": "0.52928454", "text": "public static void sortMergeTD ( Comparable[] x, int n ) {\n\t\taux = new Comparable[n];\n\t\tsort(x, 0, n - 1);\n\t}", "title": "" }, { "docid": "0aa52f6f74527fbcd937148c8421c0ff", "score": "0.5292308", "text": "void sort();", "title": "" }, { "docid": "0aa52f6f74527fbcd937148c8421c0ff", "score": "0.5292308", "text": "void sort();", "title": "" }, { "docid": "7cdcded0c52b9bfbc7343e5c074210b8", "score": "0.52916974", "text": "public int compareTo(Point that) {\n if (that == null) {\n throw new NullPointerException(\"Compare to point is null\");\n }\n if (this.pointEquals(that)) {\n return 0;\n }\n if ((y < that.y) || ((y == that.y) && (x < that.x))) {\n return -1;\n }\n return 1;\n }", "title": "" }, { "docid": "c8e4f225ab95a4a2e956b3b513c94d11", "score": "0.52770156", "text": "public void sortProcessors ()\n\t{\t\t\n Arrays.sort (processors, new Comparator<Processor>() {\n @Override\n public int compare (final Processor proc1, final Processor proc2) \n { \t \n return (proc1.getId()-proc2.getId()); \t \n }\n });\t\t\t\t\n\t}", "title": "" }, { "docid": "d6d2b04e58f53d01fd37f1727276790e", "score": "0.527165", "text": "void sortAscending(P[] array);", "title": "" }, { "docid": "db9cccea56654ca34d8a7c29816587f8", "score": "0.5267121", "text": "@Override\n\tpublic int compare(Sensor sensor1, Sensor sensor2) {\n\t\tif(sensor1.x-sensor2.x > 0)\n\t\t\treturn 1;\n\t\telse if(sensor1.x-sensor2.x < 0)\n\t\t\treturn -1;\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "bdaa2899bd02a82dd0e752d3273e11ac", "score": "0.526659", "text": "private void sortCandidatesOnVotes() {\n // Bubble sort the candidates based on number of votes acquired from highest to lowest\n for (int i = candidates.length - 1; i >= 0; i--) {\n for (int j = 0; j < i; j++) {\n if (candidates[j].getNumVotes() < candidates[j+1].getNumVotes()) {\n Candidate temp = candidates[j];\n candidates[j] = candidates[j+1];\n candidates[j+1] = temp;\n } else if (candidates[j].getNumVotes() == candidates[j+1].getNumVotes()) {\n // Case in which there is a tie. Chose a random candidate to be ahead in the order.\n int rand = (int)(Math.random()*2); // rand is either 0 or 1 with equal probability\n if (rand == 0) {\n Candidate temp = candidates[j];\n candidates[j] = candidates[j+1];\n candidates[j+1] = temp;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "b0e157dbffe16ec6622be4fe2d968bd3", "score": "0.5266561", "text": "public static Comparator<Score> getCompByPoints()\n\t{ \n\t Comparator<Score> comp = new Comparator<Score>(){\n\t @Override\n\t public int compare(Score s1, Score s2)\n\t {\n\t return Integer.compare(s2.getPoints(), s1.getPoints());\n\t } \n\t };\n\t return comp;\n\t}", "title": "" }, { "docid": "b84fababcabce00066708d2d31724663", "score": "0.52598983", "text": "@Test\n public void testCompare() {\n System.out.println(\"Testing QuickSort with XYComparator\");\n\n Point2D[] taulu = getTestData(2);\n\n /*System.out.println(\"Before:\");\n for (int ii = 0; ii < taulu.length; ii++) {\n System.out.println(taulu[ii] + \" \");\n }\n System.out.println();\n */\n QuickSort.<Point2D>sort(taulu, new XYComparator());\n\n System.out.println(\"After Quicksort:\");\n int j = 1;\n for (int ii = 0; ii < taulu.length; ii++) {\n assertTrue(taulu[ii].getY() <= taulu[j].getY());\n //System.out.println(taulu[ii] + \" \" + ii);\n j = ii + 1;\n }\n\n }", "title": "" }, { "docid": "b32b49899453f783aa0ad92c0903fc25", "score": "0.5221375", "text": "@Override\n public int compare(Spot x, Spot y){\n float[] xxx = null, yyy = null;\n if(x==null || y==null) return -1;\n Location.distanceBetween(x.location.getLatitude(), x.location.getLongitude(), destination.getLatitude(), destination.getLongitude(), xxx);\n Location.distanceBetween(y.location.getLatitude(), y.location.getLongitude(), destination.getLatitude(), destination.getLongitude(), yyy);\n if(xxx[0] > yyy[0]) return 0;\n return 1;\n }", "title": "" }, { "docid": "8126bcdb293e49edec814112d3bea1c4", "score": "0.5211214", "text": "public DataPointComparator(DataPoint dataPoint) {\n this.dataPoint = dataPoint;\n }", "title": "" }, { "docid": "d7dd16a56ff7948d8cbc75d44c1b5519", "score": "0.5204951", "text": "default int compare(P first, P second) {\n return first.compareTo(second);\n }", "title": "" }, { "docid": "890ab1b4c753209f41ceb8e5a0aa1a6b", "score": "0.5202189", "text": "public static void main(String[] args) {\n allPoints.add(new Point(5, 8));\r\n allPoints.add(new Point(10, 8));\r\n allPoints.add(new Point(11, 8));\r\n allPoints.add(new Point(6, 7));\r\n allPoints.add(new Point(10, 7));\r\n allPoints.add(new Point(12, 7));\r\n allPoints.add(new Point(13, 7));\r\n allPoints.add(new Point(5, 6));\r\n allPoints.add(new Point(10, 6));\r\n allPoints.add(new Point(13, 6));\r\n allPoints.add(new Point(6, 5));\r\n allPoints.add(new Point(9, 4));\r\n allPoints.add(new Point(11, 5));\r\n allPoints.add(new Point(14, 6));\r\n allPoints.add(new Point(15, 5));\r\n allPoints.add(new Point(2, 4));\r\n allPoints.add(new Point(3, 4));\r\n allPoints.add(new Point(5, 4));\r\n allPoints.add(new Point(6, 4));\r\n allPoints.add(new Point(7, 4));\r\n allPoints.add(new Point(15, 4));\r\n allPoints.add(new Point(3, 3));\r\n allPoints.add(new Point(7, 3));\r\n allPoints.add(new Point(8, 2));\r\n\r\n double minEps = 2;\r\n int minPts = 3;\r\n\r\n for (Point p : allPoints) {\r\n List<Point> Neps = new ArrayList();\r\n for (Point others : allPoints) {\r\n if (p.equals(others)) {\r\n } //ne pas ajouter lui meme\r\n else {\r\n double dist = (Math.sqrt(Math.pow(p.getX() - others.getX(), 2) + Math.pow(p.getY() - others.getY(), 2)));\r\n if ((dist <= minEps) && (dist != 0)) {\r\n Neps.add(others);\r\n }\r\n }\r\n\r\n }\r\n p.setIdClus(0);\r\n listVoisinageDesPoints.put(p, Neps);\r\n if (Neps.size() >= minPts) {\r\n ListCenter.add(p);\r\n }\r\n if (Neps.size() == 0) {\r\n ListNoise.add(p);\r\n }\r\n }\r\n//\r\n// for (Map.Entry<Point, List<Point>> entry : listVoisinageDesPoints.entrySet()) {\r\n// System.out.println(entry);\r\n// }\r\n\r\n int k = 0;\r\n\r\n for (Point centre : ListCenter) {\r\n if (centre.getIdClus() == 0) {\r\n k++;\r\n centre.setIdClus(k);\r\n connected(centre, k);\r\n }\r\n }\r\n\r\n for (Point p : allPoints) {\r\n if (!ListCenter.contains(p) && !ListNoise.contains(p)) {\r\n ListBorder.add(p);\r\n }\r\n }\r\n\r\n int clusNum = 0;\r\n for (int i = 0; i < allPoints.size(); i++) {\r\n if (i < allPoints.size() - 1 && (allPoints.get(i).getIdClus() < allPoints.get(i + 1).getIdClus())) {\r\n clusNum = allPoints.get(i + 1).getIdClus();\r\n// System.out.println(clusNum);\r\n }\r\n }\r\n for (int i = 0; i < clusNum; i++) {\r\n System.out.print(\"Cluster \" + (i + 1) + \" \");\r\n for (Point p : allPoints) {\r\n if (p.getIdClus() == i + 1) {\r\n System.out.print(p.toString());\r\n }\r\n }\r\n System.out.println(\"\");\r\n }\r\n if (ListBorder.size() != 0) {\r\n System.out.print(\"Borders : \");\r\n for (Point p : ListBorder) {\r\n System.out.print(p.toString());\r\n }\r\n } else {\r\n System.out.println(\"No Borders\");\r\n }\r\n\r\n System.out.println(\"\");\r\n\r\n if (ListNoise.size() != 0) {\r\n System.out.print(\"Noises : \");\r\n\r\n for (Point p : ListNoise) {\r\n System.out.print(p.toString());\r\n }\r\n } else {\r\n System.out.println(\"No Noises\");\r\n }\r\n System.out.println(\"\");\r\n }", "title": "" }, { "docid": "87fffc62f793a9850e34d165889a07ae", "score": "0.5196671", "text": "public void sortByName(){}", "title": "" }, { "docid": "783f697a3c114bb2025e20dff82a6656", "score": "0.5195251", "text": "public void localSort() {\n\t\tCollections.sort(this.elements);\n\t}", "title": "" }, { "docid": "5f33b28729ecb40e1f2089ec02b780ba", "score": "0.5183765", "text": "public DataPointComparator() {\n this.dataPoint = this;\n }", "title": "" }, { "docid": "f239e9103d2415d8e36d732d15ee582a", "score": "0.51758075", "text": "@Override\n\tpublic int compare(Persona o1, Persona o2) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "778e646bd407bf7048a3c83eaa9c9262", "score": "0.5175061", "text": "private void sortAsc() {\n\t\t// Sorting using TreeSet Data Structure, the order of elements is maintained\n\t\t// -----------------------\n\t\tSet<User> set = new TreeSet<User>(names);\n\t\tnames = new ArrayList<User>();\n\t\tnames.addAll(set);\n\t}", "title": "" }, { "docid": "83ac42bce00b4dd152b96e4a1da2ec6e", "score": "0.51727074", "text": "@Override\n\t protected void sort(List<Village> list) {\n\t }", "title": "" }, { "docid": "4353dd909ea75a8bcddb079eddf6c0c4", "score": "0.5168522", "text": "public void sortPokemon(){\r\n\t\t//Declares and initializes sort\r\n\t\tString sort = \"\";\r\n\t\t//nested for loop to get the position of the pokemon in the Pokemon array\r\n\t\t//Referenced from http://www.sanfoundry.com/java-program-sort-names-alphabetical-order/\r\n\t\tfor (int i = 0; i < pokemonIn; i++) {\r\n\t\t\tfor (int j = i + 1; j < pokemonIn; j++) {\r\n\t\t\t\t//Compares the pokemons at i and j index from Pokemon array \r\n\t\t\t\tif (arrayPm[i].getSpecies().compareToIgnoreCase(arrayPm[j].getSpecies()) > 0) {\r\n\t\t\t\t\t//Sets the pokemons in a ascending sort\r\n\t\t\t\t\tsort = arrayPm[i].getSpecies();\r\n\t\t\t\t\t//Swaps the pokemons \r\n\t\t\t\t\tarrayPm[i].species = arrayPm[j].getSpecies();\r\n\t\t\t\t\t//Sets the pokemons in alphabetical order \r\n\t\t\t\t\tarrayPm[j].species = sort;\r\n\t\t\t\t}//closes if statement \r\n\t\t\t}//closes 2nd for-loop\r\n\t\t}//closes 1st for-loop\r\n\t}", "title": "" }, { "docid": "dde00a3bc42d4230b353a2d64cd39b1e", "score": "0.51658857", "text": "void heap_sort(ArrayList<Punto> T){\r\n \r\n Punto aux;\r\n \r\n int n = T.size();\r\n build_heap(T);\r\n for(int i = n-1 ; i >= 0 ; --i){\r\n \r\n aux = T.get(i);\r\n T.set(i,T.get(0));\r\n T.set(0, aux); \r\n \r\n heapify(T,i,0);\r\n }\r\n \r\n }", "title": "" }, { "docid": "b693fa9d0126806168a41f400a9095ce", "score": "0.51632863", "text": "protected void sortAll(){\r\n\t\t//sort every Array in this 2D Array of Complex\r\n\t\tsortArrayOfComplex();\r\n\r\n\t\t//Sorting 2D arrays based on the y value of first element of every array\r\n\t\tsortFirstColumnOf2DComplex();\r\n\r\n\t\t//sorting the last five elements\r\n\t\tsortLastFiveElements();\r\n\t}", "title": "" }, { "docid": "531f916839eea11e15c7615c5db6ad30", "score": "0.5160241", "text": "public void sortPokedex() {\n Pokemon temp; // temporary Pokemon, used for swapping\r\n\r\n if (pokemons.length == 0) { // if the array is length 0 or 1, break out of the method\r\n return;\r\n } else if (pokemons.length == 1) {\r\n return;\r\n }\r\n // Bubble sorting, method learned from https://mathbits.com/MathBits/Java/arrays/ABCSort.htm\r\n for (int i = 0; i < pokemons.length - 1; i++) {\r\n for (int j = i + 1; j < pokemons.length; j++) {\r\n if (pokemons[j] != null) { // if the next value is not empty, swap the objects\r\n if (pokemons[i].getSpecies().compareToIgnoreCase(pokemons[j].getSpecies()) > 0) { // ascending sort\r\n temp = pokemons[i];\r\n pokemons[i] = pokemons[j];// swapping\r\n pokemons[j] = temp;\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "4d393ddbee04b6303e670fb3fdb3f1d7", "score": "0.51531464", "text": "public void sortAlphabetic() {\n\t\tif(!getChildren().isEmpty()){\n\t\t\tHashMap<String, ShapeTreeNode> map = new HashMap<String, ShapeTreeNode>();\n\t\t\tfor(ShapeTreeNode node : getChildren()){\n\t\t\t\tmap.put(node.getName(), node);\n\t\t\t}\n\t\t\tCollection<String> sorted = new TreeSet<String>(Collator.getInstance());\n\t\t\tfor(ShapeTreeNode node : getChildren()){\n\t\t\t\tsorted.add(node.getName());\n\t\t\t}\n\t\t\tArrayList<ShapeTreeNode> list = new ArrayList<ShapeTreeNode>();\n\t\t\tfor(String node : sorted){\n\t\t\t\tlist.add(map.get(node));\n\t\t\t}\n\t\t\tsetChildren(list);\n\t\t}\n\t}", "title": "" }, { "docid": "537603230de7db77b0b4bfd86a53cfdd", "score": "0.5150438", "text": "public void setXOrdering (int xOrdering) {\n\t\tthis.xOrdering = xOrdering;\n\t}", "title": "" }, { "docid": "c0f6d068df03528a143502cc3831829f", "score": "0.514963", "text": "public void sortObject() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n for (int i = orders.size(); i > 0; i--) {\n for (int j = 0; j < i-1; j++) {\n Order order1 = orders.get(j);\n Order order2 = orders.get(j + 1);\n long number1 = getLongOutOfString(dateFormat, order1);\n long number2 = getLongOutOfString(dateFormat, order2);\n if (number2 >= number1) {\n Collections.swap(this.orders, j, j + 1);\n }\n }\n\n }\n }", "title": "" }, { "docid": "ce557e6ced331a7cb9883d2718903bdd", "score": "0.51399183", "text": "@Override\n public void sort() {\n\tthis.firstNode = _sort(this.firstNode);\n\tresetLastNode();\n }", "title": "" }, { "docid": "a4b22fec11564c601f5a66e5d0980195", "score": "0.5135852", "text": "@Override\n \tpublic int compare(Object x, Object y) {\n \t\tif ( x == null ) {\n \t\t\t// if y is also null, return that they are the same (no option for \"UNKNOWN\")\n \t\t\t// if y is not null, return that y is \"greater\" (-1 because the result is from the perspective of\n \t\t\t// \t\tthe first arg: x)\n \t\t\treturn y == null ? 0 : -1;\n \t\t}\n \t\telse if ( y == null ) {\n \t\t\t// x is not null, but y is. return that x is \"greater\"\n \t\t\treturn 1;\n \t\t}\n \n \t\t// At this point we know both are non-null.\n \t\tfinal Object xId = extractIdentifier( x );\n \t\tfinal Object yId = extractIdentifier( y );\n \n \t\treturn getIdentifierType().compare( xId, yId );\n \t}", "title": "" }, { "docid": "05a10763957916697d7c76245446fd7a", "score": "0.51322114", "text": "public void sortCoordinateList(List<House> sortHouseList) {\n \t\tCollections.sort(houseList, new Comparator<House>() {\n \n \t\t\tpublic int compare(House h1, House h2) {\n \t\t\t\treturn h1.getLectureRoom().compareTo(h2.getLectureRoom());\n \n \t\t\t}\n \t\t});\n \t}", "title": "" }, { "docid": "c7e3c72a7ce0dee709c6b8bd3e7fae5a", "score": "0.5131171", "text": "public void sortProcessID(ArrayList<CPUProcess> processes){\r\n Collections.sort(processes, Comparator.comparing(CPUProcess::getPROCESS_ID)\r\n .thenComparing(CPUProcess::getPROCESS_ID));\r\n }", "title": "" }, { "docid": "6e5e7b8d6e28ced4d9e5e480d6a3db6c", "score": "0.5123688", "text": "protected void sortRings()\n {\n QuickInsertSort sorting = new QuickInsertSort();\n\n RingSizeComparator ringSizeComparator = new RingSizeComparator();\n sorting.sort(ringList, ringSizeComparator);\n }", "title": "" }, { "docid": "374ea83cdd0951614aa5afc641cbae07", "score": "0.5109565", "text": "@Override \n public int compare(String X, String Y)\n {\n \n // first append Y at the end of X\n String XY = X + Y;\n \n // then append X at the end of Y\n String YX = Y + X;\n \n // Now see which of the two\n // formed numbers\n // is greater\n return XY.compareTo(YX) > 0 ? -1 : 1;// reversing the o/p so that array can be sort in desending order\n }", "title": "" }, { "docid": "4f8b771b9c06775febcc99e9206b39ba", "score": "0.5109336", "text": "public void sort () {\n\t\t\n\t\tCollections.sort(photo_tags, new Comparator<Tag>(){\n\t\t\tpublic int compare(Tag a, Tag b) {\n\t\t\t\treturn a.getValue().compareTo(b.getValue());\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "0838365f0ec08c468d666f023193cbd4", "score": "0.51081574", "text": "public static void main(String[] args) {\n\tList<String> animal = new ArrayList<String>();\r\n\tanimal.add(\"elephant\");\r\n\tanimal.add(\"cow\");\r\n\tanimal.add(\"beer\");\r\n\tanimal.add(\"rateee\");\r\n\tanimal.add(\"dogg\");\r\n\t// sort the list by string length \r\n\tSystem.out.println(\" \\n order according to String Length :\");\r\n\tCollections.sort(animal,new StringLengthComparator());\r\n\tfor(String ani:animal)\r\n\t{\r\n\t\tSystem.out.println(ani);\r\n\t}\r\n\t// sort the list by alphabetical order \r\n\tSystem.out.println(\" \\n alpha betical order :\");\r\n\tCollections.sort(animal,new AlphaComparator());\r\n\tfor(String ani:animal)\r\n\t{\r\n\t\tSystem.out.println(ani);\r\n\t}\r\n\tSystem.out.println(\" \\n reverse alpha betical order :\");\r\n\tCollections.sort(animal,new ReverseAlphaComparator());\r\n\tfor(String ani:animal)\r\n\t{\r\n\t\tSystem.out.println(ani);\r\n\t}\r\n\t////////////////Sorting Number //////////////////////////////\r\n\tList<Integer> num = new ArrayList<Integer>();\r\n\tnum.add(30);\r\n\tnum.add(14);\r\n\tnum.add(5);\r\n\tnum.add(45);\r\n\t\r\n\tCollections.sort(num, new Comparator<Integer>(){\r\n\t\tpublic int compare(Integer num1, Integer num2)\r\n\t\t{\r\n\t\t\treturn -num1.compareTo(num2);\r\n\t\t}\r\n\t});\r\n\tfor(Integer ani:num)\r\n\t{\r\n\t\tSystem.out.println(ani);\r\n\t}\r\n\t//////////////////////////SOrting Object/////////////////////////////////\r\n\tList<Person> p1= new ArrayList<Person>();\r\n\tp1.add(new Person(11,\"boe\"));\r\n\tp1.add(new Person(3,\"john\"));\r\n\tp1.add(new Person(9,\"honny\"));\r\n\tp1.add(new Person(4,\"bee\"));\r\n\tp1.add(new Person(1,\"wewoe\"));\r\n\t\r\n\t///////////////////////sort according to id ////////////////////\r\n\tSystem.out.println(\"\\nsort according to id \");\r\n\tCollections.sort(p1, new Comparator<Person>() {\r\n\t\tpublic int compare(Person p1, Person p2)\r\n\t\t{\r\n\t\t\tif(p1.getId()>p2.getId())\r\n\t\t\t\treturn 1;\r\n\t\t\telse \r\n\t\t\t\tif(p1.getId()<p2.getId())\r\n\t\t\t\t\treturn -1;\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t});\r\n\tfor(Person p : p1)\r\n\t{\r\n\t\tSystem.out.println(p);\r\n\t}\r\n/////////////////////sort according to name ////////////////////\r\n\tCollections.sort(p1, new Comparator<Person>() {\r\n\t\tpublic int compare(Person p1, Person p2)\r\n\t\t{\r\n\t\t\treturn p1.getName().compareTo(p2.getName());\r\n\t\t}\r\n\t});\r\n\tSystem.out.println(\"\\nsort according to name\");\r\n\tfor(Person p : p1)\r\n\t{\r\n\t\tSystem.out.println(p);\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "c2d6d2c47731a049653e34d1bee16272", "score": "0.5107218", "text": "public void sortObjects() {\r\n\t\ttry {\r\n\r\n\t\t\tif (list.size() >= 2) {\r\n\t\t\t\tsynchronized (this) {\r\n\t\t\t\t\tCollections.sort(list, new Comparator<Obj3d>() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic int compare(Obj3d o1, Obj3d o2) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\treturn (int) ((o1.getDepthMin() + o1.getDepthMax()) * 100 - (o2.getDepthMin() + o2.getDepthMax()) * 100);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bc6419e400d81fb1a914b4fda60fc066", "score": "0.5101505", "text": "public void sort()\n\t{\n\t\tCollections.sort(contacts);\n\t}", "title": "" }, { "docid": "18b7371ae0fa72060ca13406b40199b1", "score": "0.5100809", "text": "private void lowerHull() {\n Point leftMost = null;\n Point rightMost = null;\n for (Point pt: points) {\n if (leftMost == null || pt.getX() < leftMost.getX())\n leftMost = pt;\n else if (pt.getX() == leftMost.getX() &&\n pt.getY() < leftMost.getY())\n leftMost = pt;\n if (rightMost == null || pt.getX() > rightMost.getX())\n rightMost = pt;\n else if (pt.getX() == rightMost.getX() &&\n pt.getY() < rightMost.getY())\n rightMost = pt;\n }\n Stack<Point> tempPoints = new Stack<>();\n tempPoints.push(leftMost);\n tempPoints.push(rightMost);\n for (Point pt: points) {\n if (pt.getX() != leftMost.getX() && pt.getX() != rightMost.getX())\n tempPoints.push(pt);\n }\n Point[] tempPtsArr = new Point[tempPoints.size()];\n connect(leftMost, rightMost, tempPoints.toArray(tempPtsArr), false);\n }", "title": "" }, { "docid": "7d508d425cc848cbae49f28d447ce3db", "score": "0.5100077", "text": "public static void sortFeatureList(List<? extends LocusScore> features) {\n\n Collections.sort(features, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n LocusScore f1 = (LocusScore) o1;\n LocusScore f2 = (LocusScore) o2;\n return (int) (f1.getStart() - f2.getStart());\n }\n });\n }", "title": "" }, { "docid": "e7cb7a2b1f5ec67e9ee5c02bb0cc3d0f", "score": "0.5095653", "text": "public static void sort(List<mage.Core.Oligo> pool){\n\n\n\t\t// Now sort th by \n\t\tCollections.sort(pool, new Comparator<Oligo>(){\n\n\t\t\t// Implementing standard compare function by \n\t\t\tpublic int compare(final Oligo o1, final mage.Core.Oligo o2) { \n\n\t\t\t\tdouble o1_min= o1.getGreedyScore();\n\t\t\t\tdouble o2_min= o2.getGreedyScore();\n\n\t\t\t\treturn (int) (o2_min - o1_min);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "a9ad385c1f148dcdac3379eb70b7a262", "score": "0.5095229", "text": "public void writePointsToFile() throws FileNotFoundException\n\t{\n\t\tPrintWriter pw = new PrintWriter(this.outputFileName);\n\t\tif(sortByAngle) //our format has to meet the spec found in 4.1 if sortbyangle is true\n\t\t{\n\t\t\tfor (int i = 0; i < points.length; i++)\n\t\t\t{\n\t\t\t\tif (i == 0)\n\t\t\t\t\tpw.println(lowestPoint.getX() + \" \" + lowestPoint.getY());\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpw.println( points[i].getX() + \" \" + points[i].getY() + \" \"\n\t\t\t\t\t\t\t\t+ lowestPoint.getX() + \" \" + lowestPoint.getY() + \" \"\n\t\t\t\t\t\t\t\t+ points[i].getX() + \" \" + points[i].getY() );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse //this is how we print our sorted by x's\n\t\t{\n\t\t\tfor(Point element : points)\n\t\t\t{\n\t\t\t\tpw.println(element.getX() + \" \" + element.getY());\n\t\t\t}\n\t\t}\n\t\tpw.close();//close our printwriter object\n\t}", "title": "" } ]
e684aa73934e2fec6122a2ddfae5445c
different constructor for setting variables after initial set up
[ { "docid": "d9cbbda05d92fb71ab436e30c823073f", "score": "0.0", "text": "public ChessImageTile(BufferedImage im, Size size, char text, Color color, Boolean hasPiece, Boolean highLight) {\n\n this.image = im;\n this.text = text;\n this.color = color;\n this.size = size;\n this.hasPiece = hasPiece;\n this.highLight = highLight;\n }", "title": "" } ]
[ { "docid": "ba00fbffda475132aff7edd952e6e066", "score": "0.72325814", "text": "protected void initVars() {}", "title": "" }, { "docid": "285d9bb4d00c94bc84ec0b23d4bd3115", "score": "0.7118785", "text": "public void initialiser() {\n\t}", "title": "" }, { "docid": "160459601e2e448b3a0e372076b352f6", "score": "0.6945511", "text": "protected void init() {\n\t\t// Intended blank\n\t}", "title": "" }, { "docid": "375a176f446bae339f67b5988b28cd46", "score": "0.6928417", "text": "protected void initialize() {\n\t\tthis.parser = buildParser();\n\t\tthis.inputContext = buildContext();\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.6873013", "text": "protected void init() {}", "title": "" }, { "docid": "28fcdb48fa0b9890f9666ae29ef02f55", "score": "0.6857919", "text": "private void init() {\n\n\t}", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.68137604", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.6811055", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.6811055", "text": "private void init() {\n }", "title": "" }, { "docid": "5d1cb708b3c10ba3e64caaaf3a68577a", "score": "0.6811055", "text": "private void init() {\n }", "title": "" }, { "docid": "1d2b6838b2cf0683e303de9b80cf3738", "score": "0.6798985", "text": "public void init()\n \t{\n \t}", "title": "" }, { "docid": "1d2b6838b2cf0683e303de9b80cf3738", "score": "0.6798985", "text": "public void init()\n \t{\n \t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.67710644", "text": "private void init() {\n\t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.67710644", "text": "private void init() {\n\t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.67710644", "text": "private void init() {\n\t}", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.67247087", "text": "public void init() {}", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.67247087", "text": "public void init() {}", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.67247087", "text": "public void init() {}", "title": "" }, { "docid": "229a70d481924829deec962d4aa9542c", "score": "0.67247087", "text": "public void init() {}", "title": "" }, { "docid": "fe155407156e47f0fbc8845839f1c3ae", "score": "0.67150337", "text": "public void init() {\n\n\t}", "title": "" }, { "docid": "fe155407156e47f0fbc8845839f1c3ae", "score": "0.67150337", "text": "public void init() {\n\n\t}", "title": "" }, { "docid": "fe155407156e47f0fbc8845839f1c3ae", "score": "0.67150337", "text": "public void init() {\n\n\t}", "title": "" }, { "docid": "b6a0de05549859ee3510f08d68781f88", "score": "0.6713223", "text": "public Options()\n {\n // initialze the Properties object of values to be stored as\n // in the session\n books.setProperty( \"Java\", \"0132222205\" );\n books.setProperty( \"C++\", \"0136152503\" );\n books.setProperty( \"Visual Basic 2005\", \"0131869000\" );\n books.setProperty( \"Visual C# 2005\", \"0131525239\" );\n books.setProperty( \"Internet & Web\", \"0131752421\" );\n }", "title": "" }, { "docid": "2f92bc3792fa33e665b9667c682d2256", "score": "0.67052907", "text": "@Override\r\n\tprotected void construct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b67114a610a27936202cffcf0479b716", "score": "0.67048275", "text": "public void init () {}", "title": "" }, { "docid": "f1be3defd1b6e608b8995eb6221bb211", "score": "0.6694224", "text": "public void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f1be3defd1b6e608b8995eb6221bb211", "score": "0.6694224", "text": "public void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c718d36c0aa96259de6d2c957ed6e087", "score": "0.6681579", "text": "protected void initializeVariables() {\r\n }", "title": "" }, { "docid": "e0f729328fd258821b24508a3ef1a130", "score": "0.6662249", "text": "protected void initialize() {}", "title": "" }, { "docid": "af85e0355d9e4b6d2816928d3c4dadb7", "score": "0.66621834", "text": "private void init() {\n\n }", "title": "" }, { "docid": "8bb1a550511236f4395f4b86c564e070", "score": "0.6661249", "text": "public Javaconstructor()\r\n\t{\r\n\t\tx=5; //set the initial value of class attribute x\r\n\t}", "title": "" }, { "docid": "d332aa362544b46b4a1ec146d5712263", "score": "0.665004", "text": "protected void initialize( )\n \t{\n \n \t}", "title": "" }, { "docid": "91a63efaf9b36d14bb3c89f41651ef9f", "score": "0.66189295", "text": "private void init(){\n }", "title": "" }, { "docid": "09579e543452e5e8a32eac4379ef585e", "score": "0.65861624", "text": "public void init()\n\t{\n\t}", "title": "" }, { "docid": "7b2ed9aa1a6f17d265f092b245f8c4c3", "score": "0.6583247", "text": "public void init() {\n\t}", "title": "" }, { "docid": "7b2ed9aa1a6f17d265f092b245f8c4c3", "score": "0.6583247", "text": "public void init() {\n\t}", "title": "" }, { "docid": "95be4fdee6d995b424f0a4e840e2c875", "score": "0.656152", "text": "@Override\r\n\tpublic void init()\r\n\t{\r\n\t}", "title": "" }, { "docid": "bda6bb458e1dd43448b4b1f9b4dabd89", "score": "0.6543171", "text": "protected void initialize() { }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.6542343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.6542343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.6542343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.6542343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab7725801b3a3abb80e174bd32d15d2a", "score": "0.6535303", "text": "public void init(){\n\n\t}", "title": "" }, { "docid": "8eba516e4a5c601beee9691aa679ec0e", "score": "0.6503249", "text": "public void init() {\n }", "title": "" }, { "docid": "8eba516e4a5c601beee9691aa679ec0e", "score": "0.6503249", "text": "public void init() {\n }", "title": "" }, { "docid": "8eba516e4a5c601beee9691aa679ec0e", "score": "0.6503249", "text": "public void init() {\n }", "title": "" }, { "docid": "98c8a0a605f47be2fec753c365daf2f3", "score": "0.65013194", "text": "abstract protected void initializeVariables();", "title": "" }, { "docid": "9a877f5edd50a91e2b548e32a9724af8", "score": "0.65005696", "text": "public A104088() {\n this(3);\n }", "title": "" }, { "docid": "29c6ffbbf3d12e7afdc2a24b0889db2f", "score": "0.65004075", "text": "protected abstract void initialise();", "title": "" }, { "docid": "e71e10f1169dc532ef516195192d3ba6", "score": "0.64971054", "text": "private void initialize() {\n }", "title": "" }, { "docid": "833a11e8e1dc266154217ac8904e1b11", "score": "0.64964914", "text": "protected void construct() {\n // -1. the logic diffs according to the number of input wires\n prepare();\n // 0. construct logic first\n logic();\n // 1. connect node ports to external wires then\n connect();\n }", "title": "" }, { "docid": "ee00c08e52bc91d25b61615669f6516d", "score": "0.64816463", "text": "public void initialize() {\r\n\r\n\t}", "title": "" }, { "docid": "e61bb217b5db189102cee7105d15c346", "score": "0.6481032", "text": "public static void init() {\n \t}", "title": "" }, { "docid": "5a6e5984ef80aaa2acb781e9658305a5", "score": "0.64791393", "text": "public void init(Properties arg0, Attributes arg1) {\n\t\t\r\n\t}", "title": "" }, { "docid": "340ce47090149fdc435328a2fd8c972c", "score": "0.64699435", "text": "private void init() { \n }", "title": "" }, { "docid": "12aca2c9ad0caf7f6c01c3976f5237eb", "score": "0.6464763", "text": "public GPVariables() { /*gets default values above*/ }", "title": "" }, { "docid": "5039a5e0517d7ccdaa395488a6db65bc", "score": "0.6458475", "text": "protected void initialize() {\n \t\n }", "title": "" }, { "docid": "5039a5e0517d7ccdaa395488a6db65bc", "score": "0.6458475", "text": "protected void initialize() {\n \t\n }", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.64419806", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "ee990933b050e8948a61e0ff05746025", "score": "0.6434021", "text": "public void init()\n {\n }", "title": "" }, { "docid": "4534e357bda9c4ed60758c78c3bce2af", "score": "0.6428556", "text": "private void init(String paramString1, String paramString2, int paramInt1, int paramInt2) {\n/* 194 */ this.publicId = paramString1;\n/* 195 */ this.systemId = paramString2;\n/* 196 */ this.lineNumber = paramInt1;\n/* 197 */ this.columnNumber = paramInt2;\n/* */ }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.64238936", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e5ccc0d4ee32e7b2d323941bb71c32c", "score": "0.6423861", "text": "public ThisConstructor() \n\t{\n\t\t// TODO Auto-generated constructor stub\n\t\tthis(1,1);\n\t}", "title": "" }, { "docid": "53a90ad3b986e003ac1aa4873d3c4efe", "score": "0.64199674", "text": "protected void init () {\r\n allConstants = new Hashtable(41);\r\n allTypes = new Hashtable(201);\r\n allRoutines = new Hashtable(601);\r\n programs = new KStructNodeVector(this, 75);\r\n units = new KStructNodeVector(this, 150);\r\n constants = new KStructNodeVector(this, 100);\r\n types = new KStructNodeVector(this, 250);\r\n variables = new KStructNodeVector(this, 250);\r\n routines = new KStructNodeVector(this, 250);\r\n }", "title": "" }, { "docid": "f48afa1663b55b94631eb4d13c5b3807", "score": "0.6418856", "text": "protected void init() {\n this.setHost(DEFAULT_HOST);\n this.setPort(DEFAULT_PORT);\n this.setUser(DEFAULT_USER);\n this.setPassword(DEFAULT_PASSWORD);\n this.setDatabase(DEFAULT_SCHEMA);\n }", "title": "" }, { "docid": "5e528a28656dfaa2fdbda1d4bcb52662", "score": "0.6415878", "text": "protected void initialize() {\n \t//System.out.println(\"Autonome : Avance Droite\");\n \tconducteur = new Conducteur(Robot.driveTrain, 5); //4.37;\n }", "title": "" }, { "docid": "1fb0553776642cb5a037e8df6b4c349d", "score": "0.64158666", "text": "public void initialize() {\n\n\t}", "title": "" }, { "docid": "c83776e9abdcb308cf344d74869862ed", "score": "0.6404449", "text": "@Override\r\n\tpublic void initialise() {\n\r\n\t}", "title": "" }, { "docid": "f0c056fa041d27da2cedd03cc169b327", "score": "0.6402595", "text": "public Mnohotvar()\n {\n this( \"\" );\n }", "title": "" }, { "docid": "ab334e96643600a3cce32bc3f018609f", "score": "0.6401855", "text": "abstract void init();", "title": "" }, { "docid": "8b393c8f4e41516605bf5a9313f69415", "score": "0.640056", "text": "private IncrementalAnalysisSettings() {\n\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.6399045", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.6399045", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.6399045", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.6399045", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.6399045", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.6399045", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "98b97bb7232de5154ba0dd568423bfec", "score": "0.6396086", "text": "private void initialize() {\n\n }", "title": "" }, { "docid": "7bbd39292a203364131e887dc97c2b5d", "score": "0.6394138", "text": "protected LCS() {\n\t}", "title": "" }, { "docid": "a800bf88766287243d030ac55d1e80d8", "score": "0.63890433", "text": "protected abstract void init();", "title": "" }, { "docid": "2c780b85daac33aa6b559148e4a5660a", "score": "0.63883334", "text": "private void initValues() {\n }", "title": "" }, { "docid": "559497eafde9eaa69142d8e56adfb1ee", "score": "0.6387268", "text": "public static void init()\n {\n \n\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.6383157", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "1bb2ba2fd698bfb2b8b88494f3d5649d", "score": "0.6382857", "text": "@Override\n\tpublic void init()\n\t{\n\t}", "title": "" }, { "docid": "cc3128aeacae6aef78ce06f32c04010b", "score": "0.63798857", "text": "static void init() {\n values(); // calls the constructor for all the elements\n }", "title": "" }, { "docid": "217d0ca1ab7a7e1b955d93c4c6af164e", "score": "0.6379393", "text": "public final void initialize()\r\n\t{\n\t\t_life = _lifetime.randomFloat();\r\n\t\t_time = 0f;\r\n\t\t_alive = false;\r\n\t\t_enabled = true;\r\n\t\t// Call on sub-class to initialize the rest.\r\n\t\tonInitialize();\r\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.6368881", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "d1770a110d73ef322ff034ee82dc51ac", "score": "0.6364862", "text": "protected void initialize()\r\n {\r\n }", "title": "" }, { "docid": "f6a68fd4160f59c850808e7dc0162714", "score": "0.6363165", "text": "@Override\n protected void initialize() {\n \t\n }", "title": "" }, { "docid": "9aace6abe1929ddb11697d6fcd2fa69c", "score": "0.6360854", "text": "@Override\r\n public void init() {\n }", "title": "" }, { "docid": "56df579e3675b7cc425bb14e73089355", "score": "0.6358849", "text": "protected void initialize() {\n\n\t}", "title": "" } ]
dea3096b7e232c139419b9a20b081297
Returns an array with a runtime type is that of the specified array and that contains all of the values in the Collection. If the Collection fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this collection. If the Collection fits in the specified array with room to spare (i.e., the array has more elements than the Collection), the element in the array immediately following the end of the Collection is set to null. This is useful in determining the length of the Collection only if the caller knows that the Collection does not contain any null values.)
[ { "docid": "19e04f4275f3764e5d955d7e8c3956c9", "score": "0.0", "text": "public Object[] toArray(Object ao[])\n {\n SegmentedHashMap map = SegmentedHashMap.this;\n IterableEntryAction actionEntry = new EntryActionAdapter()\n {\n public Object invokeFound(Object oKey, Object oContext,\n Entry[] aeBucket, int nBucket,\n Entry entryPrev, Entry entryCur)\n {\n if (!entryCur.isSynthetic())\n {\n ((List) oContext).add(entryCur.getValue());\n }\n return NO_VALUE;\n }\n };\n return map.toArrayInternal(actionEntry, ao);\n }", "title": "" } ]
[ { "docid": "a24c1a7caf5f552139c21fb99881ef88", "score": "0.60021335", "text": "static <T> void fromArrayToCollection(T[] a, Collection<T> c) {\n for (T o : a) {\n c.add(o); // correct\n }\n }", "title": "" }, { "docid": "46a6fe2e641719f9f5f957bb892868b8", "score": "0.595371", "text": "public static <T> T[] array(T[] a, Generator<T> gen) { \r\nreturn new CollectionData<T>(gen, a.length).toArray(a); \r\n}", "title": "" }, { "docid": "652f766e66080c51d9d9946b976ce5e5", "score": "0.58361304", "text": "public edu.umich.icpsr.ddi.DataCollType[] getDataCollArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DATACOLL$0, targetList);\n edu.umich.icpsr.ddi.DataCollType[] result = new edu.umich.icpsr.ddi.DataCollType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "title": "" }, { "docid": "613177d907976111a6bf02635d3a4345", "score": "0.5807161", "text": "public T[] toArray() {\r\n\t\t// the cast is safe because the new array contains null entries\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] result = (T[]) new Object[numberOfEntries]; // unchecked cast\r\n\t\tfor (int index = 0; index < numberOfEntries; index++) {\r\n\t\t\tresult[index] = bag[index];\r\n\t\t} // end for\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "a1b0f0bbd3e462115f622d9a6e0f3940", "score": "0.56900626", "text": "@SuppressWarnings(\"unchecked\") \r\npublic static <T> T[] array(Class<T> type, \r\nGenerator<T> gen, int size) { \r\nT[] a = \r\n(T[])java.lang.reflect.Array.newInstance(type, size); \r\nreturn new CollectionData<T>(gen, size).toArray(a); \r\n}", "title": "" }, { "docid": "eec13c5d5873da8311b4e2d72a56f88b", "score": "0.5612009", "text": "@Override\n public <T> T[] toArray(T[] a) {\n return wrappedSet.toArray(a);\n }", "title": "" }, { "docid": "36489c8f891c727b4a5f83d2a007e611", "score": "0.5590434", "text": "@Override // com.google.common.reflect.TypeVisitor\n public void visitGenericArrayType(GenericArrayType t) {\n ImmutableSet.Builder.this.add((Object) Types.getArrayClass(TypeToken.getRawType(t.getGenericComponentType())));\n }", "title": "" }, { "docid": "8f2d0dac1bee3e41cbb6e33324ea82a4", "score": "0.5577719", "text": "@Override\n public Object[] toArray(){\n return Arrays.copyOf(elements, size);\n }", "title": "" }, { "docid": "8fe548a2ad21d6b44e53ddf8563b8180", "score": "0.5537744", "text": "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\r\n\tpublic static void mergeArrayIntoCollection(Object array, Collection collection) {\r\n\t\tAssert.notNull(collection, \"Collection must not be null\");\r\n\t\t\r\n\t\tcollection.addAll(arrayToList(array));\r\n\t}", "title": "" }, { "docid": "1b9edf82157d80d5aaab3557b92e4166", "score": "0.5481098", "text": "Field getArray();", "title": "" }, { "docid": "1aefecb56797fb4505b9b20489c2554b", "score": "0.5474092", "text": "private Object convertToArray(Object[] array, Class<?> elementType) {\n\t\tObject result = Array.newInstance(elementType, array.length);\n\t\tif (elementType.isArray()) {\n\t\t\t for (int i = 0; i < array.length; i++) {\n\t\t\t\t if (array[i] != null) {\n\t\t\t\t\t Array.set(result, i, convertToType(array[i], elementType));\n\t\t\t\t }\n\t\t\t }\n\t\t} else {\n\t\t\tConverter converter = elementConverter.lookup(elementType);\n\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\tObject item = elementConverter.convert(array[i], elementType, converter);\n\t\t\t\tArray.set(result, i, item);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "56dbff9b8f718fa2cc771175f16fd766", "score": "0.5469524", "text": "public static Type[] m32100b(Collection<Type> collection) {\n return (Type[]) collection.toArray(new Type[collection.size()]);\n }", "title": "" }, { "docid": "962096b35776d90af0e8013eb4b40a85", "score": "0.54380214", "text": "private static Object[] getBoxedArray(Object array) {\n if (byte[].class.isAssignableFrom(array.getClass())) {\n return boxArray((byte[]) array);\n } else if (char[].class.isAssignableFrom(array.getClass())) {\n return boxArray((char[]) array);\n } else if (short[].class.isAssignableFrom(array.getClass())) {\n return boxArray((short[]) array);\n } else if (int[].class.isAssignableFrom(array.getClass())) {\n return boxArray((int[]) array);\n } else if (long[].class.isAssignableFrom(array.getClass())) {\n return boxArray((long[]) array);\n } else if (float[].class.isAssignableFrom(array.getClass())) {\n return boxArray((float[]) array);\n } else if (double[].class.isAssignableFrom(array.getClass())) {\n return boxArray((double[]) array);\n } else if (boolean[].class.isAssignableFrom(array.getClass())) {\n return boxArray((boolean[]) array);\n } else {\n return (Object[]) array;\n }\n }", "title": "" }, { "docid": "98e11262d038e2ed76236c16bb4cce7c", "score": "0.5431702", "text": "ArrayType createArrayType();", "title": "" }, { "docid": "d4ff42a0d66ad37bc2398ce3ec3e4972", "score": "0.54226196", "text": "arrayType createarrayType();", "title": "" }, { "docid": "140651f4379b4ebd7a64f79d3232b18e", "score": "0.5420389", "text": "public abstract T[] toArray();", "title": "" }, { "docid": "d125db99abf9f660d1adc8c092e5ddb1", "score": "0.5418424", "text": "@SuppressWarnings(\"unchecked\") @Beta public Object[] getValues() {\n T[] r = getValues((T[]) EMPTY_ARRAY);\n if (r == EMPTY_ARRAY) {\n return new Object[0]; // don't leak the default empty array.\n }\n return r;\n }", "title": "" }, { "docid": "961b15ac50a7b4d4eef2ab4f1d9aa306", "score": "0.54166836", "text": "public TypeOfValue[] toArray();", "title": "" }, { "docid": "55cb821cb8c53d9f24eb80cb52f14a05", "score": "0.5377864", "text": "public Valuation[] toArray() {\n\t Valuation[] valArray = new Valuation[this.size()];\n\t int i = 0; \n\t for(Set<FullType> goods : valMap.keySet()) {\n\t valArray[i] = this.getValuation(goods);\n\t i++;\n\t }\n\t return valArray;\n\t}", "title": "" }, { "docid": "5fd963f405dd633f31d40e85dbe1dc0a", "score": "0.5346719", "text": "@NotNull\n @Override\n public E[] toArray(E[] array) {\n int size = size();\n @SuppressWarnings(\"unchecked\")\n final E[] result = array.length >= size ? array : (E[]) java.lang.reflect.Array.newInstance(array.getClass().getComponentType(), size);\n\n final int[] count = new int[] {0};\n forEach(new Function<E, Object>() {\n @Override\n public Object invoke(E parameter) {\n result[count[0]] = parameter;\n count[0] = count[0] + 1;\n return null;\n }\n });\n\n return result;\n }", "title": "" }, { "docid": "fac60a1070fd12c9e30a8762358d3b0d", "score": "0.53460497", "text": "@Override\n public Object[] toArray() {\n return wrappedSet.toArray();\n }", "title": "" }, { "docid": "fcf8d47e1ee5d1142553d970a9ea7b79", "score": "0.53428996", "text": "@Test\n public void toArray(){\n\n Collection<? super String> collection = Arrays.asList(\"kevin\", \"jack\", \"may\");\n\n Object[] resultObjects = collection.toArray();\n String[] resultStrings = collection.toArray(new String[0]);\n\n assertTrue(Arrays.stream(resultObjects).findAny().get() instanceof Object);\n assertTrue(Arrays.stream(resultStrings).findAny().get() instanceof String);\n }", "title": "" }, { "docid": "91a90eed43076854ddc4844839625b12", "score": "0.5326447", "text": "@Override\r\n\tpublic T[] toArray() {\n\t\tObject tempArry[] = new Object[count];\r\n\t\tfor(int i = 0; i< count; i++) {\r\n\t\t\ttempArry[i] = a[i];\r\n\t\t}\r\n\t\treturn (T[])tempArry;\r\n\t}", "title": "" }, { "docid": "11aca85348aa7c97ae1594407442e152", "score": "0.53262216", "text": "public abstract List<ValueMetaData> createArray(String arrayType, String elementType);", "title": "" }, { "docid": "04156e91816efc93ffd5cf3f9f48ce6f", "score": "0.53255135", "text": "@SuppressWarnings({ \"hiding\", \"unchecked\" })\n public <T> T[] toArray(T[] a) {\n final Class<?> componentType = a.getClass().getComponentType();\n T[] out = (T[]) java.lang.reflect.Array.newInstance(componentType, myvalues.size());\n\n Arrays.setAll(out, (i) -> (T) createFieldValue(myvalues.get(i)));\n return out;\n }", "title": "" }, { "docid": "b7d6b475432ddb78822a849aca49769a", "score": "0.5306908", "text": "@Test\n public void getFilledArray() {\n \n assertArrayEquals(new String[] { \"Foo\", \"Foo\" }, CollectionHelper.getFilledArray(\"Foo\", 2));\n assertArrayEquals(new int[] { 1, 1 }, CollectionHelper.getFilledArray(1, 2));\n }", "title": "" }, { "docid": "f79da04e1fa653bf39a38c3bae6af7a9", "score": "0.52633", "text": "@SuppressWarnings(\"unchecked\") public static <V> V[] cat(Collection<V[]> arrays) {\n List<V> elements = new ArrayList<V>();\n\n for (V[] array : arrays)\n for (V element : array)\n elements.add(element);\n\n return (V[]) elements.toArray();\n }", "title": "" }, { "docid": "289a59847390439c7f89c3a913e349d4", "score": "0.52456367", "text": "public Long[] toArray () {\n Long[] newArray = new Long[elements.length];\n System.arraycopy(elements, 0, newArray, 0, elements.length);\n for (int i = 0; i < newArray.length; i++) {\n for (int j = i + 1; j < newArray.length; j++) {\n if (newArray[i] == newArray[j]) {\n newArray[j] = null;\n }\n }\n }\n int items = 0;\n for (int i = 0; i < newArray.length; i++) {\n if (newArray[i] != null) {\n items++;\n }\n }\n Long[] finalArray = new Long[items];\n int finalPos = 0;\n for (int i = 0; finalPos < items; i++) {\n if (newArray[i] != null) {\n finalArray[finalPos] = newArray[i];\n finalPos++;\n } \n }\n return finalArray;\n }", "title": "" }, { "docid": "67dcc8fded5ff0c63e0047ed34a34844", "score": "0.524457", "text": "Object[] array();", "title": "" }, { "docid": "e0ede66aaa57c6ad34f2a06bd9257a9b", "score": "0.5240237", "text": "@Override\n\tpublic T[] toArray() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e0ede66aaa57c6ad34f2a06bd9257a9b", "score": "0.5240237", "text": "@Override\n\tpublic T[] toArray() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "725b447abcb8a7c247449745f5799e17", "score": "0.52310264", "text": "private static Type[] toArray(Collection<Type> types) {\n/* 424 */ return types.<Type>toArray(new Type[types.size()]);\n/* */ }", "title": "" }, { "docid": "ef3a337a7bd5a859d05f9befb3df1681", "score": "0.5212173", "text": "public static long[] longs(Collection<? extends Number> collection) {\n\t\tlong[] result = new long[collection.size()];\n\t\tint i = 0;\n\t\tfor (Number number : collection)\n\t\t\tresult[i++] = number.longValue();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "eb59622fbe8eb7984b439e6738c38150", "score": "0.5202093", "text": "public Composite[] getArray() {\n return array.toArray(new Composite[array.size()]);\n }", "title": "" }, { "docid": "a59cf990b58930aba1fcf0de94e30b07", "score": "0.51884705", "text": "public T[] toArray()\r\n {\r\n @SuppressWarnings(\"unchecked\")\r\n T[] result = (T[])new Object[numberOfEntries]; // Unchecked cast.\r\n for(int i = 0; i < numberOfEntries; i++)\r\n {\r\n result[i] = list[i];\r\n } // end for\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "7611f046bfc29c074e070ac09d6a0831", "score": "0.5174862", "text": "public Object[] toArray() {\n\t\tint size = size();\n\t\tObject[] data = new Object[size];\n\t\tSystem.arraycopy(elements, 0, data, 0, size);\n\t\treturn data;\n\t}", "title": "" }, { "docid": "281b99dcd5ba927789f7d0dc80386d0d", "score": "0.517006", "text": "public <T> T[] toArray(T[] a) {\n/* 734 */ int size = size();\n/* 735 */ if (a.length < size) {\n/* 736 */ a = (T[])Array.newInstance(a.getClass().getComponentType(), size);\n/* */ }\n/* */ \n/* 739 */ Iterator<E> it = iterator();\n/* 740 */ T[] arrayOfT = a;\n/* 741 */ for (int i = 0; i < size; i++) {\n/* 742 */ arrayOfT[i] = (T)it.next();\n/* */ }\n/* */ \n/* 745 */ if (a.length > size) {\n/* 746 */ a[size] = null;\n/* */ }\n/* */ \n/* 749 */ return a;\n/* */ }", "title": "" }, { "docid": "dd50b94997be288ca2a1d18408282f37", "score": "0.51618433", "text": "private static <T> T[] convertPrimitiveArrayToObjectArray(final Object array,\n final Class<T> wrapperClass) {\n // getLength does the null check and isArray check already.\n int arrayLength = Array.getLength(array);\n if (arrayLength == 0) {\n throw new IllegalArgumentException(\"Input array shouldn't be empty\");\n }\n\n @SuppressWarnings(\"unchecked\")\n final T[] result = (T[]) Array.newInstance(wrapperClass, arrayLength);\n for (int i = 0; i < arrayLength; i++) {\n Array.set(result, i, Array.get(array, i));\n }\n return result;\n }", "title": "" }, { "docid": "120035e1abd81c3ce35d697041bd13fd", "score": "0.51556116", "text": "public IntArraySet( IntCollection c ) {\n\t\tthis( c.size() );\n\t\taddAll( c );\n\t}", "title": "" }, { "docid": "87d718a63fcff9190ac2db61d0b7dc29", "score": "0.51544636", "text": "@Override\n public <E> E[] toArray(E[] a) {\n if (a.length < size) {\n return (E[]) Arrays.copyOf(elements, size, a.getClass());\n }\n System.arraycopy(elements, 0, a, 0, size);\n if (a.length > size) {\n a[size] = null;\n }\n return a;\n\n }", "title": "" }, { "docid": "a01e2cad876ecbdc5b07bf7d601ff253", "score": "0.51332307", "text": "public T[] getArray() { return array; }", "title": "" }, { "docid": "a3f36733af4175d8ac0c705ab77b29c1", "score": "0.5122948", "text": "public <U extends Number> U[] toArray(U[] array) {\n if (array.length < currentSize) {\n return (U[]) Arrays.copyOf(arrayNumber, this.currentSize, array.getClass());\n }\n System.arraycopy(arrayNumber, 0, array, 0, this.currentSize);\n if (array.length > this.currentSize) {\n array[this.currentSize] = null;\n }\n return array;\n }", "title": "" }, { "docid": "0c8a9a03a9c08fc5e13be2e67c280f3a", "score": "0.51116705", "text": "@Test\n\tpublic void asObject_arrays() throws Throwable {\n\t\tString bytes = \"1, 2 ,3\";\n\t\tCollection<Byte> byteCollection = asObject(bytes, new GType(Collection.class, Byte.class));\n\t\tassertTrue(byteCollection.contains((byte) 1));\n\t\tassertTrue(byteCollection.contains((byte) 3));\n\n\t\tList<Byte> byteList = asObject(bytes, new GType(List.class, Byte.class));\n\t\tassertEquals((byte) 1, (byte) byteList.get(0));\n\t\tassertEquals((byte) 3, (byte) byteList.get(2));\n\n\t\tString doubles = \"1.1, 2.2 ,3.3\";\n\t\tCollection<Double> doubleCollection = asObject(doubles, new GType(Collection.class, Double.class));\n\t\tassertTrue(doubleCollection.contains(1.1));\n\t\tassertTrue(doubleCollection.contains(3.3));\n\n\t\tList<Double> doubleList = asObject(doubles, new GType(List.class, Double.class));\n\t\tassertEquals(1.1, doubleList.get(0), 0.0);\n\t\tassertEquals(3.3, doubleList.get(2), 0.0);\n\t}", "title": "" }, { "docid": "98d72aa500b58091ce1d5cbe3f2fcf15", "score": "0.5103928", "text": "@Nullable\n\tpublic Qacheeable[] toPrimitiveArray() {\n\t\tList<Qacheeable> list = toArray(Qacheeable.class, true);\n\t\treturn (list == null) ? null : list.toArray(new Qacheeable[list.size()]);\n\t}", "title": "" }, { "docid": "b0e11ce55925e7ab35d599a6d7dec40b", "score": "0.5102948", "text": "@NotNull\n public T[] collect(){\n Condition.check(totalPage > 0, \"Cannot handling #collect() while totalPage == 0\");\n return Arrays.copyOfRange(data, (currentPage-1)*slotPerPage, Math.min(totalSlot, currentPage*slotPerPage));\n }", "title": "" }, { "docid": "163ddeb1ae45d002bc991457129f751c", "score": "0.509765", "text": "public interface CantoArray {\n\n /** Returns the object containing the array data. This will generally be\n * an Object array or a List object, depending on whether the list\n * is fixed or growable, but it may be other collection types if the\n * source is external, for example a ResultSet returned from a database\n * query.\n */\n public Object getArrayObject();\n\n /** Returns the object containing the array data, fully instantiated. This\n * will be the same as the data returned by getArrayObject, except that any\n * items in the array which are element definitions are instantiated for the\n * specified context.\n */\n public Object instantiateArray(Context context) throws Redirection;\n\n /** Returns the nth element of the array. The return value may be a Chunk,\n * a Value, another array or null. Throws an ArrayIndexOutOfBoundsException\n * if n is not greater than or equal to zero and less than the size of the\n * array.\n */\n public Object get(int n);\n\n public int getSize();\n\n public boolean isGrowable();\n\n /** For a growable array, adds an element to the end of the array. Throws\n * an UnsupportedOperationException on a fixed array.\n */\n public boolean add(Object element);\n\n public boolean addAll(List<Object> list);\n\n public Object set(int n, Object element);\n\n public Iterator<Object> iterator();\n}", "title": "" }, { "docid": "99c6c4de253cd3958b884bcb479704cc", "score": "0.5096814", "text": "@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d9230c70d552d3bd230a0b68fd47d99d", "score": "0.50802726", "text": "@Override\n\tpublic Object[] toArray() {\n\t\tObject[] returnArray = new Object[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\treturnArray[i] = elements[i];\n\t\t}\n\t\treturn returnArray;\n\t}", "title": "" }, { "docid": "5a27e7c90531cfd576f83b43eb0945d9", "score": "0.5079654", "text": "@Override\r\n\t\t\t\tpublic <T> T[] toArray(T[] a) {\n\t\t\t\t\treturn null;\r\n\t\t\t\t}", "title": "" }, { "docid": "5c6fe48e9e1880aaa1e73bc6c38c472c", "score": "0.5078769", "text": "public Object getArrayObject();", "title": "" }, { "docid": "289c2b475007cd078252b96dd24a8d6e", "score": "0.5072118", "text": "public static final SourceModel.Expr byteArray_toCalValueArray(SourceModel.Expr array) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.byteArray_toCalValueArray), array});\n\t\t}", "title": "" }, { "docid": "83eef9cabe976029b767935f35920efa", "score": "0.5071079", "text": "private TypedValue createArray(ExpressionState state) throws EvaluationException {\n\t\tObject intendedArrayType = getChild(0).getValue(state);\n\t\tif (!(intendedArrayType instanceof String)) {\n\t\t\tthrow new SpelEvaluationException(getChild(0).getStartPosition(), SpelMessage.TYPE_NAME_EXPECTED_FOR_ARRAY_CONSTRUCTION,\n\t\t\t\t\tTools.formatClassNameForMessage(intendedArrayType.getClass()));\n\t\t}\n\t\tString type = (String) intendedArrayType;\n\t\tClass<?> componentType;\n\t\tTypeCode arrayTypeCode = TypeCode.forName(type);\n\t\tif (arrayTypeCode == TypeCode.OBJECT) {\n\t\t\tcomponentType = state.findType(type);\n\t\t} else {\n\t\t\tcomponentType = arrayTypeCode.getType();\n\t\t}\n\t\tObject newArray;\n\t\tif (!hasInitializer()) {\n\t\t\t// Confirm all dimensions were specified (for example [3][][5] is\n\t\t\t// missing the 2nd dimension)\n\t\t\tfor (SpelNodeImpl dimension : this.dimensions) {\n\t\t\t\tif (dimension == null) {\n\t\t\t\t\tthrow new SpelEvaluationException(getStartPosition(), SpelMessage.MISSING_ARRAY_DIMENSION);\n\t\t\t\t}\n\t\t\t}\n\t\t\tTypeConverter typeConverter = state.getEvaluationContext().getTypeConverter();\n\n\t\t\t// Shortcut for 1 dimensional\n\t\t\tif (this.dimensions.length == 1) {\n\t\t\t\tTypedValue o = this.dimensions[0].getTypedValue(state);\n\t\t\t\tint arraySize = ExpressionUtils.toInt(typeConverter, o);\n\t\t\t\tnewArray = Array.newInstance(componentType, arraySize);\n\t\t\t} else {\n\t\t\t\t// Multi-dimensional - hold onto your hat!\n\t\t\t\tint[] dims = new int[this.dimensions.length];\n\t\t\t\tfor (int d = 0; d < this.dimensions.length; d++) {\n\t\t\t\t\tTypedValue o = this.dimensions[d].getTypedValue(state);\n\t\t\t\t\tdims[d] = ExpressionUtils.toInt(typeConverter, o);\n\t\t\t\t}\n\t\t\t\tnewArray = Array.newInstance(componentType, dims);\n\t\t\t}\n\t\t} else {\n\t\t\t// There is an initializer\n\t\t\tif (this.dimensions.length > 1) {\n\t\t\t\t// There is an initializer but this is a multi-dimensional array\n\t\t\t\t// (e.g. new int[][]{{1,2},{3,4}}) - this\n\t\t\t\t// is not currently supported\n\t\t\t\tthrow new SpelEvaluationException(getStartPosition(), SpelMessage.MULTIDIM_ARRAY_INITIALIZER_NOT_SUPPORTED);\n\t\t\t}\n\t\t\tTypeConverter typeConverter = state.getEvaluationContext().getTypeConverter();\n\t\t\tInlineList initializer = (InlineList) getChild(1);\n\t\t\t// If a dimension was specified, check it matches the initializer\n\t\t\t// length\n\t\t\tif (this.dimensions[0] != null) {\n\t\t\t\tTypedValue dValue = this.dimensions[0].getTypedValue(state);\n\t\t\t\tint i = ExpressionUtils.toInt(typeConverter, dValue);\n\t\t\t\tif (i != initializer.getChildCount()) {\n\t\t\t\t\tthrow new SpelEvaluationException(getStartPosition(), SpelMessage.INITIALIZER_LENGTH_INCORRECT);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Build the array and populate it\n\t\t\tint arraySize = initializer.getChildCount();\n\t\t\tnewArray = Array.newInstance(componentType, arraySize);\n\t\t\tif (arrayTypeCode == TypeCode.OBJECT) {\n\t\t\t\tpopulateReferenceTypeArray(state, newArray, typeConverter, initializer, componentType);\n\t\t\t} else if (arrayTypeCode == TypeCode.INT) {\n\t\t\t\tpopulateIntArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.BOOLEAN) {\n\t\t\t\tpopulateBooleanArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.CHAR) {\n\t\t\t\tpopulateCharArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.LONG) {\n\t\t\t\tpopulateLongArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.SHORT) {\n\t\t\t\tpopulateShortArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.DOUBLE) {\n\t\t\t\tpopulateDoubleArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.FLOAT) {\n\t\t\t\tpopulateFloatArray(state, newArray, typeConverter, initializer);\n\t\t\t} else if (arrayTypeCode == TypeCode.BYTE) {\n\t\t\t\tpopulateByteArray(state, newArray, typeConverter, initializer);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalStateException(arrayTypeCode.name());\n\t\t\t}\n\t\t}\n\t\treturn new TypedValue(newArray);\n\t}", "title": "" }, { "docid": "52cc533018bcaaa65d7f57e3f4277b5f", "score": "0.5070779", "text": "public T[] toArray() {\n // Returns the underlying array structure.\n return items;\n }", "title": "" }, { "docid": "79912d518d5e3203b8e806b720863534", "score": "0.5062862", "text": "public ParallelArray<T> all(Class<? super T> elementType) {\n return super.all(elementType);\n }", "title": "" }, { "docid": "7e22a5620533683761ed3ccd2a57caf2", "score": "0.50624347", "text": "@Override\n public synchronized E[] toArray() {\n assert isValid();\n @SuppressWarnings(\"unchecked\")\n final E[] elements = (E[]) Array.newInstance(elementType, count);\n int index = 0;\n for (Entry el : table) {\n while (el != null) {\n if ((elements[index] = el.get()) != null) {\n index++;\n }\n el = (Entry) el.next;\n }\n }\n return ArraysExt.resize(elements, index);\n }", "title": "" }, { "docid": "4d05aa516d90ef91aea3959f5fceba92", "score": "0.50525296", "text": "public AnyType[] toArray() {\n\t\treturn (AnyType[]) queue.toArray();\r\n\t}", "title": "" }, { "docid": "138168b45cfe800c4474a8a170b88f7f", "score": "0.50509465", "text": "@Override\r\n public <T> T[] toArray(T[] a) {\n return null;\r\n }", "title": "" }, { "docid": "7cad18ffa32cbb796dde3358f0bef6a1", "score": "0.50430715", "text": "Expression getArray();", "title": "" }, { "docid": "32525bf688be2e44e7ab5214e23a610a", "score": "0.50270474", "text": "public abstract Collection<ValueMetaData> createCollection(String collectionType, String elementType);", "title": "" }, { "docid": "62b8be11b0bfbbea86f688cc97509346", "score": "0.50266254", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic <T> T[] toArray(T[] a) {\n\t\tint size = size();\n\t\tif(a.length < size) {\n\t\t\ta = (T[]) Array.newInstance(a.getClass().getComponentType(), size);\n\t\t}\n\t\tSystem.arraycopy(elements, 0, a, 0, size);\n\t\treturn a;\n\t}", "title": "" }, { "docid": "15f561654c55c6d334dc1c1045bf7d8b", "score": "0.5026298", "text": "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "15f561654c55c6d334dc1c1045bf7d8b", "score": "0.5026298", "text": "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "15f561654c55c6d334dc1c1045bf7d8b", "score": "0.5026298", "text": "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "15f561654c55c6d334dc1c1045bf7d8b", "score": "0.5026298", "text": "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bd63e2f40756527c5ffc084e54b784ce", "score": "0.5017798", "text": "@Override\n\tprotected Object getActualDataArrayAsObject() {\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < curSize; i++)\n\t\t\tif (data[i] != Long.MAX_VALUE)\n\t\t\t\tcnt++;\n\n\t\t// Pass 2: Construct the new, truncated result\n\t\tlong[] result = new long[cnt];\n\t\tint j = 0;\n\t\tfor (int i = 0; i < curSize; i++)\n\t\t\tif (data[i] != Long.MAX_VALUE)\n\t\t\t\tresult[j++] = data[i];\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e3f94e06ead32da4d5715e7c15522fac", "score": "0.49905625", "text": "@SuppressWarnings(\"unchecked\") @Override public <T> T[] toArray(T[] contents){\n return contents; //DSFIXME: CODE0001: Unresolved return type/value combination\n\n // Original method\n /*\n {\n int size = c.size(), index = 0;\n Iterator<Map.Entry<K, V>> it = iterator();\n if (size > contents.length) {\n Class<?> ct = contents.getClass().getComponentType();\n contents = (T[]) Array.newInstance(ct, size);\n }\n while (index < size) {\n contents[index++] = (T) it.next();\n }\n if (index < contents.length) {\n contents[index] = null;\n }\n return contents;\n }\n */\n }", "title": "" }, { "docid": "e4d3397920b2f1b21962c005a5a59d1a", "score": "0.49883044", "text": "public Object[] toArray()\n {\n return toArray((Object[]) null);\n }", "title": "" }, { "docid": "e4d3397920b2f1b21962c005a5a59d1a", "score": "0.49883044", "text": "public Object[] toArray()\n {\n return toArray((Object[]) null);\n }", "title": "" }, { "docid": "e4d3397920b2f1b21962c005a5a59d1a", "score": "0.49883044", "text": "public Object[] toArray()\n {\n return toArray((Object[]) null);\n }", "title": "" }, { "docid": "9144839c42b0875b53ed130fe058a468", "score": "0.49871308", "text": "public <T> T[] toArray(T[] array) {\n return null;\n }", "title": "" }, { "docid": "1adbd8acd733d3c98b8d53c5ae9965e8", "score": "0.4986173", "text": "public ArraySet() {\n count = 0;\n contents = (T[]) (new Object[DEFAULT_CAPACITY]);\n }", "title": "" }, { "docid": "ca06c4f93f8e8d9e11001bb544e7e05c", "score": "0.4985862", "text": "public org.hl7.fhir.SpecimenContainer[] getContainerArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(CONTAINER$16, targetList);\n org.hl7.fhir.SpecimenContainer[] result = new org.hl7.fhir.SpecimenContainer[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "title": "" }, { "docid": "1f8e18ea5ab06c936698d8f438d25170", "score": "0.49854165", "text": "Object[] toArray();", "title": "" }, { "docid": "1f8e18ea5ab06c936698d8f438d25170", "score": "0.49854165", "text": "Object[] toArray();", "title": "" }, { "docid": "a0f7437a9b5e5b61a891b9bfd6aecbb0", "score": "0.49784198", "text": "public String array(Collection<?> list) {\n if (list == null) {\n return ARRAY_START + ARRAY_END;\n }\n return ARRAY_START + chain(list) + ARRAY_END;\n }", "title": "" }, { "docid": "444b2732160be5d3dc668548fbefd83e", "score": "0.497479", "text": "@Override public <T> T[] toArray(T[] a) {\n return null;\n }", "title": "" }, { "docid": "14425eba1b0e9f8c83301a759fa7fdf4", "score": "0.49645174", "text": "public com.msbinfo.expresslync.rct.valuation.ValuationAggregate[] getValuationArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(VALUATION$0, targetList);\r\n com.msbinfo.expresslync.rct.valuation.ValuationAggregate[] result = new com.msbinfo.expresslync.rct.valuation.ValuationAggregate[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "title": "" }, { "docid": "19f1706f6ddb539f6d1a45611157d694", "score": "0.49642172", "text": "public static final SourceModel.Expr longArray_toCalValueArray(SourceModel.Expr array) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.longArray_toCalValueArray), array});\n\t\t}", "title": "" }, { "docid": "47d6fc209b4a2a603b7c8b1c8ad3b453", "score": "0.49626976", "text": "public Object[] toArray();", "title": "" }, { "docid": "0e52e8c3b7bc298e89abd2f1eb8447c2", "score": "0.4957313", "text": "ArraySizeType getArraySizeType();", "title": "" }, { "docid": "b561001f70e5320dbffff96aa0e70d60", "score": "0.49565095", "text": "public static Type getArrayComponentType(Type array) {\n/* 277 */ return (array instanceof GenericArrayType) ? ((GenericArrayType)array).getGenericComponentType() : ((Class)array).getComponentType();\n/* */ }", "title": "" }, { "docid": "b58b99323d2f57293385e51bf2ec96de", "score": "0.4955356", "text": "public int[] getAsArrayOfTypes();", "title": "" }, { "docid": "ffc89582388d185dfb3a0377cc3e0f31", "score": "0.49413636", "text": "<String>[], you can see that you get some compile-time \r\nchecking. The problem is that arrays are covariant, so a List<String>[] is also an Object[], \r\nand you can use this to assign an ArrayList<Integer> into your array, with no error at \r\neither compile time or run time. \r\nIf you know you’re not going to upcast and yourneeds are relatively simple, however, it is \r\npossible to create an array of generics, which will provide basic compile-time type checking. \r\nHowever, a generic container will virtually always be a better choice than an array of \r\ngenerics. \r\nIn general you’ll find that generics are effective at the boundaries of a class or method. In the \r\ninteriors, erasure usually makes generics unusable. So you cannot, for example, create an \r\narray of a generic type: \r\n//: arrays/ArrayOfGenericType.java \r\n// Arrays of generic types won’t compile. \r\npublic class ArrayOfGenericType<T> { \r\nT[] array; // OK \r\n@SuppressWarnings(\"unchecked\") \r\npublic ArrayOfGenericType(int size) {\narray = (T[])new Object[size]; // \"unchecked\" Warning \r\n}", "title": "" }, { "docid": "fb5de7fa658fa86982babccd226a478b", "score": "0.49293855", "text": "@Override\n\tpublic void createArray() throws UsrException {\n\t\tif (!isArrayAllowed()) {\n\t\t\tthrow new UsrException(\"Array not permitted in current context\");\n\t\t}\n\t\tint min = 1;\n\t\tint max = getMaxElements();\n\t\tif (isSingleRowSelection()) {\n\t\t\tif (max != 0) {\n\t\t\t\tint initial = getLastNumElements();\n\t\t\t\tNumberInputDialog numberInputDialog =\n\t\t\t\t\tnew NumberInputDialog(\"elements\", ((initial > 0) ? initial : 1), min, max);\n\t\t\t\tString helpAnchor = provider.getHelpName() + \"_\" + \"Elements_NumberInputDialog\";\n\t\t\t\tHelpLocation helpLoc = new HelpLocation(provider.getHelpTopic(), helpAnchor);\n\t\t\t\tnumberInputDialog.setHelpLocation(helpLoc);\n\t\t\t\tif (numberInputDialog.show()) {\n\t\t\t\t\tint numOfElements = numberInputDialog.getValue();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcreateArray(numOfElements);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\t\tsetStatus(e1.getMessage(), true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (isContiguousComponentSelection()) {\n\t\t\t// Multi-row selection uses selection size for array\n\t\t\tif (max > 1) {\n\t\t\t\ttry {\n\t\t\t\t\tcreateArray(max);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\tsetStatus(e1.getMessage(), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d60c23779a1bdf4e3eeaf5a09fd13358", "score": "0.49285537", "text": "@Override\n public <T1> T1[] toArray(T1[] a) {\n Object[] newM = toArray();\n if (a.length < this.size) return (T1[]) Arrays.copyOf(newM, size, a.getClass());\n\n System.arraycopy(newM, 0, a, 0, size);\n\n if (a.length > size) a[size] = null;\n\n return a;\n // END\n }", "title": "" }, { "docid": "0d470ed046741a019904b915693cb563", "score": "0.49273753", "text": "protected Object[] toArray() {\n\t\treturn this.toArrayList().toArray();\n\t}", "title": "" }, { "docid": "b805826cf87812d284ae3f595d14dbd6", "score": "0.49253318", "text": "protected Object getArray() {\r\n\t\treturn m_baseArray;\r\n\t}", "title": "" }, { "docid": "f6acde64a14fd618d969ba7f2990850d", "score": "0.4920792", "text": "public Long[] toArray () {\n\t\t/*Long[] toArray = new Long[myList.length];\n\t\ttoArray = Arrays.copyOf(actSize, myList);\n\t\treturn toArray;*/\n\t\tthrow new UnsupportedOperationException();\n }", "title": "" }, { "docid": "3518f709dcfa8f2b34619dfbc35e76a2", "score": "0.49202204", "text": "public Object[] toArray(Object a[])\n {\n return this.toArray();\n }", "title": "" }, { "docid": "76b930ade518621932740aad6b2ea691", "score": "0.49002066", "text": "public boolean isArray() throws PDFNetException {\n/* 172 */ return IsArray(this.a);\n/* */ }", "title": "" }, { "docid": "187fc477bc123606fe37fa27f8f6b858", "score": "0.489995", "text": "public Object[] toArray() {\r\n\t\treturn (Object[]) buildArray(Object.class);\r\n\t}", "title": "" }, { "docid": "a65036e3931b56d67f949434717537d8", "score": "0.48980382", "text": "public static Class[] arrclassGetGenericArguments( //get the generic arguments of a standard generic object. It\r\n // returns an array of Classes that represents the\r\n // generic arguments of the collection. If the input\r\n // is null, it will abort. If the input is not one of\r\n // the standard generic collections, the method will\r\n // return an empty array. If it is not possible to get\r\n // the generic arguments of the object (the collection\r\n // is empty, checked by boolGenericArgumentsPossible),\r\n // the returned array will also be empty. In this case,\r\n // the user will be told that it was not possible to\r\n // get the generic arguments because the collection is\r\n // empty.\r\n\r\n //The collection to be analyzed.\r\n Object objCollection\r\n )\r\n {\r\n if (objCollection == null)\r\n {\r\n Tools.subAbort(Tes2.strTo(objCollection, \"objCollection\") + \" can not be null.\");\r\n }\r\n\r\n //It's still unknown how much arguments the collection will\r\n // have.\r\n LinkedList<Class> lstclassArgument = new LinkedList<Class>();\r\n\r\n /*CASE*/\r\n if (\r\n !boolGenericArgumentsPossible(objCollection)\r\n )\r\n {\r\n Tools.subWarning(Tes2.strTo(objCollection, \"objCollection\") +\r\n \". Is not possible to determine the types of generic arguments because the obkect is empty\");\r\n }\r\n else if (objCollection instanceof LinkedList)\r\n {\r\n lstclassArgument.add(((LinkedList)objCollection).get(0).getClass());\r\n }\r\n else if (objCollection instanceof ConcurrentLinkedDeque)\r\n {\r\n lstclassArgument.add(((ConcurrentLinkedDeque)objCollection).peekFirst().getClass());\r\n }\r\n else if (objCollection instanceof Stack)\r\n {\r\n lstclassArgument.add(((Stack)objCollection).get(0).getClass());\r\n }\r\n else if (objCollection instanceof LinkedHashMap)\r\n {\r\n lstclassArgument.add(((LinkedHashMap) objCollection).keySet().iterator().next().getClass());\r\n lstclassArgument.add(((LinkedHashMap) objCollection).values().iterator().next().getClass());\r\n }\r\n else if (objCollection instanceof Map.Entry)\r\n {\r\n lstclassArgument.add(((Map.Entry)objCollection).getKey().getClass());\r\n lstclassArgument.add(((Map.Entry)objCollection).getValue().getClass());\r\n }\r\n else\r\n {\r\n Tools.subWarning(Tes2.strTo(objCollection, \"objCollection\") + \" is not a standard collection\");\r\n }\r\n /*END-CASE*/\r\n\r\n Class[] arrclassArgument;\r\n\r\n if (\r\n lstclassArgument.size() > 0\r\n )\r\n {\r\n arrclassArgument = lstclassArgument.toArray(new Class[0]);\r\n }\r\n else\r\n {\r\n arrclassArgument = new Class[0];\r\n }\r\n return arrclassArgument;\r\n }", "title": "" }, { "docid": "07fb424ac1e09ebf96f61ddc68596479", "score": "0.48894188", "text": "public static final SourceModel.Expr objectArray_toCalValueArray(SourceModel.Expr array) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.objectArray_toCalValueArray), array});\n\t\t}", "title": "" }, { "docid": "f812f8f66fac841e188c560c1a36e1ad", "score": "0.488639", "text": "@Override public Object[] toArray(){\n //int length = c.size();\n //DSFIXME: CODE0004: Local variable requires review, uncomment if needed\n Object[] result = new Object[1];\n result.addTaint(this.getTaint().getTaint());\n //DSFIXME: CODE0004: Local variable requires review, uncomment if needed\n //Iterator<?> it = iterator();\n return result; //DSFIXME: CODE0001: Unresolved return type/value combination\n\n // Original method\n /*\n {\n int length = c.size();\n Object[] result = new Object[length];\n Iterator<?> it = iterator();\n for (int i = length; --i >= 0;) {\n result[i] = it.next();\n }\n return result;\n }\n */\n }", "title": "" }, { "docid": "0786e4393b3dfd6445c9cbe1020e5a98", "score": "0.48843756", "text": "private void collectionArrayInitialize(){\r\n collectionsArray[OPEN_HASH_SET] = new OpenHashSet();\r\n collectionsArray[CLOSED_HASH_SET] = new ClosedHashSet();\r\n collectionsArray[TREE_HASH_SET] = new CollectionFacadeSet(new TreeSet<String>());\r\n collectionsArray[JAVA_HASH_SET] = new CollectionFacadeSet(new HashSet<String>());\r\n collectionsArray[LINKED_LIST] = new CollectionFacadeSet(new LinkedList<String>());\r\n }", "title": "" }, { "docid": "5fbb9b0f0e5206562a0f9ae2dd9853b0", "score": "0.48842284", "text": "private static Long[] boxArray(long[] array) {\n return LongStream.of(array).boxed().toArray(Long[]::new);\n }", "title": "" }, { "docid": "92a2d833c942f48f81d80fcc28bd6510", "score": "0.48806697", "text": "public org.globus.swift.language.Array addNewArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.globus.swift.language.Array target = null;\n target = (org.globus.swift.language.Array)get_store().add_element_user(ARRAY$0);\n return target;\n }\n }", "title": "" }, { "docid": "b2b2b706a80f6b6ad03de472f8235551", "score": "0.4873378", "text": "public Object[] toArray() {\n Object[] result = new Object[size()];\n System.arraycopy(data, 0, result, 0, size());\n return result;\n }", "title": "" }, { "docid": "6e56d255a41d45d0438d23b51f56dbae", "score": "0.4872792", "text": "public static final SourceModel.Expr array_fromCalValueArray(SourceModel.Expr arg_1) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.array_fromCalValueArray), arg_1});\n\t\t}", "title": "" }, { "docid": "183dd042caa01185e5b1d5138ae4a33c", "score": "0.48726422", "text": "public static final SourceModel.Expr calValueArray_toCalValueArray(SourceModel.Expr array) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.calValueArray_toCalValueArray), array});\n\t\t}", "title": "" }, { "docid": "804967ff7a408f22fa2cd843bf239e5d", "score": "0.48721075", "text": "@Override\n\tpublic E[] toArray() {\n\t\treturn this.array;\n\t}", "title": "" } ]
e04be9e6e80b4c44f23901ea32895405
Gets (as xml) the "nationality" element
[ { "docid": "2c39d6208bb08f27d816efa22033bd65", "score": "0.7775786", "text": "org.apache.xmlbeans.XmlString xgetNationality();", "title": "" } ]
[ { "docid": "ce26be32a0abd9d2a78385deec88e8cd", "score": "0.73444754", "text": "java.lang.String getNationality();", "title": "" }, { "docid": "bb575377fe6dde9678b604adc63c7139", "score": "0.723286", "text": "String getNationality();", "title": "" }, { "docid": "64044233ffc4b9fc59a09ab0f3f8f75c", "score": "0.70487463", "text": "public String getNationality() {\n return nationality;\n }", "title": "" }, { "docid": "2a851bbc3575a392e02d48e22585f6a7", "score": "0.70056593", "text": "public String getNationality() {\r\n return nationality;\r\n }", "title": "" }, { "docid": "e6c326fe6d4a95790b3bcaefdbaa3ff0", "score": "0.6779193", "text": "void xsetNationality(org.apache.xmlbeans.XmlString nationality);", "title": "" }, { "docid": "f8e7bb0c16481f875913d99e0ed4a324", "score": "0.67732435", "text": "public String getNationality() {\n\t\treturn nationality;\n\t}", "title": "" }, { "docid": "cb67c65f0c3d2f1620031260c22c1ccd", "score": "0.6756514", "text": "public Nation getNationality() {\n\t\treturn nationality;\n\t}", "title": "" }, { "docid": "1996d12239ba8cd8fb135a5d949536c4", "score": "0.62694514", "text": "java.lang.String getNationalityInclude();", "title": "" }, { "docid": "0563ae0be3174ca25a124d7207569580", "score": "0.6055667", "text": "void setNationality(java.lang.String nationality);", "title": "" }, { "docid": "3243a9040864efad4616622b061c6e03", "score": "0.60499495", "text": "public String getNationalID ()\n\t{\n\treturn nationalID;\n\t}", "title": "" }, { "docid": "809d55983e5fd6df1cfcafea9688a582", "score": "0.604419", "text": "boolean isSetNationality();", "title": "" }, { "docid": "186f084d6c998f5c9b13d35d894036fc", "score": "0.6006398", "text": "org.apache.xmlbeans.XmlString xgetCity();", "title": "" }, { "docid": "5e91cd2d5672d8b951d958c31bd4c3b4", "score": "0.5909331", "text": "java.lang.String getNationalityExclude();", "title": "" }, { "docid": "9a073010fc2dcb997b03375f8f89e21a", "score": "0.59054273", "text": "public String getNation() {\r\n return nation;\r\n }", "title": "" }, { "docid": "f5a5cac7453ea48d0513dd2c5c345a1f", "score": "0.5904289", "text": "public void setNationality(String nationality) {\r\n this.nationality = nationality;\r\n }", "title": "" }, { "docid": "cdcf16e4a802ac921f9b35d0bec08e51", "score": "0.589929", "text": "org.apache.xmlbeans.XmlString xgetCountry();", "title": "" }, { "docid": "18d920bba2ac6fc37591fb9845c0a2ec", "score": "0.5752205", "text": "public org.apache.xmlbeans.XmlString xgetIso3166CountryCode()\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_element_user(ISO3166COUNTRYCODE$4, 0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "e9a1c46b5cd2b4cfbbb6f43e0a66b12a", "score": "0.5715451", "text": "public void setNationality(String nationality) {\n\t\tthis.nationality = nationality;\n\t}", "title": "" }, { "docid": "f3e5d728d6c5db46c04249a7a647153e", "score": "0.56817895", "text": "public String getCountry(Document.ScriptType type) {\n switch (type) {\n case WESTERN:\n return mElement.getFoCountryAttribute();\n case CJK:\n return mElement.getStyleCountryAsianAttribute();\n case CTL:\n return mElement.getStyleCountryComplexAttribute();\n }\n return null;\n }", "title": "" }, { "docid": "28cef0d2f5399637f7b22e02febd9bc6", "score": "0.5630716", "text": "com.google.protobuf.ByteString\n getNationalityIncludeBytes();", "title": "" }, { "docid": "bc2ed605deab972981c6ca45569cd269", "score": "0.5496874", "text": "public String getLocality() {\n if (Georank.region.equals(getGeorank())) {\n return \"\";\n }\n if (Georank.subregion.equals(getGeorank())) {\n return \"\";\n }\n\n // Misguided, I think. Currently all geolocale.is_use_parent_region = 0.\n //if (getIsUseParentRegion()) {\n // return \" region = '\" + getRegion() + \"'\";\n //}\n\n s_log.debug(\"getLocality() isIsland:\" + isIsland());\n\n if (isIsland()) {\n return \" island_country = '\" + getName() + \"'\";\n }\n\n if (Georank.country.equals(getGeorank())) {\n return \" country = '\" + getName() + \"'\";\n }\n if (Georank.adm1.equals(getGeorank())) {\n return \" adm1 = '\" + getName() + \"'\";\n }\n if (Georank.adm2.equals(getGeorank())) {\n return \" adm2 = '\" + getName() + \"'\";\n } \n return \"\";\n }", "title": "" }, { "docid": "e3f0d0cfdfc85ac541097f9846505912", "score": "0.5447109", "text": "public String dominantCountry(String orbit) { return null;}", "title": "" }, { "docid": "a48a6eb1273b7e88747691146417207b", "score": "0.54090077", "text": "public org.apache.xmlbeans.XmlString xgetCountry()\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_element_user(COUNTRY$6, 0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "2d3e363b621a784c32989c2761adb9f8", "score": "0.54082096", "text": "public org.apache.xmlbeans.XmlString xgetCity()\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_element_user(CITY$2, 0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "35220ddad5de21c42823645ef38ea7c2", "score": "0.5396242", "text": "public org.apache.xmlbeans.XmlString xgetCountry()\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_element_user(COUNTRY$2, 0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "68f456e6005e2bdf36b263a40137f8f3", "score": "0.53761405", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCountyInternal();", "title": "" }, { "docid": "63daca8c63e52c38a92de2b4f379b19d", "score": "0.537104", "text": "public java.lang.String getCountry()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COUNTRY$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "13814261916f1457c2c7f88d7fd7cc36", "score": "0.5363255", "text": "public java.lang.String getCountry()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COUNTRY$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "34728cfd4931a85182a4f2421b89301d", "score": "0.5356505", "text": "String countryIso();", "title": "" }, { "docid": "9e242f143e8dc44ac2fd6942db35092d", "score": "0.53541684", "text": "public org.apache.xmlbeans.XmlString xgetCity()\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_element_user(CITY$0, 0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "094e45501c271f8d0b58ea2c26647333", "score": "0.5345116", "text": "public String getCounty() {\n return county;\n }", "title": "" }, { "docid": "094e45501c271f8d0b58ea2c26647333", "score": "0.5345116", "text": "public String getCounty() {\n return county;\n }", "title": "" }, { "docid": "094e45501c271f8d0b58ea2c26647333", "score": "0.5345116", "text": "public String getCounty() {\n return county;\n }", "title": "" }, { "docid": "094e45501c271f8d0b58ea2c26647333", "score": "0.5345116", "text": "public String getCounty() {\n return county;\n }", "title": "" }, { "docid": "e3489b444e7a5c7c999736e371940c6e", "score": "0.534328", "text": "public java.lang.String getIso3166CountryCode()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISO3166COUNTRYCODE$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "2a185d5046619d3d8354a743770e34df", "score": "0.5342015", "text": "java.lang.String getCountry();", "title": "" }, { "docid": "c71e269ed53232be07621aa4a0d4738b", "score": "0.5335197", "text": "org.apache.xmlbeans.XmlString xgetOrganisationName();", "title": "" }, { "docid": "c1b30977c241dcbb0669da816c17917f", "score": "0.53345734", "text": "com.google.protobuf.ByteString\n getNationalityExcludeBytes();", "title": "" }, { "docid": "643ecc1d4b4075b75d17ce5740543ad9", "score": "0.52887434", "text": "public java.lang.String getCounty() {\n return county;\n }", "title": "" }, { "docid": "643ecc1d4b4075b75d17ce5740543ad9", "score": "0.52887434", "text": "public java.lang.String getCounty() {\n return county;\n }", "title": "" }, { "docid": "e92a6503e564c64a315f5a1cb787d227", "score": "0.52858126", "text": "String getCountry();", "title": "" }, { "docid": "e92a6503e564c64a315f5a1cb787d227", "score": "0.52858126", "text": "String getCountry();", "title": "" }, { "docid": "37575474eb0676643aedc671a49762b6", "score": "0.52798855", "text": "String getInternationalISDNNumber();", "title": "" }, { "docid": "073119b68ad63ce1696aedf24c7f3b2e", "score": "0.52401793", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCounty();", "title": "" }, { "docid": "4f0c4f92b51500ca99002b6c84e5f3f1", "score": "0.5187295", "text": "org.apache.xmlbeans.XmlShort xgetNetAmount();", "title": "" }, { "docid": "f5e3a6c28adbc4549230a98cb790818a", "score": "0.51869977", "text": "public com.eaw1805.data.model.Nation getNation() {\n return nation;\n }", "title": "" }, { "docid": "1a1f949dfc68d22132159c0fb563189f", "score": "0.51728183", "text": "public String getSpeciality() {\n return speciality;\n }", "title": "" }, { "docid": "c8368f10d3f440c5668dc4e39731f9d7", "score": "0.51124704", "text": "public String getSpeciality() {\n return speciality;\n }", "title": "" }, { "docid": "5ad2cf78a95f10d7d24a7dec58a3d9f1", "score": "0.5104276", "text": "org.apache.xmlbeans.XmlShort xgetOrgAmount();", "title": "" }, { "docid": "abb1f0b37b7bb4a8788f59352d21d093", "score": "0.5104037", "text": "public String getXmlLang() {\n return getAttribute(ATTRIBUTE_XML_LANG);\n }", "title": "" }, { "docid": "873e820778483554bb716843f10bbb40", "score": "0.50757927", "text": "public String getEthnicity()\n/* */ {\n/* 219 */ return this.ethnicity;\n/* */ }", "title": "" }, { "docid": "9b8b491b2f6af81a3fd336bb549a7e88", "score": "0.50752", "text": "String getNature();", "title": "" }, { "docid": "ac7ce04d02495caa5cf5505d028ce503", "score": "0.50679255", "text": "public String getCountry() {\n return getCountry(Document.ScriptType.WESTERN);\n }", "title": "" }, { "docid": "b81fb4f07586994563145aec2f567fc7", "score": "0.5067597", "text": "public String getCountyName() {\n return countyName;\n }", "title": "" }, { "docid": "9b4ce23cbc0dd315c20f91da8aaf4357", "score": "0.5064062", "text": "public String getCountyCode() {\n return countyCode;\n }", "title": "" }, { "docid": "dbaefadfcd08bb9677608b00ac4ac548", "score": "0.50614953", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Country getCountryDenorm();", "title": "" }, { "docid": "90b161e22b5dbaa35644930fbe22d4c4", "score": "0.50582755", "text": "public String getSpeciality() {\n return this.speciality;\n }", "title": "" }, { "docid": "8bcbcbe913cf02c62cad8089bb3cd1b2", "score": "0.5051171", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Country getCountryInternal();", "title": "" }, { "docid": "09c1b06d23416953d2d207cd410174c0", "score": "0.5040521", "text": "int getCountryValue();", "title": "" }, { "docid": "0348002c65be286a0b7c7fda141f4afd", "score": "0.5038467", "text": "@RequestMapping(value = \"rest-get-nationalityList\", method = { RequestMethod.GET })\n\tpublic List<DropDownModel> getNationality() {\n\t\tlogger.info(\"Method : getNationality starts\");\n\t\tlogger.info(\"Method : getNationality ends\");\n\t\treturn offerLetterDao.getNationality();\n\t}", "title": "" }, { "docid": "4f76fe93a5c5768d66b543b696135bb8", "score": "0.5035835", "text": "String getCountryCode();", "title": "" }, { "docid": "e2e059f5656df4cda3b2a846e1aa38e5", "score": "0.5029326", "text": "public String getCountry() {\n return (String) getAttributeInternal(COUNTRY);\n }", "title": "" }, { "docid": "0d0703b425c7cca33a7836e0aec641a4", "score": "0.5019745", "text": "public String getDisplayCountry()\n/* */ {\n/* 1335 */ return getDisplayCountryInternal(this, getDefault(Category.DISPLAY));\n/* */ }", "title": "" }, { "docid": "ab7f26f0b82e3fae8e57f6606fcc91d4", "score": "0.50136346", "text": "java.lang.String getCountryCode();", "title": "" }, { "docid": "ab7f26f0b82e3fae8e57f6606fcc91d4", "score": "0.50136346", "text": "java.lang.String getCountryCode();", "title": "" }, { "docid": "f231e7bd447b08a12e6dbe0abce95a7e", "score": "0.50103515", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Country getInsuredCountry();", "title": "" }, { "docid": "89ec809bf4c1b9930f4fbb78243e0f91", "score": "0.50051653", "text": "void unsetNationality();", "title": "" }, { "docid": "80028eea74b426bdfb2e5e0c037f1ed7", "score": "0.49977326", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getInsuredCounty();", "title": "" }, { "docid": "b3e94c871de22d7fff00a85a2221fc96", "score": "0.49878165", "text": "public long get_Nationalid() {return Nationalid;}", "title": "" }, { "docid": "f328961cdcec613cd114bb4170aa25a3", "score": "0.49875763", "text": "public java.lang.String getNIF();", "title": "" }, { "docid": "a5d164b02e1bbd252bc696a2c8008898", "score": "0.49700028", "text": "public String getGeneralInjuryType() {\n return generalInjuryType;\n }", "title": "" }, { "docid": "88deedc88afe1dba2bb113bdd7ee4390", "score": "0.49346384", "text": "StringDataValue getNationalCharDataValue(String value);", "title": "" }, { "docid": "fd08189ced25105b020541ff456a99d2", "score": "0.49342555", "text": "public String readNation(){\n System.out.print(\"Enter nationality: \");\n _Nation = sc.nextLine();\n return _Nation;\n }", "title": "" }, { "docid": "a3c5a077a7d989e1b4b5ffaa0f96aa8b", "score": "0.49212694", "text": "public String getCountry()\n/* */ {\n/* 794 */ return getCountry(this.localeID);\n/* */ }", "title": "" }, { "docid": "34cad151ecf2f30e7402a3117167dd3e", "score": "0.4894895", "text": "public String getLocNation() {\n return locNation;\n }", "title": "" }, { "docid": "b74f3707c078f391edd93474fbbdcab9", "score": "0.48900962", "text": "public String getUserDnCountryCode() {\r\n\r\n\t\treturn getValue(userDnCountryCodeXpath);\r\n\t}", "title": "" }, { "docid": "9333d24337effd3e17f89158256e0934", "score": "0.48896763", "text": "org.apache.xmlbeans.XmlString xgetDiscType();", "title": "" }, { "docid": "4b9e644427b34fbdc15dcfa7491679ce", "score": "0.48839834", "text": "String getIsoCode();", "title": "" }, { "docid": "7f1348adb2ccdd965466e2eded0fba31", "score": "0.48831397", "text": "private void getCountry() {\n\t\tdouble latitude = location.getLatitude(); // 20.593;\n\t\tdouble longitude = location.getLongitude(); // 78.962;\n\n\t\tString currLoc = latitude + \",\" + longitude;\n\t\tString URL = \"https://maps.googleapis.com/maps/api/geocode/xml?latlng=\"\n\t\t\t\t+ currLoc\n\t\t\t\t+ \"&result_type=country&key=AIzaSyCyc9xJr_8wXxrmjeadKVhpVp84nkleoyE\";\n\t\tlocationReader = new XMLreader();\n\t\tlocationReader.setTAG(\"formatted_address\");\n\t\tnew XmlReader().execute(URL);\n\t}", "title": "" }, { "docid": "710f23e8344ad2e6346a8e5121ac4ea2", "score": "0.48712546", "text": "public void setNationalID (String nationalID2)\n\t{\n\tnationalID = nationalID2;\n\t}", "title": "" }, { "docid": "13cd2b6db90f0681ac5684a7e54ad2c9", "score": "0.48709434", "text": "Society getSociety();", "title": "" }, { "docid": "d03fa2afd76ae75806ed41c2a175f94d", "score": "0.48667535", "text": "@Override\n\tpublic Countries getCountry(int id_nationality) {\n\t\treturn countriesRepository.getCountry(id_nationality);\n\t}", "title": "" }, { "docid": "c075da945e85abb340f818fb554e5320", "score": "0.48609632", "text": "public String getAreaCodeCounty() {\n return areaCodeCounty;\n }", "title": "" }, { "docid": "e3d20f94c8fd47a653bfa0ee494b5710", "score": "0.48545712", "text": "public String getCodeNation() {\r\n\t\treturn codeNation;\r\n\t}", "title": "" }, { "docid": "0f1a7e7c724a289abf35037a683fb021", "score": "0.48527396", "text": "public String getLocality() {\n return locality;\n }", "title": "" }, { "docid": "c968df997abc0f3b5ace8be20bc99a5b", "score": "0.4852006", "text": "public String getISO3Country()\n/* */ {\n/* 1163 */ return getISO3Country(this.localeID);\n/* */ }", "title": "" }, { "docid": "0aba7e1348e269a5d51d05fabe85937b", "score": "0.4826776", "text": "io.envoyproxy.envoy.config.core.v3.Locality getLocality();", "title": "" }, { "docid": "1e0a11f72ce8a8d0fbe864c5ed79031c", "score": "0.48246893", "text": "org.apache.xmlbeans.XmlShort xgetNetPrice();", "title": "" }, { "docid": "091b330a2810621420bc9f6c80d90e05", "score": "0.4811537", "text": "public String getCountry() {return country;}", "title": "" }, { "docid": "b788985444176329822219a2e6b48abc", "score": "0.4795127", "text": "public void setNation(String nation) {\r\n this.nation = nation;\r\n }", "title": "" }, { "docid": "4421d735848e858655ee361309656c88", "score": "0.4794219", "text": "public String getCounty_id(){\r\n\t\treturn county_id ;\r\n\t}", "title": "" }, { "docid": "5f5cd2e04c077ee6cf0953acbadd0527", "score": "0.4784565", "text": "@SuppressWarnings(\"unchecked\")\n public String getDefaultCurrencyID() {\n GncV2 root = getRootElement();\n if (root == null) {\n return \"EUR\";\n }\n for (Iterator iter = getRootElement().getGncBook().getBookElements()\n .iterator(); iter.hasNext();) {\n Object bookElement = iter.next();\n if (!(bookElement instanceof GncAccountType)) {\n continue;\n }\n GncAccountType jwsdpAccount = (GncAccountType) bookElement;\n if (jwsdpAccount.getActCommodity() != null\n && jwsdpAccount.getActCommodity().getCmdtySpace().equals(\"ISO4217\")) {\n return jwsdpAccount.getActCommodity().getCmdtyId();\n }\n }\n return \"EUR\";\n }", "title": "" }, { "docid": "03ca96e9bc9375a70993fe4a1a76a5da", "score": "0.47735512", "text": "public String getSimCountryIso(){\n return telephonyManager.getSimCountryIso();\n }", "title": "" }, { "docid": "67621d0ae534049400d690df359df175", "score": "0.47635916", "text": "public String getXML();", "title": "" }, { "docid": "67621d0ae534049400d690df359df175", "score": "0.47635916", "text": "public String getXML();", "title": "" }, { "docid": "7b96737c9c193aa8d2090cfb5a0ac0f7", "score": "0.47629017", "text": "public String getCountry(){ /*returns String */\n return(country);\n }", "title": "" }, { "docid": "a11b31d459787f0967bbcf31abb8c6f6", "score": "0.47550228", "text": "public String getAddressCountry() {\n return notNull(addressCountry);\n }", "title": "" }, { "docid": "d28dde9d4a461cad4398996b227d7d37", "score": "0.4753529", "text": "int getNetworkTypeValue();", "title": "" }, { "docid": "82918333315bef219d9c5ed2aacfe6bd", "score": "0.4739731", "text": "public com.comverse.www.StringAttributeJAXBElement getUnitTypeDisplayValue(){\n return localUnitTypeDisplayValue;\n }", "title": "" }, { "docid": "2ea68ab6ea503e292b69f40a446dc206", "score": "0.4738396", "text": "public java.lang.String getXmlLang()\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(XMLLANG$8);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" } ]
577fa70b93c9abc9f6a853ace1f77540
optional string map = 6;
[ { "docid": "7ca4c94016bf1c03e222bc076da1dd97", "score": "0.0", "text": "public com.google.protobuf.ByteString\n getMapBytes() {\n java.lang.Object ref = map_;\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 map_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
[ { "docid": "5cf498d8fa4626c22e02fb0a1e3900b7", "score": "0.72502935", "text": "void mo71121a(String str, Map<String, String> map);", "title": "" }, { "docid": "6a3ff0a319accfae0b380ea2db2fb428", "score": "0.71023124", "text": "String mo12772a(int i, Map<String, ? extends Object> map);", "title": "" }, { "docid": "31141385736c15903f60d1a7d379ef00", "score": "0.70757705", "text": "void mo27938a(Map<String, String> map);", "title": "" }, { "docid": "81fad9db7a13e2918a17c9e29c590646", "score": "0.6986095", "text": "String mo12773a(String str, Map<String, ? extends Object> map);", "title": "" }, { "docid": "eaaac6d11331e8266e1108a0ad6b28d4", "score": "0.69522244", "text": "String mo12775b(String str, Map<String, ? extends Object> map);", "title": "" }, { "docid": "9b838395657ed369482a10efae03bcd8", "score": "0.65821284", "text": "public abstract void mo10237u(Map<String, String> map);", "title": "" }, { "docid": "55ca891300d70beecf18d9b013dac5c1", "score": "0.64617354", "text": "java.lang.String getMap();", "title": "" }, { "docid": "55ca891300d70beecf18d9b013dac5c1", "score": "0.64617354", "text": "java.lang.String getMap();", "title": "" }, { "docid": "55ca891300d70beecf18d9b013dac5c1", "score": "0.64617354", "text": "java.lang.String getMap();", "title": "" }, { "docid": "cd01b2c4889836548a45cf8a2120b9fb", "score": "0.62714285", "text": "int cef_string_map_size(Pointer map);", "title": "" }, { "docid": "4877e515b9f13e7137ed1932af1433cd", "score": "0.6204192", "text": "C4080b mo28289a(String str, C4061a aVar, int i, int i2, Map<C4063c, ?> map) throws WriterException;", "title": "" }, { "docid": "ce737935c92cb17451d1baf22d034f24", "score": "0.61904", "text": "public void test9() {\r\n Map map = getMapOfT9();\r\n }", "title": "" }, { "docid": "f7924fb3b6d9cf4a6794d36c1190d834", "score": "0.61903346", "text": "public static String m7438a(Map<String, String> map, String str, String str2) {\n String str3;\n return (map == null || (str3 = map.get(str)) == null) ? str2 : str3;\n }", "title": "" }, { "docid": "d53af22d4609768e78b57cbdeea4e63c", "score": "0.610107", "text": "public static void test(Map map) {\n\n map.put(\"c\", \"3\");\n }", "title": "" }, { "docid": "ea620a9e1925532c7c6258ff9e34955f", "score": "0.6048607", "text": "int cef_string_multimap_size(Pointer map);", "title": "" }, { "docid": "7f23582adcbdc423a226e56674175cea", "score": "0.5943641", "text": "@Override\n\tpublic void visit(MapLit n) {\n\n\t}", "title": "" }, { "docid": "d25dd69dd4c5e2958350966f1d952d6c", "score": "0.5898315", "text": "io.grpc.xds.shaded.validate.MapRules getMap();", "title": "" }, { "docid": "307532f829ec63dda4588dc20eadf33b", "score": "0.58933157", "text": "private String required(Map<String, Object> map, String key) {\n return orDefault(map, key, null);\n }", "title": "" }, { "docid": "0a3f6df482f5671b4b1f00684340eb1c", "score": "0.5887797", "text": "Map mo10552a(String str, String str2, boolean z);", "title": "" }, { "docid": "05ff2088c11ade4005283d7811f8db15", "score": "0.58837426", "text": "void setMap(Map<String, String> aMap);", "title": "" }, { "docid": "3243d0d9f59c737ecf467ff9a926dddb", "score": "0.5862423", "text": "int cef_string_map_append(Pointer map, cef_string_utf16_t key, cef_string_utf16_t value);", "title": "" }, { "docid": "31c53201c0f1024f3ba3513acd976eb4", "score": "0.58592504", "text": "int cef_string_map_value(Pointer map, int index, cef_string_utf16_t value);", "title": "" }, { "docid": "5ed3cf6b8089dfdc43b48c92360743d7", "score": "0.5840075", "text": "public Builder setMap(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n map_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5ed3cf6b8089dfdc43b48c92360743d7", "score": "0.5840075", "text": "public Builder setMap(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n map_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1c0599aa176a411017f25b9abc0a196b", "score": "0.57987016", "text": "private void m5390a(Map<String, String> map, String str, String str2) {\n map.put(str, str2);\n }", "title": "" }, { "docid": "64dc2a11cb36f18c3233cd3bd4c7f55a", "score": "0.577993", "text": "public void mo39783a(Map<String, String> map) {\n this.f2843e.mo39946g().mo39952a(map);\n }", "title": "" }, { "docid": "e2fb9bb7b8868781ae19391f7c95805c", "score": "0.5776069", "text": "public Builder setMap(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n map_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "82f5ef236a0a7effc881d4c553c0b399", "score": "0.5774467", "text": "public Map(){\n\t\tthis.numV = 0 ;\n\t}", "title": "" }, { "docid": "5da574db60544c4aee007e76974e6e1d", "score": "0.5771639", "text": "public Map() \n {\n map = new char[5][5];\n revealed = new boolean[5][5];\n }", "title": "" }, { "docid": "f6487accd7a448f61e9756b2aff6e546", "score": "0.5716078", "text": "java.lang.String getGameMap();", "title": "" }, { "docid": "f6487accd7a448f61e9756b2aff6e546", "score": "0.5716078", "text": "java.lang.String getGameMap();", "title": "" }, { "docid": "ce39379906aa23c76dbe54b979438f4a", "score": "0.5708436", "text": "public Builder setGameMap(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n gameMap_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1f356f1bf149ed5a03395630daa5c089", "score": "0.57008576", "text": "private static String checkGenType(final String type, final Map<String, String> map) {\r\n\t\tfinal String NOT_ENOUGH_PARAMETERS = \"Not enough parameters for type'%s', for more Info you may try '-%s' or '-?'\";\r\n\t\tString[] params = null;\r\n\t\t\r\n\t\tif (type.equalsIgnoreCase(\"a\")) {\r\n\t\t\tparams = parametersA;\r\n\t\t}\r\n\t\tif (type.equalsIgnoreCase(\"b\")) {\r\n\t\t\tparams = parametersB;\t\t\t\r\n\t\t}\r\n\t\tif (type.equalsIgnoreCase(\"c\")) {\r\n\t\t\tparams = parametersC;\r\n\t\t}\r\n\t\tif (type.equalsIgnoreCase(\"d\")) {\r\n\t\t\tparams = parametersD;\t\r\n\t\t}\r\n\t\tif (type.equalsIgnoreCase(\"e\")) {\r\n\t\t\tparams = parametersE;\t\t\r\n\t\t}\r\n\t\tif (type.equalsIgnoreCase(\"f\")) {\r\n\t\t\tparams = parametersF;\r\n\t\t}\r\n\t\t\r\n\t\tif (ifParametersAreAppropriate(type, params, map)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tSystem.out.printf(NOT_ENOUGH_PARAMETERS, type, type);\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "af0ac1a768de6fa7267cc294bf54ae1d", "score": "0.56985974", "text": "public abstract String getMap();", "title": "" }, { "docid": "60f32877a9000ac5fda50570a0fc3048", "score": "0.56976235", "text": "public static void method_943(Map var0, Object var1, Object var2) {\n var0.put(var1, var2 == null ? \"\" : var2);\n }", "title": "" }, { "docid": "143210ccb9ee44571c55f1fbc742506e", "score": "0.5681886", "text": "public Builder setGameMap(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000200;\n gameMap_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8973a9901d61b4fd65a42e2371d6aa0c", "score": "0.5675453", "text": "public abstract void map(String mapname);", "title": "" }, { "docid": "28183c7da8b5ede7d58f32c362fb18c3", "score": "0.5671686", "text": "public static void m8011a(String str, String str2, Map<String, String> map) {\n if (!TextUtils.isEmpty(str2)) {\n map.put(str, str2);\n }\n }", "title": "" }, { "docid": "b6038b28c09e1f38d1dbfd697e80259e", "score": "0.5668695", "text": "public static Map method_945(Map var0) {\n return var0 == null ? Collections.emptyMap() : var0;\n }", "title": "" }, { "docid": "db55e22a2e6d935abed2a4359b787662", "score": "0.5668179", "text": "Pointer cef_string_map_alloc();", "title": "" }, { "docid": "38c599e1b999a329d204a95b890d2ef7", "score": "0.56245834", "text": "io.grpc.xds.shaded.validate.MapRulesOrBuilder getMapOrBuilder();", "title": "" }, { "docid": "810731e26eac22d5e304512d54cbcae6", "score": "0.5621195", "text": "String getInvalidMapType(){\n return invalidMapType;\n }", "title": "" }, { "docid": "3b7008557eaef937683df560eaa34adb", "score": "0.5603539", "text": "int cef_string_map_key(Pointer map, int index, cef_string_utf16_t key);", "title": "" }, { "docid": "6ec5dbe3c22fe578a6b5d105149f7c84", "score": "0.5597537", "text": "public static void main(String[] args) {\n\t\tMap<Integer,String> map1=new HashMap<Integer,String>();\n\t\t\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "0c615ff2652ae0d390e07ba5867cd18e", "score": "0.55921644", "text": "java.lang.String getSsMapOrDefault(\n java.lang.String key,\n /* nullable */\njava.lang.String defaultValue);", "title": "" }, { "docid": "a6bd604f3b573797a7d20f39d7ef0e32", "score": "0.55892366", "text": "public void setMap(Map map) {\n\t\tthis.map = map;\n\t}", "title": "" }, { "docid": "4af188f233ef81079a0cf03e3029bd03", "score": "0.558062", "text": "public Map(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "09c114382e2b1306bab930f4c8cede31", "score": "0.5578075", "text": "int cef_string_map_find(Pointer map, cef_string_utf16_t key, cef_string_utf16_t value);", "title": "" }, { "docid": "1a2432cc132c4f976fcb023369aaa53c", "score": "0.5570942", "text": "@Test\n public void test18() throws Throwable {\n HashMap<CoreLabel, Short> hashMap0 = new HashMap<CoreLabel, Short>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n int int0 = jSONObject0.optInt((String) null);\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "bf5e8a4a913129789b0911d976be6c9b", "score": "0.55674964", "text": "int cef_string_multimap_value(Pointer map, int index, cef_string_utf16_t value);", "title": "" }, { "docid": "bb78b43756168be93507a317ae7d1051", "score": "0.55595815", "text": "@Ignore\n public void testEcho_Map() {\n System.out.println(\"echo\");\n Map map = null;\n Util.echo(map);\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": "9026de903164c2416979bd47031d0767", "score": "0.5552267", "text": "void setInputStrings(Map<String, String> input) throws InputValidationException;", "title": "" }, { "docid": "e182faadb51eeee7c5571b03b349d2e5", "score": "0.5541861", "text": "@Test\n public void testGet() {\n MyMap<String, Integer> map = new MyMap<>(16);\n map.put(\"color\", 1);\n map.put(\"price\", 1000);\n map.put(\"color\", 7);\n map.put(null, 40);\n\n int value = map.get(\"color\");\n\n assertEquals(7, value);\n }", "title": "" }, { "docid": "d40082100ee79dbe5aae48fc6fb5f292", "score": "0.55316764", "text": "void cef_string_map_clear(Pointer map);", "title": "" }, { "docid": "8c0fd456a425789f6aa4c6255a4b758e", "score": "0.5517358", "text": "public static void test(Map211<String, Integer> m)\n {\n\tm.put(\"BWI\", 4);\n\tSystem.out.println(m.size()); // expect 1\n\tSystem.out.println(m.containsKey(\"BWI\")); // expect true\n\tSystem.out.println(m.containsKey(\"DCA\")); // expect false\n\tSystem.out.println(m.get(\"BWI\")); // expect 4\n\n\tm.put(\"ADD\", 10);\n\tSystem.out.println(m.size()); // expect 2\n\tSystem.out.println(m.containsKey(\"BWI\")); // expect true\n\tSystem.out.println(m.containsKey(\"ADD\")); // expect true\n\tSystem.out.println(m.containsKey(\"DCA\")); // expect false\n\tSystem.out.println(m.get(\"BWI\")); // expect 4\n\tSystem.out.println(m.get(\"ADD\")); // expect 10\n\tSystem.out.println(m);\n\n\tm.put(\"DCA\", 6);\n\tm.put(\"YYC\", 3);\n\n\tm.remove(\"YYC\");\n\tm.remove(\"DCA\");\n\tm.remove(\"BWI\");\n\tSystem.out.println(m); // expect ADD=10\n\n\tm.put(\"ABE\", 2);\n\tm.put(\"SEA\", 4);\n\tm.put(\"PDX\", 9);\n\tm.remove(\"ADD\");\n\tSystem.out.println(m); // expect ABE=2, PDX=9, SEA=4\n\n\tm.put(\"YYZ\", 1);\n\tm.put(\"PWM\", 3);\n\tm.put(\"PHF\", 5);\n\tm.put(\"PSM\", 2);\n\tm.remove(\"PDX\");\n\tSystem.out.println(m); // expect ABE=2,PHF=5,PSM=2,PWM=3,SEA=4,YYZ=1\n\n\tm.put(\"STS\", 7);\n\tm.remove(\"SEA\");\n\tSystem.out.println(m); // expect ABE=2,PHF=5,PSM=2,PWM=3,STS=7,YYZ=1\n\n\t// ...\n\tm.remove(\"STS\"); // error removing a node with two children whose right subtree has a root with no left children\n\tSystem.out.println(m);\n }", "title": "" }, { "docid": "5958d7143ee019a79e0795102c60a23b", "score": "0.5516453", "text": "public static int m64812a(Map<String, Object> map, String str, int i) {\n AppMethodBeat.m2504i(93894);\n Integer bv = C38303f.m64816bv(map.get(str));\n if (bv != null) {\n i = bv.intValue();\n AppMethodBeat.m2505o(93894);\n return i;\n }\n AppMethodBeat.m2505o(93894);\n return i;\n }", "title": "" }, { "docid": "770b00fa729538f5e385fb5356fadf75", "score": "0.55108094", "text": "public static String m64813a(Map<String, Object> map, String str, String str2) {\n String str3;\n AppMethodBeat.m2504i(93893);\n Object obj = map.get(str);\n if (obj instanceof String) {\n str3 = (String) obj;\n } else if (obj != null) {\n str3 = String.valueOf(obj);\n } else {\n str3 = null;\n }\n if (str3 != null) {\n AppMethodBeat.m2505o(93893);\n return str3;\n }\n AppMethodBeat.m2505o(93893);\n return str2;\n }", "title": "" }, { "docid": "04f2dc0da7fcaa617baa62eadce41cfd", "score": "0.54987085", "text": "void loadMap() {\n }", "title": "" }, { "docid": "7e020591048b24f455dd8ea70513f35e", "score": "0.5497868", "text": "public interface Map\n {\n /** Maps an integer to an appropriate String value. */ \n public String map(int val); \n public boolean isSymmetric(); \n public double getStartAngle();\n }", "title": "" }, { "docid": "5e63106892a5e53e53d4f41d305144f1", "score": "0.5494313", "text": "public Map<String,Integer> mapFun(Map<String,Integer> map) {\n map.put(\"Ford Explorer\", 2012);\n map.put(\"Smart Fortwo\", 2013);\n map.remove(\"Jeep Wrangler\", 2003);\n return map;\n }", "title": "" }, { "docid": "b913dc456d3ad7950b6b4254240f0fbd", "score": "0.54801595", "text": "@Override\r\n public void example(Map<String, String> arg0) {\n\r\n }", "title": "" }, { "docid": "76ba61730115a19dc7c032aab363e23a", "score": "0.5468231", "text": "public interface C3288az {\n /* renamed from: ɹ reason: contains not printable characters */\n Map<aD.C0107, String> m1699();\n}", "title": "" }, { "docid": "f1f1fd1113c4f0c1f0d629e6903b1f46", "score": "0.5467794", "text": "public static void main(String[] args) {\n\t\tHashMap mymap = new HashMap();\n\t\t\n\t\tSystem.out.println(mymap.size());\n\t\tString name1 = \"zhangsan\";\n\t\tString name2 = \"lisi\";\n\t\tmymap.put(name1, 90);\n\t\tmymap.put(name2, 95);\n\t\tSystem.out.println(mymap.size());\n\t\tshowMap(mymap) ;\n\t\t\n\t\tSystem.out.println(\"------------------\");\n\t\tmymap.put(name2, 100);\n\t\tSystem.out.println(mymap.size());\n\t\t\n\t\tshowMap(mymap) ;\n\n\t}", "title": "" }, { "docid": "06440fffa8630ecefc25aff769b93538", "score": "0.5461311", "text": "public static void main(String[] args) {\n System.out.println(\"No of characters deleted is \"+ numberNeeded(\"abc\", \"cde\"));\n \n \n String str = \"journaldev\";\n\t\n\t//string to char array\n\tchar[] chars = str.toCharArray();\n\t\n\tMap<char[],Integer> ss = new HashMap<>();\n\tss.put(chars,1);\n}", "title": "" }, { "docid": "222c17ed428c554ac8c089b24f49e999", "score": "0.54571867", "text": "public static Map fixedSizeMap(Map map) {\n/* 1202 */ return FixedSizeMap.decorate(map);\n/* */ }", "title": "" }, { "docid": "205f7583eabe1f818e32937eb3a8684b", "score": "0.5454267", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tHashMap<Integer,String> hm =new HashMap<Integer,String>();\r\n\t\tSystem.out.println(\"enter the number and string !!\");\r\n\t\thm.put(1,\"abhijeet\");\r\n\t\tfor(int i=1;i<=5;i++)\r\n\t\t{\r\n\t\t\tint n=sc.nextInt();\r\n\t\t\tString s=sc.next();\r\n\t\t\thm.put(n,s);\r\n\t\t\t\r\n\t\t}\r\n//\t\tIterator<> itr=hm.iterator();\r\n\t\tSet<Map.Entry<Integer, String>> mpa = hm.entrySet();\r\n\t\t\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, String> c : mpa)\r\n\t\t{\r\n\t\tSystem.out.println(c.getKey());\r\n\t\t\tSystem.out.println(c.getValue());\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "8f2d53585767184ce7d6a5574fdd5442", "score": "0.54313797", "text": "private static SpannableStringBuilder m8013a(String str, Map<String, SpannableStringBuilder> map) {\n if (!map.containsKey(str)) {\n map.put(str, new SpannableStringBuilder());\n }\n return (SpannableStringBuilder) map.get(str);\n }", "title": "" }, { "docid": "faeb77132195ed11bc35a6f69cf90d95", "score": "0.54254866", "text": "public StructureSettings(Optional<StructureSettingsStronghold> optional, Map<StructureGenerator<?>, StructureSettingsFeature> map) {\n/* 28 */ this.e = optional.orElse(null);\n/* 29 */ this.d = Maps.newHashMap(map);\n/* */ }", "title": "" }, { "docid": "fb489025dd7d3ad0a67cc481f4f1bb34", "score": "0.5422275", "text": "MapType getMapType();", "title": "" }, { "docid": "0a960f5c7fe3d05c4d50cc6baf07b38c", "score": "0.5415476", "text": "public static void m7301a(Context context, String str, long j, Map<String, Integer> map) {\n try {\n String[] strArr = (String[]) map.keySet().toArray(new String[0]);\n JSONArray jSONArray = new JSONArray();\n if (j <= 0 || j >= System.currentTimeMillis()) {\n double currentTimeMillis = (double) System.currentTimeMillis();\n double random = Math.random() * 8.64E7d;\n Double.isNaN(currentTimeMillis);\n jSONArray.put(currentTimeMillis - random);\n } else {\n jSONArray.put(j);\n }\n for (String str2 : strArr) {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(C3617o.f9365as, str2);\n jSONObject.put(C3617o.f9366at, map.get(str2).intValue());\n jSONArray.put(jSONObject);\n }\n SharedPreferences.Editor edit = context.getSharedPreferences(str, 0).edit();\n edit.putString(\"bind_status\", jSONArray.toString());\n edit.apply();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "85953b47796f81114a8a432adef64e7d", "score": "0.5414042", "text": "@Test\n public void testAdd() {\n MyMap<String, Integer> map = new MyMap<>(16);\n map.put(\"color\", 1);\n map.put(\"price\", 200);\n map.put(null, 10);\n map.put(\"color\", 3);\n\n assertEquals(3, map.size());\n }", "title": "" }, { "docid": "eba32153b798d9726a30c3430fa1ef04", "score": "0.5412971", "text": "public abstract String getNextMap();", "title": "" }, { "docid": "50542f7c0ad1b8102114e488c646d333", "score": "0.5408732", "text": "@Test\n public void test4() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(11,\"org.apache.commons.collections4.map.AbstractLinkedMapEvoSuiteTest.test4\");\n LRUMap<Integer, String> lRUMap0 = new LRUMap<Integer, String>();\n LinkedMap<AbstractMap.SimpleEntry<String, Integer>, String> linkedMap0 = new LinkedMap<AbstractMap.SimpleEntry<String, Integer>, String>(826, 826);\n linkedMap0.toString();\n boolean boolean0 = lRUMap0.containsValue((Object) \"{}\");\n assertEquals(false, boolean0);\n }", "title": "" }, { "docid": "2b9b32629cd3727e05c107260e7f7f9b", "score": "0.54060626", "text": "public static /* synthetic */ String m12036a(C3572r0 r0Var, String str, Map map, int i, Object obj) {\n if (obj == null) {\n if ((i & 2) != 0) {\n map = C13173j0.m40350a();\n }\n return r0Var.mo12773a(str, map);\n }\n throw new UnsupportedOperationException(\"Super calls with default arguments not supported in this target, function: optionalString\");\n }", "title": "" }, { "docid": "6238c6ebf9d0bb077b80e5fdd27ad3b1", "score": "0.54036903", "text": "public abstract void prepareFirstParams(Map<String, String> map);", "title": "" }, { "docid": "24673871962aa728e39221430113c892", "score": "0.54036283", "text": "public Map<String, Object> mo27922a(String str) {\n try {\n return (Map) C13452e.m41374b(str);\n } catch (Exception unused) {\n return null;\n }\n }", "title": "" }, { "docid": "0d199b7730eba0de20cea719ce615b42", "score": "0.53921366", "text": "Expression getMap();", "title": "" }, { "docid": "5b8e9c599fc9158687fe04a98c29474b", "score": "0.5391136", "text": "Map<String, Object> getMap();", "title": "" }, { "docid": "78ff0cbf5339a460544b4e3019da2ffa", "score": "0.5387462", "text": "public abstract void askForMap();", "title": "" }, { "docid": "9c7e278ed8d7283bef063a0865fbcc57", "score": "0.53859013", "text": "@Override\n\tpublic void setParameterMap(Map arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "d8d89fae35a418b7aa4a4867a402699b", "score": "0.5383245", "text": "java.util.Map<java.lang.String, java.lang.String>\n getSsMapMap();", "title": "" }, { "docid": "c3d4f7ae705021070ce168fac41b515d", "score": "0.53822005", "text": "public interface IMapIdenfires {\n int MAP_GUN = 0;\n int MAP_MINE = 1;\n int MAP_DINAMIT = 2;\n\n int MAP_TREASURE = 3;\n int MAP_FAKE_TREASURE = 4;\n int MAP_PORTAL = 5;\n\n int MAP_TRAP = 6;\n int MAP_HOSPITAL = 7;\n\n int MAP_PLANTED_MINE = 8;\n int MAP_EXIT = 9;\n}", "title": "" }, { "docid": "bd7d8455b3718aa892ea9f97582fd468", "score": "0.5378233", "text": "@Override\n\tpublic void visit(MapExtension n) {\n\n\t}", "title": "" }, { "docid": "ffae4f4bb696d01a4e7b13594f47d1b8", "score": "0.5372778", "text": "public static String getString(Map map, Object key, String defaultValue) {\n/* 377 */ String answer = getString(map, key);\n/* 378 */ if (answer == null) {\n/* 379 */ answer = defaultValue;\n/* */ }\n/* 381 */ return answer;\n/* */ }", "title": "" }, { "docid": "aa5129e6bdf5f00d3636c24fda4c72f1", "score": "0.5351908", "text": "@Override\r\n\tpublic String getzSet(Map param) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7ce80f26f2f3651c3dc0423ae490bd8a", "score": "0.53481305", "text": "@Override\n\tpublic void visit(MetaMapLit n) {\n\n\t}", "title": "" }, { "docid": "889c43a8eef31f20152c07079d967473", "score": "0.534619", "text": "public static Map<String, String> m8026b(Map<String, String> map) {\n HashMap hashMap = new HashMap(map);\n for (String str : hashMap.keySet()) {\n String str2 = (String) hashMap.get(str);\n if (str2 != null) {\n hashMap.put(str, C2025o.m7966e(str2));\n }\n }\n return hashMap;\n }", "title": "" }, { "docid": "c5303703f7024f6f96569a9eaee1d922", "score": "0.53444815", "text": "Map_db() {;}", "title": "" }, { "docid": "79559c7e61fca4dcf0cc22333f17a0ef", "score": "0.5341041", "text": "public void mo22786a(Map<String, String> map) {\n m14645a(\"init\", (Runnable) new C7057Ea(this, map));\n }", "title": "" }, { "docid": "0cc9da00e795fc60758e3703721df77d", "score": "0.533316", "text": "public String map(int val);", "title": "" }, { "docid": "2a18f599dbdc7c7f64faa13d0287b663", "score": "0.5331487", "text": "public static void main(String[] args) {\n\n\t\tMap<String, Integer> map = new Map<>();\n\t\tfor(int i=0; i<20; i++) {\n\t\t\tmap.insert(\"abc\"+i,i);\n\t\t\t//System.out.println(\"i = \" + i + \" lf = \" + map.loadfactor());\n\t\t}\n\t\t\n\t\tmap.removeKey(\"abc3\");\n\t\tmap.removeKey(\"abc7\");\n\t\t\n\t\tfor(int i=0; i<20; i++) {\n\t\t\t\n\t\t\tSystem.out.println(\"abc\" + i + \" : \" + map.getValue(\"abc\"+i));\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "b3f06a053cf720082699391347258a5d", "score": "0.5331006", "text": "public void fillHashMap(HashMap<Character, Integer> map, String str) {\n for(int i=0;i<str.length();i++) {\n map.put(str.charAt(i), map.getOrDefault(str.charAt(i), 0) + 1);\n }\n return;\n }", "title": "" }, { "docid": "a2319adb14965f68b1b42cf949571570", "score": "0.53273636", "text": "Map<String, String[]> getParameterMap();", "title": "" }, { "docid": "7336b5382609c9832044adf526cb6fc4", "score": "0.5324968", "text": "public boolean hasMap() {\n return typeCase_ == 19;\n }", "title": "" }, { "docid": "4aa12aebc78d44c3a56dbf9ce09d3f68", "score": "0.53194004", "text": "public void a(String str, Map<String, byte[]> map, long j2) {\n try {\n this.b.a().f().a(\"\", str, map, \"\", this.j, j2);\n } catch (UnsupportedEncodingException e2) {\n e2.printStackTrace();\n } catch (JSONException e3) {\n e3.printStackTrace();\n }\n }", "title": "" }, { "docid": "3930b12d118fe835cd7d5fdcbc36cb18", "score": "0.53186786", "text": "private String getKeyNumberN(Map<String, Integer> map, int n){\r\n\t\tint compteur = 0;\r\n\t\tIterator<String> mapI = map.keySet().iterator();\r\n\t\twhile(mapI.hasNext()){\r\n\t\t\tif(compteur == n){\r\n\t\t\t\treturn (String) mapI.next();\r\n\t\t\t} else {\r\n\t\t\t\tmapI.next();\r\n\t\t\t\tcompteur++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException(\"getNumberN : N trop grand\");\r\n\t}", "title": "" }, { "docid": "d47cac8775fbbd8ccbc12563548a14df", "score": "0.53167707", "text": "VariableMap randomPick();", "title": "" }, { "docid": "c616230d5f0531c449ae47e825636317", "score": "0.530138", "text": "public static void put() {\n map.put(\"aaa\",\"aaa\");\n }", "title": "" }, { "docid": "f0387c6d4673405e085fc38e55231493", "score": "0.5300214", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tLinkedHashMap<String,Integer>wordNumberMapping=new LinkedHashMap<>();\n\t\tScanner sc=new Scanner(System.in);\n\t\tfor(int i=0;i<4;i++)\n\t\t\t\n\t\t{\n\t\t\t System.out.println(\"enter the keys\");\n\t\t\t String a=sc.next();\n\t\t\t System.out.println(\"enter the values\");\n\t\t\t Integer b=sc.nextInt();\n\t\t\t wordNumberMapping.put(a,b);\n\t\t\t System.out.println(wordNumberMapping);\n\t\t}\n\t}", "title": "" }, { "docid": "12e011053fefe3fa552250dbac9f7837", "score": "0.5298749", "text": "public interface C4069e {\n /* renamed from: a */\n C4080b mo28289a(String str, C4061a aVar, int i, int i2, Map<C4063c, ?> map) throws WriterException;\n}", "title": "" }, { "docid": "044b5cdc1297ec0e293db2550cc6ef01", "score": "0.528872", "text": "@Override\n public void start(Map<String, String> map) {\n\n }", "title": "" } ]
96a27c66af6160afd9a3fb5ab647c498
/ Random coin toss.
[ { "docid": "3e46b05575f6cbba027c11386fded753", "score": "0.62038696", "text": "private boolean toss(double p) {\n\t\treturn Math.random() < p;\n\t}", "title": "" } ]
[ { "docid": "598b0fd9abb1a295f7da8a98dbd0fc3b", "score": "0.83603776", "text": "public int coinToss() {\r\n return randInt(0, 4);\r\n }", "title": "" }, { "docid": "d94decb02079097ffa7d6071386bf9b8", "score": "0.7981227", "text": "public static String coinToss(){\n\n\n String result;\n\n Random rand = new Random();\n int randomNum = rand.nextInt(10) + 1;\n\n if (randomNum%2 ==0 ) {\n result = \"Tails\";\n }\n else {\n result = \"Heads\";\n }\n return result;\n\n\n }", "title": "" }, { "docid": "04766636c591f847d4705e12962b11c8", "score": "0.7809259", "text": "public static void coinToss()\r\n\t{\r\n Random rand = new Random(); // Create a Random object.\r\n \r\n // Generate a random number in the range\r\n\t\t// of 0 through 1. Note that the argument\r\n\t\t// passed to the nextInt method is the \r\n\t\t// upper limit, exclusive.\r\n int randNum = rand.nextInt(2);\r\n\t\t\r\n\t\t// Display the result of the toss.\r\n\t\tif (randNum == 0)\r\n System.out.println(\"Heads!\");\r\n else \r\n {\r\n System.out.println(\"Tails!\");\r\n } // INSERT THE MISSING IF..ELSE STATEMENT TO OUTPUT HEADS OR TAILS\r\n }", "title": "" }, { "docid": "7acb1184c47df0657436272ea25855cc", "score": "0.70500064", "text": "public static int play() {\n // generate random coins from 1 - 100\n int coins = ((int)(Math.random() * 100 )+1);\n return coins;\n }", "title": "" }, { "docid": "6d13b1db6939a1c6c3eb3493d94e78f0", "score": "0.69756484", "text": "private static void tossCoin() {\n\t System.out.println(\"\\nMaking a toss to check who plays first\\nChoose '1' for HEAD\\nChoose '2' for TAIL\");\n\t int option = Utility.getUserInteger();;\n\t if ( option==1 || option==2 ) {\n\t \tint flip = Utility.getRandomInt(2)+1;\n\t \tif (flip==1) {\n\t \t\tSystem.out.println(\"\\nBy tossing Coin it shows HEAD\\n\");\n\t \t} else {\n\t \t\tSystem.out.println(\"\\nBy tossing Coin it shows TAIL\\n\");\n\t \t}\n\t \tif (flip == option) {\n\t \t\tSystem.out.println(\"You have to start the game\");\n\t \t} else {\n\t \t\tSystem.out.println(\"Computer will start the game\");\n\t \t\tturn++;\n\t \t}\n\t } else {\n\t \tSystem.out.println(\"\\nInvalid input Choose number from below\");\n\t \ttossCoin();\n\t }\n\t}", "title": "" }, { "docid": "c8c109d29507635478b0e912bcdf9ec6", "score": "0.690391", "text": "public static void coin(int n) {\r\n\t\t// brojaci za glavu i pismo\r\n\t\tint head = 0;\r\n\t\tint letter = 0;\r\n\t\t// simulacija bacanja novcica pomocu petlje\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t// nasumicni odabir brojeva, gdje 0 predstavlja glavu a 1 pismo\r\n\t\t\tint coin = (int) (Math.random() * 2);\r\n\t\t\tif (coin == 0) {\r\n\t\t\t\thead++;\r\n\t\t\t} else\r\n\t\t\t\tletter++;\r\n\t\t}\r\n\t\t// ispis rezultata\r\n\t\tSystem.out.println(\" Glava \" + head);\r\n\t\tSystem.out.println(\" Pismo \" + letter);\r\n\t}", "title": "" }, { "docid": "d1d1a60981ab5e1770f9d339323b1580", "score": "0.69015235", "text": "public static boolean coin() {\n return random.nextBoolean();\n }", "title": "" }, { "docid": "a958489a7c3c4686bb675328ca861dc2", "score": "0.6761036", "text": "Random rnd();", "title": "" }, { "docid": "de3aa906a2050c079107e74994c14327", "score": "0.6700743", "text": "public void toss() {\n\n Random r = new Random();\n int side = r.nextInt(2) + 1;\n\n //set the side\n switch (side) {\n case 1:\n sideUp = \"Heads\";\n break;\n case 2:\n sideUp = \"Tails\";\n break;\n default:\n System.out.println(\"Ya fakn' broke it\");\n break;\n }\n }", "title": "" }, { "docid": "8be6ec4fea013c2d157af5c947f5ebd7", "score": "0.66583407", "text": "double amount(RandomGenerator rand);", "title": "" }, { "docid": "1fc093f3859403a57bfb9104696a2f32", "score": "0.6629698", "text": "public int getRandomMoney() {\n return (int) (Math.random() * (500));\n }", "title": "" }, { "docid": "a4fe78ab0656e0b8096fbb10eccbc24b", "score": "0.657385", "text": "private void wobble()\n {\n if(Greenfoot.getRandomNumber(100) < 35)\n {\n if(Greenfoot.getRandomNumber(2) < 1)\n {\n turn(-15); \n }\n else\n {\n turn(15);\n }\n }\n }", "title": "" }, { "docid": "66a721f8d7c738c6a6d82e3db100307e", "score": "0.6544314", "text": "public int BurnChance(){\n return RandomNum(1, 4);\n }", "title": "" }, { "docid": "3d977260283b2a894dfc999316bb9605", "score": "0.65114474", "text": "int getRandomSeed();", "title": "" }, { "docid": "6abeeb2b01b6d6d2003f963140fe1b7a", "score": "0.6511294", "text": "public boolean shouldCreateCoin()\n {\n return MathUtils.random(10) >= 3;\n }", "title": "" }, { "docid": "6e89b09dc2c7c0b8583d654de617e376", "score": "0.6416228", "text": "public void randomTurn()\n {\n if(Greenfoot.getRandomNumber(100)<10)\n {\n turn (Greenfoot.getRandomNumber(91) -45);\n } \n }", "title": "" }, { "docid": "c3159c6f9b610ff592c9a3da35366985", "score": "0.64076203", "text": "int getRandom();", "title": "" }, { "docid": "d52698fd4ea5298fb3f549fe079f7d34", "score": "0.63935375", "text": "public int PoisonChance(){\n return RandomNum(1, 4);\n }", "title": "" }, { "docid": "2f6575bed931740e25b5430a73a7b04c", "score": "0.63480926", "text": "private int rnd() {\n return (int) (Math.random() * 15);\n }", "title": "" }, { "docid": "4f666a8155ff8d78ffa269dd36622c7e", "score": "0.62980497", "text": "int getRandom() {\n // todo\n return 0;\n }", "title": "" }, { "docid": "81b8d00252d72a871a451c78d235de61", "score": "0.62934476", "text": "public int compete(Random time);", "title": "" }, { "docid": "48df6b543ba4b0930b289f429267226f", "score": "0.6286239", "text": "public static int flip()\n {\n \n \n //This creates a random number between 0 and 1, if it is less than .5, it associates it with tails. If it is greater than .5, it associates it with heads.\n if (Math.random() < 0.5)\n {\n System.out.println(\"Tails: 1\");\n System.out.println(\"Heads: 0\");\n return 1;\n }\n else\n {\n System.out.println(\"Tails: 0\");\n System.out.println(\"Heads: 1\");\n return 0;\n }\n }", "title": "" }, { "docid": "bac55584a379b2619665b82bff78978f", "score": "0.62641245", "text": "public static void wonCoinToss() {\r\n System.out.println(\r\n \"Congratulations, you've won the coin toss!\\nYou get to go first!\");\r\n }", "title": "" }, { "docid": "9cf12a4bc99d8f9e2981e6f7c966be0b", "score": "0.62612313", "text": "public static int randomize() {\n\t\t\n\t\treturn (int)(Math.random() * 2);\n\t}", "title": "" }, { "docid": "a2cea91c6e479424ff87c1ac95aa1ea5", "score": "0.6253601", "text": "public static void main(String[] args) {\r\n\t\t// broj bacanja novcica \r\n\t\tint n = (int) (Math.random() * 20 + 1);\r\n\t\t// ispis poruke o broju bacanja novcica\r\n\t\tSystem.out.println(\"Novcic je bacen \" + n + \" puta.\");\r\n\t\t// pozivanje metode sa simulacijom bacanja novcica i rezultatima\r\n\t\tcoin(n);\r\n\t}", "title": "" }, { "docid": "38d3208b8c902209a81983ee3fe3b08c", "score": "0.62458736", "text": "public int ConfusionChance(){\n return RandomNum(1, 4);\n }", "title": "" }, { "docid": "b303458006a6030936fd1385f20b1872", "score": "0.6231931", "text": "public void CPURandomizer() {\r\n\t\tresult = randLow + (int) (Math.random() * (randHigh - randLow) + 0.5);\r\n\t}", "title": "" }, { "docid": "4631a1838bf2cd42bfa0f1cdd694c8ae", "score": "0.6229396", "text": "@Override\n public int atacar(){\n /* CHEQUEAR LO DE MATH RANDOM EN UNA CLASE APARTE O WEA */\n double chances = Math.random()*1000;\n \n if(chances <= 50.0){\n return 0;\n }else{\n if(turnosConBuffo > 0){\n turnosConBuffo--;\n return danioConBuffo;\n\n }\n return danioBase;\n }\n }", "title": "" }, { "docid": "5c00d6071ac142c3f72aa3ce5220b1bd", "score": "0.6221257", "text": "public void Toss() {\n\t Random r = new Random();\n\t int chance = r.nextInt(2);\n\t if (chance == 1) {\n\t System.out.println(\"Player is playing\");\n\t } else {\n\t System.out.println(\"Computer is playing\");\n\t }\n\t }", "title": "" }, { "docid": "db4c1af481e8b64f9723ffaf6f95363e", "score": "0.6220558", "text": "public static void lostCoinToss() {\r\n System.out.println(\"Ouch! You've lost the coin toss.\\nCPU goes first!\");\r\n }", "title": "" }, { "docid": "5058f1a36c9674e71dfbc5bd60a94254", "score": "0.62108505", "text": "private static int random()\n\t{\n\t\treturn ThreadLocalRandom.current().nextInt(100000000, 300000000);\n\t}", "title": "" }, { "docid": "5d860913e9217084165cc96c586a67ef", "score": "0.61897826", "text": "public int swingBat(){\r\n int hitType;\r\n Random rand = new Random();\r\n hitType = rand.nextInt(3); // returns number between 0 inclusive and 3 exclusive\r\n return hitType;\r\n }", "title": "" }, { "docid": "ae5fab667c6ce6defd31795de178e264", "score": "0.6166974", "text": "private double RandomHidden(){\n\tdouble rand = ((Math.random()*2) - 1)/4;\n\tSystem.out.println(\" Peso, random: \"+rand);\n\treturn rand;\n}", "title": "" }, { "docid": "2bc20bc43161161d4e5d307f02454000", "score": "0.61507994", "text": "public static int rkinhnghiem() {\n\t\treturn (int) (Math.random() * 10);\n\t}", "title": "" }, { "docid": "acce9ecf0e08c3390a9e50431301ff77", "score": "0.61383706", "text": "public int tirarDado(){\n int n = random.nextInt(5);\n return n;\n }", "title": "" }, { "docid": "2647ba92de69a24abc29d5df46359939", "score": "0.61225563", "text": "public static String flipCoin() {\r\n // Used to animate a countdown in the command line\r\n try {\r\n System.out.print(\"\\n3\");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\".\");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\". \");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\"2\");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\".\");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\". \");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\"1\");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\".\");\r\n Thread.sleep(COUNT_DELAY);\r\n System.out.print(\".\\n\");\r\n\r\n // Generates a number between 0.0 and 1.0, which simulates flipping\r\n // a coin\r\n if (Math.random() < 0.5) {\r\n System.out.println(\"Heads\\n\");\r\n Thread.sleep(PRINT_DELAY);\r\n return HEADS;\r\n }\r\n System.out.println(\"Tails\\n\");\r\n Thread.sleep(PRINT_DELAY);\r\n return TAILS;\r\n } catch (InterruptedException e) {\r\n System.out.println(\"Something went wrong!\");\r\n }\r\n return \"\";\r\n }", "title": "" }, { "docid": "027e8e32f2cfa8dee8946eb22399a76f", "score": "0.61149293", "text": "public static int random(int to) {\n\t\t//randomIndex++;\n\t\treturn (int) Math.floor(rand.nextDouble() * (to) + 1);\n\t}", "title": "" }, { "docid": "9f17a908eee7a890d634c65b00c14b86", "score": "0.60875094", "text": "private static int randomInt(int N){return (int)(Math.random()*N);}", "title": "" }, { "docid": "ab1a2289d8fb6527763d8f2ad031cf3a", "score": "0.6046469", "text": "private double getRandom(double random) {\r\n\t\tdouble val;\r\n\t\tval = r.nextDouble();\r\n\t\treturn (2*val - 1) * random;\r\n\t}", "title": "" }, { "docid": "8d0e07783b6945ffd06ffb4fceef7099", "score": "0.601695", "text": "private int genRandomPowerupType() {\n int type = (int) (Math.random() * 3);\n\n if (type == 2) {\n type = 1;\n }\n return type;\n }", "title": "" }, { "docid": "05b24406333e6416070fe63b98381a13", "score": "0.5998684", "text": "public int rand(int n) {\t\r\n\t\tseed = (a * seed + b) % m;\r\n\t\treturn (int)(seed % n);\r\n\t}", "title": "" }, { "docid": "35fa0ec24b83675c91cdb7ab7af8fa69", "score": "0.5998459", "text": "private Integer randomTs(int nextTs) {\n int r = random.nextInt(100);\n if (r < 80){\n return nextTs;\n }\n if (r < 88){\n return nextTs + 1;\n }\n if (r < 96){\n return nextTs - 1;\n }\n return nextTs + (r - 96);\n }", "title": "" }, { "docid": "5615ff050c2d9fa2e2fba0f170bfeb4e", "score": "0.5991837", "text": "public int getRandomNumber() {\n return number.nextInt(100);\n }", "title": "" }, { "docid": "b89e914cf88a6422bc7a2ec7999a4804", "score": "0.59781164", "text": "public void doFlips(int number) {\n\t\tfloat percentTail = 0, percentHead = 0;\n\t\tfor (int i = 0; i < number; i++) {\n\t\t\tfloat random = (float) Math.random();\n\t\t\tif (random < 0.5) {\n\t\t\t\tSystem.out.println(\"Result of coin flip is tail.\");\n\t\t\t\tpercentTail = random * 100 / number;\n\t\t\t\tSystem.out.println(\"Percentage of tail is : \" + percentTail);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Result of coin flip is head.\");\n\t\t\t\tpercentHead = 100 - percentTail;\n\t\t\t\tSystem.out.println(\"Percentage of the head is : \" + percentHead);\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "262f781f42520d572230d92a1d95f9de", "score": "0.5973336", "text": "public void findMoney(){\r\n\t\r\n Random rand = new Random();\r\n int cash = rand.nextInt(6001);\r\n\r\n player.credits += cash;\r\n\r\n JOptionPane.showMessageDialog(null, \"Congratulations! You found \"+ cash +\" lgiht years worth of fuel! TURN UP!\",\r\n \"Event\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t}", "title": "" }, { "docid": "097cf1b7b5ab80ea7ad7647604adefba", "score": "0.5958273", "text": "public static int getRandom() {\n double num=Math.abs(Math.random());\n return (int) (-(Math.log(1-num))*30*1000);\n }", "title": "" }, { "docid": "4366295dad9745cc060fb896502397d5", "score": "0.5949939", "text": "private static double generateRandomTemp()\n\t{\n\t\treturn (Math.random()*10+14);\n\t}", "title": "" }, { "docid": "0d5e86b52aac0d457e44006f7b4cadd7", "score": "0.5947225", "text": "public int sampleNextTransition(RandomEngine rand);", "title": "" }, { "docid": "4a564652ede20e51a1ac7268ca78bdd4", "score": "0.5925339", "text": "public static float randomCoeff() {\r\n\t\treturn (random_.nextFloat() - .5f) * 2;\r\n\t}", "title": "" }, { "docid": "75adc8f75897ee21777499e39fc0c73f", "score": "0.59147", "text": "private void generatePowerup(){\n final Timer powerupGenTimer = new Timer();\n Random rand1 = new Random();\n powerupGenInterval = (rand1.nextInt(powerupIntervalUpperBound)+powerupIntervalLowerBound)*1000;//we multiply by 1000 to convert to milliseconds\n TimerTask powerupGenTask = new TimerTask() {\n @Override\n public void run() {\n if(GlobalVariables.isGamePaused == false && GlobalVariables.gameOver == false) {\n Random rand2 = new Random();\n int m = rand2.nextInt(10000000);\n //30% probability for destroy and bonus block, 40% prob for frenzy block\n if ((m % 10) < 4) {\n if(GlobalVariables.frenzy == false) {\n frenzyBlockGen();\n }\n } else if ((m % 10) > 3 && (m % 10) < 7) {\n destroyBlockGen();\n } else if ((m % 10) > 6 && (m % 10) < 10) {\n bonusBlockGen();\n }\n }\n\n powerupGenTimer.cancel();\n if(GlobalVariables.gameOver == false){\n generatePowerup();\n }\n\n }\n };\n powerupGenTimer.schedule(powerupGenTask,powerupGenInterval);\n\n }", "title": "" }, { "docid": "97ee617fd280d92aadec870ace7bb6de", "score": "0.59020215", "text": "int generateWeight() {\r\n\t\tint weight = (int)(10*Math.random());\r\n\t\tif (weight == 0) weight = 1;\r\n\t\t\r\n\t\treturn weight;\r\n\t}", "title": "" }, { "docid": "9a839c3006c4e7656a9e4c7ea8b1d36d", "score": "0.59019804", "text": "public void getRobbed(){\r\n\r\n Random rand = new Random();\r\n int stolenMoney = rand.nextInt(250);\r\n\r\n if(player.credits < stolenMoney){\r\n player.credits = 0;\r\n }\r\n else{\r\n player.credits -= stolenMoney;\r\n }\r\n\r\n //System.out.println(\"You've been robbed! They took \"+stolenMoney+\" credits! Sucks to suck!\");\r\n JOptionPane.showMessageDialog(null, \"You've been robbed! They took \"+stolenMoney+\" credits! Sucks to suck!\",\r\n \"Event\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "title": "" }, { "docid": "307ba899763796d11f438503899f6b20", "score": "0.5900163", "text": "public int satunnainenKoordinaattiX() {\n return random.nextInt(500) + 30;\n }", "title": "" }, { "docid": "602e68980010c6efd5bd8d967839f9f7", "score": "0.5895924", "text": "public void randomize()\n\t{\n\t\tfor(int i = 0; i < data.length; i++)\n\t\t\tdata[i] = Math.random()*2 - 1;\n\t}", "title": "" }, { "docid": "74b981ee095218b20ea437abffb1a19f", "score": "0.5890123", "text": "public static void main( String[] args )\n {\n Coin mine = new Coin();\n\n //test 1st overloaded constructor\n Coin yours = new Coin( \"quarter\" );\n \n //test 2nd overloaded constructor\n Coin wayne = new Coin( \"dollar\", \"heads\" );\n\n //test toString() methods of each Coin\n System.out.println(\"mine: \" + mine);\n System.out.println(\"yours: \" + yours);\n System.out.println(\"wayne: \" + wayne);\n\n //test flip() method\n System.out.println(\"\\nAfter flipping...\");\n yours.flip();\n wayne.flip();\n System.out.println(\"yours: \" + yours);\n System.out.println(\"wayne: \" + wayne);\n\n //test equals() method\n if ( yours.equals(wayne) ) {\n\t System.out.println( \"Matchee matchee!\" );\n\n }else{\n\t System.out.println( \"No match. Firestarter you can not be.\" );\n}\n //if the heads counter is less than chosen num (15), do the body section\n while (wayne.headsCtr < 16 && yours.headsCtr < 16) {\n\twayne.flip();\n\tyours.flip();\n\tif (wayne.upFace == \"heads\") {\n\t wayne.headsCtr += 1;\n\t System.out.println(\"wayne: \" + wayne.headsCtr);\n\t}\n\tif (yours.upFace == \"heads\") {\n\t yours.headsCtr += 1;\n\t System.out.println(\"yours: \" + yours.headsCtr);\n\t}\n\n }\n //if the match counter is less than the chosen num (15), do the body\n while (wayne.ctrMatch < 16) {\n\twayne.flip();\n\tyours.flip();\n\tSystem.out.println(wayne.ctrMatch);\n\t if ( yours.equals(wayne) ) {\n\t System.out.println( \"Matchee matchee!\" );\n\t wayne.ctrMatch += 1;\n\n }else{\n\t System.out.println( \"No match. Firestarter you can not be.\" );\n\t }\n }\n //wayne.ctrMatch won't get to 13000 by the other ways. however,put it on\n //a loop until it gets to 13000 and it will get there.\n while (wayne.ctrMatch < 13001) {\n\twayne.flip();\n\tif (yours.equals(wayne)) {\n\t wayne.ctrMatch += 1;\n\t}\n }\n //realized that a bang would make this all really easy. had to cheat to\n //get the remainder operator (%). sorry! (Or should i say, !sorry ...)\n while (!(wayne.ctrMatch >= 13000 && ((wayne.ctrMatch % 2000) == 0)))\n {\n\twayne.flip();\n \tSystem.out.println(wayne.ctrMatch);\n\twayne.ctrMatch += 1;\n\tif ((wayne.ctrMatch % 2000) == 0) {\n\t System.out.println(\"yay\");\n\t}\n }\n /*===================TOP==========================\n\n\t ====================BOTTOM======================*/\n\n }", "title": "" }, { "docid": "7b151d7898ad9d58957374c82165f51d", "score": "0.58851683", "text": "private int numGen(int difficulty){\n return randomGenerator.nextInt(difficulty) - difficulty/2;\n }", "title": "" }, { "docid": "a0653bc15824be837a3acafe7339802b", "score": "0.5879053", "text": "public int randomActionWinner()\r\n {\r\n\tint ret=0;\r\n\tdo\r\n\t\tret = (int)(XCSConstants.drand()*this.pa.length);\r\n\twhile(this.nr[ret]==0);\r\n\treturn ret;\r\n }", "title": "" }, { "docid": "eab1e61d0b05580c48bd0d1f5b7f4e3f", "score": "0.58731586", "text": "private int generateCoolColor() {\n Random random = new Random();\n final float hue = 80 + random.nextFloat() * (300 - 80);\n final float saturation = random.nextFloat();\n final float luminance = 0.9f;\n return Color.HSVToColor(new float[] {hue, saturation, luminance});\n }", "title": "" }, { "docid": "b8faff5681d98fc03c3a2c091c240c49", "score": "0.5861598", "text": "double sample(Random random);", "title": "" }, { "docid": "96043b713e6f4fada5fe5dadf1fb96c3", "score": "0.5860157", "text": "static String getRandomSalt(int num, Random random) {\n/* 92 */ StringBuilder saltString = new StringBuilder(num);\n/* 93 */ for (int i = 1; i <= num; i++) {\n/* 94 */ saltString.append(\"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".charAt(random.nextInt(\"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".length())));\n/* */ }\n/* 96 */ return saltString.toString();\n/* */ }", "title": "" }, { "docid": "108249ac8d26ccf7f1f980881e5bf53a", "score": "0.58535457", "text": "void skill3() {\nRandom gen = new Random();\nint num = gen.nextInt(20);\n\nRandom gen2 = new Random();\nint num2 = gen2.nextInt(10);\n\nint num3 = num - num2;\n\n\t\t// Get another random number that is less than 10 and print it to the console \n\nJOptionPane.showMessageDialog(null,\"The difference between these two random numbers is\" + num3 );\n\n\t\t// Using a pop-up, tell the user the difference between the numbers // Hint: use subtraction \n\n\n\n\t\t}", "title": "" }, { "docid": "03cc87411ce08a7f9f58f1a8e5a87257", "score": "0.5848922", "text": "private int chooseNumber() {\r\n\t\treturn 1+rand.nextInt(998);\r\n\t}", "title": "" }, { "docid": "8c56b0eba59bba06edc74ebf29639760", "score": "0.58482605", "text": "private double RandomOutput(){\n\tdouble rand = ((Math.random()*4) - 2);\n\tSystem.out.println(\" Peso, random: \"+rand);\n\treturn rand;\n}", "title": "" }, { "docid": "bdfc55a89197eccced1f23513937a9e0", "score": "0.58419645", "text": "private void implementRandomAlgorithm(int s)\r\n\t{\r\n\t\tint rando= (int)Math.round(Math.random()*resSet.length);\r\n\t\tif(rando==resSet.length)\r\n\t\t{\r\n\t\t\trando--;\r\n\t\t}\r\n\t\tresSet[rando]=s;\r\n\t}", "title": "" }, { "docid": "1be0d0222eaa0056240b5f516c559b0a", "score": "0.58408713", "text": "private int cheat1Result() {\n return (int) (Math.random() * 5);\n }", "title": "" }, { "docid": "2f32277a16d77c850c04b79791bf7d59", "score": "0.5839129", "text": "private static int randomStats(int stats)\n {\n stats = (int)(Math.random() * ((10 - 1) + 1)) + 1;\n return stats;\n }", "title": "" }, { "docid": "92869c09e88fd65a10dda68787c65a0d", "score": "0.5836347", "text": "private int generateHeartRate() {\n int min = 60;\n int max = 200;\n return min + (int) (Math.random() * (max - min + 1));\n }", "title": "" }, { "docid": "fde23dcf164e59f1a2c3be0e32356a8e", "score": "0.58330923", "text": "public int SleepChance() {\n return RandomNum(1, 4);\n }", "title": "" }, { "docid": "c35a57b1eb6597b594b75d5fa722dd11", "score": "0.5820734", "text": "private void randomSwap() {\n if (rnd.nextInt(100) > (int) (BottleCapVisualizer.percentCapUsage * 100))\n swapWithBank();\n else\n swapOnPicture();\n }", "title": "" }, { "docid": "78d95cd759ce7728e88cf0953f4177ef", "score": "0.58201575", "text": "public static void main(String[] args) {\n\t\tRandom random=new Random();\r\n\t\t//prints a random number btw +ve and -ve 2billion\r\n\t\tSystem.out.println(random.nextInt());\r\n\t\t//prints a random number btw 0 & 1\r\n\t\tSystem.out.println(random.nextDouble());\r\n\t\t//to print random num of a die\r\n\t\t// As compiler takes 0 to 5 we need 1 to 6 so +1\r\n\t\tint result=random.nextInt(6)+1;\r\n\t\tSystem.out.println(result);\r\n\t\tboolean bool=random.nextBoolean();\r\n\t\tSystem.out.println(bool);\r\n\r\n\t}", "title": "" }, { "docid": "c400286101b7bac2a9ddbfc01fe2664d", "score": "0.5818303", "text": "@Override\n public int ping() throws Exception {\n return new Random().nextInt(50);\n }", "title": "" }, { "docid": "f7e2f03550d3745d5222161f75aa220f", "score": "0.581048", "text": "@Override\n\tpublic int execute() {\n\t\treturn Random.nextInt(125, 275);\n\t}", "title": "" }, { "docid": "2daf344422adfefe2ad1b34c16032bd8", "score": "0.5809483", "text": "public static void main(String[] args) {\n\t\tchar insert=' ';\n\t\tString computerChoice=\"\";\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tString outcomes = \"\";\n\t\tint numOfWinsForUser=0;\n\t\tint numOfWinsForComputer=0;\n\t\tRandom r = new Random();\n\t\tint tossedCoin;\n\t\tString answer=\"\";\n\t\tString result=\"\";\n\t\tint count=0;\n\t\ttry{\n\t\tdo{\n\t\t\tcomputerChoice=\"\";\n\t\t\tSystem.out.println(\"Enter your choice please.\");\n\t\t\tString c1 = input.nextLine();\n\t\t\tchar[] characters = new char[3];\n\t\t\tfor(int i=0;i<characters.length;i++)\n\t\t\t\tcharacters[i]=c1.charAt(i);\n\t\t\tif(characters[1]=='h')\n\t\t\t\tinsert = 't';\n\t\t\telse if(characters[1]=='t')\n\t\t\t\tinsert='h';\n\t\t\tfor(int i=characters.length-1;i>0;i--){\n\t\t\t\n\t\t\t\tcharacters[i]=characters[i-1];\n\t\t\t\tif(i==1)\n\t\t\t\t\tcharacters[i-1]=insert;\n\t\t\t}\n\t\t\tfor(int i=0;i<characters.length;i++){\n\t\t\t\tcomputerChoice+=characters[i];\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\nThe computer has taken %s\\n\",computerChoice);\n\t\t\tif(count==0){\n\t\t\tSystem.out.println(\"Do you wanna start? yes/no\");\n\t\t\tanswer=input.nextLine();\n\t\t}\n\t\tif(answer.contains(\"no\"))\n\t\t\tbreak;\t\t\t\n\t\t\toutcomes=\"\";\n\t\twhile (!outcomes.contains(c1) && !outcomes.contains(computerChoice)) {\n\t\t\ttossedCoin = r.nextInt(2);\n\t\t\tif (tossedCoin == 0){\n\t\t\t\toutcomes += \"h\";\n\t\t\t\tresult=\"heads(h)\";\n\t\t\tSystem.out.printf(\"\\nThe result of toss is %s\\n\", result);\n\t\t\tif(!outcomes.contains(c1) && !outcomes.contains(computerChoice))\n\t\t\tinput.nextLine();\n\t\t\t}\n\t\t\t\n\t\t\telse if (tossedCoin == 1){\n\t\t\t\toutcomes += \"t\";\n\t\t\t\tresult=\"tails(t)\";\n\t\t\t\tSystem.out.printf(\"\\nThe result of toss is %s\\n\", result);\n\t\t\t\tif(!outcomes.contains(c1) && !outcomes.contains(computerChoice))\n\t\t\t\t\tinput.nextLine();\n\t\t\t}\n\t\t}\n\t\tif(outcomes.contains(c1)){\n\t\t\tnumOfWinsForUser++;\n\t\tSystem.out.println(\"user has won!\");\n\t\t}\n\t\telse if(outcomes.contains(computerChoice)){\n\t\t\tnumOfWinsForComputer++;\n\t\t\tSystem.out.println(\"computer has won!\");\n\t\t}\n\t\tcount++;\n\t\t\n\t\t\tSystem.out.println(\"Do you wanna play again? yes/no\");\n\t\t answer=input.nextLine();\n\t\t\n\t\t}\n\t\twhile(answer.contains(\"yes\"));\n\t\t}\n\t\tcatch(Exception e){\n\t\tSystem.out.printf(\"\\nThe number of times %s won is %d\",\"user\",numOfWinsForUser);\n\t\tSystem.out.printf(\"\\nThe number of times %s won is %d\",\"computer\",numOfWinsForComputer);\n\tif(count>=5 && numOfWinsForUser>numOfWinsForComputer)\n\t\tSystem.out.println(\"You have won bumper prize!!!\");\n\t//System.out.println(e);\n\t}\n\t}", "title": "" }, { "docid": "e0ab5e9ba26c919942be00c1f8ff17dc", "score": "0.58026665", "text": "public static int random()\n {\n return (int)(Math.random() * 1000);\n }", "title": "" }, { "docid": "10679e7fc9fc2050cbf79b5220b63662", "score": "0.5799675", "text": "public int randomNum() {\n //80% of time is 2, 20% of time is 4\n if (rand.nextDouble() < 0.80) {\n return 2;\n } else {\n return 4;\n }\n }", "title": "" }, { "docid": "d5497430d06feecb57f2bde3f9e5bb67", "score": "0.57934785", "text": "private double randR() {\n return 0.25 + (0.5 - 0.25) * rand.nextDouble();\n }", "title": "" }, { "docid": "14b188c5ab143361a8ae338ed5f7ba04", "score": "0.5775958", "text": "private static int randomInt() {\n\t\treturn (int) (10000 * Math.random());\n\t}", "title": "" }, { "docid": "b4467a0abc473d0a72c391c5e7ce2fc2", "score": "0.57752514", "text": "public static Coin flip() {\n return SIDES.get(RANDOM.nextInt(SIZE));\n }", "title": "" }, { "docid": "97b80979e55d0e0a97eee739575d605c", "score": "0.57744527", "text": "public int satunnainenKoordinaattiY() {\n return random.nextInt(630) + 50;\n }", "title": "" }, { "docid": "90a011f4b88ce2677e3d3d9f3e800779", "score": "0.5770816", "text": "public static String generate() {\n String color = COLORS[generator.nextInt(COLORS.length)];\n String treat = TREATS[generator.nextInt(TREATS.length)];\n return color + \" \" + treat;\n }", "title": "" }, { "docid": "3dea932dac293f2d39c88857d5152d71", "score": "0.57683194", "text": "public Random getRandom();", "title": "" }, { "docid": "e744b647a5b60b2703eb1c72347927fe", "score": "0.576747", "text": "public void generate(int difficulty);", "title": "" }, { "docid": "527c00a2c0cd5619a117390353c7c2c3", "score": "0.576673", "text": "private void generateSecretNum() {\n Random r = new Random();\n\n //Perfect random (usually result in 5 guesses, if Knuth is used)\n// byte[] num = {(byte) rnd.nextInt(10), (byte) rnd.nextInt(10), (byte) rnd.nextInt(10), (byte) rnd.nextInt(10)};\n\n //Selective random (usually result in 6-7 guesses, if Knuth is used)\n byte[] num = new byte[4];\n num[0] = (byte) r.nextInt(4); //First digit random from 0 to 3\n num[1] = (byte) (r.nextInt(3) + 7); //Second digit random from 7 to 9\n num[2] = (byte) (r.nextInt(3) + 4); //Third digit random from 4 to 6\n num[3] = num[r.nextInt(3)]; //Last digit randomly repeat first/second/third digit\n\n //Shuffle all digits\n int randomIndexToSwap;\n byte temp;\n for (int i = 0; i < 4; i++) {\n randomIndexToSwap = r.nextInt(4);\n temp = num[randomIndexToSwap];\n num[randomIndexToSwap] = num[i];\n num[i] = temp;\n }\n\n //Return the secret num\n this.secretNumber = new Number(num);\n }", "title": "" }, { "docid": "b589c5cea090855d00c82b9225266b58", "score": "0.57662624", "text": "public void randomize() {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }", "title": "" }, { "docid": "a8eddf838c4b43658e7dac2b967a2d77", "score": "0.57623845", "text": "private static Trade createRandomTrade() {\n\t\treturn new Trade(1, 1);\n\t}", "title": "" }, { "docid": "f56b1e31688c6f0c7fe42867dd20f4b2", "score": "0.5762229", "text": "public int bonus(int value) {\n if(value>0) { \n return game.getRandom().nextInt(value+1);\n }\n return 0;\n }", "title": "" }, { "docid": "a23b4faf8d28536d53c217a649604772", "score": "0.57446223", "text": "private int getRandomNumber(int numberOfSeats) {\n Random rnd = new Random();\n return rnd.nextInt(numberOfSeats);\n }", "title": "" }, { "docid": "9812429752dd9d55e1875e464de90302", "score": "0.57384795", "text": "private static double getRandomWeight(){\n\t\treturn 0.0d;\n\t}", "title": "" }, { "docid": "6e6f039507f0fc216459f5cf9b5a0592", "score": "0.57359654", "text": "public static void main(String[] args) {\n CoinToss game = new CoinToss();\n System.out.println(game.tossACoin());\n System.out.println(game.tossACoin());\n System.out.println(game.tossACoin());\n System.out.println(game.tossACoin());\n System.out.println(game.tossACoin());\n System.out.println(game.tossACoin());\n }", "title": "" }, { "docid": "1ff7f51c9b17c24d4b9c651045a3f520", "score": "0.5731874", "text": "public int roulleteSelection(){\n return rand.nextInt(360);\n }", "title": "" }, { "docid": "e3620765c8f3df589bf7192a19946042", "score": "0.572821", "text": "public static int calcLandCost()\r\n{\r\n int landPrice = random.nextInt(LAND_RANGE) + LAND_BASE; \r\n return landPrice; \r\n}", "title": "" }, { "docid": "2aaf0faba560d8ea86d1a867166888e2", "score": "0.5722942", "text": "@Override\r\n\tpublic void chuquan() {\n\t\tint a=new Random().nextInt(3)+1;\r\n\t\tsetCh(a);\r\n\t\tsuper.chuquan();\r\n\t}", "title": "" }, { "docid": "1df32f80498f3c80d3e7c3caa68d3fa7", "score": "0.57205635", "text": "public static void flipCoin(int flipse)\n\t{\n\t\tint head=0, tails=0;\n\t\tint counter=1;\n\t\tdouble RandomNum = 0.0;\n\t\t\n\t\t// loop run until counter is less than flipse value\n\t\twhile(counter<flipse)\n\t\t{\n\t\t\tRandomNum =\tMath.random();\n\t\t\t\n\t\t\tif(RandomNum < .5)\n\t\t\t{\n\t\t\t\thead++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttails++;\n\t\t\t\t\n\t\t\t}\n\t\t\tcounter++;\n\t\n\t\t}\t\n\t\tSystem.out.println(\"Total number of head is \"+head);\n\t\t\n\t\tSystem.out.println(\"Percentage of head is \"+(float)((float)head/flipse)*100);\n\t\t \n\t\tSystem.out.println(\"Total number of tails is \"+tails);\n\t\t\n\t\tSystem.out.println(\"percentage of tails is \"+(float)((float)tails/flipse)*100);\n\t\t\t\n\t}", "title": "" }, { "docid": "1540e50bfe4a9954b49747ddafb89af9", "score": "0.57143635", "text": "private int monteCarloRoll(){\n\n // generate two random numbers [1,6]\n int roll1 = (int)Math.abs((Math.random() * 6) + 1);\n int roll2 = (int)Math.abs((Math.random() * 6) + 1);\n\n // return their sum\n return roll1 + roll2;\n }", "title": "" }, { "docid": "a2e39e3b44a4ecc1780bb71e07237652", "score": "0.57067657", "text": "private static int randNum() {\n double randDub = Math.random();\n\n if (randDub > 0.45) {\n return 1;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "77e5718d0528b86f2fc9787583c32a4b", "score": "0.5705142", "text": "public int setran(int randnum) {\n System.out.println(randnum);\n return randnum;\n }", "title": "" }, { "docid": "9a6b19b8c73ea89eb2db61470c37aaee", "score": "0.5703139", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Heads(1) or Tails(0) ? \");\n\t\t\n\t\tint r = sc.nextInt();\n\t\t\n\t\tsc.close();\n\t\t\n\t\tint rand = (int) (Math.random() * 2);\n\t\t\n\t\tif(r==rand){\n\t\t\tSystem.out.println(\"Won !\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Lost !\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7d2792d4028ec30cf4fcfc1eff6a97c8", "score": "0.56898093", "text": "public static int getTypeCandy() {\n\t\treturn random.nextInt(6);\n\t}", "title": "" }, { "docid": "5f8e4b9045d0a26463b30c98f66861b2", "score": "0.5685842", "text": "private Long getRandomSeatId(){\n \tint upper = 100;\n \tint lower = 1;\n \tint r = (int) (Math.random() * (upper - lower)) + lower;\n \treturn Long.parseLong(String.valueOf(r));\n }", "title": "" }, { "docid": "9962194dfacfa9fcae89b72e9e3fd1a6", "score": "0.56846005", "text": "private void generateRandomPowers()\r\n\t{\r\n\t\t String power[] = {\"Super Speed\", \"Super Strength\",\"Body Armour\",\"Flight\",\"Fire\tGeneration\",\"Weather Control\"};\t \t \r\n\t\t List<Integer> number = new ArrayList<Integer>();\r\n\t\t for(int i=0; i<=5 ; i++)\r\n\t\t {\r\n\t\t\t number.add(i);\r\n\t\t }\r\n\t\t \r\n\t\t Collections.shuffle(number);\r\n\t\t \r\n\t\t for(int i=0; i<=2;i++)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t superpowers[i] = power[number.get(i)];\r\n\t\t }\r\n\t}", "title": "" } ]
efb4faf6fe8c6215a237ab3a82552679
$ANTLR end "entryRuleModelItemType" $ANTLR start "ruleModelItemType" ../org.openhab.model.item/srcgen/org/openhab/model/parser/antlr/internal/InternalItems.g:536:1: ruleModelItemType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'Switch' | kw= 'Rollershutter' | kw= 'Number' | kw= 'String' | kw= 'Dimmer' | kw= 'Contact' | kw= 'DateTime' | kw= 'Color' | kw= 'Point' | this_ID_9= RULE_ID ) ;
[ { "docid": "9615d2d187798b633e1ed95614c8fae9", "score": "0.7952548", "text": "public final AntlrDatatypeRuleToken ruleModelItemType() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n Token this_ID_9=null;\n\n enterRule(); \n \n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:539:28: ( (kw= 'Switch' | kw= 'Rollershutter' | kw= 'Number' | kw= 'String' | kw= 'Dimmer' | kw= 'Contact' | kw= 'DateTime' | kw= 'Color' | kw= 'Point' | this_ID_9= RULE_ID ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:540:1: (kw= 'Switch' | kw= 'Rollershutter' | kw= 'Number' | kw= 'String' | kw= 'Dimmer' | kw= 'Contact' | kw= 'DateTime' | kw= 'Color' | kw= 'Point' | this_ID_9= RULE_ID )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:540:1: (kw= 'Switch' | kw= 'Rollershutter' | kw= 'Number' | kw= 'String' | kw= 'Dimmer' | kw= 'Contact' | kw= 'DateTime' | kw= 'Color' | kw= 'Point' | this_ID_9= RULE_ID )\n int alt16=10;\n switch ( input.LA(1) ) {\n case 20:\n {\n alt16=1;\n }\n break;\n case 21:\n {\n alt16=2;\n }\n break;\n case 22:\n {\n alt16=3;\n }\n break;\n case 23:\n {\n alt16=4;\n }\n break;\n case 24:\n {\n alt16=5;\n }\n break;\n case 25:\n {\n alt16=6;\n }\n break;\n case 26:\n {\n alt16=7;\n }\n break;\n case 27:\n {\n alt16=8;\n }\n break;\n case 28:\n {\n alt16=9;\n }\n break;\n case RULE_ID:\n {\n alt16=10;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 16, 0, input);\n\n throw nvae;\n }\n\n switch (alt16) {\n case 1 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:541:2: kw= 'Switch'\n {\n kw=(Token)match(input,20,FOLLOW_20_in_ruleModelItemType1027); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getSwitchKeyword_0()); \n \n\n }\n break;\n case 2 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:548:2: kw= 'Rollershutter'\n {\n kw=(Token)match(input,21,FOLLOW_21_in_ruleModelItemType1046); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getRollershutterKeyword_1()); \n \n\n }\n break;\n case 3 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:555:2: kw= 'Number'\n {\n kw=(Token)match(input,22,FOLLOW_22_in_ruleModelItemType1065); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getNumberKeyword_2()); \n \n\n }\n break;\n case 4 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:562:2: kw= 'String'\n {\n kw=(Token)match(input,23,FOLLOW_23_in_ruleModelItemType1084); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getStringKeyword_3()); \n \n\n }\n break;\n case 5 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:569:2: kw= 'Dimmer'\n {\n kw=(Token)match(input,24,FOLLOW_24_in_ruleModelItemType1103); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getDimmerKeyword_4()); \n \n\n }\n break;\n case 6 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:576:2: kw= 'Contact'\n {\n kw=(Token)match(input,25,FOLLOW_25_in_ruleModelItemType1122); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getContactKeyword_5()); \n \n\n }\n break;\n case 7 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:583:2: kw= 'DateTime'\n {\n kw=(Token)match(input,26,FOLLOW_26_in_ruleModelItemType1141); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getDateTimeKeyword_6()); \n \n\n }\n break;\n case 8 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:590:2: kw= 'Color'\n {\n kw=(Token)match(input,27,FOLLOW_27_in_ruleModelItemType1160); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getColorKeyword_7()); \n \n\n }\n break;\n case 9 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:597:2: kw= 'Point'\n {\n kw=(Token)match(input,28,FOLLOW_28_in_ruleModelItemType1179); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getModelItemTypeAccess().getPointKeyword_8()); \n \n\n }\n break;\n case 10 :\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:603:10: this_ID_9= RULE_ID\n {\n this_ID_9=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleModelItemType1200); \n\n \t\tcurrent.merge(this_ID_9);\n \n \n newLeafNode(this_ID_9, grammarAccess.getModelItemTypeAccess().getIDTerminalRuleCall_9()); \n \n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" } ]
[ { "docid": "eed18025a32aa415b2b3093e77c2e559", "score": "0.7377199", "text": "public final String entryRuleModelItemType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleModelItemType = null;\n\n\n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:528:2: (iv_ruleModelItemType= ruleModelItemType EOF )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:529:2: iv_ruleModelItemType= ruleModelItemType EOF\n {\n newCompositeNode(grammarAccess.getModelItemTypeRule()); \n pushFollow(FOLLOW_ruleModelItemType_in_entryRuleModelItemType978);\n iv_ruleModelItemType=ruleModelItemType();\n\n state._fsp--;\n\n current =iv_ruleModelItemType.getText(); \n match(input,EOF,FOLLOW_EOF_in_entryRuleModelItemType989); \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": "aa7001204634779ed96b8aac60f6dcca", "score": "0.61396956", "text": "public final EObject ruleModelNormalItem() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_type_0_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:500:28: ( ( (lv_type_0_0= ruleModelItemType ) ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:501:1: ( (lv_type_0_0= ruleModelItemType ) )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:501:1: ( (lv_type_0_0= ruleModelItemType ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:502:1: (lv_type_0_0= ruleModelItemType )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:502:1: (lv_type_0_0= ruleModelItemType )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:503:3: lv_type_0_0= ruleModelItemType\n {\n \n \t newCompositeNode(grammarAccess.getModelNormalItemAccess().getTypeModelItemTypeParserRuleCall_0()); \n \t \n pushFollow(FOLLOW_ruleModelItemType_in_ruleModelNormalItem942);\n lv_type_0_0=ruleModelItemType();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getModelNormalItemRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"type\",\n \t\tlv_type_0_0, \n \t\t\"ModelItemType\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "a6db39f0d9559232d436b41b2c4d9fe2", "score": "0.5746435", "text": "public final EObject entryRuleModelItem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModelItem = null;\n\n\n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:114:2: (iv_ruleModelItem= ruleModelItem EOF )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:115:2: iv_ruleModelItem= ruleModelItem EOF\n {\n newCompositeNode(grammarAccess.getModelItemRule()); \n pushFollow(FOLLOW_ruleModelItem_in_entryRuleModelItem177);\n iv_ruleModelItem=ruleModelItem();\n\n state._fsp--;\n\n current =iv_ruleModelItem; \n match(input,EOF,FOLLOW_EOF_in_entryRuleModelItem187); \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": "7265dac596afdc470496b5519650f6f1", "score": "0.5701863", "text": "ItemType getType();", "title": "" }, { "docid": "6461c052ae4ee099dc8f73586f5840a1", "score": "0.56012243", "text": "public final EObject entryRuleItemModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleItemModel = null;\n\n\n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:69:2: (iv_ruleItemModel= ruleItemModel EOF )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:70:2: iv_ruleItemModel= ruleItemModel EOF\n {\n newCompositeNode(grammarAccess.getItemModelRule()); \n pushFollow(FOLLOW_ruleItemModel_in_entryRuleItemModel75);\n iv_ruleItemModel=ruleItemModel();\n\n state._fsp--;\n\n current =iv_ruleItemModel; \n match(input,EOF,FOLLOW_EOF_in_entryRuleItemModel85); \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": "409a366acbe9dd11a2c36d92fee1e983", "score": "0.5544906", "text": "public final EObject ruleItemModel() throws RecognitionException {\n EObject current = null;\n\n EObject lv_items_1_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:80:28: ( ( () ( (lv_items_1_0= ruleModelItem ) )* ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:81:1: ( () ( (lv_items_1_0= ruleModelItem ) )* )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:81:1: ( () ( (lv_items_1_0= ruleModelItem ) )* )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:81:2: () ( (lv_items_1_0= ruleModelItem ) )*\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:81:2: ()\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:82:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getItemModelAccess().getItemModelAction_0(),\n current);\n \n\n }\n\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:87:2: ( (lv_items_1_0= ruleModelItem ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==RULE_ID||LA1_0==18||(LA1_0>=20 && LA1_0<=28)) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:88:1: (lv_items_1_0= ruleModelItem )\n \t {\n \t // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:88:1: (lv_items_1_0= ruleModelItem )\n \t // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:89:3: lv_items_1_0= ruleModelItem\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getItemModelAccess().getItemsModelItemParserRuleCall_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleModelItem_in_ruleItemModel140);\n \t lv_items_1_0=ruleModelItem();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getItemModelRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"items\",\n \t \t\tlv_items_1_0, \n \t \t\t\"ModelItem\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "dbd4f1ad8ab1301d0fd87b9935f80db6", "score": "0.55201817", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // ../com.telefonica.ietf.nemo/src-gen/com/telefonica/ietf/nemo/parser/antlr/internal/InternalNemoDSL.g:319:2: (iv_ruleType= ruleType EOF )\n // ../com.telefonica.ietf.nemo/src-gen/com/telefonica/ietf/nemo/parser/antlr/internal/InternalNemoDSL.g:320:2: iv_ruleType= ruleType EOF\n {\n newCompositeNode(grammarAccess.getTypeRule()); \n pushFollow(FOLLOW_ruleType_in_entryRuleType660);\n iv_ruleType=ruleType();\n\n state._fsp--;\n\n current =iv_ruleType; \n match(input,EOF,FOLLOW_EOF_in_entryRuleType670); \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": "70c0f95462baf155cdbd89822059941c", "score": "0.5461303", "text": "public abstract TypeModel getTypeModel(String modelName) throws ImportException;", "title": "" }, { "docid": "09ce0b559302a70e3ee2c54216ec1260", "score": "0.5379644", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:1279:2: (iv_ruleType= ruleType EOF )\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:1280:2: iv_ruleType= ruleType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTypeRule()); \n }\n pushFollow(FOLLOW_ruleType_in_entryRuleType2469);\n iv_ruleType=ruleType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleType; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleType2479); if (state.failed) return current;\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": "e441c6850cfeeaec4effb2e0e5588088", "score": "0.53614473", "text": "public final Boolean entryRuleModel() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleModel = null;\n\n\n try {\n // PsiInternalBug296889ExTestLanguage.g:58:47: (iv_ruleModel= ruleModel EOF )\n // PsiInternalBug296889ExTestLanguage.g:59:2: iv_ruleModel= ruleModel EOF\n {\n if ( state.backtracking==0 ) {\n markComposite(elementTypeProvider.getModelElementType()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleModel; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "03d08abf2361aa00ade5759a49744cbb", "score": "0.534307", "text": "String getItemType();", "title": "" }, { "docid": "e444e94630501d5db39cf559eb36fde5", "score": "0.53295356", "text": "Type getModelArg();", "title": "" }, { "docid": "48860cfe91d8b2022ce0e19fe9b1e636", "score": "0.531664", "text": "public final Boolean entryRuleModel() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleModel = null;\n\n\n try {\n // PsiInternalStateConstraintTransition.g:52:47: (iv_ruleModel= ruleModel EOF )\n // PsiInternalStateConstraintTransition.g:53:2: iv_ruleModel= ruleModel EOF\n {\n markComposite(elementTypeProvider.getModelElementType()); \n pushFollow(FOLLOW_1);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n\n current =iv_ruleModel; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "817d0de1c595b46e701367cd5ae57b3e", "score": "0.52853143", "text": "private Rule readTypeChangingRule(Element ruleEl) {\n \n String rname = ruleEl.getAttributeValue(\"name\");\n Element argCatElt = (Element)ruleEl.getChild(\"arg\").getChildren().get(0);\n Category arg = CatReader.getCat(argCatElt);\n Element resultCatElt = (Element)ruleEl.getChild(\"result\").getChildren().get(0);\n Element lfElt = resultCatElt.getChild(\"lf\");\n Category result = CatReader.getCat(resultCatElt);\n LF firstEP = null;\n if (lfElt != null) {\n firstEP = HyloHelper.firstEP(HyloHelper.getLF(lfElt));\n }\n \n grammar.lexicon.propagateTypes(result, arg);\n grammar.lexicon.propagateDistributiveAttrs(result, arg);\n grammar.lexicon.expandInheritsFrom(result, arg);\n\n return new TypeChangingRule(arg, result, rname, firstEP);\n }", "title": "" }, { "docid": "41d5a4da5fd99576d238e991c504f1d3", "score": "0.52584213", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:1784:2: (iv_ruleType= ruleType EOF )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:1785:2: iv_ruleType= ruleType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTypeRule()); \n }\n pushFollow(FOLLOW_ruleType_in_entryRuleType3760);\n iv_ruleType=ruleType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleType; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleType3770); if (state.failed) return current;\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": "22e232fac3147cc988ed88cbee5e94c4", "score": "0.5232496", "text": "@Override\n public abstract ItemType getItemType();", "title": "" }, { "docid": "e767f3e149670366a341d9972e2105f7", "score": "0.5112891", "text": "public final void entryRuleModel() throws RecognitionException {\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:52:15: ( ruleModel EOF )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:53:2: ruleModel EOF\n {\n markComposite(elementTypeProvider.getModelElementType()); \n pushFollow(FollowSets000.FOLLOW_ruleModel_in_entryRuleModel54);\n ruleModel();\n\n state._fsp--;\n\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleModel57); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "e5ab52a0f73791ea71945f5bf9912152", "score": "0.5109495", "text": "public final EObject entryRuleModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModel = null;\n\n\n \n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\n try {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:71:2: (iv_ruleModel= ruleModel EOF )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:72:2: iv_ruleModel= ruleModel EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getModelRule()); \n }\n pushFollow(FOLLOW_ruleModel_in_entryRuleModel81);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleModel; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleModel91); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }", "title": "" }, { "docid": "22eb9ad3dbd95a24b8ca14fa9ad1f070", "score": "0.49981654", "text": "public final EObject entryRuleModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModel = null;\n\n\n try {\n // ../com.mguidi.soa/src-gen/com/mguidi/soa/parser/antlr/internal/InternalSOA.g:452:2: (iv_ruleModel= ruleModel EOF )\n // ../com.mguidi.soa/src-gen/com/mguidi/soa/parser/antlr/internal/InternalSOA.g:453:2: iv_ruleModel= ruleModel EOF\n {\n newCompositeNode(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_ruleModel_in_entryRuleModel932);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n\n current =iv_ruleModel; \n match(input,EOF,FOLLOW_EOF_in_entryRuleModel942); \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": "329efc662d0dafed766f819a57d90da8", "score": "0.49718353", "text": "public ItemType getType(){\n \treturn type;\n }", "title": "" }, { "docid": "0655b52f613906e0a013398d8a676ffb", "score": "0.49604794", "text": "public final void ruleModel() throws RecognitionException {\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:58:10: ( ( ( (lv_x1_0_0= ruleMandatoryKeywords ) ) | ( (lv_x2_1_0= ruleExp0 ) ) | ( (lv_x3_2_0= ruleExp1 ) ) | ( (lv_x4_3_0= ruleExp2 ) ) | ( (lv_x5_4_0= ruleSingleCrossReference ) ) | ( (lv_x6_5_0= ruleBooleanAlternative ) ) | ( (lv_x7_6_0= ruleUnassignedDatatype ) ) | ( (lv_x8_7_0= ruleOptionalSingleTransition ) ) | ( (lv_x9_8_0= ruleOptionalManyTransition ) ) | ( (lv_x10_9_0= ruleMandatoryManyTransition ) ) | ( (lv_x11_10_0= ruleAlternativeTransition ) ) | ( (lv_x12_11_0= ruleBooleanValues ) ) | ( (lv_x13_12_0= ruleLongAlternative ) ) ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:59:2: ( ( (lv_x1_0_0= ruleMandatoryKeywords ) ) | ( (lv_x2_1_0= ruleExp0 ) ) | ( (lv_x3_2_0= ruleExp1 ) ) | ( (lv_x4_3_0= ruleExp2 ) ) | ( (lv_x5_4_0= ruleSingleCrossReference ) ) | ( (lv_x6_5_0= ruleBooleanAlternative ) ) | ( (lv_x7_6_0= ruleUnassignedDatatype ) ) | ( (lv_x8_7_0= ruleOptionalSingleTransition ) ) | ( (lv_x9_8_0= ruleOptionalManyTransition ) ) | ( (lv_x10_9_0= ruleMandatoryManyTransition ) ) | ( (lv_x11_10_0= ruleAlternativeTransition ) ) | ( (lv_x12_11_0= ruleBooleanValues ) ) | ( (lv_x13_12_0= ruleLongAlternative ) ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:59:2: ( ( (lv_x1_0_0= ruleMandatoryKeywords ) ) | ( (lv_x2_1_0= ruleExp0 ) ) | ( (lv_x3_2_0= ruleExp1 ) ) | ( (lv_x4_3_0= ruleExp2 ) ) | ( (lv_x5_4_0= ruleSingleCrossReference ) ) | ( (lv_x6_5_0= ruleBooleanAlternative ) ) | ( (lv_x7_6_0= ruleUnassignedDatatype ) ) | ( (lv_x8_7_0= ruleOptionalSingleTransition ) ) | ( (lv_x9_8_0= ruleOptionalManyTransition ) ) | ( (lv_x10_9_0= ruleMandatoryManyTransition ) ) | ( (lv_x11_10_0= ruleAlternativeTransition ) ) | ( (lv_x12_11_0= ruleBooleanValues ) ) | ( (lv_x13_12_0= ruleLongAlternative ) ) )\n int alt1=13;\n switch ( input.LA(1) ) {\n case 13:\n {\n alt1=1;\n }\n break;\n case 18:\n {\n alt1=2;\n }\n break;\n case 20:\n {\n alt1=3;\n }\n break;\n case 23:\n {\n alt1=4;\n }\n break;\n case 25:\n {\n alt1=5;\n }\n break;\n case 26:\n {\n alt1=6;\n }\n break;\n case 27:\n {\n alt1=7;\n }\n break;\n case 29:\n {\n alt1=8;\n }\n break;\n case 30:\n {\n alt1=9;\n }\n break;\n case 31:\n {\n alt1=10;\n }\n break;\n case 32:\n {\n alt1=11;\n }\n break;\n case 33:\n {\n alt1=12;\n }\n break;\n case 34:\n {\n alt1=13;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 1, 0, input);\n\n throw nvae;\n }\n\n switch (alt1) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:60:3: ( (lv_x1_0_0= ruleMandatoryKeywords ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:60:3: ( (lv_x1_0_0= ruleMandatoryKeywords ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:61:4: (lv_x1_0_0= ruleMandatoryKeywords )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:61:4: (lv_x1_0_0= ruleMandatoryKeywords )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:62:5: lv_x1_0_0= ruleMandatoryKeywords\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X1MandatoryKeywordsParserRuleCall_0_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleMandatoryKeywords_in_ruleModel89);\n ruleMandatoryKeywords();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:72:3: ( (lv_x2_1_0= ruleExp0 ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:72:3: ( (lv_x2_1_0= ruleExp0 ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:73:4: (lv_x2_1_0= ruleExp0 )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:73:4: (lv_x2_1_0= ruleExp0 )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:74:5: lv_x2_1_0= ruleExp0\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X2Exp0ParserRuleCall_1_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleExp0_in_ruleModel135);\n ruleExp0();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:84:3: ( (lv_x3_2_0= ruleExp1 ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:84:3: ( (lv_x3_2_0= ruleExp1 ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:85:4: (lv_x3_2_0= ruleExp1 )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:85:4: (lv_x3_2_0= ruleExp1 )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:86:5: lv_x3_2_0= ruleExp1\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X3Exp1ParserRuleCall_2_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleExp1_in_ruleModel181);\n ruleExp1();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:96:3: ( (lv_x4_3_0= ruleExp2 ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:96:3: ( (lv_x4_3_0= ruleExp2 ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:97:4: (lv_x4_3_0= ruleExp2 )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:97:4: (lv_x4_3_0= ruleExp2 )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:98:5: lv_x4_3_0= ruleExp2\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X4Exp2ParserRuleCall_3_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleExp2_in_ruleModel227);\n ruleExp2();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:108:3: ( (lv_x5_4_0= ruleSingleCrossReference ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:108:3: ( (lv_x5_4_0= ruleSingleCrossReference ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:109:4: (lv_x5_4_0= ruleSingleCrossReference )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:109:4: (lv_x5_4_0= ruleSingleCrossReference )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:110:5: lv_x5_4_0= ruleSingleCrossReference\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X5SingleCrossReferenceParserRuleCall_4_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleSingleCrossReference_in_ruleModel273);\n ruleSingleCrossReference();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 6 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:120:3: ( (lv_x6_5_0= ruleBooleanAlternative ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:120:3: ( (lv_x6_5_0= ruleBooleanAlternative ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:121:4: (lv_x6_5_0= ruleBooleanAlternative )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:121:4: (lv_x6_5_0= ruleBooleanAlternative )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:122:5: lv_x6_5_0= ruleBooleanAlternative\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X6BooleanAlternativeParserRuleCall_5_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleBooleanAlternative_in_ruleModel319);\n ruleBooleanAlternative();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 7 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:132:3: ( (lv_x7_6_0= ruleUnassignedDatatype ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:132:3: ( (lv_x7_6_0= ruleUnassignedDatatype ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:133:4: (lv_x7_6_0= ruleUnassignedDatatype )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:133:4: (lv_x7_6_0= ruleUnassignedDatatype )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:134:5: lv_x7_6_0= ruleUnassignedDatatype\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X7UnassignedDatatypeParserRuleCall_6_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleUnassignedDatatype_in_ruleModel365);\n ruleUnassignedDatatype();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 8 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:144:3: ( (lv_x8_7_0= ruleOptionalSingleTransition ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:144:3: ( (lv_x8_7_0= ruleOptionalSingleTransition ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:145:4: (lv_x8_7_0= ruleOptionalSingleTransition )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:145:4: (lv_x8_7_0= ruleOptionalSingleTransition )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:146:5: lv_x8_7_0= ruleOptionalSingleTransition\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X8OptionalSingleTransitionParserRuleCall_7_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleOptionalSingleTransition_in_ruleModel411);\n ruleOptionalSingleTransition();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 9 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:156:3: ( (lv_x9_8_0= ruleOptionalManyTransition ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:156:3: ( (lv_x9_8_0= ruleOptionalManyTransition ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:157:4: (lv_x9_8_0= ruleOptionalManyTransition )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:157:4: (lv_x9_8_0= ruleOptionalManyTransition )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:158:5: lv_x9_8_0= ruleOptionalManyTransition\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X9OptionalManyTransitionParserRuleCall_8_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleOptionalManyTransition_in_ruleModel457);\n ruleOptionalManyTransition();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 10 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:168:3: ( (lv_x10_9_0= ruleMandatoryManyTransition ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:168:3: ( (lv_x10_9_0= ruleMandatoryManyTransition ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:169:4: (lv_x10_9_0= ruleMandatoryManyTransition )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:169:4: (lv_x10_9_0= ruleMandatoryManyTransition )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:170:5: lv_x10_9_0= ruleMandatoryManyTransition\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X10MandatoryManyTransitionParserRuleCall_9_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleMandatoryManyTransition_in_ruleModel503);\n ruleMandatoryManyTransition();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 11 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:180:3: ( (lv_x11_10_0= ruleAlternativeTransition ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:180:3: ( (lv_x11_10_0= ruleAlternativeTransition ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:181:4: (lv_x11_10_0= ruleAlternativeTransition )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:181:4: (lv_x11_10_0= ruleAlternativeTransition )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:182:5: lv_x11_10_0= ruleAlternativeTransition\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X11AlternativeTransitionParserRuleCall_10_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleAlternativeTransition_in_ruleModel549);\n ruleAlternativeTransition();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 12 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:192:3: ( (lv_x12_11_0= ruleBooleanValues ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:192:3: ( (lv_x12_11_0= ruleBooleanValues ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:193:4: (lv_x12_11_0= ruleBooleanValues )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:193:4: (lv_x12_11_0= ruleBooleanValues )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:194:5: lv_x12_11_0= ruleBooleanValues\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X12BooleanValuesParserRuleCall_11_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleBooleanValues_in_ruleModel595);\n ruleBooleanValues();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 13 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:204:3: ( (lv_x13_12_0= ruleLongAlternative ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:204:3: ( (lv_x13_12_0= ruleLongAlternative ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:205:4: (lv_x13_12_0= ruleLongAlternative )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:205:4: (lv_x13_12_0= ruleLongAlternative )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:206:5: lv_x13_12_0= ruleLongAlternative\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getModel_X13LongAlternativeParserRuleCall_12_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleLongAlternative_in_ruleModel641);\n ruleLongAlternative();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "373698f40f8830f89cc70a9e9247f68d", "score": "0.49563843", "text": "QName getItemType();", "title": "" }, { "docid": "d48275f36149cd08f34d1b17fe6898f7", "score": "0.4954807", "text": "public final EObject entryRuleModel() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleModel = null;\r\n\r\n\r\n try {\r\n // InternalCk2Gfx.g:64:46: (iv_ruleModel= ruleModel EOF )\r\n // InternalCk2Gfx.g:65:2: iv_ruleModel= ruleModel EOF\r\n {\r\n newCompositeNode(grammarAccess.getModelRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleModel=ruleModel();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleModel; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "cec6fe82df5c19bcd0d9a4d24ead0676", "score": "0.4948138", "text": "public final EObject entryRuleModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModel = null;\n\n\n try {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:74:2: (iv_ruleModel= ruleModel EOF )\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:75:2: iv_ruleModel= ruleModel EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getModelRule()); \n }\n pushFollow(FOLLOW_ruleModel_in_entryRuleModel81);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleModel; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleModel91); if (state.failed) return current;\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": "cb974e43ec63224b77ea37d01de9f62c", "score": "0.4936428", "text": "public String getRuleType()\r\n\t{\r\n\t\treturn \"belief update\";\r\n\t}", "title": "" }, { "docid": "eb97f10f61c54b0db0f2889690d09f3f", "score": "0.49293664", "text": "public final EObject ruleModelBinding() throws RecognitionException {\n EObject current = null;\n\n Token lv_type_0_0=null;\n Token otherlv_1=null;\n Token lv_configuration_2_0=null;\n\n enterRule(); \n \n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:630:28: ( ( ( (lv_type_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_configuration_2_0= RULE_STRING ) ) ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:631:1: ( ( (lv_type_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_configuration_2_0= RULE_STRING ) ) )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:631:1: ( ( (lv_type_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_configuration_2_0= RULE_STRING ) ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:631:2: ( (lv_type_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_configuration_2_0= RULE_STRING ) )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:631:2: ( (lv_type_0_0= RULE_ID ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:632:1: (lv_type_0_0= RULE_ID )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:632:1: (lv_type_0_0= RULE_ID )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:633:3: lv_type_0_0= RULE_ID\n {\n lv_type_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleModelBinding1297); \n\n \t\t\tnewLeafNode(lv_type_0_0, grammarAccess.getModelBindingAccess().getTypeIDTerminalRuleCall_0_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getModelBindingRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"type\",\n \t\tlv_type_0_0, \n \t\t\"ID\");\n \t \n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,29,FOLLOW_29_in_ruleModelBinding1314); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getModelBindingAccess().getEqualsSignKeyword_1());\n \n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:653:1: ( (lv_configuration_2_0= RULE_STRING ) )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:654:1: (lv_configuration_2_0= RULE_STRING )\n {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:654:1: (lv_configuration_2_0= RULE_STRING )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:655:3: lv_configuration_2_0= RULE_STRING\n {\n lv_configuration_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleModelBinding1331); \n\n \t\t\tnewLeafNode(lv_configuration_2_0, grammarAccess.getModelBindingAccess().getConfigurationSTRINGTerminalRuleCall_2_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getModelBindingRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"configuration\",\n \t\tlv_configuration_2_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b8f06af81aa88a1cca5f19b1821c288e", "score": "0.49208623", "text": "public final EObject entryRulestateType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulestateType = null;\n\n\n try {\n // InternalMASL.g:1315:50: (iv_rulestateType= rulestateType EOF )\n // InternalMASL.g:1316:2: iv_rulestateType= rulestateType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getStateTypeRule()); \n }\n pushFollow(FOLLOW_1);\n iv_rulestateType=rulestateType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulestateType; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\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": "80398c2fdcb1f3ab2e4d3eef0c5f7146", "score": "0.49163976", "text": "public final EObject entryRuleModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModel = null;\n\n\n try {\n // InternalMyDsl.g:65:46: (iv_ruleModel= ruleModel EOF )\n // InternalMyDsl.g:66:2: iv_ruleModel= ruleModel EOF\n {\n newCompositeNode(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n\n current =iv_ruleModel; \n match(input,EOF,FOLLOW_2); \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": "344b8174424aed76092c444483d3e483", "score": "0.49132198", "text": "public Item getType()\r\n\t{\r\n\t\treturn TYPE;\r\n\t}", "title": "" }, { "docid": "2ff4acd569d047074b5d3014667946a4", "score": "0.4911819", "text": "public final EObject entryRuleModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModel = null;\n\n\n try {\n // InternalMyDsl.g:64:46: (iv_ruleModel= ruleModel EOF )\n // InternalMyDsl.g:65:2: iv_ruleModel= ruleModel EOF\n {\n newCompositeNode(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n\n current =iv_ruleModel; \n match(input,EOF,FOLLOW_2); \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": "82c565a18ffaf37e0c1dfef6e7cd5f24", "score": "0.4894719", "text": "public final EObject entryRuleNodeModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleNodeModel = null;\n\n\n try {\n // ../com.telefonica.ietf.nemo/src-gen/com/telefonica/ietf/nemo/parser/antlr/internal/InternalNemoDSL.g:171:2: (iv_ruleNodeModel= ruleNodeModel EOF )\n // ../com.telefonica.ietf.nemo/src-gen/com/telefonica/ietf/nemo/parser/antlr/internal/InternalNemoDSL.g:172:2: iv_ruleNodeModel= ruleNodeModel EOF\n {\n newCompositeNode(grammarAccess.getNodeModelRule()); \n pushFollow(FOLLOW_ruleNodeModel_in_entryRuleNodeModel360);\n iv_ruleNodeModel=ruleNodeModel();\n\n state._fsp--;\n\n current =iv_ruleNodeModel; \n match(input,EOF,FOLLOW_EOF_in_entryRuleNodeModel370); \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": "1410c04d5fc1705d6b568ca02fa06f63", "score": "0.48943716", "text": "public final String entryRulelinkType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_rulelinkType = null;\n\n\n try {\n // InternalMASL.g:4114:48: (iv_rulelinkType= rulelinkType EOF )\n // InternalMASL.g:4115:2: iv_rulelinkType= rulelinkType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getLinkTypeRule()); \n }\n pushFollow(FOLLOW_1);\n iv_rulelinkType=rulelinkType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulelinkType.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\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": "be4e7b7a7f720fc5a2ab0fc67bf3f3da", "score": "0.48785698", "text": "public final void entryRuleType() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:118:1: ( ruleType EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:119:1: ruleType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeRule()); \r\n }\r\n pushFollow(FOLLOW_ruleType_in_entryRuleType188);\r\n ruleType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleType195); 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 return ;\r\n }", "title": "" }, { "docid": "516e3c70d09e4ccd4c74d7d9895ddf05", "score": "0.48596507", "text": "public ItemTypeEnum getValue_ItemType() \n {\n return itemType;\n }", "title": "" }, { "docid": "e0ee3146df48bb8712d139ebb21e9d09", "score": "0.48480138", "text": "public int itemKind(){ return kind;}", "title": "" }, { "docid": "c5ad0668dfe4e9d5b4712c68203b7bda", "score": "0.4846525", "text": "public final EObject ruleModel() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject lv_types_0_1 = null;\r\n\r\n EObject lv_types_0_2 = null;\r\n\r\n EObject lv_types_0_3 = null;\r\n\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalCk2Gfx.g:77:2: ( ( ( (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts ) ) )* )\r\n // InternalCk2Gfx.g:78:2: ( ( (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts ) ) )*\r\n {\r\n // InternalCk2Gfx.g:78:2: ( ( (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts ) ) )*\r\n loop2:\r\n do {\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==20||LA2_0==68||LA2_0==87) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // InternalCk2Gfx.g:79:3: ( (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts ) )\r\n \t {\r\n \t // InternalCk2Gfx.g:79:3: ( (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts ) )\r\n \t // InternalCk2Gfx.g:80:4: (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts )\r\n \t {\r\n \t // InternalCk2Gfx.g:80:4: (lv_types_0_1= ruleSpriteTypes | lv_types_0_2= ruleObjectTypes | lv_types_0_3= ruleBitmapFonts )\r\n \t int alt1=3;\r\n \t switch ( input.LA(1) ) {\r\n \t case 20:\r\n \t {\r\n \t alt1=1;\r\n \t }\r\n \t break;\r\n \t case 68:\r\n \t {\r\n \t alt1=2;\r\n \t }\r\n \t break;\r\n \t case 87:\r\n \t {\r\n \t alt1=3;\r\n \t }\r\n \t break;\r\n \t default:\r\n \t NoViableAltException nvae =\r\n \t new NoViableAltException(\"\", 1, 0, input);\r\n\r\n \t throw nvae;\r\n \t }\r\n\r\n \t switch (alt1) {\r\n \t case 1 :\r\n \t // InternalCk2Gfx.g:81:5: lv_types_0_1= ruleSpriteTypes\r\n \t {\r\n\r\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getTypesSpriteTypesParserRuleCall_0_0());\r\n \t \t\t\t\t\r\n \t pushFollow(FOLLOW_3);\r\n \t lv_types_0_1=ruleSpriteTypes();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t\t\t\t\tif (current==null) {\r\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\r\n \t \t\t\t\t\t}\r\n \t \t\t\t\t\tadd(\r\n \t \t\t\t\t\t\tcurrent,\r\n \t \t\t\t\t\t\t\"types\",\r\n \t \t\t\t\t\t\tlv_types_0_1,\r\n \t \t\t\t\t\t\t\"ck2xtext.gfx.Ck2Gfx.SpriteTypes\");\r\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t \t\t\t\t\r\n\r\n \t }\r\n \t break;\r\n \t case 2 :\r\n \t // InternalCk2Gfx.g:97:5: lv_types_0_2= ruleObjectTypes\r\n \t {\r\n\r\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getTypesObjectTypesParserRuleCall_0_1());\r\n \t \t\t\t\t\r\n \t pushFollow(FOLLOW_3);\r\n \t lv_types_0_2=ruleObjectTypes();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t\t\t\t\tif (current==null) {\r\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\r\n \t \t\t\t\t\t}\r\n \t \t\t\t\t\tadd(\r\n \t \t\t\t\t\t\tcurrent,\r\n \t \t\t\t\t\t\t\"types\",\r\n \t \t\t\t\t\t\tlv_types_0_2,\r\n \t \t\t\t\t\t\t\"ck2xtext.gfx.Ck2Gfx.ObjectTypes\");\r\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t \t\t\t\t\r\n\r\n \t }\r\n \t break;\r\n \t case 3 :\r\n \t // InternalCk2Gfx.g:113:5: lv_types_0_3= ruleBitmapFonts\r\n \t {\r\n\r\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getModelAccess().getTypesBitmapFontsParserRuleCall_0_2());\r\n \t \t\t\t\t\r\n \t pushFollow(FOLLOW_3);\r\n \t lv_types_0_3=ruleBitmapFonts();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t\t\t\t\tif (current==null) {\r\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getModelRule());\r\n \t \t\t\t\t\t}\r\n \t \t\t\t\t\tadd(\r\n \t \t\t\t\t\t\tcurrent,\r\n \t \t\t\t\t\t\t\"types\",\r\n \t \t\t\t\t\t\tlv_types_0_3,\r\n \t \t\t\t\t\t\t\"ck2xtext.gfx.Ck2Gfx.BitmapFonts\");\r\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t \t\t\t\t\r\n\r\n \t }\r\n \t break;\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop2;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n \tleaveRule();\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "941ea0d3d028febf6bafc10e6103cd2a", "score": "0.4839994", "text": "@AutoEscape\n public String getItem_type();", "title": "" }, { "docid": "de93f640e46820f32e2ab8b8eb0acb42", "score": "0.48198062", "text": "public ItemType getItemType(TypeHierarchy th) {\r\n return operand.getItemType(th);\r\n }", "title": "" }, { "docid": "834bf60ddc101162f59c61cd75c71fcd", "score": "0.48195714", "text": "ItemType createItemType();", "title": "" }, { "docid": "5b58c13dbcc7b34f9cc172b7bc8b424c", "score": "0.4810055", "text": "public final void entryRuleModel() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:62:1: ( ruleModel EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:63:1: ruleModel EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelRule()); \r\n }\r\n pushFollow(FOLLOW_ruleModel_in_entryRuleModel67);\r\n ruleModel();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleModel74); 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 return ;\r\n }", "title": "" }, { "docid": "4f6c15574904eb5c6244681aaa872b9d", "score": "0.4790584", "text": "public final AntlrDatatypeRuleToken ruletypeName() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n AntlrDatatypeRuleToken this_identifier_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASL.g:618:2: (this_identifier_0= ruleidentifier )\n // InternalMASL.g:619:2: this_identifier_0= ruleidentifier\n {\n if ( state.backtracking==0 ) {\n\n \t\tnewCompositeNode(grammarAccess.getTypeNameAccess().getIdentifierParserRuleCall());\n \t\n }\n pushFollow(FOLLOW_2);\n this_identifier_0=ruleidentifier();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tcurrent.merge(this_identifier_0);\n \t\n }\n if ( state.backtracking==0 ) {\n\n \t\tafterParserOrEnumRuleCall();\n \t\n }\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "9540f6196951ea96d690392d726b72b3", "score": "0.4781871", "text": "public final EObject entryRuleModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModel = null;\n\n\n try {\n // InternalPlatoon.g:64:46: (iv_ruleModel= ruleModel EOF )\n // InternalPlatoon.g:65:2: iv_ruleModel= ruleModel EOF\n {\n newCompositeNode(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n iv_ruleModel=ruleModel();\n\n state._fsp--;\n\n current =iv_ruleModel; \n match(input,EOF,FOLLOW_2); \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": "14f262b2cd27b8c252dbbbf120c71d7d", "score": "0.47566012", "text": "ItemType getItem();", "title": "" }, { "docid": "36dd5795505aca441f5677eafabfb77e", "score": "0.47547135", "text": "public interface IDominoType {\n\n\tpublic static enum Default {\n\t\tUnknown, Text, BigText, Integer, Currency, Decimal, Date, Time, DateTime, Phone, Email, Map, HTML, RichText, Name, Color, Month, Week, URL, Rating, Range, Tab, Accordion, Button, Hotspot, Image, Signature, Audio, Video\n\t}\n\n\tpublic String getUITypeName();\n\n\t//this method validates the type ONLY. It doesn't not apply other validation rules\n\t//TODO NTF - Possibly change this to a type-coercion instead?\n\tpublic boolean validateItem(org.openntf.red.Item item) throws ItemException;\n\n\t//In theory this would validate both the data type and whatever validation rules were defined by the IItemDefinition\n\tpublic boolean validateItem(org.openntf.red.Item item, IItemDefinition definition) throws ItemException;\n\n\tpublic void setItemToDefault(org.openntf.red.Item item);\n\n}", "title": "" }, { "docid": "916580b6ae48c66a90345faf1fa442ef", "score": "0.4752123", "text": "public int _getModelType() {\n return 3;\n }", "title": "" }, { "docid": "9b714bb588e31c384bd7e638dd713407", "score": "0.47436726", "text": "@java.lang.Override\n public int getModelTypeValue() {\n return modelType_;\n }", "title": "" }, { "docid": "d87f1be9e9ba6adf853f2473a19fb111", "score": "0.47406414", "text": "private Type type () {\n Type t = null;\n // student exercise\n if(token.type().equals(TokenType.Int)) t = Type.INT;\n else if(token.type().equals(TokenType.Float)) t = Type.FLOAT;\n else if(token.type().equals(TokenType.Char)) t = Type.CHAR;\n else if(token.type().equals(TokenType.Bool)) t = Type.BOOL;\n else error(\"Type Error\");\n token = lexer.next();\n // System.out.println(\"Toke : \" + token);\n return t; \n }", "title": "" }, { "docid": "145076e857becff10796593adfa89922", "score": "0.47401282", "text": "public final EObject entryRuleModelGroupItem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModelGroupItem = null;\n\n\n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:330:2: (iv_ruleModelGroupItem= ruleModelGroupItem EOF )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:331:2: iv_ruleModelGroupItem= ruleModelGroupItem EOF\n {\n newCompositeNode(grammarAccess.getModelGroupItemRule()); \n pushFollow(FOLLOW_ruleModelGroupItem_in_entryRuleModelGroupItem587);\n iv_ruleModelGroupItem=ruleModelGroupItem();\n\n state._fsp--;\n\n current =iv_ruleModelGroupItem; \n match(input,EOF,FOLLOW_EOF_in_entryRuleModelGroupItem597); \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": "0938910cbb9c95e94b0dd3a9a299e95c", "score": "0.47354886", "text": "public final EObject entryRuleModelNormalItem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModelNormalItem = null;\n\n\n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:489:2: (iv_ruleModelNormalItem= ruleModelNormalItem EOF )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:490:2: iv_ruleModelNormalItem= ruleModelNormalItem EOF\n {\n newCompositeNode(grammarAccess.getModelNormalItemRule()); \n pushFollow(FOLLOW_ruleModelNormalItem_in_entryRuleModelNormalItem887);\n iv_ruleModelNormalItem=ruleModelNormalItem();\n\n state._fsp--;\n\n current =iv_ruleModelNormalItem; \n match(input,EOF,FOLLOW_EOF_in_entryRuleModelNormalItem897); \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": "faa75ae022efa775e57183327c2c6446", "score": "0.4713856", "text": "public final String entryRulefindType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_rulefindType = null;\n\n\n try {\n // InternalMASL.g:7507:48: (iv_rulefindType= rulefindType EOF )\n // InternalMASL.g:7508:2: iv_rulefindType= rulefindType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getFindTypeRule()); \n }\n pushFollow(FOLLOW_1);\n iv_rulefindType=rulefindType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulefindType.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\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": "e64b756a1e930721356e4882cbd89132", "score": "0.47058135", "text": "InputImpl.InputType getInputType();", "title": "" }, { "docid": "8b9b50a06b4cf6cf447966c96885d509", "score": "0.47051337", "text": "public ModelType getType(){\n return ModelType.BAT;\n }", "title": "" }, { "docid": "4db41c2a28d10d6d4b315b26d2b7c257", "score": "0.47042993", "text": "public final void entryRuleModel() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:62:1: ( ruleModel EOF )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:63:1: ruleModel EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelRule()); \n }\n pushFollow(FOLLOW_ruleModel_in_entryRuleModel67);\n ruleModel();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleModel74); 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": "3a18201a00418a265427c0d567bb83c5", "score": "0.4702244", "text": "public void setItem_type(String item_type);", "title": "" }, { "docid": "5ac18904e26b6d17832b5958b104995e", "score": "0.46958604", "text": "public final AntlrDatatypeRuleToken ruleItemRef() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_ID_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalSitemap.g:6344:2: (this_ID_0= RULE_ID )\n // InternalSitemap.g:6345:2: this_ID_0= RULE_ID\n {\n this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); \n\n \t\tcurrent.merge(this_ID_0);\n \t\n\n \t\tnewLeafNode(this_ID_0, grammarAccess.getItemRefAccess().getIDTerminalRuleCall());\n \t\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "6c67b3d68e51d41bfcc477bca597aca0", "score": "0.4693011", "text": "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalVertrag.g:54:1: ( ruleModel EOF )\n // InternalVertrag.g:55:1: ruleModel EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelRule()); \n }\n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelRule()); \n }\n match(input,EOF,FOLLOW_2); 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": "23972a96f4425967104149c64b871c4f", "score": "0.4687868", "text": "public final void entryRuleModel() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:64:1: ( ruleModel EOF )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:65:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_ruleModel_in_entryRuleModel66);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleModel73); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "title": "" }, { "docid": "e02e8dbd317ae12df0e324daa4788084", "score": "0.4687119", "text": "public String getType()\n/* */ {\n/* 657 */ return \"islamic\";\n/* */ }", "title": "" }, { "docid": "7d3347417db921686a64dff5cc31c165", "score": "0.46844122", "text": "public final EObject ruledictKeyType() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_n_0_0 = null;\n\n AntlrDatatypeRuleToken lv_i_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASL.g:956:2: ( ( ( (lv_n_0_0= rulenamedTypeRef ) ) | ( (lv_i_1_0= ruleinstanceTypeRef ) ) ) )\n // InternalMASL.g:957:2: ( ( (lv_n_0_0= rulenamedTypeRef ) ) | ( (lv_i_1_0= ruleinstanceTypeRef ) ) )\n {\n // InternalMASL.g:957:2: ( ( (lv_n_0_0= rulenamedTypeRef ) ) | ( (lv_i_1_0= ruleinstanceTypeRef ) ) )\n int alt19=2;\n switch ( input.LA(1) ) {\n case RULE_ANONYMOUS:\n {\n int LA19_1 = input.LA(2);\n\n if ( (LA19_1==RULE_IDENT) ) {\n alt19=1;\n }\n else if ( (LA19_1==RULE_INSTANCE) ) {\n alt19=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 19, 1, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_IDENT:\n {\n alt19=1;\n }\n break;\n case RULE_INSTANCE:\n {\n alt19=2;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 19, 0, input);\n\n throw nvae;\n }\n\n switch (alt19) {\n case 1 :\n // InternalMASL.g:958:3: ( (lv_n_0_0= rulenamedTypeRef ) )\n {\n // InternalMASL.g:958:3: ( (lv_n_0_0= rulenamedTypeRef ) )\n // InternalMASL.g:959:4: (lv_n_0_0= rulenamedTypeRef )\n {\n // InternalMASL.g:959:4: (lv_n_0_0= rulenamedTypeRef )\n // InternalMASL.g:960:5: lv_n_0_0= rulenamedTypeRef\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getDictKeyTypeAccess().getNNamedTypeRefParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_n_0_0=rulenamedTypeRef();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getDictKeyTypeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"n\",\n \t\t\t\t\t\tlv_n_0_0,\n \t\t\t\t\t\t\"org.xtuml.bp.ui.xtext.MASL.namedTypeRef\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMASL.g:978:3: ( (lv_i_1_0= ruleinstanceTypeRef ) )\n {\n // InternalMASL.g:978:3: ( (lv_i_1_0= ruleinstanceTypeRef ) )\n // InternalMASL.g:979:4: (lv_i_1_0= ruleinstanceTypeRef )\n {\n // InternalMASL.g:979:4: (lv_i_1_0= ruleinstanceTypeRef )\n // InternalMASL.g:980:5: lv_i_1_0= ruleinstanceTypeRef\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getDictKeyTypeAccess().getIInstanceTypeRefParserRuleCall_1_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_i_1_0=ruleinstanceTypeRef();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getDictKeyTypeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"i\",\n \t\t\t\t\t\tlv_i_1_0,\n \t\t\t\t\t\t\"org.xtuml.bp.ui.xtext.MASL.instanceTypeRef\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5273e42320a09ceac1c306712835805d", "score": "0.46791998", "text": "public String type()\r\n\t{\r\n\t\treturn \"wrl\";\r\n\t}", "title": "" }, { "docid": "6caaa39a065febf851c338f420fff479", "score": "0.46665356", "text": "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalTym.g:55:1: ( ruleModel EOF )\n // InternalTym.g:56:1: ruleModel EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelRule()); \n }\n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelRule()); \n }\n match(input,EOF,FOLLOW_2); 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": "ec64750143b6e0314af2fbaa5dbd13ad", "score": "0.46657577", "text": "public Integer getItemType() {\n\t\treturn itemType;\n\t}", "title": "" }, { "docid": "bbe95117ffe6b4e91db8b0828ea2e056", "score": "0.4664723", "text": "public abstract int get_type();", "title": "" }, { "docid": "b83573db07ba36e4c6290c4c24984401", "score": "0.46642596", "text": "public final void entryRuleModel() throws RecognitionException {\n try {\n // ../com.mguidi.soa.ui/src-gen/com/mguidi/soa/ui/contentassist/antlr/internal/InternalSOA.g:201:1: ( ruleModel EOF )\n // ../com.mguidi.soa.ui/src-gen/com/mguidi/soa/ui/contentassist/antlr/internal/InternalSOA.g:202:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_ruleModel_in_entryRuleModel361);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleModel368); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "d0b1ce019ebd113c0ef5ab0f259f39b8", "score": "0.46510932", "text": "public final EObject entryRuleModelDefinition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModelDefinition = null;\n\n\n try {\n // ../com.telefonica.ietf.nemo/src-gen/com/telefonica/ietf/nemo/parser/antlr/internal/InternalNemoDSL.g:141:2: (iv_ruleModelDefinition= ruleModelDefinition EOF )\n // ../com.telefonica.ietf.nemo/src-gen/com/telefonica/ietf/nemo/parser/antlr/internal/InternalNemoDSL.g:142:2: iv_ruleModelDefinition= ruleModelDefinition EOF\n {\n newCompositeNode(grammarAccess.getModelDefinitionRule()); \n pushFollow(FOLLOW_ruleModelDefinition_in_entryRuleModelDefinition270);\n iv_ruleModelDefinition=ruleModelDefinition();\n\n state._fsp--;\n\n current =iv_ruleModelDefinition; \n match(input,EOF,FOLLOW_EOF_in_entryRuleModelDefinition280); \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": "f4d72f4f81ec4a6d069f7cd23837938d", "score": "0.46477538", "text": "IItemDefinition getDefinition(String aType) throws Exception;", "title": "" }, { "docid": "cc2f29afc715448f5b84a534128f9f91", "score": "0.4646557", "text": "public final String entryRuletypeName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruletypeName = null;\n\n\n try {\n // InternalMASL.g:605:48: (iv_ruletypeName= ruletypeName EOF )\n // InternalMASL.g:606:2: iv_ruletypeName= ruletypeName EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTypeNameRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruletypeName=ruletypeName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruletypeName.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\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": "ac7c82ca2f9dc2db9244cef0d9ae7e98", "score": "0.46441785", "text": "@Override\n public java.lang.String getItem_type() {\n return _parts.getItem_type();\n }", "title": "" }, { "docid": "77c9c7271080c5c3ef38419886ff503c", "score": "0.46395463", "text": "TypeNode typ(AstNode node);", "title": "" }, { "docid": "b29fd0cee83b0027e60e7f038b97d1bb", "score": "0.4635747", "text": "public int getType()\n/* */ {\n/* 440 */ return 4;\n/* */ }", "title": "" }, { "docid": "a1ed98359c6d3adc6da723f103cf0017", "score": "0.46286553", "text": "@java.lang.Override\n public int getModelTypeValue() {\n return modelType_;\n }", "title": "" }, { "docid": "d659d2c7cf7e0508057abebffed98eda", "score": "0.46135908", "text": "public DataTypeItem getDataType();", "title": "" }, { "docid": "408335ce3aa808a81f9ffb35c0829927", "score": "0.46003658", "text": "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalJSchema.g:54:1: ( ruleModel EOF )\n // InternalJSchema.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "2a70debf486038789f465f299b2cf0fe", "score": "0.46002445", "text": "public abstract int getType();", "title": "" }, { "docid": "9609711f7c9165fe48f74ddd97a5a3f9", "score": "0.45886722", "text": "public final EObject entryRuleHardwareModel() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleHardwareModel = null;\n\n\n try {\n // InternalMyDsl.g:179:54: (iv_ruleHardwareModel= ruleHardwareModel EOF )\n // InternalMyDsl.g:180:2: iv_ruleHardwareModel= ruleHardwareModel EOF\n {\n newCompositeNode(grammarAccess.getHardwareModelRule()); \n pushFollow(FOLLOW_1);\n iv_ruleHardwareModel=ruleHardwareModel();\n\n state._fsp--;\n\n current =iv_ruleHardwareModel; \n match(input,EOF,FOLLOW_2); \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": "eea0bf1e1f58c357d4b33a8940e95e6d", "score": "0.45837557", "text": "public final void entryRuleModelElement() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:90:1: ( ruleModelElement EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:91:1: ruleModelElement EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementRule()); \r\n }\r\n pushFollow(FOLLOW_ruleModelElement_in_entryRuleModelElement128);\r\n ruleModelElement();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleModelElement135); 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 return ;\r\n }", "title": "" }, { "docid": "6ebbc06cc183a66d577f411abc47c9f6", "score": "0.4575141", "text": "public final String entryRuleDataType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleDataType = null;\n\n\n try {\n // InternalMyDsl.g:5100:48: (iv_ruleDataType= ruleDataType EOF )\n // InternalMyDsl.g:5101:2: iv_ruleDataType= ruleDataType EOF\n {\n newCompositeNode(grammarAccess.getDataTypeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleDataType=ruleDataType();\n\n state._fsp--;\n\n current =iv_ruleDataType.getText(); \n match(input,EOF,FOLLOW_2); \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": "e17b4f946576fc7f519c9d86ea567232", "score": "0.45743448", "text": "@Override\r\n\tpublic ModelTypeEnum getModelType() {\n\t\treturn ModelTypeEnum.UNIT;\r\n\t}", "title": "" }, { "docid": "9aadd422be6dada77bc8fed8f4a63108", "score": "0.4568829", "text": "public DroolsRuleModel(final ItemModelContext ctx)\n\t{\n\t\tsuper(ctx);\n\t}", "title": "" }, { "docid": "59a1ec8cbfd37be7d109db7e9e87d43e", "score": "0.45646435", "text": "public final EObject entryRuleModelBinding() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleModelBinding = null;\n\n\n try {\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:619:2: (iv_ruleModelBinding= ruleModelBinding EOF )\n // ../org.openhab.model.item/src-gen/org/openhab/model/parser/antlr/internal/InternalItems.g:620:2: iv_ruleModelBinding= ruleModelBinding EOF\n {\n newCompositeNode(grammarAccess.getModelBindingRule()); \n pushFollow(FOLLOW_ruleModelBinding_in_entryRuleModelBinding1245);\n iv_ruleModelBinding=ruleModelBinding();\n\n state._fsp--;\n\n current =iv_ruleModelBinding; \n match(input,EOF,FOLLOW_EOF_in_entryRuleModelBinding1255); \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": "7aef02d698fdff66c67777cfacca81c1", "score": "0.45607024", "text": "public java.lang.String getItemType() {\n\t\treturn _adsItem.getItemType();\n\t}", "title": "" }, { "docid": "3600147ff604e7544d05792fe943f429", "score": "0.45591062", "text": "public anItemKind kind() {\n return anItemKind.anUseCase;\n }", "title": "" }, { "docid": "ef681729a11f9464b893c4adb04e86a3", "score": "0.45553616", "text": "public ItemEntryResponseModel createItemEntry(ItemModel bookModel) throws Exception;", "title": "" }, { "docid": "cef01b2c308485a070685c955df66005", "score": "0.45545402", "text": "abstract String getType();", "title": "" }, { "docid": "9ef61d8917fd5acb1c93e2a2caab571b", "score": "0.45537335", "text": "public TypeModel getTypeModel() throws ImportException {\n Collection<String> names = getTypeModelNames();\n if (!names.isEmpty()) {\n return getTypeModel(names.iterator().next());\n }\n return null;\n }", "title": "" }, { "docid": "523c0477a88da6c33f3e3889cd4d703e", "score": "0.45425212", "text": "private Rule readRule(Element ruleEl) {\n Rule r;\n String type = ruleEl.getName();\n if (type.equals(\"application\")) {\n String dir = ruleEl.getAttributeValue(\"dir\");\n if (dir.equals(\"forward\")) {\n r = new ForwardApplication();\n } else {\n r = new BackwardApplication();\n }\n } else if (type.equals(\"composition\")) {\n String dir = ruleEl.getAttributeValue(\"dir\");\n String harmonic = ruleEl.getAttributeValue(\"harmonic\");\n boolean isHarmonic = new Boolean(harmonic).booleanValue();\n if (dir.equals(\"forward\")) {\n r = new ForwardComposition(isHarmonic);\n } else {\n r = new BackwardComposition(isHarmonic);\n }\n } else if (type.equals(\"substitution\")) {\n String dir = ruleEl.getAttributeValue(\"dir\");\n String harmonic = ruleEl.getAttributeValue(\"harmonic\");\n boolean isHarmonic = new Boolean(harmonic).booleanValue();\n if (dir.equals(\"forward\")) {\n r = new ForwardSubstitution(isHarmonic);\n } else {\n r = new BackwardSubstitution(isHarmonic);\n }\n } else if (type.equals(\"typeraising\")) {\n String dir = ruleEl.getAttributeValue(\"dir\");\n String useDollar = ruleEl.getAttributeValue(\"useDollar\");\n boolean addDollar = new Boolean(useDollar).booleanValue();\n Category arg = null;\n Element argElt = ruleEl.getChild(\"arg\");\n if (argElt != null) {\n arg = CatReader.getCat((Element)argElt.getChildren().get(0));\n }\n Category result = null;\n Element resultElt = ruleEl.getChild(\"result\");\n if (resultElt != null) {\n result = CatReader.getCat((Element)resultElt.getChildren().get(0));\n }\n if (dir.equals(\"forward\")) {\n r = new ForwardTypeRaising(addDollar, arg, result);\n } else {\n r = new BackwardTypeRaising(addDollar, arg, result);\n }\n } else if (type.equals(\"typechanging\")) {\n r = readTypeChangingRule(ruleEl);\n } else {\n throw new RuntimeException(\"Invalid element in rules: \" + type);\n }\n return r;\n }", "title": "" }, { "docid": "f590fdeb1c3a1b1922eb0e798dce1631", "score": "0.4538911", "text": "public int validateType(String user) throws InvalidSyntaxException {\r\n\t\tif (user.length() <= 5 || !user.substring(0, user.indexOf(' ')).equals(\"type\")) {\r\n\t\t\tthrow new InvalidSyntaxException(\"Please check syntax for -item <itemType>\");\r\n\t\t}\r\n\t\t// Re - structuring the subquery\r\n\t\tString itemType = user.substring(user.indexOf(\" \")).trim();\r\n\t\tint flag = 0;\r\n\t\t// Checking the plausible values for item type.\r\n\t\tif ((itemType.equals(\"Raw and Imported\") == true)) {\r\n\t\t\ttype = ItemType.RawAndImported;\r\n\t\t\tflag = 1;\r\n\t\t} else if ((itemType.equals(\"Manufactured and Imported\") == true)) {\r\n\t\t\ttype = ItemType.ManufacturedAndImported;\r\n\t\t\tflag = 1;\r\n\t\t} else {\r\n\t\t}\r\n\t\t// Setting flag to hint erroneous input and a message subsequently.\r\n\t\tif (flag == 0) {\r\n\t\t\tflag = -1;\r\n\t\t\tSystem.out.println(\"Please give correct value for Item Type.\");\r\n\t\t\tSystem.out.println(\"Either 'Raw and Imported' or 'Manufactured and Imported'\");\r\n\t\t\tSystem.out.println(\"Please beware : CASE SENSITIVE \");\r\n\t\t}\r\n\r\n\t\treturn flag;\r\n\r\n\t}", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.45261726", "text": "public abstract String getType();", "title": "" }, { "docid": "32a7fe433015ae8c52cbf0406719a801", "score": "0.45187506", "text": "public Type getType() {\r\n return itemType;\r\n }", "title": "" }, { "docid": "bd21fa0004cd99455533a00231313324", "score": "0.45178753", "text": "String getModelIdentifier();", "title": "" }, { "docid": "05d26a5703d5b9ab472ba282be11698f", "score": "0.4514443", "text": "public final void rule__ModelElement__Alternatives() 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:3646:1: ( ( ruleType ) | ( ruleObject ) | ( rulePackageDeclaration ) | ( ruleImport ) | ( ruleSpec ) )\r\n int alt3=5;\r\n switch ( input.LA(1) ) {\r\n case 65:\r\n case 69:\r\n {\r\n alt3=1;\r\n }\r\n break;\r\n case 17:\r\n case 18:\r\n case 19:\r\n case 20:\r\n case 21:\r\n {\r\n alt3=2;\r\n }\r\n break;\r\n case 71:\r\n {\r\n alt3=3;\r\n }\r\n break;\r\n case 70:\r\n {\r\n alt3=4;\r\n }\r\n break;\r\n case 41:\r\n case 42:\r\n case 43:\r\n case 44:\r\n case 123:\r\n case 126:\r\n {\r\n alt3=5;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt3) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3647:1: ( ruleType )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3647:1: ( ruleType )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3648:1: ruleType\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementAccess().getTypeParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_ruleType_in_rule__ModelElement__Alternatives7731);\r\n ruleType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementAccess().getTypeParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3653:6: ( ruleObject )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3653:6: ( ruleObject )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3654:1: ruleObject\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementAccess().getObjectParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_ruleObject_in_rule__ModelElement__Alternatives7748);\r\n ruleObject();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementAccess().getObjectParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3659:6: ( rulePackageDeclaration )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3659:6: ( rulePackageDeclaration )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3660:1: rulePackageDeclaration\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementAccess().getPackageDeclarationParserRuleCall_2()); \r\n }\r\n pushFollow(FOLLOW_rulePackageDeclaration_in_rule__ModelElement__Alternatives7765);\r\n rulePackageDeclaration();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementAccess().getPackageDeclarationParserRuleCall_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3665:6: ( ruleImport )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3665:6: ( ruleImport )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3666:1: ruleImport\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementAccess().getImportParserRuleCall_3()); \r\n }\r\n pushFollow(FOLLOW_ruleImport_in_rule__ModelElement__Alternatives7782);\r\n ruleImport();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementAccess().getImportParserRuleCall_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3671:6: ( ruleSpec )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3671:6: ( ruleSpec )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3672:1: ruleSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModelElementAccess().getSpecParserRuleCall_4()); \r\n }\r\n pushFollow(FOLLOW_ruleSpec_in_rule__ModelElement__Alternatives7799);\r\n ruleSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModelElementAccess().getSpecParserRuleCall_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "8e3b750144ed22f73fdcd1433bec9d94", "score": "0.4512809", "text": "public ItemType getItemType() {\n return nodeTest;\n }", "title": "" }, { "docid": "2a6cc41f0c1fa2cb857254231c4455d0", "score": "0.45114267", "text": "abstract public String getType();", "title": "" }, { "docid": "2a6cc41f0c1fa2cb857254231c4455d0", "score": "0.45114267", "text": "abstract public String getType();", "title": "" } ]
fe7f00604b6480a7ddcc86fa1cb7505a
Sets value as the attribute value for ProjId.
[ { "docid": "e6d741f62fafcc4eecaea51b7e02ddc5", "score": "0.69269305", "text": "public void setProjId(Integer value)\n {\n setAttributeInternal(PROJID, value);\n }", "title": "" } ]
[ { "docid": "34ba9afefb942177440da929b7bf7e0c", "score": "0.65704924", "text": "public void setProposalId(Number value) {\n setAttributeInternal(PROPOSALID, value);\n }", "title": "" }, { "docid": "0e95b6a4a18adba7c056362c041e8fb6", "score": "0.62262255", "text": "public void setProjectId(Number value) {\n setAttributeInternal(PROJECTID, value);\n }", "title": "" }, { "docid": "bcef7a8f6c42beb79d15c5410e6e6419", "score": "0.61759573", "text": "public void setAttributeId(int value) {\n this.attributeId = value;\n }", "title": "" }, { "docid": "226aa53522ddd1c7700a4de8a70c551a", "score": "0.587014", "text": "private void setPokemonId(long value) {\n \n pokemonId_ = value;\n }", "title": "" }, { "docid": "73e95e17b9b92c0f9f6d56e5432241b5", "score": "0.5847838", "text": "public void setPid(int pId){\n\t\tthis.pid = pId;\n\t}", "title": "" }, { "docid": "98078fbc33c4e637774f7b5a2c718556", "score": "0.5803708", "text": "public void setPeocessId(String peocessId)\r\n/* 79: */ {\r\n/* 80:58 */ this.peocessId = peocessId;\r\n/* 81: */ }", "title": "" }, { "docid": "6628bb27c414d784adbcac056e74f97b", "score": "0.57831997", "text": "public void setPParmId(Number value) {\n\t\tsetNumber(P_PARM_ID, value);\n\t}", "title": "" }, { "docid": "00b03ef47ca25cfc77b865a8cb840898", "score": "0.5780598", "text": "private void setPokemonId(long value) {\n \n pokemonId_ = value;\n }", "title": "" }, { "docid": "c5baa7de1aa9996157cf9aa9a3ec6770", "score": "0.5755993", "text": "public void setIdPiloto(int value) {\n this.idPiloto = value;\n }", "title": "" }, { "docid": "091eef4cb6e51e2f1e425c223d435b75", "score": "0.57285386", "text": "public Builder setPid(int value) {\n bitField0_ |= 0x00000010;\n pid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e4ac6a3f8f7d1e849e79676c430629e4", "score": "0.5683842", "text": "public void setapproverId(String value) {\r\n setAttributeInternal(APPROVERID, value);\r\n }", "title": "" }, { "docid": "135b279365a86b6fa09b71e7208df13b", "score": "0.56799227", "text": "public Builder setPpid(int value) {\n bitField0_ |= 0x00000020;\n ppid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "db2b6f0b168ddbd1f65c5fec6a333878", "score": "0.56494844", "text": "public Builder setProposalId(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n proposalId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "db2b6f0b168ddbd1f65c5fec6a333878", "score": "0.56494844", "text": "public Builder setProposalId(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n proposalId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8af02c5c6242922880108f30d5968901", "score": "0.56188816", "text": "public void setId(final String projectId) {\n this.id = projectId;\n }", "title": "" }, { "docid": "ccf6e0878b0dac8a2affab58b2efd86a", "score": "0.5602136", "text": "public void setPersonId(Number value) {\n setAttributeInternal(PERSONID, value);\n }", "title": "" }, { "docid": "43f8f67b839cc2c4ca86a79c2ef1d310", "score": "0.55948025", "text": "public void setapproverId(String value) {\r\n setAttributeInternal(APPROVERID, value);\r\n }", "title": "" }, { "docid": "02a88447e6e4ac534ce49fce7653a5bc", "score": "0.5564032", "text": "public void setPActPerdId(Number value) {\n\t\tsetNumber(P_ACT_PERD_ID, value);\n\t}", "title": "" }, { "docid": "9378adbab16168ec11bf0c03e9e32ea8", "score": "0.55365753", "text": "public void setProvienceId(Integer provienceId) {\r\n this.provienceId = provienceId;\r\n }", "title": "" }, { "docid": "fa5691b4f9eb115c255e7b5f1e988fb5", "score": "0.55198544", "text": "public void setProcessId(int value) {\n this.processId = value;\n }", "title": "" }, { "docid": "faffea679ec29686a1ab435dabb5420f", "score": "0.55157876", "text": "public void setProcessId(String new_id){\n this.processId = new SimpleStringProperty(new_id);\n }", "title": "" }, { "docid": "8bad0173dbc5bd82d125fafa82d69222", "score": "0.5509166", "text": "public void setPrdId(Long newVal) {\n if ((newVal != null && this.prdId != null && (newVal.compareTo(this.prdId) == 0)) ||\n (newVal == null && this.prdId == null && prdId_is_initialized)) {\n return;\n }\n this.prdId = newVal;\n prdId_is_modified = true;\n prdId_is_initialized = true;\n }", "title": "" }, { "docid": "e8e75123eb3b263d46da4f5504a5c3cc", "score": "0.5468785", "text": "public void setPropertyValue(Object id, Object value) {\r\n\r\n }", "title": "" }, { "docid": "4b4456a7bbf7bcb57fceeea34f33a8d6", "score": "0.5450939", "text": "public void setId(String value) {\n this.id = value;\n }", "title": "" }, { "docid": "d14d9eccb744461af437fd32df124edf", "score": "0.54450446", "text": "public void setPoLineId(BigDecimal value) {\r\n setAttributeInternal(POLINEID, value);\r\n }", "title": "" }, { "docid": "612d660f9cbc502af53bfac05d5b828d", "score": "0.5423587", "text": "public void setPrjId(Integer prjId) {\n this.prjId = prjId;\n }", "title": "" }, { "docid": "4e97f2aeef96428c77cd840b4a5a40d4", "score": "0.54151964", "text": "public void setProNum(Integer proNum) {\r\n\t\tthis.proNum = proNum;\r\n\t}", "title": "" }, { "docid": "f2e439bc44398eccc153ba00f2d10990", "score": "0.5412432", "text": "public void idSet\n\t\t(int pid) \n\t\tthrows IOException \n\t\t{\n\t\tthis.myId = pid;\n\t\tmodelListener.idSet(pid);\n\t}", "title": "" }, { "docid": "0c31b34d99008f0f007104e02550fd92", "score": "0.5394955", "text": "public void setProcessingID(String val) {\n mProcessingID = val;\n }", "title": "" }, { "docid": "cd40de6cdba0a1252ec010f3d206d440", "score": "0.5392946", "text": "public void setId(String value)\n\t{\n\t\tid = value;\n\t}", "title": "" }, { "docid": "941daf2983e953e336a4d4b5b9d8701b", "score": "0.53834134", "text": "public Integer getId() {\n\t\treturn productAttrValueId;\n\t}", "title": "" }, { "docid": "51e5dfeede2169b6642c80fddf219b90", "score": "0.5377584", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "f53d54db2e63f175888033d1fc5c6eb6", "score": "0.53675723", "text": "public Builder setProcedureId(io.dstore.values.IntegerValue value) {\n if (procedureIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n procedureId_ = value;\n onChanged();\n } else {\n procedureIdBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "15cf8592880881715bf372def367fd8d", "score": "0.53606135", "text": "public void setIdGrupoProduto(java.lang.Long idGrupoProduto) {\n this.idGrupoProduto = idGrupoProduto;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.53514445", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "bab4644dba591fd412f7eba547e76cf7", "score": "0.5347641", "text": "public void setOrgId(BigDecimal value) {\n setAttributeInternal(ORGID, value);\n }", "title": "" }, { "docid": "ce6a2cb382d8df8f6c65701a6f7a7349", "score": "0.5347016", "text": "public Energistics.Etp.v12.Datatypes.AttributeMetadataRecord.Builder setAttributeId(int value) {\n validate(fields()[0], value);\n this.attributeId = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "title": "" }, { "docid": "46ccf645c99a508602eb64e406109efa", "score": "0.53433645", "text": "public void setProductID(int value) {\n this.productID = value;\n }", "title": "" }, { "docid": "d58bddc945956f8ab9573d6273323dd3", "score": "0.5343211", "text": "public void setIdPaquete(int value) {\n this.idPaquete = value;\n }", "title": "" }, { "docid": "5655ad7f5b10bf0c98ac4306fd47d287", "score": "0.533681", "text": "public void setProjId(String projId) {\n this.projId = projId == null ? null : projId.trim();\n }", "title": "" }, { "docid": "5655ad7f5b10bf0c98ac4306fd47d287", "score": "0.533681", "text": "public void setProjId(String projId) {\n this.projId = projId == null ? null : projId.trim();\n }", "title": "" }, { "docid": "067cfde174872dc2ccf31574686c41f1", "score": "0.53306794", "text": "public void setId(CharSequence value) {\n this.id = value;\n }", "title": "" }, { "docid": "6f433703dfdae7038dd24a67328a77bc", "score": "0.53216386", "text": "public void setPid(Integer pid) {\r\n\t\tthis.pid = pid;\r\n\t}", "title": "" }, { "docid": "8c3d046097c9eefe39d472f74ca4c481", "score": "0.5320722", "text": "public void setOppurtunityId(BigDecimal value) {\n setAttributeInternal(OPPURTUNITYID, value);\n }", "title": "" }, { "docid": "d7c44d3c18cae67d457c04f9ba79b9a8", "score": "0.5312002", "text": "public void setId(int value) {\n\t\tthis.id = value;\n\t}", "title": "" }, { "docid": "e013b204f21f068b70dc96b6c690f321", "score": "0.53078306", "text": "public void setProjectid(int v) throws TorqueException\n {\n \n\n\n if (this.projectid != v)\n {\n this.projectid = v;\n setModified(true);\n }\n\n \n if (aProject != null && !(aProject.getProjectid()==v))\n {\n aProject = null;\n }\n \n }", "title": "" }, { "docid": "0079f218d1d1684865125e0d502dd55c", "score": "0.5307158", "text": "public Builder setPid(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n pid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "58a9673d8daa8e05f2d6b6c1cf8e95aa", "score": "0.5305748", "text": "public void setPid(Integer pid) {\n this.pid = pid;\n }", "title": "" }, { "docid": "58a9673d8daa8e05f2d6b6c1cf8e95aa", "score": "0.5305748", "text": "public void setPid(Integer pid) {\n this.pid = pid;\n }", "title": "" }, { "docid": "58a9673d8daa8e05f2d6b6c1cf8e95aa", "score": "0.5305748", "text": "public void setPid(Integer pid) {\n this.pid = pid;\n }", "title": "" }, { "docid": "58a9673d8daa8e05f2d6b6c1cf8e95aa", "score": "0.5305748", "text": "public void setPid(Integer pid) {\n this.pid = pid;\n }", "title": "" }, { "docid": "d26cb8a6f0660b04177edab36849a1ed", "score": "0.5302039", "text": "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "title": "" }, { "docid": "d26cb8a6f0660b04177edab36849a1ed", "score": "0.5302039", "text": "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "title": "" }, { "docid": "d26cb8a6f0660b04177edab36849a1ed", "score": "0.5302039", "text": "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "title": "" }, { "docid": "eea17cf10e083ea05813e34a7f4c563e", "score": "0.5277122", "text": "public void setPinnwandID (int val)\n throws RemoteException;", "title": "" }, { "docid": "81657eadd543f204adb710c2dc1c2036", "score": "0.52757585", "text": "public void setC_Project_ID (int C_Project_ID);", "title": "" }, { "docid": "81657eadd543f204adb710c2dc1c2036", "score": "0.52757585", "text": "public void setC_Project_ID (int C_Project_ID);", "title": "" }, { "docid": "81657eadd543f204adb710c2dc1c2036", "score": "0.52757585", "text": "public void setC_Project_ID (int C_Project_ID);", "title": "" }, { "docid": "3ca87bedfde6ee669e131dbe2afea30c", "score": "0.52475625", "text": "public void setPid(Integer pid) {\n\t\tthis.pid = pid;\n\t}", "title": "" }, { "docid": "81c0d3b85130de8f0702f79333b287fe", "score": "0.5243063", "text": "public void setProjectId(int tmp) {\n this.projectId = tmp;\n }", "title": "" }, { "docid": "81c0d3b85130de8f0702f79333b287fe", "score": "0.5243063", "text": "public void setProjectId(int tmp) {\n this.projectId = tmp;\n }", "title": "" }, { "docid": "81c0d3b85130de8f0702f79333b287fe", "score": "0.5243063", "text": "public void setProjectId(int tmp) {\n this.projectId = tmp;\n }", "title": "" }, { "docid": "fbd3afaeb221975fc143d629fbbf5a0b", "score": "0.5232902", "text": "public void setIdProyectoParticipante(long idProyectoParticipante) {\n this.id = this.idProyectoParticipante = idProyectoParticipante;\n }", "title": "" }, { "docid": "8ee2cb0891df2e585b01658fd4c1bd75", "score": "0.52323073", "text": "public Builder setAttributeId(int value) {\n bitField0_ |= 0x00000001;\n attributeId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "08617aac3f99d9398f88859be51517fd", "score": "0.52276605", "text": "public void setProcId(String procId) {\n this.procId = procId == null ? null : procId.trim();\n }", "title": "" }, { "docid": "08617aac3f99d9398f88859be51517fd", "score": "0.52276605", "text": "public void setProcId(String procId) {\n this.procId = procId == null ? null : procId.trim();\n }", "title": "" }, { "docid": "70149c989f6dcd9bc80b6e8484382c24", "score": "0.5222549", "text": "public void setProducerId(long value) {\n this.producerId = value;\n }", "title": "" }, { "docid": "d4b1abfaf6b9d0a5863997fdf87f37b8", "score": "0.5219102", "text": "public Builder setAttributeId(int value) {\n bitField0_ |= 0x00000008;\n attributeId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e3c8de8a6a450ba68164ecc2945ccf8e", "score": "0.52052814", "text": "public void setpolicyId(String value) {\r\n setAttributeInternal(POLICYID, value);\r\n }", "title": "" }, { "docid": "e3c8de8a6a450ba68164ecc2945ccf8e", "score": "0.52052814", "text": "public void setpolicyId(String value) {\r\n setAttributeInternal(POLICYID, value);\r\n }", "title": "" }, { "docid": "f4ec59ecad6c972c6ff4c8dfb75fc835", "score": "0.5201119", "text": "public void setPSrcePerdId(Number value) {\n\t\tsetNumber(P_SRCE_PERD_ID, value);\n\t}", "title": "" }, { "docid": "5df9c0bedbf323bdfaf80f356c23907d", "score": "0.5188891", "text": "public void setProjectId(Integer pId) {\n this.projectId = pId;\n }", "title": "" }, { "docid": "d014222b64c9bc534de674703c9d195b", "score": "0.51886255", "text": "public void setId(Integer value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "0500e00998140d422a9f5819df3c37ca", "score": "0.51825905", "text": "public void setId(BigDecimal value) {\r\n setAttributeInternal(ID, value);\r\n }", "title": "" }, { "docid": "0500e00998140d422a9f5819df3c37ca", "score": "0.51825905", "text": "public void setId(BigDecimal value) {\r\n setAttributeInternal(ID, value);\r\n }", "title": "" }, { "docid": "765049c5a4fe882245c9a6b58e7e05e0", "score": "0.517263", "text": "public void setid(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "88ffaad734e385683cec39a4c79a85e9", "score": "0.5171884", "text": "public void setOrgId(String value) {\r\n setAttributeInternal(ORGID, value);\r\n }", "title": "" }, { "docid": "79f6f0e4068c5f55f7e32566dbf0d00e", "score": "0.51714486", "text": "public void setId(Integer value) {\n set(6, value);\n }", "title": "" }, { "docid": "eb9f591ed3a934501b8cc0ec3acf4354", "score": "0.51689714", "text": "public void setpro_id(String productid) {\n\t\tthis.productid = productid;\n\t}", "title": "" }, { "docid": "11f980781767eaa072293ba912088033", "score": "0.51684046", "text": "public void setId(final int value) {\n this.id = value;\n }", "title": "" }, { "docid": "059a30a978f4ca2f3f798a0851afb963", "score": "0.5161971", "text": "public void setIdUser(int value) {\n this.idUser = value;\n }", "title": "" }, { "docid": "cd9e3dc3466937b0a432f46e86fac4aa", "score": "0.5158753", "text": "public void setrubric_id(int value) {\n this.rubric_id = value;\n }", "title": "" }, { "docid": "16267a757e2c5f5af23e2e9e0c2d1ce5", "score": "0.5157453", "text": "public void\r\n\tsetProjectId (\r\n\t int id)\r\n\t{\r\n\t\tsetValue (FLD_PROJECT_ID, id);\r\n\t}", "title": "" }, { "docid": "3735f2b18b66301fe1595cd292d2779b", "score": "0.51556635", "text": "public void setProfessionId(String professionId) {\n this.professionId = professionId == null ? null : professionId.trim();\n }", "title": "" }, { "docid": "8ba0f22994c021b6f9584743c2c9d033", "score": "0.51528573", "text": "public void setProviceid(Integer proviceid) {\r\n this.proviceid = proviceid;\r\n }", "title": "" }, { "docid": "d517ea21eff8811690cd0abd8fff47d6", "score": "0.5145495", "text": "public Builder setProcedureId(\n io.dstore.values.IntegerValue.Builder builderForValue) {\n if (procedureIdBuilder_ == null) {\n procedureId_ = builderForValue.build();\n onChanged();\n } else {\n procedureIdBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "00d515ebe7c8141903165c55b9f0bfc4", "score": "0.51418126", "text": "public void setPayId(String value) {\n setAttributeInternal(PAYID, value);\n }", "title": "" }, { "docid": "8ed1dad5563b092c6da3f8adea8b5e73", "score": "0.5139914", "text": "public void setPkid(String pkid) {\r\n this.pkid = pkid == null ? null : pkid.trim();\r\n }", "title": "" }, { "docid": "7e49dd5316eca5ced826dd7007af90cd", "score": "0.5130293", "text": "public void setCouponId(Number value) {\r\n setAttributeInternal(COUPONID, value);\r\n }", "title": "" }, { "docid": "e88662beaf03cc13a59d66848446d584", "score": "0.51300925", "text": "@Test\n public void testSetProfessorId() {\n System.out.println(\"setProfessorId\");\n int professorId = 0;\n TurmaBean instance = new TurmaBean();\n instance.setProfessorId(professorId);\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": "05e73425d9a31aa3ffc53d4b9c6bfb0b", "score": "0.51243776", "text": "public Integer getPrjId() {\n return prjId;\n }", "title": "" }, { "docid": "97fa847513e1c22d88e22b98d1276c76", "score": "0.51215386", "text": "public void setUomId(BigDecimal value) {\r\n setAttributeInternal(UOMID, value);\r\n }", "title": "" }, { "docid": "64427a384086ae5f970b5f40dd39f1e1", "score": "0.51160616", "text": "public void setIdClasificacionProceso(Long idClasificacionProceso) {\n this.idClasificacionProceso = idClasificacionProceso;\n }", "title": "" }, { "docid": "ec7fca27e42c7e7eaa52b4631a25c5e7", "score": "0.51143306", "text": "public static void setProcessId(int Id)\r\n\t{\r\n\t\tprocessId = Id;\r\n\t}", "title": "" } ]
dd8b9f04f6aa7d4d507ab01aeb9b7fcf
Given an aircraft with an engine and Trk with tracked SubComponent removed from Engine When the UsageHistoryOfTrkSer query is executed for the tracked SubComponent Then the query should return one removal record
[ { "docid": "b44106a780321a78657b98a6b81be43d", "score": "0.61278474", "text": "@Test\n public void itReturnsRemovalRecord() {\n\n final int lDayCount = 30;\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n final Date lSubCompRemovalFromTrkDate = DateUtils.addDays( lTrkInstallDate, 2 );\n\n // Create engine\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Subcomponent\n final InventoryKey lSubCompInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.addUsage( HOURS, SUB_COMP_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, SUB_COMP_CURRENT_CYCLES );\n }\n } );\n\n // Create Trk inventory\n\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n\n aTrackedInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n aTrackedInventory.addTracked( lSubCompInventory );\n aTrackedInventory.addRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n\n aRemovalRecord.setRemovalDate( lSubCompRemovalFromTrkDate );\n aRemovalRecord.setHighest( lAircraft );\n aRemovalRecord.setAssembly( lEngine );\n aRemovalRecord.setParent( lEngine );\n\n aRemovalRecord.addSubInventory( new DomainConfiguration<RemovedInventoryInfo>() {\n\n @Override\n public void configure( RemovedInventoryInfo aRemovedInventoryInfo ) {\n aRemovedInventoryInfo.setInventory( lSubCompInventory );\n aRemovedInventoryInfo.setAssembly( lEngine );\n aRemovedInventoryInfo.setHighest( lAircraft );\n }\n } );\n }\n } );\n }\n } );\n\n QuerySet lUsageHistoryQs =\n executeUsageHistory( lSubCompInventory, lDayCount, USAGE_PARAM_LIST );\n\n // Assert\n assertEquals( \"Expected Row count should be 1\", 1, lUsageHistoryQs.getRowCount() );\n lUsageHistoryQs.next();\n assertEquals( \"Expected Removal record\", REMOVAL,\n lUsageHistoryQs.getString( \"display_name\" ) );\n }", "title": "" } ]
[ { "docid": "08602bafe07dcb99b4d8cfd722abced9", "score": "0.6920009", "text": "@Test\n public void itDoesNotReturnRemovalRecordWhenSubcomponentDetachedFromLooseComponent() {\n\n final int lDayCount = 30;\n final Date lSubCompRemovalFromTrkDate = DateUtils.addDays( new Date(), -15 );\n\n // Create Trk inventory\n final InventoryKey lTrkInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n }\n } );\n\n // Create Subcomponent\n final InventoryKey lSubCompInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.addUsage( HOURS, SUB_COMP_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, SUB_COMP_CURRENT_CYCLES );\n aTrackedInventory.setParent( lTrkInventory );\n\n aTrackedInventory.addRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n aRemovalRecord.setRemovalDate( lSubCompRemovalFromTrkDate );\n aRemovalRecord.setParent( lTrkInventory );\n }\n } );\n }\n } );\n\n QuerySet lUsageHistoryQs =\n executeUsageHistory( lSubCompInventory, lDayCount, USAGE_PARAM_LIST );\n\n // Assert\n assertEquals( \"Expected Row count should be 0\", 0, lUsageHistoryQs.getRowCount() );\n }", "title": "" }, { "docid": "80ced8b5550abd0f0a91c1f09ae13234", "score": "0.59010476", "text": "@Test\n public void itDoesNotReturnUsagesWhenThereIsNoUsageHistoryAfterComponentInstalledOnParent() {\n\n final Date lTrkInstallDate = DateUtils.addDays( new Date(), -6 );\n final Date lEngineInstallDate = DateUtils.addDays( lTrkInstallDate, -5 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final Date lUsageDate = DateUtils.addDays( lTrkInstallDate, -2 );\n final int lDayCount = 30;\n\n // Create usage\n UsageAdjustmentId lFlightUsageRecordId =\n createUsageRecord( lEngine, lUsageDate, UsageType.MXFLIGHT );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // check flight not returned\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageRecordId );\n assertNull( lUsage.get( lFlightUsageRecordId ) );\n // check only one installation record\n assertEquals( \"Expected Row count should be 1\", 1, lUsageHistoryQs.getRowCount() );\n assertEquals( \"Only installation records should be returned\", INSTALLATION,\n lUsageHistoryQs.getString( \"display_name\" ) );\n\n }", "title": "" }, { "docid": "5fb887075d2b7eb7a987f09aaf325674", "score": "0.58908445", "text": "@Test\n public void itReturnsPreviousTSNValueCorrectlyWhenComponentIsRemovedFromDetachedEngine() {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final Date lUsageDate = DateUtils.addDays( lTrkInstallDate, 1 );\n\n final Date lEngineRemovalDate = DateUtils.addDays( lUsageDate, 1 );\n\n final Date lTrkRemovalDate = DateUtils.addDays( lEngineRemovalDate, 1 );\n\n final InventoryKey lEngine = createEngineWithRemoval( lEngineInstallDate, lEngineRemovalDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory with install and removal\n final InventoryKey lTrkInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n\n aTrackedInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n\n aTrackedInventory\n .addInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aInstallationRecord ) {\n aInstallationRecord.setInstallationDate( lTrkInstallDate );\n aInstallationRecord.setAssembly( lEngine );\n aInstallationRecord.setParent( lEngine );\n aInstallationRecord.setHighest( lAircraft );\n aInstallationRecord\n .addSubInventory( new DomainConfiguration<InstalledInventoryInfo>() {\n\n @Override\n public void configure(\n InstalledInventoryInfo aInstalledInventoryInfo ) {\n aInstalledInventoryInfo.setAssembly( lEngine );\n aInstalledInventoryInfo.setHighest( lAircraft );\n }\n } );\n }\n } );\n\n aTrackedInventory.addRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n\n aRemovalRecord.setRemovalDate( lTrkRemovalDate );\n aRemovalRecord.setHighest( lAircraft );\n aRemovalRecord.setAssembly( lEngine );\n aRemovalRecord.setParent( lEngine );\n\n aRemovalRecord\n .addSubInventory( new DomainConfiguration<RemovedInventoryInfo>() {\n\n @Override\n public void configure( RemovedInventoryInfo aRemovedInventoryInfo ) {\n aRemovedInventoryInfo.setAssembly( lEngine );\n aRemovedInventoryInfo.setHighest( lAircraft );\n }\n } );\n }\n } );\n\n }\n } );\n\n final int lDayCount = 30;\n\n // Create usage\n UsageAdjustmentId lFlightUsageId =\n createUsageRecord( lEngine, lUsageDate, UsageType.MXFLIGHT );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // check\n // three rows should be returned - one for installation, one for MXFLIGHT, and one for removal\n assertEquals( \"Expected Row count should be 3\", 3, lUsageHistoryQs.getRowCount() );\n\n // retrieve flight usage record\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lFlightUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageId );\n\n // assert actual values of usage\n assertEquals( \"Incorrect cycles encountered for TSN\", TRK_CURRENT_CYCLES,\n lFlightUsage.get( lFlightUsageId ).get( CYCLE_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for Cycles\", USAGE_CYCLES_DELTA,\n lFlightUsage.get( lFlightUsageId ).get( CYCLE_DELTA ) );\n\n assertEquals( \"Incorrect hours encountered for TSN\", TRK_CURRENT_HOURS,\n lFlightUsage.get( lFlightUsageId ).get( HOUR_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for hours\", USAGE_HOURS_DELTA,\n lFlightUsage.get( lFlightUsageId ).get( HOUR_DELTA ) );\n\n }", "title": "" }, { "docid": "e02024f5f3f9a29ca5109d12ec742edf", "score": "0.58601546", "text": "@Test\n public void itDoesNotReturnInstallationRecordWhenSubcomponentAttachedToLooseComponent() {\n\n final int lDayCount = 30;\n final Date lTrkSubcomponentInstallDate = DateUtils.addDays( new Date(), -15 );\n\n // Create Trk inventory\n final InventoryKey lTrkInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n }\n } );\n\n // Create Subcomponent\n final InventoryKey lSubCompInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.addUsage( HOURS, SUB_COMP_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, SUB_COMP_CURRENT_CYCLES );\n aTrackedInventory.setParent( lTrkInventory );\n aTrackedInventory\n .addInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aInstallationRecord ) {\n aInstallationRecord\n .setInstallationDate( lTrkSubcomponentInstallDate );\n aInstallationRecord.setParent( lTrkInventory );\n }\n } );\n }\n } );\n\n QuerySet lUsageHistoryQs =\n executeUsageHistory( lSubCompInventory, lDayCount, USAGE_PARAM_LIST );\n\n // Assert\n assertEquals( \"Expected Row count should be 0\", 0, lUsageHistoryQs.getRowCount() );\n\n }", "title": "" }, { "docid": "bce1c8fdb59fc5c5e9a1a187cd682f42", "score": "0.57501346", "text": "@Test\n public void itDoesNotReturnUsagesThatWasRecordedOnParentAfterComponentRemovalFromParent() {\n\n final int lDayCount = 30;\n final Date lTrkInstallDate = DateUtils.addDays( new Date(), -6 );\n final Date lEngineInstallDate = DateUtils.addDays( lTrkInstallDate, -6 );\n\n final Date lUsageDateBeforeTrkInventoryRemoval = DateUtils.addDays( lTrkInstallDate, 1 );\n final Date lTrkInventoryRemovalDate =\n DateUtils.addDays( lUsageDateBeforeTrkInventoryRemoval, 1 );\n\n final Date lAnotherTrkInventoryInstallDate = DateUtils.addDays( lTrkInventoryRemovalDate, 2 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n final InventoryKey lAnotherEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lAnotherEngine );\n }\n } );\n\n final InventoryKey lTrkInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrkInventory ) {\n aTrkInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n aTrkInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrkInventory\n .addInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aBuilder ) {\n aBuilder.setInstallationDate( lTrkInstallDate );\n aBuilder.setAssembly( lEngine );\n }\n } );\n aTrkInventory.addRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n\n aRemovalRecord.setRemovalDate( lTrkInventoryRemovalDate );\n aRemovalRecord.setAssembly( lEngine );\n aRemovalRecord.setHighest( lEngine );\n aRemovalRecord.setParent( lEngine );\n }\n\n } );\n\n aTrkInventory.setParent( lAnotherEngine );\n\n }\n } );\n\n // Create usage before TrkInventory's removal\n UsageAdjustmentId lFlightUsageRecordId =\n createUsageRecord( lEngine, lUsageDateBeforeTrkInventoryRemoval, UsageType.MXFLIGHT );\n\n Date lUsageDateAfterAnotherTrkInventoryInstall =\n DateUtils.addDays( lAnotherTrkInventoryInstallDate, 1 );\n\n // Create usage after another Trk Inventory's replacement of TrkInventory\n UsageAdjustmentId lUsageRecordId = createUsageRecord( lEngine,\n lUsageDateAfterAnotherTrkInventoryInstall, UsageType.MXACCRUAL );\n\n // run query\n\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // assert\n // returns one installation, one removal and one usage record\n assertEquals( \"Expected Row count should be 3\", 3, lUsageHistoryQs.getRowCount() );\n\n // retrieve usage\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lFlightUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageRecordId );\n\n // assert usage for MXFLIGHT\n assertEquals( \"Incorrect cycles encountered for TSN\", TRK_CURRENT_CYCLES,\n lFlightUsage.get( lFlightUsageRecordId ).get( CYCLE_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for Cycles\", USAGE_CYCLES_DELTA,\n lFlightUsage.get( lFlightUsageRecordId ).get( CYCLE_DELTA ) );\n\n assertEquals( \"Incorrect hours encountered for TSN\", TRK_CURRENT_HOURS,\n lFlightUsage.get( lFlightUsageRecordId ).get( HOUR_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for hours\", USAGE_HOURS_DELTA,\n lFlightUsage.get( lFlightUsageRecordId ).get( HOUR_DELTA ) );\n\n // check usage not returned for MXACCRUAL\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lUsage =\n retrieveUsage( lUsageHistoryQs, lUsageRecordId );\n assertNull( lUsage.get( lUsageRecordId ) );\n\n }", "title": "" }, { "docid": "546da631cc4af57468f1f09f4906daa5", "score": "0.5371466", "text": "private RecordSet getDeletedComponents(PolicyHeader policyHeader,\r\n CreditSurchargeDeductibleType origComponent,\r\n MedicalMalpracticePolicyType changedPolicy,\r\n RecordSet dbComponents) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"getDeletedComponents\",\r\n new Object[]{policyHeader, origComponent, changedPolicy, dbComponents});\r\n }\r\n\r\n RecordSet rs = new RecordSet();\r\n\r\n //Find the component in After image.\r\n CreditSurchargeDeductibleType changedComponent = new CreditSurchargeDeductibleType();\r\n List<CreditSurchargeDeductibleType> changedComponentList = changedPolicy.getCreditSurchargeDeductible();\r\n for (CreditSurchargeDeductibleType deductible : changedComponentList) {\r\n if (StringUtils.isSame(origComponent.getCreditSurchargeDeductibleNumberId(),\r\n deductible.getCreditSurchargeDeductibleNumberId())) {\r\n changedComponent = deductible;\r\n }\r\n }\r\n\r\n for (CreditSurchargeDeductibleVersionType deductibleVersion :\r\n origComponent.getCreditSurchargeDeductibleVersion()) {\r\n boolean existedB = false;\r\n //Find the component version that need to be deleted.\r\n //The component version that does not exist in After image need to be deleted.\r\n for (CreditSurchargeDeductibleVersionType changedDeductibleVersion :\r\n changedComponent.getCreditSurchargeDeductibleVersion()) {\r\n if (StringUtils.isSame(deductibleVersion.getCreditSurchargeDeductibleVersionId(),\r\n changedDeductibleVersion.getCreditSurchargeDeductibleVersionId())) {\r\n existedB = true;\r\n }\r\n }\r\n if (!existedB) {\r\n //1. Cannot delete a component that does not exist in DB.\r\n RecordSet subSet = dbComponents.getSubSet(new RecordFilter(ComponentInquiryFields.POLICY_COV_COMPONENT_ID,\r\n deductibleVersion.getCreditSurchargeDeductibleVersionId()));\r\n if (subSet == null || subSet.getSize() == 0) {\r\n String errorMsg = \"Cannot delete the component with CreditSurchargeDeductibleVersionId: \" +\r\n deductibleVersion.getCreditSurchargeDeductibleVersionId() +\r\n \", because it does not exist in the DB.\";\r\n AppException ae = new AppException(\"ws.policy.change.invalid.update\", \"\",\r\n new String[]{errorMsg});\r\n l.throwing(getClass().getName(), \"getDeletedComponents\", ae);\r\n throw ae;\r\n }\r\n\r\n //2. Cannot delete a component which is in OFFICIAL status.\r\n Record dbComponentRec = subSet.getRecord(0);\r\n if (!\"TEMP\".equalsIgnoreCase(dbComponentRec.getStringValue(ComponentInquiryFields.RECORD_MODE_CODE))) {\r\n String errorMsg = \"Cannot delete a component (CreditSurchargeDeductibleVersionId: \" +\r\n deductibleVersion.getCreditSurchargeDeductibleVersionId() + \") \" +\r\n \"which is not in Temp status.\";\r\n AppException ae = new AppException(\"ws.policy.change.invalid.update\", \"\",\r\n new String[]{errorMsg});\r\n l.throwing(getClass().getName(), \"getDeletedComponents\", ae);\r\n throw ae;\r\n }\r\n\r\n Record componentRecord =\r\n setInputComponentToRecord(policyHeader, null, changedPolicy, origComponent, deductibleVersion);\r\n componentRecord.setFields(dbComponentRec, false);\r\n componentRecord.setUpdateIndicator(UpdateIndicator.DELETED);\r\n componentRecord.setFieldValue(CoverageInquiryFields.RECORD_MODE_CODE, RecordMode.TEMP);\r\n rs.addRecord(componentRecord);\r\n }\r\n }\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"getDeletedComponents\", rs);\r\n }\r\n return rs;\r\n }", "title": "" }, { "docid": "23166aaae15a1123903c112200a34edb", "score": "0.5279081", "text": "private void deleteUsedArtifact() {\n\t\t// Fetch the index of the selected row in the TableView\n\t\tint theIndex = theUsedDetailList.getSelectionModel().getSelectedIndex();\n\t\t\n\t\t// If no row is selected, give a warning and ignore the request\n\t\tif (theIndex == -1) {\n\t\t\tAlert alert = new Alert(AlertType.WARNING, \"Delete is only valid when a row has been selected!\", ButtonType.OK);\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Updating the list\n\t\tupdatingTheList = true;\n\t\t\n\t\tshowTheContentChangedMessage();\n\t\t\n\t\t// If beyond the end of the list just return (This should never happen,\n\t\t// so we have not spent effort raising a warning.)\n\t\tObservableList<ECUsedItem> de = theUsedDetailList.getItems();\n\t\tif (theIndex > de.size()-1) return;\n\t\t\n\t\t// Save the name that is being removed\n\t\tString removedName = de.get(theIndex).getItem();\n\t\t\n\t\t// Remove the item from the TableView list, shift any below up.\n\t\tde.remove(theIndex);\n\t\t\n\t\t// Place the updated list back into the TableView\n\t\ttheUsedDetailList.setItems(de);\n\t\t\n\t\t// De-select the TableView so no entry is selected\n\t\ttheUsedDetailList.getSelectionModel().select(-1);\n\n\t\t// Add the deleted item back into the available list and update that comboBox\n\t\t// Get the index from the choice comboBox so we know which set of lists to update\n\t\tshiftBack(theUsedArtifact, removedName, artifactBaseSet, artifactsUsedAvailable, artifactsUsedSelected);\n\t\t\n\t\t// Done updating the list\n\t\tupdatingTheList = false;\n\t}", "title": "" }, { "docid": "969dda3e702d9e22b805e635c4bde7ed", "score": "0.5248913", "text": "private void removeSubscription(final long subKey) throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n Long timeMillis = Long.valueOf(System.currentTimeMillis() + 1);\n Subscription reference = dm.getReference(Subscription.class,\n subKey);\n reference.setHistoryModificationTime(timeMillis);\n dm.remove(reference);\n Query query = dm.createQuery(\n \"SELECT uda FROM Uda uda WHERE uda.dataContainer.targetObjectKey = :key\");\n query.setParameter(\"key\", Long.valueOf(subKey));\n List<Uda> udas = ParameterizedTypes.list(query.getResultList(),\n Uda.class);\n for (Uda uda : udas) {\n uda.setHistoryModificationTime(timeMillis);\n uda.getUdaDefinition().getUdas().size();\n dm.remove(uda);\n }\n return null;\n }\n });\n }", "title": "" }, { "docid": "2915949fd4067abbd5cc5737a67efc41", "score": "0.5248169", "text": "@Test\n public void itReturnsPreviousTSNValueCorrectlyWhenComponentIsOnDetachedEngine() {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n final Date lFlightDate = DateUtils.addDays( lEngineInstallDate, 5 );\n final Date lUsageDate = DateUtils.addDays( lFlightDate, 1 );\n final Date lEngineDetachDate = DateUtils.addDays( lUsageDate, 2 );\n\n final int lDayCount = 30;\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n }\n } );\n\n final InventoryKey lEngine = Domain.createEngine( new DomainConfiguration<Engine>() {\n\n @Override\n public void configure( Engine aEngine ) {\n aEngine.addUsage( HOURS, ENGINE_CURRENT_HOURS );\n aEngine.addUsage( CYCLES, ENGINE_CURRENT_CYCLES );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lEngine, lEngine, lTrkInstallDate );\n\n // Create installation and removal records for the engine\n Domain.createInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aInstallationRecord ) {\n aInstallationRecord.setInventory( lEngine );\n aInstallationRecord.setInstallationDate( lEngineInstallDate );\n aInstallationRecord.setAssembly( lAircraft );\n aInstallationRecord.setHighest( lAircraft );\n aInstallationRecord.setParent( lAircraft );\n aInstallationRecord.addSubInventory(\n new DomainConfiguration<InstallationRecord.InstalledInventoryInfo>() {\n\n @Override\n public void configure( InstalledInventoryInfo aInstalledInventoryInfo ) {\n aInstalledInventoryInfo.setInventory( lTrkInventory );\n aInstalledInventoryInfo.setAssembly( lEngine );\n aInstalledInventoryInfo.setHighest( lAircraft );\n aInstalledInventoryInfo.setParent( lEngine );\n }\n } );\n }\n } );\n\n Domain.createRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n aRemovalRecord.setInventory( lEngine );\n aRemovalRecord.setRemovalDate( lEngineDetachDate );\n aRemovalRecord.setAssembly( lAircraft );\n aRemovalRecord.setHighest( lAircraft );\n aRemovalRecord.setParent( lAircraft );\n aRemovalRecord\n .addSubInventory( new DomainConfiguration<RemovalRecord.RemovedInventoryInfo>() {\n\n @Override\n public void configure( RemovedInventoryInfo aRemovedInventoryInfo ) {\n aRemovedInventoryInfo.setInventory( lTrkInventory );\n aRemovedInventoryInfo.setAssembly( lEngine );\n aRemovedInventoryInfo.setHighest( lAircraft );\n aRemovedInventoryInfo.setParent( lEngine );\n }\n } );\n\n }\n } );\n\n // Create 2 usage records\n UsageAdjustmentId lFlightUsageRecordId =\n createUsageRecord( lEngine, lFlightDate, UsageType.MXFLIGHT );\n\n createUsageRecord( lEngine, lUsageDate, UsageType.MXACCRUAL );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // retrieve flight usage record\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lFlightUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageRecordId );\n\n BigDecimal lExpectedCycleTSN = TRK_CURRENT_CYCLES.subtract( USAGE_CYCLES_DELTA );\n BigDecimal lExpectedHourTSN = TRK_CURRENT_HOURS.subtract( USAGE_HOURS_DELTA );\n\n // Assert that previous usage's TSN calculated correctly\n assertEquals( \"Incorrect cycles encountered for TSN\", lExpectedCycleTSN,\n lFlightUsage.get( lFlightUsageRecordId ).get( CYCLE_TSN ) );\n\n assertEquals( \"Incorrect hours encountered for TSN\", lExpectedHourTSN,\n lFlightUsage.get( lFlightUsageRecordId ).get( HOUR_TSN ) );\n\n }", "title": "" }, { "docid": "46c26b8937074feabf09381a4c053fae", "score": "0.51510084", "text": "public void removeFinal(){\n\t\tArrayList<Object> removeList = new ArrayList<Object>();\n\t\t\n\t\tfor (Object object:this.physicalGrid.getObjects()){\n\t\t\tif (object.getClass().toString().contains(\"Part\")){\n\t\t\t\tint x_coor = this.physicalGrid.getLocation(object).getX();\n\t\t\t\tint y_coor = this.physicalGrid.getLocation(object).getY();\n\t\t\t\t\n\t\t\t\tif (x_coor == exitPoint.x && y_coor == exitPoint.y){\n\t\t\t\t\tremoveList.add(object);\n\t\t\t\t}\n\t\t\t\tif (x_coor == exitHumanPointPlace.x && y_coor == exitHumanPointPlace.y){\n\t\t\t\t\tremoveList.add(object);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tClass desiredType = null;\n\t\t//Find an example product agent to get its class;;\n\t\tfor (Class typee :cyberContext.getAgentTypes()){\n\t\t\tif (typee.toString().contains(\"ProductAgent\")){\n\t\t\t\t desiredType = typee;\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Object> cyberContextRemove = new ArrayList<Object>();\n\t\t\n\t\t//For each object at the end\n\t\tfor (Object object:this.physicalGrid.getObjectsAt(exitPoint.x,exitPoint.y)){\n\t\t\t//Find the parts\n\t\t\tif (object.toString().contains(\"art\")){\n\t\t\t\t//Find the Agent associated with the physical part\n\t\t\t\tfor (Object PAinst : cyberContext.getObjects(desiredType)){\n\t\t\t\t\tProductAgentInstance PA = (ProductAgentInstance) PAinst;\n\t\t\t\t\tif (PA.toString().contains(object.toString())){\n\t\t\t\t\t\tcyberContextRemove.add(PAinst);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//For each object at the exit\n\t\tfor (Object object:this.physicalGrid.getObjectsAt(exitHumanPointPlace.x,exitHumanPointPlace.y)){\n\t\t\t//Find the parts\n\t\t\tif (object.toString().contains(\"art\")){\n\t\t\t\t//Find the Agent associated with the physical part\n\t\t\t\tfor (Object PAinst : cyberContext.getObjects(desiredType)){\n\t\t\t\t\tProductAgentInstance PA = (ProductAgentInstance) PAinst;\n\t\t\t\t\tif (PA.toString().contains(object.toString())){\n\t\t\t\t\t\tcyberContextRemove.add(PAinst);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Object o:removeList){\n\t\t\tthis.physicalContext.remove(o);\n\t\t\to = null;\n\t\t}\n\t\t\n\t\tfor (Object object:cyberContextRemove){\n\t\t\tthis.cyberContext.remove(object);\n\t\t\tobject = null;\n\t\t}\n\t}", "title": "" }, { "docid": "792495ac7c49a6eeac74cc5e8ef5eb5e", "score": "0.51231337", "text": "public Stock remove(final String paramKey) {\r\n Stock result = null;\r\n int iName, iWkn;\r\n\r\n // search by Wkn\r\n iWkn = getIndexOfKey(stocksByWkn, paramKey);\r\n\r\n if (iWkn < 0) {\r\n // if not found by Wkn, search by Name\r\n iName = getIndexOfKey(stocksByName, paramKey);\r\n if (iName >= 0) {\r\n // if search by Name was successful, search again by the now known Wkn\r\n iWkn = getIndexOfKey(stocksByWkn, stocksByName[iName].wkn);\r\n } else {\r\n // handled by *\r\n }\r\n } else {\r\n // if search by Name was successful, search again by the now known Wkn\r\n iName = getIndexOfKey(stocksByName, stocksByWkn[iWkn].name);\r\n }\r\n\r\n if (iName < 0 && iWkn < 0) {\r\n // * Key does not lead to a known Stock\r\n if (verbose) {\r\n System.out.println(\"Key \\\"\" + paramKey + \"\\\" not found\");\r\n }\r\n } else if (iName < 0 || iWkn < 0) {\r\n // Arrays are inconsistent\r\n System.out.println(\"/!\\\\ FATAL ERROR: INTERNAL ARRAYS ARE INCONSISTENT /!\\\\\");\r\n } else {\r\n if (verbose) {\r\n System.out.println(\"Stock \" + stocksByName[iName].toString() + \" will be deleted\");\r\n }\r\n if (stocksByName[iName] != null && stocksByName[iName].equals(stocksByWkn[iWkn])) {\r\n // if both Stocks (the one found by Name and the other one found by Wkn) are really the same\r\n result = stocksByName[iName];\r\n // delete by replacing Stocks with DELETED_OBJECT place holder to\r\n // not break the search chain wich uses square exploration\r\n stocksByName[iName] = DELETED_OBJECT;\r\n stocksByWkn[iWkn] = DELETED_OBJECT;\r\n used--;\r\n load = (double) used / size;\r\n } else {\r\n // well, fuck?\r\n System.exit(-1);\r\n }\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "a7a5f2cea511527914997d567325e7cb", "score": "0.5092029", "text": "@Test\n public void\n itReturnsUsagesForSubComponentWhenSubComponentInstalledAndRemovedFromSameEngineAndEngineHasUsagesAfterEachSubComponentInstallations() {\n\n final int lDayCount = 30;\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n final Date lSubCompRemovalFromTrkDate = DateUtils.addDays( lTrkInstallDate, 2 );\n final Date lUsageDateBeforeRemovalOfSubCompFromTrk =\n DateUtils.addDays( lSubCompRemovalFromTrkDate, -1 );\n\n final Date lAnotherTrkInstallDate = DateUtils.addDays( lTrkInstallDate, 5 );\n final Date lSubCompRemovalFromAnotherTrkDate = DateUtils.addDays( lAnotherTrkInstallDate, 2 );\n\n final Date lUsageDateBeforeRemovalOfSubCompFromAnotherTrk =\n DateUtils.addDays( lSubCompRemovalFromAnotherTrkDate, -1 );\n\n // Create engine\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Another TRK inventory\n final InventoryKey lAnotherTrkInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.setParent( lEngine );\n aTrackedInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n aTrackedInventory\n .addInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aInstallationRecord ) {\n aInstallationRecord.setInstallationDate( lTrkInstallDate );\n aInstallationRecord.setAssembly( lEngine );\n aInstallationRecord.setParent( lEngine );\n aInstallationRecord.setHighest( lAircraft );\n\n }\n } );\n\n }\n } );\n\n // Create Subcomponent\n final InventoryKey lSubCompInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n aTrackedInventory.addUsage( HOURS, SUB_COMP_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, SUB_COMP_CURRENT_CYCLES );\n aTrackedInventory.setParent( lAnotherTrkInventory );\n\n aTrackedInventory\n .addInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aInstallationRecord ) {\n aInstallationRecord.setInstallationDate( lAnotherTrkInstallDate );\n aInstallationRecord.setAssembly( lEngine );\n aInstallationRecord.setParent( lAnotherTrkInventory );\n aInstallationRecord.setHighest( lAircraft );\n }\n } );\n }\n } );\n\n // Create Trk inventory\n\n final InventoryKey lTrkInventory =\n Domain.createTrackedInventory( new DomainConfiguration<TrackedInventory>() {\n\n @Override\n public void configure( TrackedInventory aTrackedInventory ) {\n\n aTrackedInventory.addUsage( HOURS, TRK_CURRENT_HOURS );\n aTrackedInventory.addUsage( CYCLES, TRK_CURRENT_CYCLES );\n\n aTrackedInventory\n .addInstallationRecord( new DomainConfiguration<InstallationRecord>() {\n\n @Override\n public void configure( InstallationRecord aInstallationRecord ) {\n aInstallationRecord.setInstallationDate( lTrkInstallDate );\n aInstallationRecord.setAssembly( lEngine );\n aInstallationRecord.setParent( lEngine );\n aInstallationRecord.setHighest( lAircraft );\n aInstallationRecord.addSubInventory(\n new DomainConfiguration<InstalledInventoryInfo>() {\n\n @Override\n public void configure(\n InstalledInventoryInfo aInstalledInventoryInfo ) {\n\n // This Trk is auto set as the parent for the sub\n // component by the builders\n aInstalledInventoryInfo.setInventory( lSubCompInventory );\n aInstalledInventoryInfo.setAssembly( lEngine );\n aInstalledInventoryInfo.setHighest( lAircraft );\n }\n } );\n }\n } );\n\n aTrackedInventory.addRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n\n aRemovalRecord.setRemovalDate( lSubCompRemovalFromTrkDate );\n aRemovalRecord.setHighest( lAircraft );\n aRemovalRecord.setAssembly( lEngine );\n aRemovalRecord.setParent( lEngine );\n\n aRemovalRecord\n .addSubInventory( new DomainConfiguration<RemovedInventoryInfo>() {\n\n @Override\n public void\n configure( RemovedInventoryInfo aRemovedInventoryInfo ) {\n aRemovedInventoryInfo.setInventory( lSubCompInventory );\n aRemovedInventoryInfo.setAssembly( lEngine );\n aRemovedInventoryInfo.setHighest( lAircraft );\n }\n } );\n }\n } );\n\n }\n } );\n\n Domain.createRemovalRecord( new DomainConfiguration<RemovalRecord>() {\n\n @Override\n public void configure( RemovalRecord aRemovalRecord ) {\n aRemovalRecord.setInventory( lSubCompInventory );\n aRemovalRecord.setRemovalDate( lSubCompRemovalFromTrkDate );\n aRemovalRecord.setHighest( lTrkInventory );\n aRemovalRecord.setParent( lTrkInventory );\n }\n } );\n\n // create a usage record for Engine with usage date between the install and removal of\n // Sub Component from Trk\n createUsageRecord( lEngine, lUsageDateBeforeRemovalOfSubCompFromTrk, UsageType.MXFLIGHT );\n\n // create a usage record for Engine with usage date between the install and removal\n // of Sub Component from Another Trk\n createUsageRecord( lEngine, lUsageDateBeforeRemovalOfSubCompFromAnotherTrk,\n UsageType.MXFLIGHT );\n\n QuerySet lUsageHistoryQs =\n executeUsageHistory( lSubCompInventory, lDayCount, USAGE_PARAM_LIST );\n\n // Assert\n assertEquals( \"Expected Row count should be 5\", 5, lUsageHistoryQs.getRowCount() );\n\n }", "title": "" }, { "docid": "46ceefb02a0e035c2e34dca63f19d215", "score": "0.5062193", "text": "@Test\n public void itReturnsUsageWhenThereIsUsageForComponent() {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final Date lUsageDate = DateUtils.addDays( lEngineInstallDate, 5 );\n\n final int lDayCount = 30;\n\n // Create usage\n UsageAdjustmentId lFlightUsageId =\n createUsageRecord( lEngine, lUsageDate, UsageType.MXFLIGHT );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // check\n // two rows should be returned - one for installation and another for MXFLIGHT\n assertEquals( \"Expected Row count should be 2\", 2, lUsageHistoryQs.getRowCount() );\n\n // retrieve flight usage record\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lFlightUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageId );\n\n // assert actual values of usage\n assertEquals( \"Incorrect cycles encountered for TSN\", TRK_CURRENT_CYCLES,\n lFlightUsage.get( lFlightUsageId ).get( CYCLE_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for Cycles\", USAGE_CYCLES_DELTA,\n lFlightUsage.get( lFlightUsageId ).get( CYCLE_DELTA ) );\n\n assertEquals( \"Incorrect hours encountered for TSN\", TRK_CURRENT_HOURS,\n lFlightUsage.get( lFlightUsageId ).get( HOUR_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for hours\", USAGE_HOURS_DELTA,\n lFlightUsage.get( lFlightUsageId ).get( HOUR_DELTA ) );\n\n }", "title": "" }, { "docid": "0cb92cd7def2bf99bc6cea92e4d33320", "score": "0.5061092", "text": "private void removeSubUda1() throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n Uda uda1 = Scenario.getSubUda1();\n uda1 = dm.getReference(Uda.class, uda1.getKey());\n uda1.getUdaDefinition().getUdas().size();\n dm.remove(uda1);\n dm.flush();\n return null;\n }\n });\n }", "title": "" }, { "docid": "2d98d2b5c81165235bfc8d24b8406e07", "score": "0.50537175", "text": "public void delete (CostEngineering costEngineering ){\n HashMap<Integer , Integer> minQuntity = costEngineering.getMinQuntity(); // <catalogid , quantity>\n try {\n for (Integer catalogid : minQuntity.keySet()) {\n //CostEngineeringDTO costEngineeringDTO = new CostEngineeringDTO(costEngineering , catalogid , minQuntity.get(catalogid) , newPrice.get(catalogid) );\n DeleteBuilder<CostEngineeringDTO,Void> deleteBuilder = dao.deleteBuilder();\n // only delete the rows on \"contract_id\" and \"branch_id\" and \"catalog_id\"\n deleteBuilder.where().eq(\"contract_id\", costEngineering.getContract_id()).and().eq(\"branch_id\" , costEngineering.getBranch_id()).and().eq(\"catalog_id\" , catalogid);\n deleteBuilder.delete();\n //System.err.println(String.format(\"[Deleting] %s\", costEngineeringDTO));\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "title": "" }, { "docid": "3ee8af390d7773007ad0eccbae977ab9", "score": "0.50243044", "text": "private void doRemoveEntry() {\n printEntryList();\n try {\n entryList.removeObservation(selectEntry());\n } catch (IndexOutOfBoundsException indexOutOfBoundsException) {\n System.err.println(\"This is out of the bounds of the list.\");\n }\n printEntryList();\n entryList.sortAndCountListByPhase();\n }", "title": "" }, { "docid": "b7a87fec65b8c050e98bfa161134e434", "score": "0.5003303", "text": "protected void cmdRemove() throws Exception{\n\t\t//Determinamos los elementos a eliminar. De cada uno sacamos el id y el timestamp\n\t\tVector entities = new Vector();\n\t\tStringTokenizer claves = new StringTokenizer(conectorParametro(\"idSelection\"), \"|\");\n\t\tStringTokenizer timestamps = new StringTokenizer(conectorParametro(\"timestamp\"), \"|\");\n\t\ttraza(\"MMG::Se van a borrar \" + claves.countTokens() + \" y son \" + conectorParametro(\"idSelection\"));\n\t\twhile(claves.hasMoreTokens() && timestamps.hasMoreTokens()){\n\t\t\tCarSoliEntrBloqData carSoliEntrBloq = new CarSoliEntrBloqData();\n\t\t\tcarSoliEntrBloq.setId(new Integer(claves.nextToken()));\n\t\t\t//carSoliEntrBloq.jdoSetTimeStamp(Long.parseLong(timestamps.nextToken()));\n\t\t\tentities.addElement(carSoliEntrBloq);\n\t\t}\n\t\t\n\t\t//Construimos el DTO para realizar la llamada\n\t\tVector datos = new Vector();\n\t\tMareDTO dto = new MareDTO();\n\t\tdto.addProperty(\"entities\", entities);\n\t\tdatos.add(dto);\n\t\tdatos.add(new MareBusinessID(BUSINESSID_REMOVE));\n\t\t\n\t\t//Invocamos la lógica de negocio\n\t\ttraza(\"MMG:: Iniciada ejecución Remove de entidad CarSoliEntrBloq\");\n\t\tDruidaConector conectorCreate = conectar(CONECTOR_REMOVE, datos);\n\t\ttraza(\"MMG:: Finalizada ejecución Remove de entidad CarSoliEntrBloq\");\n\n\t\t//metemos en la sesión las query para realizar la requery\n\t\tconectorParametroSesion(SESSION_ATTRIBUTE_LAST_QUERY, conectorParametro(VAR_LAST_QUERY_TO_SESSION));\n\t\t\n\t\t//Redirigimos a la LP de StartUp con la acción de StartUp y requery\n\t\tconectorAction(\"CarSoliEntrBloqLPStartUp\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ORIGEN, \"menu\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ACCION, ACCION_REMOVE);\n\t\tconectorActionParametro(VAR_PERFORM_REQUERY, \"true\");\n\t}", "title": "" }, { "docid": "882f8624cd60e5e85ede148423d66d1c", "score": "0.4979748", "text": "int deleteByExample(EvSubmmitterExample example);", "title": "" }, { "docid": "a6d63afa40f6be0b0821ecfd3853a6fc", "score": "0.49607033", "text": "private void removeFirst() {\n try {\n GlucopredData firstData = realm.where(GlucopredData.class).findAllSorted(\"timestamp\").first();\n\n realm.beginTransaction();\n firstData.removeFromRealm();\n realm.commitTransaction();\n\n //RealmResults<GlucopredData> results2 = realm.where(GlucopredData.class).findAll();\n } catch(Exception ex){\n }\n }", "title": "" }, { "docid": "fa7a58d594131e6daf369b5a6c67cb1e", "score": "0.4940738", "text": "@Test\n public void itReturnTsnDeltaInEditInventoryRecord() throws Exception {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n final Date lUsageDate = DateUtils.addDays( lEngineInstallDate, 5 );\n\n final int lDayCount = 30;\n\n // Create usage\n UsageAdjustmentId lFlightUsageId =\n createUsageRecord( lEngine, lUsageDate, UsageType.MXCORRECTION );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lEngine, lDayCount, USAGE_PARAM_LIST );\n\n // check\n // two rows should be returned - one for installation and another for MXFLIGHT\n assertEquals( \"Expected Row count should be 1\", 1, lUsageHistoryQs.getRowCount() );\n\n // retrieve flight usage record\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lFlightUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageId );\n\n // assert actual values of usage\n assertEquals( \"Incorrect cycles encountered for TSN\", USAGE_CYCLES,\n lFlightUsage.get( lFlightUsageId ).get( CYCLE_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for Cycles\", USAGE_CYCLES_DELTA,\n lFlightUsage.get( lFlightUsageId ).get( CYCLE_DELTA ) );\n\n assertEquals( \"Incorrect hours encountered for TSN\", USAGE_HOURS,\n lFlightUsage.get( lFlightUsageId ).get( HOUR_TSN ) );\n\n assertEquals( \"Incorrect delta encountered for hours\", USAGE_HOURS_DELTA,\n lFlightUsage.get( lFlightUsageId ).get( HOUR_DELTA ) );\n }", "title": "" }, { "docid": "f6c31cebced935bfca9ff03e36680d0d", "score": "0.48971045", "text": "protected void cmdRemove() throws Exception{\n\t\t//Determinamos los elementos a eliminar. De cada uno sacamos el id y el timestamp\n\t\tVector entities = new Vector();\n\t\tStringTokenizer claves = new StringTokenizer(conectorParametro(\"idSelection\"), \"|\");\n\t\tStringTokenizer timestamps = new StringTokenizer(conectorParametro(\"timestamp\"), \"|\");\n\t\ttraza(\"MMG::Se van a borrar \" + claves.countTokens() + \" y son \" + conectorParametro(\"idSelection\"));\n\t\twhile(claves.hasMoreTokens() && timestamps.hasMoreTokens()){\n\t\t\tZonRegioData zonRegio = new ZonRegioData();\n\t\t\tzonRegio.setId(new Integer(claves.nextToken()));\n\t\t\t//zonRegio.jdoSetTimeStamp(Long.parseLong(timestamps.nextToken()));\n\t\t\tentities.addElement(zonRegio);\n\t\t}\n\t\t\n\t\t//Construimos el DTO para realizar la llamada\n\t\tVector datos = new Vector();\n\t\tMareDTO dto = new MareDTO();\n\t\tdto.addProperty(\"entities\", entities);\n\t\tdatos.add(dto);\n\t\tdatos.add(new MareBusinessID(BUSINESSID_REMOVE));\n\t\t\n\t\t\n\t\t\n\t\t//Invocamos la lógica de negocio\n\t\ttraza(\"MMG:: Iniciada ejecución Remove de entidad ZonRegio\");\n\t\tDruidaConector conectorCreate = conectar(CONECTOR_REMOVE, datos);\n\t\ttraza(\"MMG:: Finalizada ejecución Remove de entidad ZonRegio\");\n\t\t\n\t\t\n\n\t\t//metemos en la sesión las query para realizar la requery\n\t\tconectorParametroSesion(SESSION_ATTRIBUTE_LAST_QUERY, conectorParametro(VAR_LAST_QUERY_TO_SESSION));\n\t\t\n\t\t//Redirigimos a la LP de StartUp con la acción de StartUp y requery\n\t\tconectorAction(\"ZonRegioLPStartUp\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ORIGEN, \"menu\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ACCION, ACCION_REMOVE);\n\t\tconectorActionParametro(VAR_PERFORM_REQUERY, \"true\");\n\t}", "title": "" }, { "docid": "067f7c617ac5858c3fa558468f661f4b", "score": "0.48555297", "text": "long removeEnergy(long remove, ActionType actionType);", "title": "" }, { "docid": "06c10a32fa215e2c713784614578823f", "score": "0.48523855", "text": "@Override\r\n\tprotected void executeRemove (final String requestId, final DSRequest request, final DSResponse response) {\n\t JavaScriptObject data = request.getData ();\r\n\t final ListGridRecord rec = new ListGridRecord (data);\r\n\t Periodo testRec = new Periodo ();\r\n\t copyValues (rec, testRec);\r\n\t PeriodoGwtRPCDSServiceAsync service = GWT.create (PeriodoGwtRPCDSService.class);\r\n\t service.remove (testRec, new AsyncCallback<Object> () {\r\n\t public void onFailure (Throwable caught) {\r\n\t response.setStatus (RPCResponse.STATUS_FAILURE);\r\n\t processResponse (requestId, response);\r\n\t }\r\n\t public void onSuccess (Object result) {\r\n\t ListGridRecord[] list = new ListGridRecord[1];\r\n\t // We do not receive removed record from server.\r\n\t // Return record from request.\r\n\t list[0] = rec;\r\n\t response.setData (list);\r\n\t processResponse (requestId, response);\r\n\t }\r\n\t });\r\n\t}", "title": "" }, { "docid": "1ffa79f9eba2a5ecaa1881c57c80d58b", "score": "0.48196918", "text": "private void filterSubsetComponents (RecognizedCloudEntity recognizedCloudEntity) {\n List<IWeightedEntity> requiredRecognitionEntities = new ArrayList<IWeightedEntity>(1);\n Map<Long, CloudComponent> notRequiredComps = new HashMap<Long, CloudComponent>(1);\n List<Long> invalidCompIds = new ArrayList<Long>(1);\n\n for (Entry<Long, CloudComponent> entry : recognizedCloudEntity.getCloudComponentInfoMap().entrySet()) {\n if (entry.getValue().isCloudComponentRequired()) {\n requiredRecognitionEntities.addAll(entry.getValue().getRecognitionEntities());\n } else {\n notRequiredComps.put(entry.getKey(), entry.getValue());\n }\n }\n // If required components are empty, then can't filter anything hence return\n if (CollectionUtils.isEmpty(requiredRecognitionEntities)) {\n return;\n }\n\n // Get all the positions of the required component recognition entities\n TreeSet<Integer> requiredRecsPositions = new TreeSet<Integer>();\n for (IWeightedEntity weightedEntity : requiredRecognitionEntities) {\n requiredRecsPositions.addAll(((RecognitionEntity) weightedEntity).getReferedTokenPositions());\n }\n\n // Check if the not required component recognition entity is subset of the required component recognition\n // entity(ies) positions\n // then add them to the remove list\n for (Entry<Long, CloudComponent> entry : notRequiredComps.entrySet()) {\n CloudComponent notRequiredComp = entry.getValue();\n List<IWeightedEntity> recEnList = notRequiredComp.getRecognitionEntities();\n List<IWeightedEntity> entitiesToRemove = new ArrayList<IWeightedEntity>(1);\n for (IWeightedEntity weightedEntity : recEnList) {\n ReferedTokenPosition entityRtp = new ReferedTokenPosition(((RecognitionEntity) weightedEntity)\n .getReferedTokenPositions());\n if (requiredRecsPositions.containsAll(entityRtp.getReferedTokenPositions())) {\n entitiesToRemove.add(weightedEntity);\n }\n }\n\n // Check if not required component itself is invalid i.e. when all recognition entities of the component are\n // present in the entities to removed list else remove only those invalid entities\n if (!CollectionUtils.isEmpty(entitiesToRemove) && entitiesToRemove.containsAll(recEnList)) {\n invalidCompIds.add(entry.getKey());\n } else if (!CollectionUtils.isEmpty(entitiesToRemove)) {\n recognizedCloudEntity.getRecognitionEntities().removeAll(entitiesToRemove);\n notRequiredComp.getRecognitionEntities().removeAll(entitiesToRemove);\n }\n }\n\n // Clean up the invalid components info\n for (Long compId : invalidCompIds) {\n recognizedCloudEntity.getCloudComponentInfoMap().remove(compId);\n recognizedCloudEntity.getRecognitionEntities()\n .removeAll(notRequiredComps.get(compId).getRecognitionEntities());\n }\n\n }", "title": "" }, { "docid": "e84842ecb52a7278d88c072d0107df4f", "score": "0.48094407", "text": "@Test\n public void testRemoveRunway() {\n Calculator calc2 = new Coordinator();\n\n Airport airport = new Airport(\"Airport 1\");\n Runway runway = new Runway('l',5,5d,5d,5d,5d,5d,5d,5d,\"Runway1\",airport,5000);\n\n calc2.addAirport(airport);\n\n calc2.addRunway(runway);\n calc2.removeRunway(airport.getID(),runway);\n\n assertEquals(0,calc2.getAirports().get(0).getRunways().size());\n }", "title": "" }, { "docid": "d9698f7710edc7dc367357a352501988", "score": "0.48030627", "text": "Optional<Set<File>> getRemovedProducts(CompileAnalysis previousAnalysis);", "title": "" }, { "docid": "285d207a65d964b092c87539db2a7ebc", "score": "0.4792191", "text": "void updateRemove(String eventId, SortedSet<Timestamp[]> timeDuration);", "title": "" }, { "docid": "a38772f3c0db46ad3209ae2d964136cd", "score": "0.47919455", "text": "@Test\n public void itReturnsMultipleUsagesWhenThereAreUsagesForComponent() {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final Date lUsageDate = DateUtils.addDays( lEngineInstallDate, 5 );\n\n final int lDayCount = 30;\n\n // Create 2 usage records\n createUsageRecord( lEngine, lUsageDate, UsageType.MXFLIGHT );\n\n createUsageRecord( lEngine, DateUtils.addDays( lUsageDate, 1 ), UsageType.MXACCRUAL );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n // 3 rows returned: one installation record and 2 usage records\n assertEquals( \"Expected Row count should be 3\", 3, lUsageHistoryQs.getRowCount() );\n\n }", "title": "" }, { "docid": "6af3cea327ba756d8a369cad53e1dc84", "score": "0.47725695", "text": "private void removeTraceabilityDataFromDB() throws IncosistentInfoFoundOnDB\n {\n api = new TraceabilityDataAwaitingValidationRepositoryAPI(api);\n try\n {\n api.remove(traceabilityDataInfo);\n } catch (ObjectWithGivenKeyNotFoundOnBlockchainDB objectWithGivenKeyNotFoundOnBlockchainDB)\n {\n throw new IncosistentInfoFoundOnDB(\"object not found when trying to delete the info on the DB in order to switch state\");\n }\n }", "title": "" }, { "docid": "c965176f6061e60f5c98d81b3715d377", "score": "0.47662067", "text": "@Test\n public void itReturnsPreviousTSNValueCorrectlyWhenThereAreMultipleUsagesForComponent() {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final Date lUsageDate = DateUtils.addDays( lEngineInstallDate, 5 );\n\n final int lDayCount = 30;\n\n // Create 2 usage records\n UsageAdjustmentId lFlightUsageRecordId =\n createUsageRecord( lEngine, lUsageDate, UsageType.MXFLIGHT );\n\n createUsageRecord( lEngine, DateUtils.addDays( lUsageDate, 1 ), UsageType.MXACCRUAL );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // retrieve flight usage record\n Map<UsageAdjustmentId, Map<String, BigDecimal>> lFlightUsage =\n retrieveUsage( lUsageHistoryQs, lFlightUsageRecordId );\n\n BigDecimal lExpectedCycleTSN = TRK_CURRENT_CYCLES.subtract( USAGE_CYCLES_DELTA );\n BigDecimal lExpectedHourTSN = TRK_CURRENT_HOURS.subtract( USAGE_HOURS_DELTA );\n\n // Assert that previous usage's TSN calculated correctly\n assertEquals( \"Incorrect cycles encountered for TSN\", lExpectedCycleTSN,\n lFlightUsage.get( lFlightUsageRecordId ).get( CYCLE_TSN ) );\n\n assertEquals( \"Incorrect hours encountered for TSN\", lExpectedHourTSN,\n lFlightUsage.get( lFlightUsageRecordId ).get( HOUR_TSN ) );\n\n }", "title": "" }, { "docid": "a7bac4c2aad8c3ee9c41fdf33bfd351f", "score": "0.47587162", "text": "@Override\n\t\t\tpublic void entryRemoved(EntryEvent<String, String> event) {\n\t\t\t\tSystem.out.println(\"Entry Removed :\" + event);\n\t\t\t\tSystem.out.println(\"Event Class is \" + event.getName() ) ; \n\t\t\t // System.out.println(\"Event Key is \" + event.getKey() ) ; \n\t\t\t // EntryView listEntView= hazelcastInstance.getMap(\"customers\").getEntryView( event.getKey());\n\t\t\t // System.out.println ( \"Listener number of hits : \" + listEntView.getHits() );\n\t\t\t}", "title": "" }, { "docid": "7084951a94ae7486ddc3d1410c0e85d6", "score": "0.47563457", "text": "void removingComponent();", "title": "" }, { "docid": "43b731d553a8907b640833f4aa9a6d84", "score": "0.47327834", "text": "@Test\r\n\tpublic void testRemoveSpecific() {\r\n\t\tq.removeSpecific(la);\r\n\t\tassertEquals(q.getSpecific(1), g);\t\t\r\n\t}", "title": "" }, { "docid": "b5c04275bb32a8d3dc804e24d180b526", "score": "0.4721438", "text": "void secondaryRemoveLeaseSchetFakts(com.hps.july.persistence.LeaseSchetFakt aLeaseSchetFakts) throws java.rmi.RemoteException;", "title": "" }, { "docid": "f8d905a7a5a29fd826fdea11b7b77e66", "score": "0.46957034", "text": "@Test\n public void itDoesNotReturnInstallRecordIfOutsideTimePeriod() throws Exception {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final int lDayCount = 13;\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // No records are within the DayCount\n assertEquals( \"No records should be visible\", 0, lUsageHistoryQs.getRowCount() );\n }", "title": "" }, { "docid": "489480a95210dfc29537836ebd17fce9", "score": "0.467806", "text": "int deleteByExample(AuxiliaryMaterialsStatisticDataDetailsDeliveryExample example);", "title": "" }, { "docid": "7d8b37ac87cbfe0534a51d38fe040c5c", "score": "0.46750838", "text": "public abstract void remove(int unit, long key);", "title": "" }, { "docid": "0021412b3a1d8a0afee883efea85cacd", "score": "0.46727186", "text": "public void removeVehicle() {\n AutomobileInv av = new AutomobileInv( );\n ArrayList cars = new ArrayList( );\n\n\n cars.remove(av.make);\n cars.remove(av.model);\n cars.remove(av.color);\n cars.remove(String.valueOf(av.year));\n cars.remove(String.valueOf(av.mileage));\n System.out.println(\"Vehicle Removed Successfully\");\n\n }", "title": "" }, { "docid": "bf8d9a1e50f9da362ab7e6d239b91542", "score": "0.46689376", "text": "@Test\n public void testRemoveCalculation() {\n Calculator calc2 = new Coordinator();\n\n calc2.addAirport(new Airport(\"Airport 1\"));\n calc2.addPlane(new Plane(\"Plane 1\"));\n calc2.addObstacle(new Obstacle(10d,\"Obstacle 1\"));\n calc2.addRunway(new Runway('l',5,5d,5d,5d,5d,5d,5d,5d,\"Runway1\",calc2.getAirports().get(0),5000));\n\n calc2.addCalculation(new Calculation(calc2.getAirports().get(0).getRunways().get(0),calc2.getPlanes().get(0),calc2.getObstacles().get(0),5d,5d));\n\n calc2.removeCalculation(calc2.getCalculations().get(0));\n\n assertEquals(0,calc2.getCalculations().size());\n\n }", "title": "" }, { "docid": "d2083a3a9853fbba2216cd2c12aca057", "score": "0.46609357", "text": "public void testRemoveComponent() throws ClientAssociationServiceException {\r\n\t\tbean.removeComponent(201, 22);\r\n\t\tList<Long> comps = bean.getComponentsByClient(22);\r\n\t\tassertEquals(\"the removeComponent are not properly implemented.\", 2,\r\n\t\t\t\tcomps.size());\r\n\t\tbean.removeComponent(2, 22);\r\n\t\tcomps = bean.getComponentsByClient(22);\r\n\t\tassertEquals(\"the removeComponent are not properly implemented.\", 1,\r\n\t\t\t\tcomps.size());\r\n\t\tassertTrue(\"the removeComponent are not properly implemented.\", comps\r\n\t\t\t\t.contains(Long.valueOf(3)));\r\n\t}", "title": "" }, { "docid": "6c047d7f8aae45cf3e3d81b2f7d68e34", "score": "0.46604332", "text": "@Override\n\t\tpublic void remove() {\n\n\t\t}", "title": "" }, { "docid": "6c047d7f8aae45cf3e3d81b2f7d68e34", "score": "0.46604332", "text": "@Override\n\t\tpublic void remove() {\n\n\t\t}", "title": "" }, { "docid": "424b1acadc56d57f8240511385cbddfd", "score": "0.46603253", "text": "private void remove(Vehicle vehicle) {\n int index = data.indexOf(vehicle);\n if(index != -1) {\n data.remove(index);\n notifyItemRemoved(index);\n }\n }", "title": "" }, { "docid": "6060579057afe41f01303563af0ad4bb", "score": "0.4648347", "text": "public void dependencyRemoved(org.openanzo.ontologies.system.Datasource source, org.openanzo.ontologies.system.Component oldValue);", "title": "" }, { "docid": "3ba88d3c2270e1f42a5851d9ff4dc463", "score": "0.46451893", "text": "@Override\n\tpublic void removeComponent(Product product ) {\n\t\t\n\t}", "title": "" }, { "docid": "9eab7db3dc9c7d6c0efd92861ad15b31", "score": "0.46439904", "text": "@Override\r\n\tpublic receiver deleteReceiver(String bic) {\n\t\tOptional<receiver> optReceiver = receiverRepo.findById(bic);\r\n\t\tif (optReceiver.isPresent()) {\r\n\t\t\treceiverRepo.deleteById(bic);\r\n\t\t\treturn receiverRepo.getById(bic);\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t\t \r\n\t}", "title": "" }, { "docid": "a3c29ab4d73db198d30b86564189b869", "score": "0.46334693", "text": "java.lang.String getRemovedParticipant(int index);", "title": "" }, { "docid": "ee566dc56ac078c8c474213f151f1bf0", "score": "0.4627956", "text": "@Override\n public void productRemoved(ProductRack productRack, Product product) {\n }", "title": "" }, { "docid": "7d22c57dc8e5431c556fd1f3cbfb9ed1", "score": "0.46270218", "text": "private void stopCyclicUpdateTagClientDataset(){\n if (executionEngine != null){\n if (flagRegistered) {\n executionEngine.unRegister(\"Client-OpcUaFctAddon-Module\", EXECUTION_ENGINE_NAME);\n executionEngine.unRegister(\"Client-OpcUaFctAddon-Module\", KEEPALIVE_ENGINE_NAME);\n logger.debug(\"stopCyclicUpdateTagClientDataset()> BasicExecutionEngine stopped\");\n flagRegistered = false;\n }\n }\n }", "title": "" }, { "docid": "37973bd1d258e7de3db824fd24a11e98", "score": "0.46249074", "text": "public void removeObjectFound(Triple<String,Observation,Integer> e) {\n\t\tString node=e.getLeft();\n\t\tObservation myObservation=e.getMiddle();\n\t\tInteger value=e.getRight();\n\t\t//List<Couple<String,List<Couple<Observation,Integer>>>>\n\t\t//je boucle sur les couples <String,List<Couple<Observation,Integer>>\n\t\tfor(int i=0;i<this.objetcsFound.size();i++) {\n\t\t\t//<Couple<String,List<Couple<Observation,Integer>>>\n\t\t\t//je recupere la liste de chaque couple\n\t\t\tString target=this.objetcsFound.get(i).getLeft();\n\t\t\tif(target==node) {\n\t\t\t\t//serach for the observation\n\t\t\t\tfor(int j=0;j<this.objetcsFound.get(i).getRight().size();j++) {\n\t\t\t\t\t// Couple<Observation,Integer>\n\t\t\t\t\tObservation obs=this.objetcsFound.get(i).getRight().get(j).getLeft();\n\t\t\t\t\tInteger val=this.objetcsFound.get(i).getRight().get(j).getRight();\n\t\t\t\t\tif(obs.equals(myObservation ) && val==value) {\n\t\t\t\t\t\t//we delete the observation that we picked ! \n\t\t\t\t\t\tCouple<Observation,Integer> coupleToRemove= this.objetcsFound.get(i).getRight().get(j);\n\t\t\t\t\t\tthis.objetcsFound.get(i).getRight().remove(coupleToRemove);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5918cb33884204e5cd37c14ede8281c5", "score": "0.46225426", "text": "public static void removePiece(ArrayList<Sculpture> sculptureArrayList, ArrayList<Painting> paintingArrayList, ArrayList<Collage> collageArrayList, ArrayList<Drawing> drawingArrayList, ArrayList<Print> printArrayList, ArrayList<PerformanceArt> performanceArtArrayList, ArrayList<Artist> artistArrayList) {\r\n System.out.println();\r\n System.out.println(\"------------------------- Entry Removal -------------------------\");\r\n System.out.println(\"Before we can remove a piece, we must locate it using the Find Service.\");\r\n System.out.println();\r\n String queryStr = findWork(sculptureArrayList, paintingArrayList, collageArrayList, drawingArrayList, printArrayList, performanceArtArrayList, artistArrayList);\r\n\r\n if (queryStr == \"none\") {\r\n System.out.println(\"Please select the remove function again and re-input your information\");\r\n System.out.println(\"In order to remove a piece, the system must have an exact information about the piece.\");\r\n System.out.println(\"If you need to find an exact last name or piece name\");\r\n System.out.println(\"use the 'Display Pieces' function to find the name of the piece you'd like to delete.\");\r\n return;\r\n }\r\n\r\n int spaceFind = queryStr.lastIndexOf(\" \");\r\n String targTitle = queryStr.substring(0, spaceFind);\r\n String targName = queryStr.substring(spaceFind + 1);\r\n\r\n if (targTitle.equalsIgnoreCase(\"title\")) {\r\n System.out.println(\"Please select the remove function again and re-input the title of the piece\");\r\n System.out.println(\"In order to remove a piece, the system must have an exact piece name\");\r\n System.out.println(\"If you need to find an exact name, use the 'Display Pieces' function to find\");\r\n System.out.println(\"the name of the piece you'd like to delete.\");\r\n return;\r\n } else if (targName.equalsIgnoreCase(\"artist\")) {\r\n System.out.println(\"Please select the remove function again and re-input the last name of the artist\");\r\n System.out.println(\"In order to remove a piece, the system must have an exact last name\");\r\n System.out.println(\"If you need to find an exact last name, use the 'Display Pieces' function to find\");\r\n System.out.println(\"the name of the piece you'd like to delete.\");\r\n return;\r\n }\r\n\r\n System.out.println();\r\n\r\n for (int i = 0; i < sculptureArrayList.size(); i++) {\r\n Sculpture sculpture = sculptureArrayList.get(i);\r\n if ((targTitle.equalsIgnoreCase(sculpture.getTitle())) && (targName.equalsIgnoreCase(sculpture.getArtist().getLastName()))) {\r\n sculptureArrayList.remove(i);\r\n System.out.println(sculpture.getTitle() + \" by \" + sculpture.getArtist().getArtistName() + \" has been deleted.\");\r\n return;\r\n }\r\n }\r\n\r\n for (int o = 0; o < paintingArrayList.size(); o++) {\r\n Painting painting = paintingArrayList.get(o);\r\n if ((targTitle.equalsIgnoreCase(painting.getTitle())) && (targName.equalsIgnoreCase(painting.getArtist().getLastName()))) {\r\n paintingArrayList.remove(o);\r\n System.out.println(painting.getTitle() + \" by \" + painting.getArtist().getArtistName() + \" has been deleted.\");\r\n return;\r\n }\r\n }\r\n\r\n for (int u = 0; u < collageArrayList.size(); u++) {\r\n Collage collage = collageArrayList.get(u);\r\n if ((targTitle.equalsIgnoreCase(collage.getTitle())) && (targName.equalsIgnoreCase(collage.getArtist().getLastName()))) {\r\n paintingArrayList.remove(u);\r\n System.out.println(collage.getTitle() + \" by \" + collage.getArtist().getArtistName() + \" has been deleted.\");\r\n return;\r\n }\r\n }\r\n\r\n for (int y = 0; y < drawingArrayList.size(); y++) {\r\n Drawing drawing = drawingArrayList.get(y);\r\n if ((targTitle.equalsIgnoreCase(drawing.getTitle())) && (targName.equalsIgnoreCase(drawing.getArtist().getLastName()))) {\r\n drawingArrayList.remove(y);\r\n System.out.println(drawing.getTitle() + \" by \" + drawing.getArtist().getArtistName() + \" has been deleted.\");\r\n return;\r\n }\r\n }\r\n\r\n for (int a = 0; a < drawingArrayList.size(); a++) {\r\n Print print = printArrayList.get(a);\r\n if ((targTitle.equalsIgnoreCase(print.getTitle())) && (targName.equalsIgnoreCase(print.getArtist().getLastName()))) {\r\n printArrayList.remove(a);\r\n System.out.println(print.getTitle() + \" by \" + print.getArtist().getArtistName() + \" has been deleted.\");\r\n return;\r\n }\r\n }\r\n\r\n for (int e = 0; e < performanceArtArrayList.size(); e++) {\r\n PerformanceArt performanceArt = performanceArtArrayList.get(e);\r\n if ((targTitle.equalsIgnoreCase(performanceArt.getTitle())) && (targName.equalsIgnoreCase(performanceArt.getArtist().getLastName()))) {\r\n performanceArtArrayList.remove(e);\r\n System.out.println(performanceArt.getTitle() + \" by \" + performanceArt.getArtist().getArtistName() + \" has been deleted.\");\r\n return;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3fa3769e8827b4472fa8b79a536541fc", "score": "0.4617936", "text": "public static Criteria forElementRemoved(PageComponent component) {\n return forGenericCriteria(CriteriaType.REMOVED, component);\n }", "title": "" }, { "docid": "867d62b996f1bbf4ea289a3ea025f484", "score": "0.4613942", "text": "@Override\n\tpublic Object remove(Object arg0) {\n\t\tif (arg0 != null && arg0 instanceof Entity) {\n\t\t\tEntity e = (Entity) arg0;\n\t\t\t//this should never break unless entities are being added from other than addScheduled(...). If an exception is thrown here \n\t\t\t//put a breakpoint, check the type of entity, and check that it is not added from somewhere else\n\t\t\tEntityType type = e.getType();\n\t\t\tint quantity = this.agentQuantity.get(type);\n\t\t\tthis.agentQuantity.put(type, quantity - 1);\n\t\t}\n\t\treturn super.remove(arg0);\n\t}", "title": "" }, { "docid": "dc34ac347e9e2ac6c92f0fe43478bc41", "score": "0.46127564", "text": "public E remove(E e)\n {\n return data.remove(e);\n }", "title": "" }, { "docid": "6595f08bb0bad9fee355ccd5e72b31c4", "score": "0.46125072", "text": "@Test\r\n public void testRemoveSalesDetail() throws RollbackFailureException, Exception {\r\n salesDetailsController.removeSalesDetail(2);\r\n SalesDetails details = salesDetailsController.findSalesDetails(2);\r\n\r\n assertThat(details.getRemoved()).isEqualTo(true);\r\n }", "title": "" }, { "docid": "3f5ec805d038621f0dbce9b99a942028", "score": "0.4610641", "text": "@Override\n\tpublic String remove() {\n\t\t// Store top queue from heap\n\t\tMyQueue<Patient> topQueue = heapdata.get(0);\n\t\t// Store next patient from top queue\n\t\tPatient removedPat = topQueue.dequeue();\n\t\t// If the top queue is empty, we need to get rid of the element\n\t\t// in the heap. Note: this ends up happening because we just\n\t\t// removed the last one in the line above\n\t\tif (topQueue.isEmpty()) {\n\t\t\t// Store last queue from heap\n\t\t\tMyQueue<Patient> lastQueue = heapdata.get(heapdata.size() - 1);\n\t\t\t// Remove top queue from hash\n\t\t\tqueuehash.remove(topQueue);\n\t\t\t// Move last queue into top spot and remove it\n\t\t\theapdata.set(0, lastQueue);\n\t\t\theapdata.remove(heapdata.size() - 1);\n\t\t\t// Trickle down (if the heap is not empty)\n\t\t\tif (heapdata.size() != 0) {\n\t\t\t\tthis.rebuildFromRemove(0);\n\t\t\t}\n\t\t}\n\t\t// Finally, return the removed Patient (in String form)\n\t\treturn removedPat.toString();\n\t}", "title": "" }, { "docid": "2d7430d9e32ecd09499c2e3d630429df", "score": "0.4609331", "text": "public void deleteProductFromCostEngineering (CatalogProduct product , CostEngineering costEngineering ){\n try {\n DeleteBuilder<CostEngineeringDTO,Void> deleteBuilder = dao.deleteBuilder();\n // only delete the rows on \"contract_id\" and \"branch_id\" and \"catalog_id\"\n deleteBuilder.where().eq(\"contract_id\", costEngineering.getContract_id()).and().eq(\"branch_id\" , costEngineering.getBranch_id()).and().eq(\"catalog_id\" , product.getCatalogID());\n deleteBuilder.delete();\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "title": "" }, { "docid": "f10f1b42b16b431f01ab8eb101ca7e21", "score": "0.45966786", "text": "@Test\n public void itDoesNotReturnAnyRecordsWhenThereIsNoUsagesForGivenTimePeriod() {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final Date lUsageDate = DateUtils.addDays( lEngineInstallDate, 5 );\n\n final int lDayCount = 5;\n\n // Create usage\n createUsageRecord( lEngine, lUsageDate, UsageType.MXFLIGHT );\n createUsageRecord( lTrkInventory, DateUtils.addDays( lUsageDate, 2 ),\n UsageType.MXCORRECTION );\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // No records are within the DayCount\n assertEquals( \"No records should be visible\", 0, lUsageHistoryQs.getRowCount() );\n\n }", "title": "" }, { "docid": "284838b657b468cb33cbaaf00fbb66dc", "score": "0.45963144", "text": "public void removeReturnedTicket(long lineId) {\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tFlightLine fl = session.get(FlightLine.class, lineId);\r\n\t\tSystem.out.println(\"fldao removereturned: \" + fl.getTickets().get(0));\r\n\t\tfor(Ticket ticket: fl.getTickets()) {\r\n\t\t\tFlight flight = session.get(Flight.class, ticket.getFlight().getSerialId());//find the flight\r\n\t\t\tflight.getTickets().remove(ticket); //remove from tiket list\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5ea10bbec37d6f9b60efebcd4d75bd2e", "score": "0.45934623", "text": "@Override\n\t\t\tpublic void remove() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "5ea10bbec37d6f9b60efebcd4d75bd2e", "score": "0.45934623", "text": "@Override\n\t\t\tpublic void remove() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "5ea61f739e52d0d23ef4647541c89083", "score": "0.45859146", "text": "private void deleteProducedArtifact() {\n\t\t// Fetch the index of the selected row in the TableView\n\t\tint theIndex = theProducedDetailList.getSelectionModel().getSelectedIndex();\n\t\t\n\t\t// If no row is selected, give a warning and ignore the request\n\t\tif (theIndex == -1) {\n\t\t\tAlert alert = new Alert(AlertType.WARNING, \"Delete is only valid when a row has been selected!\", ButtonType.OK);\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Updating the list\n\t\tupdatingTheList = true;\n\t\t\n\t\tshowTheContentChangedMessage();\n\t\t\n\t\t// If beyond the end of the list just return (This should never happen,\n\t\t// so we have not spent effort raising a warning.)\n\t\tObservableList<ECProducedItem> de = theProducedDetailList.getItems();\n\t\tif (theIndex > de.size()-1) return;\n\t\t\n\t\t// Save the name that is being removed\n\t\tString removedName = de.get(theIndex).getItem();\n\t\t\n\t\t// Remove the item from the TableView list, shift any below up.\n\t\tde.remove(theIndex);\n\t\t\n\t\t// Place the updated list back into the TableView\n\t\ttheProducedDetailList.setItems(de);\n\t\t\n\t\t// De-select the TableView so no entry is selected\n\t\ttheProducedDetailList.getSelectionModel().select(-1);\n\n\t\t// Add the deleted item back into the available list and update that comboBox\n\t\t// Get the index from the choice comboBox so we know which set of lists to update\n\t\tshiftBack(theProducedArtifact, removedName, artifactBaseSet, artifactsProducedAvailable, artifactsProducedSelected);\n\t\t\n\t\t// Done updating the list\n\t\tupdatingTheList = false;\n\n\t}", "title": "" }, { "docid": "e031bf17db4bcd9e4737c6b56957db74", "score": "0.4584426", "text": "private int remove (ComponentCore_Ptr comp) {}", "title": "" }, { "docid": "1f7c9282bd3643c91ffe70650f9bd761", "score": "0.45723736", "text": "private void removeFromDriverRecords(List<RentRecord> removedRecords) {\n\t\tremovedRecords.forEach(r->driverRecords.get(r.getLicenseId()).remove(r));\n\t\t\n\t}", "title": "" }, { "docid": "8e73cb781e5c27c3465ecec92a112a0c", "score": "0.45723265", "text": "public void endRemoved() throws DiffException;", "title": "" }, { "docid": "3e8ed29e54bec895c07b1ed99441d2aa", "score": "0.45619082", "text": "void removeFromPendingAus(String auId) throws Exception {\n \t\t //TODO: CMU...\n //\t PreparedStatement deletePendingAu =\n //\t\tsqlDbManager.prepareStatement(conn, DELETE_PENDING_AU_QUERY);\n //\n //\t try {\n //\t String pluginId = PluginManager.pluginIdFromAuId(auId);\n //\t String auKey = PluginManager.auKeyFromAuId(auId);\n //\t \n //\t deletePendingAu.setString(1, pluginId);\n //\t deletePendingAu.setString(2, auKey);\n //\t sqlDbManager.executeUpdate(deletePendingAu);\n //\t } catch (SQLException sqle) {\n //\t log.error(\"Cannot remove AU from pending table\", sqle);\n //\t log.error(\"auId = '\" + auId + \"'.\");\n //\t log.error(\"SQL = '\" + DELETE_PENDING_AU_QUERY + \"'.\");\n //\t throw sqle;\n //\t } finally {\n //\t SqlDbManager.safeCloseStatement(deletePendingAu);\n //\t }\n //\n //\t pendingAusCount = getEnabledPendingAusCount(conn);\n \t }", "title": "" }, { "docid": "2a42568f245eb0e0be2ae5fb0007472c", "score": "0.45598575", "text": "public Ticket remove(String key){\n lock();\n //prevents other treads from modifing data in the table \n List ll = this.map[hash(key)];\n size--;\n unlock();\n //now new opperations can be made\n return ll.remove(key);\n }", "title": "" }, { "docid": "513f4fb1cccd96b103dcfa9ccbdb7dc7", "score": "0.4553064", "text": "public void eliminarSerieListener(SerieInventarioProducto serie)\r\n/* 158: */ {\r\n/* 159:186 */ serie.setEliminado(true);\r\n/* 160: */ \r\n/* 161:188 */ int i = 0;\r\n/* 162:189 */ for (SerieInventarioProducto s : (SerieInventarioProducto[])this.listaSerieProducto.toArray(new SerieInventarioProducto[this.listaSerieProducto.size()]))\r\n/* 163: */ {\r\n/* 164:190 */ if (s.getRowKey() == serie.getRowKey()) {\r\n/* 165:191 */ this.listaSerieProducto.remove(i);\r\n/* 166: */ }\r\n/* 167:193 */ i++;\r\n/* 168: */ }\r\n/* 169:196 */ if (this.listaSerieProductoFiltrada != null)\r\n/* 170: */ {\r\n/* 171:197 */ i = 0;\r\n/* 172:198 */ for (SerieInventarioProducto s : (SerieInventarioProducto[])this.listaSerieProductoFiltrada.toArray(new SerieInventarioProducto[this.listaSerieProductoFiltrada.size()]))\r\n/* 173: */ {\r\n/* 174:199 */ if (s.getRowKey() == serie.getRowKey()) {\r\n/* 175:200 */ this.listaSerieProductoFiltrada.remove(i);\r\n/* 176: */ }\r\n/* 177:202 */ i++;\r\n/* 178: */ }\r\n/* 179: */ }\r\n/* 180: */ }", "title": "" }, { "docid": "85bc90aeb3d80da3749e966448d062d7", "score": "0.4548378", "text": "@Override\r\n\tpublic void removeEntity() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d8b4ea1172f31bf2f5a4875e35b1e97e", "score": "0.45408836", "text": "public void testRemoveAirport() {\n Calculator calc2 = new Coordinator();\n\n Airport airport = new Airport(\"Airport 1\");\n\n calc2.addAirport(airport);\n calc2.removeAirport(airport);\n\n assertEquals(0,calc.getAirports().get(0));\n\n }", "title": "" }, { "docid": "ae2423297cccd4a0aed8d1ae212b48d0", "score": "0.45402366", "text": "public String deleteEntity(final String line) {\n\n logger.trace(\"Serv start delete line.\");\n\n int removeId = Integer.parseInt(line.trim());\n\n logger.trace(removeId);\n RepositoryFactory repositoryFactory = RepositoryFactory.getInstance();\n TransportRepository transportRepository =\n repositoryFactory.getRepository();\n String result = \"\";\n try {\n result = transportRepository.delete(removeId);\n result = result + \" from line \" + line\n + \" - successfully removed.\";\n } catch (Exception e) {\n logger.error(\"line not found\", e);\n result = \"Line №\" + line + \"don't found.\";\n }\n logger.trace(result);\n return result;\n }", "title": "" }, { "docid": "afebfe076db42b299ebad51148b78b16", "score": "0.45364538", "text": "static String m7336h() {\n StringBuilder sb = new StringBuilder(\"DELETE FROM workspec WHERE state IN (2, 3, 5) AND (period_start_time + minimum_retention_duration) < \");\n sb.append(m7338n());\n sb.append(\" AND (SELECT COUNT(*)=0 FROM dependency WHERE prerequisite_id=id AND work_spec_id NOT IN (SELECT id FROM workspec WHERE state IN (2, 3, 5)))\");\n return sb.toString();\n }", "title": "" }, { "docid": "9a87bcb6a4ad26113872a3469a96d6d5", "score": "0.4528926", "text": "@Override\n public void remove( ExpressionAnalysisResultSet resultSet ) {\n Session session = this.getSessionFactory().getCurrentSession();\n session.flush();\n\n // Remove results - Not using DifferentialExpressionResultDaoImpl.remove() for speed\n {\n int contrastsDone = 0;\n int resultsDone = 0;\n\n AbstractDao.log.info( \"Bulk removing dea results...\" );\n\n // Delete contrasts\n //language=MySQL\n final String nativeDeleteContrastsQuery =\n \"DELETE c FROM CONTRAST_RESULT c, DIFFERENTIAL_EXPRESSION_ANALYSIS_RESULT d\"\n + \" WHERE d.RESULT_SET_FK = :rsid AND d.ID = c.DIFFERENTIAL_EXPRESSION_ANALYSIS_RESULT_FK\";\n SQLQuery q = session.createSQLQuery( nativeDeleteContrastsQuery );\n q.setParameter( \"rsid\", resultSet.getId() );\n contrastsDone += q.executeUpdate(); // cannot use the limit clause for this multi-table remove.\n\n // Delete AnalysisResults\n //language=MySQL\n String nativeDeleteARQuery = \"DELETE d FROM DIFFERENTIAL_EXPRESSION_ANALYSIS_RESULT d WHERE d.RESULT_SET_FK = :rsid \";\n q = session.createSQLQuery( nativeDeleteARQuery );\n q.setParameter( \"rsid\", resultSet.getId() );\n resultsDone += q.executeUpdate();\n\n AbstractDao.log.info( \"Deleted \" + contrastsDone + \" contrasts, \" + resultsDone + \" results. Flushing...\" );\n }\n\n // clear manually removed result sets\n resultSet.setResults( new HashSet<>() );\n\n // Remove result set\n AbstractDao.log.info( \"Removing result set \" + resultSet.getId() );\n super.remove( resultSet );\n flush();\n }", "title": "" }, { "docid": "9bf4be93ab46380f1a92959673a897de", "score": "0.4528309", "text": "public void removeEmotionRecord(EmotionRecord er) {\n EmotionRecordListController.getEmotionRecordList().removeEmotionRecord((er));\n Toast.makeText(EmotionRecordHistoryActivity.this,\n \"Selected record was deleted successfully!\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "9bc454f1f6f495df716566b5c128024f", "score": "0.45245355", "text": "@Test\n public void testRemoveSensor() {\n assertEquals(\"Sensor Removed\", dataStore.removeSensor(\"CS104\"));\n }", "title": "" }, { "docid": "9ad77690569fd7c739797653385d5095", "score": "0.4520742", "text": "private void removeFromDatabase() {\r\n\t\t// determine type of the object\r\n\t\tif (removedObject instanceof Employee) {\r\n\t\t\tcontroller.deleteEmployee((Employee) removedObject);\r\n\t\t} else if (removedObject instanceof DrivingShift) {\r\n\t\t\tcontroller.deleteShift((DrivingShift) removedObject);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0907ff10cd84c781b8c68bacdf16a5bc", "score": "0.45195326", "text": "public void onRemoveEntryByString(String string);", "title": "" }, { "docid": "7ca968df32daddd60335019e6fe55777", "score": "0.45167825", "text": "public Tetromino remove() {\r\n Tetromino output = queue.poll();\r\n if(queue.size() < 7)\r\n regenerateBag();\r\n return output;\r\n }", "title": "" }, { "docid": "f04b2a7a4ba97cb4e1aad78ddb5b7680", "score": "0.4512297", "text": "public TS removeOrc9_DateTimeOfTransaction(int rep) throws HL7Exception { \r\n return (TS) super.removeRepetition(9, rep);\r\n }", "title": "" }, { "docid": "99613c8597cdf8d31e3e8b101913da75", "score": "0.45106247", "text": "public void primaryTraceRemoved() {\n\t\t\n\t}", "title": "" }, { "docid": "41f113e6d41981869cbc29368317a10b", "score": "0.45077688", "text": "public V remove(Object key) {\n/* 120 */ this.map.removeItem(COSName.getPDFName((String)key));\n/* 121 */ return this.actuals.remove(key);\n/* */ }", "title": "" }, { "docid": "2b8f76de9938795a88d235d029730efb", "score": "0.45061904", "text": "public void removedFromEngine(Engine engine) {}", "title": "" }, { "docid": "e4961ab810d1c6c1571235dcd48ce15b", "score": "0.45026115", "text": "void unsubscribe(String marketPairs);", "title": "" }, { "docid": "e6f1c9131e7bf4de6648e5496e81620e", "score": "0.4502255", "text": "public void removeFromHistory(List<RegInfo> history);", "title": "" }, { "docid": "6325401785b052793c1b426334c2184e", "score": "0.45022002", "text": "@Test\n public void itDoesNotReturnInstallRecordsForAssemblyToAircraft() throws Exception {\n\n final Date lEngineInstallDate = DateUtils.addDays( new Date(), -15 );\n\n final Date lTrkInstallDate = DateUtils.addDays( lEngineInstallDate, 1 );\n\n final InventoryKey lEngine = createEngine( lEngineInstallDate );\n\n // Create Aircraft with Engine\n final InventoryKey lAircraft = Domain.createAircraft( new DomainConfiguration<Aircraft>() {\n\n @Override\n public void configure( Aircraft aAircraft ) {\n aAircraft.addUsage( HOURS, ACFT_CURRENT_HOURS );\n aAircraft.addUsage( CYCLES, ACFT_CURRENT_CYCLES );\n aAircraft.addEngine( lEngine );\n }\n } );\n\n // Create Trk Inventory\n final InventoryKey lTrkInventory = createTrkInventory( lAircraft, lEngine, lTrkInstallDate );\n\n final int lDayCount = 20;\n\n // run query\n QuerySet lUsageHistoryQs = executeUsageHistory( lTrkInventory, lDayCount, USAGE_PARAM_LIST );\n\n // Two records are within DayCount, but one is for the installation of the assembly to the\n // aircraft\n assertEquals( \"One Installation record should be visible\", 1, lUsageHistoryQs.getRowCount() );\n lUsageHistoryQs.next();\n assertEquals( \"Expected Installation record\", INSTALLATION,\n lUsageHistoryQs.getString( \"display_name\" ) );\n }", "title": "" }, { "docid": "828730862e16c4d9db8c229a75064c4f", "score": "0.45016086", "text": "public void sensorRemoved(Sensor sensor);", "title": "" }, { "docid": "8f2903b142ba54e07ac1d00cafcfbf62", "score": "0.44946018", "text": "public void removeByTemplateID(int tID, int count)\n {\n ArrayList<GameObject> list=new ArrayList<GameObject>();\n\n list.addAll(objects.values());\n\n ArrayList<GameObject> remove=new ArrayList<GameObject>();\n int tempCount=count;\n\n //on verifie pour chaque objet\n for(GameObject obj : list)\n {\n //Si mauvais TemplateID, on passe\n if(obj.getTemplate().getId()!=tID)\n continue;\n\n if(obj.getQuantity()>=count)\n {\n int newQua=obj.getQuantity()-count;\n if(newQua>0)\n {\n obj.setQuantity(newQua);\n if(isOnline)\n SocketManager.GAME_SEND_OBJECT_QUANTITY_PACKET(this,obj);\n }\n else\n {\n //on supprime de l'inventaire et du Monde\n objects.remove(obj.getGuid());\n Main.world.removeGameObject(obj.getGuid());\n //on envoie le packet si connect�\n if(isOnline)\n SocketManager.GAME_SEND_REMOVE_ITEM_PACKET(this,obj.getGuid());\n }\n return;\n }\n else\n //Si pas assez d'objet\n {\n if(obj.getQuantity()>=tempCount)\n {\n int newQua=obj.getQuantity()-tempCount;\n if(newQua>0)\n {\n obj.setQuantity(newQua);\n if(isOnline)\n SocketManager.GAME_SEND_OBJECT_QUANTITY_PACKET(this,obj);\n }\n else\n remove.add(obj);\n\n for(GameObject o : remove)\n {\n //on supprime de l'inventaire et du Monde\n\n objects.remove(o.getGuid());\n\n Main.world.removeGameObject(o.getGuid());\n //on envoie le packet si connect�\n if(isOnline)\n SocketManager.GAME_SEND_REMOVE_ITEM_PACKET(this,o.getGuid());\n }\n }\n else\n {\n // on r�duit le compteur\n tempCount-=obj.getQuantity();\n remove.add(obj);\n }\n }\n }\n }", "title": "" }, { "docid": "0bb8d0d7d1248be089b34752c1cc6b32", "score": "0.44933698", "text": "@Override\n\t\tpublic void remove() {\n\t\t}", "title": "" }, { "docid": "e72c7b9e64b7fefdbd77cd81a1b192e3", "score": "0.4492406", "text": "public void removeDataQuality(DataQuality dataQuality, final IstSOSListener callback){\n\t\t\n\t\tMap<String, String> urlKeyMap = new HashMap<String, String>();\n\t\turlKeyMap.put(\"url\", this.server.getServerUrl());\n\t\turlKeyMap.put(\"name\", this.getName());\n\t\turlKeyMap.put(\"code\", String.valueOf(dataQuality.getDataQualityCode()));\n\t\t\n\t\tGson gson = new GsonBuilder().create();\n\t\tString data = gson.toJson(dataQuality);\n\n\t\tIstSOS.executeDelete(Requests.getUrl(Requests.Request.DATA_QUALITIES, urlKeyMap), data, new IstSOSListener(){\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(EventObject event) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Result..\");\n\t\t\t\t\n\t\t\t\tJsonObject json = (JsonObject) event.getObject();\n\t\t\t\t\n\t\t\t\tSystem.out.println(json.toString());\n\t\t\t\t\n\t\t\t\tString message = json.getAsString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(message.toString());\n\t\t\t\t\n\t\t EventObject eventObject = new EventObject(\n\t\t \t\tEvent.DATA_QUALITY_REMOVED, message);\n\t\t \n\t\t\t\tif(callback != null){\n\t\t\t\t\tcallback.onSuccess(eventObject);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onError(EventObject event) {\n\t\t\t\t// \n\t\t\t\t\n\t\t\t}\n\t\t}, this.server.getRealm());\n\t}", "title": "" }, { "docid": "233c0a0c39a0b4390367b8a4ee3e9698", "score": "0.44921318", "text": "@Test\n public void testRemovePlane() {\n Calculator calc2 = new Coordinator();\n\n Plane plane = new Plane(\"Plane \");\n\n calc2.addPlane(plane);\n calc2.removePlane(plane);\n\n assertEquals(0,calc.getPlanes().size());\n\n }", "title": "" }, { "docid": "f0029dc7ff77859b594fc22b0ae95a66", "score": "0.44909844", "text": "E removeLast();", "title": "" }, { "docid": "5acc14a06fe0459b5facef1c918d71bf", "score": "0.44903237", "text": "@Override\n public void entryRemoved(EntryEvent<String, Organization> event) {\n Organization organization = event.getValue();\n removeAllReferences(organization);\n }", "title": "" }, { "docid": "b447775fa23f78621aa6f7ea920a12d9", "score": "0.4489626", "text": "static void airlineTicketRemove(Airline airline, int ticketId) {\n Session session = getSessionFactory().openSession();\n session.beginTransaction();\n Ticket t = (Ticket) session.load(Ticket.class, ticketId);\n Airline a = (Airline) session.load(Airline.class, airline.getId());\n a.getList().remove(t);\n session.getTransaction().commit();\n session.close();\n System.out.println(\"The ticket \" + ticketId + \" has been returned back to our account\");\n }", "title": "" }, { "docid": "2bc20e9b2b0727061d2b4fe448d96332", "score": "0.44887614", "text": "int deleteByExample(HistoryExample example);", "title": "" }, { "docid": "5f85ee4812987315f6ebf790e5202e36", "score": "0.4487591", "text": "public E remove()\n {\n return data.removeFirst();\n }", "title": "" }, { "docid": "7f80b5ac9b5e43e04c2085ec60fedd0a", "score": "0.4482611", "text": "@Override\r\n public void remove(ArticleComponent articleComponent) {\n }", "title": "" }, { "docid": "2723622d2b1bfc97f57c38644c7d5d6b", "score": "0.44792217", "text": "public CE removeEnteringDevice(int rep) throws HL7Exception { \r\n return (CE) super.removeRepetition(18, rep);\r\n }", "title": "" }, { "docid": "5ca5f5deb53302bde2424b8284d2a72d", "score": "0.4477161", "text": "public void removeSearchedCurrentSpieler(int fkSpieler) {\n\t\ttry {\r\n\t\t\tcon = DBConnector.getConnected();\r\n\t\t\tStatement s = con.createStatement();\r\n\t\t\tString query = \"update currentSpieler set bool_play=0 where fkSpieler=\" + fkSpieler;\r\n\t\t\ts.execute(query);\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Error updating Data\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "07da3a8002e8dcc5cfec4485a9679f7e", "score": "0.44734186", "text": "@Test\n public void testRemove() {\n ArrayListImpl instance = new VehicleArrayListImpl();\n boolean expResult = false;\n boolean result = instance.remove(vehicle1);\n assertEquals(expResult, result);\n instance.add(vehicle1);\n instance.add(vehicle2);\n instance.add(vehicle3);\n expResult = true;\n result = instance.remove(vehicle1);\n assertEquals(expResult, result);\n instance.add(vehicle1);\n result = instance.remove(\"0212\");\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "8bc456ae4200a72627f928decd5e2326", "score": "0.4469843", "text": "protected void remove_internal(T data) {\n datalist.remove(data.getElasticID());\n doCalls();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "e67ec3236147bb6e6ec8a78d6a423ce5", "score": "0.0", "text": "public int getCount() {\n\t\treturn mlistData == null ? 0 : mlistData.size();\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.68002176", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6769489", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.6386922", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.6287329", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.6283629", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.6265152", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.6262988", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.62538177", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.6252656", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6200546", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.6147232", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.611178", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.6104965", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.61018884", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.60770625", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.6024395", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.6023624", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.6010486", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.59971493", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.59874135", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "d673691f42a5a36d5d7e5d4f81aec55e", "score": "0.59567183", "text": "@Override\n\tpublic void reveiller() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.5952113", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.59445894", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.59407693", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a94b5981fe7c5ead7e5156e8e7cb9cb5", "score": "0.59315324", "text": "@Override\r\n\tpublic void attribute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5927387", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.59262717", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5918087", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.59013426", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.58849895", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.5881909", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "a21e7f5bc4a152c3cd6818af1be8ca7f", "score": "0.5877803", "text": "@Override\n\tpublic void accionar() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.5876838", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "8dbedd9965a878a9a7db1c5deb6a28cd", "score": "0.5871888", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5838742", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5834908", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.58264196", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58237594", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.58043116", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "1a69d70e6e0ab03826da865edbaa2710", "score": "0.5802549", "text": "@Override\r\n public void init() {\n \r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.5795489", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.57932764", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.57931143", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "68ced9354b4e22b6351af0853a611a6c", "score": "0.57685226", "text": "@Override\n\tprotected void initDataReturn() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "4dad4a53c5b94a389679f4aa74f10e8b", "score": "0.576086", "text": "@Override\r\n\tprotected void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.57533413", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.57512337", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "791f5ad29d019a14317f5d7e2a069c65", "score": "0.57465565", "text": "@Override\n\tpublic void aprovar() {\n\n\t}", "title": "" }, { "docid": "60492bcc1b7f57299660c3da0f16ab25", "score": "0.57418126", "text": "@Override\n\tpublic void icmek() {\n\t\t\n\t}", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.5735176", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "a2125c0cb9324db88e7561e4a64c5e39", "score": "0.5734662", "text": "@Override\n\tpublic void etiquetas() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.5722859", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.57133764", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.5709887", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "2fbf66fc78447a45c3f7ecb3924ab4b4", "score": "0.57051754", "text": "@Override\n public void initValue() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5698954", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.56988037", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86084419dce04a98c3acda092fe2ae36", "score": "0.5674851", "text": "@Override\r\n\t\t\tpublic void refresh() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.566569", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.56625766", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.56487125", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "ce71f38a65a1456052420d8bdcb81b78", "score": "0.5647971", "text": "@Override\r\n\tprotected void reset()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.56434053", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.56416714", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "1f81bdf0bcfef346d61145fbc2986fa6", "score": "0.56412745", "text": "@Override\r\n public String getName() {\n return null;\r\n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5640882", "text": "public final void mo62452a() {\n }", "title": "" } ]
60e028c08034e685a610f75bab1e62fd
===================================================================================================================== =================================================== SAVE system config ================================================== =====================================================================================================================
[ { "docid": "4caef8a933e76dc404e2dd392f80538d", "score": "0.59826064", "text": "@Test\n\tpublic void testSystemConfigDriver() {\n\n\t\tSystem.out.println(\"===============================================================================================================\");\n\t\tSystem.out.println(\"========================================system config====================================================\");\n\t\tSystem.out.println(\"===============================================================================================================\\r\");\n\n\t\tObject testingData[][] = {\n\t\t\t{\n\t\t\t\t\"admin\", \"pene\", null, \"Correcta creacion system.\"\n\t\t\t}, {\n\t\t\t\t\"user1\", \"pene\", IllegalArgumentException.class, \"SAVE con otro rol.\"\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.testSystemConfigTemplate(super.getEntityId((String) testingData[i][0]), (String) testingData[i][1], (Class<?>) testingData[i][2], (String) testingData[i][3]);\n\t}", "title": "" } ]
[ { "docid": "90ca074ee27dcd62cd6904853529e04c", "score": "0.76256174", "text": "public void saveConfig() {\n this.configHelper.saveConfig();\n }", "title": "" }, { "docid": "a0450b17874683076c938567d8875850", "score": "0.7453375", "text": "public void saveConfig() {\n try {\n config.save(configFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "46d46ddb96692bcdf06fdf2e4fa49008", "score": "0.71982783", "text": "public String saveConfig() {\n\treturn null;\n }", "title": "" }, { "docid": "a3f3a8c4bc315decee45c00b07ca8a5c", "score": "0.7141113", "text": "public void saveConfig(Context context) {\n\n Storage storage = new Storage(context);\n Gson gson = new Gson();\n String sConfig = gson.toJson(this);\n storage.writeFile(\"config.txt\", sConfig);\n }", "title": "" }, { "docid": "1d6a2587385ba756361cde26ab88b85e", "score": "0.69154495", "text": "public void saveConfig() {\n try {\n File file = new File( Duel.getInstance().getDataFolder(), \"config.yml\" );\n FileConfiguration config = YamlConfiguration.loadConfiguration( file );\n\n config.set( \"setup\", this.setup );\n config.set( \"spawns.lobby\", this.lobbySpawn );\n config.set( \"spawns.first\", this.firstSpawn );\n config.set( \"spawns.second\", this.secondSpawn );\n config.set( \"spawns.spectator\", this.spectatorSpawn );\n\n config.save( file );\n Duel.info( \"Configuration file saved\" );\n } catch ( Exception exception ) {\n Duel.severe( \"Error while trying to save configuration file\" );\n exception.printStackTrace();\n }\n }", "title": "" }, { "docid": "42213a2d724de4e8b697f1253110d651", "score": "0.69095206", "text": "public void saveUpdatedParameters() {\n\n File configFile = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \".gbdx-config\");\n\n environment = getEnvOrSystemVar(\"ENVIRONMENT\", environment);\n\n if (configFile.exists() && configFile.canRead()) {\n try {\n Ini ini = new Ini();\n ini.setConfig(defaultConfig);\n ini.load(configFile);\n\n String configSection = CONFIG_SECTION_NAME;\n if( environment != null )\n configSection = environment;\n\n Ini.Section section = ini.get(configSection);\n\n if( section == null )\n section = ini.get(CONFIG_SECTION_NAME);\n\n //\n // only token and token expiration can be set here - only worry about those two\n //\n if( getAccessToken() != null ) {\n section.put(ACCESS_TOKEN_INI_NAME, getAccessToken());\n\n if (getAccessTokenExpiration() != null)\n section.put(ACCESS_TOKEN_EXPIRATION_INI_NAME,\n DateTimeFormatter.ISO_ZONED_DATE_TIME.format(getAccessTokenExpiration()));\n }\n\n ini.store(configFile);\n\n } catch (IOException ioe) {\n log.warn(\"can't open config file \\\"\" + configFile.getAbsolutePath() + \"\\\"\", ioe);\n }\n }\n }", "title": "" }, { "docid": "d54d55bd37a25bb39013241f51ab8371", "score": "0.6821553", "text": "public void saveConfig() {\n project.getFacet(SwitchYardFacet.class).writeSwitchYardConfig();\n }", "title": "" }, { "docid": "4ab4021d8285ca88170400e36c181106", "score": "0.6817664", "text": "public void saveData() {\n try {\n config.save(storeFile);\n } catch (IOException e) {\n logger.log(Level.SEVERE, Logger.GLOBAL_LOGGER_NAME + \" Could not save data due to an I/O error\", e);\n }\n }", "title": "" }, { "docid": "d8d14ce7136d3f25af4dfb1f9502aaac", "score": "0.6689082", "text": "private void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n File file = newXmlFile.getFile();\n\n if (file.getParentFile().exists() == false) {\n file.getParentFile().mkdirs();\n }\n\n try {\n jaxb.marshalToXmlFile(configXml, file.getAbsolutePath());\n newXmlFile.save();\n lf = newXmlFile;\n lf.addFileUpdatedObserver(this);\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n\n }", "title": "" }, { "docid": "4de19eb3a41433241c3b38e237089b82", "score": "0.66716576", "text": "public boolean saveConfig(String prp, String val) {\n \t\treturn false;\n \t}", "title": "" }, { "docid": "16a64b06d13ec3cb854061c4b08eb494", "score": "0.6657658", "text": "public void save() {\n try {\n fileConfig.save(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "606f2bb42fbcbc53a3723c7a5e5f766e", "score": "0.6642111", "text": "public static void saveAs() {\n\t\tsaveToFile(\"settings_saved_\" + savedConfig_counter+ \".xml\");\t\t\n\t\tsavedConfig_counter++;\t\t\n\t}", "title": "" }, { "docid": "33e874a6b7cc07f0cdada010216ace92", "score": "0.6627044", "text": "public static synchronized void saveInstance() throws Exception\r\n {\r\n if (appConfigurableInstance != null) {\r\n String path = makeAbsoluteCommonConfigPath(APP_CONFIG_FILE);\r\n savePropsToFile(path, appConfigurableInstance, \"Application System Control Properties\");\r\n }\r\n if (baseConfigurableInstance != null) {\r\n String path = makeAbsoluteCommonConfigPath(BASE_CONFIG_FILE);\r\n savePropsToFile(path, baseConfigurableInstance, \"Base System Control Properties\");\r\n }\r\n }", "title": "" }, { "docid": "4d7114685d069db42cdd2fb2c3681d16", "score": "0.66183823", "text": "public static void save() {\n try {\n conf.save(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0ddac06afb340ada96f504a524285fb2", "score": "0.66101784", "text": "private static void saveJLCSettings() {\n\t\ttry {\n\t\t\tString path = System.getProperty(\"user.dir\");\n\t\t\tFileOutputStream fos = new FileOutputStream(path + \"\\\\\" + \"settings\" + \".properties\");\n\t\t\tXMLEncoder xml = new XMLEncoder(fos);\n\t\t\txml.writeObject(Main.getJLCSettings());\n\t\t\txml.close();\n\t\t\tfos.close();\n\t\t\tCLIUtils.println(\"JLC Settings saved\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "105da03da6627a1d09527727e251a745", "score": "0.65936977", "text": "public void store() throws IOException {\n\t\tPrintWriter writer = new PrintWriter(CONFIG_FILE);\n\t\tString json = gson.toJson(config);\n\n\t\twriter.write(json);\n\t\twriter.close();\n\t}", "title": "" }, { "docid": "d246877c6cd28783d0da389510d394af", "score": "0.650677", "text": "public void save() {\n try {\n SimpleCommentedConfigurationNode out = SimpleCommentedConfigurationNode.root();\n this.configMapper.serialize(out);\n this.loader.save(out);\n } catch (ObjectMappingException | IOException e) {\n ProfessorProton.LOGGER.error(\"Failed to save config.\", e);\n }\n }", "title": "" }, { "docid": "99ae4253d620fb35ce8cc20987e2f6cc", "score": "0.6479317", "text": "private synchronized static void saveAll(){\n\t\tFile dbfile = new File(CONFIG_FILE_NAME);\n\n\t\tif (dbfile.exists() == false){\n\t\t\t//cannot file file, cannot save\n\t\t\tSystem.err.println(\"Error! Cannot save user file, cannot be found\");\n\t\t}\n\t\telse{\n\n\t\t\tString warning = \"## Server Configuration file ##\";\n\n\t\t\t//open file for overwriting\n\t\t\ttry {\n\t\t\t\tBufferedWriter userFile = new BufferedWriter(new FileWriter(dbfile, false));\n\n\t\t\t\tuserFile.write(warning + \"\\n\");\n\n\t\t\t\tfor (Entry<String,String> pair : properties.entrySet()){\n\t\t\t\t\tuserFile.write(pair.getKey() + DELIM + pair.getValue() + \"\\n\");\n\t\t\t\t}\n\n\t\t\t\tuserFile.flush();\n\t\t\t\tuserFile.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "66719b4f17850b1ba2fa4b80e2f2bca3", "score": "0.64431685", "text": "protected abstract void saveToConfiguration(Configuration config);", "title": "" }, { "docid": "3b7cb0c1632046167695cb93647e4db2", "score": "0.6415995", "text": "public void saveDefaultConfig() {\n this.saveResource(\"config.json\", false);\n }", "title": "" }, { "docid": "4ffe706c77d155b42a762e536f3fdb1d", "score": "0.64098483", "text": "public void saveConfig() {\n\t\ttry {\n\t\t\t\n\t\t\tif(!saveName.endsWith(\".txt\")){\n\t\t\t\tString newSaveName = (saveName + \".txt\");\n\t\t\t\tsaveName = newSaveName;\n\t\t\t}\n\t\t\tBufferedWriter textFile = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(saveName)));\n\t\t\t\n\t\t\t/*\n\t\t\t * Speichert die Werte in einem BufferedWriter und gibt gleichzeitig die Konfiguration\n\t\t\t * auf der Konsole aus.\n\t\t\t */\n\t\t\ttextFile.write(\"x=\"+controller.model.world.getSizeX()); \n\t\t\ttextFile.newLine(); \n\t\t\t\n\t\t\ttextFile.write(\"y=\"+controller.model.world.getSizeY()); \n\t\t\ttextFile.newLine(); \n\t\t\t\n\t\t\tif(controller.model.world.getInfinite() == false){\n\t\t\t\ttextFile.write(\"infinite=0\"); \n\t\t\t\ttextFile.newLine(); \n\t\t\t}else{\n\t\t\t\ttextFile.write(\"infinite=1\"); \n\t\t\t\ttextFile.newLine(); \n\t\t\t}\n\t\t\ttextFile.write(\"generation=\"+controller.model.world.getGeneration()); \n\t\t\ttextFile.newLine(); \n\t\t\t\n\t\t\tfor(int i=0; i<controller.model.world.getSizeX(); i++){\n\t\t\t\tfor(int j=0; j<controller.model.world.getSizeY(); j++){\n\t\t\t\t\tif (controller.model.world.cellIsAlive(i, j)==true){\n\t\t\t\t\t\ttextFile.write((i) + \",\" + (j)); textFile.newLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttextFile.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e7c45b86dea51061ea8fe6f3afdede72", "score": "0.6405852", "text": "private void saveSettings()\n {\n settingsSave.putBoolean(\"UseBLE\", appUseBLE);\n settingsSave.putBoolean(\"UseBT21\", appUseBT21);\n settingsSave.putBoolean(\"IgnoreJ1939\", appIgnoreJ1939);\n settingsSave.putBoolean(\"IgnoreJ1708\", appIgnoreJ1708);\n settingsSave.putBoolean(\"IgnoreOBD2\", appIgnoreOBD2);\n settingsSave.putBoolean(\"PerformanceMode\", appPerformanceMode);\n settingsSave.putBoolean(\"DisconnectedReboot\", appDisconnectedReboot);\n settingsSave.putInt(\"DisconnectedRebootInterval\", appDisconnectedRebootInterval);\n settingsSave.putBoolean(\"SendAllPackets\", appSendAllPackets);\n settingsSave.putBoolean(\"SecureDevice\", appSecureDevice);\n settingsSave.putBoolean(\"SecureAdapter\", appSecureAdapter);\n settingsSave.putBoolean(\"ConnectToLastAdapter\", appConnectToLastAdapter);\n settingsSave.putString(\"DeviceId\", appDeviceId);\n settingsSave.putString(\"AdapterId\", appAdapterId);\n settingsSave.putString(\"UserName\", appUserName);\n settingsSave.putString(\"Password\", appPassword);\n settingsSave.putInt(\"LedBrightness\", appLedBrightness);\n settingsSave.putInt(\"MinInterval\", appMinInterval);\n settingsSave.putInt(\"DiscoveryTimeout\", appDiscoveryTimeout);\n settingsSave.putInt(\"MaxConnectAttempts\", appMaxConnectAttempts);\n settingsSave.putInt(\"MaxReconnectAttempts\", appMaxReconnectAttempts);\n settingsSave.putInt(\"BluetoothRecycleAttempt\", appBluetoothRecycleAttempt);\n settingsSave.putInt(\"BleDisconnectWaitTime\", appBleDisconnectWaitTime);\n settingsSave.putBoolean(\"OptimizeDataRetrieval\", appOptimizeDataRetrieval);\n\n settingsSave.putBoolean(\"ELDStarted\", appELDStarted);\n settingsSave.putBoolean(\"SecureELD\", appSecureELD);\n settingsSave.putBoolean(\"RecordIFTA\", appRecordIFTA);\n settingsSave.putBoolean(\"RecordStats\", appRecordStats);\n settingsSave.putBoolean(\"AlignELD\", appAlignELD);\n settingsSave.putBoolean(\"AlignIFTA\", appAlignIFTA);\n settingsSave.putBoolean(\"AlignStats\", appAlignStats);\n settingsSave.putBoolean(\"StreamingELD\", appStreamingELD);\n settingsSave.putInt(\"RecordingMode\", appRecordingMode);\n settingsSave.putString(\"DriverId\", appDriverId);\n settingsSave.putString(\"ELDAdapterId\", appELDAdapterId);\n settingsSave.putFloat(\"ELDInterval\", appELDInterval); // minutes;\n settingsSave.putFloat(\"IFTAInterval\", appIFTAInterval); // minutes;\n settingsSave.putFloat(\"StatsInterval\", appStatsInterval); // minutes;\n\n settingsSave.commit();\n }", "title": "" }, { "docid": "56305d442877471b4ff0f19ef46637a1", "score": "0.6400069", "text": "private void writeConfiguration() {\n\n\t\tinDatei(config, listConfig);\n\t}", "title": "" }, { "docid": "e019834cdf2a01135ab6cb10ea2be712", "score": "0.6382666", "text": "@SuppressWarnings(\"deprecation\")\r\n\tpublic static void save() {\r\n\t\tFile cfgdir = host.getDataFolder();\r\n\t\tFile cfgfile = new File(cfgdir, \"tool.txt\");\r\n\t\ttry{\r\n\t\t\tif(cfgfile.exists()) cfgfile.mkdirs();\r\n\t\t\tFileOutputStream opener = new FileOutputStream(cfgfile);\r\n\t\t\ttoolprops.save(opener, \"This file stores which ids belong to which tools. Do not modify it manually!!\");\r\n\t\t\topener.close();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcatch(IOException ioexception){\r\n\t\t\thost.getServer().getLogger().fine(\"[SuperTool] Couldn't read tool.txt, skipping it!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0d3dce593fe7c94a6be37adae233a0ac", "score": "0.6379449", "text": "private void saveConfig() {\n\t\tString startTime = mStartTime.getText().toString();\n\t\tString stopTime = mStopTime.getText().toString();\n\t\tif (StringUtils.contrast(startTime, stopTime)) {\n\t\t\tToast.makeText(this, R.string.config_failure_closetime_same, Toast.LENGTH_SHORT).show();\n\t\t\treturn;\n\t\t}\n\t\tif (mAlarmSettingDate.getText().toString().length() == 0 && mAlarmSettingOpen.getBtnValue() == Switch.Open) {\n\t\t\tToast.makeText(this, R.string.please_select_week, Toast.LENGTH_SHORT).show();\n\t\t\treturn;\n\t\t}\n\t\tmTimeInfo.setTime(startTime + \"-\" + stopTime);\n\t\tmTimeInfo.setOpen(mAlarmSettingOpen.getBtnValue() == 1);\n\t\tIntent intent = new Intent(this, ActivityGuideDeviceSetup.class);\n\t\tintent.putExtra(\"timeInfo\", mTimeInfo);\n\t\tintent.putExtra(\"mPosition\", mPosition);\n\t\tsetResult(Activity.RESULT_OK, intent);\n\t\tfinish();\n\t}", "title": "" }, { "docid": "9611c3b56eb7b8b469db339b398b3d24", "score": "0.6344785", "text": "private void persistApplicationConfigurationObjects() throws MBeanException {\n try {\n File appConfigPersistFileName = new File(mWorkspaceRoot, PERSIST_APPLICATION_CONFIG_FILE_NAME);\n OutputStream os = new FileOutputStream(appConfigPersistFileName);\n for (Iterator iter = mAppConfigMap.keySet().iterator(); iter.hasNext();) {\n String key = (String) iter.next();\n ApplicationConfigurationObject aco = (ApplicationConfigurationObject) mAppConfigMap.get(key);\n\n String val = aco.getFileDirectory();\n String propKey = key.concat(\".\").concat(ApplicationConfigurationObject.FILEDIR);\n String prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getRelativePath().toString();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.RELATIVEPATH);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getPathRelativeTo();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.PATHRELATIVETO);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getLockName();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.LOCKNAME);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getWorkArea();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.WORKAREA);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getSeqName();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.SEQNAME);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getPersistenceBaseLoc();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.PERSISTBASELOC);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getRecursive().toString();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.RECURSIVE);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n\n val = aco.getRecursiveExclude();\n propKey = key.concat(\".\").concat(ApplicationConfigurationObject.EXCLUDE_REGEX);\n prop = (val != null) ? propKey + \"=\" + val + \"\\n\" : propKey + \"=\\n\";\n os.write(prop.getBytes());\n }\n\n os.close();\n\n } catch (Exception ex) {\n throw new MBeanException(ex, mMessages.getString(\"FILEBC-E01229.Failed_to_persist_application_configurations\", PERSIST_APPLICATION_CONFIG_FILE_NAME));\n }\n }", "title": "" }, { "docid": "c5022f89bd902ab6d9a9321ae078efcb", "score": "0.6337058", "text": "public void saveProp(){\n\t\ttry {\n\t\t\tcfg_out = new FileOutputStream(cfg_file);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\tJOptionPane.showMessageDialog(null, \"The config file was not found!\");\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.storeToXML(cfg_out, null);\n\t\t\tcfg_out.close();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Error while writing configurations!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "935890ec1f2b17ca78ee2feb287074f7", "score": "0.63247836", "text": "public void saveSettings() {\n /*\n * Ok, note we ensure we have a .chainsaw directory in the users\n * home folder, and create a chainsaw.settings.properties file..\n */\n File settingsDir = getSettingsDirectory();\n\n if (!settingsDir.exists()) {\n settingsDir.mkdir();\n }\n\n saveGlobalSettings(settingsDir);\n saveProfileableSetting(settingsDir);\n }", "title": "" }, { "docid": "8c4359708078a7e4254fc7518aa3ec80", "score": "0.6259008", "text": "public void saveFile() {\n\n // Adds playerUUIDArrayList to file in format of a String\n // UUIDs separated by spaces and ArrayList brackets are removed\n configManager.getConfig().set(teamName + \".playerUUIDs\", playerUUIDArrayList.toString()\n .replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\") + \" \");\n\n configManager.getConfig().set(teamName + \".friendlyFire\", friendlyFire);\n configManager.getConfig().set(teamName + \".blockInteract\", blockInteract);\n configManager.getConfig().set(teamName + \".blockPlace\", blockPlace);\n configManager.getConfig().set(teamName + \".blockBreak\", blockBreak);\n\n configManager.saveConfig();\n loadFile();\n }", "title": "" }, { "docid": "bf970292bdead92d017e6585ec515d5c", "score": "0.62343127", "text": "private void persistApplicationVariablesConfig() throws MBeanException {\n try {\n File appVarPersistFileName = new File(mWorkspaceRoot, PERSIST_APPLICATION_VARIABLE_CONFIG_FILE_NAME);\n OutputStream os = new FileOutputStream(appVarPersistFileName);\n for (Iterator iter = mAppVarMap.keySet().iterator(); iter.hasNext();) {\n String key = (String) iter.next();\n String[] metadata = (String[]) mAppVarMap.get(key);\n String value = metadata[0];\n String type = metadata[1];\n if (type.equals(\"PASSWORD\")) {\n value = mKeyStoreUtilClient.encrypt(value);\n }\n String prop = (value != null) ? key + \"=\" + value + \"{\" + type + \"}\\n\" : key + \"={\" + type + \"}\\n\";\n os.write(prop.getBytes());\n }\n os.close();\n\n } catch (Exception ex) {\n throw new MBeanException(ex, mMessages.getString(\"FILEBC-E01207.Failed_to_persist_application_variables\", PERSIST_APPLICATION_VARIABLE_CONFIG_FILE_NAME));\n }\n }", "title": "" }, { "docid": "71d9f671eeb1dc35fefb5c70532eb492", "score": "0.61479485", "text": "private void saveCurConf()\n\t{\n\t\t// multicast group IP\n\t\tEzimConf.NET_MC_GROUP = this.jtfdMcGroup.getText();\n\n\t\t// multicast group port\n\t\tEzimConf.NET_MC_PORT = (Integer) this.jspnMcPort.getValue();\n\n\t\t// direct transmission port\n\t\tEzimConf.NET_DTX_PORT = (Integer) this.jspnDtxPort.getValue();\n\n\t\t// self color\n\t\tEzimConf.UI_COLOR_SELF = this.jccColorSelf.getColor().getRGB()\n\t\t\t& 0xffffff;\n\n\t\t// local network interface\n\t\tEzimConf.NET_LOCALNI\n\t\t\t= ((NetworkInterface) this.jcbLocalNI.getSelectedItem())\n\t\t\t\t.getName();\n\n\t\t// local address\n\t\tEzimConf.NET_LOCALADDRESS\n\t\t\t= ((InetAddress) this.jcbLocalAddress.getSelectedItem())\n\t\t\t\t.getHostAddress();\n\n\t\t// always on top\n\t\tEzimConf.UI_MAIN_ALWAYSONTOP = this.jcbAlwaysOnTop.isSelected();\n\n\t\t// auto open incoming message\n\t\tEzimConf.UI_MSGIN_AUTOOPEN = this.jcbAutoOpenMsgIn.isSelected();\n\n\t\t// locale\n\t\tEzimConf.UI_USER_LOCALE\n\t\t\t= ((Locale) this.jcbUserLocale.getSelectedItem()).toString();\n\n\t\t// state icon size\n\t\tEzimConf.UI_STATEICON_SIZE\n\t\t\t= (Integer) this.jcbStateiconSize.getSelectedItem();\n\n\t\t// enable sound\n\t\tEzimConf.SOUND_ENABLED = this.jcbEnableSound.isSelected();\n\n\t\t// state change sound\n\t\tEzimConf.SOUND_STATECHG = this.jtfdStateChg.getText().trim();\n\n\t\t// status change sound\n\t\tEzimConf.SOUND_STATUSCHG = this.jtfdStatusChg.getText().trim();\n\n\t\t// message arrival sound\n\t\tEzimConf.SOUND_MSGIN = this.jtfdMsgIn.getText().trim();\n\n\t\t// file arrival sound\n\t\tEzimConf.SOUND_FILEIN = this.jtfdFileIn.getText().trim();\n\n\t\tEzimConf.write();\n\t}", "title": "" }, { "docid": "b0812ec48dfd07ed797d6f8beb0149d7", "score": "0.6122942", "text": "public void saveConfig(View vFrag) {\n\t\t if ( cbBlock.isChecked() ) { boolBlock = true; } else { boolBlock = false; }\n\t\t \n\t\t //Notify \n\t\t if ( cbNotify.isChecked() ) { boolNotify = true; } else { boolNotify = false; }\n\t\t \n\t\t // Remove Call Logs\n\t\t if ( cbRemoveCall.isChecked() ) { boolRemoveCalls = true; } else { boolRemoveCalls = false; }\n\t\t \n\t\t // Enable device logging\n\t if ( cbDevLogging.isChecked() ) \n\t \t{ Dlog.setState( true ); } \n\t else \n\t { Dlog.setState( false ); }\n\t\t \n\t\t // Test Phone Number\n\t\t stringTest = txtTestNumber.getText().toString();\n\t\t \n\t\t // write to SharedPrefs\n\t\t SharedPreferences appSettings = ctx.getSharedPreferences(APP_SETTINGS, 0);\n\t\t SharedPreferences.Editor prefEditor = appSettings.edit();\n\t\t prefEditor.putBoolean(BLOCK, boolBlock);\n\t\t prefEditor.putBoolean(NOTIFY, boolNotify);\n\t\t prefEditor.putBoolean(REMOVE_CALLS, boolRemoveCalls);\n\t\t prefEditor.putString(TEST, stringTest);\n\t\t prefEditor.commit();\n\t\t \n\t\t Toast.makeText(getActivity(), R.string.config_settings_saved,Toast.LENGTH_LONG).show();\n\t\t\n\t\t startActivity(new Intent(ConfigFragment.ctx,MainActivity.class));\n\t }", "title": "" }, { "docid": "9303ec425c3f1e9d26d339c75c9159f6", "score": "0.6115694", "text": "public void save() throws ConfigurationException {\n\t\tthis.xmlConfig.save();\n\t}", "title": "" }, { "docid": "5bbe3138cb0c895b5ea3f8fb0e3d650f", "score": "0.6110369", "text": "public void save() {\n final File settingsFile = new File(this.getFileName());\n try (OutputStream out = new FileOutputStream(settingsFile, false)) {\n for (final ConfigurationGroup group : this.getConfigurationGroups()) {\n if (!Game.isDebug() && group.isDebug()) {\n continue;\n }\n\n storeConfigurationGroup(out, group);\n }\n log.log(Level.INFO, \"Configuration {0} saved\", this.getFileName());\n } catch (final IOException e) {\n log.log(Level.SEVERE, e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "5837be57fe22f733860e3710da1e3273", "score": "0.60974044", "text": "private static void saveConfigFileContents(Context ctx, JSONObject config) {\n\n\n\n File configFile = new File(ctx.getFilesDir(), FILENAME);\n if (!configFile.exists()) {\n initConfig(ctx);\n }\n\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(ctx.getFilesDir(), FILENAME)));\n writer.write(config.toString());\n writer.close();\n } catch (IOException e) {\n Log.e(TAG, Log.getStackTraceString(e));\n }\n }", "title": "" }, { "docid": "2d0507537b35e02bec3cb1a739f73644", "score": "0.6068866", "text": "public boolean save() {\n try {\n JsonUtil.saveJsonFile(this, configFilePath);\n return true;\n } catch (IOException e) {\n logger.severe(LOG_MESSAGE_SAVE_CONFIG_FAILURE);\n return false;\n }\n }", "title": "" }, { "docid": "1fb0ba9d809009fbc30e1fcc1ae52db3", "score": "0.6060368", "text": "public void saveSysModule(SysModule sysModule);", "title": "" }, { "docid": "c0c292e3aa78ac539eefb98dd746419e", "score": "0.6018284", "text": "public void setSystemConfiguration(SystemConfiguration newconfig)\r\n\tthrows ConfigurationException\r\n {\n\tif (!newconfig.getLeaseHistoryExportDir().equals(systemconfig.getLeaseHistoryExportDir())) {\r\n\t\t//Check if new directory is writable\r\n\t\tFile file = new File(newconfig.getLeaseHistoryExportDir());\r\n\t\tif (!file.canWrite()) {\r\n\t\t\tlogger.error(\"The new directory for lease history is not writable\");\r\n\t\t\tthrow new ConfigurationException(ConfigurationException.CANNOT_WRITE_TO_LEASE_HISTORY_EXPORT_DIR);\r\n\t\t}\r\n\t}\r\n\tif (!newconfig.getExportDir().equals(systemconfig.getExportDir())) {\r\n\t\t//Check if new directory is writable\r\n\t\tFile file = new File(newconfig.getExportDir());\r\n\t\tif (!file.canWrite()) {\r\n\t\t\tlogger.error(\"The new directory for lease history is not writable\");\r\n\t\t\tthrow new ConfigurationException(ConfigurationException.CANNOT_WRITE_TO_EVENT_EXPORT_DIR);\r\n\t\t}\r\n\t}\r\n\r\n\ttry {\r\n\t xmlParser.writeSystemConfiguration(newconfig);\r\n\t} catch (Exception e) {\r\n\t logger.error(\"Cannot write new SystemConfiguration\");\r\n\t logger.error(\"Unexected Exception: \" + e);\r\n\tthrow new ConfigurationException(ConfigurationException.ERROR_WRITING_XML_FILE);\r\n\t} \r\n\r\n\t// save new config \r\n\tSystemConfiguration oldconfig = systemconfig;\r\n\tsystemconfig = newconfig;\r\n\tnotifyChange(oldconfig,systemconfig);\r\n }", "title": "" }, { "docid": "9221f32518a198da2eb308cc31af2b5e", "score": "0.59663004", "text": "public void saveConfig(final String string) throws IOException {\n saveToFile(string, getConfigPath());\n }", "title": "" }, { "docid": "37e0660b7f863af3bb2d187ee5ea3aa4", "score": "0.59662765", "text": "@Override\n protected void saveSettings() {\n\n }", "title": "" }, { "docid": "dcd52f1fc378a08412a72bce8c47c638", "score": "0.59494406", "text": "void saveSettings() {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = settings.edit();\n editor.clear();\n editor.putInt(\"barWeight\", this.barWeight);\n editor.putBoolean(\"lbsIsRegion\", this.lbsIsRegion);\n\n // Commit the edits!\n editor.commit();\n }", "title": "" }, { "docid": "37891f6f1502c4ace2dae37cad31940f", "score": "0.5940847", "text": "public void saveConfig(String password, String contextId){\n\t\tURL url= getClass().getResource(CONFIG_FILE);\n\t\tString line=\"\";\n\t\tString result=\"\";\n\t\tJSONObject json = null;\n\t\tJSONObject aux;\n\t\ttry {\n\t\t\tBufferedReader rd = new BufferedReader( new FileReader (CONFIG_FILE));\n\t while ((line = rd.readLine()) != null)\n\t result += line;\n\t rd.close();\n\t json = new JSONObject(result);\n\t aux = (JSONObject) json.get(contextId);\n\t\t\taux.put(\"password\", password);\n\t\t\tjson.put(contextId, aux);\n\t\t} catch ( JSONException e) {\n\t\t\tjson = new JSONObject();\n\t\t\taux = new JSONObject();\n\t\t\taux.put(\"password\", password);\n\t\t\tjson.put(contextId, aux);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tFileWriter f1;\n\t\ttry {\n\t\t\tf1 = new FileWriter(CONFIG_FILE);\n\t\t\tf1.write(json.toString());\n\t\t\tf1.close(); \n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}", "title": "" }, { "docid": "86f084504ffb53801f8f016c39abfb67", "score": "0.5937345", "text": "protected void savePreferences() {\n\t\trecentFileContainer.saveRecentFilesPreferrence();\n\n\t\t// save logViewerSetting\n\t\ttry {\n\t\t\tbyte[] byteArray = KryoSerializer.compress(logViewerSetting);\n\n\t\t\tLOG.info(\"LogViewerSetting ByteSize: \" + byteArray.length);\n\n\t\t\tGeneralUtilities.setPreferenceByteArray(this.getClass(), PREF_SETTINGS, byteArray);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Error compressing logViewerSetting.\", e);\n\t\t}\n\n\t\t// save openFileList\n\t\tsaveOpenFileList();\n\n\t}", "title": "" }, { "docid": "a00ae27423060324c7507ad185335293", "score": "0.59300745", "text": "private void savePreferences(){\n prefs.edit().putString(hostKey, editHost.getText().toString().trim()).apply();\n prefs.edit().putString(userKey, editUser.getText().toString().trim()).apply();\n }", "title": "" }, { "docid": "9125ecc245de1d169bceac60469f5c77", "score": "0.5927553", "text": "public void saveEnvironment() {\n\t\tFile file = new File(\"CakeFile\");\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(file);\n\t\t\tfw.write(bbToolsDir +\"\\n\");\n\t\t\tfw.write(mothurDir+\"\\n\");\n\t\t\tfw.write(numberOfVirtualizedProcessors+\"\\n\");\n\t\t\tfw.write(silvaRefVersion+\"\\n\");\n\t\t\tfw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "05d3e5cf961785788011ebdb3d367ad2", "score": "0.5922475", "text": "public void saveDeviceConfigFile(ManagedDevice deviceInfo) {\n // create device config file\n String certName = PuppetModuleUtil.toCertificateName(deviceInfo);\n File deviceConf = new File(PuppetModuleUtil.DEVICE_PATH + \"/\" + certName + \".conf\");\n DeviceType deviceType = deviceInfo.getDeviceType();\n DiscoverDeviceType discoverDeviceType = deviceInfo.getDiscoverDeviceType();\n String connectType;\n if (discoverDeviceType == null) {\n logger.warn(\"discoverDeviceType is null for \" + deviceInfo);\n connectType = \"https\";\n } else {\n connectType = discoverDeviceType.getConnectType();\n }\n String puppetModuleName = getPuppetModuleName(discoverDeviceType, deviceType);\n PuppetDiscoveryRequest req = new PuppetDiscoveryRequest(deviceInfo.getIpAddress(),\n puppetModuleName, deviceInfo.getCredId(), connectType);\n try {\n PuppetModuleUtil.buildDeviceConfigFile(deviceConf, certName, req);\n } catch (IOException e) {\n logger.error(\"Could not create Puppet Device config file\", e);\n }\n }", "title": "" }, { "docid": "12229cb75b36e98178c03f3f4d078c8d", "score": "0.59110725", "text": "public void saveSettings(SaveSettingsEvent event) {\n event.saveSetting(LogUI.MAIN_WINDOW_X, (int) getLocation().getX());\n event.saveSetting(LogUI.MAIN_WINDOW_Y, (int) getLocation().getY());\n \n event.saveSetting(LogUI.MAIN_WINDOW_WIDTH, getWidth());\n event.saveSetting(LogUI.MAIN_WINDOW_HEIGHT, getHeight());\n \n if (lookAndFeelClassName != null) {\n event.saveSetting(LogUI.LOOK_AND_FEEL, lookAndFeelClassName);\n }\n \n event.saveSetting(\n LogUI.STATUS_BAR, isStatusBarVisible() ? Boolean.TRUE : Boolean.FALSE);\n \n if (configURLToUse != null) {\n event.saveSetting(LogUI.CONFIG_FILE_TO_USE, configURLToUse.toString());\n }\n }", "title": "" }, { "docid": "77ae4778c75886ec34511eee037730bb", "score": "0.58998936", "text": "public void valideConfig() {}", "title": "" }, { "docid": "246f7747d6366800b7f0e6607aaf05b5", "score": "0.5857769", "text": "public boolean saveSettings()\r\n\t{\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "89127d38d64a27822869cbcd320ca652", "score": "0.58419585", "text": "public synchronized void saveConfigurationFromScratch(OutputStream out)\r\n throws IOException {\r\n\r\n // Get the JavaXML namespace\r\n Namespace ns = Namespace.getNamespace(\"JavaXML\",\r\n \"http://www.oreilly.com/catalog/javaxml/\");\r\n\r\n // Create the root element\r\n Element root = new Element(\"xmlrpc-config\", ns);\r\n Document doc = new Document(root);\r\n doc.setDocType(new DocType(\"JavaXML:xmlrpc-config\",\r\n \"DTD/XmlRpc.dtd\"));\r\n\r\n root.addChild(new Element(\"hostname\", ns)\r\n .setContent(hostname))\r\n .addChild(new Element(\"port\", ns)\r\n .addAttribute(\"type\", \"unprotected\")\r\n .setContent(portNumber + \"\"))\r\n .addChild(new Element(\"parserClass\", ns)\r\n .setContent(driverClass));\r\n\r\n Element handlersElement = new Element(\"handlers\", ns);\r\n Enumeration e = handlers.keys();\r\n while (e.hasMoreElements()) {\r\n String handlerID = (String)e.nextElement();\r\n String handlerClass = (String)handlers.get(handlerID);\r\n\r\n handlersElement.addChild(new Element(\"handler\", ns)\r\n .addChild(new Element(\"identifier\", ns)\r\n .setContent(handlerID))\r\n .addChild(new Element(\"class\", ns)\r\n .setContent(handlerClass))\r\n );\r\n }\r\n\r\n root.addChild(new Element(\"xmlrpc-server\", ns)\r\n .addChild(handlersElement));\r\n\r\n // Output the document, use standard formatter\r\n XMLOutputter fmt = new XMLOutputter();\r\n fmt.output(doc, out);\r\n }", "title": "" }, { "docid": "c7b753d22631491f8ce7e15752a56ab4", "score": "0.58418345", "text": "private void saveDbSettings() {\n if (ip_address.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"The IP Address is required !\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }else{\n //save to localstorage\n prefs.put(\"host_name\", ip_address.getText());\n prefs.put(\"db_name\", db_name.getText());\n prefs.put(\"db_username\", db_username.getText());\n prefs.put(\"db_password\", DB_PASSWORD.getText());\n \n JOptionPane.showMessageDialog(null, \"Saved\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n \n //logout and sign in again\n new Login().setVisible(true);\n this.dispose();\n }\n }", "title": "" }, { "docid": "58c77f85853a6acf2f8e85fcc7776018", "score": "0.58243793", "text": "public void save() throws IOException {\r\n base.getLogger().info(\"Saving to [\" + file.getName() + \"]...\");\r\n\r\n Field[] fields = this.getClass().getFields();\r\n for (Field field : fields) {\r\n try {\r\n Object obj = field.get(this);\r\n if (obj != null) {\r\n config.set(convertToConfigName(field.getName()), obj);\r\n }\r\n } catch (IllegalArgumentException | IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n FileOutputStream stream = new FileOutputStream(file);\r\n OutputStreamWriter writer = new OutputStreamWriter(stream, Charset.forName(\"UTF-8\"));\r\n\r\n String output = config.saveToString();\r\n String[] split = output.split(\"\\n\");\r\n for (String s : split) {\r\n if (s.contains(\"_COMMENT_\")) {\r\n writer.write(\"#\" + s.replaceAll(\"'\", \"\").substring(s.indexOf(':') + 1) + \"\\n\");\r\n } else {\r\n writer.write(s + \"\\n\");\r\n }\r\n }\r\n\r\n writer.close();\r\n stream.close();\r\n\r\n base.getLogger().info(\"Complete!\");\r\n }", "title": "" }, { "docid": "c242290c22a47d802bbd69758a9c79b7", "score": "0.5803306", "text": "private void saveTestPreferences() {\n\t\tEditor ed = sp.edit();\n\t\ted.putInt(\"userID\", 336);\n\t\ted.putString(\"userName\", \"Test Admin User\");\n\t\ted.putString(\"deviceID\", \"e5579a77-cd69-4f0f-a6a2-c9db1c05b98e\");\n\t\ted.putString(\"cellphone\", \"0828013722\");\n\t\ted.putString(\"email\", \"malengadev@gmail.com\");\t\t\n\t\ted.putInt(\"companyID\", 17);\n\t\ted.putInt(\"appID\", 1);\n\t\ted.putInt(\"platformID\", 4);\n\t\t\n\t\ted.commit();\n\t}", "title": "" }, { "docid": "ff6e727b68055716e6680fe2c3e5795c", "score": "0.5773156", "text": "private void writeConfiguration() {\r\n\t\tpageManager.writeConfiguration(\r\n\t\t\t\tSearchPageManager.STORE_NAMESPACE_HISTORY_SIZE,\r\n\t\t\t\tpageManager.getPreviousSearchNameSpace());\r\n\t\tpageManager.writeConfiguration(\r\n\t\t\t\tSearchPageManager.STORE_ELEMENT_HISTORY_SIZE,\r\n\t\t\t\tpageManager.getPreviousSearchElement());\r\n\t\tpageManager.writeConfiguration(\r\n\t\t\t\tSearchPageManager.STORE_ATTRIBUTE_HISTORY_SIZE,\r\n\t\t\t\tpageManager.getPreviousSearchAttribute());\r\n\t}", "title": "" }, { "docid": "c01d413a35eddb5330065ccb626bdd77", "score": "0.5771391", "text": "private void save(String localPath) throws IOException {\n\t\tGson gson = new Gson();\n\t\tUtils.createFile(localPath, gson.toJson(this.getProjectConfig()));\n\t}", "title": "" }, { "docid": "89ce560ccd00cd7347e86c13e953d19d", "score": "0.5767941", "text": "private AMSetupDSConfig() {\n Map map = ServicesDefaultValues.getDefaultValues();\n dsManager = (String)map.get(SetupConstants.CONFIG_VAR_DS_MGR_DN);\n suffix = (String)map.get(SetupConstants.CONFIG_VAR_ROOT_SUFFIX);\n smsuffix = (String)map.get(SetupConstants.SM_CONFIG_ROOT_SUFFIX);\n dsHostName = (String)map.get(\n SetupConstants.CONFIG_VAR_DIRECTORY_SERVER_HOST);\n dsPort = (String)map.get(\n SetupConstants.CONFIG_VAR_DIRECTORY_SERVER_PORT);\n dsAdminPwd = (String)map.get(SetupConstants.CONFIG_VAR_DS_MGR_PWD);\n basedir = (String)map.get(SetupConstants.CONFIG_VAR_BASE_DIR);\n deployuri = (String)map.get(SetupConstants.CONFIG_VAR_SERVER_URI);\n }", "title": "" }, { "docid": "b07839f874ea118aba99019e74198e33", "score": "0.57557607", "text": "public void setConfigInfo(Context context, ConfigInfo configInfo) {\n this.configInfo = configInfo;\n String uniqueServerId = getServerUniqueId();\n SerializableManager.saveSerializable(\n context,\n configInfo,\n SERIALIZE_CONFIG_FILE_PREFIX + uniqueServerId + SERIALIZE_CONFIG_FILE_EXTENSION);\n }", "title": "" }, { "docid": "e0ab30bbc109c5c50578b888523ebe48", "score": "0.57086146", "text": "public synchronized void saveConfiguration(String filename)\r\n throws IOException {\r\n\r\n saveConfigurationFromScratch(new FileOutputStream(filename));\r\n }", "title": "" }, { "docid": "a43e3dcbbf4522a0c6361292b7a11f02", "score": "0.57002485", "text": "public boolean configureSystem() {\r\n\r\n\t\t// read configures\r\n\t\tboolean ret = parseConfigure();\r\n\r\n\t\tdefaultValueInit();\r\n\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "3d513f94b2166e8bb185a6a10ab89b13", "score": "0.5663927", "text": "public void saveSettings() throws JsonGenerationException, JsonMappingException, IOException {\n\t\tinitObjectMapper();\n\t\t\n\t\tyamlObjectMapper.writeValue(new File(SETTINGS_PATH), this);\n\t}", "title": "" }, { "docid": "d3e09ce8b0c261af735a999761270ec8", "score": "0.5651517", "text": "public void save()\n\t{\n\t\tFileHelper.write(App.getHomeFilePath(FILE_NAME_OPTIONS), this.currentOptions.toString(), false);\n\t}", "title": "" }, { "docid": "e5c373640af7b9dd3306092f9aa2e8ea", "score": "0.5628304", "text": "public void reSaveProjectConfig() throws IOException {\n\t\tString localPath = this.getConfigFilePath();\n\t\tthis.save(localPath);\n\t}", "title": "" }, { "docid": "b038c1b8dd53c8279465d2190435aba6", "score": "0.562203", "text": "public void saveSettings() {\n modesPanel.save();\n settingsPanel.save();\n performPanel.savePerforms();\n ignoreList.saveList();\n \n final Identity identity = server.getNetworkIdentity();\n identity.setOption(\"dialogstate\", \"serversettingsdialog\",\n String.valueOf(tabbedPane.getSelectedIndex()));\n }", "title": "" }, { "docid": "bf53a919b69e0cb073ccf3c371bfec91", "score": "0.562099", "text": "String adminSystemProperties();", "title": "" }, { "docid": "997218e60d7fb226f99c83c90e5b36f8", "score": "0.56080014", "text": "@Override\n public void savePref()\n {\n if (USE_CONFIG_FILE)\n savePrefToConfigFile( Integer.toString(currentValue) );\n else\n Preferences.userRoot().putInt(prefName, currentValue);\n }", "title": "" }, { "docid": "d7fc3d39a6e46cb58cb16f4b2a9756fb", "score": "0.55753785", "text": "public void saveProperties() {\n\t\n\tFileOutputStream fileOutput = null;\n\ttry {\n\t\tfileOutput = new FileOutputStream(new File(\"Global.properties\"));\n\t} catch (FileNotFoundException e) {\n\t\t// TODO Auto-generated catch block\n\t\tSystem.out.println(\"FileNotFoundException : File Global.properties was not found\");\n\t}\n\ttry {\n\t\tprop.store(fileOutput,\"Comment\");\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\tSystem.out.println(\"IOException : Property file Global.properties was not able to store the property values\");\n\t}\n\ttry {\n\t\tfileOutput.close();\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\tSystem.out.println(\"IOException : Output stream for Global.properties was not closed successfully\");\n\t}\n\t\t\n\t}", "title": "" }, { "docid": "577c674d31024b27cb62ff3ed478ea0e", "score": "0.55690974", "text": "private void save() {\n try {\n ObjectOutputStream ous = new ObjectOutputStream(new FileOutputStream(\"loanappsave.ser\"));\n ous.writeObject(loanApp);\n ous.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9ca43fa90f2ec8cb210635650232711d", "score": "0.55621517", "text": "void persistConfiguration() throws MBeanException {\n try {\n ConfigPersistence.persistConfig(mWorkspaceRoot, mConfig);\n } catch (JBIException ex) {\n throw new MBeanException(ex, mMessages.getString(\"RTC_Failed_persist\",\n new Object[]{mWorkspaceRoot, ex.getMessage()}));\n }\n }", "title": "" }, { "docid": "97bcd97ea27be80b1d89d72e873c478e", "score": "0.55526644", "text": "public void saveTagsAndExitApp() {\r\n MainContainer.getAppDataSerializer().saveDataToFile(\"AppDataConfig.txt\");\r\n mainObserver.closeApplication();\r\n }", "title": "" }, { "docid": "e83fb21285c011e3b8a0be1c9b350375", "score": "0.5545949", "text": "@Override\n public void saveInformationOfProductionDeck(){\n Gson gson= gsonForEveryoneDeckProduction();\n\n FileWriter config = null;\n String jsonStrin = gson.toJson(deck);\n try {\n // Constructs a FileWriter given a file name, using the platform's default charset\n config = new FileWriter(\"fileConfiguration/DeckProductionCardOneVioletLatest.json\");\n config.write(jsonStrin);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n config.flush();\n config.close();\n } catch (IOException e) {\n e.printStackTrace();\n } } }", "title": "" }, { "docid": "336d0fcd3c668874fbe4aee4cad7d64a", "score": "0.5540664", "text": "protected Config(){\n\t\tif(Parser.getInstance().isWindows()){\n\t\t\tdefaultDir = new File(System.getProperty(\"user.home\")+\"\\\\AppData\\\\Local\\\\NMC\");\n\t\t} else {\n\t\t\tdefaultDir = new File(System.getProperty(\"user.home\")+\"/.config/NMC\");\n\t\t}\n\t\tdefaultDir.mkdirs();\n\t\tcfg_file = new File(defaultDir.getAbsolutePath()+Parser.getInstance().getSlash()+\".properties\");\n\t\tprop = new Properties();\n\t\tif(!cfg_file.exists()){\n\t\t\ttry {\n\t\t\t\tcfg_file.createNewFile();\n\t\t\t\tdefaultConf();\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"The config file couldn't be created\\n\"\n\t\t\t\t\t\t+ \"Please try to run the application with administrator privileges.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tloadProp();\n\t}", "title": "" }, { "docid": "34dd940449528aa2021074dfbb5d4598", "score": "0.5540287", "text": "public void saveLocations() {\n\t\tif(this.locations.size() > 0) {\n\t \ttry {\n\t\t\t\tFile file = new File(\"plugins\" + File.separator + TaxCollector.pluginName + File.separator + \"data.yml\");\n\t\t\t if(!file.exists()) {\n\t\t\t\t\tfile.createNewFile();\n\t\t\t }\n\t\t\t YamlConfiguration locations = YamlConfiguration.loadConfiguration(file);\n\t\t\t Integer i = 0;\n\t\t\t for(Location loc : this.locations) {\n\t\t\t \tlocations.set(\"signs.\" + Integer.toString(i) + \".world\", loc.getWorld().getName());\n\t\t\t \tlocations.set(\"signs.\" + Integer.toString(i) + \".x\", loc.getX());\n\t\t\t \tlocations.set(\"signs.\" + Integer.toString(i) + \".y\", loc.getY());\n\t\t\t \tlocations.set(\"signs.\" + Integer.toString(i) + \".z\", loc.getZ());\n\t\t\t \ti++;\n\t\t\t }\n\t\t\t locations.save(file);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.info(\"Can't save signs file!\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "423952683ea1799d3a6e58bac5b25d6f", "score": "0.5539859", "text": "public void saveDataFile() {\r\n if (fileData == null || pluginDataFile == null) {\r\n return;\r\n }\r\n try {\r\n getDataFile().save(pluginDataFile);\r\n } catch (IOException ex) {\r\n plugin.getLogger()\r\n .log(Level.SEVERE, \r\n \"Could not save config to \" + pluginDataFile,\r\n ex); \r\n }\r\n }", "title": "" }, { "docid": "cc88dc2309676d7b0a49dc1689d82e80", "score": "0.55355495", "text": "private void registerConfig() {\n\t\t\n\t}", "title": "" }, { "docid": "ae6fbbad37515c5cdd05bfcec047c566", "score": "0.5523895", "text": "int insert(SystemConfig record);", "title": "" }, { "docid": "2e7cfb0db14cb160afbb3d1ffe1d7f49", "score": "0.55199695", "text": "public static void saveAllSettings() {\n\t\tsaveSettings(\"Aer\", Aer.settings);\n\t\tfor (Module m : ModuleManager.moduleList) {\n\t\t\tm.saveSettings();\n\t\t}\n\t}", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.55166626", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.55166626", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.55166626", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.55166626", "text": "SystemData systemData();", "title": "" }, { "docid": "d63b0d02b15cffd72c32924f92da8dec", "score": "0.5506472", "text": "public static void savePreferences()\n {\n File f = new File(System.getProperty(\"user.home\"), \".tapdprefs\");\n try\n {\n OutputStream out = new BufferedOutputStream(new FileOutputStream(f));\n properties.save(out, \"TaPD Preferences File\");\n out.close();\n }\n catch (IOException ex)\n {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "a4d120b834b7224ea2c72abda0a745d2", "score": "0.55026346", "text": "public void saveConfig(Config config) throws DALException {\r\n Connection con = conPool.checkOut();\r\n cfgDAO.saveConfig(config, con);\r\n conPool.checkIn(con);\r\n }", "title": "" }, { "docid": "ae64cd480a7e05727bf5dc54931bad9f", "score": "0.55003995", "text": "private void saveProperties()\n {\n try\n {\n FileOutputStream output = new FileOutputStream(properties_location);\n properties.store(output, \"Generic property saving\");\n output.close();\n }\n\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c6feba9340078987f008b144b034975c", "score": "0.5489274", "text": "public void save(){\n\t\ttry{\n\t\t\tif (mContext != null){\n\t\t\t\tSharedPreferences settings = mContext.getSharedPreferences(PREFS_NAME, 0);\n\t\t\t\tSharedPreferences.Editor editor = settings.edit();\n\n\t\t\t\teditor.putString(\"inSite\", _sharedInstance.inSite);\n\t\t\t\teditor.putString(\"inCirculation\", _sharedInstance.inCirculation);\n\t\t\t\teditor.putString(\"inDeltaT\", _sharedInstance.inDeltaT);\n\t\t\t\teditor.putString(\"inSumpVolume\", _sharedInstance.inSumpVolume);\n\t\t\t\teditor.putString(\"inSysVolume\", _sharedInstance.inSysVolume);\n\t\t\t\teditor.putString(\"inConcFactor\", _sharedInstance.inConcFactor);\n\t\t\t\teditor.putString(\"inTDS\", _sharedInstance.inTDS);\n\t\t\t\teditor.putString(\"inTotalHardness\", _sharedInstance.inTotalHardness);\n\t\t\t\teditor.putString(\"inMAlk\", _sharedInstance.inMAlk);\n\t\t\t\teditor.putString(\"inPH\", _sharedInstance.inPH);\n\t\t\t\teditor.putString(\"inChlorides\", _sharedInstance.inChlorides);\n\t\t\t\teditor.putString(\"inHours\", _sharedInstance.inHours);\n\t\t\t\teditor.putString(\"inDays\", _sharedInstance.inDays);\n\t\t\t\teditor.putString(\"inWeeks\", _sharedInstance.inWeeks);\n\n\t\t\t\t// Commit the edits!\n\t\t\t\teditor.commit();\n\t\t\t\tLog.v(TAG, \"save() site:\"+_sharedInstance.inSite);\n\t\t\t} else {\n\t\t\t\tLog.e(TAG, \"save() Context not defined. Preferences NOT saved\");\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tLog.e(TAG, \"save() exception: \"+e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9f1ebf2bb6814dbbf8a4992cbf3faaa3", "score": "0.5483409", "text": "public interface PersistentSettings {\r\n\r\n\t/**\r\n\t * Gets the list of advanced options from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String[] getAdvancedOptions();\r\n\r\n\t/**\r\n\t * Gets the border shapes file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getBorderShapesFiles();\r\n\r\n\t/**\r\n\t * Gets the border styles file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getBorderStylesFiles();\r\n\r\n\t/**\r\n\t * Gets the colours file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getColoursFiles();\r\n\r\n\t/**\r\n\t * Gets the copyright text from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getCopyrightText();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default border shapes files location from\r\n\t * the plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultBorderShapesFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default border styles files location from\r\n\t * the plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultBorderStylesFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default colours files location from the\r\n\t * plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultColoursFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default dependencies files location from\r\n\t * the plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultDependenciesFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default distribution text from the plug-in\r\n\t * default persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getDefaultDistributionText();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default levels files location from the\r\n\t * plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultLevelsFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default localisation files location from\r\n\t * the plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultLocalisationFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default model version text from the\r\n\t * plug-in default persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getDefaultModelVersionText();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default patterns files location from the\r\n\t * plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultPatternsFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default printed DPI from the plug-in\r\n\t * default persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getDefaultPrintedDpi();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default S12 XML files location from the\r\n\t * plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultS12XmlFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default shapes files location from the\r\n\t * plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultShapesFiles();\r\n\r\n\t/**\r\n\t * Gets the System Model Managers default system info files location from\r\n\t * the plug-in default persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getDefaultSystemInfoFiles();\r\n\r\n\t/**\r\n\t * Gets the dependencies file location from the persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tString[] getDependenciesFiles();\r\n\r\n\t/**\r\n\t * Gets the distribution text values from the persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tString[] getDistributionTexts();\r\n\r\n\t/**\r\n\t * Gets the list of filter items from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getFilterItems();\r\n\r\n\t/**\r\n\t * Gets the fix item size option from the persistent data store\r\n\t * \r\n\t * @return a Boolean value indicating whether or not the fix item size\r\n\t * option is checked\r\n\t */\r\n\tpublic Boolean getFixItemSize();\r\n\r\n\t/**\r\n\t * Gets the highlight core OS option from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tBoolean getHighlightCoreOS();\r\n\r\n\t/**\r\n\t * Gets the list of ignore items from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tList<String[]> getIgnoreItems();\r\n\r\n\t/**\r\n\t * Gets the level of detail from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getLevelOfDetail();\r\n\r\n\t/**\r\n\t * Gets the levels file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getLevelsFiles();\r\n\r\n\t/**\r\n\t * Gets the localisation file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getLocalisationFiles();\r\n\r\n\t/**\r\n\t * Gets the model name from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getModelName();\r\n\r\n\t/**\r\n\t * Gets the model version from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getModelVersion();\r\n\r\n\t/**\r\n\t * Gets the model version text values from the persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tString[] getModelVersionTexts();\r\n\r\n\t/**\r\n\t * Gets the patterns file locations from the persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tString[] getPatternsFiles();\r\n\r\n\t/**\r\n\t * Gets the printed DPI values from the persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tpublic String[] getPrintedDpis();\r\n\r\n\tpublic String[] getS12XmlFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected border shapes file location from the persistent\r\n\t * data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedBorderShapesFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected border styles file location from the persistent\r\n\t * data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedBorderStylesFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected colours file location from the persistent data\r\n\t * store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedColoursFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected dependencies file location from the persistent\r\n\t * data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedDependenciesFiles();\r\n\r\n\t/**\r\n\t * Gets the selected distribution text value from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getSelectedDistributionText();\r\n\r\n\t/**\r\n\t * Gets the user selected levels file location from the persistent data\r\n\t * store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedLevelsFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected localisation file location from the persistent\r\n\t * data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedLocalisationFiles();\r\n\r\n\t/**\r\n\t * Gets the selected model version text value from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getSelectedModelVersionText();\r\n\r\n\t/**\r\n\t * Gets the user selected patterns file location from the persistent data\r\n\t * store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedPatternsFiles();\r\n\r\n\t/**\r\n\t * Gets the selected printed DPI value from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getSelectedPrintedDpi();\r\n\r\n\tpublic String[] getSelectedS12XmlFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected shapes file location from the persistent data\r\n\t * store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedShapesFiles();\r\n\r\n\t/**\r\n\t * Gets the user selected system info file location from the persistent data\r\n\t * store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSelectedSystemInfoFiles();\r\n\r\n\t/**\r\n\t * Gets the shapes file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getShapesFiles();\r\n\r\n\t/**\r\n\t * Gets a boolean value indicating if the Suppress Mouseover Effect button\r\n\t * has been selected from the persistent data store\r\n\t * \r\n\t * @return Boolean\r\n\t */\r\n\tBoolean getSuppressMouseOverEffect();\r\n\r\n\t/**\r\n\t * Gets the list of system definition files from the persistent data store\r\n\t * \r\n\t * @return String[]\r\n\t */\r\n\tString[] getSystemDefinitionFiles();\r\n\r\n\t/**\r\n\t * Gets the system info file location from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString[] getSystemInfoFiles();\r\n\r\n\t/**\r\n\t * Gets the system name from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getSystemName();\r\n\r\n\t/**\r\n\t * Gets the system version from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getSystemVersion();\r\n\r\n\t/**\r\n\t * Gets the warning level to use from the persistent data store\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tString getWarningLevel();\r\n\r\n\t/**\r\n\t * Writes the list of advanced options to the persistent data store\r\n\t * \r\n\t * @param advancedOptionsList\r\n\t * List of advanced options\r\n\t * @return void\r\n\t */\r\n\tpublic void setAdvancedOptions(String[] options);\r\n\r\n\t/**\r\n\t * Writes the border shapes file location to the persistent data store\r\n\t * \r\n\t * @param borderShapesFile\r\n\t * Location of the border shapes file\r\n\t * @return void\r\n\t */\r\n\tvoid setBorderShapesFiles(String[] borderShapesFiles);\r\n\r\n\t/**\r\n\t * Writes the border styles file location to the persistent data store\r\n\t * \r\n\t * @param borderStylesFile\r\n\t * Location of the border styles file\r\n\t * @return void\r\n\t */\r\n\tvoid setBorderStylesFiles(String[] borderStylesFiles);\r\n\r\n\t/**\r\n\t * Writes the colours file location to the persistent data store\r\n\t * \r\n\t * @param coloursFile\r\n\t * Location of the colours file\r\n\t * @return void\r\n\t */\r\n\tvoid setColoursFiles(String[] coloursFiles);\r\n\r\n\t/**\r\n\t * Writes the copyright text to the persistent data store\r\n\t * \r\n\t * @param copyrightText\r\n\t * String to be used for the copyright text\r\n\t * @return void\r\n\t */\r\n\tvoid setCopyrightText(String copyrightText);\r\n\r\n\t/**\r\n\t * Writes the dependencies file location to the persistent data store\r\n\t * \r\n\t * @param dependenciesFile\r\n\t * Location of the dependencies file\r\n\t * @return void\r\n\t */\r\n\tvoid setDependenciesFiles(String[] dependenciesFiles);\r\n\r\n\t/**\r\n\t * Writes the distribution text values to the persistent data store\r\n\t * \r\n\t * @param distributionTexts\r\n\t * String array to be used for the distribution text values\r\n\t * @return void\r\n\t */\r\n\tvoid setDistributionTexts(String[] distributionTexts);\r\n\r\n\t/**\r\n\t * Writes the list of filter items to the persistent data store\r\n\t * \r\n\t * @param filterItemsList\r\n\t * List of filter names\r\n\t * @return void\r\n\t */\r\n\tvoid setFilterItems(String[] filterItemsList);\r\n\r\n\t/**\r\n\t * Writes the fix item size option to the persistent data store\r\n\t * \r\n\t * @param fixItemSize\r\n\t * Boolean to represent the fix item size option\r\n\t * @return void\r\n\t */\r\n\tpublic void setFixItemSize(Boolean fixItemSize);\r\n\r\n\t/**\r\n\t * Writes the highlight core OS option to the persistent data store\r\n\t * \r\n\t * @param highlightCoreOS\r\n\t * Boolean to represent the highlight core OS option\r\n\t * @return void\r\n\t */\r\n\tvoid setHighlightCoreOS(Boolean highlightCoreOS);\r\n\r\n\t/**\r\n\t * Writes the list of ignore items to the persistent data store\r\n\t * \r\n\t * @param ignoreItemsList\r\n\t * List of ignore items\r\n\t * @return void\r\n\t */\r\n\tvoid setIgnoreItems(List<String[]> ignoreItemsList);\r\n\r\n\t/**\r\n\t * Writes the level of detail to the persistent data store\r\n\t * \r\n\t * @param levelOfDetail\r\n\t * String to be used for the level of detail\r\n\t * @return void\r\n\t */\r\n\tvoid setLevelOfDetail(String levelOfDetail);\r\n\r\n\t/**\r\n\t * Writes the levels file location to the persistent data store\r\n\t * \r\n\t * @param levelsFile\r\n\t * Location of the levels file\r\n\t * @return void\r\n\t */\r\n\tvoid setLevelsFiles(String[] levelsFiles);\r\n\r\n\t/**\r\n\t * Writes the localisation file location to the persistent data store\r\n\t * \r\n\t * @param localisationFile\r\n\t * Location of the localisation file\r\n\t * @return void\r\n\t */\r\n\tvoid setLocalisationFiles(String[] localisationFiles);\r\n\r\n\t/**\r\n\t * Writes the model name to the persistent data store\r\n\t * \r\n\t * @param modelName\r\n\t * String to be used for the model name\r\n\t * @return void\r\n\t */\r\n\tvoid setModelName(String modelName);\r\n\r\n\t/**\r\n\t * Writes the model version to the persistent data store\r\n\t * \r\n\t * @param modelVersion\r\n\t * String to be used for the model version\r\n\t * @return void\r\n\t */\r\n\tvoid setModelVersion(String modelVersion);\r\n\r\n\t/**\r\n\t * Writes the model version text values to the persistent data store\r\n\t * \r\n\t * @param modelVersionTexts\r\n\t * String array to be used for the model version text values\r\n\t * @return void\r\n\t */\r\n\tvoid setModelVersionTexts(String[] modelVersionTexts);\r\n\r\n\t/**\r\n\t * Writes the patterns file location to the persistent data store\r\n\t * \r\n\t * @param patternsFile\r\n\t * Location of the patterns file\r\n\t * @return void\r\n\t */\r\n\tvoid setPatternsFiles(String[] patternsFiles);\r\n\r\n\t/**\r\n\t * Writes the printed DPI values to the persistent data store\r\n\t * \r\n\t * @param dpi\r\n\t * String array to be used for the printed DPI values\r\n\t * @return void\r\n\t */\r\n\tpublic void setPrintedDpis(String[] dpis);\r\n\r\n\tpublic void setS12XmlFiles(String[] s12XmlFiles);\r\n\r\n\t/**\r\n\t * Writes the user selected border shapes file location to the persistent\r\n\t * data store\r\n\t * \r\n\t * @param borderShapesFile\r\n\t * Location of the default border shapes file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedBorderShapesFiles(String[] borderShapesFiles);\r\n\r\n\t/**\r\n\t * Writes the user selected border styles file location to the persistent\r\n\t * data store\r\n\t * \r\n\t * @param borderStylesFile\r\n\t * Location of the default border styles file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedBorderStylesFiles(String[] borderStylesFile);\r\n\r\n\t/**\r\n\t * Writes the user selected colours file location to the persistent data\r\n\t * store\r\n\t * \r\n\t * @param coloursFile\r\n\t * Location of the default colours file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedColoursFiles(String[] coloursFile);\r\n\r\n\t/**\r\n\t * Writes the user selected dependencies file location to the persistent\r\n\t * data store\r\n\t * \r\n\t * @param dependenciesFile\r\n\t * Location of the default dependencies file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedDependenciesFiles(String[] dependenciesFile);\r\n\r\n\t/**\r\n\t * Writes the selected distribution text value to the persistent data store\r\n\t * \r\n\t * @param distributionText\r\n\t * String to be used for the selected distribution text value\r\n\t * @return void\r\n\t */\r\n\tpublic void setSelectedDistributionText(String distributionText);\r\n\r\n\t/**\r\n\t * Writes the user selected levels file location to the persistent data\r\n\t * store\r\n\t * \r\n\t * @param levelsFile\r\n\t * Location of the default levels file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedLevelsFiles(String[] levelsFile);\r\n\r\n\t/**\r\n\t * Writes the user selected localisation file location to the persistent\r\n\t * data store\r\n\t * \r\n\t * @param localisationFile\r\n\t * Location of the default localisation file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedLocalisationFiles(String[] localisationFile);\r\n\r\n\t/**\r\n\t * Writes the selected model version text value to the persistent data store\r\n\t * \r\n\t * @param modelVersionText\r\n\t * String to be used for the selected model version text value\r\n\t * @return void\r\n\t */\r\n\tpublic void setSelectedModelVersionText(String modelVersionText);\r\n\r\n\t/**\r\n\t * Writes the user selected patterns file location to the persistent data\r\n\t * store\r\n\t * \r\n\t * @param patternsFile\r\n\t * Location of the default patterns file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedPatternsFiles(String[] patternsFiles);\r\n\r\n\t/**\r\n\t * Writes the selected printed DPI value to the persistent data store\r\n\t * \r\n\t * @param dpi\r\n\t * String to be used for the selected printed DPI value\r\n\t * @return void\r\n\t */\r\n\tpublic void setSelectedPrintedDpi(String dpi);\r\n\r\n\tpublic void setSelectedS12XmlFiles(String[] s12XmlFiles);\r\n\r\n\t/**\r\n\t * Writes the user selected shapes file location to the persistent data\r\n\t * store\r\n\t * \r\n\t * @param shapesFile\r\n\t * Location of the default shapes file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedShapesFiles(String[] shapesFile);\r\n\r\n\t/**\r\n\t * Writes the user selected system info location to the persistent data\r\n\t * store\r\n\t * \r\n\t * @param systemInfoFile\r\n\t * Location of the default system information file\r\n\t * @return void\r\n\t */\r\n\tvoid setSelectedSystemInfoFiles(String[] systemInfoFile);\r\n\r\n\t/**\r\n\t * Writes the shapes file location to the persistent data store\r\n\t * \r\n\t * @param shapesFile\r\n\t * Location of the shapes file\r\n\t * @return void\r\n\t */\r\n\tvoid setShapesFiles(String[] shapesFiles);\r\n\r\n\t/**\r\n\t * Writes the value for the Suppress Mouseover Effect option\r\n\t * \r\n\t * @param suppressMouseOverEffect\r\n\t * Boolean value indicating if the Suppress Mouseover Effect is\r\n\t * it be used when generating the diagram\r\n\t * @return void\r\n\t */\r\n\tpublic void setSuppressMouseOverEffect(Boolean suppressMouseOverEffect);\r\n\r\n\t/**\r\n\t * Writes the list of system definition files to the persistent data store\r\n\t * \r\n\t * @param sysDefFiles\r\n\t * List of the system definition file locations\r\n\t * @return void\r\n\t */\r\n\tvoid setSystemDefinitionFiles(String[] sysDefFiles);\r\n\r\n\t/**\r\n\t * Writes the system info location to the persistent data store\r\n\t * \r\n\t * @param systemInfoFile\r\n\t * Location of the system information file\r\n\t * @return void\r\n\t */\r\n\tvoid setSystemInfoFiles(String[] systemInfoFiles);\r\n\r\n\t/**\r\n\t * Writes the system name to the persistent data store\r\n\t * \r\n\t * @param systemName\r\n\t * String to be used for the system name\r\n\t * @return void\r\n\t */\r\n\tvoid setSystemName(String systemName);\r\n\r\n\t/**\r\n\t * Writes the system version to the persistent data store\r\n\t * \r\n\t * @param systemVersion\r\n\t * String to be used for the system version\r\n\t * @return void\r\n\t */\r\n\tvoid setSystemVersion(String systemVersion);\r\n\r\n\t/**\r\n\t * Writes the warning level to the persistent data store\r\n\t * \r\n\t * @param warningLevel\r\n\t * An int between 1 and 3 indicating the level of warnings to be\r\n\t * produces\r\n\t * @return void\r\n\t */\r\n\tvoid setWarningLevel(String warningLevel);\r\n}", "title": "" }, { "docid": "28a824eb4a8e835f39882ce400c6791a", "score": "0.5478921", "text": "java.lang.String getConfig();", "title": "" }, { "docid": "9729278d8c73435d7213ea974b348fa8", "score": "0.5476083", "text": "private void writeSettings() {\n \t\tPoint location = getShell().getLocation();\n \t\tsettings.put(KEY_X, location.x);\n \t\tsettings.put(KEY_Y, location.y);\n \n \t\tPoint size = getShell().getSize();\n \t\tsettings.put(KEY_WIDTH, size.x);\n \t\tsettings.put(KEY_HEIGHT, size.y);\n \t}", "title": "" }, { "docid": "5c84b7fcde104e4513685ccdd57e8f58", "score": "0.5461738", "text": "public static void saveSettings(MainWindow mainWindow) {\n String content = mainWindow.followRedirects() + \" \" + mainWindow.isHideInTraySelected() + \" \"\n + mainWindow.getTheme();\n try (BufferedWriter output = new BufferedWriter(new FileWriter(SETTINGS_DIR + \"Settings.bin\"))) {\n output.write(content);\n output.flush();\n } catch (IOException exception) {\n JOptionPane.showMessageDialog(null, \"Could not save user settings.\",\n \"Failed to Save File\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "d18135e3ddb765bc779f249c63dadf2f", "score": "0.5457062", "text": "private void writeConf() {\n\n try {\n\n File file = new File(\"customized.conf\");\n BufferedWriter output = new BufferedWriter(new FileWriter(file));\n output.write(\"baseDir : \");\n writeHOCONString(output, baseDir.getText());\n\n if(dataSourceSelection.getSelectedIndex() == 0)\n output.write(\"\\n\\ndao.dataSource.default : h2\");\n else\n output.write(\"\\n\\ndao.dataSource.default : psql\");\n\n output.write(\"\\n\\ndao.dataSource.h2.url : \");\n writeHOCONString(output,\n String.format(\"jdbc:h2:%s;LOG=0;CACHE_SIZE=65536;LOCK_MODE=0;UNDO_LOG=0;MAX_OPERATION_MEMORY=100000000\", h2Path.getText()));\n\n output.write(\"\\n\\ndao.dataSource.psql.url : \");\n writeHOCONString(output,\n String.format(\"jdbc:postgresql://%s/%s\", postgresHost.getText(), postgresDB.getText()));\n output.write(\"\\ndao.dataSource.psql.username : \");\n writeHOCONString(output, postgresUser.getText());\n output.write(\"\\ndao.dataSource.psql.password : \");\n writeHOCONString(output, new String(postgresPass.getPassword()));\n\n output.write(\"\\n\\nspatial.dao.dataSource.postgis.host : \");\n writeHOCONString(output, postgresHost.getText());\n output.write(\"\\nspatial.dao.dataSource.postgis.port : \");\n writeHOCONString(output, postgresPort.getText());\n output.write(\"\\nspatial.dao.dataSource.postgis.database : \");\n writeHOCONString(output, postgresDB.getText());\n output.write(\"\\nspatial.dao.dataSource.postgis.user : \");\n writeHOCONString(output, postgresUser.getText());\n output.write(\"\\nspatial.dao.dataSource.postgis.passwd : \");\n writeHOCONString(output, new String(postgresPass.getPassword()));\n\n output.write(\"\\n\\n\");\n output.close();\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "720abc366e060d18b2ad0ba12f937636", "score": "0.544718", "text": "public SystemConf getSystemConfData() {\n return systemConf;\n }", "title": "" }, { "docid": "541f3f2e97e1605a3d40c95544ddc660", "score": "0.54443294", "text": "private boolean saveJStockOptions() {\n if (Utils.createCompleteDirectoryHierarchyIfDoesNotExist(UserDataDirectory.Config.get()) == false)\n {\n return false;\n }\n \n File f = new File(UserDataDirectory.Config.get() + UserDataFile.OptionsXml.get());\n return org.yccheok.jstock.gui.Utils.toXML(this.jStockOptions, f);\n }", "title": "" }, { "docid": "134759ae29eeb59c9beb18a82d886e7f", "score": "0.5434942", "text": "public void save(ConfigType type) {\n\t\ttry {\n\t\t\tif (!file.exists()) {\n\t\t\t\tif (file.getParentFile() != null)\n\t\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tPrintStream ps = new PrintStream(file);\n\t\t\tString out = null;\n\t\t\tswitch (type) {\n\t\t\tcase BINARY:\n\t\t\t\tbreak;\n\t\t\tcase JSON:\n\t\t\t\tgson.toJson(map, ps);\n\t\t\t\tps.flush();\n\t\t\t\tbreak;\n\t\t\tcase TXT:\n\t\t\t\tbreak;\n\t\t\tcase YAML:\n\t\t\t\tDumperOptions options = new DumperOptions();\n\t\t\t\toptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);\n\t\t\t\tYaml parser = new Yaml(options);\n\t\t\t\tout = parser.dump(map);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(out != null)\n\t\t\t\tps.print(out);\n\t\t\tps.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// File does not exist, therefore it has no data to load.\n\t\t}\n\t}", "title": "" }, { "docid": "d978d88eac2e818bb91b1fbbb4515984", "score": "0.5431025", "text": "Configuration setSystemProperties( Properties properties );", "title": "" }, { "docid": "a983392c02e74f730e94e3862ed32105", "score": "0.5428624", "text": "public static void saveLoots() {\n if (loots_cfg == null || loots == null) {\n return;\n }\n try {\n loots_cfg.save(loots);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save to \" + loots, ex);\n }\n }", "title": "" }, { "docid": "6e7ae3719650b2c93b211e1e9099329b", "score": "0.5420994", "text": "public static void savePreferences(Context context) {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext());\n\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\teditor.putBoolean(\"silentMode\", State.isSilentMode());\n\t\teditor.putString(\"language\", State.getLanguage());\n\t\tprint(\"Preference for silent mode saved as: \" + State.isSilentMode());\n\t\teditor.commit();\n\t}", "title": "" }, { "docid": "c42133d94dfec91facc906a9b93af9fb", "score": "0.54201156", "text": "@SuppressWarnings(\"unused\")\n\tpublic static boolean updateGlobalConfig() {\n\t\t// Get the global config file\n\t\tFileConfiguration c = SafeCreeper.instance.getConfigHandler().getGlobalConfig();\n\t\t\n\t\t// Check if the file is up-to-date, if so, cancel the update progress\n\t\tif(isConfigUpToDate(c))\n\t\t\treturn false;\n\t\t\n\t\t// Show a status message\n\t\tSystem.out.println(\"[SafeCreeper] Updating the global config file...\");\n\t\t\n\t\t// Store the current time\n\t\tlong t = System.currentTimeMillis();\n\t\t\n\t\t// Get the current plugin and config versions\n\t\tString pluginVer = SafeCreeper.instance.getDescription().getVersion();\n\t\tString configVer = c.getString(\"version\", \"0.1\");\n\t\t\n\t\t// Load the default global config file \n\t\tYamlConfiguration defc = new YamlConfiguration();\n\t\ttry {\n\t\t\tdefc.load(SafeCreeper.instance.getResource(\"res/global.yml\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Make sure the default config file is loaded\n\t\tif(defc == null)\n\t\t\treturn false;\n\t\t\n\t\t// Backup the current file version, so it won't be lost if something goes wrong\n\t\tbackupGlobalConfig();\n\t\t\n\t\t// Create a new config file\n\t\tFileConfiguration newc = new YamlConfiguration();\n\t\t\n\t\t// Loop through all the config file items to update the file\n\t\tSet<String> keys = defc.getConfigurationSection(\"\").getKeys(true);\n\t\tfor(String k : keys) {\n\t\t\t\n\t\t\tString kOld = k;\n\t\t\t\n\t\t\tif(isOlderVersion(\"1.3\", configVer)) {\n\t\t\t\t\n\t\t\t\t// Update the old 'EnableBetweenLevels' system to the new 'Locations' system\n\t\t\t\tif(k.endsWith(\".Locations\")) {\n\t\t\t\t\tnewc.createSection(k);\n\t\t\t\t\t\n\t\t\t\t\tString controlName = k.replace(\".Locations\", \"\");\n\t\t\t\t\t\n\t\t\t\t\tif(c.isSet(controlName + \".EnableBetweenLevels.Enabled\") && c.isSet(controlName + \".EnableBetweenLevels.Levels\")) {\n\t\t\t\t\t\tif(c.getBoolean(controlName + \".EnableBetweenLevels.Enabled\", false)) {\n\t\t\t\t\t\t\tString levelsString = c.getString(controlName + \".EnableBetweenLevels.Levels\", \"0-256\");\n\t\t\t\t\t\t\tnewc.set(controlName + \".Locations.Levels.\" + levelsString + \".Enabled\", true);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Update the old FoodLock'er in the PlayerControl\n\t\t\t\tif(k.equals(\"PlayerControl.FoodMeter.CanIncrease\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.FoodMeter.CanIncrease\", !c.getBoolean(\"PlayerControl.LockFoodmeter\", !defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t} else if(k.equals(\"PlayerControl.FoodMeter.CanDecrease\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.FoodMeter.CanDecrease\", !c.getBoolean(\"PlayerControl.LockFoodmeter\", !defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Splitted skeleton control into skeleton and wither skeleton control\n\t\t\tif(isOlderVersion(\"1.3.6.5\", configVer)) {\n\t\t\t\t\n\t\t\t\t// Update the old 'EnableBetweenLevels' system to the new 'Locations' system\n\t\t\t\tif(k.startsWith(\"WitherSkeletonControl\")) {\n\t\t\t\t\tkOld = k.replaceFirst(\"WitherSkeletonControl\", \"SkeletonControl\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(isOlderVersion(\"1.3.6.9\", configVer)) {\n\n\t\t\t\t// Update the old 'KeepXPOnDeath' and 'DropXPOnDeath' from the PlayerControl\n\t\t\t\tif(k.equals(\"PlayerControl.CustomDrops.XP.Enabled\")) {\n\t\t\t\t\tif(c.getBoolean(\"PlayerControl.KeepXPOnDeath\", defc.getBoolean(k)) ||\n\t\t\t\t\t\t\tc.getBoolean(\"PlayerControl.DropXPOnDeath\", defc.getBoolean(k))) {\n\t\t\t\t\t\tnewc.set(\"PlayerControl.CustomDrops.XP.Enabled\", true);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if(k.equals(\"PlayerControl.CustomDrops.XP.KeepLevel\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.CustomDrops.XP.KeepLevel\", c.getBoolean(\"PlayerControl.KeepXPOnDeath\", defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t} else if(k.equals(\"PlayerControl.CustomDrops.XP.KeepXPLevel\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.CustomDrops.XP.KeepXPLevel\", c.getBoolean(\"PlayerControl.KeepXPOnDeath\", defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t} else if(k.equals(\"PlayerControl.CustomDrops.XP.DropXP\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.CustomDrops.XP.DropXP\", c.getBoolean(\"PlayerControl.DropXPOnDeath\", defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Update the old FoodLock'er in the PlayerControl\n\t\t\t\tif(k.equals(\"PlayerControl.FoodMeter.CanIncrease\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.FoodMeter.CanIncrease\", c.getBoolean(\"PlayerControl.LockFoodmeter\", defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t} else if(k.equals(\"PlayerControl.FoodMeter.CanDecrease\")) {\n\t\t\t\t\tnewc.set(\"PlayerControl.FoodMeter.CanDecrease\", c.getBoolean(\"PlayerControl.LockFoodmeter\", defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Update the old 'DropItemOnDeath' from the EndermanControl\n\t\t\t\tif(k.equals(\"EndermanControl.CustomDrops.DropItemOnDeath\")) {\n\t\t\t\t\tnewc.set(\"EndermanControl.CustomDrops.DropItemOnDeath\", c.getBoolean(\"EndermanControl.DropItemOnDeath\", defc.getBoolean(k)));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Moved the 'CanSleep' feature from the PlayerControl to the BedControl\n\t\t\tif(isOlderVersion(\"1.4\", configVer)) {\n\t\t\t\tif(k.equals(\"BedControl.PlayerCanSleep\")) {\n\t\t\t\t\tnewc.set(\"BedControl.PlayerCanSleep\", c.getBoolean(\"PlayerControl.CanSleep\", defc.getBoolean(\"BedControl.PlayerCanSleep\")));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Don't remove the effects list from older files while converting to a new one\n\t\t\tif(k.endsWith(\".Effects.Triggers\")) {\n\t\t\t\tnewc.createSection(k);\n\t\t\t}\n\t\t\t\n\t\t\t// Don't remove the locations list from older files while converting to a new one\n\t\t\tif(k.endsWith(\".Locations\")) {\n\t\t\t\tnewc.createSection(k);\n\t\t\t}\n\t\t\t\n\t\t\tif(newc.isSet(k)) // Make sure the value is not already set\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\telse if(k.equalsIgnoreCase(\"version\"))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif(!defc.isSet(k))\n\t\t\t\tnewc.createSection(k);\n\t\t\t\t\n\t\t\telse if(defc.isBoolean(k))\n\t\t\t\tnewc.set(k, c.getBoolean(kOld, defc.getBoolean(k)));\n\t\t\t\t\n\t\t\telse if(defc.isDouble(k))\n\t\t\t\tnewc.set(k, c.getDouble(kOld, defc.getDouble(k)));\n\t\t\t\t\n\t\t\telse if(defc.isInt(k))\n\t\t\t\tnewc.set(k, c.getInt(kOld, defc.getInt(k)));\n\t\t\t\t\n\t\t\telse if(defc.isItemStack(k))\n\t\t\t\tnewc.set(k, c.getItemStack(kOld, defc.getItemStack(k)));\n\t\t\t\t\n\t\t\telse if(defc.isList(k))\n\t\t\t\tnewc.set(k, c.getList(kOld, defc.getList(k)));\n\t\t\t\t\n\t\t\telse if(defc.isLong(k))\n\t\t\t\tnewc.set(k, c.getLong(kOld, defc.getLong(k)));\n\t\t\t\t\n\t\t\telse if(defc.isOfflinePlayer(k))\n\t\t\t\tnewc.set(k, c.getOfflinePlayer(kOld, defc.getOfflinePlayer(k)));\n\t\t\t\t\n\t\t\telse if(defc.isString(k))\n\t\t\t\tnewc.set(k, c.getString(kOld, defc.getString(k)));\n\t\t\t\t\n\t\t\telse if(defc.isVector(k))\n\t\t\t\tnewc.set(k, c.getVector(kOld, defc.getVector(k)));\n\t\t\t\t\n\t\t\telse if(defc.isConfigurationSection(k))\n\t\t\t\tnewc.createSection(k);\n\t\t}\n\t\t\n\t\t// Copy the effects list from the old files into the new one (They may not get lost!)\n\t\tSet<String> controlNames = c.getConfigurationSection(\"\").getKeys(false);\n\t\tfor(String controlName : controlNames) {\n\t\t\t\n\t\t\tif(!c.contains(controlName + \".Enabled\"))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif(!c.contains(controlName + \".Effects.Triggers\"))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tSet<String> effectTriggers = c.getConfigurationSection(controlName + \".Effects.Triggers\").getKeys(true);\n\t\t\tfor(String et : effectTriggers) {\n\n\t\t\t\tet = controlName + \".Effects.Triggers.\" + et; \n\t\t\t\t\n\t\t\t\tif(c.isBoolean(et))\n\t\t\t\t\tnewc.set(et, c.getBoolean(et, defc.getBoolean(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isDouble(et))\n\t\t\t\t\tnewc.set(et, c.getDouble(et, defc.getDouble(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isInt(et))\n\t\t\t\t\tnewc.set(et, c.getInt(et, defc.getInt(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isItemStack(et))\n\t\t\t\t\tnewc.set(et, c.getItemStack(et, defc.getItemStack(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isList(et))\n\t\t\t\t\tnewc.set(et, c.getList(et, defc.getList(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isLong(et))\n\t\t\t\t\tnewc.set(et, c.getLong(et, defc.getLong(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isOfflinePlayer(et))\n\t\t\t\t\tnewc.set(et, c.getOfflinePlayer(et, defc.getOfflinePlayer(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isString(et))\n\t\t\t\t\tnewc.set(et, c.getString(et, defc.getString(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isVector(et))\n\t\t\t\t\tnewc.set(et, c.getVector(et, defc.getVector(et)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isConfigurationSection(et))\n\t\t\t\t\tnewc.createSection(et);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Copy the locations list from the old files into the new one (They may not get lost!)\n\t\tcontrolNames = c.getConfigurationSection(\"\").getKeys(false);\n\t\tfor(String controlName : controlNames) {\n\t\t\tif(!c.contains(controlName + \".Enabled\"))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif(!c.contains(controlName + \".Locations\"))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tSet<String> locationContents = c.getConfigurationSection(controlName + \".Locations\").getKeys(true);\n\t\t\tfor(String lc : locationContents) {\n\n\t\t\t\tlc = controlName + \".Locations.\" + lc; \n\t\t\t\t\n\t\t\t\tif(c.isBoolean(lc))\n\t\t\t\t\tnewc.set(lc, c.getBoolean(lc, defc.getBoolean(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isDouble(lc))\n\t\t\t\t\tnewc.set(lc, c.getDouble(lc, defc.getDouble(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isInt(lc))\n\t\t\t\t\tnewc.set(lc, c.getInt(lc, defc.getInt(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isItemStack(lc))\n\t\t\t\t\tnewc.set(lc, c.getItemStack(lc, defc.getItemStack(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isList(lc))\n\t\t\t\t\tnewc.set(lc, c.getList(lc, defc.getList(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isLong(lc))\n\t\t\t\t\tnewc.set(lc, c.getLong(lc, defc.getLong(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isOfflinePlayer(lc))\n\t\t\t\t\tnewc.set(lc, c.getOfflinePlayer(lc, defc.getOfflinePlayer(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isString(lc))\n\t\t\t\t\tnewc.set(lc, c.getString(lc, defc.getString(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isVector(lc))\n\t\t\t\t\tnewc.set(lc, c.getVector(lc, defc.getVector(lc)));\n\t\t\t\t\t\n\t\t\t\telse if(c.isConfigurationSection(lc))\n\t\t\t\t\tnewc.createSection(lc);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Update the version number in the config file\n\t\tnewc.set(\"version\", pluginVer);\n\t\t\n\t\t// Add some description to the config file\n\t\tnewc.options().header(\"Global Config - Automaticly updated from v\" + configVer + \" to v\" + pluginVer + \" by Safe Creeper. Old file backuped in 'plugins/SafeCreeper/old_files' folder.\");\n\t\t\n\t\t// Save the config file\n\t\tSafeCreeper.instance.getConfigHandler().setGlobalConfig(newc);\n\t\tSafeCreeper.instance.getConfigHandler().saveGlobalConfig();\n\n\t\t// Calculate the load duration\n\t\tlong duration = System.currentTimeMillis() - t;\n\t\t\n\t\tSystem.out.println(\"[SafeCreeper] Global config file updated, took \" + String.valueOf(duration) + \" ms!\");\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1a639fc77fb9cf8297179c67fcd3247b", "score": "0.54185355", "text": "private void saveState() throws IOException {\n Serialization io = new Serialization();\n io.saveState(speakerManager, \"SpeakerManager\");\n io.saveState(organizerManager, \"OrganizerManager\");\n io.saveState(chatManager, \"ChatManager\");\n io.saveState(attendeeManager, \"AttendeeManager\");\n }", "title": "" }, { "docid": "68baed246f502cd7fbc54a93cfe0920a", "score": "0.5416919", "text": "@Override\n\tpublic void save(DQConfig config) throws DataAccessException {\n\t}", "title": "" }, { "docid": "f28aded8578a2fe427d0e8fa3259c33a", "score": "0.5414206", "text": "public Status saveAffinityConfig();", "title": "" }, { "docid": "0c26ab7324b466e132d6a4a08e2e4170", "score": "0.54087764", "text": "public File getSysConfDir()\n {\n return this.m_sysConfDir;\n }", "title": "" } ]
6e92bf6802b4f3b0a4b625c573ff26a8
Gets the polygon model general properties.
[ { "docid": "9c343efc70c95246e4292ce1445ba6d8", "score": "0.6620728", "text": "private Properties getGeneralProperties(final Properties properties) throws Exception {\n ModelSpaceBounds bounds = ABavoCrossplotRegistry.get().getCrossplots()[0].getActiveModelSpace().getDefaultBounds();\n properties.setProperty(\"StartX\", Double.toString(bounds.getStartX()));\n properties.setProperty(\"EndX\", Double.toString(bounds.getEndX()));\n properties.setProperty(\"StartY\", Double.toString(bounds.getStartY()));\n properties.setProperty(\"EndY\", Double.toString(bounds.getEndY()));\n properties.setProperty(\"NormalizationFactor\", Float.toString(getNormalizationFactor()));\n properties.setProperty(\"PolygonsFilled\", Boolean.toString(getPolygonsFilled()));\n properties.setProperty(\"SymmetricRegions\", Boolean.toString(Boolean.FALSE));\n properties.setProperty(\"NumberOfPolygons\", Integer.toString(NUMBER_OF_POLYGONS));\n return properties;\n }", "title": "" } ]
[ { "docid": "2272bdf531820c91be5ea1cd0be0e482", "score": "0.68415594", "text": "public ShapeProperties getProperties() {\n return this.properties;\n }", "title": "" }, { "docid": "80bcc02a64c6351aec1731a156efa0dd", "score": "0.68264997", "text": "public PolygonModel[] getPolygonModels() {\n return _polygonModels;\n }", "title": "" }, { "docid": "7d1f9b4735be23e101f64b49f10cff3a", "score": "0.6696666", "text": "public Map<String, ShapeProperty<?>> getPropertyMap() {\n return this.properties.getProperties();\n }", "title": "" }, { "docid": "f602937c4027259e0fa7fa4b727c6965", "score": "0.661768", "text": "public PolygonAttributes getPolygonAttributes()\n {\n return ( pa );\n }", "title": "" }, { "docid": "f6b0540aee45643257019af0e78044a6", "score": "0.65804225", "text": "public Polygon getPolygon() {\n \t\treturn p;\n \t}", "title": "" }, { "docid": "8b52f9817c5bff7ad721cf450ba8aa26", "score": "0.6455709", "text": "public Polygon getShape() { return shape; }", "title": "" }, { "docid": "e70d13f64a782fbb0c23ca59cd06a4f2", "score": "0.6434221", "text": "public Polygon getPolygon();", "title": "" }, { "docid": "56df67f122d458314d43321c85013e3c", "score": "0.6278298", "text": "public Polygon getMapPolygon() {\r\n return mapPolygon;\r\n }", "title": "" }, { "docid": "0402713dc3e5133e3ea8ddf0a49ea9b6", "score": "0.61524135", "text": "public PhysicsModelProperties getPhysicsProperties () {\r\n\t\treturn physicsProps;\r\n\t}", "title": "" }, { "docid": "7ef745d8e83289dee7af172eb2929a8b", "score": "0.6145067", "text": "public ArrayList<PolyObject> getPoly() {\n\t\treturn polyArray;\n\t}", "title": "" }, { "docid": "703108c177d107f2e830a9944e0225d1", "score": "0.61430687", "text": "public List<ModelElementFacade> getProperties()\n {\n return this.getSuperService().getProperties();\n }", "title": "" }, { "docid": "f58abae73a48267b10cb786ad61710d3", "score": "0.61088073", "text": "public DefProperty[] getProperties() {\n return properties;\n }", "title": "" }, { "docid": "4190db97096ba63f40f84dd1fe19e0b7", "score": "0.6062272", "text": "public ArrayList<Property> getProperties()\r\n\t{\r\n\t\treturn _property;\r\n\t}", "title": "" }, { "docid": "109e96141f8aff4b6f69e40c597b5568", "score": "0.60560817", "text": "public static ArrayList<Polygon> getPolygonList()\n {\n return polygonsOnField;\n }", "title": "" }, { "docid": "6877fbb64ae173a65b608e9e3438eed2", "score": "0.6050622", "text": "public PolygonModel getPolygonModel(final int index) {\n return _polygonModels[index];\n }", "title": "" }, { "docid": "793031c8c3e8f9005305c1e64176afd6", "score": "0.6048538", "text": "public Polygon getCoords();", "title": "" }, { "docid": "b3d05e3bbac828b052ca3c3b24640d45", "score": "0.6021096", "text": "private Properties getPolygonProperties(final int index, final Properties properties) throws Exception {\n PolygonModel model = getPolygonModel(index);\n properties.setProperty(\"visible\", Boolean.toString(model.getVisible()));\n properties.setProperty(\"text\", model.getText());\n properties.setProperty(\"value\", Double.toString(model.getValue()));\n properties.setProperty(\"pointCount\", Integer.toString(model.getNumPoints()));\n for (int i = 0; i < model.getNumPoints(); i++) {\n Point3d point = model.getPoint(i);\n properties.setProperty(\"x\" + (i + 1), Double.toString(point.getX()));\n properties.setProperty(\"y\" + (i + 1), Double.toString(point.getY()));\n }\n return properties;\n }", "title": "" }, { "docid": "a6716414c5b85f4e44bd0bb771844d74", "score": "0.59729385", "text": "public Collection<ModelElementFacade> getAllProperties()\n {\n return this.getSuperService().getAllProperties();\n }", "title": "" }, { "docid": "e9a4f2042dd508aa1ca73ce7f43f138b", "score": "0.5833192", "text": "public PolybaseSettings polyBaseSettings() {\n return this.polyBaseSettings;\n }", "title": "" }, { "docid": "decfbcc2dc280164d8f110e3c1d19dfa", "score": "0.57848275", "text": "public List<String> getPolygonMapLayers() {\r\n return _layerList;\r\n }", "title": "" }, { "docid": "ff96a3f3e30d2c6482a98d47f7e9028e", "score": "0.57720786", "text": "Collection getRDFProperties();", "title": "" }, { "docid": "60785920b9e7fcdec6ce555611a3b9e6", "score": "0.57436407", "text": "public List<PolygonMarkers> getPolygonMarkers() {\n return polygonMarkers;\n }", "title": "" }, { "docid": "ea978f478dbb08c59b8f18665fbf0bf2", "score": "0.57364416", "text": "public Map<String, List<ShapePoint>> getShapePoints() {\n return mShapePoints;\n }", "title": "" }, { "docid": "17efce879f2d46b3e474c3d960ded09d", "score": "0.5717523", "text": "public Map<String, ObjectSchema> getProperties() ;", "title": "" }, { "docid": "fbfb570b124f9fa1b215d916c67df439", "score": "0.56951004", "text": "private double[] setGeneralProperties(final Properties properties) throws Exception {\n\n String value = properties.getProperty(\"NormalizationFactor\");\n if (value != null) {\n setNormalizationFactor(Float.parseFloat(value));\n }\n value = properties.getProperty(\"PolygonsFilled\");\n if (value != null) {\n setPolygonsFilled(Boolean.parseBoolean(value));\n }\n value = properties.getProperty(\"SymmetricRegions\");\n if (value != null) {\n // TODO: setSymmetric(Boolean.parseBoolean(value));\n }\n value = properties.getProperty(\"NumberOfPolygons\");\n if (value != null) {\n int numberOfPolygons = Integer.parseInt(value);\n if (numberOfPolygons != NUMBER_OF_POLYGONS) {\n throw new Exception(\"The number of polygons must equal \" + NUMBER_OF_POLYGONS);\n }\n }\n updatePolygonValues();\n updatedRegionSymmetry();\n\n String startX = properties.getProperty(\"StartX\");\n String endX = properties.getProperty(\"EndX\");\n String startY = properties.getProperty(\"StartY\");\n String endY = properties.getProperty(\"EndY\");\n if (startX != null && endX != null && startY != null && endY != null) {\n double xStart = Double.parseDouble(startX);\n double xEnd = Double.parseDouble(endX);\n double yStart = Double.parseDouble(startY);\n double yEnd = Double.parseDouble(endY);\n return new double[] { xStart, xEnd, yStart, yEnd };\n }\n\n return new double[0];\n }", "title": "" }, { "docid": "cbe0b7220ca579478fedab52843ff932", "score": "0.5681933", "text": "public BasicProperties getBasicProperties() {\n\t\treturn _basicProperties;\n\t}", "title": "" }, { "docid": "70b5a888b2d91b5a43531d7bdce1f2f6", "score": "0.56812334", "text": "public MapMap[] getMapProperties() {\n return localMapProperties;\n }", "title": "" }, { "docid": "5270f99e21a101952293b69031d5beca", "score": "0.56654763", "text": "GeometryPropertyType getLod1Geometry();", "title": "" }, { "docid": "e62ef80594615d7c223215fdfdef83aa", "score": "0.5654744", "text": "@Override\n public java.lang.String getProperties() {\n return _dataViewComponents.getProperties();\n }", "title": "" }, { "docid": "1e71929cf126c2c02f48c3470f566f21", "score": "0.5642792", "text": "public Map<String, ObjectSchema> getAdditionalProperties();", "title": "" }, { "docid": "fb7ec87583b0f5f327fb5e527e2367cf", "score": "0.5624914", "text": "public java.util.HashMap getProperties() {\r\n\t\treturn properties;\r\n\t}", "title": "" }, { "docid": "ab4577ec1cba31731de7655181083fca", "score": "0.56198573", "text": "public void getProperties();", "title": "" }, { "docid": "eb3162587b1742032d66e7967cb4caa0", "score": "0.5599571", "text": "@Override\n public Map<String, String> pickle() {\n Map<String, String> map = new HashMap<String, String>();\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + SYMMETRIC_REGIONS, Boolean.toString(getSymmetricRegions()));\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGONS_FILLED, Boolean.toString(getPolygonsFilled()));\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + NORMALIZATION_FACTOR, Float.toString(getNormalizationFactor()));\n try {\n for (int index = 0; index < NUMBER_OF_POLYGONS; index++) {\n PolygonModel model = getPolygonModel(index);\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGON + index + \" \" + VISIBLE,\n Boolean.toString(model.getVisible()));\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGON + index + \" \" + TEXT, model.getText());\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGON + index + \" \" + VALUE, Double.toString(model.getValue()));\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGON + index + \" \" + POINT_COUNT,\n Integer.toString(model.getNumPoints()));\n for (int i = 0; i < model.getNumPoints(); i++) {\n Point3d point = model.getPoint(i);\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGON + index + \" \" + POINT + (i + 1) + \" \" + X,\n Double.toString(point.getX()));\n map.put(POLYGONS_REGION_MODEL_PREFIX + \" \" + POLYGON + index + \" \" + POINT + (i + 1) + \" \" + Y,\n Double.toString(point.getY()));\n }\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return map;\n }", "title": "" }, { "docid": "6a1150d75cc53ada6bffcb3feb0ab26d", "score": "0.55940276", "text": "P getProperties();", "title": "" }, { "docid": "20f8958c94c5eeff416fdc377cc356a7", "score": "0.5585458", "text": "public static int getPolygons()\n {\n return polygonsOnField.size();\n }", "title": "" }, { "docid": "1aebe6d3f053800b79f7d7bbd94ed51f", "score": "0.5564594", "text": "protected Vector getPropertyList() {\n return properties;\n }", "title": "" }, { "docid": "3b3c4c3d4665e5e40c042ca980714431", "score": "0.55453193", "text": "public Map getProperties();", "title": "" }, { "docid": "d2af8684d29b195224c8d0d74112c4d7", "score": "0.5536478", "text": "GeometryPropertyType getLod3Geometry();", "title": "" }, { "docid": "f40e5988e28aa70acdbf77d9484f3467", "score": "0.5534135", "text": "public Rectangle2D getBounds () {\r\n return _polygon.getBounds2D();\r\n }", "title": "" }, { "docid": "a336fddd0d1ded47e7fd868791ee650c", "score": "0.55291", "text": "public ObjectProperty<LineStyle> polyLineStyleProperty() {\n return polyLineStyle;\n }", "title": "" }, { "docid": "f7a5f4f0c1831604a23458e3d761a117", "score": "0.5525939", "text": "public ArrayList<RoadMapping.PolygonFloat> clippingPolygons() {\r\n return clippingPolygons;\r\n }", "title": "" }, { "docid": "2cce86781fb527bc800b6ff12d73475b", "score": "0.5509089", "text": "public String getPropertyName() {\n/* 85 */ return \"shape-rendering\";\n/* */ }", "title": "" }, { "docid": "9134f0685c4c6b038b9ead29b3c34f14", "score": "0.5499603", "text": "public GeoType getGeo();", "title": "" }, { "docid": "da0f06778fe3ff6ac0775d4c42171d25", "score": "0.5484117", "text": "IProperty getProperties();", "title": "" }, { "docid": "f814e734c2b9cd3f3314e425796fba86", "score": "0.546725", "text": "public java.lang.String getPolygonFill() {\n\t\treturn this.polygonFill;\n\t}", "title": "" }, { "docid": "67efced82a080ceb2c192754c138e6c6", "score": "0.5460275", "text": "public Properties getAdditionalProperties() {\n\t\treturn additionalProps;\n\t}", "title": "" }, { "docid": "eafc8268ff3a6f277c440fd6be56ade9", "score": "0.545935", "text": "public Map<String, Polygon> getCompletedPolygons() {\n return (currentImage != null) ? currentImage.getLabelsMap() : null;\n }", "title": "" }, { "docid": "ffff37f4ae2ab5ca290e033ff8a9efe0", "score": "0.54589874", "text": "public Map<String, String> getProperties() {\n\t\t\treturn new HashMap<String, String>();\n\t\t}", "title": "" }, { "docid": "e06bd634db3bb9c53dc840064de9bbc5", "score": "0.54576814", "text": "@NonNull\n Map<String, Property> getProperties();", "title": "" }, { "docid": "0727c8557f9bbcfb7ef2192ab421f034", "score": "0.5456703", "text": "public String[] getProperties()\n {\n return properties;\n }", "title": "" }, { "docid": "01b1d8545c8fed1aa525ec60d0adc571", "score": "0.5452039", "text": "public Map getProperties()\n {\n return properties;\n }", "title": "" }, { "docid": "1eba468cbc29da44e920b2975d006f69", "score": "0.5443703", "text": "public Collection<MobProperty> getAllProperties() {\n return _properties.values();\n }", "title": "" }, { "docid": "cbe1ce0d58fb56496351b12970323c19", "score": "0.544064", "text": "public Map<String, String> getProperties() {\n\t\treturn m_properties;\n\t}", "title": "" }, { "docid": "4a982d82cebe7bd7f1227eebcffbe073", "score": "0.54354286", "text": "public Collection<String> getProperties() {\n\t\treturn props.keySet();\n\t}", "title": "" }, { "docid": "94fe4d021e6ae3d20761f3899679340e", "score": "0.54298115", "text": "public Map<String, String> getProperties() {\n\t\treturn properties;\n\t}", "title": "" }, { "docid": "0991568d91c2c12fda9d838edc3d3373", "score": "0.542113", "text": "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "title": "" }, { "docid": "18ea9028ea15db5e5bec4768c44d6b29", "score": "0.5419001", "text": "public HashSet<String> generateGraphicalProperties(){\n\t\tHashSet<String> result = super.generateGraphicalProperties();\n\t\tresult.add(JRBaseLineBox.PROPERTY_BOTTOM_PADDING);\n\t\tresult.add(JRBaseLineBox.PROPERTY_LEFT_PADDING);\n\t\tresult.add(JRBaseLineBox.PROPERTY_PADDING);\n\t\tresult.add(JRBaseLineBox.PROPERTY_RIGHT_PADDING);\n\t\tresult.add(JRBaseLineBox.PROPERTY_TOP_PADDING);\n\t\tresult.add(JRBasePen.PROPERTY_LINE_COLOR);\n\t\tresult.add(JRBasePen.PROPERTY_LINE_STYLE);\n\t\tresult.add(JRBasePen.PROPERTY_LINE_WIDTH);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e2e6bf3f6c3137a188abd6d6d260622f", "score": "0.5406639", "text": "public Properties getProperties() {\n\t\treturn this.properties;\n\t}", "title": "" }, { "docid": "6bd965debb562b00e1bb8180779f3a97", "score": "0.54040986", "text": "@Override\n\tpublic List<IProperty> getProperties() throws EsfingeAOMException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f2e2d6e423d7b649a0cedb2fc7c41d54", "score": "0.540298", "text": "GeometryPropertyType getLod4Geometry();", "title": "" }, { "docid": "813e5ac28b1edbf26c01370f4792620a", "score": "0.53972095", "text": "public Map<String, String> getProperties() {\r\n\t\treturn properties;\r\n\t}", "title": "" }, { "docid": "813e5ac28b1edbf26c01370f4792620a", "score": "0.53972095", "text": "public Map<String, String> getProperties() {\r\n\t\treturn properties;\r\n\t}", "title": "" }, { "docid": "3fafb5a80ea9d71b60790a79d9da3397", "score": "0.5391157", "text": "public @Nonnull\n Map<String, Comparable> getProperties() {\n return properties;\n }", "title": "" }, { "docid": "2ef218ddae7784268398e990603aa521", "score": "0.5384171", "text": "public List getPropInfos() { return _propInfos; }", "title": "" }, { "docid": "1ff5c173fe6518dfce601ef38d4c5674", "score": "0.53805685", "text": "public byte[] getTheGeom() {\n return theGeom;\n }", "title": "" }, { "docid": "c3ee1c00b56c3a0fd92a44d0a78fbd79", "score": "0.5369955", "text": "protected final ObjectMap getProperties() {\n\t\treturn properties;\n\t}", "title": "" }, { "docid": "974832bf45009c2e36b93f35c3d4253d", "score": "0.53615254", "text": "public List<WrappedNode> getProperties() {\n\t\tif (properties == null) properties = coreGetProperties();\n\t\treturn properties;\n\t}", "title": "" }, { "docid": "ee94b05e3fbfdbb504015054df837e2e", "score": "0.5357347", "text": "public Map<String, BmmProperty<?>> getProperties() {\n return properties;\n }", "title": "" }, { "docid": "6677e2c7b34d6c0fbf546f6f9b378e0c", "score": "0.5354135", "text": "public Properties getProperties() {\n \treturn properties;\n }", "title": "" }, { "docid": "ec58efea308d36cd6de71f55704c64f8", "score": "0.5351591", "text": "@Override\r\n\tpublic String getGameProperties(GameState g) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5262a5af030349985d1998623ab8fd7a", "score": "0.53508645", "text": "public PolyMesh getMesh() {\n return subPolys;\n }", "title": "" }, { "docid": "a0ba46c2eff6bb9aa96cd8f293e2f87e", "score": "0.5343169", "text": "Collection getPossibleRDFProperties();", "title": "" }, { "docid": "5f24e070bf4464b43ad642c2e410c1f3", "score": "0.5334703", "text": "public PolygonSimple getOriginalPolygon() {\n\t\treturn oldPolygon;\n\t}", "title": "" }, { "docid": "e9ca50717a093a07668f8911cff3290b", "score": "0.533361", "text": "public String getString() {\n\t\t\n\t\treturn polyString;\n\t\t\n\t}", "title": "" }, { "docid": "a65fda36c80ca9bb003fc2c53c2eff01", "score": "0.5331139", "text": "public List<EntityProperty> getProperties();", "title": "" }, { "docid": "5614183bbce8b8c65118f99c19611945", "score": "0.5324085", "text": "public abstract Map<String, String> getProperties();", "title": "" }, { "docid": "4f4bfc0da4dc73f5d9f8afccae6ef055", "score": "0.53123003", "text": "public Collection<ObjectPropertyExpression> getAuxiliaryObjectProperties();", "title": "" }, { "docid": "e6cfc43a10536e335bcbad7697b67510", "score": "0.5307781", "text": "GeometryPropertyType getLod2Geometry();", "title": "" }, { "docid": "57082691545bce00664b548b2add1556", "score": "0.5302395", "text": "Map<String,String> getProperties();", "title": "" }, { "docid": "b7b98d953d6e0d36f6a9247f27663994", "score": "0.5300348", "text": "public Map<String, String> getProperties()\r\n {\r\n return properties;\r\n }", "title": "" }, { "docid": "bf7d92cfac50ad924d73a9030db0b18c", "score": "0.529415", "text": "@Nullable\n protected ProviderProperties getProperties() {\n return mInternalState.get().state.properties;\n }", "title": "" }, { "docid": "d4e570450f558dc00471e62d02908b66", "score": "0.52917814", "text": "public Properties getProperties() {\n\t\t\treturn properties;\n\t}", "title": "" }, { "docid": "f558edf7c2a2f71d2e840d5d1ac91c16", "score": "0.5289662", "text": "Properties getProperties();", "title": "" }, { "docid": "1f6fc0d62cef54593806241d975229a8", "score": "0.5287787", "text": "public Enumerable<EdmProperty> getAllProperties() {\r\n Enumerable<EdmProperty> e = (null == this.baseType ? null : this.baseType.getAllProperties());\r\n e = (null == e ? getScopedPropertiesEnumerable() : e.union(getScopedPropertiesEnumerable()));\r\n return e;\r\n }", "title": "" }, { "docid": "6d069dfbedafeca95001167a377c9a14", "score": "0.5285235", "text": "Geometry getGeo();", "title": "" }, { "docid": "d8c00f5c1e52f4e6fb535b152178770f", "score": "0.5284257", "text": "public ProjectionsModel getProjectionsModel() {\r\n return projectionsModel;\r\n }", "title": "" }, { "docid": "38bf575d42b75be776202ef91ae85aed", "score": "0.5281027", "text": "public Property[] getConfig();", "title": "" }, { "docid": "03eb659ce9bc09108d17053a1ed8db93", "score": "0.52795833", "text": "Map<String, Object> getProperties();", "title": "" }, { "docid": "ac358ad4459693a33439073324ccf079", "score": "0.52777797", "text": "public String toString() {\r\n return \"Polygon with lines \" + polygonList;\r\n }", "title": "" }, { "docid": "9d631e6d5b4eee1ce9739966fb6652cf", "score": "0.5274844", "text": "public SimplePolygonXZ getPolygonXZ();", "title": "" }, { "docid": "1356bb76a65882e2aa254651a829456b", "score": "0.52687037", "text": "@java.lang.Override\n\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }", "title": "" }, { "docid": "90a16eb6d41abdd41018c4168466dbd5", "score": "0.52676225", "text": "public Properties getProperties() ;", "title": "" }, { "docid": "d2cffbaff94fef316f0d71d648098c38", "score": "0.52630526", "text": "public ArrayList<MatrixProperties> identifyMatrixProperties() {\n if (canAccessMatrixValues() && checkPositive(true))\n props.add(MatrixProperties.Positive);\n else if (canAccessMatrixValues() && checkPositive(false))\n props.add(MatrixProperties.Negative);\n if (matrix.isSquare())\n squareMatrix();\n return props;\n }", "title": "" }, { "docid": "b4dae4dd1aabe9f9a2531b643f3f0673", "score": "0.5259845", "text": "@JsonProperty\n\tpublic ir.viratech.pond_ms.api.map_object.vector.dto.GISVectorObjectFullDTO getGisVectorObject() {\n\t\treturn this.gisVectorObject;\n\t}", "title": "" }, { "docid": "718f5650b84f5a3962475f7d58b66839", "score": "0.5259594", "text": "@Override\n public Collection<Property> getProperties() {\n Collection<Property> p = new ArrayList<Property>();\n for (String s : properties.keySet()) {\n p.add(new Property(s, properties.get(s)));\n }\n return p;\n }", "title": "" }, { "docid": "655ab989e8d27714406bbc8c37598b97", "score": "0.5242637", "text": "public java.util.HashMap getProperties()\r\n {\r\n return new java.util.HashMap();\r\n }", "title": "" }, { "docid": "00d80ef790c1279c12d64ef523450c1a", "score": "0.52413696", "text": "public String getPolygons(String name) {\n\t\tJsonValue value = polygons.get(name);\n\t return value != null ? value.asArray().toString() : \"NaN\";\n\t}", "title": "" }, { "docid": "b6c24ba04cf29c60edb049b1b3b22a1f", "score": "0.5238569", "text": "default List<Object> getProperties(Vertex v){\n return getProperties().stream()\n .map(p -> ElementUtils.getProperty(v, p))\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "636b701e763530b587c342c5b3ebde1b", "score": "0.52348316", "text": "public LineStyle getPolyLineStyle() {\n return polyLineStyleProperty().get();\n }", "title": "" }, { "docid": "e237fe30591a146b33138254006699fb", "score": "0.5227084", "text": "public float getVolymiml() {\n return volymiml;\n }", "title": "" } ]
7577c3d3917580e6b227cc7493549767
Set the MarkupSources for the panel to display (safe to call even if the panel hasn't been created yet)
[ { "docid": "6d2fea73c8d4a3f998bec645885ecebf", "score": "0.6768326", "text": "private void setPanel(String contentName, List<IndexedText> sources) {\n if (panel != null) {\n panel.setSources(contentName, sources);\n }\n }", "title": "" } ]
[ { "docid": "913af2a386017ae119b3bdebc1b6d970", "score": "0.58923626", "text": "private void initRemoteSourcesPanel() {\r\n\tremoteSourcesPanel = new JPanel();\r\n\tJLabel lbl1 = new JLabel(rb.getString(\"ssd.1\") + \":\");\r\n\tJButton loadRmtSrcTreeBtn = new JButton(actListener.getActionLoadSourcesRemote());\r\n\tJLabel lbl3 = new JLabel(rb.getString(\"ssd.3\") + \":\");\r\n\ttfRemoteAddressField.setMaximumSize(new Dimension(350, 25));\r\n\ttfRowZIPFileIdentification.setMaximumSize(new Dimension(320, 25));\r\n\tremoteScrollPane = new JScrollPane(remoteSourceTree);\r\n\tremoteScrollPanel = new JPanel();\r\n\tremoteScrollPanel.setLayout(new BorderLayout());\r\n\tremoteScrollPanel.add(remoteScrollPane);\r\n\tremoteScrollPanel.setMaximumSize(MAX_SIZE_SCROLL);\r\n\tGroupLayout l = new GroupLayout(remoteSourcesPanel);\r\n\tremoteSourcesPanel.setLayout(l);\r\n\tl.setAutoCreateContainerGaps(true);\r\n\tl.setAutoCreateGaps(true);\r\n\tl.setHorizontalGroup(l.createSequentialGroup()\r\n\t\t.addGroup(l.createParallelGroup()\r\n\t\t\t.addComponent(lbl1)\r\n\t\t\t.addComponent(tfRemoteAddressField)\r\n\t\t\t.addComponent(lbl3)\r\n\t\t\t.addComponent(tfRowZIPFileIdentification)\r\n\t\t\t.addComponent(loadRmtSrcTreeBtn))\r\n\t\t.addComponent(remoteScrollPanel));\r\n\tl.setVerticalGroup(l.createSequentialGroup()\r\n\t\t.addGroup(l.createParallelGroup()\r\n\t\t\t.addGroup(l.createSequentialGroup()\r\n\t\t\t\t.addComponent(lbl1)\r\n\t\t\t\t.addComponent(tfRemoteAddressField)\r\n\t\t\t\t.addComponent(lbl3)\r\n\t\t\t\t.addComponent(tfRowZIPFileIdentification)\r\n\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t.addComponent(loadRmtSrcTreeBtn))\r\n\t\t\t.addComponent(remoteScrollPanel)));\r\n }", "title": "" }, { "docid": "8236c097c31fa6b7c737688b104de351", "score": "0.5702568", "text": "public void setUpPanelIntoContainer() {\n con.add(mainTextPanel);\n con.add(userTextPanel);\n con.add(choiceButtonPanel);\n con.add(playerPanel);\n }", "title": "" }, { "docid": "b075788902fc2dfeec62342f57ce3b6a", "score": "0.5682169", "text": "private void initLocalSourcesPanel() {\r\n\tlocalSourcesPanel = new JPanel();\r\n\tlocalFolderChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\ttfLocalAddressField.setMaximumSize(new Dimension(320, 25));\r\n\tJLabel lbl5 = new JLabel(rb.getString(\"ssd.1\") + \":\");\r\n\tJButton selectLclFolderBtn = new JButton(actListener.getActionChooseLocalFolder());\r\n\tJButton loadLclSrcTreeBtn = new JButton(actListener.getActionLoadSourcesLocal());\r\n\tlocalScrollPane = new JScrollPane(localSourceTree);\r\n\tlocalScrollPane.setMaximumSize(MAX_SIZE_SCROLL);\r\n\tlocalScrollPanel = new JPanel();\r\n\tlocalScrollPanel.setLayout(new BorderLayout());\r\n\tlocalScrollPanel.add(localScrollPane, BorderLayout.CENTER);\r\n\tGroupLayout l1 = new GroupLayout(localSourcesPanel);\r\n\tlocalSourcesPanel.setLayout(l1);\r\n\tl1.setAutoCreateContainerGaps(true);\r\n\tl1.setAutoCreateGaps(true);\r\n\tl1.setHorizontalGroup(l1.createSequentialGroup()\r\n\t\t.addGroup(l1.createParallelGroup()\r\n\t\t\t.addComponent(lbl5)\r\n\t\t\t.addComponent(tfLocalAddressField)\r\n\t\t\t.addComponent(selectLclFolderBtn, Alignment.TRAILING)\r\n\t\t\t.addComponent(loadLclSrcTreeBtn))\r\n\t\t.addComponent(localScrollPanel));\r\n\tl1.setVerticalGroup(l1.createSequentialGroup()\r\n\t\t.addGroup(l1.createParallelGroup()\r\n\t\t\t.addGroup(l1.createSequentialGroup()\r\n\t\t\t\t.addComponent(lbl5)\r\n\t\t\t\t.addComponent(tfLocalAddressField)\r\n\t\t\t\t.addComponent(selectLclFolderBtn)\r\n\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,\r\n\t\t\t\t\tShort.MAX_VALUE)\r\n\t\t\t\t.addComponent(loadLclSrcTreeBtn))\r\n\t\t\t.addComponent(localScrollPanel)));\r\n }", "title": "" }, { "docid": "41ae35fcac587f318a8919b2d46ee463", "score": "0.56075746", "text": "public void loadSalesPanel() {\n loadCenterPanel(\"/views/Sale.fxml\");\n }", "title": "" }, { "docid": "ddc590f33f6075724f97fb0065d2e2a9", "score": "0.55983025", "text": "private void initXformsSource(){\n\t\ttabs.add(txtXformsSource, LocaleText.get(\"xformsSource\"));\n\t\tFormUtil.maximizeWidget(txtXformsSource);\n\t}", "title": "" }, { "docid": "c93f957b43be34f6bbcd5410d20c1817", "score": "0.5579539", "text": "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstTextField);\n\t}", "title": "" }, { "docid": "fc0f0a18449d99ffcfbdbffc93c84e0f", "score": "0.55195445", "text": "public void loadSupplierPanel() {\n loadCenterPanel(\"/views/Supplier.fxml\");\n }", "title": "" }, { "docid": "dee652a6105ba6f76f65dfa3443c6ec5", "score": "0.5514247", "text": "private void setPanel(){\r\n}", "title": "" }, { "docid": "06490c598187311d3aa39d8a33909b7c", "score": "0.55004376", "text": "protected void setupAndDisplay()\n\t{\n\t\tsetupPanels();\n\t\taddMenus();\n\t\tcentreView();\n\t\tshowView();\n\t}", "title": "" }, { "docid": "d98c6468dde2a49aa7ee0ed8fbabb3b8", "score": "0.5439143", "text": "public void setDataSource(XADataSource dataSource) {\n source = dataSource;\n }", "title": "" }, { "docid": "9104a1c1ada413c5ffdbcc4b03caeac4", "score": "0.53680366", "text": "private void loadPanels() {\r\n panel1 = new Panel1_GameSettings();\r\n panel2 = new Panel2_HighScore();\r\n panel3 = new Panel3_Settings();\r\n\r\n add(panel1);\r\n add(panel2);\r\n add(panel3);\r\n }", "title": "" }, { "docid": "0432894a3cc6d4037b2f901ba1309f37", "score": "0.5363741", "text": "void setDisplaysource(java.lang.String displaysource);", "title": "" }, { "docid": "0432894a3cc6d4037b2f901ba1309f37", "score": "0.5363741", "text": "void setDisplaysource(java.lang.String displaysource);", "title": "" }, { "docid": "045a103ae65a6a42416a0558cbaed4bf", "score": "0.53534204", "text": "private void initLocalSingleSourcePanel() {\r\n\tlocalSingleSourcePanel = new JPanel();\r\n\tJLabel lbl7 = new JLabel(rb.getString(\"ssd.8\") + \":\");\r\n\tJButton selectSnglLclFolderBtn = new JButton(actListener.getActionChooseLocalFolderSingleModel());\r\n\ttfSingleLocalAddressField.setMaximumSize(new Dimension(500, 25));\r\n\tGroupLayout l2 = new GroupLayout(localSingleSourcePanel);\r\n\tlocalSingleSourcePanel.setLayout(l2);\r\n\tl2.setAutoCreateContainerGaps(true);\r\n\tl2.setAutoCreateGaps(true);\r\n\tl2.setHorizontalGroup(l2.createSequentialGroup()\r\n\t\t.addGroup(l2.createParallelGroup()\r\n\t\t\t.addComponent(lbl7)\r\n\t\t\t.addComponent(tfSingleLocalAddressField)\r\n\t\t\t.addComponent(selectSnglLclFolderBtn, Alignment.TRAILING)));\r\n\tl2.setVerticalGroup(l2.createSequentialGroup()\r\n\t\t.addComponent(lbl7)\r\n\t\t.addComponent(tfSingleLocalAddressField)\r\n\t\t.addComponent(selectSnglLclFolderBtn));\r\n }", "title": "" }, { "docid": "e0882d3b1fc8241b96f9b3bf3d11c63c", "score": "0.5337066", "text": "public void setDataSource(DataSource dataSource);", "title": "" }, { "docid": "bf8f30b3b64c14d0de631b7837d424e6", "score": "0.53253764", "text": "public ReportVisualPanel1(ReportWizardPanel1 wizPanel, Map<String, ReportModuleConfig> moduleConfigs) {\n this.wizPanel = wizPanel;\n this.moduleConfigs = moduleConfigs;\n initComponents();\n configurationPanel.setLayout(new BorderLayout());\n descriptionTextPane.setEditable(false);\n initModules();\n }", "title": "" }, { "docid": "2abea496c4e9e4cb8bb802d98e84f2e5", "score": "0.53124774", "text": "HtmlViewer() {\n initComponents();\n this.add(htmlPanel);\n }", "title": "" }, { "docid": "59f0be45b23f2e86f65659305188d6d4", "score": "0.52500975", "text": "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setEnabled(true);\n }", "title": "" }, { "docid": "042654374c0f2aa2b5963964507ccd2e", "score": "0.52366537", "text": "void xsetDisplaysource(org.apache.xmlbeans.XmlString displaysource);", "title": "" }, { "docid": "042654374c0f2aa2b5963964507ccd2e", "score": "0.52366537", "text": "void xsetDisplaysource(org.apache.xmlbeans.XmlString displaysource);", "title": "" }, { "docid": "3ef310a5e693ef3745b2659e1cddea89", "score": "0.52358925", "text": "public ExpendituresPanel() {\n initComponents();\n initTextBoxesListener();\n startUpSettings();\n policySetting();\n }", "title": "" }, { "docid": "ed3105f65328a5af033a43eaf5172cb8", "score": "0.52299815", "text": "public ContentPanel() {\n initComponents();\n loadConf();\n\n siteLabels = new ArrayList<JLabel>();\n siteCheckBoxes = new ArrayList<JCheckBox>();\n\n communicationServer = new CommunicationServer(this);\n\n businessApplyTM = new BusinessApplyTableModel(this);\n tbBusinessApply.setModel(businessApplyTM);\n tbBusinessApply.getColumnModel().getColumn(6).setCellEditor(new ButtonEditor(this, communicationServer));\n tbBusinessApply.getColumnModel().getColumn(6).setCellRenderer(new ButtonRenderer());\n tbBusinessApply.getColumnModel().getColumn(7).setCellEditor(new ButtonEditor(this, communicationServer));\n tbBusinessApply.getColumnModel().getColumn(7).setCellRenderer(new ButtonRenderer());\n\n businessRunningTM = new BusinessRunningTableModel(this);\n tbBusinessRunning.setModel(businessRunningTM);\n tbBusinessRunning.getColumnModel().getColumn(7).setCellEditor(new ButtonEditor(this, communicationServer));\n tbBusinessRunning.getColumnModel().getColumn(7).setCellRenderer(new ButtonRenderer());\n tbBusinessRunning.getColumnModel().getColumn(8).setCellEditor(new ButtonEditor(this, communicationServer));\n tbBusinessRunning.getColumnModel().getColumn(8).setCellRenderer(new ButtonRenderer());\n\n addLabels();\n }", "title": "" }, { "docid": "6d3ce48c5c6cc5219357ed9c7506297b", "score": "0.5224243", "text": "private void initChartPanels(){\n\t\tPlatform.runLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitLineChart(fxLineChartPanel);\n\t\t\t\tinitScatterChart(fxScatterChartPanel);\n\t\t\t\tinitBarChart(fxBarChartPanel);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "66621ca82caa028f308c489b574e78c7", "score": "0.52061325", "text": "protected void displaySources() {\n Intent sourcesIntent = new Intent(this, SourcesActivity.class);\n startActivity(sourcesIntent);\n }", "title": "" }, { "docid": "7672e1e3432f31d0a9710dee82e27307", "score": "0.5194757", "text": "public ConfigPanel() {\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "bdd69513bafd1ac249c0bff0fdd3260d", "score": "0.51776016", "text": "private void setupPanels() {\n\t\ttitle = new JPanel();\n\t\tdisplay = new JPanel();\n\t\tdisplay.setLayout(new BorderLayout());\n\t\t// display.setPreferredSize(new Dimension(400, 200));\n\t\tbuttons = new JPanel(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tbuttons.add(toolBar, c);\n\t\tadd(title, BorderLayout.NORTH);\n\t\tadd(display, BorderLayout.CENTER);\n\t\tadd(buttons, BorderLayout.EAST);\n\t}", "title": "" }, { "docid": "5880e82a98d97ff28f03c267e4dc5ad9", "score": "0.5165811", "text": "protected ControlsPanel() {\n super();\n myLabels = new LinkedHashMap<String, JLabel>();\n setUpComponents();\n }", "title": "" }, { "docid": "d164e34db867dd26c7691a7d159d796e", "score": "0.5145973", "text": "public void loadBusinessOverviewPanel() {\n loadCenterPanel(\"/views/BusinessOverview.fxml\");\n }", "title": "" }, { "docid": "d2833793b7e398df1a0298c273aaefb0", "score": "0.51352286", "text": "private void initializePanels() {\r\n \t\t// Adding Select data category pane\r\n \t\ttreeViewScrollPane = new JScrollPane(datalistTree);\r\n \t\ttreeViewScrollPane.setPreferredSize(new Dimension(250, 200));\r\n \t\tstackedBox.addBox(\"Select Data Category\", treeViewScrollPane, \"mysearchqueries_icon.gif\");\r\n \r\n \t\t// Adding Filter data category panel\r\n \t\tdataFilterPanel = new Cab2bPanel();\r\n \t\tdataFilterPanel.setPreferredSize(new Dimension(250, 200));\r\n \t\tdataFilterPanel.setOpaque(false);\r\n \t\tstackedBox.addBox(\"Filter Data \", dataFilterPanel, \"mysearchqueries_icon.gif\");\r\n \r\n \t\t// Adding Analyse data panel\r\n \t\tanalyseDataPanel = new Cab2bPanel();\r\n \t\tanalyseDataPanel.setPreferredSize(new Dimension(250, 150));\r\n \t\tanalyseDataPanel.setOpaque(false);\r\n \t\tstackedBox.addBox(\"Analyze Data \", analyseDataPanel, \"mysearchqueries_icon.gif\");\r\n \r\n \t\t// Adding Visualize data panel\r\n \t\tvisualiseDataPanel = new Cab2bPanel();\r\n \t\tvisualiseDataPanel.setPreferredSize(new Dimension(250, 200));\r\n \t\tvisualiseDataPanel.setOpaque(false);\r\n \t\tstackedBox.addBox(\"Visualize Data \", visualiseDataPanel, \"mysearchqueries_icon.gif\");\r\n \r\n \t\t// Set the type of charts to be displayed.\r\n \t\tVector<ChartType> chartTypes = new Vector<ChartType>();\r\n \t\tchartTypes.add(ChartType.BAR_CHART);\r\n \t\tchartTypes.add(ChartType.LINE_CHART);\r\n \t\tchartTypes.add(ChartType.SCATTER_PLOT);\r\n \t\tsetChartTypesForVisualiseDataPanel(chartTypes);\r\n \r\n\t\tstackedBox.setPreferredSize(new Dimension(250, 500));\r\n\t\tstackedBox.setMinimumSize(new Dimension(250, 500));\r\n\t\tthis.add(stackedBox);\r\n \t}", "title": "" }, { "docid": "69a857d189cd96fcb14d1c700efe15ce", "score": "0.5122947", "text": "public void setupPanels() {\r\n textPanel = new JPanel();\r\n textPanel.setLayout( new GridLayout( 1, 8 ) );\r\n\r\n buttonPanel = new JPanel();\r\n\r\n myChart = new ChartPanel( this );\r\n\r\n }", "title": "" }, { "docid": "36f18ce03628bdc92333ce2a8d897c87", "score": "0.5121705", "text": "public void setDataSource(DataSource ds);", "title": "" }, { "docid": "36f18ce03628bdc92333ce2a8d897c87", "score": "0.5121705", "text": "public void setDataSource(DataSource ds);", "title": "" }, { "docid": "36f18ce03628bdc92333ce2a8d897c87", "score": "0.5121705", "text": "public void setDataSource(DataSource ds);", "title": "" }, { "docid": "36f18ce03628bdc92333ce2a8d897c87", "score": "0.5121705", "text": "public void setDataSource(DataSource ds);", "title": "" }, { "docid": "0ec015cd2a7a29ba54e83171cc428b4b", "score": "0.51202214", "text": "@Override\n\tpublic void loadExtSourcesDefinitions(PerunSession sess) {\n\t\ttry {\n\t\t\t// Load the XML file\n\t\t\tBufferedInputStream is = new BufferedInputStream(new FileInputStream(ExtSourcesManager.CONFIGURATIONFILE));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(is);\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\t// Check if the root element is \"extSources\"\n\t\t\tif (!doc.getDocumentElement().getNodeName().equals(\"extSources\")) {\n\t\t\t\tthrow new InternalErrorException(\"perun-extSources.xml doesn't contain extSources as root element\");\n\t\t\t}\n\n\t\t\t// Get all defined extSources\n\t\t\tNodeList extSourcesNodes = doc.getElementsByTagName(\"extSource\");\n\t\t\tfor (int extSourceSeq = 0; extSourceSeq < extSourcesNodes.getLength(); extSourceSeq++) {\n\n\t\t\t\t// Get each extSource\n\t\t\t\tNode extSourceNode = extSourcesNodes.item(extSourceSeq);\n\t\t\t\tif (extSourceNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tElement extSourceElement = (Element) extSourceNode;\n\n\t\t\t\t\t// Get extSource name\n\t\t\t\t\tString extSourceName = extSourceElement.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getNodeValue();\n\t\t\t\t\tif (extSourceName == null) {\n\t\t\t\t\t\tthrow new InternalErrorException(\"extSource doesn't have defined name\");\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get extSource type\n\t\t\t\t\tString extSourceType = extSourceElement.getElementsByTagName(\"type\").item(0).getChildNodes().item(0).getNodeValue();\n\t\t\t\t\tif (extSourceType == null) {\n\t\t\t\t\t\tthrow new InternalErrorException(\"extSource \" + extSourceName + \" doesn't have defined type\");\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get all extSource attributes\n\t\t\t\t\tNodeList attributeNodes = extSourceElement.getElementsByTagName(\"attribute\");\n\n\t\t\t\t\tMap<String, String> attributes = new HashMap<>();\n\t\t\t\t\tfor (int attributeSeq = 0; attributeSeq < attributeNodes.getLength(); attributeSeq++) {\n\t\t\t\t\t\tElement elem = (Element) attributeNodes.item(attributeSeq);\n\n\t\t\t\t\t\tif (elem.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\tString attrName = elem.getAttribute(\"name\");\n\t\t\t\t\t\t\tString attrValue = null;\n\t\t\t\t\t\t\tif (elem.getChildNodes() != null && elem.getChildNodes().item(0) != null) {\n\t\t\t\t\t\t\t\tattrValue = elem.getChildNodes().item(0).getNodeValue();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tattributes.put(attrName, attrValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Check if the extSource\n\t\t\t\t\ttry {\n\t\t\t\t\t\tExtSource extSource;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\textSource = this.getExtSourceByName(sess, extSourceName);\n\t\t\t\t\t\t\textSource.setName(extSourceName);\n\t\t\t\t\t\t\textSource.setType(extSourceType);\n\n\t\t\t\t\t\t\t// ExtSource exists, so check values and potentionally update it\n\t\t\t\t\t\t\tself.updateExtSource(sess, extSource, attributes);\n\n\t\t\t\t\t\t} catch (ExtSourceNotExistsException e) {\n\t\t\t\t\t\t\t// ExtSource doesn't exist, so create it\n\t\t\t\t\t\t\textSource = new ExtSource();\n\t\t\t\t\t\t\textSource.setName(extSourceName);\n\t\t\t\t\t\t\textSource.setType(extSourceType);\n\t\t\t\t\t\t\tself.createExtSource(sess, extSource, attributes);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\t\tthrow new InternalErrorException(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tlog.warn(\"No external source configuration file found.\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Cannot initialize ExtSourceManager.\");\n\t\t\tthrow new InternalErrorException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "6ec65dcf5cad545e1cdaab0b4bba6bcb", "score": "0.5074604", "text": "private void setDataSourceMgmtButtonEnablements() {\n\t\t// Get the list of selected table rows\n\t\tList<String> selectedSources = getDataSourceTableNames(true);\n\n\t\t// DeleteSourceButton - If anything is checked, the button is enabled\n\t\tif(selectedSources.size()>0) {\n\t\t\tdeleteSourceButton.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteSourceButton.setEnabled(false);\n\t\t}\n\t\t\n\t\t// EditSourceButton - If one row is checked, the button is enabled\n\t\tif(selectedSources.size()==1) {\n\t\t\teditSourceButton.setEnabled(true);\n\t\t} else {\n\t\t\teditSourceButton.setEnabled(false);\n\t\t}\n\t\t\n\t\t// CopySourceButton - If one row is checked, the button is enabled\n\t\tif(selectedSources.size()==1) {\n\t\t\tcopySourceButton.setEnabled(true);\n\t\t} else {\n\t\t\tcopySourceButton.setEnabled(false);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f8d5ca92f4494c63ced389fe113efbb2", "score": "0.5053527", "text": "private void setComponents() {\n\n setIcon();\n setpnInfor();\n List<MealPanel> mealPanels = products.stream()\n .map(MealPanel::new)\n .collect(Collectors.toList());\n addComponentsIn_pnProduct(mealPanels);\n setpnBotton();\n setlbTableName();\n setcbKind();\n setcbSort();\n setpnRight_Botton();\n setpnCaledar();\n setbtOrder();\n }", "title": "" }, { "docid": "e7cfcf40acecfb888c72036d2ab816cb", "score": "0.50432205", "text": "private void initContainers() {\n\t\tselection.setLayout(new GridLayout(selectorsNum, 1));\n\t\tselection.setVisible(true);\n\t\titems.setLayout(new GridLayout(itemsNum, 1));\n\t\titems.setVisible(false);\n\t\tvalues.setLayout(new GridLayout(optionsNum, 2));\n\t\tvalues.setVisible(true);\n\t}", "title": "" }, { "docid": "cd7f11bd9a2f850ab57bffe2ebd616a0", "score": "0.50311303", "text": "private void createUIComponents() {\n rootPanel = this;\n }", "title": "" }, { "docid": "5be4611eaca0087d2a7839a6a164eb2c", "score": "0.5020125", "text": "public Segment2Step1ContentPanel_All()\n {\n initComponents();\n }", "title": "" }, { "docid": "48be9db7b66688f65deb56e1ad6ed3bc", "score": "0.50147724", "text": "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"language\").getString(\"title_transfers\"));\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(transferList);\n }", "title": "" }, { "docid": "40f5bdd2744b05e20a3832878b3e7f8f", "score": "0.5011291", "text": "private void initDisplayFeaturesPanel() {\n featuresPanel = new JPanel();\n featuresPanel.setBackground(Color.lightGray);\n featuresPanel.setBounds(0, 0, 275, 800);\n featuresPanel.setLayout(new BoxLayout(featuresPanel, BoxLayout.Y_AXIS));\n\n //Features Panel text\n featuresLabel = new JTextArea();\n featuresLabel.setEditable(false);\n featuresLabel.setLineWrap(true);\n featuresLabel.setBackground(Color.lightGray);\n featuresPanel.add(featuresLabel);\n }", "title": "" }, { "docid": "84cb92b843dd4eb40ec265258ca53a2a", "score": "0.50111985", "text": "private void populateUIElements() {\n // Setup Typefaces for all text based UI elements\n settingsOptionTextView.setTypeface(sourceSansProLight);\n\n setupSettingsOptionRelativeLayout();\n setupSettingsOptionTextView();\n setupSettingsOptionImageView();\n }", "title": "" }, { "docid": "84b4cc1767f6a6aa88b9ccd38c8b77ce", "score": "0.5010768", "text": "public AddPanel() {\n initComponents();\n \n data = new Data();\n db = new DbManager();\n }", "title": "" }, { "docid": "f697d1df3a5b6ae9f27273449a648955", "score": "0.50015974", "text": "public PersistenceClientSetupPanelVisual(WizardDescriptor wizard) {\n this.wizard = wizard;\n initComponents();\n jpaPackageComboBoxEditor = (JTextComponent) jpaPackageComboBox.getEditor().getEditorComponent();\n jpaPackageComboBoxEditor.getDocument().addDocumentListener(this);\n jsfPackageComboBoxEditor = (JTextComponent) jsfPackageComboBox.getEditor().getEditorComponent();\n jsfPackageComboBoxEditor.getDocument().addDocumentListener(this);\n converterPackageComboBoxEditor = (JTextComponent) converterPackageComboBox.getEditor().getEditorComponent();\n converterPackageComboBoxEditor.getDocument().addDocumentListener(this);\n jsfFolder.getDocument().addDocumentListener(this);\n genericIncludeFolder.getDocument().addDocumentListener(this);\n entityIncludeFolder.getDocument().addDocumentListener(this);\n localizationBundleTextField.getDocument().addDocumentListener(this);\n jsfMobileFolder.getDocument().addDocumentListener(this);\n genericMobileIncludeFolder.getDocument().addDocumentListener(this);\n entityMobileIncludeFolder.getDocument().addDocumentListener(this);\n }", "title": "" }, { "docid": "eafe0a7fc01b78f0c6a467800992d45e", "score": "0.49989712", "text": "public AggregatorVisualPanel3() {\n initComponents();\n String datasourcefileObjectPath = alternativeMethod();\n// try {\n// // this way depends on the abailablity of the necessary data in the\n// // NbPreference module.\n// ClassLoader classLoader = Lookup.getDefault().lookup(ClassLoader.class);\n// if (classLoader != null) {\n// Preferences preferences = NbPreferences.forModule(classLoader.loadClass(\"de.fub.mapsforge.project.datasource.MapsDatasourceNodeFactory\"));\n// datasourcefileObjectPath = preferences.get(\"GPX Datasource\", null);\n// if (datasourcefileObjectPath == null) {\n// throw new FileNotFoundException(FILE_NOT_FOUND_MESSAGE);\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// datasourcefileObjectPath = alternativeMethod();\n// } catch (FileNotFoundException ex) {\n// datasourcefileObjectPath = alternativeMethod();\n// }\n try {\n if (datasourcefileObjectPath != null) {\n File file = new File(datasourcefileObjectPath);\n if (file.exists()) {\n FileObject fileObject = FileUtil.toFileObject(file);\n DataObject dataObject1 = DataObject.find(fileObject);\n explorerManager.setRootContext(new FilterNode(dataObject1.getNodeDelegate(), new FilterNode.Children(dataObject1.getNodeDelegate())));\n }\n } else {\n throw new FileNotFoundException(FILE_NOT_FOUND_MESSAGE);\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }", "title": "" }, { "docid": "3446a145abd52574faffac53e821f339", "score": "0.4995698", "text": "protected abstract void buildConfigurationPanel();", "title": "" }, { "docid": "300d48239123377b5c647777bd98e291", "score": "0.49945134", "text": "private void configureComponentsPanel() {\n\t\tgetComponentsPanel().add(getReorderVariablesPanel());\n\t}", "title": "" }, { "docid": "79a7136c95b8e0afe1fd8ecaea873b01", "score": "0.49752203", "text": "public void initWidgets() {\n\t\tsetLayout(new GridLayout(2, 2, 8, 8));\n\t\tfor (int i = 0; i < subPanels.length; i++) {\n\t\t\tsubPanels[i] = new SubStatPanel(statsModel, mapModel, this);\n\t\t\tadd(subPanels[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "c192708d6adee61935d2fa05dc0827e2", "score": "0.4971247", "text": "public ConfigurationPanel() {\n initComponents();\n }", "title": "" }, { "docid": "5b77da6a559efcefbe430d295aec1362", "score": "0.4959001", "text": "private void createPanelWithInstruments() {\n paneWithInstruments = new GridPane();\n int temp = 0;\n int instumentNumb = 0;\n int columnIndex = 0;\n for (int i = 0, j = 0; i < names.length; i++) {\n Rectangle border = new Rectangle(150, 30);\n border.setFill(Color.web(\"#757575\"));\n Label lab = new Label(names[i]);\n lab.setFont(new Font(16));\n lab.setTextFill(Color.WHITE);\n StackPane pane = new StackPane();\n pane.getChildren().addAll(border, lab);\n paneWithInstruments.add(pane, columnIndex, 0);\n\n for (int k = 0; k < 8; k++) {\n TileInstrument tileInstrument = new TileInstrument(\n instumentNumb,\n instruments[instumentNumb++].getName(),\n paneWithInstruments,\n midiChannel,\n instruments);\n paneWithInstruments.add(tileInstrument, columnIndex, k + 1);\n }\n\n columnIndex += 1;\n }\n\n paneWithInstruments.setPadding(new Insets(5));\n paneWithInstruments.setHgap(2);\n paneWithInstruments.setVgap(2);\n spinerWithInstruments = new ScrollPane(paneWithInstruments);\n spinerWithInstruments.setPrefViewportHeight(180);\n spinerWithInstruments.setPrefViewportWidth(450);\n }", "title": "" }, { "docid": "065dfda10ab7c492750e012d4a5fdded", "score": "0.49552873", "text": "public SpratDisplayPanel() {\n initComponents();\n }", "title": "" }, { "docid": "544d685ada06c2431c269c27b3a65ce5", "score": "0.4938125", "text": "public ReportNoPanel() {\r\n initComponents();\r\n initOthers();\r\n setupEvents();\r\n }", "title": "" }, { "docid": "e9ccab826bec5cff9e38e7ed2b6d178c", "score": "0.49307218", "text": "public BillViewerPanel() {\n initComponents();\n }", "title": "" }, { "docid": "23bb66f639dc9a8e58aef7c934cd07e4", "score": "0.492344", "text": "public MapDesignPanel() {\n initComponents();\n addMouseMotionListener(this);\n addMouseListener(this);\n initializeMap();\n }", "title": "" }, { "docid": "7be3122621d95221f0ace608001b49f4", "score": "0.4922301", "text": "private void init() {\n List<Product> list = servisProduct.getAllProducts();\n for (Product prod : list) {\n products.add(new ProductViewer(prod));\n }\n Label label = new Label(\"Catalog Products\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "title": "" }, { "docid": "139182ab3297c31d47b1c9d39a245da9", "score": "0.49213275", "text": "@Override\r\n\tpublic void initAditionalPanelElements() {\n\t\tsetDataset(new XYZSeriesCollection());\r\n\t\tinit3DSerie();\r\n\t\tJPanel variablesPanel = new JPanel();\r\n\t\tvariablesPanel.setLayout(new GridBagLayout());\r\n\t\t((GridBagLayout)variablesPanel.getLayout()).columnWidths = new int[] {0, 0};\r\n\t\t((GridBagLayout)variablesPanel.getLayout()).rowHeights = new int[] {0, 0};\r\n\t\t((GridBagLayout)variablesPanel.getLayout()).columnWeights = new double[] {1.0, 1.0, 1.0};\r\n\t\t((GridBagLayout)variablesPanel.getLayout()).rowWeights = new double[] {1.0, 1.0};\r\n\t\tvariablesPanel.setBorder(new TitledBorder(\"Chart Variables\"));\r\n\t\tJLabel xlab = new JLabel(\"X Axis:\");\r\n\t\tJLabel ylab = new JLabel(\"Y Axis:\");\r\n\t\tJLabel zlab = new JLabel(\"Z Axis:\");\r\n\t\tsetxComboBox(new JComboBox<String>());\r\n\t\tsetyComboBox(new JComboBox<String>());\r\n\t\tsetzComboBox(new JComboBox<String>());\r\n\t\tfor(int i = 0; i < getVariables().size(); i++) {\r\n\t\t\txComboBox.addItem(getVariables().get(i).getValidName());\r\n\t\t\tyComboBox.addItem(getVariables().get(i).getValidName());\r\n\t\t\tzComboBox.addItem(getVariables().get(i).getValidName());\r\n\t\t}\r\n\t\txComboBox.setSelectedItem(xSelected.getValidName());\r\n\t\tyComboBox.setSelectedItem(ySelected.getValidName());\r\n\t\tzComboBox.setSelectedItem(zSelected.getValidName());\r\n\t\tvariablesPanel.add(xlab, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tvariablesPanel.add(ylab, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tvariablesPanel.add(zlab, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tvariablesPanel.add(xComboBox, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tvariablesPanel.add(yComboBox, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tvariablesPanel.add(zComboBox, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tgetMonitoringPanel().add(variablesPanel, new GridBagConstraints(0, 4, 6, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\txComboBox.addActionListener(this);\r\n\t\tyComboBox.addActionListener(this);\r\n\t\tzComboBox.addActionListener(this);\r\n\t}", "title": "" }, { "docid": "358e78b86dc4ef587cda0c6ee85e0767", "score": "0.4915696", "text": "public ServicesSalePanel() {\n database = new Database();\n database.connect();\n date = null;\n customerId = \"1\";\n \n common = new Common();\n servicesInSale = 0;\n initComponents();\n \n loadServices();\n \n AutoCompleteDecorator.decorate(serviceName);\n \n }", "title": "" }, { "docid": "853707021c03edaf2e3a115a301f3d32", "score": "0.4915579", "text": "public void setPanel(String panel){\n switch (panel){\n case \"add\":\n changePanel(pnlAddRental);\n update(UniSystems.getInstance().getStaffList(), lstStaff);\n break;\n case \"return\":\n changePanel(pnlReturnRental);\n populateReturnData();\n break;\n case \"review\":\n changePanel(pnlReviewRental);\n allRentals();\n lblRegistration.setVisible(false);\n lblStaffID.setVisible(false);\n lblStartDate.setVisible(false);\n lblExpected.setVisible(false);\n lblActual.setVisible(false);\n lblNotes.setVisible(false);\n break;\n }\n }", "title": "" }, { "docid": "fce125653ddd2a6622cb81e73a247cc4", "score": "0.49133602", "text": "void setDataSource(DataSource ds);", "title": "" }, { "docid": "af23d2644db76318edec393fc68d475e", "score": "0.49015653", "text": "private void initMainPanels() {\n\t\tthis.optionsPanel_ = new JPanel();\r\n\t\tthis.optionsPanel_.setPreferredSize(new Dimension(this.xWidth, 100));\r\n\t\tthis.optionsPanel_.setLocation(0, 0);\r\n\t\tthis.optionsPanel_.setBackground(Project.standard);\r\n\t\tthis.optionsPanel_.setVisible(true);\r\n\t\tthis.optionsPanel_.setLayout(null);\r\n\t\tadd(this.optionsPanel_, \"First\");\r\n\r\n\t\tthis.displayP_ = new JPanel();\r\n\t\tthis.displayP_.setLocation(0, 0);\r\n\t\tthis.displayP_.setPreferredSize(new Dimension(this.xWidth, 8000));\r\n\t\tthis.displayP_.setSize(getPreferredSize());\r\n\t\tthis.displayP_.setBackground(Project.getBackColor_());\r\n\t\tthis.displayP_.setVisible(true);\r\n\t\tthis.displayP_.setLayout(null);\r\n\r\n\t\tthis.showJPanel_ = new JScrollPane(this.displayP_);\r\n\t\tthis.showJPanel_.setVisible(true);\r\n\t\tthis.showJPanel_.setVerticalScrollBarPolicy(20);\r\n\t\tthis.showJPanel_.setHorizontalScrollBarPolicy(30);\r\n\r\n\t\tadd(\"Center\", this.showJPanel_);\r\n\t}", "title": "" }, { "docid": "7bbcfe5cfe0337949023d9969acd4bac", "score": "0.48991325", "text": "private void fillWidgets()\n\t{\n\t\t/*\n\t\t * Fill the combo with the available elements\n\t\t */\n\t\tm_combo.removeAll();\n\t\tString[] snippets = new String[m_snippets.size()];\n\t\tm_snippets.keySet().toArray(snippets);\n\t\tm_combo.setItems(snippets);\n\t\tboolean enabled = m_snippets.size() > 0;\n\t\tif (enabled)\n\t\t{\n\t\t\tm_combo.select(0);\n\t\t\tupdateEdition(snippets[0]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tupdateEdition(\"\");\n\t\t}\n\t\tm_combo.setEnabled(enabled);\n\t}", "title": "" }, { "docid": "66de4de9c7cb4f1fea7d163a73358479", "score": "0.4896574", "text": "public void setPropertiesPanel(PropertiesPanel propertiesPanel)\n {\n this.propertiesPanel = propertiesPanel;\n }", "title": "" }, { "docid": "ef06ed5b77a99d27417b2c2465cc6ed8", "score": "0.489646", "text": "public BWAPanel() {\n initComponents();\n }", "title": "" }, { "docid": "51cc29173b0a900fcc0d86bbc52bbcfe", "score": "0.48925474", "text": "private void createUIComponents() {\n imagePanel1 = new ImagePanel();\n }", "title": "" }, { "docid": "9d20fa737805debbf8c213fa9b796ce9", "score": "0.4882415", "text": "private JPanel createListPanel(boolean isSrc)\n {\n JPanel panel = new JPanel();\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n JLabel label = null;\n if (isSrc)\n {\n label = new JLabel(m_srcName);\n panel.add(label);\n\n }\n else\n {\n label = new JLabel(m_targetName);\n panel.add(label);\n }\n /**\n Collection col = m_packageMap.values();\n List lst = new ArrayList();\n lst.addAll(col);\n Collections.sort(lst);\n DefaultListModel dlm = new DefaultListModel();\n int len = lst.size();\n for(int z =0 ; z < len; z++)\n //{\n Object o = lst.get(z);\n dlm.addElement(o);\n }*/\n JScrollPane listPane = null;\n if (isSrc)\n {\n m_srcList = new JList(new DefaultListModel());\n m_srcList.setSelectionMode(\n ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n listPane = new JScrollPane(m_srcList);\n\n m_srcList.addListSelectionListener(new LeftListListener());\n }\n else\n {\n m_targetList = new JList(new DefaultListModel());\n m_targetList.setSelectionMode(\n ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n listPane = new JScrollPane(m_targetList);\n\n m_targetList.addListSelectionListener(new RightListListener());\n }\n listPane.setPreferredSize(new Dimension(150, 200));\n listPane.setAlignmentX(CENTER_ALIGNMENT);\n panel.add(listPane);\n panel.setAlignmentX(CENTER_ALIGNMENT);\n return panel;\n }", "title": "" }, { "docid": "7625e124ad1ba36014f95b45bc8dc211", "score": "0.48816508", "text": "protected void setup() {\n BorderLayout layout = new BorderLayout();\n setLayoutManager(layout);\n add(getImageLabel(), BorderLayout.CENTER);\n add(getTextLabel(), BorderLayout.BOTTOM);\n }", "title": "" }, { "docid": "1f6fda34ece575f70968747f727bf982", "score": "0.48793575", "text": "private void loadPanel(String srcLabel, String targetLabel, \n String topBtnName, String btmBtnName, String topBtnMnem, \n String btmBtnMnem)\n {\n if (srcLabel == null || srcLabel.length() == 0)\n throw new IllegalArgumentException(\n \"Source label cannot be null or empty\");\n\n if (targetLabel == null || targetLabel.length() == 0)\n throw new IllegalArgumentException(\n \"Target label cannot be null or empty\");\n\n if (topBtnName == null || topBtnName.length() == 0)\n throw new IllegalArgumentException(\n \"Top button name cannot be null or empty\");\n\n if (btmBtnName == null || btmBtnName.length() == 0)\n throw new IllegalArgumentException(\n \"Bottom button name cannot be null or empty\");\n\n m_srcName = srcLabel;\n m_targetName = targetLabel;\n m_topBtnName = topBtnName;\n m_btmBtnName = btmBtnName;\n m_btmBtnMnem = btmBtnMnem;\n m_topBtnMnem = topBtnMnem;\n init();\n }", "title": "" }, { "docid": "68cf867439fe72cea37b831e002339dc", "score": "0.4878078", "text": "public void setSource();", "title": "" }, { "docid": "3ae408547e13870dd609056c0e59139c", "score": "0.48761314", "text": "private void addControlHandlers() {\n\t\tmainPanelControls.getExpressionPanelButton().addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tmainPanelControls.getExpressionPopup().center();\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPopup().getExampleButton().addClickHandler(new ClickHandler(){\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trpcService.getExampleDataSet(new AsyncCallback<String>() {\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tmainPanelControls.getExpressionPopup().enableAllButtons();\n\t\t\t\t\t\trequestFailed(caught);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tmainPanelControls.getExpressionPopup().enableAllButtons();\n\t\t\t\t\t\tmainPanelControls.getExpressionPopup().getPastedDataTextArea().setText(result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPopup().getClearButton().addClickHandler(new ClickHandler(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmainPanelControls.getExpressionPopup().getPastedDataTextArea().setText(\"\");\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPopup().getCloseButton().addClickHandler(new ClickHandler(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmainPanelControls.getExpressionPopup().hide();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPopup().getAnalysisButton().addClickHandler(new ClickHandler(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tmainPanelControls.getExpressionPopup().getForm().submit();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPopup().getForm().addSubmitCompleteHandler(new SubmitCompleteHandler(){\n\n\t\t\t@Override\n\t\t\tpublic void onSubmitComplete(SubmitCompleteEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (event == null) {\n\t\t\t\t\tWindow.alert(\"onSubmitComplete: event is null!!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\n\t\t\t\tString results = event.getResults();\n\t\t\t\tif (results != null) {\n\t\t\t\t\tresults = results.replaceAll(\"</*[pP][rR][eE][^>]*>\", \"\");\n\t\t\t\t\tif (!results.isEmpty()){\n\t\t\t\t\t\tresults = results.trim();\n\t\t\t\t\t\tresults = results.replaceAll(\"^\\\"\", \"\");\n\t\t\t\t\t\tresults = results.replaceAll(\"\\\"$\", \"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tanalysisId = results;\n\t\t\t\tmainPanelControls.getExpressionPanel().setHiddenFieldName(\"STATUS\");\n\t\t\t\tmainPanelControls.getExpressionPanel().setHiddenFieldValue(analysisId);\n\t\t\t\tmainPanelControls.getExpressionPanel().getStatusForm().submit();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPanel().getStatusForm().addSubmitCompleteHandler(new SubmitCompleteHandler(){\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSubmitComplete(SubmitCompleteEvent event){\n\t\t\t\tif (event == null) {\n\t\t\t\t\tWindow.alert(\"onSubmitComplete: event is null!!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\n\t\t\t\tString results = event.getResults();\n\t\t\t\tif (results != null) {\n\t\t\t\t\tresults = results.replaceAll(\"</*[pP][rR][eE][^>]*>\", \"\");\n\t\t\t\t\tJSONValue jsonResult = JSONParser.parseStrict(results);\n\t\t\t\t\tJSONObject jObject = jsonResult.isObject();\n\t\t\t\t\tif(mainPanelControls.getExpressionPanel().getHiddenFieldName().matches(\"STATUS\")){\n\t\t\t\t\t\tString status = jObject.get(\"name\").toString();\n\t\t\t\t\t\tif (!status.isEmpty()){\n\t\t\t\t\t\t\tstatus = status.trim();\n\t\t\t\t\t\t\tstatus = status.replaceAll(\"^\\\"\", \"\");\n\t\t\t\t\t\t\tstatus = status.replaceAll(\"\\\"$\", \"\");\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif(status.matches(\"Starting\")){\n\t\t\t\t\t\t\tmainPanelControls.getExpressionPanel().setHiddenFieldName(\"STATUS\");\n\t\t\t\t\t\t\tmainPanelControls.getExpressionPanel().setHiddenFieldValue(analysisId);\n\t\t\t\t\t\t\tmainPanelControls.getExpressionPanel().getStatusForm().submit();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t//\tWindow.alert(status);\n\t\t\t\t\t\t\tmainPanelControls.getExpressionPanel().setHiddenFieldName(\"RESULTS\");\n\t\t\t\t\t\t\tmainPanelControls.getExpressionPanel().setHiddenFieldValue(analysisId);\n\t\t\t\t\t\t\tmainPanelControls.getExpressionPanel().getStatusForm().submit();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmainPanelControls.getExpressionPopup().hide();\n\t\t\t\t\t\t\n\t\t\t\t\t//\tparseExpression(jObject);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getThresholdSliderBar().addBarValueChangedHandler(new BarValueChangedHandler() {\n public void onBarValueChanged(BarValueChangedEvent event) {\n //\tWindowControls.prevThreshold = WindowControls.threshold;\n \tSummaryPanel.threshold = event.getValue();\n \tmainPanelControls.getThresholdValueBox().setText(\"\" + event.getValue());\n \tmainPanelControls.renderSummary(summary);\n }\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPanel().getTime1().addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tHashMap<Integer,String> colorDetails = expression.getColorDetails(1);\n\t\t\t\trenderWithExpression(colorDetails);\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPanel().getTime2().addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tHashMap<Integer,String> colorDetails = expression.getColorDetails(2);\n\t\t\t\trenderWithExpression(colorDetails);\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPanel().getTime3().addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tHashMap<Integer,String> colorDetails = expression.getColorDetails(3);\n\t\t\t\trenderWithExpression(colorDetails);\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPanel().getTime4().addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tHashMap<Integer,String> colorDetails = expression.getColorDetails(4);\n\t\t\t\trenderWithExpression(colorDetails);\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionPanel().getTime5().addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tHashMap<Integer,String> colorDetails = expression.getColorDetails(5);\n\t\t\t\trenderWithExpression(colorDetails);\n\t\t\t}\n\t\t});\n\t\t\n\t\tmainPanelControls.getLayoutOptions().addChangeHandler(new ChangeHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onChange(ChangeEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tint selectedIndex = mainPanelControls.getLayoutOptions().getSelectedIndex();\n\t\t\t\tchangeLayout(selectedIndex);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmainPanelControls.getExpressionSampleButton().addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\trpcService.getExpressionData(new AsyncCallback<ArrayList<ExpressionData>>() {\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\trequestFailed(caught);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ArrayList<ExpressionData> expressionData) {\n\t\t\t\t\t\texpression = new ExpressionRenderer(expressionData);\n\t\t\t\t\t\texpression.setLimits();\n\t\t\t\t\t\tList<Double> limits = expression.getLimits();\n\t\t\t\t\t\tmainPanelControls.getExpressionPanel().getMinLabel().setText(\"\" + limits.get(0));\n\t\t\t\t\t\tmainPanelControls.getExpressionPanel().getMaxLabel().setText(\"\" + limits.get(1));\n\t\t\t\t\t\tmainPanelControls.getExpressionPanel().getExpressionScale().addColorMaps(limits.get(0), limits.get(1));\n\t\t\t\t\t\tmainPanelControls.getExpressionPanel().setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "51ed1157cca903e1e89c2f1f17dbeb9d", "score": "0.487525", "text": "private void setupToolsPanel() {\n toolsPanel = new JPanel();\n toolsPanel.setLayout(new BoxLayout(toolsPanel, BoxLayout.PAGE_AXIS));\n toolsPanel.setBackground(Color.GRAY);\n toolsPanel.setBorder(new LineBorder(Color.BLACK));\n mainPanel.add(toolsPanel, BorderLayout.LINE_START);\n selectedLayerDisplay = new JLabel();\n toolsPanel.add(selectedLayerDisplay);\n setupOperationButtons();\n }", "title": "" }, { "docid": "95ff37e8bf053a4a550984fcde3adfc9", "score": "0.4870622", "text": "private void initJavaScriptSource(){\n\t\ttabs.add(txtJavaScriptSource, LocaleText.get(\"javaScriptSource\"));\n\t\tFormUtil.maximizeWidget(txtJavaScriptSource);\n\t}", "title": "" }, { "docid": "4e42b46a7635fc2fb9f1ba3aeebb49b1", "score": "0.48690483", "text": "protected void setDataToUI()\n\t{\n\t}", "title": "" }, { "docid": "97c842998d96829046dcf1cbf0a3e496", "score": "0.48679212", "text": "@Override\n\tpublic void createPanel() {\n\t\n\t\tmOverallPanel = new Panel(new BorderLayout());\n\t\t\n\t\tmDrawingPanel = new DrawingPanel();\n\t\t\n\t\tPanel panelLoad = new Panel(new FlowLayout());\n\t\tButton btnLoadData = new Button(\"Load data\");\n\t\tbtnLoadData.setName(\"btnLoadData\");\n\t\tbtnLoadData.setBackground(Color.red);\n\t\tpanelLoad.add(btnLoadData);\n Choice chServer = new Choice();\n chServer.setName(\"chServer\");\n chServer.add(\"PostGre\");\n chServer.add(\"DummyServer\");\n panelLoad.add(chServer);\n Checkbox cbSticky = new Checkbox();\n cbSticky.setName(\"cbSticky\");\n cbSticky.setLabel(\"Sticky\");\n panelLoad.add(cbSticky);\n Button btnStore = new Button(\"Store\");\n btnStore.setName(\"btnStore\");\n btnStore.setBackground(Color.red);\n panelLoad.add(btnStore);\n\t\t\n\t\tPanel panelZoom = new Panel(new FlowLayout());\n\t\tButton btnZTF = new Button(\"ZTF\");\n\t\tbtnZTF.setName(\"btnZTF\");\n\t\tbtnZTF.setBackground(Color.red);\n\t\tButton btnZoomIn = new Button(\"+\");\n\t\tbtnZoomIn.setName(\"btnZoomIn\");\n\t\tbtnZoomIn.setBackground(Color.red);\n\t\tButton btnZoomOut = new Button(\"-\");\n\t\tbtnZoomOut.setName(\"btnZoomOut\");\n\t\tbtnZoomOut.setBackground(Color.red);\n\t\tpanelZoom.add(btnZTF);\n\t\tpanelZoom.add(btnZoomIn);\n\t\tpanelZoom.add(btnZoomOut);\n\n\t\tPanel panelScroll = new Panel(new GridBagLayout());\n\t\tButton btnScrollUp = new Button(\"N\");\n\t\tbtnScrollUp.setName(\"btnScrollUp\");\n\t\tbtnScrollUp.setBackground(Color.red);\n\t\tButton btnScrollDown = new Button(\"S\");\n\t\tbtnScrollDown.setName(\"btnScrollDown\");\n\t\tbtnScrollDown.setBackground(Color.red);\n\t\tButton btnScrollLeft = new Button(\"W\");\n\t\tbtnScrollLeft.setName(\"btnScrollLeft\");\n\t\tbtnScrollLeft.setBackground(Color.red);\n\t\tButton btnScrollRight = new Button(\"E\");\n\t\tbtnScrollRight.setName(\"btnScrollRight\");\n\t\tbtnScrollRight.setBackground(Color.red);\n\t\tpanelScroll.add(btnScrollUp);\n\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t// margin\n\t\tc.insets = new Insets(3,3,3,3);\n\t\t\n\t\t// add buttons\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 0;\n\t\tpanelScroll.add(btnScrollUp, c);\n\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 2;\n\t\tpanelScroll.add(btnScrollDown, c);\n\t\t\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tpanelScroll.add(btnScrollLeft, c);\n\t\t\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 2;\n\t\tc.gridy = 1;\n\t\tpanelScroll.add(btnScrollRight, c);\n\n\t\tPanel panelRotate = new Panel(new FlowLayout());\n\t\tButton btnRotateLeft = new Button(\"Rotate left\");\n\t\tbtnRotateLeft.setName(\"btnRotateLeft\");\n\t\tbtnRotateLeft.setBackground(Color.red);\n\t\tpanelRotate.add(btnRotateLeft);\n\t\tButton btnRotateRight = new Button(\"Rotate right\");\n\t\tbtnRotateRight.setName(\"btnRotateRight\");\n\t\tbtnRotateRight.setBackground(Color.red);\n\t\tpanelRotate.add(btnRotateRight);\n\t\t\n\t\tPanel panelMapScale = new Panel(new FlowLayout());\n\t\tLabel labelMapScale = new Label(\"1 :\", Label.RIGHT);\n\t mTextFieldMapScale = new TextField(\"unknown\");\n\t panelMapScale.add(labelMapScale);\n\t panelMapScale.add(mTextFieldMapScale);\n\t \n\t Button btnEnablePOI = new Button(\"POI\");\n\t btnEnablePOI.setName(\"btnEnablePOI\");\n\t btnEnablePOI.setBackground(Color.red);\n\n\t\t// add panels to panel\n\t\tPanel panelButtons = new Panel(new FlowLayout());\n\t\tpanelButtons.add(panelLoad);\n\t\tpanelButtons.add(panelZoom);\n\t\tpanelButtons.add(panelScroll);\n\t\tpanelButtons.add(panelRotate);\n\t\tpanelButtons.add(panelMapScale);\n\t\tpanelButtons.add(btnEnablePOI);\n\t\t\n\t\tmPanelWarnings = new WarningPanel(new FlowLayout());\n\t\t\n\t\tmOverallPanel.add(mPanelWarnings, BorderLayout.NORTH);\n\t\tmOverallPanel.add(mDrawingPanel, BorderLayout.CENTER);\n\t\tmOverallPanel.add(panelButtons, BorderLayout.SOUTH);\n\t\t\n\t\t// add listeners\n\t\tbtnLoadData.addActionListener(actionListener);\n\t\tbtnZTF.addActionListener(actionListener);\n\t\tbtnZoomIn.addActionListener(actionListener);\n\t\tbtnZoomOut.addActionListener(actionListener);\n\t\tbtnScrollDown.addActionListener(actionListener);\n\t\tbtnScrollLeft.addActionListener(actionListener);\n\t\tbtnScrollRight.addActionListener(actionListener);\n\t\tbtnScrollUp.addActionListener(actionListener);\n\t\tbtnRotateLeft.addActionListener(actionListener);\n\t\tbtnRotateRight.addActionListener(actionListener);\n\t\tbtnEnablePOI.addActionListener(actionListener);\n\t\tbtnStore.addActionListener(actionListener);\n\t\t\n\t\tchServer.addItemListener(itemListener);\n\t\tcbSticky.addItemListener(itemListener);\n\t\t\n\t\tmDrawingPanel.addComponentListener(componentListener);\n\t\tmDrawingPanel.addMouseListener(mouseListener);\n\t\tmDrawingPanel.addMouseWheelListener(mouseWheelListener);\n\t\tmDrawingPanel.addMouseMotionListener(mouseMotionListener);\n\t\tmTextFieldMapScale.addActionListener(actionListener);\n\t\tmDrawingPanel.addKeyListener(keyListener);\n\n\t}", "title": "" }, { "docid": "1ea9416620951b71e331057df289fca4", "score": "0.4866255", "text": "private void initComponents() {\n\t\tResourceBundle bundle = ResourceBundle.getBundle(\"com.tiempometa.pandora.checatuchip.preview.jpreview\");\r\n\t\tcontentPanel = new JContentPreviewPanel();\r\n\t\ttopPanel = new JTopPreviewPanel();\r\n\t\tbottomPanel = new JBottomPreviewPanel();\r\n\t\tleftPanel = new JLeftPreviewPanel();\r\n\t\trightPanel = new JRightPreviewPanel();\r\n\r\n\t\t//======== this ========\r\n\t\tsetTitle(bundle.getString(\"JPreviewFrame.this.title\"));\r\n\t\tsetIconImage(new ImageIcon(getClass().getResource(\"/tiempometa_icon_large_alpha.png\")).getImage());\r\n\t\tsetBackground(Color.white);\r\n\t\tContainer contentPane = getContentPane();\r\n\t\tcontentPane.setLayout(new BorderLayout());\r\n\r\n\t\t//---- contentPanel ----\r\n\t\tcontentPanel.setBackground(Color.white);\r\n\t\tcontentPane.add(contentPanel, BorderLayout.CENTER);\r\n\r\n\t\t//---- topPanel ----\r\n\t\ttopPanel.setBackground(Color.white);\r\n\t\tcontentPane.add(topPanel, BorderLayout.NORTH);\r\n\r\n\t\t//---- bottomPanel ----\r\n\t\tbottomPanel.setBackground(Color.white);\r\n\t\tcontentPane.add(bottomPanel, BorderLayout.SOUTH);\r\n\r\n\t\t//---- leftPanel ----\r\n\t\tleftPanel.setBackground(Color.white);\r\n\t\tcontentPane.add(leftPanel, BorderLayout.WEST);\r\n\r\n\t\t//---- rightPanel ----\r\n\t\trightPanel.setBackground(Color.white);\r\n\t\tcontentPane.add(rightPanel, BorderLayout.EAST);\r\n\t\tpack();\r\n\t\tsetLocationRelativeTo(getOwner());\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}", "title": "" }, { "docid": "d6bd3b53c8c9c5db2761a17685f7c40f", "score": "0.48618966", "text": "private void initTelnetSourcePanel() {\r\n\ttelnetSourcePanel = new JPanel();\r\n\tJLabel lTelnetUrl = new JLabel(rb.getString(\"ssd.10\") + \":\");\r\n\tJLabel lTelnetPortIPv4 = new JLabel(rb.getString(\"ssd.11\") + \" IPv4:\");\r\n\tJLabel lTelnetPortIPv6 = new JLabel(rb.getString(\"ssd.11\") + \" IPv6:\");\r\n\tJLabel lTelnetPassword = new JLabel(rb.getString(\"ssd.12\") + \":\");\r\n\tJLabel lTelnetTimeout = new JLabel(rb.getString(\"ssd.16\") + \":\");\r\n\tJLabel lTelnetRDNS = new JLabel(rb.getString(\"ssd.15\") + \":\");\r\n\ttfTelnetUrl.setMaximumSize(new Dimension(350, 25));\r\n\ttfTelnetPortIPv4.setMaximumSize(new Dimension(100, 25));\r\n\ttfTelnetPortIPv6.setMaximumSize(new Dimension(100, 25));\r\n\ttfTelnetPassword.setMaximumSize(new Dimension(350, 25));\r\n\ttfTelnetTimeout.setMaximumSize(new Dimension(100, 25));\r\n\ttfTelnetRDNSServer.setMaximumSize(new Dimension(350, 25));\r\n\tGroupLayout l3 = new GroupLayout(telnetSourcePanel);\r\n\ttelnetSourcePanel.setLayout(l3);\r\n\tl3.setAutoCreateContainerGaps(true);\r\n\tl3.setAutoCreateGaps(true);\r\n\tl3.setHorizontalGroup(l3.createSequentialGroup()\r\n\t\t.addGroup(l3.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t.addComponent(lTelnetUrl)\r\n\t\t\t.addComponent(lTelnetPortIPv4)\r\n\t\t\t.addComponent(lTelnetPortIPv6)\r\n\t\t\t.addComponent(lTelnetPassword)\r\n\t\t\t.addComponent(lTelnetTimeout)\r\n\t\t\t.addComponent(lTelnetRDNS))\r\n\t\t.addGroup(l3.createParallelGroup()\r\n\t\t\t.addComponent(tfTelnetUrl)\r\n\t\t\t.addComponent(tfTelnetPortIPv4)\r\n\t\t\t.addComponent(tfTelnetPortIPv6)\r\n\t\t\t.addComponent(tfTelnetPassword)\r\n\t\t\t.addComponent(tfTelnetTimeout)\r\n\t\t\t.addComponent(tfTelnetRDNSServer)));\r\n\tl3.setVerticalGroup(l3.createSequentialGroup()\r\n\t\t.addGroup(l3.createParallelGroup(GroupLayout.Alignment.CENTER)\r\n\t\t\t.addComponent(lTelnetUrl)\r\n\t\t\t.addComponent(tfTelnetUrl))\r\n\t\t.addGroup(l3.createParallelGroup(GroupLayout.Alignment.CENTER)\r\n\t\t\t.addComponent(lTelnetPortIPv4)\r\n\t\t\t.addComponent(tfTelnetPortIPv4))\r\n\t\t.addGroup(l3.createParallelGroup(GroupLayout.Alignment.CENTER)\r\n\t\t\t.addComponent(lTelnetPortIPv6)\r\n\t\t\t.addComponent(tfTelnetPortIPv6))\r\n\t\t.addGroup(l3.createParallelGroup(GroupLayout.Alignment.CENTER)\r\n\t\t\t.addComponent(lTelnetPassword)\r\n\t\t\t.addComponent(tfTelnetPassword))\r\n\t\t.addGroup(l3.createParallelGroup(GroupLayout.Alignment.CENTER)\r\n\t\t\t.addComponent(lTelnetRDNS)\r\n\t\t\t.addComponent(tfTelnetRDNSServer))\r\n\t\t.addGroup(l3.createParallelGroup(GroupLayout.Alignment.CENTER)\r\n\t\t\t.addComponent(lTelnetTimeout)\r\n\t\t\t.addComponent(tfTelnetTimeout)));\r\n }", "title": "" }, { "docid": "862d6e8a14c631736663ff7fec4b855d", "score": "0.48490563", "text": "public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\r\n }", "title": "" }, { "docid": "8669218bde7280ec4a47c0534c0d2183", "score": "0.48488164", "text": "public PDFSummaryPanel() {\n super();\n initComponents();\n init();\n }", "title": "" }, { "docid": "93958efe74bfd208bdc7a9d30d96d197", "score": "0.48463514", "text": "void initExperimentalSetupLayout() {\n expSetup.removeAllComponents();\n\n expSetup.setWidth(\"100%\");\n\n expSetup.setSpacing(true);\n expSetup.setMargin(new MarginInfo(true, false, false, false));\n\n Set<String> visibleSpaces = new LinkedHashSet<>();\n\n /*\n * for (String space: datahandler.getOpenBisClient().listSpaces()) {\n * if(space.startsWith(\"IVAC\")) {\n * \n * Set<String> users = datahandler.getOpenBisClient().getSpaceMembers(space);\n * \n * if(users.contains(LiferayAndVaadinUtils.getUser().getScreenName())) {\n * visibleSpaces.add(space); } } }\n */\n\n for (Project project : datahandler.getOpenBisClient().getOpenbisInfoService()\n .listProjectsOnBehalfOfUser(datahandler.getOpenBisClient().getSessionToken(),\n PortalUtils.getUser().getScreenName())) {\n\n if (project.getIdentifier().contains(\"IVAC\")) {\n visibleSpaces.add(project.getSpaceCode());\n }\n }\n\n // for (Project project :\n // datahandler.getOpenBisClient().getOpenbisInfoService().listProjectsOnBehalfOfUser(datahandler.getOpenBisClient().getSessionToken(),\n // LiferayAndVaadinUtils.getUser().getScreenName())) {\n // if (project.getSpaceCode().startsWith(\"IVAC\")) {\n // visibleSpaces.add(project.getSpaceCode());\n // }\n // }\n\n projects = new CustomVisibilityComponent(new ComboBox(\"Select Project\", visibleSpaces));\n ((ComboBox) projects.getInnerComponent()).setImmediate(true);\n\n Component context =\n Utils.questionize(projects, \"Add Patient(s) to the following project\", \"Select Project\");\n\n ((ComboBox) projects.getInnerComponent()).addValueChangeListener(new ValueChangeListener() {\n\n @Override\n public void valueChange(ValueChangeEvent event) {\n numberOfPatients.setVisible(true);\n }\n });\n\n expSetup.addComponent(context);\n\n numberOfPatients = new CustomVisibilityComponent(new TextField(\"Number of Patients\"));\n numberOfPatients.setVisible(false);\n ((TextField) numberOfPatients.getInnerComponent()).setImmediate(true);\n\n Component numberContext = Utils.questionize(numberOfPatients,\n \"How many patients with the same setup should be registered?\", \"Number of Patients\");\n\n ((TextField) numberOfPatients.getInnerComponent())\n .addTextChangeListener(new TextChangeListener() {\n\n @Override\n public void textChange(TextChangeEvent event) {\n secondaryNames.setVisible(true);\n }\n });\n\n expSetup.addComponent(numberContext);\n\n secondaryNames = new CustomVisibilityComponent(new TextField(\"Identifiers\"));\n ((TextField) secondaryNames.getInnerComponent()).setImmediate(true);\n\n secondaryNames.setVisible(false);\n Component secondaryContext = Utils.questionize(secondaryNames,\n \"Please provide a list of comma separated IDs.\", \"Identifiers\");\n\n ((TextField) secondaryNames.getInnerComponent())\n .addTextChangeListener(new TextChangeListener() {\n\n @Override\n public void textChange(TextChangeEvent event) {\n description.setVisible(true);\n }\n });\n\n expSetup.addComponent(secondaryContext);\n\n description = new CustomVisibilityComponent(new TextField(\"Description\"));\n ((TextField) description.getInnerComponent()).setImmediate(true);\n description.setVisible(false);\n Component descriptionContext = Utils.questionize(description,\n \"Please provide a general description for the new patient cases\", \"Description\");\n\n ((TextField) description.getInnerComponent()).addTextChangeListener(new TextChangeListener() {\n\n @Override\n public void textChange(TextChangeEvent event) {\n optionLayout.setVisible(true);\n hlaLayout.setVisible(true);\n registerPatients.setVisible(true);\n }\n });\n expSetup.addComponent(descriptionContext);\n\n }", "title": "" }, { "docid": "873998353ea8ea7e03bbd03ad63bfa61", "score": "0.48462796", "text": "private void createPanels()\n { \n originalImagePanel = new HTImagePanelEx();\n\toriginalImagePanel.setBounds(10, 32, IMAGE_PANEL_DIMENSION.width, IMAGE_PANEL_DIMENSION.height);\n\toriginalImagePanel.setImage(htEngine.getOriginalImage());\n\tgetContentPane().add(originalImagePanel);\n /* init panel for the original image */ \n\ttransformedImagePanel = new HTImagePanelEx();\n\ttransformedImagePanel.setBounds(IMAGE_PANEL_DIMENSION.width + 30, \n\t\t\t32, IMAGE_PANEL_DIMENSION.width, IMAGE_PANEL_DIMENSION.height);\n\ttransformedImagePanel.setImage(htEngine.getOriginalImage());\n\tgetContentPane().add(transformedImagePanel); \n }", "title": "" }, { "docid": "0dadda25a69d6343ebd5c6fdfc57e1b3", "score": "0.48450345", "text": "private void init() {\r\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n controlPanel = new ControlPanel(this);\r\n designPanel = new DesignPanel(this);\r\n add(controlPanel, BorderLayout.NORTH);\r\n add(designPanel, BorderLayout.CENTER);\r\n pack();\r\n }", "title": "" }, { "docid": "2ead77944a91bb00193d5364884c23ed", "score": "0.48417705", "text": "public DataObjectTypesListPanel()\n {\n super();\n postInitData();\n }", "title": "" }, { "docid": "ada424b9ba31e756673c71e369bf8df4", "score": "0.48374298", "text": "public void buildAndShowUI() {\n\t\tthis.setTitle(TextProperties.getInstance().getProperty(\"ImageExporterWiz_Title\"));\n\t\tthis.setIconImage(IconResources.loadImage(\"images/vortex_black.png\"));\n\t\tsetMinimumSize(new Dimension(600, 400));\n\t\tsetLocation(getPersistedLocation());\n\t\tif (frame != null) setLocationRelativeTo(frame);\n\t\tsetSize(getPersistedSize());\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/* Initializing Card Container */\n\t\tinitializeContentCards();\n\t\t\n\t\t/* Initializing Button Panel (Back, Next, Cancel) */\n\t\tinitializeButtonPanel();\n\t\t\n\t\t/* Add contentCards to wizard, and then show wizard */\n\t\tthis.add(contentCards, BorderLayout.CENTER);\n\t\tthis.setVisible(true);\n\t}", "title": "" }, { "docid": "0ee6f5d15a1b2fbff5f4d51966771153", "score": "0.48343253", "text": "private JPanel getSourcePanel() {\r\n\t\tif (sourcePanel == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tgridBagConstraints.weightx = 1.0;\r\n\t\t\tgridBagConstraints.weighty = 1.0;\r\n\t\t\tgridBagConstraints.insets = new Insets(5, 5, 5, 5);\r\n\t\t\tgridBagConstraints.gridwidth = 1;\r\n\t\t\tgridBagConstraints.ipadx = 2;\r\n\t\t\tgridBagConstraints.ipady = 2;\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tsourcePanel = new JPanel();\r\n\t\t\tsourcePanel.setLayout(new GridBagLayout());\r\n\t\t\tsourcePanel.add(getSourceScrollPane(), gridBagConstraints);\r\n\t\t}\r\n\t\treturn sourcePanel;\r\n\t}", "title": "" }, { "docid": "d1af5bfad00f43afb157e53a9a5628d1", "score": "0.48341027", "text": "@SetupRender\n public void setupDataSource(){\n dataSource = new SelectResultDataSource(query, queryDataService);\n }", "title": "" }, { "docid": "9e7b36211f95cdcec7cde9cd362663a6", "score": "0.4831455", "text": "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "title": "" }, { "docid": "9e7b36211f95cdcec7cde9cd362663a6", "score": "0.4831455", "text": "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "title": "" }, { "docid": "223e23dfb2d2af6c7c58576eb13ba6f3", "score": "0.48269674", "text": "protected void initialize() {\n\t\tsuper.initialize();\n\t\tsetColor(Color.magenta);\n\t\tgetContentPanel().add(getPnl1());\n\t\tgetContentPanel().add(getPnl2());\n\n\t}", "title": "" }, { "docid": "fd5c3e2b024bfc3e136ea93fca1b2c37", "score": "0.48202938", "text": "public RateLawyerPanel() {\n initComponents();\n this.makeTransparent(this);\n ComponentAdapter adapter = new ComponentAdapter() {\n\n @Override\n public void componentShown(ComponentEvent ce) {\n super.componentShown(ce); \n populateTable(Network.getInstance().getLAWYER_DIRECTORY());\n }\n \n };\n \n this.addComponentListener(adapter);\n populateTable(Network.getInstance().getLAWYER_DIRECTORY());\n }", "title": "" }, { "docid": "e99be34fe7b1437c8d7ccad18cb3bbb1", "score": "0.48140487", "text": "private void initControls()\n {\n String extensions = getPreferenceStore().getString(SCHEMATOOL_INPUT_FILE_EXTENSIONS);\n String[] extensionEntries = extensions.split(System.getProperty(\"path.separator\"));\n fileExtensionsList.setItems(extensionEntries);\n\n driverNameText.setText(getPreferenceStore().getString(SCHEMATOOL_DATASTORE_DRIVERNAME));\n driverJarText.setText(getPreferenceStore().getString(SCHEMATOOL_DATASTORE_DRIVERJAR));\n urlText.setText(getPreferenceStore().getString(SCHEMATOOL_DATASTORE_URL));\n usernameText.setText(getPreferenceStore().getString(SCHEMATOOL_DATASTORE_USERNAME));\n passwordText.setText(getPreferenceStore().getString(SCHEMATOOL_DATASTORE_PASSWORD));\n propertiesFileText.setText(getPreferenceStore().getString(SCHEMATOOL_PROPERTIES_FILE));\n verboseModeCheckButton.setSelection(getPreferenceStore().getBoolean(SCHEMATOOL_VERBOSE_MODE));\n persistenceUnitText.setText(getPreferenceStore().getString(SCHEMATOOL_PERSISTENCE_UNIT));\n }", "title": "" }, { "docid": "35bc2007e14d0d00caf4434cca7bc38a", "score": "0.4812765", "text": "public void setContents()\n\t{\n\t\t\t\n\t\taddContents();\n\t\tsetContentBounds();\n\t\tinitFields();\n\t}", "title": "" }, { "docid": "e13e510ba492795f6f02a7c08ac917a3", "score": "0.4811143", "text": "@Override\n\tpublic void onModuleLoad() {\n\t\t\n\t\tRootPanel.get().add(testBootstrap);\n/*\t\tDockLayoutPanel p = new DockLayoutPanel(Unit.EM);\n\t\tp.addNorth(new HTML(\"header\"), 2);\n\t\tp.addSouth(new HTML(\"footer\"), 2);\n\t\tp.addWest(new HTML(\"navigation\"), 10);\n\t\tp.add(new HTML(\"test\"));\n\t\t\n\t\tRootLayoutPanel.get().add(p);*/\n\t}", "title": "" }, { "docid": "4e325b72d9761de31ea2a0141a832ca0", "score": "0.48076805", "text": "public void updatePanels() {\n //mInfoPanel.updatePanel( mComponent);\n mTreePanel.updatePanel( mComponent);\n //mNotePanel.updatePanel( mComponent);\n mNodeFilterPanel.updatePanel(mComponent);\n }", "title": "" }, { "docid": "1e702134cb73239b89b7a45dfc6a0802", "score": "0.48010683", "text": "public xDayAvailabilityPanel() {\n initComponents();\n myDisplayedPanel = new xIndividualDayPanel();\n //InnerDisplayPanel.add(myDisplayedPanel);\n }", "title": "" }, { "docid": "e489834baac0b2a314fdb746f17485fb", "score": "0.4798832", "text": "public void onModuleLoad2() {\n\t\t\n\t\tGWT.log(\"Starnt\", null);\n\t\n\t\t\n\t\t//SWFSettings desc = new SWFSettings(\"gwt2swf.swf\",new Integer(200),new Integer(200));\n\t\t//desc.getVersion().setMajor(7);\n\t\tfinal SWFWidget swfWidget = new SWFWidget(\"gwt2swf.swf\",new Integer(200),new Integer(200));\n\t\tfinal SWFWidget swfWidget2 = new SWFWidget(\"gwt2swf.swf\",new Integer(200),new Integer(200));\n\t\tfinal SWFPopupPanel panel = new SWFPopupPanel(swfWidget);\n\t\t//swfWidget.initSWF();\n\t\tRootPanel.get().add(showBtn);\n\t\tRootPanel.get().add(hideBtn);\n\t\t\n\t\tshowBtn.addClickListener(new ClickListener() {\n\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tpanel.show();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\thideBtn.addClickListener(new ClickListener() {\n\t\t\t\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tpanel.hide();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t RootPanel.get().add(swfWidget2);\n\t\t\n swfWidget2.show();\n \n\t\t// swfWidget.initSWF();\n\t\t\n\t\t\n\t\t//panel.add(swfWidget);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "ad64c79ead354b58980ef8c177c6360d", "score": "0.4794419", "text": "public abstract MetadataPanel getPanel();", "title": "" }, { "docid": "0e9c1bc9493d9b0a0525c067f028ee83", "score": "0.47892717", "text": "private void setChartTypesForVisualiseDataPanel(Vector<ChartType> chartTypes) {\r\n \t\tLogger.out.debug(\"setChartTypesForVisualiseDataPanel :: chartTypes \" + chartTypes);\r\n \t\tvisualiseDataPanel.removeAll();\r\n \r\n \t\tfor (ChartType chartType : chartTypes) {\r\n \t\t\tCab2bHyperlink hyperlink = new Cab2bHyperlink();\r\n \t\t\thyperlink.setBounds(new Rectangle(5, 5, 5, 5));\r\n \t\t\thyperlink.setText(chartType.getActionCommand());\r\n \t\t\thyperlink.setActionCommand(chartType.getActionCommand());\r\n \r\n \t\t\t// String iconName = hyperlinkName.trim().replace(' ', '_') +\r\n \t\t\t// \"_icon.gif\";\r\n \t\t\t// hyperlink.setIcon(new ImageIcon(\"resources/images/\" + iconName));\r\n \t\t\tURL url = this.getClass().getClassLoader().getResource(\"mysearchqueries_icon.gif\");\r\n \t\t\thyperlink.setIcon(new ImageIcon(url));\r\n \r\n \t\t\thyperlink.addActionListener(new ActionListener() {\r\n \t\t\t\tpublic void actionPerformed(ActionEvent actionEvent) {\r\n \t\t\t\t\tString actionCommand = actionEvent.getActionCommand();\r\n \t\t\t\t\tChartType chartType = ChartType.getChartType(actionCommand);\r\n \t\t\t\t\tshowChartAction(chartType);\r\n \t\t\t\t\tupdateUI();\r\n \t\t\t\t}\r\n \t\t\t});\r\n \t\t\thyperlink.setEnabled(false);\r\n \t\t\tvisualiseDataPanel.add(\"br\", hyperlink);\r\n \t\t}\r\n \t\tvisualiseDataPanel.revalidate();\r\n \t}", "title": "" }, { "docid": "c38d9a55b2be69b79d77b57c0a59ecf0", "score": "0.47871736", "text": "private void rebuildXSLPanel() {\n \t\n \tint loop, size;\n \tint col, xslPanelRow;\n \tJTextField xslTf;\n JButton browseXslBtn, insertBtn;\n JComboBox action;\n JLabel xslLabel, indicatorLabel;\n JCheckBox removeCb;\n XSLRow xslRow;\n \n xslPanel.removeAll(); \n\t\txslPanelRow = 0;\n\t\tGUIUtils.add(xslPanel, new JLabel(\"\"), xslPanelLayout,\n\t\t\txslPanelConstraints, xslPanelRow, col=0, 1, 1, \n\t\t\tGridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\tGUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(xslPanel, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.MAIN_FRAME_XML_FILE_WITH_COLON)), \n\t\t\t\txslPanelLayout, xslPanelConstraints, xslPanelRow, ++col, 1, 1, \n\t\t\t\tGridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(xslPanel, sourceXmlTf, xslPanelLayout, xslPanelConstraints, \n\t\t\txslPanelRow, ++col, 1, 1, GridBagConstraints.WEST, \n\t\t\tGridBagConstraints.BOTH, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(xslPanel, new JLabel(\"\"), xslPanelLayout, \n\t\t\t\txslPanelConstraints, xslPanelRow, ++col, 1, 1, \n\t\t\t\tGridBagConstraints.WEST, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(xslPanel, browseXmlBtn, \n\t\t\t\txslPanelLayout, xslPanelConstraints, xslPanelRow, ++col, 1, 1, \n\t\t\t\tGridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(xslPanel, xmlAction, \n\t\t\t\txslPanelLayout, xslPanelConstraints, xslPanelRow, ++col, 1, 1, \n\t\t\t\tGridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(xslPanel, xmlIndicatorLabel, xslPanelLayout, \n\t\t\t\txslPanelConstraints, xslPanelRow++, ++col, 1, 1, \n\t\t\t\tGridBagConstraints.WEST, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.SMALL_INSETS); \n size = xslRows.size();\n for (loop = 0; loop < size; loop++) {\n \txslRow = xslRows.get(loop);\n \txslLabel = xslRow.getLabel();\n \txslTf = xslRow.getTextField();\n \tremoveCb = xslRow.getRemoveCb();\n \tbrowseXslBtn = xslRow.getBrowseBtn();\n \tinsertBtn = xslRow.getInsertBtn();\n \tindicatorLabel = xslRow.getIndicatorLabel();\n \taction = xslRow.getAction(); \t \n\t\t\tGUIUtils.add(xslPanel, insertBtn, xslPanelLayout,\n\t\t\t\t\t\txslPanelConstraints, xslPanelRow, col=0, 1, 1, \n\t\t\t\t\t\tGridBagConstraints.EAST, GridBagConstraints.EAST, \n\t\t\t\t\t\tGUIUtils.NO_INSETS); \t\n\t\t\tGUIUtils.add(xslPanel, xslLabel, xslPanelLayout, \n\t\t\t\t\txslPanelConstraints, xslPanelRow, ++col, 1, 1, \n\t\t\t\t\tGridBagConstraints.EAST, GridBagConstraints.NONE, \n\t\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\t\tGUIUtils.add(xslPanel, xslTf, xslPanelLayout, xslPanelConstraints, \n\t\t\t\txslPanelRow, ++col, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.BOTH, GUIUtils.SMALL_INSETS);\n\t\t\tGUIUtils.add(xslPanel, removeCb, \n\t\t\t\t\txslPanelLayout, xslPanelConstraints, xslPanelRow, ++col, 1, \n\t\t\t\t\t1, GridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\t\tGUIUtils.add(xslPanel, browseXslBtn, \n\t\t\t\t\txslPanelLayout, xslPanelConstraints, xslPanelRow, ++col, 1, \n\t\t\t\t\t1, GridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\t\t\tGUIUtils.SMALL_INSETS);\n\t\t\tGUIUtils.add(xslPanel, action, \n\t\t\t\t\txslPanelLayout, xslPanelConstraints, xslPanelRow, ++col, 1, \n\t\t\t\t\t1, GridBagConstraints.EAST, GridBagConstraints.BOTH, \n\t\t\t\t\tGUIUtils.SMALL_INSETS);\t\n\t\t\tGUIUtils.add(xslPanel, indicatorLabel, xslPanelLayout, \n\t\t\t\txslPanelConstraints, xslPanelRow++, ++col, 1, 1, \n\t\t\t\tGridBagConstraints.EAST, GridBagConstraints.BOTH,\n\t\t\t\tGUIUtils.SMALL_INSETS);\t\n\t\t}\n }", "title": "" }, { "docid": "a36bc5bb01967ad4f368ea97d2df1e92", "score": "0.47809273", "text": "public void enablePanel(){\n\t\tpanel.enableEdition();\n\t}", "title": "" }, { "docid": "20f0ef1450a3aaa199104c59cfe52a24", "score": "0.47802052", "text": "public CMSOExportPanel() {\n initComponents();\n }", "title": "" } ]
a6e97b604d198597c2efa643ee9ee477
BA.debugLineNum = 119;BA.debugLine="Public Sub AddSupplier(s As Supplier)"; BA.debugLineNum = 120;BA.debugLine="ItemsSuppliers.Put(s.ID,s)";
[ { "docid": "c4cea71913a59d0f47740178af36c5c0", "score": "0.8734284", "text": "public String _addsupplier(b4a.diplomna.types._supplier _s) throws Exception{\n_itemssuppliers.Put((Object)(_s.ID),(Object)(_s));\n //BA.debugLineNum = 121;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" } ]
[ { "docid": "81769e7ddf38351eccd378fac53be62b", "score": "0.6217458", "text": "public String _class_globals() throws Exception{\n_rundelayed = new anywheresoftware.b4a.objects.collections.Map();\n //BA.debugLineNum = 4;BA.debugLine=\"Type RunDelayedData (Module As Object, SubName As\";\n;\n //BA.debugLineNum = 5;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "5bc9d2fea615ce1836b38f81abe58a94", "score": "0.6038806", "text": "public String _removeitemfrombasket(b4a.diplomna.types._good _good) throws Exception{\n_itemssuppliers.Remove((Object)(_good.SupplierID));\n //BA.debugLineNum = 146;BA.debugLine=\"ScannedItems.Remove(Good.ID)\";\n_scanneditems.Remove((Object)(_good.ID));\n //BA.debugLineNum = 147;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "2bbe9a2e8a3a81c598c901e83d8b416b", "score": "0.6033175", "text": "public void addsupplier(supplier s) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "38e1db97254464c422b7291b4221a796", "score": "0.5871028", "text": "public static String _spnorganizaciones_itemclick(int _position,Object _value) throws Exception{\nmostCurrent._idorgelegida = BA.ObjectToString(mostCurrent._listaorgs.Get(_value));\r\n //BA.debugLineNum = 346;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "title": "" }, { "docid": "7abda7016cb721a538abe6bec7acd9fa", "score": "0.5710137", "text": "public String _callsubplus2(Object _module,String _subname,int _delay,Object[] _arg) throws Exception{\n_plusimpl(_module,_subname,_delay,_arg,__c.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "bb329daa02f42f23a87dd10fb3eb30cb", "score": "0.564631", "text": "public void debug(Supplier<?> msgSupplier) {\r\n\r\n\t}", "title": "" }, { "docid": "46ff67c538760389b0bccafe461fbca8", "score": "0.5574847", "text": "public String _class_globals() throws Exception{\n_cartpan = new anywheresoftware.b4a.objects.PanelWrapper();\n_pblbase = new anywheresoftware.b4a.objects.PanelWrapper();\n_pnlheader = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 3;BA.debugLine=\"Private ItemNamelbl,ItemPricelbl,ItemQttylbl,Fina\";\n_itemnamelbl = new anywheresoftware.b4a.objects.LabelWrapper();\n_itempricelbl = new anywheresoftware.b4a.objects.LabelWrapper();\n_itemqttylbl = new anywheresoftware.b4a.objects.LabelWrapper();\n_finalsumlbl = new anywheresoftware.b4a.objects.LabelWrapper();\n_sumlbl = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 4;BA.debugLine=\"Public ShopList As ScrollView\";\n_shoplist = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 6;BA.debugLine=\"Public ScannedItems As Map\";\n_scanneditems = new anywheresoftware.b4a.objects.collections.Map();\n //BA.debugLineNum = 8;BA.debugLine=\"Public ItemsSuppliers As Map\";\n_itemssuppliers = new anywheresoftware.b4a.objects.collections.Map();\n //BA.debugLineNum = 9;BA.debugLine=\"Public CurrentItem As Good\";\n_currentitem = new b4a.diplomna.types._good();\n //BA.debugLineNum = 10;BA.debugLine=\"Public CurrentSupplier As Supplier\";\n_currentsupplier = new b4a.diplomna.types._supplier();\n //BA.debugLineNum = 12;BA.debugLine=\"Public FinishOrderbtn As Button\";\n_finishorderbtn = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 13;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "c24a0b178305f487f558bd81b0fbb4bb", "score": "0.5554622", "text": "public void insert(Supplier aSupplier) {\n\t String sql = \"INSERT INTO supplier (SupplierID, Name, Phone, Address) VALUES(?, ?, ?, ?)\";\t\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t\tsmt = conn.prepareStatement(sql);\n\t\t\tsmt.setLong(1, aSupplier.getSupplierid());\n\t\t\tsmt.setString(2, aSupplier.getName());\n\t\t\tsmt.setString(3, aSupplier.getPhone());\n\t\t\tsmt.setString(4, aSupplier.getAddress());\n\n\t\t\tsmt.executeUpdate();\t\t\t\n\t\t\tsmt.close();\n \n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n \n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "24a8445470cce23942ee475a5ed1a8b4", "score": "0.5543661", "text": "@Override\n\tpublic void debug()\n\t{\n\t}", "title": "" }, { "docid": "a9a2c6177e870f8b6c5b0276b2a42d79", "score": "0.54989356", "text": "int insert(TbItemDesc record);", "title": "" }, { "docid": "732a6ab191bd9f087b786973406027be", "score": "0.54783636", "text": "public String _callsubplus(Object _module,String _subname,int _delay) throws Exception{\n_callsubplus2(_module,_subname,_delay,(Object[])(__c.Null));\n //BA.debugLineNum = 28;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "b8b7f86c11af6512defc2f079139db26", "score": "0.54775786", "text": "int insert(SysMenuTest record);", "title": "" }, { "docid": "4da22fbdae90d34ebcab2ae121cfec73", "score": "0.5465734", "text": "@Override\n public void debug(String s) {\n }", "title": "" }, { "docid": "d45f9e61b4ef1f4f5c65665df8cb171c", "score": "0.54333794", "text": "public void addProductSupplier() {\n\t String supplierId = getToken(\"Enter supplier id\");\n\t Supplier supplier = warehouse.validateSupplier(supplierId); \n\t if (supplier == null) {\n\t\t System.out.println(\"Could not validate the id\");\n\t }\n\t else {\n\t\t String productId = getToken(\"Enter product id\");\n\t\t Product updatedProduct = warehouse.validateProduct(productId); \n\t\t if (updatedProduct == null) {\n\t\t\t System.out.println(\"Could not validate the id\");\n\t\t }\n\t\t else {\n\t\t\t double price = getDouble(\"Enter purchase price\");\n\t\t\t int inventory = getNumber(\"Enter inventory\");\n\t\t\twarehouse.addProductSupplier(supplierId, updatedProduct, price, inventory); \n\t\t }\n\t }\n }", "title": "" }, { "docid": "c1f4129c4004f59417a536bc8bdc7cb3", "score": "0.5413956", "text": "public void debug() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c996ed41eda388e0cdb853661ea74028", "score": "0.5407371", "text": "@Override\n public void debug(String s, Object o) {\n }", "title": "" }, { "docid": "ff229ea005f8f2aaea2a9249cc2c2b17", "score": "0.5368189", "text": "void setSupplierID(java.lang.String supplierID);", "title": "" }, { "docid": "aa96a589b55365d66f1d22f8c3ea6fa8", "score": "0.53444386", "text": "@Test\r\n public void testAddItem() {\r\n\tvendingMachine.addItem(vendingMachineItem, VendingMachine.B_CODE);\r\n }", "title": "" }, { "docid": "546d38e7fca84cc971026438832bc800", "score": "0.53386736", "text": "public void insert(ArRelease record) {\r\n getSqlMapClientTemplate().insert(\"AR_RELEASE.ibatorgenerated_insert\", record);\r\n }", "title": "" }, { "docid": "0ea125429bcc1ef74b5a20eb8e078d9e", "score": "0.53245294", "text": "int insert(SBCallDetail record);", "title": "" }, { "docid": "7154b118230f4c669a4899bc1c5808ea", "score": "0.5303133", "text": "public String _callsubdelayedplus2(Object _module,String _subname,int _delay,Object[] _arg) throws Exception{\n_plusimpl(_module,_subname,_delay,_arg,__c.True);\n //BA.debugLineNum = 22;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "581271186f1914823f838e17c15650f6", "score": "0.52951044", "text": "@Override\n public void debug(String s, Object o, Object o2) {\n }", "title": "" }, { "docid": "11a17c6c8340ad7bddfc271fecefec1b", "score": "0.52709067", "text": "@Override\n public void debug(Marker marker, String s, Object o) {\n }", "title": "" }, { "docid": "5b98d615fa482ca69f0e355688dc44a1", "score": "0.52702963", "text": "int insert(SysCompanyTypePrintBill record);", "title": "" }, { "docid": "2ebe57dd4e3b4b3c628a6b10b20b900d", "score": "0.5266054", "text": "public void insertSellercontactinfo(Sellercontactinfo sellercontactinfo) ;", "title": "" }, { "docid": "8b7a30eeccd1ff45c5ee7a501885f1d7", "score": "0.52611583", "text": "public static String _su_verificaairplane(anywheresoftware.b4a.BA _ba) throws Exception{\nif (_getairplanemode(_ba)==anywheresoftware.b4a.keywords.Common.True) { \r\n };\r\n //BA.debugLineNum = 90;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "title": "" }, { "docid": "e9f6966d450b6e5716c18b0c27e5c75e", "score": "0.5261041", "text": "@Override\n\tpublic void add(Object obj) {\n\t\tGoo goo = (Goo)obj;\n String SQL = \"INSERT INTO Goo(name, code, type, price)\" +\n \t\t\"VALUES('\"+goo.getName()+\"','\"+ goo.getCode()+\n \t\t\"','\"+goo.getType()+\"',\"+goo.getPrice()+\");\";\n String dType = dbType.SQLSERVER.toString();\n //sqlConn = TransactionalJDBCDriver.setupGooPileXAConnection(dType,\"GooPile\", \"tedi\", \"tedi\", SQL);\n sqlStatement(SQL); \n\t}", "title": "" }, { "docid": "c7eb64b23883a8627e5adb8fa30068e1", "score": "0.5261003", "text": "int insert(MyModule record);", "title": "" }, { "docid": "6cd560896062d64b7d1cfb6c5fb08cd8", "score": "0.5251622", "text": "public void addItem(){\n }", "title": "" }, { "docid": "1b1a95f21cea22e194f24c7d864dec6a", "score": "0.5249761", "text": "x0201.oecdStandardAuditFileTaxPT1.ShippingPointStructure addNewShipTo();", "title": "" }, { "docid": "1b1a95f21cea22e194f24c7d864dec6a", "score": "0.5249761", "text": "x0201.oecdStandardAuditFileTaxPT1.ShippingPointStructure addNewShipTo();", "title": "" }, { "docid": "2d0e66b03f90d62c20b3825fc7666752", "score": "0.5249124", "text": "public void add(String s) {\n\t\tSystem.out.println(\"add method of A1 -----String : \"+s);\n\t}", "title": "" }, { "docid": "51f3178495b8f2429843035be98e3260", "score": "0.5246094", "text": "int insert(SysDict record);", "title": "" }, { "docid": "585c615234e40a9ed1222d48f0d69c79", "score": "0.5240988", "text": "public static String _process_globals() throws Exception{\n_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();\n //BA.debugLineNum = 10;BA.debugLine=\"Dim kls As String\";\n_kls = \"\";\n //BA.debugLineNum = 11;BA.debugLine=\"Dim mtkl As String\";\n_mtkl = \"\";\n //BA.debugLineNum = 12;BA.debugLine=\"Dim coba As String\";\n_coba = \"\";\n //BA.debugLineNum = 13;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "e99ccf9679a7a41fa891610dc3663453", "score": "0.52329314", "text": "public String _callsubdelayedplus(Object _module,String _subname,int _delay) throws Exception{\n_callsubdelayedplus2(_module,_subname,_delay,(Object[])(__c.Null));\n //BA.debugLineNum = 15;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "3c48625122c59a6033c9dbd01b87ebe5", "score": "0.5212834", "text": "int insert(CDInventory record);", "title": "" }, { "docid": "2711f2b4796ca742cf1621c0e7eb6507", "score": "0.52045953", "text": "int insert(TbComItemCat record);", "title": "" }, { "docid": "729de8f3c3ec97a7a45fb298ae90a7dc", "score": "0.51938516", "text": "x0201.oecdStandardAuditFileTaxPT1.ShippingPointStructure addNewShipFrom();", "title": "" }, { "docid": "729de8f3c3ec97a7a45fb298ae90a7dc", "score": "0.51938516", "text": "x0201.oecdStandardAuditFileTaxPT1.ShippingPointStructure addNewShipFrom();", "title": "" }, { "docid": "39f6d47d730731a5824193f8f12ea208", "score": "0.5188086", "text": "@Override\n public void debug(Marker marker, String s, Object o, Object o2) {\n }", "title": "" }, { "docid": "a1eab865ec4b153b661f926c8b866ee6", "score": "0.51852113", "text": "@Override\npublic void addInformation(ItemStack item, EntityPlayer player, List l, boolean B){\nl.add(\"SlimeBallType: \"+type);\n\n}", "title": "" }, { "docid": "615935d8a4cdc70b34a4c0453d9f78a7", "score": "0.5184921", "text": "int insert(ShopScope record);", "title": "" }, { "docid": "c98df7e7edd25e52c956f929778e493c", "score": "0.51811177", "text": "public static Supplier addNewSupplier() {\r\n\t\t\tSystem.out.println(\"\\n\\n |ADD NEW SUPPLIER|\"\r\n\t\t\t\t\t+ \"\\n\\nPlease enter the following details:\"\r\n\t\t\t\t\t+ \"\\n________________________________________________________________________________________\\n\"\r\n\t\t\t\t\t+ \"\\nSupplier Code:\");\r\n\r\n\t\t\t// Input and validate Supplier Code variable.\r\n\t\t\tint supCode = Console.sc.nextInt();\r\n\t\t\tConsole.sc.nextLine();\r\n\t\t\t\r\n\t\t\t// Input and Validate Supplier Name Variable.\r\n\t\t\tSystem.out.println(\"Supplier Name:\");\r\n\r\n\t\t\tString supName = Console.sc.nextLine();\r\n\t\t\t\r\n\t\t\t// Input and validate selected value.\r\n\t\t\tSupRegion supRegion = validateRegion();\r\n\t\t\t\r\n\t\t\t// Run addNewAddress method.\r\n\t\t\tAddress supAddress = Address_Tester.addNewAddress();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"============================\" \r\n\t\t\t\t\t+ \"\\nSupplier Succefully added.\"\r\n\t\t\t\t\t+ \"\\n============================\\n\\n\");\r\n\r\n\t\t\treturn new Supplier(supCode, supName, supAddress, supRegion, null);\r\n\t\t}", "title": "" }, { "docid": "98a193286b72bdefce91c1643fb05192", "score": "0.5180531", "text": "private static void debug(String paramString) {}", "title": "" }, { "docid": "9c10a216adf48f44bf61dd78bb902d07", "score": "0.5179702", "text": "@Override\n public void debug(Marker marker, String s) {\n }", "title": "" }, { "docid": "9d35288746b47059a1ef5baee4d1ff5f", "score": "0.51788527", "text": "@Override\n\t\tpublic void debug(String msg) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2abea0215757c38728fa9373eec4150a", "score": "0.5177254", "text": "int insert(CodeBuildProperty record);", "title": "" }, { "docid": "6205f81ce734d155f54b89d1c9b8e89c", "score": "0.5169757", "text": "public static String _imgzadnjizapisi_click() throws Exception{\nanywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(mostCurrent._vvvvvvvvvv1.getObject()));\n //BA.debugLineNum = 119;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "5ab2aa130c0ae7e088d2ec6d17f58756", "score": "0.51617163", "text": "int insert(SysDept record);", "title": "" }, { "docid": "296766caca80c94fb3e22a4a70315abc", "score": "0.5153291", "text": "int insert(TumorInspectionField record);", "title": "" }, { "docid": "0b84f7cef00c13d6b351a263ab2ad598", "score": "0.51500154", "text": "public static void debug(String obj) {\n\t}", "title": "" }, { "docid": "a01126190723fbde44bbf4726c712f14", "score": "0.5140299", "text": "public void debugEnter();", "title": "" }, { "docid": "4b21aaf8a7f5e08736849e8fa339e2a2", "score": "0.51399654", "text": "private void debug(String msg) {\n }", "title": "" }, { "docid": "1c1300e57b1425a947faef4317a83dd1", "score": "0.5128372", "text": "private static void debug(String string) {\n\t\tdebug.add(string);\n\n\t}", "title": "" }, { "docid": "9bd5ec0aae827c8a2d884018d26e274d", "score": "0.5122751", "text": "@Override\n public void debug(Marker marker, String s, Object... objects) {\n }", "title": "" }, { "docid": "96d0478beff03cc6deb09641841ce415", "score": "0.51126873", "text": "@Override\r\n public void insert(SuppliersCertificate record) throws SQLException {\r\n // mkw 20150819 add\r\n\r\n // end\r\n sqlMapClient.insert(\"SUPPLIERS_CERTIFICATE.ibatorgenerated_insert\", record);\r\n }", "title": "" }, { "docid": "7c124a20470e65e842cd859482a2d81a", "score": "0.51011", "text": "int insert(Sys_right_controller record);", "title": "" }, { "docid": "168b239a04a69c50e9ff17719456962a", "score": "0.50999844", "text": "private void AddEnquiryData() {\n }", "title": "" }, { "docid": "e08110f08bc3bce78db87d215cd014c4", "score": "0.5097057", "text": "public static String _rv_requestupdate() throws Exception{\n_vv6.UpdateWidget(processBA);\n //BA.debugLineNum = 39;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "3aff365fb008eb468866895962906997", "score": "0.5095483", "text": "private static void db(String s) {\n if(Inline.DEBUG)\n System.out.println(s);\n }", "title": "" }, { "docid": "dd56801878e581df32d70252e9874cc3", "score": "0.50877285", "text": "public String _clearcart() throws Exception{\n_scanneditems.Clear();\n //BA.debugLineNum = 345;BA.debugLine=\"CallSub(Main,\\\"ClearItemInfo\\\")\";\n__c.CallSubNew(ba,(Object)(_main.getObject()),\"ClearItemInfo\");\n //BA.debugLineNum = 346;BA.debugLine=\"BuildCart\";\n_buildcart();\n //BA.debugLineNum = 347;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "bd23030c8344c2c0b0f98bc51d2bf9cd", "score": "0.50872135", "text": "public void trace(Supplier<?> msgSupplier) {\r\n\r\n\t}", "title": "" }, { "docid": "f055f997496386588480d28f10107408", "score": "0.50848526", "text": "@Override\n public void addItem(String billno, String nodeid, String vlues) {\n\n }", "title": "" }, { "docid": "279d23a0862d3822c0b323c8eeeb2367", "score": "0.50836855", "text": "private void debug(String message)\n {\n }", "title": "" }, { "docid": "6de1bad131fad5fd967fbbb9affbc120", "score": "0.50789386", "text": "@Override\r\n\tpublic void insert() {\n\t\tSystem.out.println(name + \" inserted\");\r\n\t}", "title": "" }, { "docid": "19cd68f6630d89d5e7e435985b9a997f", "score": "0.5073323", "text": "void writeDebug(StringBuffer sb) {\n }", "title": "" }, { "docid": "97ce4cdbc5e3a3ff5e2a846e6a95af62", "score": "0.50729287", "text": "int insert(StockLogDO record);", "title": "" }, { "docid": "f7313f6a045d4c5ba270e65c0abdebcc", "score": "0.5071319", "text": "int insert(ShopCollect record);", "title": "" }, { "docid": "e299b965be88d8b130f03a6264e026f6", "score": "0.50704527", "text": "@Override\n public void debug(String s, Object... objects) {\n }", "title": "" }, { "docid": "c5ed5d22d9cfc5d017fae189b3b0c004", "score": "0.5070396", "text": "@Test\r\n public void testAddItemToInv() {\r\n System.out.println(\"addItemToInv\");\r\n Item item = new Items().getApple();\r\n String expResult = item.getName();\r\n instance.addItemToInv(item);\r\n String result = instance.getInv().getItem(item.getName()).getName();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "title": "" }, { "docid": "3efbd39d3910414c57eb216d18b3113a", "score": "0.50703937", "text": "public void mo44188b() {\n }", "title": "" }, { "docid": "595da5c1b2291d11b4720644d30d42d0", "score": "0.5069933", "text": "public static String _process_globals() throws Exception{\n_vv6 = new anywheresoftware.b4a.objects.RemoteViewsWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "ab01279f6eefed925b9672a1c2e50e29", "score": "0.5067493", "text": "int insert(SysManager record);", "title": "" }, { "docid": "2d03cd7f76f449f578c5f77048bc1dd7", "score": "0.50657594", "text": "public void addSupplier(Supplier supplier, User user) {\n\t\tif(Tools.isEmpty(supplier.getSupplierId())){//新增\n\t\t\tDate d = new Date();\n\t\t\tsupplier.setCreateTime(d);\n\t\t\tsupplier.setUser(user);\n\t\t\tcommonDao.addObject(supplier);\n\t\t}else{//修改\n\t\t\tcommonDao.updateObject(supplier);\n\t\t}\n\t}", "title": "" }, { "docid": "c063c3153586340419828d519f4a6cca", "score": "0.5061477", "text": "int insert(TbSeckillGoods record);", "title": "" }, { "docid": "453cc866516609df5325bb2c79418e11", "score": "0.506083", "text": "void updateSupplierDetails(Long supplierID, String contactNo, String country);", "title": "" }, { "docid": "198bffcb06d2da06af356ebbf6a334b8", "score": "0.5053661", "text": "int insert(TbAuthMenuFun record);", "title": "" }, { "docid": "e9a640c524cfcfb0ba1d85c0d84555df", "score": "0.5052542", "text": "public void debug(Object msgPartA, Object msgPartB);", "title": "" }, { "docid": "32fb24ad457005c40c85ad983cee99a1", "score": "0.5045257", "text": "public void AddItem(int item) {\n }", "title": "" }, { "docid": "89157bd6e58b47a422e2fe92f432a369", "score": "0.5041375", "text": "int insert(FreezeDO record);", "title": "" }, { "docid": "9ef133c3e5eb73c7eff59401ba95e5bb", "score": "0.5040365", "text": "public void addItem() {\r\n\t}", "title": "" }, { "docid": "1c485ff0cf8052d20112c6f11f3a8fb0", "score": "0.5034955", "text": "public void displayDebugMessage(FrameworkEntity item, String message);", "title": "" }, { "docid": "43e494e41f5488e8d6f58109d007a174", "score": "0.50287426", "text": "gov.nih.nlm.ncbi.www.Blast4ProgramInfoDocument.Blast4ProgramInfo addNewBlast4ProgramInfo();", "title": "" }, { "docid": "3c81bc28abe36a4a43142439962f0694", "score": "0.5027922", "text": "int insert(TExaPaperInfo record);", "title": "" }, { "docid": "937650e76f51acbc1a34f7cf48c2d63e", "score": "0.5026005", "text": "int insertSelective(SysMenuTest record);", "title": "" }, { "docid": "1e4152d916e427709720372c63ef1484", "score": "0.5009843", "text": "void insert(TbCredit record);", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.5007661", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "42924f5ad432aac4ec5f0da3942ddf28", "score": "0.5003902", "text": "int insert(TblQuickMerRelDO record);", "title": "" }, { "docid": "db563a148dd53910ee31e53c29b46353", "score": "0.49979037", "text": "public String addNewSupplier(String supplierName, String supplierAddress, int supplierPhoneNo, String supplierEmail, int supplierBankACCNo){\n return new Supplier(supplierName, supplierAddress, supplierPhoneNo, supplierEmail, supplierBankACCNo).addNewSupplier();\n }", "title": "" }, { "docid": "bc3d701a4ee4a3b57d675db9769dde32", "score": "0.4997545", "text": "com.cdiscount.www.SupplyOrderReportLine addNewSupplyOrderReportLine();", "title": "" }, { "docid": "867ea12e5a38d8bbc84226b97e3a2c13", "score": "0.49931043", "text": "int insert(QdBiPlanDetail record);", "title": "" }, { "docid": "fc657c8ad6ae6d1ac4d61553df6ccd0f", "score": "0.4990166", "text": "int insertChanged(Sys_right_controller record);", "title": "" }, { "docid": "980db0d55eaa908fc5fb2735f5158261", "score": "0.49892122", "text": "synchronized\n\tpublic static void debug(String s) {\n\t\tLog.write(\"Debug (\" + getDate() + \"): \" + s);\n\t}", "title": "" }, { "docid": "cd3aecf58e971f7ecacf7da73003f5f7", "score": "0.49841562", "text": "void details(String str){\n new itemData().execute(\"item\", str);\n }", "title": "" }, { "docid": "f55624837716e9750f4cb264b4d718a1", "score": "0.49837834", "text": "public static String _ac_spinnermatkul_itemclick(int _position,Object _value) throws Exception{\n_mtkl = BA.ObjectToString(_value);\n //BA.debugLineNum = 131;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "bee6dfd08ec7cad4d75376a2cd7e6141", "score": "0.49810982", "text": "int insert(EcsPackageGoods record);", "title": "" }, { "docid": "ab4a091179db21312044aa8f35cbc2ca", "score": "0.49779442", "text": "void xsetSupplierID(x0201.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax30Car supplierID);", "title": "" }, { "docid": "23e44697b04a5cfea30476f33165bc99", "score": "0.4975334", "text": "public static String _process_globals() throws Exception{\n_timer1 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 20;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "8f1c3dc6c69805643abca7271885a98c", "score": "0.49729028", "text": "int insert(PatientDiagnosticBrushingHabits record);", "title": "" }, { "docid": "869c9a7647ee39ede14a2804d4003e8f", "score": "0.49726492", "text": "int insert(Fieldscreentab record);", "title": "" } ]
55d68f6ba8ca4f3721ff4eeed5c0c493
Property accessors get orderId
[ { "docid": "475c898ddf9729a1a1c47a3fd5900dc7", "score": "0.8023756", "text": "public Long getOrderId() {\n return this.orderId;\n }", "title": "" } ]
[ { "docid": "e0a111d35aa73dcb69f70f7d51afc2bf", "score": "0.8431111", "text": "public Integer getOrderId() {\r\n return orderId;\r\n }", "title": "" }, { "docid": "913d0fbf28c17052dc0a23d681513e68", "score": "0.84102064", "text": "public Long getOrderId() {\r\n return orderId;\r\n }", "title": "" }, { "docid": "813f2088ac9446c2df644e233a49824f", "score": "0.8375863", "text": "public int getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "19a87a22e36141e0f24b81ba58808ca0", "score": "0.83504176", "text": "public Integer getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "19a87a22e36141e0f24b81ba58808ca0", "score": "0.83504176", "text": "public Integer getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "19a87a22e36141e0f24b81ba58808ca0", "score": "0.83504176", "text": "public Integer getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "19a87a22e36141e0f24b81ba58808ca0", "score": "0.83504176", "text": "public Integer getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "19a87a22e36141e0f24b81ba58808ca0", "score": "0.83504176", "text": "public Integer getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "f52997890ea4ab26c5cf37978b8ff5cc", "score": "0.83292097", "text": "public Long getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "80af4a98e09baccda12cff15d2754e2f", "score": "0.82815504", "text": "public String getOrderid() {\n return orderid;\n }", "title": "" }, { "docid": "80af4a98e09baccda12cff15d2754e2f", "score": "0.82815504", "text": "public String getOrderid() {\n return orderid;\n }", "title": "" }, { "docid": "80af4a98e09baccda12cff15d2754e2f", "score": "0.82815504", "text": "public String getOrderid() {\n return orderid;\n }", "title": "" }, { "docid": "80af4a98e09baccda12cff15d2754e2f", "score": "0.82815504", "text": "public String getOrderid() {\n return orderid;\n }", "title": "" }, { "docid": "52ff30e26ef5c63301262077c9ac8f72", "score": "0.82026", "text": "public String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "52ff30e26ef5c63301262077c9ac8f72", "score": "0.82026", "text": "public String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "52ff30e26ef5c63301262077c9ac8f72", "score": "0.82026", "text": "public String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "52ff30e26ef5c63301262077c9ac8f72", "score": "0.82026", "text": "public String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "434b1a76e5bb04d6cdd4fa76eae79aff", "score": "0.8151232", "text": "@JsonGetter(\"order_id\")\r\n public String getOrderId() {\r\n return orderId;\r\n }", "title": "" }, { "docid": "a50ca24feca12bcccaaa063b0f8bd947", "score": "0.81208605", "text": "public String getOrderID() {\n return orderID;\n }", "title": "" }, { "docid": "5196047b84660fb6fc279800bb25861b", "score": "0.8084853", "text": "@Override\n\tpublic String getObj_id() {\n\t\treturn order_id;\n\t}", "title": "" }, { "docid": "70aa59d727ce2b06a4414e22b2a7c7b1", "score": "0.80505574", "text": "@Schema(description = \"Es el identificador de la transferencia de salida.\")\n public String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "ecaafd186c70679a11f98ca0118f7d4e", "score": "0.8045858", "text": "@Schema(description = \"Es el orderId asignado a la solicitud.\")\n public String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "4971c22b51b6f05083f66216ea3ba153", "score": "0.7958282", "text": "public Integer getOrderId() {\n\t\treturn orderId;\n\t}", "title": "" }, { "docid": "aa1630fd6cf7c7c3726a0f89fb2f8598", "score": "0.7921279", "text": "public String getOrderId() {\n return this.orderId;\n }", "title": "" }, { "docid": "f4094804e9d2ce02f1d2a5cecaf9883f", "score": "0.7875077", "text": "@ApiModelProperty(value = \"Unique order Id in the system\")\n\n\n public Long getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "92930b7d9180259f3de1a181811a9751", "score": "0.78510386", "text": "public java.lang.String getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "7bb8fe848387adc1fd95f1b2d162dfef", "score": "0.78482854", "text": "public int getOrderId() {\n\t\treturn orderId;\n\t}", "title": "" }, { "docid": "fb6bb12b296d756997a1086227053c68", "score": "0.78078085", "text": "int getOrderId();", "title": "" }, { "docid": "085189b7989224b325b1194e24890473", "score": "0.78064847", "text": "public long getIdOrder() {\n return idOrder;\n }", "title": "" }, { "docid": "a4326611b6af2ea5c080b7ea704e0065", "score": "0.77806103", "text": "long getOrderId();", "title": "" }, { "docid": "946cd20c4629a4d51a70dae7dd80953b", "score": "0.77221674", "text": "@Override\n\tpublic void getOrderById() {\n\t\t\n\t}", "title": "" }, { "docid": "184f7b2fda2372fa052b3291e43faf98", "score": "0.7630237", "text": "@ApiModelProperty(value = \"Events that have Order Id\")\n public Integer getOrderId() {\n return orderId;\n }", "title": "" }, { "docid": "d8899ea3e119f9449dbc3a8179b36011", "score": "0.7584759", "text": "java.lang.String getClientOrderID();", "title": "" }, { "docid": "d8899ea3e119f9449dbc3a8179b36011", "score": "0.7584759", "text": "java.lang.String getClientOrderID();", "title": "" }, { "docid": "d8899ea3e119f9449dbc3a8179b36011", "score": "0.7584759", "text": "java.lang.String getClientOrderID();", "title": "" }, { "docid": "d8899ea3e119f9449dbc3a8179b36011", "score": "0.7584759", "text": "java.lang.String getClientOrderID();", "title": "" }, { "docid": "d8899ea3e119f9449dbc3a8179b36011", "score": "0.7584759", "text": "java.lang.String getClientOrderID();", "title": "" }, { "docid": "d8899ea3e119f9449dbc3a8179b36011", "score": "0.7584759", "text": "java.lang.String getClientOrderID();", "title": "" }, { "docid": "eaec1ecfeae79e97812d7deabde24ec8", "score": "0.7509826", "text": "@ApiModelProperty(value = \"The unique identifier of the order.\")\n @JsonProperty(JSON_PROPERTY_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getId() {\n return id;\n }", "title": "" }, { "docid": "52fb4ac65891ffdf8041065c5b7fdd33", "score": "0.7386514", "text": "public int getOrderNumber() {\n return orderNumber;\n }", "title": "" }, { "docid": "9885156eec11258679d1dbef1149c7a4", "score": "0.7303116", "text": "public void setOrderId(Integer orderId) {\r\n this.orderId = orderId;\r\n }", "title": "" }, { "docid": "684537531263dd52783a002279e5ec30", "score": "0.72604394", "text": "protected int getOrderNum() {\n return orderNum;\n }", "title": "" }, { "docid": "a37b2ec26b230a0f71e99ac8a2ae4564", "score": "0.7252651", "text": "public Integer getOrderNo() {\n return orderNo;\n }", "title": "" }, { "docid": "5d9a97ab5a93b0c3209ca5496c098963", "score": "0.7192029", "text": "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "5d9a97ab5a93b0c3209ca5496c098963", "score": "0.7192029", "text": "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "5d9a97ab5a93b0c3209ca5496c098963", "score": "0.7192029", "text": "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "5d9a97ab5a93b0c3209ca5496c098963", "score": "0.7192029", "text": "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "5d9a97ab5a93b0c3209ca5496c098963", "score": "0.7192029", "text": "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "a515e4512bdf9b248193644a63b12aab", "score": "0.71848285", "text": "public int getorderno() \r\n {\r\n return orderno;\r\n }", "title": "" }, { "docid": "4d629a6c839697e27c987ac7aa75afc3", "score": "0.7184333", "text": "@ApiModelProperty(required = true, value = \"The order id to be accepted\")\n public Integer getOrderid() {\n return orderid;\n }", "title": "" }, { "docid": "0a434d214d6ece3b469fd0e788951ec4", "score": "0.7174449", "text": "public void setOrderId(Long orderId) {\r\n this.orderId = orderId;\r\n }", "title": "" }, { "docid": "98c74fcd9bd211356a7f9e724746e7c0", "score": "0.71230394", "text": "public int getOrderNum() {\n return orderNum;\n }", "title": "" }, { "docid": "9c58637fc8e9d99d59d3887b3d60eddc", "score": "0.7095539", "text": "java.lang.String getExchangeOrderID();", "title": "" }, { "docid": "293581e80b76af403f082c8d17965de9", "score": "0.7076772", "text": "public OrderRepresentation getOrder(String id);", "title": "" }, { "docid": "ea477f0b8ad20d63290652ffa0b7fb63", "score": "0.7076579", "text": "public Integer getOrderNum() {\r\n return orderNum;\r\n }", "title": "" }, { "docid": "ca0755f87a4cd652fda401730d9ed1c5", "score": "0.7057511", "text": "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "7cf965bda4d5c678fb2c797504bc38bf", "score": "0.701068", "text": "public int getCurrentOrderId() {\n return currentOrderId;\n }", "title": "" }, { "docid": "666d197568665c3b6eef7b1430287554", "score": "0.69954014", "text": "public Integer getOrderNo()\r\n/* 41: */ {\r\n/* 42:34 */ return this.orderNo;\r\n/* 43: */ }", "title": "" }, { "docid": "772d6f614a448f82dc0bf357407be938", "score": "0.6988292", "text": "@Override\r\n\tpublic Order getOrderByOrderId(Integer orderId) {\n\t\tString sql=\"select * from OMS where orderId=?\";\r\n\t\tOrder objOrder=jdbcTemplateObject.queryForObject(sql, new Object[] {orderId}, new OrderMapper());\r\n\t\treturn objOrder;\r\n\t}", "title": "" }, { "docid": "d96c70a3570f6e99c73d3d53bf9e8bdd", "score": "0.69853866", "text": "public String getOrderNumber() {\n return orderNumber;\n }", "title": "" }, { "docid": "4e79bfcf0cb0a4f2ff9084bbab417c06", "score": "0.6984394", "text": "public Integer getOrderNum() {\n return orderNum;\n }", "title": "" }, { "docid": "19fb950f79dcefaeafa89ccccdf24815", "score": "0.6972152", "text": "public String getOrderNo() {\n return orderNo;\n }", "title": "" }, { "docid": "19fb950f79dcefaeafa89ccccdf24815", "score": "0.6972152", "text": "public String getOrderNo() {\n return orderNo;\n }", "title": "" }, { "docid": "19fb950f79dcefaeafa89ccccdf24815", "score": "0.6972152", "text": "public String getOrderNo() {\n return orderNo;\n }", "title": "" }, { "docid": "ae30fa0f896cdfb9be999e0800ee6a9b", "score": "0.69718635", "text": "public Integer getOrdId() {\n return (Integer) getAttributeInternal(ORDID);\n }", "title": "" }, { "docid": "e589cbd29d2e949ae1df135348b27451", "score": "0.696939", "text": "public void setOrderId(int orderID)\r\n\t{\r\n\t\tthis.orderID = orderID;\r\n\t}", "title": "" }, { "docid": "06a98ccdc0a3906ba079fec938f2a62f", "score": "0.6967673", "text": "@Override\n\tpublic int getOrderNo() {\n\t\treturn OrderNo;\n\t}", "title": "" }, { "docid": "2846aadc406ef22f59492440f8f4e274", "score": "0.69597423", "text": "int createAndGetId(OrderDTO order);", "title": "" }, { "docid": "6d40bf8fcca82236e329ac6b51274867", "score": "0.69400316", "text": "public Integer getOrderRentId() {\n return orderRentId;\n }", "title": "" }, { "docid": "368eb03c65528e7491bbe1a992a37e96", "score": "0.6931656", "text": "java.lang.String getOCOLinkedOrderServerOrderID();", "title": "" }, { "docid": "2aeda0e4a8a3413f08e283e4a2bae933", "score": "0.69208664", "text": "public void setOrderId(String orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "2aeda0e4a8a3413f08e283e4a2bae933", "score": "0.69208664", "text": "public void setOrderId(String orderId) {\n this.orderId = orderId;\n }", "title": "" }, { "docid": "29c1b48e5846041e0e866eb1f9272fb4", "score": "0.6895609", "text": "java.lang.String getClientOrderID1();", "title": "" }, { "docid": "29c1b48e5846041e0e866eb1f9272fb4", "score": "0.6895609", "text": "java.lang.String getClientOrderID1();", "title": "" }, { "docid": "7568b767ef92cf581cb21d527a99abc6", "score": "0.6895242", "text": "public int getOrderNumber() {\n\t\treturn orderNumber;\n\t}", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "7272dc9c147b723c9304a04aedfdadb6", "score": "0.6892301", "text": "java.lang.String getServerOrderID();", "title": "" }, { "docid": "175b317d8a145f7899bb67403b251374", "score": "0.6858542", "text": "public String getOrdernumber() {\n return ordernumber;\n }", "title": "" }, { "docid": "175b317d8a145f7899bb67403b251374", "score": "0.6858542", "text": "public String getOrdernumber() {\n return ordernumber;\n }", "title": "" }, { "docid": "3261cc296a2c259bf798bd6bd77ccd33", "score": "0.6851778", "text": "@Schema(description = \"Es el identificador de la orden de pago de Monex de la transferencia de salida.\")\n public Integer getPaymentOrderId() {\n return paymentOrderId;\n }", "title": "" }, { "docid": "066325f0484b0cdf7984482c85de2fff", "score": "0.68424106", "text": "String getOrderItemSeqId();", "title": "" }, { "docid": "73e175cf825260fd5bd7555f1be97b86", "score": "0.6830155", "text": "public Order getOrder() {\n return this.order;\n }", "title": "" }, { "docid": "f00558f073a73851682ce743cfee6774", "score": "0.68141925", "text": "@Override\r\n\tpublic Order viewOrder(int orderId) {\n\t\treturn ord.viewOrder(orderId);\r\n\t}", "title": "" }, { "docid": "52c281b2e82625cd1aa89ea33df23949", "score": "0.6811997", "text": "public Order getOrder()\n {\n return order;\n }", "title": "" }, { "docid": "52c281b2e82625cd1aa89ea33df23949", "score": "0.6811997", "text": "public Order getOrder()\n {\n return order;\n }", "title": "" }, { "docid": "fb3f2a91381e27c492c8db5a17eca3d3", "score": "0.6810168", "text": "public Order getOrder() {\n return order;\n }", "title": "" }, { "docid": "e947831e010875eeafdd00e1b6d02771", "score": "0.6796257", "text": "public String getOrderNum() {\n return orderNum;\n }", "title": "" }, { "docid": "7089aa8e1ebd0b5c85a3681bf4e7b782", "score": "0.6792654", "text": "public int getOrder() {\n return this.order;\n }", "title": "" }, { "docid": "7179bfd598ae3737937ee4409302624d", "score": "0.67893565", "text": "java.lang.String getClientOrderID2();", "title": "" }, { "docid": "7179bfd598ae3737937ee4409302624d", "score": "0.67893565", "text": "java.lang.String getClientOrderID2();", "title": "" }, { "docid": "f2195515c52bd36f8be3053853770c81", "score": "0.6788006", "text": "public void setOrderid(String orderid) {\n this.orderid = orderid;\n }", "title": "" }, { "docid": "f2195515c52bd36f8be3053853770c81", "score": "0.6788006", "text": "public void setOrderid(String orderid) {\n this.orderid = orderid;\n }", "title": "" }, { "docid": "f2195515c52bd36f8be3053853770c81", "score": "0.6788006", "text": "public void setOrderid(String orderid) {\n this.orderid = orderid;\n }", "title": "" }, { "docid": "a97f6102cbf04ea3152b21b0996dc149", "score": "0.6778701", "text": "OrderParticipantKey getOrderKey();", "title": "" }, { "docid": "832fdb649aab603e2d67df8ac4d0d8c9", "score": "0.67622375", "text": "@Override\n\tpublic OrderInfo getOrder(int id) {\n\t\treturn dao.getOrder(id);\n\t}", "title": "" } ]
b231cefe43eb55d779f5dbb2d2310c65
first sperate the left handside of equation
[ { "docid": "49982ea954289f116e15dfe7fbcf8579", "score": "0.0", "text": "public String setVaraiableAndCoefficient(String functionOf)\n {\n String strEnd= str.substring(str.indexOf(\"=\")+1);\n str=str.substring(0,str.indexOf(\"=\"));\n function=\"(\"+strEnd;\n //add + operator if no operator at the start of equation\n //+2x+y-z......\n if(str.charAt(0)!='-') str=\"+\"+str;\n\n //Seperate varable with their coefficient and store in a varaible array\n //add multiplication sign if there is no sign between coefficient and varaible\n //+2*x\n //+345*w...\n StringTokenizer strT=new StringTokenizer(str,\"+-\");\n numberOfVaraible=strT.countTokens();\n varaible=new String[numberOfVaraible];\n coefficient=new float[numberOfVaraible];\n Arrays.fill(coefficient,1);\n for(int i=0;i<numberOfVaraible;i++)\n {\n varaible[i]=strT.nextToken();\n varaible[i]=str.charAt(str.indexOf(varaible[i])-1)+varaible[i];\n //add multiplication sign\n //get coefficient\n int varLenght=varaible[i].length();\n if(varLenght>2)\n {\n coefficient[i]=Float.parseFloat(varaible[i].substring(0,varaible[i].length()-1));\n char var= varaible[i].charAt(varLenght-1);\n varaible[i]=varaible[i].substring(0,varaible[i].indexOf(var))+\"*\"+var;\n }\n }\n switch (functionOf) {\n case \"x\": return getFunction(\"x\",coefficient[0]);\n case \"y\": return getFunction(\"y\",coefficient[1]);\n case \"z\": return getFunction(\"z\",coefficient[2]);\n case \"w\": return getFunction(\"w\",coefficient[3]);\n case \"u\": return getFunction(\"u\",coefficient[4]);\n default: return \"no varaible of this name\";\n }\n }", "title": "" } ]
[ { "docid": "8028b3c0c3459384e79c6d86635f933c", "score": "0.64205056", "text": "AdditiveExpression getLeftExpr();", "title": "" }, { "docid": "8cfd601dc864a1b79ec9e377f11b78a8", "score": "0.6311133", "text": "Expression getLeft();", "title": "" }, { "docid": "bfe8805b4211abc33294130db0998537", "score": "0.63080513", "text": "public Expression getLeft();", "title": "" }, { "docid": "c35a1072762d969b52374a4b9c469420", "score": "0.6301965", "text": "private Expression expression0() {\n\t\tExpression leftSideExpr = expression1();\n\n\t\t//relational operators\n\t\tif(have(NonTerminal.OP0)){\n\t\t\tToken opToken = currentToken;\n\t\t\tExpression rightSideExpr = null;\n\n\t\t\t//operator for the expression\n\t\t\top0();\n\n\t\t\t//right-hand side\n\t\t\trightSideExpr = expression1();\n\t\t\tleftSideExpr = Command.newExpression(leftSideExpr, opToken, rightSideExpr);\n\t\t}\n\t\treturn leftSideExpr; \n\t}", "title": "" }, { "docid": "b4a527f27105453718f9a8b846cb01c4", "score": "0.6172601", "text": "SharkExpression getLeft();", "title": "" }, { "docid": "b4a527f27105453718f9a8b846cb01c4", "score": "0.6172601", "text": "SharkExpression getLeft();", "title": "" }, { "docid": "598dfa432d2a554bba1f5cb64f4adb14", "score": "0.6076613", "text": "private double compute(double LHS, double RHS,String op){\r\n switch (op){\r\n case \"+\": return LHS + RHS;\r\n case \"-\": return LHS - RHS;\r\n case \"/\": return LHS / RHS;\r\n case \"*\":\r\n case \"x\":\r\n case \"X\": return LHS * RHS;\r\n case \"^\": return Math.pow(LHS, RHS);\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "9e930f135057dba70630b05f6deb980d", "score": "0.6019846", "text": "public DiceNotationExpression getLeft();", "title": "" }, { "docid": "750d1be7b2c15d0eeae91b6789784fc7", "score": "0.6011068", "text": "public Expression getLeftSide() {\n\t\treturn leftSide;\n\t}", "title": "" }, { "docid": "4a6e7ceeca22a262b706c974c6ac52a5", "score": "0.59875107", "text": "double leftmostX();", "title": "" }, { "docid": "d4ac5bb19e42b185e2418807f4c27e0e", "score": "0.5937624", "text": "public int getLeftOperand(){\r\n return leftOperand;\r\n }", "title": "" }, { "docid": "2b01ab7a51ec4be6311d8a19af83753c", "score": "0.5894271", "text": "double getX(){\r\n\t\treturn ((e*d)-(b*f))/((a*d)-(b*c));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8fa2cd98e02557862129183f1b3c50f3", "score": "0.5816809", "text": "public PrimitiveOperator oneLeft() {\n\t\tboolean[] newTruthTable = new boolean[truthTable.length / 2];\n\n\t\t// note that the left bit is alway the MSB i.e. bit #1 (binary) or #2 (trinary)\n\t\t// either way copy the second half of the truthtable\n\t\tfor (int i = 0; i < newTruthTable.length; i++)\n\t\t\tnewTruthTable[i] = truthTable[i + newTruthTable.length];\n\n\t\treturn new PrimitiveOperator(newTruthTable);\n\t}", "title": "" }, { "docid": "6117db57260aa444ddeeec13e86e102a", "score": "0.57947826", "text": "public ExpressionNode simple_part(ExpressionNode maybeLeft){\n\t\tif(isAddop()){\n\t\t\tOperationNode oNode = new OperationNode(matchAddop());\n\t\t\toNode.setLeft(maybeLeft);\n\t\t\tExpressionNode eNode = term();\n\t\t\toNode.setRight(simple_part(eNode));\n\t\t\treturn oNode;\n\t\t}\n\t\t//else lambda\n\t\treturn maybeLeft;\n\t}", "title": "" }, { "docid": "00803ad569dfb96fc4ef967d3c522ca0", "score": "0.5789085", "text": "@Override\n\tpublic double eval(double left, double right, double... params) {\n\t\tdouble p = params[0];\n\t\tdouble denom = 1d-(1d-p)*left*right;\n\t\treturn Utils.eq(denom,0d) ? \n\t\t\t\t0d :\n\t\t\t\t(left+right-(2d-p)*left*right)/denom;\n\t}", "title": "" }, { "docid": "0f0827b68417999f956361ba261aa9a1", "score": "0.57825524", "text": "public ExpressionNode term_part(ExpressionNode maybeLeft){\n\t\tOperationNode node = null;\n\t\tif(isMulop()){\n\t\t\tnode = new OperationNode(matchMulop());\n\t\t\tnode.setLeft(maybeLeft);\n\t\t\tExpressionNode eNode = factor();\n\t\t\tnode.setRight(term_part(eNode));\n\t\t\treturn node;\n\t\t}\n\t\t//else lambda\n\t\treturn maybeLeft;\n\t}", "title": "" }, { "docid": "bb013244bc87115be0d36eb54b1f91e1", "score": "0.57649136", "text": "public NumberTerm getLHS() {\n return lhs;\n }", "title": "" }, { "docid": "6b497324267220d0ae82a6eb47d7a2a7", "score": "0.5755012", "text": "public double getLeftPValue(){\r\n\t\t\r\n\t\treturn asymptoticLeftTail;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "60bc7547a19849ccf3e65ce04c6b152c", "score": "0.5745217", "text": "public Expression getLeft() {\n return left;\n }", "title": "" }, { "docid": "f0713e4dbeec3c354d5f2652cec12180", "score": "0.57415235", "text": "private double EquationResult() {\n double t1 = 20 * x1 * x2;\n double t2 = 16 * x2;\n double t3 = 2 * x1 * x1;\n double t4 = x2 * x2;\n double t5 = (x1 + x2) * (x1 + x2);\n\n return t1 + t2 - t3 - t4 - t5;\n }", "title": "" }, { "docid": "2b58d01000a527a201d834611c7cbc18", "score": "0.5682871", "text": "@Override\r\n\tpublic double evalate() {\n\t\treturn Math.cos(expression.evalate());\r\n\t}", "title": "" }, { "docid": "25b173c44739a215eb599ffa126a7105", "score": "0.5630611", "text": "@Override \n public BigDecimal evaluateCalculation( )\n {\n assert before != null :\"No left\";\n assert after != null : \"No right\"; \n \n BigDecimal beforeVal = before.evaluateCalculation();\n BigDecimal rigthVal = after.evaluateCalculation();\n \n switch ( operator )\n { \n /*case '+' : case '^' : \n case '-': case '*' : case '/': case '\\u00D7': \n { \n assert false; // this is handled by BinaryNumericOnlyExpression now\n }break ; */\n case '+' : { BigDecimal result = beforeVal.add(rigthVal); return result ;} \n case '-': { BigDecimal result = beforeVal.subtract(rigthVal); return result;} \n case '*' : case '\\u00D7': { BigDecimal result = beforeVal.multiply(rigthVal); return result;} \n case '/':case '÷': \n { \n return beforeVal.divide(rigthVal, MathContext.DECIMAL128);\n } \n case '^': \n { \n int power = rigthVal.intValue(); \n BigDecimal result = beforeVal.pow(power); \n return result ; \n }\n \n case '=': \n { \n System.out.println(\"= LEfT \" + beforeVal + \" R = \"+ (rigthVal)); \n assert ( BigDecimal.ONE.compareTo(BigDecimal.ONE) == 0 ) ; \n assert ( BigDecimal.ZERO.compareTo(BigDecimal.ONE ) == -1 ) ; \n \n System.out.println(\"= evL @@ \" + beforeVal.compareTo(rigthVal) );\n if( beforeVal.compareTo(rigthVal) == 0 )\n { \n System.out.println(\"RETURN 1 \" ); \n return BigDecimal.ONE;\n }\n System.out.println(\"RETURN 0 \" ); \n return BigDecimal.ZERO; \n } \n // Almost equal to for numbers is within 1% of the original typeNumber \n // useful to compare floating point numbers.\n // for strings they have sound alike .\n case '~': \n { \n if( rigthVal.compareTo(BigDecimal.ZERO)==0)// CHECK FOR ZERO\n { \n if( (rigthVal.abs()).doubleValue() > 0.02 )return BigDecimal.ZERO; \n return BigDecimal.ONE; \n } \n BigDecimal r = beforeVal.abs().divide(rigthVal.abs(), MathContext.DECIMAL128);\n double d = r.doubleValue(); // APPROXIMATLY \n System.out.println(\"= LEfT \" + beforeVal + \" R = \"+ (rigthVal)+ \" \"+ d );\n \n if( d > 0.99 && d < 1.01 )// within one percent.\n { \n return BigDecimal.ONE;// false \n }else \n return BigDecimal.ZERO; \n }\n case '>': \n { \n if( beforeVal.compareTo(rigthVal) > 0 )\n { \n //System.out.println(\"RETURN 1 > \" ); \n return BigDecimal.ONE;\n } return BigDecimal.ZERO; \n } \n case '<': \n { \n return ((beforeVal.compareTo(rigthVal) == -1) ? BigDecimal.ONE:BigDecimal.ZERO); \n } \n case '≠': \n { \n return ((beforeVal.compareTo(rigthVal) != 0) ? BigDecimal.ONE:BigDecimal.ZERO); \n }\n case '≤': \n { \n int r = beforeVal.compareTo(rigthVal); \n if( r<= 0 )return BigDecimal.ONE; \n return BigDecimal.ZERO;\n }\n case '≥': \n { \n int r = beforeVal.compareTo(rigthVal); \n if( r>= 0 )return BigDecimal.ONE; \n return BigDecimal.ZERO;\n }\n case '&': \n { \n // NOTICE WE EVLUATE BOTH SIDES \n System.out.println( \"DOING AND question b= \" + before.isQuestion() \n + \"? r=\"+ this.after.isQuestion());\n System.out.println(\" Doing ANDD \" + convertToBoolean(beforeVal) \n + \" r = \"+ convertToBoolean( rigthVal) );\n if( convertToBoolean(beforeVal) && convertToBoolean( rigthVal)) return BigDecimal.ONE; \n System.out.println(\" return zero\");\n return BigDecimal.ZERO;\n } \n \n case '|': \n { \n // NOTICE WE EVLUATE BOTH SIDES - we need Fast and , FAST Or \n System.out.println( \"DOING AND question b= \" + before.isQuestion() \n + \"? r=\"+ this.after.isQuestion());\n System.out.println(\" Doing ANDD \" + convertToBoolean(beforeVal) \n + \" r = \"+ convertToBoolean( rigthVal) );\n if( convertToBoolean(beforeVal) || convertToBoolean( rigthVal)) return BigDecimal.ONE; \n System.out.println(\" return zero\");\n return BigDecimal.ZERO;\n } \n \n default: assert false : \" \" + (char)operator + \" not implmented BinaryExpression \" + operator ; \n }\n \n assert false : \" Not sure of operator = \"+ this.operator ; \n return null ; \n }", "title": "" }, { "docid": "25e21e47ce061d3d1a6269b34d68aba0", "score": "0.5618924", "text": "@Override\r\n\tpublic Expression getLeft() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f10217a333072c9ebc7c02b8e885e4dc", "score": "0.56082505", "text": "public double getExactLeftPValue(){\r\n\t\t\r\n\t\treturn exactLeftTail;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0fcf3bd22d59ef0e557130477d678384", "score": "0.5602442", "text": "private ExpressionNode mathematicalExpression() {\n\t\t// only one rule\n\t\t// expression -> signed_term sum_op\n\t\tExpressionNode signedTerm = signedTerm();\n\t\tsignedTerm = sumOperation(signedTerm);\n\t\treturn signedTerm;\n\t}", "title": "" }, { "docid": "b64d278beaae05c1dd21dd4f6e488cd4", "score": "0.55766284", "text": "abstract public double formulaX(double xCalc, double yCalc, double currentX);", "title": "" }, { "docid": "8d752fd5349087a99f4e5c8a72b2da00", "score": "0.55688703", "text": "public String getEquation() \n {\n return this.currentEqn;\n }", "title": "" }, { "docid": "46b03d702bbbe5c815b7dd2b7ae03214", "score": "0.5567266", "text": "private STNode expr()\r\n {\r\n STNode term = this.term();\r\n //If we do not have a + or - then just <term> rule is returned\r\n return this.exprtail(term);\r\n }", "title": "" }, { "docid": "a79484dbb666ea8f18aac5b294b7ee76", "score": "0.556397", "text": "@Override\n\t\t\tpublic double evaluate(double... position) {\n\t\t\t\tdouble x = position[0] ;\n\t\t\t\tdouble y = position[1] ;\n\t\t\t\treturn Math.pow(x-1.2, 2) + Math.pow(y, 2);\n\t\t\t}", "title": "" }, { "docid": "c4e61af9bc32851f652a2cf2651df8b1", "score": "0.5540274", "text": "@Override\r\n\tpublic void setLeft(Expression left) {\n\r\n\t}", "title": "" }, { "docid": "9fd993c726522e3bb1eac02a966d7522", "score": "0.5539352", "text": "double rightmostX();", "title": "" }, { "docid": "2ce3934c9b348a33f222cd682f51b855", "score": "0.55363566", "text": "@Override\n public double f(double x) {\n switch (getOp()){\n case Plus:\n return left.f(x)+right.f(x);\n\n case Div:\n Double pinf = Double.POSITIVE_INFINITY;\n Double ninf = Double.NEGATIVE_INFINITY;\n if(left.f(x)==pinf||right.f(x)==pinf){//takes care of deviding by zero end-point/\n return pinf;\n }\n else if (left.f(x)==ninf||right.f(x)==ninf){\n return ninf;\n\n }\n return left.f(x)/right.f(x);\n case Mul:\n return left.f(x)*right.f(x);\n case Max:\n if(left.f(x)>right.f(x)){\n return left.f(x);\n }\n else{\n return right.f(x);\n }\n case Min:\n if(left.f(x)<right.f(x)){\n return left.f(x);\n }\n else{\n return right.f(x);\n }\n case Comp:\n return left.f(right.f(x));\n case None:\n return left.f(x);\n\n default:\n throw new RuntimeException();\n\n\n\n\n }\n\n\n }", "title": "" }, { "docid": "c9d64fa4325a71cd661a86efddba3fcb", "score": "0.55334246", "text": "public static double E1(double m){return m*c*c;}", "title": "" }, { "docid": "e4cb05c9e746178f1a856064c761b0f5", "score": "0.55332124", "text": "public ExpressionNode simple_expression(){\n\t\tUnaryOpNode node = null;\n\t\tif(lookahead.getType() == TokenType.PLUS \n\t\t\t\t|| lookahead.getType() == TokenType.MINUS){\n\t\t\tnode = new UnaryOpNode(sign());\n\t\t}\n\t\tif(node == null){\n\t\t\tExpressionNode eNode = term();\n\t\t\treturn simple_part(eNode);\n\t\t}\n\t\telse{\n\t\t\tnode.setNode(term());\n\t\t\treturn simple_part(node);\n\t\t}\n\t}", "title": "" }, { "docid": "b11a4f5250afbf838f2d7fe2f209ea84", "score": "0.55331075", "text": "private static void solveFullEquation() {\n System.out.print(\"Soultion: \");\n if (calcDiscriminant() < 0) {\n System.out.println(\"D<0, \"+ TEXT_NO_SOLUTIONS);\n } else if (calcDiscriminant() == 0 ) {\n System.out.println(\"D=0, x= \" + (-1)*b /2 /a);\n }\n else {\n System.out.println(\"D>0, x1=\" + (((-1)*b + Math.sqrt(calcDiscriminant())) /2 /a) +\n \" x2=\" + (((-1)*b - Math.sqrt(calcDiscriminant())) /2 /a ));\n }\n }", "title": "" }, { "docid": "385c63aad5506c409375fcd4756c4cdc", "score": "0.5525988", "text": "public Coordinate left() throws InvalidCoordinateException {\n\t\tif (x == 0) {\n\t\t\tthrow new InvalidCoordinateException();\n\t\t}\n\t\treturn translate(-1,0);\n\t}", "title": "" }, { "docid": "78b429a76b2a42e3f16057b748db0463", "score": "0.5524389", "text": "private double compute(){\n\n // depending on the operator, make the calculation\n switch(operator){\n case \"error\": System.out.println(\"WARNING: There is no operator, but the boolean hasOperator says there is.\");\n case \"+\": return val1 + val2;\n case \"-\": return val1 - val2;\n case \"×\": return val1 * val2;\n case \"÷\": return val1 / val2;\n case \"^\": return Math.pow(val1, val2);\n case \"√\":\n if(val1 < 0 && val2 % 2 != 1)\n {\n System.out.println(\"A negative number to an even nth root will always be imaginary.\");\n return -Double.MAX_VALUE;\n }else {\n return Math.pow(val1, 1 / val2);\n }\n }\n return -Double.MAX_VALUE;\n }", "title": "" }, { "docid": "435155614f15710e4170f6d34d84c90c", "score": "0.55236596", "text": "public String getLeftOperandString() {\r\n String result = \"\";\r\n if (!getPropertyName().equals(\"\")) {\r\n result = (String) getPropertyName();\r\n } else if (leftExpr != null) {\r\n result = leftExpr.toString();\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "16b38fdd348b1774d3e2801d62508435", "score": "0.55229217", "text": "public ExpressionNode expression(){\n\t\tExpressionNode left = simple_expression();\n\t\tif(isRelop()){\n\t\t\tOperationNode node = new OperationNode(matchRelop());\n\t\t\tnode.setLeft(left);\n\t\t\tnode.setRight(simple_expression());\n\t\t\treturn node;\n\t\t}\n\t\treturn left;\n\t}", "title": "" }, { "docid": "1533f60d6cf1c1b62d5e6ba16db212b1", "score": "0.5520341", "text": "@BasisFunction(0)\n\tpublic double LeftConstant(PendulumState state, PendulumAction action) {\n\t\tif (action instanceof Force_Left) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "f3015717c7bf3a13afce4ce1a9ed28ad", "score": "0.5507919", "text": "public double laske(double num1, double num2, String operaattori) {\r\n switch (operaattori) {\r\n case \"+\":\r\n return num1 + num2;\r\n case \"-\":\r\n return num1 - num2;\r\n case \"*\":\r\n return num1 * num2;\r\n case \"/\":\r\n if (num2 == 0)\r\n return 0;\r\n\r\n return num1 / num2;\r\n }\r\n\r\n \r\n return 0;\r\n}", "title": "" }, { "docid": "91cb229e9dc6fa4b07f1a11eb0f49996", "score": "0.5492597", "text": "private String solveforx(String term1, String op, String term2) {\n String result;\r\n char opSign = op.charAt(0);\r\n double a = Double.parseDouble(term1);\r\n double b = Double.parseDouble(term2);\r\n switch (opSign) {\r\n case '+':\r\n result = \";x = \" + (a - b);\r\n break;\r\n case '-':\r\n result = \";x = \" + (a + b);\r\n break;\r\n case '*':\r\n result = \";x = \" + (a / b);\r\n break;\r\n case '/':\r\n result = \";x = \" + (a * b);\r\n break;\r\n default:\r\n result = ARROW + \"Not supported\";\r\n break;\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "8452cab980f283d2a63b647f5382ab0a", "score": "0.5489031", "text": "@VTID(29)\n void setInsideLeft(\n double rhs);", "title": "" }, { "docid": "dadb8fcc5dca40d26cfc4d480d77169c", "score": "0.54812527", "text": "protected int doOper(int arg) throws ExpressionException {\n if (arg < 0)\n throw new ExpressionException(\"Sqrt argument < 0\");\n\n int left = -1, right = 46341; // 46341 * 46341 > Integer.MAX_INT\n\n while (right - left > 1) {\n int middle = left + (right - left) / 2;\n if (middle * middle <= arg)\n left = middle;\n else\n right = middle;\n }\n\n return left;\n }", "title": "" }, { "docid": "aa634040b90005db75e26008eb5f3fa0", "score": "0.547403", "text": "int mathOperation();", "title": "" }, { "docid": "f84e94269d20f8848e3645f9599bc7df", "score": "0.54635525", "text": "public double mod() {\n\t\tif (x != 0 || y != 0) {\n\t\t\treturn Math.sqrt(x * x + y * y);\n\t\t} else {\n\t\t\treturn 0d;\n\t\t}\n\t}", "title": "" }, { "docid": "a9722ad20b6e423f8f1a05d651dadbc9", "score": "0.54559237", "text": "protected int left(int i ) { return 2 * i + 1; }", "title": "" }, { "docid": "c3ab7babc05271b38d68d93fcb2a835e", "score": "0.54339695", "text": "public static void main(String[] args) {\n\n\n //((25.5 * 3.5 - 3.5 * 3.5) / (40.5 - 4.5))\n double a = 25.5;//assign the values\n double b = 3.5;\n double c = 40.5;\n double d = 4.5;\n double e = (a * b - b * b) / (c - d);//formula of find the out come\n System.out.println(e);//print the statement\n }", "title": "" }, { "docid": "fd3994567dc1be957564f24cb724dacb", "score": "0.54167175", "text": "private Point leftVertex() {\n Point leftest = new Point (_vertices[0]);\n for(int k=0; k <_noOfVertices; k++)\n if(_vertices[k].isLeft(leftest))\n leftest = _vertices[k];\n return (_noOfVertices != 0)? (new Point(leftest)):null;\n }", "title": "" }, { "docid": "da4a56f9baec09d0fed5f2ba6ab88506", "score": "0.5413129", "text": "public double getLeft() {\n\t\treturn x - radius;\n\t}", "title": "" }, { "docid": "b1a1e3b3133eb017dbd90672c928b878", "score": "0.5408061", "text": "protected int left(int i){\n\treturn (2*i + 1);\n }", "title": "" }, { "docid": "a89cccdd234a4b38263ae252b4dfe19d", "score": "0.540759", "text": "public static double compute(ExprNode r) {\n\t\t\n\t\t// Check to see if this expression tree node is an operator.\n\t\ttry{\n\t\t\tif ((r.getOp().getTokenKind() == Kind.SYMBOL) && ((r.getOp().getTokenCode() == 7) ||(r.getOp().getTokenCode() == 4) ||(r.getOp().getTokenCode() == 5)||\n\t\t\t\t(r.getOp().getTokenCode() == 6) || (r.getOp().getTokenCode() == 8) ||\n\t\t\t\t(r.getOp().getTokenCode() == 9))) {\n\t\t\t\n\t\t\t// if so, fetch the left and right sub-tree references and evaluate them\n//\t\t\tif(r.getLeft() != (r.getOp().getTokenKind() == Kind.SYMBOL)) {\n\t\t\tdouble leftValue = compute(r.getLeft());\n//\t\t\telse {\n//\t\t\t\tleftValue = 0.0;\n//\t\t\t}\n\t\t\t\n\t\t\tdouble rightValue = compute(r.getRight());\n\t\t\t\n\t\t\t// Give the value for the left and the right sub-trees, use the operator code\n\t\t\t// to select the correct operation\n\t\t\tdouble result = 0;\n\t\t\tboolean x= r.getOp().getTokenKind() == Kind.INTEGER;\n\t\t\t\n\t\t\tswitch ((int)r.getOp().getTokenCode()) {\n\t\t\t\n\t\t\tcase 4:\n\t\t\t\t\n\t\t\t\tfor(int i=0;r.getOp().getTokenCode() == 5;i++ ) {\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tif ((r.getOp().getTokenKind() == Kind.SYMBOL) && ((r.getOp().getTokenCode() == 6))) {\n\t\t\t\t\t\n\t\t\t\t\tresult = leftValue + rightValue; break;\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ((r.getOp().getTokenCode() == 7)){\n\t\t\t\t\t\n\t\t\t\t\tresult = leftValue - rightValue; break;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ((r.getOp().getTokenKind() == Kind.SYMBOL) && ((r.getOp().getTokenCode() == 8))) {\n\t\t\t\t\t\n\t\t\t\t\tresult = leftValue * rightValue; break;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif ((r.getOp().getTokenKind() == Kind.SYMBOL) && ((r.getOp().getTokenCode() == 9))) {\n\t\t\t\t\t\n\t\t\t\t\tresult = leftValue / rightValue; break;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\tcase 6: result = leftValue + rightValue; break;\n\t\t\tcase 7: result = leftValue - rightValue; break;\n\t\t\tcase 8: result = leftValue * rightValue; break;\n\t\t\tcase 9: result = leftValue / rightValue; break;\n\t\t\t}\n\t\t\t\n\t\t\t// Display the actual computation working from the leaves up to the root\n\t\t\t\n\t\t\t// Return the result to the \n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// If the node is not an operator, determine what it is and fetch the value \n\t\telse if (r.getOp().getTokenKind() == Kind.INTEGER) {\n\t\t\tScanner convertInteger = new Scanner(r.getOp().getTokenText());\n\t\t\tDouble result = convertInteger.nextDouble();\n\t\t\tconvertInteger.close();\n\t\t\treturn result;\n\t\t}\n\t\telse if (r.getOp().getTokenKind() == Kind.FLOAT) {\n\t\t\tScanner convertFloat = new Scanner(r.getOp().getTokenText());\n\t\t\tDouble result = convertFloat.nextDouble();\n\t\t\tconvertFloat.close();\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// If it is not a recognized element, treat it as a value of zero\n\t\telse return 0.0;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tdebugtest=\"Result is not correct because of wrong parenthisis pattern or incorrect operator choice\";\n\t\t}\n\t\treturn 0;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fe5040c7d6c2901ce64fcab0f40373c0", "score": "0.54000163", "text": "public Vector lefti()\r\n {\r\n return left( this );\r\n }", "title": "" }, { "docid": "cf703989885d34fc1bffcc78c2d5ccc2", "score": "0.5399178", "text": "public PrimitiveOperator zeroLeft() {\n\t\tboolean[] newTruthTable = new boolean[truthTable.length / 2];\n\n\t\t// note that the left bit is alway the MSB i.e. bit #1 (binary) or #2 (trinary)\n\t\t// either way copy the fist half of the truthtable\n\t\tfor (int i = 0; i < newTruthTable.length; i++)\n\t\t\tnewTruthTable[i] = truthTable[i];\n\n\t\treturn new PrimitiveOperator(newTruthTable);\n\t}", "title": "" }, { "docid": "f5097cd89901c910cd56ab32345c4988", "score": "0.5398345", "text": "public double getFirstSide() {\n\t\treturn one;\n\t}", "title": "" }, { "docid": "945746b951aed146dc57f711df0e9be8", "score": "0.5393784", "text": "protected Property getLeftOperandValue(EvaluationContext context)\r\n throws RuleEvaluationException {\r\n\r\n Property toTest = null;\r\n\r\n if (!getPropertyName().equals(\"\")) {\r\n // case 1: propertyName on left\r\n toTest = context.getPropertySet().get(getPropertyName());\r\n\r\n } else if (leftExpr != null) {\r\n // case 2: RuleExpression on left\r\n if (leftExpr instanceof TimeRollExpression) {\r\n String timeRoll = (String) leftExpr.evaluate(context);\r\n toTest = new Property();\r\n toTest.setPropertyName(((TimeRollExpression) leftExpr).getPropertyName());\r\n toTest.setPropertyValue(timeRoll);\r\n\r\n } else if (leftExpr instanceof LookupExpression) {\r\n\r\n }\r\n\r\n } // TODO: the grammar supports several more permutations on the left side\r\n\r\n return toTest;\r\n\r\n }", "title": "" }, { "docid": "30415ceeace8361a9d1ee506c31a92b9", "score": "0.53918123", "text": "private double parseExpression() {\n\t\tdouble result = 0;\r\n\t\tresult = parseTerm();\r\n\r\n\t\twhile (\"+-&|\".indexOf(currentToken.kind) >= 0) {\r\n\r\n\t\t\t// skip +|-\r\n\t\t\tchar op = currentToken.kind;\r\n\t\t\tnextToken();\r\n\r\n\t\t\tdouble second = parseTerm();\r\n\r\n\t\t\tif (op == '+') {\r\n\t\t\t\tresult += second;\r\n\t\t\t} else if (op == '-') {\r\n\t\t\t\tresult -= second;\r\n\t\t\t} else if (op == '&') {\r\n\t\t\t\tif (result != 0 && second != 0) {\r\n\t\t\t\t\tresult = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult = 0;\r\n\t\t\t\t}\r\n\t\t\t} else if (op == '|') {\r\n\t\t\t\tif (result != 0 || second != 0) {\r\n\t\t\t\t\tresult = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "34a253ccf57fc485a4564c5ba7a2243a", "score": "0.53892547", "text": "public Expr getLhs() {\r\n return lhs;\r\n }", "title": "" }, { "docid": "2afd4fab20e34ab7cb9ebfd8a4bffe5c", "score": "0.5379994", "text": "expression getExpression();", "title": "" }, { "docid": "9b96e75526625d0e86120932fbe7b09a", "score": "0.5377746", "text": "public double getLeftEdge() {\n\t\treturn x;\n\t}", "title": "" }, { "docid": "5c4d15d88da9b50d60f87a545ebab416", "score": "0.5349003", "text": "public void simple_expression() {\n\t\tif(lookahead.getType() == TokenType.ID|| lookahead.getType() == TokenType.NUMBER \n\t\t\t\t|| lookahead.getType() == TokenType.LEFTPAR\n\t\t\t\t|| lookahead.getType() == TokenType.NOT){\n\t\t\tterm();\n\t\t\tsimple_part();\n\t\t}\n\t\telse if (lookahead.getType() == TokenType.PLUS || lookahead.getType() == TokenType.MINUS) {\n\t\t\tsign();\n\t\t\tterm();\n\t\t\tsimple_part();\n\t\t}\n\n\t}", "title": "" }, { "docid": "0cd84e355ca3870acb20a93f39c14005", "score": "0.53435516", "text": "@Override\n public Expression caseLeftOperator(Operator a, Constant b) {\n if(b.getVal() == 0)\n return a;\n return this;\n }", "title": "" }, { "docid": "138c67ea0437f8d35b67f6f8e05b59bc", "score": "0.5334583", "text": "public void leftFactor() {\n Rule baseRule;\n while ((baseRule = hasRulesWithCommonPrefix()) != null) {\n List<Rule> leftSimilarRules = rulesWithCommonPrefix(baseRule);\n String newVariableName = baseRule.getLeftVariable().toString();\n newVariableName = newVariableName.substring(0, newVariableName.length() - 1) + \"-Tail>\";\n GrammarSymbol newVariable = new GrammarSymbol(newVariableName);\n List<GrammarSymbol> prefix = commonPrefix(baseRule, leftSimilarRules);\n\n leftSimilarRules.add(baseRule);\n Integer prefixSize = prefix.size();\n prefix.add(newVariable);\n\n this.rules.add(new Rule(baseRule.getLeftVariable(), prefix));\n for (Rule rule : leftSimilarRules) {\n List<GrammarSymbol> rightHandPart = rule.removePrefix(prefixSize).getRightSymbols();\n if (rightHandPart.size() == 0) rightHandPart.add(GrammarSymbol.EPSILON);\n Rule newRule = new Rule(newVariable, rightHandPart);\n // System.out.println(\"New: \" + newRule);\n this.rules.add(newRule);\n this.rules.remove(rule);\n }\n }\n }", "title": "" }, { "docid": "16176cecb5cd9d13fd3f618c9c430b8c", "score": "0.5321449", "text": "public Expression evaluate() {\n\t\tNumber lhn=lhs.getNumber();\n\t\tif(lhn!=null) {\n\t\t\tNumber rhn=rhs.getNumber();\n\t\t\tif(rhn!=null) return(Constant.evaluate(lhn,opr,rhn));\n\t\t}\n\t\treturn(this);\n\t}", "title": "" }, { "docid": "d3bc8a33ca7c41fc32175a460a3478ae", "score": "0.5316578", "text": "public static Equation getEquation(){\r\n\t\tString firstNumber;\r\n\t String secondNumber;\r\n\t String operator;\r\n\t Equation currentEquation;\r\n\t System.out.printf(\"\\n Please enter the first number\\n\");\r\n\t\tSystem.out.print(\">\");\r\n\t firstNumber = Scan.next();\r\n\t System.out.printf(\"\\n Please choose an operation, the following are supported:\\n +,-,*,/,^,(r)oot\\n\");\r\n\t\tSystem.out.print(\">\");\r\n\t operator = Scan.next();\r\n\t if (operator.contains(\"sqrt\") || operator.contains(\"s\")){\r\n\t \tcurrentEquation = new Equation(firstNumber, operator);\r\n\t }\r\n\t else{\r\n\t \tSystem.out.printf(\"\\n Please enter the second number\\n\");\r\n\t\t\tSystem.out.print(\">\");\r\n\t \tsecondNumber = Scan.next();\r\n\t \tcurrentEquation = new Equation(firstNumber, secondNumber, operator);\r\n\t }\r\n\r\n\t\treturn currentEquation;\r\n\t}", "title": "" }, { "docid": "d2ee3cfaca7c82a39361aceacda242f0", "score": "0.53156805", "text": "public double unaryOp(String firstParcel, String operator) {\n String secondParcel;\n double result;\n if (Utilities.isDoubleValue(firstParcel)) {\n result = unaryExpression(calcSimpleExpression(firstParcel), operator);\n } else {\n secondParcel = Double.toString(calcSimpleExpression(firstParcel));\n result = unaryExpression(calcSimpleExpression(secondParcel), operator);\n }\n return result;\n }", "title": "" }, { "docid": "1280451b773fd813db30e5000801ec7f", "score": "0.5307745", "text": "public PrimitiveOperator switchLeftMid() {\n\t\tboolean[] newTruthTable = new boolean[8];\n\n\t\t// trinary operator\n\t\tnewTruthTable[0] = truthTable[0]; // 000\n\t\tnewTruthTable[1] = truthTable[1]; // 001\n\t\tnewTruthTable[2] = truthTable[4]; // 100\n\t\tnewTruthTable[3] = truthTable[5]; // 101\n\t\tnewTruthTable[4] = truthTable[2]; // 010\n\t\tnewTruthTable[5] = truthTable[3]; // 011\n\t\tnewTruthTable[6] = truthTable[6]; // 110\n\t\tnewTruthTable[7] = truthTable[7]; // 111\n\n\t\treturn new PrimitiveOperator(newTruthTable);\n\t}", "title": "" }, { "docid": "60178141ddfb8c3f203fe16bd1aa393e", "score": "0.53032804", "text": "@Override\n\tprotected double doCalculer(double operande1) {\n\t\treturn Math.cos(operande1);\n\t}", "title": "" }, { "docid": "b6fedad7a263f07bea088e16af4f35cd", "score": "0.53011644", "text": "public double calculateF1()\n\t{\n\t\treturn 1./(pP1*(delta01 + deltaX));\n\t}", "title": "" }, { "docid": "080cf06b3a61439c7c4dd6a0775b084b", "score": "0.52902466", "text": "double eval(String expr) {\n if (expr.length() == 0) {\n return NaN;\n } else {\n List<String> tokens = tokenize(expr);\n List<String> postfix = infix2Postfix(tokens);\n return evalPostfix(postfix);\n }\n }", "title": "" }, { "docid": "3c9912d593e04ea8e88a33393ad70c3b", "score": "0.528981", "text": "public boolean expr1() {\n\t\tArrayList<Token> sbFirst = first(\"expr1\");\n\t\tArrayList<Token> sbFollow = follow(\"expr1\");\n\t\tif (!skipErrors(sbFirst, sbFollow)) {\n\n\t\t\treturn false;\n\n\t\t}\n\t\tArrayList<String> nterm = new ArrayList<String>();\n\t\tnterm.add(\"relOp\");\n\t\tif (firstFrom(nterm, new ArrayList<Token>()).contains(lookahead)) {\n\t\t\tPair<Boolean, ArithExp>a=arithExpr();\n\t\t\te1.add(a.getValue1());\n\t\t\tif (relOp()&a.getValue0() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\treturn false;\n\n\t\t} \n\t\telse if(sbFollow.contains(lookahead))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bc9bfca30e05d4c5ae9446c795c4ec82", "score": "0.5287255", "text": "protected BigDecimal doOperation(BigDecimal left, BigDecimal right, String operator) throws MyException {\n try {\n switch (operator) {\n case \"-\":\n left = left.subtract(right);\n break;\n case \"+\":\n left = left.add(right);\n break;\n case \"*\":\n left = left.multiply(right);\n break;\n case \"/\":\n left = left.divide(right, SCALE, BigDecimal.ROUND_HALF_UP);\n if (left.remainder(BigDecimal.ONE).movePointRight(left.scale()).abs().intValue() == 0) {\n left = new BigDecimal(left.toBigInteger());\n } else\n left = left.stripTrailingZeros();\n break;\n case \"^\":\n left = left.pow(right.intValue());\n }\n } catch (ArithmeticException ex) {\n throw new MyException(left, right, operator);\n }\n return left;\n }", "title": "" }, { "docid": "445fb4c7a509f40fbfe2be8e14b749ea", "score": "0.5285556", "text": "Equation createEquation();", "title": "" }, { "docid": "adf831997b5945b17dd4500f966133d7", "score": "0.5274728", "text": "private STNode exprtail(STNode left)\r\n {\r\n STNode tail, term;\r\n SymbolEntry r = new SymbolEntry();\r\n //check for +\r\n if(this.next.getTokenID() == Tokens.TPLUS)\r\n {\r\n r.setType(Tokens.TPLUS);\r\n this.match(Tokens.TPLUS);\r\n term = this.term();\r\n /*if(left.getRecord().getType() != term.getRecord().getType())\r\n {\r\n String e = String.format(\"invalid operation mismatched types, cannot perform + on %s and %s\", left.getName(), term.getName());\r\n //using the location of r because that is where the plus operator is\r\n this.errorSemantic(e, r.getLocation());\r\n }*/\r\n //node value for NADD\r\n //left becomes the left child\r\n //term becomes the right child\r\n tail = new STNode(NodeValue.NADD, left, term);\r\n tail.setRecord(r);\r\n return tail;\r\n }\r\n //check for -\r\n if(this.next.getTokenID() == Tokens.TMINS)\r\n {\r\n r.setType(Tokens.TMINS);\r\n this.match(Tokens.TMINS);\r\n term = this.term();\r\n if(left.getRecord().getType() != term.getRecord().getType())\r\n {\r\n String e = String.format(\"invalid operation mismatched types, cannot perform - on %s and %s\", left.getName(), term.getName());\r\n //using the location of r because that is where the plus operator is\r\n this.errorSemantic(e, r.getLocation());\r\n }\r\n //node value for NSUB\r\n //left becomes the left child\r\n //term becomes the right child\r\n tail = new STNode(NodeValue.NSUB, left, term);\r\n tail.setRecord(r);\r\n return tail;\r\n }\r\n //epsilon path\r\n return left;\r\n }", "title": "" }, { "docid": "6ffad29f0d82aa1fd56380de711b414d", "score": "0.52671134", "text": "private String solveAnd(String expr) {\n\t\texpr = expr.replaceAll(\"0[ ]+AND[ ]+0\", \"0\");\n\t\texpr = expr.replaceAll(\"0[ ]+AND[ ]+1\", \"0\");\n\t\texpr = expr.replaceAll(\"1[ ]+AND[ ]+0\", \"0\");\n\t\texpr = expr.replaceAll(\"1[ ]+AND[ ]+1\", \"1\");\n\t\treturn expr;\n\t}", "title": "" }, { "docid": "008091d9bb939dee82e90615dba7ffe0", "score": "0.526173", "text": "@Override\r\n\tpublic double f(double x) {\r\n\t\tswitch (operation) {\r\n\t\tcase Plus:\r\n\t\t\treturn left.f(x)+right.f(x);\r\n\t\tcase Times:\r\n\t\t\treturn left.f(x)*right.f(x);\r\n\t\tcase Divid:\r\n\t\t\treturn left.f(x)/right.f(x);\r\n\t\tcase Max:\r\n\t\t\treturn Math.max(left.f(x), right.f(x));\r\n\t\tcase Min:\r\n\t\t\treturn Math.min(left.f(x), right.f(x));\r\n\t\tcase Comp:\r\n\t\t\treturn left.f(right.f(x));\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "d53f423948e90a36ca57d68e1556e759", "score": "0.52510434", "text": "public void solveEquation(){\r\n solverBehaviour.solve();\r\n }", "title": "" }, { "docid": "d8ab0692007c27a3fe11077d5a91ec2c", "score": "0.5247028", "text": "public double leftX() { return _bottom.leftX(); }", "title": "" }, { "docid": "e3cd5dc39acd6d3fc5429cf81897006c", "score": "0.5246144", "text": "double eval(String expr) {\n if (expr.length() == 0) {\n return NaN;\n }\n List<String> tokens = tokenize(expr);\n List<String> postfix = infix2Postfix(tokens);\n return evalPostfix(postfix);\n }", "title": "" }, { "docid": "cf6412e54ce22ff619ed94db43412303", "score": "0.52411014", "text": "private int midium_calc(char temp) {\n\t\tint op1 = 0, op2;\r\n\r\n\t\ttry {\r\n\t\t\top2 = operand.pop();\r\n\t\t\top1 = operand.pop();\r\n\r\n\t\t\tswitch (temp) {\r\n\t\t\tcase '+':\r\n\t\t\t\top1 += op2;\r\n\t\t\t\toperand.add(op1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '-':\r\n\t\t\t\top1 -= op2;\r\n\t\t\t\toperand.add(op1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '*':\r\n\t\t\t\top1 *= op2;\r\n\t\t\t\toperand.add(op1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '/':\r\n\t\t\t\top1 /= op2;\r\n\t\t\t\toperand.add(op1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"중간 계산 결과 : \" + op1);\r\n\t\t} catch (StackException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn op1;\r\n\t}", "title": "" }, { "docid": "469f00f313fa657f3f590a371d405a0c", "score": "0.5233941", "text": "expression getExpressao();", "title": "" }, { "docid": "606cc918dbab5c359b96020e84519bb6", "score": "0.5217105", "text": "double parseExpression() {\n double v = parseTerm();\n for (;;) {\n eatSpace();\n if (c == '+') { // addition\n eatChar();\n v += parseTerm();\n } else if (c == '-') { // subtraction\n eatChar();\n v -= parseTerm();\n } else {\n return v;\n }\n }\n }", "title": "" }, { "docid": "c797c9e3dec5bd781bdab05ab8604ba1", "score": "0.5215489", "text": "private double solveInner(ArrayList<String> parsedEquation)\n\t{\n\t\t//System.out.println(\"parsedEquation\"+ parsedEquation);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tArrayList<String> tempParsed =(ArrayList<String>) parsedEquation.clone(); \n\t\tArrayList<String> hold = new ArrayList<String>(); \n\t\t\n\t\twhile(tempParsed.size() > 0 )\n\t\t{\n\t\t\t//System.out.println(\"hold\"+ hold);\n\t\t\t//System.out.println(\"temp\"+ tempParsed);\n\t\t\t//System.out.println(\"holds \"+ hold.size());\n\t\t\tString var = tempParsed.remove(0); \n\t\t\tswitch(var)\n\t\t\t{\n\t\t\tcase \"^\" : hold.add(pow( hold.remove(hold.size()-2 ) , hold.remove(hold.size()-1 ))); break ; \n\t\t\tcase \"*\" : hold.add(mult( hold.remove(hold.size()-2 ) , hold.remove(hold.size()-1 ))); break ; \n\t\t\tcase \"/\" : hold.add(div( hold.remove(hold.size()-2 ) , hold.remove(hold.size()-1 ))); break ; \n\t\t\tcase \"+\" : hold.add(add( hold.remove(hold.size()-2 ) , hold.remove(hold.size()-1 ))); break ;\n\t\t\tcase \"-\" :\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\thold.add(sub( hold.remove(hold.size()-2 ) , hold.remove(hold.size()-1 ))); \n\t\t\t\t}catch(Exception e)\n\t\t\t\t{\n\t\t\t\t\t// very close \n\t\t\t\t\tInvert(tempParsed ,hold, -1); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak ; \n\t\t\tdefault : hold.add(var);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn Double.parseDouble(hold.get(0)) ; \n\t}", "title": "" }, { "docid": "40b43d09781c80c0e6deacfeeaf43a85", "score": "0.5212056", "text": "public Vector left( Vector out )\r\n {\r\n float oldx = x;\r\n out.x = -y;\r\n out.y = oldx;\r\n return out;\r\n }", "title": "" }, { "docid": "4747432b9a913944769cb682f8f363a6", "score": "0.5210886", "text": "public void autonomousStartingLeftSide() {\n\t\tdriveForFeet(7.77083);\n\t\tturnForDegrees(45);\n\t\tdriveForFeet(5);\n\t\tdriveForFeet(-5);\n\t\tturnForDegrees(-45);\n\t\tdriveForFeet(10);\n\t}", "title": "" }, { "docid": "02fc9622e91a3241f8882d20fa748029", "score": "0.5209463", "text": "T left(T p);", "title": "" }, { "docid": "5d4fccc2e58d31e5676f0fcd25bc72ab", "score": "0.52082074", "text": "@VTID(50)\r\n double getLeft();", "title": "" }, { "docid": "25f572a5a29a85f82c51ba3a9e060744", "score": "0.52051973", "text": "public static void main(String[] args) {\n\n\n\n\n\n System.out.println(\"Hello\");\n System.out.println(\"Szilard\");\n\n int x = 6;\n double y = 3.5;\n double rez = x * y ;\n System.out.println(\" rezultat suma = \" + rez);\n System.out.println(\"rezultat impartire = \" + (x/y));\n\n /* a. -5 + 8 * 6\n\nb. (55+9) % 9\n\nc. 20 + -3*5 / 8\n\nd. 5 + 15 / 3 * 2 - 8 % 3 */\n\n double q = 5;\n\n double w = 8;\n\n double z= q/w;\n\n\n\n\n int a = -5+8*6;\n System.out.println(\"a= \" + a);\n\n double b = (55+9)%9;\n System.out.println(\"b= \" + b);\n\n double c = 20+(-3*z);\n /* recunosc, ca am fost ajutat sa imi iasa valoarea cu zecimale. in prima faza am scris\n toata formula fara a mai folosi variabilele q w si z: double c = 20+(-3*5/8) si mi s-a parut suspect rezultatul\n fiind 19.0. Eu am facut ceva programare in pascal si de acolo eram cu ideea ca trbuie declarate toate initil\n si dupa facute restul dar am vazut ca merge la primele si am continuat asa :))\n poate imi explicati de nu i-a atribuit valoarea cu zecimale lui c din moment ce l-am declarat ca fiind doulbe\n daca exista o explicatie pentru asta\n multumesc.\n */\n\n System.out.println(\"c= \" + c);\n\n double d = 5+15/3*2-(8%3);\n System.out.println(\"d= \" + d);\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "9b2b91cd09deb085ab3cdc47b82c5760", "score": "0.5204147", "text": "public double e()\r\n/* 302: */ {\r\n/* 303:293 */ return this.f;\r\n/* 304: */ }", "title": "" }, { "docid": "57e0184fda8a51684bf9c87adb68576b", "score": "0.5203533", "text": "private void computeFirst() {\n assert(this.first == null);\n this.first = new HashMap<GrammarSymbol, Set<GrammarSymbol>>();\n for (GrammarSymbol terminal : this.getTerminals()) {\n Set<GrammarSymbol> f = new HashSet<>(1);\n f.add(terminal);\n this.first.put(terminal, f);\n }\n for (GrammarSymbol variable : this.getVariables()) {\n this.first.put(variable, new HashSet<GrammarSymbol>());\n }\n\n boolean finished;\n do {\n finished = true;\n for (Rule rule : this.rules) {\n Set<GrammarSymbol> toAdd = new HashSet<>();\n toAdd.add(GrammarSymbol.EPSILON);\n for (int gsIdx = 0;\n gsIdx < rule.getRightSymbols().size() && toAdd.contains(GrammarSymbol.EPSILON);\n ++gsIdx) {\n toAdd.remove(GrammarSymbol.EPSILON);\n toAdd.addAll(this.first.get(rule.getRightSymbols().get(gsIdx)));\n }\n finished = finished && !this.first.get(rule.getLeftVariable()).addAll(toAdd);\n }\n } while(!finished);\n }", "title": "" }, { "docid": "80c3b87310d766099c302cee14cce104", "score": "0.5202732", "text": "public abstract ML getMiddleLeft();", "title": "" }, { "docid": "66a295b292d6ed5b2511adc138528e72", "score": "0.5198111", "text": "protected void firstStep() throws SyntaxException{\n\t\txn = x0;\n\t\ty = getFunction().evaluate(xn);\n\t\t\n\t\terror = tolerance + 1;\n\t\ti = 0;\n\t}", "title": "" }, { "docid": "b86d251ab9edc091e34ff82a51c71094", "score": "0.5190664", "text": "@VTID(18)\n double getLeft();", "title": "" }, { "docid": "bd4cb5dbd233859d1db7f1cf36e38005", "score": "0.51814765", "text": "private boolean isLeftAssociativity(String op){\r\n if (op.length() == 1) {\r\n char symbol = op.charAt(0);\r\n if (symbol == '+' || symbol == '-' || symbol == '*' || symbol == '/' || symbol == 'x'\r\n || symbol == 'X')\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "573fea063efb8afe6b6006244084e2cc", "score": "0.5176589", "text": "private int left(int index) {\n return index * 2 + 1;\n }", "title": "" }, { "docid": "568984707e0a91db5e8d7ded7ea73620", "score": "0.51755035", "text": "private String modifiedExpression(String expression) {\n StringBuilder sb = new StringBuilder();\n char[] chars = expression.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n char c = chars[i];\n if (operator(c) && i > 0 && i < chars.length - 1) {\n if (c == '-' && chars[i - 1] == '(') {\n sb.append(\"~\").append(\" \");\n } else {\n sb.append(c).append(\" \");\n }\n } else if (operator(c)) {\n sb.append(c).append(\" \");\n } else {\n sb.append(c);\n if (i < chars.length - 1) {\n if (operator(chars[i + 1])) {\n sb.append(\" \");\n }\n }\n }\n }\n return sb.toString().trim();\n }", "title": "" }, { "docid": "8e335d248c889a036bd729eccdde6e46", "score": "0.5174304", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (!isInverse) {\n\t\t\t\tcalc.setValue(operator1.applyAsDouble(calc.getValue()));\n\t\t\t} else {\n\t\t\t\tcalc.setValue(operator2.applyAsDouble(calc.getValue()));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dcffe257320e8ae8e120c627c1aaa2e6", "score": "0.5168451", "text": "public float leftX() {\r\n ScoreView view = cgm.getScoreView();\r\n Camera camera = view.getCamera();\r\n float left = camera.getFrustumLeft();\r\n assert left < 0f : left;\r\n float center = camera.getLocation().x;\r\n float result = center + left;\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "6e0ec9d8993955f49a6b4dbc5db02730", "score": "0.5168162", "text": "@VTID(51)\r\n void setLeft(\r\n double rhs);", "title": "" }, { "docid": "02e12a960ee64929964750e03890bc00", "score": "0.5167561", "text": "String getLhs();", "title": "" }, { "docid": "0e319ac92ae55a60a3c2d7a0301b34c5", "score": "0.5166124", "text": "@VTID(24)\n double get_InsideLeft();", "title": "" } ]
f2f0f87b563cff4901151c174c0e6b8b
Tries to find an increment on a list of increments and return it
[ { "docid": "49343652b708ecd7f8e09f5e2aefb868", "score": "0.691401", "text": "public com.devonfw.cobigen.impl.config.entity.io.Increment getSpecificIncrement(\n List<com.devonfw.cobigen.impl.config.entity.io.Increment> increment, String ref) {\n for (com.devonfw.cobigen.impl.config.entity.io.Increment inc : increment) {\n if (inc.getName().equals(ref)) {\n return inc;\n }\n }\n return null;\n }", "title": "" } ]
[ { "docid": "667959fb1b72cfc1aa1df5206bcd79fa", "score": "0.5793257", "text": "long getIncrement();", "title": "" }, { "docid": "a9ecdf3627d1c71740a4009ea1b066fd", "score": "0.56117034", "text": "public static int elementEqualToItsIndex(final List<Integer> list) {\n //determine if list is increasing or decreasing\n if(list.size() == 0){return -1;}\n if(isIncreasing(list)){\n int keyValIndex = 0;\n if(list.get(keyValIndex) > keyValIndex){\n return -1;\n }\n if(list.get(keyValIndex) == keyValIndex){\n return keyValIndex;\n }\n return binSearchElemEqualToIndexIncr(list, 1, list.size() - 1);\n }\n else{\n int keyValIndex = list.size() - 1;\n if(list.get(keyValIndex) > keyValIndex){\n return -1;\n }\n if(list.get(keyValIndex) == keyValIndex){\n return keyValIndex;\n }\n return binSearchElemEqualToIndexDecr(list, 0, list.size() - 1);\n\n }\n //first look at most extreme value which would be the first in incr. and the last in decr. if its greater than(incr) or if its lower than(decr.) the index return -1\n //then find that point with a binary search alg. if mid val is greater in incr. go to the left split if less go to right. if mid val is less in decr. goto right, if greater go to left.\n //do this until you find the index\n }", "title": "" }, { "docid": "9f916a95b2383104631049bcb50b3a88", "score": "0.54568505", "text": "private static int getMeterSectionOLD(Rational mp, List<Rational> meterSectionOnsets) {\n\t\tint numSections = meterSectionOnsets.size();\n\t\tfor (int i = 0; i < numSections; i++) {\n\t\t\t// If there is a next section: check if mp is in section at i\n\t\t\tif (i < numSections - 1) {\n\t\t\t\tif (mp.isGreaterOrEqual(meterSectionOnsets.get(i)) && mp.isLess(meterSectionOnsets.get(i+1))) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If not: mp is in last section\n\t\t\telse {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "2674e54eefec78eaf2985b3613550cc9", "score": "0.54333466", "text": "int previousInt() throws NoSuchElementException;", "title": "" }, { "docid": "3e175c35252a9eb14e879a5f767b5e12", "score": "0.5383078", "text": "public Integer selectNextAvailableCheckLineNumber(String documentNumber);", "title": "" }, { "docid": "356db79dc20231f354e42dfe3139ffc4", "score": "0.5299121", "text": "private List<Integer> getIdx(List<String> lines) {\n int beforeIdx = -1;\n int interIdx = -1;\n int ovrdIdx = -1;\n int idIdx = -1;\n for (int x = 0; x < lines.size(); x++) {\n String line = lines.get(x);\n if (beforeIdx != -1 && interIdx != -1 && ovrdIdx != -1 && idIdx != -1) {\n break;\n }\n if (line.equals(BEFORE)) {\n beforeIdx = x;\n } else if (line.endsWith(INTER)) {\n interIdx = x;\n } else if (line.endsWith(ISSUE)) {\n ovrdIdx = x;\n } else if (line.endsWith(ID)) {\n idIdx = x;\n }\n }\n\n return Arrays.asList(beforeIdx, interIdx, ovrdIdx, idIdx);\n }", "title": "" }, { "docid": "417287eabecb1eec3ab524a6ae720d69", "score": "0.5263288", "text": "public Integer checkNumbers() { \n\t\tif (numbList.size() > 1) {\n\t\t\tfor (int i = 0; i < numbList.size(); i++) {\n\t\t\t\tInteger obj = numbList.get(Integer.valueOf(i));\n\t\t\t\tif (obj.intValue() != i+1) {\n\t\t\t\t\treturn Integer.valueOf(i+1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (numbList.size() != countNumber) {\n\t\t\treturn countNumber;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ceb37cf85d8bafb9a65d00f36db5966b", "score": "0.52436554", "text": "@Test\n public void testIncrement() {\n System.out.println(\"increment\");\n x.increment(0, 2.0);\n x.increment(19, -2.0);\n assertEquals(4.0, x.get(0), 1e-15);\n assertEquals(3.0, x.get(19), 1e-15);\n\n y.increment(0, 2.0);\n y.increment(19, -2.0);\n assertEquals(2.0, y.get(0), 1e-15);\n assertEquals(-2.0, y.get(19), 1e-15);\n }", "title": "" }, { "docid": "f8b80159ddc08006bcdb696de2dcb7ee", "score": "0.52300894", "text": "private Integer translateNumbers(List<String> inList, int startPoint){\n\t\tString match = \"\";\n\t\t\n\t\tfor(int i=0; i<inList.size(); i++){\n\t\t\tfor(int j=0; j<Rows; j++){\n\t\t\t\tmatch += (Character.toString(inList.get(i).charAt(j + (startPoint*3))));\n\t\t\t}\n\t\t\tmatch += \"\\n\";\n\t\t}\n\t\t\n\t\t\n\t\tif(MatchList.indexOf(match) == -1){\n\t\t\treturn -1;\n\t\t}\n\t\telse{\n\t\t\treturn MatchList.indexOf(match);\n\t\t} \n\t}", "title": "" }, { "docid": "002f50d338d00cc63cedb322801d935d", "score": "0.52131504", "text": "private int getNum(List<Integer> nums, int index, int value) {\n int result = 0;\n for (int i = index; i < nums.size(); i++) {\n if (nums.get(i) == value) {\n result++;\n }\n if (nums.get(i) > value) {\n continue;\n }\n if (nums.get(i) < value) {\n result += getNum(nums, i + 1, value - nums.get(i));\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "9f72e10a2df53279d0c729f536681022", "score": "0.5193138", "text": "public double getConstantIncrement();", "title": "" }, { "docid": "3e03f6538d16e9aa05c50801351872fa", "score": "0.51660943", "text": "static int Q8(ArrayList<Integer> input){\n \tQ1(input);\n \tint index=input.size()-2;\n \twhile (input.get(index)==input.get(index+1)){\n \t\tindex--;\n \t}\n \t\n \t\n\n return input.get(index);\n }", "title": "" }, { "docid": "c46583d202614aa31198115e003c6b36", "score": "0.5148498", "text": "public static int findIndex(int r){\n int reference = r;\n int index = -1;\n for(int i = 0; i<sales.size();i++){\n if (sales.get(i).reference == reference){\n index = i;\n break;\n }\n }\n return index;\n}", "title": "" }, { "docid": "ead03b97e63352dd79435d1c1d0552e6", "score": "0.51095086", "text": "static int perform(Integer[] numbers) {\n\t\tSet<Integer> unpairedItem = new HashSet<>();\n\t\tfor (Integer number : numbers) {\n\t\t\tif (!unpairedItem.remove(number)) {\n\t\t\t\tunpairedItem.add(number);\n\t\t\t}\n\t\t}\n\t\treturn unpairedItem.isEmpty() ? -1 : unpairedItem.iterator().next();\n\t}", "title": "" }, { "docid": "2a7fca940ec5767b44c0f39a2156fa9b", "score": "0.50850487", "text": "public void increment() { if(canIncrement()) iterator++; }", "title": "" }, { "docid": "bf8a6854bfe936981fe51d7fac0e3a86", "score": "0.5082613", "text": "public static int getNextInc(int iCurrent, int iEnd, int iInc)\r\n\t{\n\t int iNext = iInc*( iCurrent/iInc + 1 );\r\n\t // Next check to see if current is already a multiple of iInc\r\n\t // and if so we need to add iInc to get the next one.\r\n\t if ( iCurrent == iNext )\r\n\t iNext += iInc;\r\n\t return Math.min(iNext,iEnd);\r\n\t}", "title": "" }, { "docid": "d203d0481dd94c0fa778bba06af1b8c4", "score": "0.5054792", "text": "public int find(List<Integer> numbers) {\n //first solution\n// int res = 0;\n// for (int num : numbers) {\n// res ^= num;\n// }\n// return res;\n\n //second solution\n// Map<Integer, Integer> occurrenceByNumber = new HashMap<>();\n//\n// for (int number : numbers) {\n// occurrenceByNumber.computeIfPresent(number, (key, value) -> value + 1);\n// occurrenceByNumber.putIfAbsent(number, 1);\n// }\n//\n// for (int number : occurrenceByNumber.keySet()) {\n// if (occurrenceByNumber.get(number) % 2 == 1)\n// return number;\n// }\n// return Integer.MIN_VALUE;\n\n //third solution\n Map<Integer, Long> occurrenceByNumber = numbers.stream()\n .collect(Collectors.groupingBy(num -> num, Collectors.counting()));\n\n return occurrenceByNumber.keySet().stream()\n .filter(key -> occurrenceByNumber.get(key) % 2 == 1)\n .findFirst().orElseThrow();\n }", "title": "" }, { "docid": "01739ff0844061d8f856e3d389e17a4a", "score": "0.5050268", "text": "public int getIncrement() {\n\t\treturn incValue;\n\t}", "title": "" }, { "docid": "dda7dd66e0920fa0654ea0917ded8917", "score": "0.5044422", "text": "Object findNextMatch(String paramString) {\n/* 229 */ int i = this.list.size();\n/* */ \n/* 231 */ if (i == 0) {\n/* 232 */ return null;\n/* */ }\n/* 234 */ int j = this.index;\n/* */ \n/* */ while (true) {\n/* 237 */ Object object = this.list.get(j);\n/* 238 */ String str = object.toString();\n/* */ \n/* 240 */ if (str != null && str.startsWith(paramString)) {\n/* 241 */ return object;\n/* */ }\n/* 243 */ j = (j + 1) % i;\n/* 244 */ if (j == this.index)\n/* 245 */ return null; \n/* */ } \n/* */ }", "title": "" }, { "docid": "85f6b11bd0160364d50ebb04e4d5b93b", "score": "0.50344163", "text": "private static Integer getIncrementValue(Expression expression)\r\n\t{\r\n\t\tInteger incrementValue = null;\r\n\t\tString operator = null;\r\n\t\tif (expression instanceof PrefixExpression)\r\n\t\t{\r\n\t\t\tPrefixExpression prefixExpression = (PrefixExpression) expression;\r\n\t\t\toperator = prefixExpression.getOperator().toString();\r\n\t\t}\r\n\t\telse if (expression instanceof PostfixExpression)\r\n\t\t{\r\n\t\t\tPostfixExpression postfixExpression = (PostfixExpression) expression;\r\n\t\t\toperator = postfixExpression.getOperator().toString();\r\n\t\t}\r\n\t\tif (operator != null && operator.equals(\"++\"))\r\n\t\t{\r\n\t\t\tincrementValue = 1;\r\n\t\t}\r\n\t\telse if (operator != null && operator.equals(\"--\"))\r\n\t\t{\r\n\t\t\tincrementValue = (-1);\r\n\t\t}\r\n\t\treturn incrementValue;\r\n\t}", "title": "" }, { "docid": "98a0efb9e5dd7f4a303fd697bfa7f58b", "score": "0.50277567", "text": "public Integer getIncrement() {\n return increment;\n }", "title": "" }, { "docid": "54996eb508bf3ca7a07fbde33deff3d5", "score": "0.5022945", "text": "public static int part2(ArrayList<Line> lines) throws Exception{\n HashSet<Integer> loopIndexes = new HashSet<Integer>();\n int acc = 0;\n int index = 0;\n Line current = lines.get(index);\n while(current != null && !loopIndexes.contains(index)){\n if(current.visited){\n loopIndexes.add(index);\n }\n current.visited = true;\n if(current.instruction.equals(\"jmp\")){\n index += current.number;\n } else if(current.instruction.equals(\"acc\")){\n acc += current.number;\n index++;\n } else {\n index++;\n }\n current = lines.get(index);\n }\n lines = resetInstructions(lines);\n \n //iterate over the loop indices swapping nops and jmps to find the issue\n Iterator<Integer> iter = loopIndexes.iterator();\n int swapIndex;\n while(iter.hasNext()){\n swapIndex = iter.next();\n if(\"acc\".equals(lines.get(swapIndex).instruction)){\n continue;\n }\n \n acc = 0;\n index = 0;\n current = lines.get(index);\n while(current != null && !current.visited){\n current.visited = true;\n if(current.instruction.equals(\"jmp\")){\n if(index == swapIndex){\n index++;\n } else {\n index += current.number;\n }\n } else if(current.instruction.equals(\"acc\")){\n acc += current.number;\n index++;\n } else {\n if(index == swapIndex){\n index += current.number;\n } else {\n index++;\n }\n }\n \n // if we are out of the bounds of indices, we terminate\n if(index == lines.size()){\n return acc;\n }\n current = lines.get(index);\n }\n \n lines = resetInstructions(lines);\n }\n \n return -1;\n }", "title": "" }, { "docid": "460d59eb271db304fa610eacdd06f2f7", "score": "0.50145257", "text": "final int inc(int i) {\n\t\treturn (++i == items.length) ? 0 : i;\n\t}", "title": "" }, { "docid": "04bcab9829541e7e369362200d6339ca", "score": "0.5007304", "text": "private static int getRantomInt(int num, List<Integer> skip, int acc)\n {\n boolean ok = false;\n int next = 0;\n if (null == skip)\n {\n return mRandom.nextInt(num);\n }\n else\n {\n while (false == ok)\n {\n next = mRandom.nextInt(num);\n if ((false == skip.contains(next+acc))&&(false == skip.contains(next-1+acc))&&(false == skip.contains(next-2+acc)))\n {\n ok = true;\n }\n }\n }\n return next;\n }", "title": "" }, { "docid": "d7f7fb10c6e2a819da6131b48e71bf07", "score": "0.5001216", "text": "@Override\n\tpublic int getNext() {\n\t\tval *= increment;\n\t\treturn val;\n\t}", "title": "" }, { "docid": "b5d2518afd113cbce68d41c89e4b5b19", "score": "0.4990608", "text": "int nextIndex();", "title": "" }, { "docid": "4b468229332385fa425f6e358722cf99", "score": "0.4980592", "text": "public int getNext() {\n\t\t/**\n\t\t * 需要考虑机器级执行细节\n\t\t * 1. get value\n\t\t * 2. value++\n\t\t * 3. put value\n\t\t */\n\t\treturn value++;\n\t}", "title": "" }, { "docid": "3e2d48e9021fcf38015845041650ace3", "score": "0.49516854", "text": "public static Integer firstRecurringElementOne(int[] nums){\n int minIndex = Integer.MAX_VALUE;\n for(int i=0;i<nums.length; i++){\n for(int j=i+1; j< nums.length;j++){\n if(nums[i] == nums[j] && j<minIndex)\n minIndex = j;\n }\n }\n if(minIndex < Integer.MAX_VALUE) return nums[minIndex];\n return null;\n }", "title": "" }, { "docid": "c259cc239306289da0e5d3411fb44ecb", "score": "0.49507275", "text": "int findEq(int[] arr) {\n int lSum = 0, rSum = 0;\n for (int i = 0; i < arr.length; i++) rSum += arr[i];\n\n for (int i = 0; i < arr.length; i++) {\n rSum -= arr[i];\n if (lSum == rSum) return i + 1;\n else lSum += arr[i];\n }\n return -1;\n }", "title": "" }, { "docid": "5d07534b036823171e1c9f82321c3463", "score": "0.49328658", "text": "private void updateIncrementsPassIntoCont(Continuation cont,\n RCTracker increments) {\n if (cont.spawnsSingleTask()) {\n long incr = 1; // Increment once per task\n\n // Track those already added\n Set<Var> alreadyAdded = new HashSet<Var>();\n\n for (Var keepOpen: cont.getKeepOpenVars()) {\n assert (RefCounting.trackWriteRefCount(keepOpen));\n alreadyAdded.add(keepOpen);\n increments.writeIncr(keepOpen, incr);\n }\n\n for (PassedVar passedIn: cont.getAllPassedVars()) {\n logger.trace(cont.getType() + \": passedIn: \" + passedIn.var.name());\n if (!passedIn.writeOnly && RefCounting.trackReadRefCount(passedIn.var)) {\n increments.readIncr(passedIn.var, incr);\n alreadyAdded.add(passedIn.var);\n }\n }\n for (BlockingVar blockingVar: cont.blockingVars(false)) {\n if (RefCounting.trackReadRefCount(blockingVar.var) &&\n !alreadyAdded.contains(blockingVar.var)) {\n increments.readIncr(blockingVar.var, incr);\n }\n }\n } else if (RCUtil.isForeachLoop(cont)) {\n AbstractForeachLoop foreach = (AbstractForeachLoop) cont;\n updateIncrementsPassIntoForeach(increments, foreach);\n }\n }", "title": "" }, { "docid": "eaaf807d9e83c1b3e46c404df154c392", "score": "0.4925607", "text": "private static int getOffset(int[] digits, int pos) {\n int offset=0;\n //start searching from the second array element, as first (index=0) is always occupied by c1\n for (int ind=1;ind<=pos;ind+=1) {\n if (digits[ind+offset]!=-1) {\n //this is not empty element and we should offset for it;\n offset++;\n ind--;\n }\n }\n return offset;\n }", "title": "" }, { "docid": "f3642a4dd28d3e9a22694823974552e2", "score": "0.49187216", "text": "public int getConsecutiveNumber() {\n Matcher matcherGo = PATTERN.matcher(getContent());\n if (matcherGo.matches()) {\n return Integer.parseInt(matcherGo.group(1));\n } else {\n // should not be possible\n throw new IllegalStateException(\"This identifier has been created with an unexpected pattern.\");\n }\n }", "title": "" }, { "docid": "f38fce8779d12b0ed49a0d144f38fff7", "score": "0.49181303", "text": "public int tryCounter(int i){\r\n i++;\r\n return i;\r\n }", "title": "" }, { "docid": "e8cd925a8a499651e4dad2ce5911aac0", "score": "0.4917715", "text": "public static int lonelyinteger(List<Integer> a) {\n int count=0;\n for(int num:a){\n if(a.size()==1){\n return num;\n }\n for(int i=0;i<a.size();i++){\n if(a.indexOf(num)!=i){\n if(num==a.get(i))\n {\n count+=1;\n int index=a.indexOf(num);\n a.remove(index);\n a.remove(i);\n break;\n }\n }\n }\n if (count==0) {\n a.remove(0);\n lonelyinteger(a);\n System.out.println(num);\n return num;\n }\n else\n count=0;\n }\n return 0;\n }", "title": "" }, { "docid": "ce8515814a5548c9e24ae971f8ecb8b6", "score": "0.4911436", "text": "public void findCounter(Counter counter) {\n \n }", "title": "" }, { "docid": "d9c2facf0b13ebfc2a2faf221b8de6cc", "score": "0.49024385", "text": "int getUnitIncrement() {\n/* 717 */ return this.line;\n/* */ }", "title": "" }, { "docid": "e524290a78c86b9d37162270f567fb95", "score": "0.48934448", "text": "public long incrementAndGetBy(long incr) throws IOException, KeeperException,\n InterruptedException {\n Stat stat = new Stat();\n\n while (true) {\n byte[] lng = client.getData(this.prefix, false, stat);\n\n if (lng == null) {\n throw new IOException(\"Counter \" + this.prefix + \" has null data\");\n }\n\n Long l = Long.parseLong(new String(lng));\n\n Long newcounter = l + incr;\n try {\n client.setData(this.prefix, newcounter.toString().getBytes(), stat\n .getVersion());\n return l;\n } catch (KeeperException.BadVersionException e) {\n LOG.debug(\"Retrying counter\");\n }\n }\n }", "title": "" }, { "docid": "628213de0da720987e1f2ae7ebdee7e8", "score": "0.4891228", "text": "public static int findNextPerson(List<Integer> people, int currIndex, int stepsAway){\n int nextIndex;\n nextIndex=((currIndex+stepsAway)%people.size());\n return nextIndex;\n }", "title": "" }, { "docid": "72fb07722563af3846d7d2ac0a9e0b1d", "score": "0.488745", "text": "public boolean canIncrement() { return iterator<list.size()-1; }", "title": "" }, { "docid": "a5085269c6a3348f61b1950e6afde84b", "score": "0.48817492", "text": "int getNumber(int index);", "title": "" }, { "docid": "282272fbf8f94dc1e67f8dfe668d6b59", "score": "0.48465523", "text": "default OptionalInt find(IntPredicate pred, int start) {\n final int n = size();\n for (int i = start; i < n; i++) {\n final int value = at(i);\n if (pred.test(value)) {\n return OptionalInt.of(value);\n }\n }\n return OptionalInt.empty();\n }", "title": "" }, { "docid": "f97abd267a3e969ebc505ca0c8040924", "score": "0.4842335", "text": "@Override\n public Result preIncrement(\n org.apache.hadoop.hbase.coprocessor.ObserverContext<RegionCoprocessorEnvironment> e,\n Increment increment) throws IOException {\n RegionCoprocessorEnvironment env = e.getEnvironment();\n // We need to set this to prevent region.increment from being called\n e.bypass();\n Region region = env.getRegion();\n byte[] row = increment.getRow();\n List<RowLock> locks = Lists.newArrayList();\n TimeRange tr = increment.getTimeRange();\n region.startRegionOperation();\n try {\n ServerUtil.acquireLock(region, row, locks);\n long maxTimestamp = tr.getMax();\n boolean validateOnly = true;\n Get get = new Get(row);\n get.setTimeRange(tr.getMin(), tr.getMax());\n for (Map.Entry<byte[], List<Cell>> entry : increment.getFamilyCellMap().entrySet()) {\n byte[] cf = entry.getKey();\n for (Cell cq : entry.getValue()) {\n long value = Bytes.toLong(cq.getValueArray(), cq.getValueOffset());\n get.addColumn(cf, CellUtil.cloneQualifier(cq));\n long cellTimestamp = cq.getTimestamp();\n // Workaround HBASE-15698 by using the lowest of the timestamps found\n // on the Increment or any of its Cells.\n if (cellTimestamp > 0 && cellTimestamp < maxTimestamp) {\n maxTimestamp = cellTimestamp;\n get.setTimeRange(MetaDataProtocol.MIN_TABLE_TIMESTAMP, maxTimestamp);\n }\n validateOnly &= (Sequence.ValueOp.VALIDATE_SEQUENCE.ordinal() == value);\n }\n }\n try (RegionScanner scanner = region.getScanner(new Scan(get))) {\n List<Cell> currentCells = new ArrayList<>();\n scanner.next(currentCells);\n // These cells are returned by this method, and may be backed by ByteBuffers\n // that we free when the RegionScanner is closed on return\n PhoenixKeyValueUtil.maybeCopyCellList(currentCells);\n if (currentCells.isEmpty()) {\n return getErrorResult(row, maxTimestamp, SQLExceptionCode.SEQUENCE_UNDEFINED.getErrorCode());\n }\n Result result = Result.create(currentCells);\n Cell currentValueKV = Sequence.getCurrentValueKV(result);\n Cell incrementByKV = Sequence.getIncrementByKV(result);\n Cell cacheSizeKV = Sequence.getCacheSizeKV(result);\n \n long currentValue = PLong.INSTANCE.getCodec().decodeLong(currentValueKV.getValueArray(), currentValueKV.getValueOffset(), SortOrder.getDefault());\n long incrementBy = PLong.INSTANCE.getCodec().decodeLong(incrementByKV.getValueArray(), incrementByKV.getValueOffset(), SortOrder.getDefault());\n long cacheSize = PLong.INSTANCE.getCodec().decodeLong(cacheSizeKV.getValueArray(), cacheSizeKV.getValueOffset(), SortOrder.getDefault());\n \n // Hold timestamp constant for sequences, so that clients always only see the latest\n // value regardless of when they connect.\n long timestamp = currentValueKV.getTimestamp();\n\t\t\t\tPut put = new Put(row, timestamp);\n \n\t\t\t\tint numIncrementKVs = increment.getFamilyCellMap().get(PhoenixDatabaseMetaData.SYSTEM_SEQUENCE_FAMILY_BYTES).size();\n // creates the list of KeyValues used for the Result that will be returned\n List<Cell> cells = Sequence.getCells(result, numIncrementKVs);\n \n //if client is 3.0/4.0 preserve the old behavior (older clients won't have newer columns present in the increment)\n if (numIncrementKVs != Sequence.NUM_SEQUENCE_KEY_VALUES) {\n \tcurrentValue += incrementBy * cacheSize;\n // Hold timestamp constant for sequences, so that clients always only see the latest value\n // regardless of when they connect.\n Cell newCurrentValueKV = createKeyValue(row, PhoenixDatabaseMetaData.CURRENT_VALUE_BYTES, currentValue, timestamp);\n put.add(newCurrentValueKV);\n Sequence.replaceCurrentValueKV(cells, newCurrentValueKV);\n }\n else {\n\t Cell cycleKV = Sequence.getCycleKV(result);\n\t Cell limitReachedKV = Sequence.getLimitReachedKV(result);\n\t Cell minValueKV = Sequence.getMinValueKV(result);\n\t Cell maxValueKV = Sequence.getMaxValueKV(result);\n\t \n\t boolean increasingSeq = incrementBy > 0 ? true : false;\n\t \n\t // if the minValue, maxValue, cycle and limitReached is null this sequence has been upgraded from\n\t // a lower version. Set minValue, maxValue, cycle and limitReached to Long.MIN_VALUE, Long.MAX_VALUE, true and false\n\t // respectively in order to maintain existing behavior and also update the KeyValues on the server \n\t boolean limitReached;\n\t if (limitReachedKV == null) {\n\t \tlimitReached = false;\n\t \tCell newLimitReachedKV = createKeyValue(row, PhoenixDatabaseMetaData.LIMIT_REACHED_FLAG_BYTES, limitReached, timestamp);\n\t \tput.add(newLimitReachedKV);\n\t \tSequence.replaceLimitReachedKV(cells, newLimitReachedKV);\n\t }\n\t else {\n\t \tlimitReached = (Boolean) PBoolean.INSTANCE.toObject(limitReachedKV.getValueArray(),\n\t \t\t\tlimitReachedKV.getValueOffset(), limitReachedKV.getValueLength());\n\t }\n\t long minValue;\n\t if (minValueKV == null) {\n\t minValue = Long.MIN_VALUE;\n\t Cell newMinValueKV = createKeyValue(row, PhoenixDatabaseMetaData.MIN_VALUE_BYTES, minValue, timestamp);\n\t put.add(newMinValueKV);\n\t Sequence.replaceMinValueKV(cells, newMinValueKV);\n\t }\n\t else {\n\t minValue = PLong.INSTANCE.getCodec().decodeLong(minValueKV.getValueArray(),\n\t minValueKV.getValueOffset(), SortOrder.getDefault());\n\t } \n\t long maxValue;\n\t if (maxValueKV == null) {\n\t maxValue = Long.MAX_VALUE;\n\t Cell newMaxValueKV = createKeyValue(row, PhoenixDatabaseMetaData.MAX_VALUE_BYTES, maxValue, timestamp);\n\t put.add(newMaxValueKV);\n\t Sequence.replaceMaxValueKV(cells, newMaxValueKV);\n\t }\n\t else {\n\t maxValue = PLong.INSTANCE.getCodec().decodeLong(maxValueKV.getValueArray(),\n\t maxValueKV.getValueOffset(), SortOrder.getDefault());\n\t }\n\t boolean cycle;\n\t if (cycleKV == null) {\n\t cycle = false;\n\t Cell newCycleKV = createKeyValue(row, PhoenixDatabaseMetaData.CYCLE_FLAG_BYTES, cycle, timestamp);\n\t put.add(newCycleKV);\n\t Sequence.replaceCycleValueKV(cells, newCycleKV);\n\t }\n\t else {\n\t cycle = (Boolean) PBoolean.INSTANCE.toObject(cycleKV.getValueArray(),\n\t cycleKV.getValueOffset(), cycleKV.getValueLength());\n\t }\n\t \n\t long numSlotsToAllocate = calculateNumSlotsToAllocate(increment);\n\n // We don't support Bulk Allocations on sequences that have the CYCLE flag set to true\n\t if (cycle && !SequenceUtil.isCycleAllowed(numSlotsToAllocate)) {\n return getErrorResult(row, maxTimestamp, SQLExceptionCode.NUM_SEQ_TO_ALLOCATE_NOT_SUPPORTED.getErrorCode());\n\t }\n\t \n\t // Bulk Allocations are expressed by NEXT <n> VALUES FOR\n\t if (SequenceUtil.isBulkAllocation(numSlotsToAllocate)) {\n\t if (SequenceUtil.checkIfLimitReached(currentValue, minValue, maxValue, incrementBy, cacheSize, numSlotsToAllocate)) {\n\t // If we try to allocate more slots than the limit we return an error.\n\t // Allocating sequence values in bulk should be an all or nothing operation.\n\t // If the operation succeeds clients are guaranteed that they have reserved \n\t // all the slots requested.\n\t return getErrorResult(row, maxTimestamp, SequenceUtil.getLimitReachedErrorCode(increasingSeq).getErrorCode());\n\t }\n\t }\n\t \n\t if (validateOnly) {\n\t return result;\n\t }\n\t \n\t // return if we have run out of sequence values \n\t\t\t\t\tif (limitReached) {\n\t\t\t\t\t\tif (cycle) {\n\t\t\t\t\t\t\t// reset currentValue of the Sequence row to minValue/maxValue\n\t\t\t\t\t\t\tcurrentValue = increasingSeq ? minValue : maxValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn getErrorResult(row, maxTimestamp, SequenceUtil.getLimitReachedErrorCode(increasingSeq).getErrorCode());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t \n\t // check if the limit was reached\n\t\t\t\t\tlimitReached = SequenceUtil.checkIfLimitReached(currentValue, minValue, maxValue, incrementBy, cacheSize, numSlotsToAllocate);\n\t\t\t\t\t\n // update currentValue\n\t\t\t\t\tcurrentValue += incrementBy * (SequenceUtil.isBulkAllocation(numSlotsToAllocate) ? numSlotsToAllocate : cacheSize);\n\t\t\t\t\t// update the currentValue of the Result row\n\t\t\t\t\tCell newCurrentValueKV = createKeyValue(row, PhoenixDatabaseMetaData.CURRENT_VALUE_BYTES, currentValue, timestamp);\n\t\t Sequence.replaceCurrentValueKV(cells, newCurrentValueKV);\n\t\t put.add(newCurrentValueKV);\n\t\t\t\t\t// set the LIMIT_REACHED column to true, so that no new values can be used\n\t\t\t\t\tCell newLimitReachedKV = createKeyValue(row, PhoenixDatabaseMetaData.LIMIT_REACHED_FLAG_BYTES, limitReached, timestamp);\n\t\t put.add(newLimitReachedKV);\n }\n // update the KeyValues on the server\n Mutation[] mutations = new Mutation[]{put};\n region.batchMutate(mutations);\n // return a Result with the updated KeyValues\n return Result.create(cells);\n } finally {\n ServerUtil.releaseRowLocks(locks);\n }\n } catch (Throwable t) {\n ServerUtil.throwIOException(\"Increment of sequence \" + Bytes.toStringBinary(row), t);\n return null; // Impossible\n } finally {\n region.closeRegionOperation();\n }\n }", "title": "" }, { "docid": "c16d7fe8dd6cb48a4ae3f8c86d14f4a5", "score": "0.48381323", "text": "static int findPreviousInChain(int entryIndex, byte[] next) {\n assert checkIndex(entryIndex, next.length);\n assert next[entryIndex] < 0;\n final int capacity = next.length;\n final int capacityMask = capacity - 1;\n for (int index = entryIndex - 1, toIndex = index - maxOffset(capacity);\n index > toIndex;\n index--) {\n int rolledIndex = index & capacityMask;\n int absNextOffset = Math.abs(next[rolledIndex]);\n int chainedIndex = (rolledIndex + absNextOffset) & capacityMask;\n if (chainedIndex == entryIndex) {\n // The entry at rolledIndex chains to the entry at entryIndex.\n assert absNextOffset != END_OF_CHAIN;\n return rolledIndex;\n }\n }\n throw new NoSuchElementException(\n \"Previous entry not found (entryIndex=\"\n + entryIndex\n + \", next[entryIndex]=\"\n + next[entryIndex]\n + \")\");\n }", "title": "" }, { "docid": "528a30978b9046145adfd993aed1459c", "score": "0.48306233", "text": "private static int getMisingNumber(int[] numbersArray){\n int missingNumber = 0;\n //sort the array\n Arrays.sort(numbersArray);\n \n try{\n for(int i = 0; i < numbersArray.length; i++){\n // If number at index[i]+1 is not equal to number at index[i+1]\n // then the missing number is the value of index[i]+1\n if( (numbersArray[i] + 1 == numbersArray[i+1]) && ( (i+1) < numbersArray.length) ){\n continue;\n }else{\n missingNumber = numbersArray[i] + 1;\n break;\n }\n }\n }catch(ArrayIndexOutOfBoundsException e){\n missingNumber = 0;\n }\n return missingNumber;\n }", "title": "" }, { "docid": "25d3fe5ea6896e745d77fd9b5579c065", "score": "0.4830433", "text": "protected Object findNext() {\n\t\tfor (int k = 0; k < indices.size(); ++k) {\n\t\t\twhile (buffer[k].size() > 0) {\n\t\t\t\tint i = ((Integer) indices.get(k)).intValue();\n\t\t\t\tObject D;\n\t\t\t\tif (k < 2) {\n\t\t\t\t\tD = buffer[k].removeLast();\n\t\t\t\t} else {\n\t\t\t\t\tD = buffer[k].removeFirst();\n\t\t\t\t}\n\t\t\t\tif (D != null) {\n\t\t\t\t\tif (!elm2num.containsKey(D)) {\n\t\t\t\t\t\telm2num.put(D, new Integer(nextNum++));\n\n\t\t\t\t\t\tfor (int m = 0; m < indices.size(); ++m) {\n\t\t\t\t\t\t\tint j = ((Integer) indices.get(m)).intValue();\n\t\t\t\t\t\t\tif (j != i) {\n\t\t\t\t\t\t\t\tbuffer[m].addLast(ds.op(j, D));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn new DSPair(i, D);\n\t\t\t\t\t} else if (visitAllEdges) {\n\t\t\t\t\t\tint E = ((Integer) elm2num.get(D)).intValue();\n\t\t\t\t\t\tint Ei = ((Integer) elm2num.get(ds.op(i, D)))\n\t\t\t\t\t\t\t\t.intValue();\n\t\t\t\t\t\tif (Ei <= E) {\n\t\t\t\t\t\t\treturn new DSPair(i, D);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twhile (seeds.hasNext()) {\n\t\t\tObject D = seeds.next();\n\t\t\tif (D != null && !elm2num.containsKey(D)) {\n\t\t\t\telm2num.put(D, new Integer(nextNum++));\n\t\t\t\tfor (int k = 0; k < indices.size(); ++k) {\n\t\t\t\t\tint i = ((Integer) indices.get(k)).intValue();\n\t\t\t\t\tbuffer[k].addLast(ds.op(i, D));\n\t\t\t\t}\n\t\t\t\treturn new DSPair(-1, D);\n\t\t\t}\n\t\t}\n\t\tthrow new NoSuchElementException(\"at end\");\n\t}", "title": "" }, { "docid": "3515ad08adef0f90718ca4b3cdfe1e53", "score": "0.48288947", "text": "public static int inc(int a) {\n\t\t//if verbose is on, track code\n\t\tif (Flags.verboseOn) {\n\t\t\tSystem.out.println(\"<<< int inc() >>>\");\n\t\t}\n\t\t\n\t\treturn a+1;\n\t}", "title": "" }, { "docid": "4d507a053978290bfbe4283a27727e12", "score": "0.48272803", "text": "int getCurrentNumberOfOccurences();", "title": "" }, { "docid": "b28bd112766730c4bb392fabc981e273", "score": "0.4826555", "text": "long getSqIdByNextOrder(long nextOrder);", "title": "" }, { "docid": "b714bc26f36b554fc743b11e85a14bbd", "score": "0.4826133", "text": "private static int equilibriumIndex(int[] arr) {\n\t\tint[] prefixSum = PrefixSum.prefixSum(arr, arr.length);\n\t\tint leftSum = 0;\n\t\tint sum = prefixSum[arr.length - 1];\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tsum-=arr[i];\n\t\t\tif (leftSum == sum) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t\tleftSum+=arr[i];\n\n\t\t}\n\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "a6e93a73f638ee25aef2541d34791b51", "score": "0.48244715", "text": "public abstract void increment();", "title": "" }, { "docid": "92f48beb159c8005e71fa99921dc6696", "score": "0.48180428", "text": "static int jumpingOnClouds(int[] c) {\n\n int minCount = 0;\n\n int length = c.length;\n for( int i = 0; i < length-1; ) {\n if( i < length-2 && c[i+2] == 0 ) {\n i += 2;\n }\n else {\n i++;\n }\n\n minCount++;\n }\n\n return minCount;\n\n }", "title": "" }, { "docid": "13d9e35c2597fe745ba8d08a5726d1c9", "score": "0.48148423", "text": "static int jumpingOnClouds(int[] c) {\n int length = c.length;\n int jumps = 0;\n for (int i = 0; i < length; i++, jumps++) {\n if (i + 2 < length && c[i + 2] == 0) {\n i++;\n }\n }\n return jumps - 1;\n }", "title": "" }, { "docid": "b404875042c8cf8b1e556f275564c8f4", "score": "0.4805236", "text": "private void countBlockIncrements(Block block, RCTracker increments) {\n ListIterator<Statement> stmtIt = block.statementIterator();\n while (stmtIt.hasNext()) {\n Statement stmt = stmtIt.next();\n switch (stmt.type()) {\n case INSTRUCTION:\n Instruction inst = stmt.instruction();\n updateCountsInst(inst, increments);\n increments.updateForInstruction(inst);\n break;\n case CONDITIONAL:\n updateIncrementsPassIntoCont(stmt.conditional(), increments);\n break;\n default:\n throw new STCRuntimeError(\"Unknown statement type \" + stmt.type());\n }\n\n if (!RCUtil.mergeEnabled()) {\n placer.dumpIncrements(stmt, block, stmtIt, increments);\n }\n }\n for (Continuation cont: block.getContinuations()) {\n updateIncrementsPassIntoCont(cont, increments);\n if (!RCUtil.mergeEnabled()) {\n placer.dumpIncrements(null, block, block.statementEndIterator(),\n increments);\n }\n }\n }", "title": "" }, { "docid": "28552730bd465d4f0f5e3509370e3776", "score": "0.48029467", "text": "public Ship increment() {\n\n switch (this) {\n case TWO:\n return THREE;\n case THREE:\n return THREE2;\n case THREE2:\n return FOUR;\n case FOUR:\n return FIVE;\n case FIVE:\n return TWO;\n }\n\n return TWO;\n }", "title": "" }, { "docid": "75425a5c011d52c3eca5eb66e5fa47bb", "score": "0.48023736", "text": "abstract public int getScrollIncrement (boolean up);", "title": "" }, { "docid": "c229d3c4cb32158f19c877ba6b7bb3da", "score": "0.47909197", "text": "private static int stepikPosition(@NotNull Task taskToUpdate, @NotNull Lesson lesson) {\n int position = 1;\n for (Task task : lesson.taskList) {\n if (task.getName().equals(taskToUpdate.getName())) {\n break;\n }\n\n if (task.getId() > 0) {\n position++;\n }\n }\n\n return position;\n }", "title": "" }, { "docid": "bdefc37fee1deb4e44a2f412f5b199c9", "score": "0.47888708", "text": "private Integer increment(int totalElements, int value) {\n \t\t\n\t\tfor(int i=0;i<totalElements;i++)\n\t\t\tstack.set(i,stack.get(i)+value);\n\t\t\n\t\treturn stack.peek();\n\t}", "title": "" }, { "docid": "6a3e80591e206dd98c6a7a084a96d8cb", "score": "0.47803396", "text": "static int jumpingOnClouds(int[] c) {\n\n \tint steps = 0;\n \tint currentCloud = 0;\n \tint countClouds = c.length;\n \tboolean isEnd = false;\n \t\n \twhile (!isEnd) {\n \t\tif (currentCloud == countClouds - 2) {\n \t\t\tcurrentCloud += 1;\n \t\t} else if (c[currentCloud + 2] == 0) {\n \t\t\tcurrentCloud += 2;\n \t\t} else {\n \t\t\tcurrentCloud += 1;\n \t\t}\n \t\tsteps++;\n \t\tif (currentCloud == countClouds - 1) {\n \t\t\tisEnd = true;\n \t\t}\n \t}\n \t\n \treturn steps;\n\n }", "title": "" }, { "docid": "5b4d725de0589827a0785c4b979c5f9c", "score": "0.47746575", "text": "public int nextIndex();", "title": "" }, { "docid": "fc4c8d67026622e54227d28823ffc35d", "score": "0.47695172", "text": "private static int findMissingM1(int[] arr) {\n\t Arrays.sort(arr);\n\t for(int i=0;i<arr.length - 1;i++) {\n\t if(arr[i] == (arr[i+1] - 1)) {\n\t continue;\n\t } else {\n\t \t\tSystem.out.println(arr[i] + 1);\n\t return arr[i] + 1;\n\t }\n\t }\n\t return 0;\n\t}", "title": "" }, { "docid": "219652794b91ca7dcd35c79121e3b55d", "score": "0.47667074", "text": "protected int getNextIndex(JList list) {\n\t int index = list.getLeadSelectionIndex();\n\t int size = list.getModel().getSize();\n\n\t if (index == -1) {\n\t\tif (size > 0) {\n\t\t if (amount > 0) {\n\t\t\tindex = 0;\n\t\t }\n\t\t else {\n\t\t\tindex = size - 1;\n\t\t }\n\t\t}\n\t }\n\t else {\n\t\tindex += amount;\n\t }\n\t return index;\n\t}", "title": "" }, { "docid": "46512c3f7bae05f9f9d2429875c0a7c1", "score": "0.47622198", "text": "public Integer call() throws Exception {\n\t\tfor (int i = 0; i < part.length; i++) {\n\t\t\tif (part[i] == target) { return indices[i]; }\n\t\t}\n\t\treturn Integer.valueOf(-1);\n\t}", "title": "" }, { "docid": "52512839dc0081cf814827749f6dd257", "score": "0.47616425", "text": "public int incr()\n {\n\treturn incr;\n }", "title": "" }, { "docid": "40d3126b8de9b3e72382a5de6f714c8a", "score": "0.4760461", "text": "void increment(String name);", "title": "" }, { "docid": "161af1fa14d408e0b8f3e35ffe72701e", "score": "0.47590125", "text": "public int Min(){\n // Your code here\n int min = Integer.MAX_VALUE;\n\n for (int doneVal : dones)\n {\n if (doneVal < min)\n min = doneVal;\n }\n\n return min + 1;\n }", "title": "" }, { "docid": "affcf4e12d8530bb5537a55a9b59d02f", "score": "0.47539374", "text": "public int helper2(int[] citations) {\n int[] f = new int[citations.length+1];\n\n for(int i=0; i<citations.length; ++i){\n int fi = Math.min(citations[i],citations.length);\n f[fi]++;\n }\n\n if(f[f.length-1] == citations.length)\n return f.length-1;\n\n for(int i=f.length-2; i>=0; --i){\n f[i] = f[i+1]+f[i];\n if(f[i] >= i)\n return i;\n }\n return 0;\n }", "title": "" }, { "docid": "cbccc91a1c77abd0569369050109e1e8", "score": "0.4752035", "text": "private void find(int num, int[] nums, int begin, int end, List<List<Integer>> result) {\n\n\t\tint originBegin = begin;\n\t\tint originEnd = end;\n\n\t\twhile (begin < end) {\n\t\t\tint sum = num + nums[begin] + nums[end];\n\t\t\tif (sum > 0) {\n\t\t\t\tend--;\n\t\t\t} else if (sum < 0) {\n\t\t\t\tbegin++;\n\t\t\t} else {\n\t\t\t\tList<Integer> value = new ArrayList<Integer>();\n\t\t\t\tvalue.add(num);\n\t\t\t\tvalue.add(nums[begin]);\n\t\t\t\tvalue.add(nums[end]);\n\t\t\t\tresult.add(value);\n\t\t\t\tbegin++;\n\t\t\t\tend--;\n\t\t\t}\n\t\t\twhile (begin > originBegin && begin + 1 <= originEnd && nums[begin] == nums[begin - 1]) {\n\t\t\t\tbegin++;\n\t\t\t}\n\t\t\twhile (end < originEnd && end - 1 >= originBegin && nums[end] == nums[end + 1]) {\n\t\t\t\tend--;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "94a573eac34658b123b647890489aaa0", "score": "0.4743217", "text": "@Test\n public void whenGetNextCallShouldPointerForward() {\n PrimeNumbersIterator it = new PrimeNumbersIterator(new ArrayList<Integer>(Arrays.asList(7, 9, 11, 15)));\n\n it.next();\n int result = (Integer) it.next();\n\n assertThat(result, is(11));\n }", "title": "" }, { "docid": "feb1b45fe634f902cd30158804f3f0de", "score": "0.47425604", "text": "public int minIncrementForUnique_counting(int[] nums) {\n int maxVal = 0;\n for (int x : nums) {\n maxVal = Math.max(maxVal, x);\n }\n \n int[] count = new int[nums.length + maxVal];\n for (int x : nums) {\n count[x]++;\n }\n\n int moves = 0;\n int taken = 0;\n for (int x = 0; x < nums.length + maxVal; ++x) {\n if (count[x] >= 2) {\n taken += count[x] - 1;\n moves -= x * (count[x] - 1);\n } else if (taken > 0 && count[x] == 0) {\n taken--;\n moves += x;\n }\n }\n\n return moves;\n }", "title": "" }, { "docid": "07f356093b5f418cdbabbb38e4d7edf7", "score": "0.4742215", "text": "private int getNumSkip() {\n\treturn numConflicts - 1;\n }", "title": "" }, { "docid": "78e348e18dcffe4738b95b261240586b", "score": "0.47407365", "text": "int lowestCount();", "title": "" }, { "docid": "529ff2c58c8ab26dace817d14143991e", "score": "0.47392547", "text": "public int findOffset(String token, String line, int startOffset) {\r\n\t\tint whitespaceNum = 0;\r\n\t\tString subStr = line.substring(startOffset);\r\n\t\tint index = subStr.indexOf(token);\r\n\t\twhile(Character.isWhitespace(line.charAt(startOffset+whitespaceNum))) whitespaceNum++;\r\n\t\t//System.out.println(\"Find token[\"+token+\"] in [\"+subStr+\"]startOffset=\"+startOffset+\" index=\"+index+\" whitespaceNum=\"+whitespaceNum);\r\n\t\tif(whitespaceNum>index) index = whitespaceNum;\r\n\t\t\r\n\t\treturn startOffset+index;\r\n\t}", "title": "" }, { "docid": "d7c994d77d19f7492c8aa74817c30b36", "score": "0.47360948", "text": "public int indexOfMin();", "title": "" }, { "docid": "073673f5c951da6b0169b37d9907c3ec", "score": "0.47286707", "text": "int getBlockIncrement() {\n/* 734 */ return this.page;\n/* */ }", "title": "" }, { "docid": "52b9a6444d15b09ecd6e3f8cb0ca2379", "score": "0.47274432", "text": "public abstract int getPredecessor(int v);", "title": "" }, { "docid": "cd5feb686cd2e609f72134671ce8ba95", "score": "0.4724763", "text": "private static int linearCheck(int[] a, int value, int index, int checks) {\n\t\tif (a[index] == value) {\n\t\t\tSystem.out.println(\"Found\");\n\t\t\t//returns the amount of checks performed to find the number\n\t\t\treturn checks;\n\t\t} else {\n\t\t\tindex++;\n\t\t\tif (index >= a.length) {\n\t\t\t\tSystem.out.println(\"Not found\");\n\t\t\t\t\n\t\t\t\t//returns the amount of checks performed\n\t\t\t\treturn ++checks;\n\t\t\t} else {\n\t\t\t\t//check has been successfully performed, so the amount of checks is increased by one.\n\t\t\t\tchecks++;\n\t\t\t\t//recursive call\n\t\t\t\treturn linearCheck(a, value, index, checks);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1f82559c37f745fa53ed767bba7012ef", "score": "0.4723781", "text": "private int findReferenceAllele(final AlleleList<A> alleles) {\n final int alleleCount = alleles.alleleCount();\n for (int i = 0; i < alleleCount; i++)\n if (alleles.alleleAt(i).isReference())\n return i;\n return -1;\n }", "title": "" }, { "docid": "86278996bac84a6c170484ba0d22900b", "score": "0.47234222", "text": "private final int findValueInList(double stepValue) {\n\t\t\n\t\tfor(int i = 0; i < steps.length; ++i){\n\t\t\tif(Math.abs(steps[i] - stepValue) < 1.0e-9)\n\t\t\t\treturn i;\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "baf8e50bb31f35e9bb980f69c4733a27", "score": "0.47228333", "text": "private static void part1() {\n\t\tArrayList<String> numsToSum = new ArrayList<>();\n\t\t\n\t\t//look through the whole list\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\n\t\t\t//set up how far i want to look ahead to match (this is important for the second part)\n\t\t\tint jump = (i+1)%input.length();\n\t\t\t\n\t\t\t//does the current number i'm looking at equal the number i'm jumping to for comparison\n\t\t\tif(input.charAt(i)==input.charAt(jump)){\n\t\t\t\t\n\t\t\t\t//if it does, ad it to the list i made earlier\n\t\t\t\tnumsToSum.add(input.substring(i, i+1));\n\t\t\t}\n\t\t}\n\t\t\n\t\tint rtn = 0;\n\t\t\n\t\t//go through and add all the numbers i found in the last step\n\t\tfor (String num : numsToSum) {\n\t\t\tint i = Integer.parseInt(num);\n\t\t\trtn+=i;\n\t\t}\n\t\t\n\t\t//display my answer to the console\n\t\tSystem.out.println(\"Day 1 part 1: \"+rtn);\n\t}", "title": "" }, { "docid": "4d31ee73346e40234d333c391230351f", "score": "0.47224706", "text": "void incrementar();", "title": "" }, { "docid": "4d31ee73346e40234d333c391230351f", "score": "0.47224706", "text": "void incrementar();", "title": "" }, { "docid": "07faae8a80aef5b5703514a8d2348029", "score": "0.47219414", "text": "private Offset calculateOffset(Room r, Set<Map.Entry<String, Room>> rooms, Offset currentOffset, List<Room> searchedRooms) {\n\n for (Map.Entry<String, Room> subEntry : rooms) {\n // If we checked this room, then don't check it again\n if (searchedRooms.contains(subEntry.getValue())) continue;\n\n Offset o = Offset.getOffset(subEntry.getKey());\n if (o == null) {\n continue;\n }\n searchedRooms.add(subEntry.getValue());\n\n Offset totalOffset = currentOffset.add(o);\n if (subEntry.getValue() == r) return totalOffset;\n o = calculateOffset(r, subEntry.getValue().getExits().entrySet(), totalOffset, searchedRooms);\n if (o != null) return o;\n }\n // Nothing was found\n return null;\n }", "title": "" }, { "docid": "efabb6202adf9d9a44106f53ab8c224c", "score": "0.47198036", "text": "public FibonacciCounter incrementByOne();", "title": "" }, { "docid": "f19cfbaec972ce8edd0018760ac3caec", "score": "0.47180897", "text": "int checkId(List<Integer> list) {\n int holder = 0;\n List<Integer> arryList;\n while (list.size() != 0) {\n final int holderFinal = holder;\n arryList = list.stream()\n .filter(x -> x != holderFinal)\n .collect(Collectors.toList());\n\n if (arryList.size() == list.size()) break;\n\n list = arryList.stream()\n .collect(Collectors.toList());\n arryList.clear();\n holder++;\n }\n return holder;\n }", "title": "" }, { "docid": "b775988675f61ad83386fa79740dcbe4", "score": "0.47155923", "text": "int getNextSubqueryNumber();", "title": "" }, { "docid": "cf7334a7f59f837912fc232fa9cb502f", "score": "0.4708064", "text": "private void seekCursor() {\n\t\tcursor = null;\n\n\t\twhile(iterator.hasNext() && cursor == null) {\t// iterate till end of list or cursor value is not set\n\t\t\tInteger element = iterator.next();\n\t\t\tif(!skipCountMap.containsKey(element)) {\t// not found in skip map, so cursor can point to element\n\t\t\t\tcursor = element;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tskipCountMap.put(element, skipCountMap.get(element)-1);\t// found skip element, ignore and reduce count\n\t\t\t\tskipCountMap.remove(element, 0);\t// if skipcount is 0 now, remove it from map\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aaa37244f2433fa861e54a548ef80f16", "score": "0.46894106", "text": "public static int findFirstInstance(final List<Integer> list, final int key) {\n if(list.size() == 0){return -1;}\n if(isIncreasing(list)) {\n int keyValIndex = findKeyValueIncr(list, 0, list.size() - 1, key);\n if(keyValIndex == -1){return -1;}\n if(keyValIndex == 0){return keyValIndex;}\n if (list.get(keyValIndex) > list.get(keyValIndex - 1)) {\n return keyValIndex;//findKeyValueIncr(list, 0, list.size() - 1, key);\n } else {\n return getFirst(list, 0, keyValIndex, key);\n }\n }\n else{\n int keyValIndex = findKeyValueDecr(list, 0 , list.size()-1, key);\n if(keyValIndex == -1){return -1;}\n if(list.get(keyValIndex) < list.get(keyValIndex - 1)){\n return keyValIndex;\n }\n else{\n return getFirst(list, 0, keyValIndex,key);\n }\n }\n }", "title": "" }, { "docid": "aad542946dee0fdeafd925a010b66b16", "score": "0.46851307", "text": "public int GetPos()\n\t{\n\t\t// If list is empty\n\t\tif(this.num_items == 0)\n\t\t\treturn -1;\n\n\t\t// Make counter node we can count how far we are from head \n\t\tNode counter = new Node();\n\t\t// Move counter to head\n\t\tcounter = this.head;\n\n\t\t// Do a max of num_items times\n\t\tfor(int i = 0; i < num_items; i++)\n\t\t{\n\t\t\t// If we are at our curr position, return times we've moved\n\t\t\tif(counter == this.curr)\n\t\t\t\treturn i;\n\t\t\t// else, move counter to next element\n\t\t\tcounter = counter.getLink();\n\t\t}\n\t\t\n\t\t// Debug statement, should never reach here. \n\t\treturn -99999;\n\t}", "title": "" }, { "docid": "c73f4524044fc27053c9520544903c42", "score": "0.46808112", "text": "int countIncreasingNum(int n, int index) {\n if (n == 0) return 1;\n else {\n int count = 0;\n for (int i = index; i < 10; i++) count += countIncreasingNum(n - 1, i);\n return count;\n }\n }", "title": "" }, { "docid": "ee6922799bcb608bf32a2833537629cc", "score": "0.467871", "text": "private int nextPos(int[][] sudoku) {\n int track = 0;\n for (int i = 0; i < Sudoku.SIZE; i++) {\n for (int j = 0; j < Sudoku.SIZE; j++) {\n if (sudoku[i][j] == 0) {\n return track;\n }\n track++;\n }\n }\n return track;\n }", "title": "" }, { "docid": "aae84fa54df4fc8e45bac2edfc22b2cf", "score": "0.4672502", "text": "private int findNode (double relX, double relY){\n int i=0;\n while (i<tokens.size()){\n if (tokens.get(i)[1]==relX&&tokens.get(i)[2]==relY){\n return i;\n }\n i++;\n }\n return -1;\n }", "title": "" }, { "docid": "34d97f70f58a71a142518275cd172a79", "score": "0.4671867", "text": "private int plusOne(int x) {\n if (x == rb.length - 1) {\n return 0;\n }\n return x + 1;\n }", "title": "" }, { "docid": "46ef3ca4da889d25ba01c0cabc297fe8", "score": "0.46661612", "text": "public int searchNextIndex(int startIndex){\t\n\t\tfor(int i = startIndex; i < input.size() - length; i++){\n\t\t\tint inputIndex = i;\n\t\t\tint prefixIndex = 0;\t\t\t\n\t\t\t// Try to match the words with the prefix\n\t\t\twhile(prefix.get(prefixIndex).equals(input.get(inputIndex))){ \t\t\t\t\n\t\t\t\tinputIndex++;\n\t\t\t\tprefixIndex++;\t\n\t\t\t\tif(prefixIndex == length){ // Enough consecutive matches found\n\t\t\t\t\tnextIndex = inputIndex;\n\t\t\t\t\tnextWord = input.get(inputIndex);\n\t\t\t\t\treturn nextIndex;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "963d5944db31375a0603a97a5c0b2328", "score": "0.4664615", "text": "private static int getMeterSectionOLD(long time, List<Long> meterSectionTimes) {\n\t\tint numSections = meterSectionTimes.size();\n\t\tfor (int i = 0; i < numSections; i++) {\n\t\t\t// If there is a next section: check if time is in section at i\n\t\t\tif (i < numSections - 1) {\n\t\t\t\tif (time >= meterSectionTimes.get(i) && time < meterSectionTimes.get(i+1)) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If not: time is in last section\n\t\t\telse {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "5baf4d74cb336775203e471da3af9157", "score": "0.46637845", "text": "private int findInsertionPoint(AppliedDiversionTableItem element) {\n\n // Find the new element's insertion point.\n int insertionPoint = Collections.binarySearch(diversion_list, element, this);\n if (insertionPoint < 0) {\n insertionPoint = -(insertionPoint + 1);\n }\n return insertionPoint;\n }", "title": "" }, { "docid": "6c6a571e13d4d0eb8d145a2c724dd387", "score": "0.46601698", "text": "private int getPageNumber(IPageable pageable, int increment) {\n\t\tint idx = currentPage + increment;\r\n\r\n\t\t// make sure the index lies between 0 and the last page\r\n\t\treturn Math.max(0, Math.min(pageable.getPageCount() - 1, idx));\r\n\t}", "title": "" }, { "docid": "f11c925beea6ca51509333c8b3058464", "score": "0.46553522", "text": "public int start1(int[] a, int[] b) {\n int out=0;\n if (a.length!=0 && a[0]==1) out++;\n if (b.length!=0 && b[0]==1) out++;\n return out;\n}", "title": "" }, { "docid": "701de2afe35fdb8ae681e78573224f93", "score": "0.4653848", "text": "long getSequenceNum();", "title": "" }, { "docid": "6d0bb69cfbc3d22844b6f7def18a9df8", "score": "0.46520916", "text": "int getNextResultSetNumber();", "title": "" }, { "docid": "c90580e8974e88a095535ff78f715f94", "score": "0.46502247", "text": "public static int increment(int i) {\n\t\treturn i++;\n\t}", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "cca8f933d58b31df12db5c2af971f7aa", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.ola_mundo, menu);\n return true;\n }", "title": "" } ]
[ { "docid": "d74efebd6fe79f46209a7e8cb2c52d89", "score": "0.71838945", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater mif= getMenuInflater();\n\t\tmif.inflate(R.menu.main_activity_action, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "55ac6cef21c3173820e0e6db23e9ab16", "score": "0.7038795", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) { //inflates custom toolbar produced to allow user to choose options from toolbar menu\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_items, menu);\n return true;\n }", "title": "" }, { "docid": "df665dc1094db7cd556165c36f37967f", "score": "0.69835234", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t/** Create an option menu from res/menu/actionbar_items.xml */\n\t\tgetMenuInflater().inflate(R.menu.actionbar_items, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "17b7806a10d3193f41120b07cfba2ad9", "score": "0.6968901", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main_activity_actions, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "8e2f7de30974eeddc971fc6df00505f8", "score": "0.6960812", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_actionbar, menu);\n\t\tmainMenuItems=menu.findItem(R.id.mainActionsItems);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "53a5697d72bebbaef700f863ca256cfb", "score": "0.69598657", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// Inflate the menu items for use in the action bar\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.layout.main_activity_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.69173545", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d5707c360ea0068ca4d8645e64ee4b95", "score": "0.6908643", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "509fae1ba18012276eddf232dcd6d282", "score": "0.6907139", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "59c70908ddc9e77dd02dbc53523f81a6", "score": "0.6902867", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater blowmenu = getMenuInflater();\r\n\t\tblowmenu.inflate(R.menu.coolmenu, menu);\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "045c39957dafeb0fbfb3be2d3b8a175f", "score": "0.68829477", "text": "@Override\n\t\t public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\t \tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t }", "title": "" }, { "docid": "a0d0552a6f30e91ee80eafca61f4f7c1", "score": "0.6879905", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "de5e53984a38ae9a6df1e8d74ad8d5ac", "score": "0.6871439", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n android.util.Log.d(this.getClass().getSimpleName(), \"called onCreateOptionsMenu()\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9b082fca2e03b01bdf98d8084be71c05", "score": "0.6870028", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.activity_inventory, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "d0af77cd41ea627a9a69472903ebdd5f", "score": "0.68633574", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menus, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a3569ff2f193bf88f7f514cf503b795a", "score": "0.6860794", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.activity_main_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "0a894679c97251625c56ec3ac322a571", "score": "0.68490314", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu); // expand menu from xml to this menu; otherwise menu empty\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "4cb6f066b3e73376bc74d9786749da14", "score": "0.68440217", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t\n\t\tmenu.add(0, 0, 0, \"Add\")\n\t\t\t.setIcon(R.drawable.ic_menu_add)\n\t\t\t.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n\t}", "title": "" }, { "docid": "77f0669e0bf01fe4ca133668d0d00662", "score": "0.683871", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.menu, menu);\n\n }", "title": "" }, { "docid": "95b7079fa877b7731e056b5ba245d2ca", "score": "0.6833723", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.action_bar_item,menu);\n return true;\n }", "title": "" }, { "docid": "d8b2394567af7ce671524e2dd40f3cb4", "score": "0.68304425", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.items, menu);\n return true;\n }", "title": "" }, { "docid": "ad08441a977eaa21efe37a3c6bea7b0c", "score": "0.6817275", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menuactionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.6814279", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.6814279", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "975d32887c6087ec4376da8f251eac03", "score": "0.6810918", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t}", "title": "" }, { "docid": "4c31d7bd49a8566a306d351559c19349", "score": "0.6805562", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.items_view, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3e969f35deddd11086009d1ffca62e43", "score": "0.68051755", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menubar, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "7635bd329ec106389f54b838b25b66c3", "score": "0.68043184", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_main_action_bar_items, menu);\n this.menu = menu;\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8ff740c98fb9d56a5c0cef974aa8e3dd", "score": "0.68027914", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.active_workout_action_bar, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "8d6e262b1d79fd73c42ab2bfe6226060", "score": "0.68024904", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c347a3cc4119bb2ec8d2471a3800b7e8", "score": "0.68019825", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "title": "" }, { "docid": "323736b6d5d5e794de1455b0e1d65beb", "score": "0.6792804", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.show_all_items, menu);\r\n\t\tcreateMenu(menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "15248d0a3ff453f390d9e8e9bd625071", "score": "0.6790323", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater c = getMenuInflater();\r\n\t\tc.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\r\n\t}", "title": "" }, { "docid": "7ab8a5b12d0e1c2eda0cacda363db545", "score": "0.67872673", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c09d43a1d955cbb24854844d1a9ace63", "score": "0.67857987", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actb_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "baeaffbd159e357b9ce5bc429f13f109", "score": "0.678176", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n getActivity().getMenuInflater().inflate(R.menu.menu_cookbooks, menu);\n }", "title": "" }, { "docid": "b243bdbbb9ee3d66834e40c975ffb94f", "score": "0.67447925", "text": "@Override\t\n\t public boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "c6d8a4029ee679a153a784392c5762ca", "score": "0.67334193", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archived_view, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67246264", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67246264", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "76f0d34dbf8419d42ddcc9857d1f81f0", "score": "0.6722338", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_alfr3d_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7091ce3cb11ab9d46978b1b0326784f3", "score": "0.6717321", "text": "@Override\r\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\r\n }", "title": "" }, { "docid": "50674382a6bd82a730c6aa682de52d53", "score": "0.67128795", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\r\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.activity_main, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "141d80080dd8c914ca57cbcfe785a633", "score": "0.67123574", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "798b81c8b70767fd22ba3423ad3a5f64", "score": "0.6709947", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater inflater = new MenuInflater(this);\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "61a31be5ff85ac861f9ea2238b0c2d57", "score": "0.6706404", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.display_message, menu);\r\n\t\treturn true;\r\n\t\t// MenuInflater inflater = getMenuInflater();\r\n\t\t// inflater.inflate(R.menu.main_activity_actions, menu);\r\n\t\t// return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.67059827", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a1e5d56ea8f3c5c2eb00f0069cb2f6d0", "score": "0.6704828", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t\t\t{\n\t\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "e6665a14c023340478e4f2738e70e01c", "score": "0.6704127", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu)\r\n {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.action_bar_menu,menu);\r\n return true;\r\n }", "title": "" }, { "docid": "c36d26f964604f9edb6c8fe77588b304", "score": "0.67034584", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t MenuInflater inflater = getMenuInflater();\n\t\t inflater.inflate(R.menu.wishlistmenu,menu);\n\t\t return true;\n\t\t}", "title": "" }, { "docid": "e97fb77e1b5f2bafbdc75e9e455cbef0", "score": "0.66995454", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\tmainMenu=menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "f226bd02fcf33fae93747e774780b37c", "score": "0.66973865", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6dd017c2e62cf0c40909767c44abb0c1", "score": "0.6692356", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.favorite_action, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "563a77d860c73258192f79b0bf56b5ea", "score": "0.66874486", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "fac99c9b973d17f1c44720793929ce44", "score": "0.66858286", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fac99c9b973d17f1c44720793929ce44", "score": "0.66858286", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e2e2d4892a288fe9cbf0bc3fc489e523", "score": "0.66807836", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "80d0d28a0d48354785f9f896965bcc72", "score": "0.6673321", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_main_actions, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "403d66c1a0b610739611aed9e2d50518", "score": "0.66717243", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tthis.mMenu = menu;\n\t\tcheckActionBar();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "64fc1a62215382acb7bcde762a0c17db", "score": "0.66690856", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater menuInflater = getMenuInflater();\r\n menuInflater.inflate(R.menu.main_menu, menu);\r\n\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "3fcb217b4321eba23185bd64f6c725cd", "score": "0.6667927", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_entry_screen, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "a7259e9d00b0128a2f1cce03c2290297", "score": "0.6667449", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //inflate the menu. This adds items to the action bar, if it is present\n getMenuInflater().inflate(R.menu.chat_app_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "3114a957f4938c40cc486f9f7723e85c", "score": "0.6663294", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_note_activity, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "931f7ca7dbfc755a9412e2aa2ec8ee3b", "score": "0.6661291", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.export_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "f7e92f6b703ee7d6b3a647b0eaae8500", "score": "0.66608334", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n //call getMenuInflater and inflate a specific resource: R.menu.main (in which main.xml)\n // and pass along the menu parameter\n getMenuInflater().inflate(R.menu.main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d5f44a4541f97f542bc9a33153e60086", "score": "0.66600406", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = new MenuInflater(MainActivity.this);\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.6659669", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "60a0a65d0954b254ea5a1db9f907e51c", "score": "0.6657226", "text": "@Override\r\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n \t\treturn true;\r\n \t}", "title": "" }, { "docid": "82b5da5a7cfa02ae73b5b07e7062f805", "score": "0.6657081", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d231a45ee314c8ee51a06b5d2049999f", "score": "0.6655544", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.act_menu, menu);\n return true;\n }", "title": "" }, { "docid": "985be3f2a689aeb34048e42ef2d30b54", "score": "0.6654922", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater inflate = getMenuInflater();\r\n\t\tif (finishedIt == true) {\r\n\t\t\tinflate.inflate(R.menu.mymenux, menu);\r\n\t\t} else {\r\n\t\t\tinflate.inflate(R.menu.mymenu2, menu);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "3e8720a0ec0a7b29939158c5939793e8", "score": "0.6651123", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b850037f9c06d473f2a900adac325ed7", "score": "0.6649413", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //return super.onCreateOptionsMenu(menu);\n getMenuInflater().inflate(R.menu.menu_actions,menu);\n return true;\n }", "title": "" }, { "docid": "4a5748ab80fddf6896fc305842a626a4", "score": "0.6647298", "text": "@Override\r\n\t \tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t \t\t populateMenu(menu);\r\n\t \t\treturn super.onCreateOptionsMenu(menu);\r\n\t \t}", "title": "" }, { "docid": "d589d0f9f1197e972c14fb11190acae5", "score": "0.6646438", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.activity_list, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "a0206326c774c356cf38a5cff0c61c18", "score": "0.6645666", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.drop_info_list_fragment_actions, menu);\n }", "title": "" }, { "docid": "a1e282af634f65c01e10832e353146b7", "score": "0.66427845", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.home_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66371524", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66371524", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66371524", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8f23c4b1b0bd121d3d47a5adb3f7cd75", "score": "0.66363287", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.singer_list_action, menu);\n return true;\n }", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.66347146", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.66347146", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.66347146", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "e1a12324b9f13e82d6f713ef97f3b274", "score": "0.66328156", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "title": "" }, { "docid": "bbe983d35aa5baafd69dadfc80ac8caf", "score": "0.663177", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.activity_books_list, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6627113", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6627113", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6627113", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fa9fa36b0a9e90c22b7bd029b1a91e9f", "score": "0.66229385", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tif (!super.onCreateOptionsMenu(menu))\n\t\t\treturn false;\n\t\t\n\t\tgetMenuInflater().inflate(R.layout.addbeer_menu, menu);\n\t\treturn true; \n\t}", "title": "" }, { "docid": "5707a8adb79da21934c175b10bb2d618", "score": "0.6622321", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.main, menu);\n \treturn true;\n }", "title": "" }, { "docid": "687831036c64689da2c3ba6da9000714", "score": "0.66210926", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.active, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "13a3b153e3724a1c3daece8365467d4b", "score": "0.66210926", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "title": "" }, { "docid": "280fdf162e8112971be108bac565b555", "score": "0.661868", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\t// We must call through to the base implementation.\n\t\tsuper.onCreateOptionsMenu(menu);\n\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "798205e90ef55a91f63aa7918cf93210", "score": "0.6617342", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflateOil = getMenuInflater();\n inflateOil.inflate(R.menu.home_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8108d46d4d2c0371b6915420af4d4e77", "score": "0.6614335", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8108d46d4d2c0371b6915420af4d4e77", "score": "0.6614335", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8108d46d4d2c0371b6915420af4d4e77", "score": "0.6614335", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d913c9ac79725ef983043efacb5dfef3", "score": "0.66037744", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.feed, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9545c64baafd07c66cd7c448cd8ebe9a", "score": "0.6603266", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) \r\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "dc6966b4b8595f31b310dad55d765e7d", "score": "0.6602973", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_create, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" } ]
7ed0504adedae8fbce89035e314d64be
delete a single movie from movies table
[ { "docid": "37f9d8abcb40c9399a39c54510cd53bf", "score": "0.0", "text": "@Override\n public int delete(@NonNull Uri uri, String selection, String[] selectionArgs) {\n\n final SQLiteDatabase db = mMovieDbHelper.getWritableDatabase();\n\n int movieDeleted;\n\n switch (sUriMatcher.match(uri)) {\n case MOVIES:\n movieDeleted = db.delete(MovieEntry.TABLE_NAME, MovieEntry.COLUMN_EXT_ID+\"=?\", selectionArgs);\n break;\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n\n if (movieDeleted != 0) {\n // A movie was deleted, set notification\n getContext().getContentResolver().notifyChange(uri, null);\n }\n return movieDeleted;\n }", "title": "" } ]
[ { "docid": "150ffdd33601616c6c715b3720e6e3a2", "score": "0.82325625", "text": "public String deleteAction(Movie movie) throws ClassNotFoundException, SQLException{\r\n Connection con = null;\r\n try{\r\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\r\n con=DriverManager.getConnection(\"jdbc:derby://localhost:1527/movies\",\"yehuda\",\"1984\");\r\n String sql = \"DELETE FROM YEHUDA.MOVIES WHERE MOVIEID=?\";\r\n PreparedStatement st=con.prepareStatement(sql);\r\n \r\n st.setInt(1, movie.getMovieid());\r\n st.executeUpdate();\r\n }finally{\r\n con.close();\r\n }\r\n movies.remove(movie);\r\n return null;\r\n }", "title": "" }, { "docid": "d2691ada61f7d5c5d7ca263043fe419d", "score": "0.82311213", "text": "public void deleteMovie(Movie movie) {\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"DELETE FROM \" + TABLE_MOVIELIST + \" WHERE \" + COLUMN_NAME +\n \"=\\\"\" + movie.get_name() + \"\\\";\");\n db.close();\n }", "title": "" }, { "docid": "6ed4d45e2121bf2adf925eb32b4b7413", "score": "0.81171775", "text": "public void deleteMovie(long id) throws SQLException\n {\n open(); // Open the database\n database.delete(\"movies\", \"_id=\" + id, null);\n close(); // Close the database\n }", "title": "" }, { "docid": "d4165fc6b1187eaa7315079aaa6e087b", "score": "0.78814673", "text": "@Delete\n void deleteFavoriteMovie(Movie movie);", "title": "" }, { "docid": "f91c07ab79a2a673657bd8108e4d6611", "score": "0.7753623", "text": "@Override\r\n public int deleteByMovieNo(int no) {\n return session.delete(\"movieGenres.deleteByMovieNo\", no);\r\n }", "title": "" }, { "docid": "9a8d2a3698edadcec98f8dc96fe16b34", "score": "0.77402675", "text": "public static void deleteMovie(String movieID) {\n java.sql.Connection conn = null;\n java.sql.PreparedStatement pStmt = null;\n try {\n conn = createConnection();\n System.out.println(\"Creating statement...\");\n pStmt = conn.prepareStatement(\"delete from Movies where MOVIE_ID = ?\");\n pStmt.setString(1, movieID);\n pStmt.executeUpdate();\n } catch (ClassNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n // finally block used to close resources\n close(pStmt);\n close(conn);\n System.out.println(\"Movie Deleted\");\n } // end finally try\n }", "title": "" }, { "docid": "cac885f428c98984674f5337099fbed0", "score": "0.75963295", "text": "public void deleteMovie(){\n\t\tint response = JOptionPane.showConfirmDialog(mainFrame, \"Are you sure you wish to delete \" + currentMovie.getTitle() + \"?\",\n\t\t\t\t\"****************Confirm Delete****************\",\n\t\t\t\tJOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\n\t\tif (response == JOptionPane.OK_OPTION) {\n\t\t\tcontroller.deleteFromDisk(currentMovie);\n\t\t}\n\t}", "title": "" }, { "docid": "cb512222e3038312dddabcb31457fa3f", "score": "0.74493414", "text": "@DeleteMapping(\"/movies/{movieId}\")\n\tpublic void deleteAMovie(@PathVariable int movieId) {\n\t\tmovieService.deleteAMovie(movieId);\n\t}", "title": "" }, { "docid": "5a4e757e3d6700f52d50dab12cff79a0", "score": "0.7278277", "text": "public void deleteMovie(int movie_id) { new deleteMovieAsyncTask(myDAO).execute(movie_id); }", "title": "" }, { "docid": "3c3c391a19dca4abca8f50c5a608753e", "score": "0.7231375", "text": "@DeleteMapping(\"/{id}\")\n public ResponseEntity<HttpStatus> deleteMovie(@PathVariable(\"id\") long id) {\n try {\n movieRepository.deleteById(id);\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n } catch (Exception e) {\n return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "90f737ec32a17577f8cc8b3fe8e01c6f", "score": "0.72159445", "text": "@DeleteMapping(\"/deleteBodyMovie/{id}\")\n\tpublic void deleteBodyMovie(@PathVariable int id ) {\n\t\tOptional<Movie> findMovie = movieRepo.findById(id);\n\t\t\n\t\tif (findMovie.toString()==\"Option.empty\") {\n\t\t\tthrow new RuntimeException(\"Not Found\");\n\t\t}\n\t\t\n\t\tmovieRepo.deleteById(id);\n\t}", "title": "" }, { "docid": "5f13902ec34c42d8706da04801540842", "score": "0.7059466", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Movie : {}\", id);\n movieRepository.deleteById(id);\n }", "title": "" }, { "docid": "5cd57bd73f952c0bfae498c1795f0297", "score": "0.7039386", "text": "@RequestMapping(value = \"/movies/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Movie : {}\", id);\n movieRepository.delete(id);\n }", "title": "" }, { "docid": "097edf4e3e1ef263461ee9091797cd96", "score": "0.7033635", "text": "public void removeMovie(String title, int releaseYear)\n {\n SQLiteDatabase sqLiteDatabase = this.getWritableDatabase();\n\n String query = \"DELETE FROM \" + MOVIES_TABLE + \" WHERE \" + TITLE_COLUMN + \" = '\" + title + \"' AND \" + RELEASED_YEAR_COLUMN + \" = \" + releaseYear + \"\";\n\n sqLiteDatabase.execSQL(query);\n }", "title": "" }, { "docid": "8b1a32f5a57652ef1e8048ee3b322c58", "score": "0.7031298", "text": "private void deleteMovieFromFavorites() {\n\n mSelectionArgs[0] = movie.getMovieId();\n\n int rowsDeleted = 0;\n\n rowsDeleted = getContext().getContentResolver().delete(\n MoviesContract.MovieEntry.CONTENT_URI,\n mSelectionClause,\n mSelectionArgs\n );\n\n boolean deleted = FileUtility.deleteImageFromMemory(movie.getMovieId(),getContext());\n\n }", "title": "" }, { "docid": "678fa5a9ff3ff98a10a3db9bbd75f0b0", "score": "0.7024841", "text": "public void deleteMovie(Movie movie) {\n try {\n //if the movie is the head and there is more than 1 movie in the list make the next movie the head\n if (movie.getNext() != null && movie == head) {\n setHead(movie.getNext());\n //if the movie is not the head and not the tail connect the previous to the next\n }else if (movie != head && movie != tail){\n movie.getPrev().setNext(movie.getNext());\n movie.getNext().setPrev(movie.getPrev());\n //if its the only one in the list set the head to null\n }else if(movie.getNext() == null && movie.getPrev() == null){\n setHead(null);\n //if at the end of the list set the previous movie's next as null\n }else{\n movie.getPrev().setNext(null);\n }\n } catch (NullPointerException e) {\n System.out.println(\"movie not found\");\n }\n }", "title": "" }, { "docid": "397fc85cd5a33095d2a3bc3baa9edcce", "score": "0.7020318", "text": "public void deleteFavMovie(int cId, int mId) throws SQLException{\n //connect to DB\n con = getCon.getConnection();\n //create sql string\n String sqlStr = \"DELETE FROM \" + tblName + \" WHERE \" + tblCols[0] + \"=? AND \" + tblCols[1] + \"=?\";\n //create query\n pst = con.prepareStatement(sqlStr);\n //set values\n pst.setInt(1, cId);\n pst.setInt(2, mId);\n //excute query\n pst.executeUpdate();\n }", "title": "" }, { "docid": "40a4ff0aa36e8f3b04f69acea0cc773d", "score": "0.6915793", "text": "int deleteByPrimaryKey(TMovieConfigKey key);", "title": "" }, { "docid": "514b0186272bcb689ec3820818e86e0f", "score": "0.68866885", "text": "public void deleteMovie() {\n\t\tConectionDB con = new ConectionDB();\n Connection conection = con.conect(); \n //Declaring our 'where' condition to be used as filter\n String filter = titleId.getText();\n String where = \"\";\n System.out.println(\"My filter is \" + filter);\n //Our filter must not be empty\n if(!\"\".equals(filter)){ //\n where = \"WHERE titleId = '\" + filter + \"'\";\n System.out.println(\"My WHERE is: \" + where);\n try{\n \t//'deletetv' will be the query that we will send to the database to delete the movie\n \tString deletemovie = \"DELETE FROM movie WHERE movieId = ?\"; \n \n PreparedStatement statementcd = conection.prepareStatement(deletemovie);\n statementcd.setString(1, titleId.getText());\n System.out.println(\"my query is: \" + deletemovie);\n statementcd.execute();\n \n try {\n \t//'deletetitle' will be the query that we will send to the database to delete the title\n String deletetitle = \"DELETE FROM title WHERE titleId = ?\"; \n \n PreparedStatement statement = conection.prepareStatement(deletetitle);\n statement.setString(1, titleId.getText());\n System.out.println(\"my query is: \" + deletetitle);\n statement.execute();\n \t\n } catch(SQLException ex) {\n \tJOptionPane.showMessageDialog(null, \"Error deleting the Movie...!!\");\t\t//If something goes wrong when trying to delete the title\n }\n \n conection.close();\n \n JOptionPane.showMessageDialog(null, \"Movie Title deleted successfully\\n\"\n \t\t+ \"Please refresh\");\n titleId.setText(\"\");\n name.setText(\"\");\n releaseYear.setText(\"\");\n genre.setText(\"\");\n productionCompany.setText(\"\");\n director.setText(\"\");\n country.setText(\"\");\n duration.setText(\"\");\n language.setText(\"\");\n format.setText(\"\");\n stock.setText(\"\");\n available.setText(\"\");\n rentPrice.setText(\"\");\n lastRegister.setText(\"\");\n \n } catch (Exception e){ //If something goes wrong\n \tJOptionPane.showMessageDialog(null, \"Error deleting the Movie Title!\");\n }\n \n } else { //The ID must not be empty\n JOptionPane.showMessageDialog(null, \"Error deleting the Movie Title! Possible reassons: \\n\"\n + \"\t· The ID cannot be empty\");\n }\n\t}", "title": "" }, { "docid": "cbf6505ddcb2a9ce0c813b44caf463fd", "score": "0.68188107", "text": "int deleteByPrimaryKey(String videoid);", "title": "" }, { "docid": "5d6831d1d41ffc29f3e0e9fdec637da0", "score": "0.68161523", "text": "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteActionPerformed\n String name = txtTitle.getText();\n \n //find and delete movie\n if (myList.deleteMovie(name)) {\n lblMessage.setText(name + \" was deleted\");\n refreshView();\n }\n else {\n lblMessage.setText(name + \" could not be found\");\n }\n }", "title": "" }, { "docid": "eb77c67c060f890c5b74e340a787cf4e", "score": "0.6802376", "text": "public void deleteEveryFavMovie ()\n {\n int rows = getContentResolver().delete(DBContract.MoviesEntry.CONTENT_URI, null, null);\n\n if ( rows == 0){\n Toast.makeText(this,R.string.delete_all_items_error,Toast.LENGTH_LONG).show();\n }Toast.makeText(this, R.string.delete_all_items, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "c550ed47b5e339af1019556785985f7a", "score": "0.67965555", "text": "int deleteByExample(TMovieConfigExample example);", "title": "" }, { "docid": "c84314a887e2d54d525120fd4a301893", "score": "0.6732639", "text": "int deleteByExample(FilmArrangementExample example);", "title": "" }, { "docid": "70bba8decb0f7abf1a1c3cc3191211f1", "score": "0.6721475", "text": "public int deleteFavoriteMovieItem(int id) {\r\n\t\treturn favoriteDatabase.delete(DATABASE_MOVIE_TABLE, _ID + \" = '\" + id + \"'\", null);\r\n\t}", "title": "" }, { "docid": "ba9642547c7a18f0359c3778bdf7a1b3", "score": "0.6682531", "text": "public void delMovie(String name){\n \n Iterator<Movie> i = collection.iterator();\n \n while(i.hasNext()){\n Movie m = (Movie) i.next();\n \n if (name.equals(m.getName())){\n this.collection.remove(m);\n System.out.println(m.getName() + \" has been succesfully removed!\");\n return;\n }\n }\n }", "title": "" }, { "docid": "8ee75d8923356f03013445026dd2da79", "score": "0.6673929", "text": "@Override\n\tpublic void deleteMovieTheatreObject(MovieTheatre object) {\n\n\t}", "title": "" }, { "docid": "8b1055b32bfc61cc9af02b2c5ad00270", "score": "0.6622514", "text": "private void deleteMovieDetailsFromFavoritesDb() {\n Log.d(LOG_TAG, \"deleteMovieDetailsFromFavoritesDb Method is called now\");\n Uri deleteUri = null;\n if (insertUri != null) {\n deleteUri = insertUri;\n } else if (mCurrentMovieUri != null) {\n deleteUri = mCurrentMovieUri;\n } else {\n deleteUri = ContentUris.withAppendedId(FavoriteMoviesContract.FavoriteMoviesEntry.CONTENT_URI, movieIdFromDb);\n }\n\n int delID = getContentResolver().delete(deleteUri, null, null);\n if (delID != 0) {\n displayToastMessage(getString(R.string.movie_remove_item_successful));\n mFavoritesBtn.setText(getResources().getString(R.string.mark_as_favorite));\n } else {\n displayToastMessage(getString(R.string.movie_insert_or_delete_item_failed));\n }\n }", "title": "" }, { "docid": "ee3fe9ec3b5db64b7e1ad45b32c255df", "score": "0.661374", "text": "public void deleteMovieButton() {\n var result = InputAlert.showMessageBox(\"Do you want to delete this movie?\", String.format(\"Deleting %s\", selectedMovie.getTitle()),\n \"You cannot undo this action once it's done!\", Alert.AlertType.CONFIRMATION);\n if (result.get() == ButtonType.OK) {\n try {\n MOVIE_MANAGER.deleteMovie(selectedMovie.getId());\n movies.remove(selectedMovie);\n } catch (Exception e) {\n InputAlert.showMessageBox(\"No movie selected\", \"Cannot delete something that doesn't exist!\", \"Please select a movie.\", Alert.AlertType.ERROR);\n e.printStackTrace();\n }\n load();\n } else {\n // ... user chose CANCEL or closed the dialog\n }\n }", "title": "" }, { "docid": "55f69b62cdb82be1a5b47bae4949ac5b", "score": "0.6588257", "text": "@Test(expected = IllegalArgumentException.class)\n\tpublic void wdeleteTest2() {\n\t\tms.delete(doesnotExistMovie.getId());\n\t}", "title": "" }, { "docid": "21061d6ef7c050a0abcc93f59b6afcf7", "score": "0.6546464", "text": "int deleteByPrimaryKey(String vid);", "title": "" }, { "docid": "d8fc6b02db79064e5e35af80959e4809", "score": "0.6542207", "text": "@DELETE(\"/recommendations/movies/{id}\") Call<ResponseBody> dismissMovie(@Path(\"id\") long id);", "title": "" }, { "docid": "860729f193d3f9ded0aaa22973296786", "score": "0.6534285", "text": "int deleteByPrimaryKey(BigDecimal VIDEO_ID);", "title": "" }, { "docid": "387ea5825d1a54cd4e53739dd14765bc", "score": "0.6472442", "text": "@Override\n\tpublic boolean deleteFilmById(String id){ TODO Auto-generated method stub\n\t\t//\n\t\t\n\t\tint ix = Integer.parseInt(id);\n\t\t\n\t\tint i;\n\t\ttry {\n\t\t\ti = Util.getFilmMapper().deleteById(ix);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"外键约束,无法删除\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn (i>0)?true:false;\n\t}", "title": "" }, { "docid": "ee37e7e62e46788432cf892da79ec372", "score": "0.64722496", "text": "@Override\r\n\tpublic int deleteByPrimaryKey(String videoId) {\n\t\tint d = videoMapper.deleteByPrimaryKey(videoId);\r\n\t\tSystem.out.println(d);\r\n\t\treturn d;\r\n\t}", "title": "" }, { "docid": "263f331526dfede00741943013a55a66", "score": "0.64651126", "text": "public void delete() {\n try(Connection con = DB.sql2o.open()) {\n String sql = \"DELETE FROM animals WHERE id=:id;\";\n con.createQuery(sql)\n .addParameter(\"id\", id)\n .executeUpdate();\n }\n }", "title": "" }, { "docid": "33ec52116c48bb06346cace5623e2590", "score": "0.6438581", "text": "public void delete(MovieDBItem item) {\n \t\n \tfor (Genre genre : genreList)\n \t{\n \t\tif (genre.getItem().equals(item.getGenre()))\n \t\t{\n \t\t\tgenre.deleteMovie(item);\n \t\t\t\n \t\t\tif (genre.getMovieList().isEmpty())\n \t\t\t\tgenreList.remove(genre);\n \t\t\t\n \t\t\tbreak;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "fe66d7fa78718fee2152b6572aba3f71", "score": "0.64297676", "text": "public void deleteMovie(FavlistItem favlistItem) {\n repository.deleteFavItem(favlistItem);\n }", "title": "" }, { "docid": "eef177666f7b0dbaf9389072dd32f344", "score": "0.6389151", "text": "int deleteByPrimaryKey(Integer idMagazine);", "title": "" }, { "docid": "5865d93771609308ed067c260d947036", "score": "0.6363867", "text": "int deleteByPrimaryKey(Integer gamerecordid);", "title": "" }, { "docid": "e6ad4c95c49ea95a56f7e357a07248be", "score": "0.63512945", "text": "int deleteByPrimaryKey(Integer videoFileId);", "title": "" }, { "docid": "309a87a45733eea02af9f860788969d2", "score": "0.63350165", "text": "public void deletemovieByTitle(String title) {\n StringBuilder sb = new StringBuilder(\"DELETE FROM \").append(TABLE_NAME_BY_TITLE).append(\" WHERE title = '\").append(title).append(\"';\");\n\n final String query = sb.toString();\n session.execute(query);\n }", "title": "" }, { "docid": "dbe1fe3b5c7520577bc6e804a192066c", "score": "0.63288426", "text": "public void removeMovie(Movie removedMovie, MovieList Movies){\n Movies.removeMovie(removedMovie);\n File DatabaseFile = new File(\"data\\\\MovieList.txt\");\n try {\n ArrayList<String> st = DBInterface.ReadFile(DatabaseFile);\n String DeletedLine = \"\";\n // Remove movie from MovieList.txt\n for (int i=0; i<st.size(); i++){\n if (st.get(i).startsWith(removedMovie.getTitle())){\n DeletedLine = st.get(i);\n break;\n }\n }\n DBInterface.DeleteLine(DatabaseFile, DeletedLine);\n\n DatabaseFile = new File(\"data\\\\ShowTimeList.txt\");\n st = DBInterface.ReadFile(DatabaseFile);\n ArrayList<String> DeletedLineList = new ArrayList<String>();\n for (int i=0; i<st.size(); i++){\n if (st.get(i).startsWith(removedMovie.getTitle()))\n DeletedLineList.add(st.get(i));\n }\n for (String DeletedLine2: DeletedLineList)\n DBInterface.DeleteLine(DatabaseFile, DeletedLine2);\n } catch (IOException e) {\n System.out.println(\"IOException > \" + e.getMessage());\n }\n \n }", "title": "" }, { "docid": "c52c76d5f7c60f4b88e621e9a2b7fecf", "score": "0.6291772", "text": "public void removeMovie(long id)\r\n\t{\r\n\t\tif(listOfMovies.containsKey(id))\r\n\t\t{\r\n\t\t\tlistOfMovies.remove(id);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.62763596", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.62763596", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.62763596", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.62763596", "text": "void deleteById(String id);", "title": "" }, { "docid": "f327c7ab8fcc32312c51357b4cf5a651", "score": "0.6262333", "text": "public void deleteById(int id);", "title": "" }, { "docid": "f327c7ab8fcc32312c51357b4cf5a651", "score": "0.6262333", "text": "public void deleteById(int id);", "title": "" }, { "docid": "31601e1ce805dc9673979fc189ede3ae", "score": "0.6228955", "text": "int deleteByPrimaryKey(String city_id);", "title": "" }, { "docid": "df2c069d58b4011cdcc8f86184886172", "score": "0.6212833", "text": "@DeleteMapping(\"/videos/{id}\")\n\tpublic void deleteVideo(@PathVariable long id) {\n\t\tvideoRepository.deleteById(id);\n\t}", "title": "" }, { "docid": "4bba95366569fec981a70a7b86bab067", "score": "0.62020034", "text": "@Override\r\n protected void executeOperation(Object param) throws Exception {\r\n repository.delete((Film) param);\r\n }", "title": "" }, { "docid": "9b2e6054b00311deeb995069b81effb0", "score": "0.6195701", "text": "public void removeMovie(String name, int quantity) {\n\t\tString update;\n\n\t\ttry {\n\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/miniprojects\", \"root\", \"exception\");\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"select * from arowonamovierental_movies\");\n\t\t\t\n\t\t\t\n\t\t\tupdate = \"UPDATE arowonamovierental_movies \" + \n\t\t\t\t\t\"SET quantity = '\"+(quantity)+\"'\" + \n\t\t\t\t\t\"where moviename = '\"+name+\"' \";\n\t\t\t\n\t\t\tstmt.executeUpdate(update);\n\t\t}\n\t\tcatch(Exception exc){\n\t\t\texc.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8f23db63d1528d681c017f25dbc97ace", "score": "0.619173", "text": "void deleteById(int id);", "title": "" }, { "docid": "124efffb198708ac44fe6e0c830bf1d5", "score": "0.6184829", "text": "public void delete(String id);", "title": "" }, { "docid": "124efffb198708ac44fe6e0c830bf1d5", "score": "0.6184829", "text": "public void delete(String id);", "title": "" }, { "docid": "2152fe8290c13b90d8655bf5e1af4e69", "score": "0.6176177", "text": "boolean deleteByDVDId(int dvdId);", "title": "" }, { "docid": "eff78db2b2c901d8a7f476a008717316", "score": "0.61698645", "text": "void deleteOne(Integer id);", "title": "" }, { "docid": "3f1ba746e0f2d18c5463b2a1f5f252ff", "score": "0.61290485", "text": "void deleteById(ID id);", "title": "" }, { "docid": "3f1ba746e0f2d18c5463b2a1f5f252ff", "score": "0.61290485", "text": "void deleteById(ID id);", "title": "" }, { "docid": "6cfddf1fd795e95fc9238d6a676b373f", "score": "0.6109496", "text": "public void deleteTrain(Train train) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TRAINS_TABLE, TRAIN_ID + \" = ?\",\n new String[] { String.valueOf(train.getID()) });\n db.close();\n }", "title": "" }, { "docid": "e41e108a5747afc58739de5550e2fa4e", "score": "0.6102311", "text": "public void delete(int id);", "title": "" }, { "docid": "90030522352756b0d7ecdf0f821d731e", "score": "0.609894", "text": "@Override\r\n\tpublic void delete(int id) {\n\t\treviewMapper.deleteByPrimaryKey(id);\r\n\t}", "title": "" }, { "docid": "f6521f76b6fc5568cd3b345d46ed59ee", "score": "0.60590214", "text": "void deleteHeroById(int id);", "title": "" }, { "docid": "ae87802ec296d0fa326bd18193f9e369", "score": "0.6054297", "text": "public String delete(String id);", "title": "" }, { "docid": "c89793b585bf667c303eee54be7c5fa0", "score": "0.6026816", "text": "public void delete()\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MATCH (n)\"\n \t\t+ \"DETACH DELETE n\");\n tx.success(); // Mark this write as successful.\n }\n }\n }", "title": "" }, { "docid": "8a88423553210644e2954c7ccff0613e", "score": "0.6021331", "text": "@DeleteMapping(\"/episode/{id}\")\n\t public String delete(@PathVariable(\"id\") long id) {\n\t episodeService.delete(id);\n\t return \"\";\n\t }", "title": "" }, { "docid": "2634bed616bc18de24f1a118d01b3386", "score": "0.6015126", "text": "@Override\n\tpublic void delVideo(String id) {\n\t\tvideoMapper.delVideo(id);\n\t}", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.601245", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.601245", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.601245", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.601245", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.601245", "text": "void delete(String id);", "title": "" }, { "docid": "f34c1f9e0c576f6f573ea733bf3d1ce3", "score": "0.6011085", "text": "int deleteByExample(VideoDtoExample example);", "title": "" }, { "docid": "85b0716b0d3a51d522fcce95236d6e15", "score": "0.59966606", "text": "public void deleteOne(Agenda agenda) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, \"id = ?\",\n new String[] { String.valueOf(agenda.getId()) });\n db.close();\n\n }", "title": "" }, { "docid": "28bb7fd90ab2f27c483db4cebb41648c", "score": "0.59802604", "text": "public void deleteArticle(String title) {\n mDb.delete(TABLE_NAME, COL_TITLE + \"=?\", new String[]{title});\n }", "title": "" }, { "docid": "0063a74a7e75ace094a0bed1fab328c2", "score": "0.59794474", "text": "void deleteRecord(String id);", "title": "" }, { "docid": "ad8de7da14f8fa1cbee0099cd9ad89ef", "score": "0.59759504", "text": "int deleteByPrimaryKey(Integer terminalId);", "title": "" }, { "docid": "c2322df2f03ca31cfb24f0555a933806", "score": "0.597496", "text": "public void eliminarTrabajador(int id);", "title": "" }, { "docid": "93bef4dec25a051b9cdadb4d342dd968", "score": "0.59718394", "text": "public void delete(Person p) {\n Connection con = DBConnection.connection();\n\n try {\n Statement stmt = con.createStatement();\n\n stmt.executeUpdate(\"DELETE FROM person WHERE id= \" + p.getId());\n\n }\n catch (SQLException e2) {\n e2.printStackTrace();\n }\n }", "title": "" }, { "docid": "836b7efd1d3c2f4c762efdfcacc8b02f", "score": "0.59686166", "text": "public static void deleteMovie(MovieDaoInterface movieDao, String msg, PrintWriter out, BufferedReader in, String fromServer) throws DaoException, IOException {\r\n //take in title of movie user wishes to delete\r\n Scanner kb = new Scanner(System.in);\r\n System.out.println(\"enter name of movie you wish to delete: \");\r\n String movieName = kb.nextLine();\r\n msg = \"searchmovie,\" + movieName;\r\n //checks to see if movie exists\r\n Movie m = searchSingleMovie(msg, out, in, fromServer);\r\n\r\n// Movie m = movieDao.findMovieByTitle(movieName);\r\n// System.out.println(\"Movie: \" + m);\r\n// if (m != null) {\r\n if (!m.getTitle().equals(\"\")) {\r\n MovieDeets(m);\r\n System.out.println(\"is this the correct movie you wish to delete, y- yes, n - no\");\r\n String choice = kb.nextLine();\r\n int id = m.getId();\r\n //confirms wether to delete or keep the movie in db\r\n if (choice.equalsIgnoreCase(\"y\")) {\r\n msg = \"remove,\" + id;\r\n System.out.println(\"Sending (Client -> Server): \" + msg);\r\n out.println(msg); // send message to server\r\n\r\n fromServer = in.readLine(); // keep reading from stream\r\n System.out.println(\"Received (Server -> Client): \" + fromServer);\r\n\r\n if (fromServer.equalsIgnoreCase(\"true\")) {\r\n System.out.println(\"movie has been deleted: \" + movieName);\r\n } else {\r\n System.out.println(\"Movie has not been deleted, an unexpected error has occured\");\r\n }\r\n } else {\r\n System.out.println(\"Well maybe you will choose another.\");\r\n }\r\n\r\n } else {\r\n System.out.println(\"that movie was not found\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "6d0d0bdea876e2f7e8292ee6ed9e8806", "score": "0.59591055", "text": "public void deleteTitle(String title) throws SQLException {\n if (titles.contains(title)) {\n titleModel.deleteTitle(title);\n titles.remove(title);\n }\n }", "title": "" }, { "docid": "376c38e267679d90eeb5c6a63f12624b", "score": "0.5958377", "text": "public void unjoin(int a, int m) {\n db.execute(String.format(\"delete from actor_movie where actor_id = %d and movie_id = %d;\", a, m));\n }", "title": "" }, { "docid": "5bfdfd662d50606b8712482090d6db19", "score": "0.59561336", "text": "void RemoveMovieByType(Context context,String type);", "title": "" }, { "docid": "59b49c28780ea224d3bc6dac715b8676", "score": "0.5954164", "text": "@DELETE\n public void delete() {\n store.remove(id);\n }", "title": "" }, { "docid": "71c32cf8498e13383145d701311909f5", "score": "0.5950727", "text": "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n String item = movieList.getSelectedItem().toString();\r\n if (item == \"\") {\r\n return;\r\n } else {\r\n for (int i = 0; i < InventoryGUI.movies.size(); i++) {\r\n if (InventoryGUI.movies.get(i).getTitle() == item) {\r\n InventoryGUI.movies.get(i).remove();\r\n InventoryGUI.movies.remove(i);\r\n movieList.setSelectedItem(\"\");\r\n\r\n // remove item from db\r\n try{\r\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\r\n Connection con = DriverManager.getConnection(DATABASE_URL);\r\n Statement statement = con.createStatement();\r\n // System.out.println(\"connected\");\r\n \r\n String query = \"DELETE FROM db_owner.Movies WHERE Title='\" + item +\"';\";\r\n \r\n // System.out.println(query);\r\n statement.execute(query);\r\n \r\n } catch (Exception ex){\r\n JOptionPane.showMessageDialog(null, \"Error: \\n\" + ex + \"\\nPlease correct this problem and try again.\", \"Database Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n \r\n JFrame frame;\r\n frame = new JFrame();\r\n JOptionPane.showMessageDialog(frame, \"Movie sold.\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n dispose();\r\n }\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "fa107b4d0e5c752ab7d8fcbf87797a64", "score": "0.5950286", "text": "@Override\n public void deleteAllCategoriesForMovie(int movieID) throws DALexception {\n String query = \"DELETE FROM CatMovie WHERE(MovieId=?);\";\n try (Connection con = databaseConnector.getConnection();\n PreparedStatement pstat = con.prepareStatement(query)) {\n pstat.setInt(1, movieID);\n pstat.executeUpdate();\n } catch (SQLServerException throwables) {\n throw new DALexception(\"couldn't delete all cateogies from a movie\", throwables);\n } catch (SQLException throwables) {\n throw new DALexception(\"couldn't delete all cateogies from a movie\", throwables);\n }\n }", "title": "" }, { "docid": "5c06d2d52814a574aaef61a1ebe15f79", "score": "0.59403425", "text": "public void deleteRecord(String _id, String table) {\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"DELETE FROM \" + table + \" WHERE \" + COLUMN_ID + \"=\\\"\" + _id + \"\\\";\");\n db.execSQL(\"DELETE FROM \" + table + \"genres WHERE album_id=\\\"\" + _id + \"\\\";\");\n db.execSQL(\"DELETE FROM \" + \"lentout WHERE album_id=\\\"\" + _id + \"\\\";\");\n db.close();\n }", "title": "" }, { "docid": "52db95ff91bb2ab23c720933128be7b5", "score": "0.5940314", "text": "public void delete(){\n\n\t// existsQuery\n\t//\tused to verify that the record exists in the database. This will\n\t//\thelp us to avoid unneccessary exceptions\n\t// deleteCommand\n\t//\tthe SQL command used to delete the record from the database\n\tString existsQuery = \"select * from ads where adid = \" + myAd.getAdID();\n\tString deleteCommand = \"delete from ads where adid = \" + myAd.getAdID();\n\tStatement st;\n\tResultSet rs;\n\n\t// Try to send the commands to the database,handling any exceptions\n\ttry{\n\t Connection conn = DBSettings.getConn();\n\t st = conn.createStatement();\n\t rs = st.executeQuery(existsQuery);\n\n\t // Does the restaurantID exist in the database?\n\t if (rs.isLast()) {\n\t\treturn;\n\t }\n\n\t // If the restaurantID is valid in the database, continue deleting\n\t st.execute(deleteCommand);\n\t} catch (SQLException ex) {\n\t // If there was a problem with the connection, stop\n\t return;\n\t}\n }", "title": "" }, { "docid": "0f9592124ea2b42bd5deeb9029ad738c", "score": "0.5938762", "text": "void deleteBook(String bookTitle, String publisherName) throws SQLException{\n String sql = \"DELETE FROM Books WHERE bookTitle = '\" + bookTitle + \"' AND publisherName = '\" + publisherName + \"'\";\n st.executeUpdate(sql);\n System.out.println(\"Book deleted\");\n }", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" }, { "docid": "750757484280028533cca58e8d179e76", "score": "0.59375465", "text": "int deleteByPrimaryKey(String id);", "title": "" } ]
0b51bae99e64a8b0c04d93545c000e17
sets the address of the location
[ { "docid": "729b29eb3b47ab1b84eb6f41368e1438", "score": "0.6947911", "text": "public void setAddress(Address addresses) {\r\n\t\tthis.address = addresses;\r\n\t}", "title": "" } ]
[ { "docid": "b7b1fb7e5c74a3ef816cb795184c0297", "score": "0.7901349", "text": "void setAddress(String address);", "title": "" }, { "docid": "2cf292f4d1a48e5ad2e91b7c6f87ee47", "score": "0.78525496", "text": "public void setAddress(){\n if(isLocationSet() && !getStreetResult().isEmpty()) {\n String locationInfo = getHouseNumberResult()+\" \" + getStreetResult()+\" \"+getPostcodeResult();\n address = MapActivity.getAddress(locationInfo, getActivity());\n if(address != null) {\n setLocation(address.getLatitude(), address.getLongitude(), MapActivity.getLocationName(address));\n }else{\n makeToast(\"Pick Up Location Invalid\");\n setLocationSet(false);\n }\n }else{\n setLocationSet(false);\n Log.d(\"PICK_UP_FRAGMENT\",\"location not set\");\n }\n }", "title": "" }, { "docid": "ee6b38075a35e5f0e17adf7acfa350c4", "score": "0.7794304", "text": "public void setLocationAddress(entity.Address value);", "title": "" }, { "docid": "1ff8476d3b3e44625f1afc1b8fe3df78", "score": "0.76568896", "text": "public static void setAddress(Address address) {\n ADDRESS.set(address);\n }", "title": "" }, { "docid": "de32acc33e69f1bd4a0f3a982f03b920", "score": "0.7645065", "text": "public void setAddressLocation( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ADDRESSLOCATION, value);\r\n\t}", "title": "" }, { "docid": "1564d00032ece0356f6083f8b967fde1", "score": "0.761395", "text": "public void setAddress(String addr) throws IOException;", "title": "" }, { "docid": "27001f3fb16384c29260adc27296f7e1", "score": "0.76057655", "text": "public void setAddress(Address address) \r\n {\r\n\t\tthis.address = address;\r\n\t}", "title": "" }, { "docid": "ea4164e2469c7ffa7aba1a7fb1065896", "score": "0.75864834", "text": "private void setAddress() {\n Object address = mapping.get(ADDRESS_DISPLAY_NAME);\n setTextAt(ADDRESS_DISPLAY_NAME, address.toString(), LineNumber.L3);\n }", "title": "" }, { "docid": "c7984c86cd698138c2c8692fe14eed49", "score": "0.75686914", "text": "private void setAddress(String address) {\n mAddress = address;\n }", "title": "" }, { "docid": "ca5fc9f25e7ad6679a3f684fc52332ae", "score": "0.7538234", "text": "public void setAddress(Address address) {\n if (address!=null) \n this.address = address ;\n }", "title": "" }, { "docid": "24e164bb17e5b0347aeaea740413e9bc", "score": "0.75303584", "text": "public void setAddress(String a)\n {\n address = a;\n }", "title": "" }, { "docid": "cb2c19765ccb5881f7c28b44c836eb08", "score": "0.75231504", "text": "public void setAddress() {\n\t\tSystem.out.println(\"Enter address:\");\n\t\taddress = au.readString();\n\t}", "title": "" }, { "docid": "991f6026f7b89c628003820f8226aa77", "score": "0.75198144", "text": "public void setAddress(String s) {address = s; }", "title": "" }, { "docid": "1fcfe241a607717b08d5f7a381c594eb", "score": "0.750471", "text": "public void setAddress(java.lang.String address)\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(ADDRESS$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }", "title": "" }, { "docid": "1b46475b320345e3b3ad0df3124e30d4", "score": "0.74608135", "text": "public void setAddress(AddressType param){\n \n this.localAddress=param;\n \n\n }", "title": "" }, { "docid": "1b46475b320345e3b3ad0df3124e30d4", "score": "0.74608135", "text": "public void setAddress(AddressType param){\n \n this.localAddress=param;\n \n\n }", "title": "" }, { "docid": "61f7321670b07f4b4ceeecbb8042a943", "score": "0.74327636", "text": "public void setAddress(Address address) {\r\n\t\tthis.address = address;\r\n\t}", "title": "" }, { "docid": "096556701a6036a6b163f0513ab26d4a", "score": "0.7411299", "text": "public void setAddress(Address address) {\n this.address = address;\n }", "title": "" }, { "docid": "7104cb2bf54e5a900c5a00647530fcfc", "score": "0.74046725", "text": "public void setAddress(Address address)\n\t{\n\t\tthis.address = address;\n\t}", "title": "" }, { "docid": "5b22013f9cfeada27c1935a092389a97", "score": "0.73854023", "text": "public void setAddress(String address) {this.address = address;}", "title": "" }, { "docid": "579c8c0f359bd72c60a70d62a7e996de", "score": "0.7381705", "text": "public void setAddress(String sAddress)\n {\n m_sAddress = sAddress;\n }", "title": "" }, { "docid": "5782929f15bd8cc4f39e1a6ed9953d9b", "score": "0.7353577", "text": "public void setAddress(String value) {\n address = value;\n }", "title": "" }, { "docid": "c9c9840a172720e11c9a0cec9a8a82fb", "score": "0.7345992", "text": "public static void setAddressLocation( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ADDRESSLOCATION, value);\r\n\t}", "title": "" }, { "docid": "2fe7c2370c2f36dea3b9c08d788fa90d", "score": "0.7341385", "text": "int setAddress(int address);", "title": "" }, { "docid": "bb17022ec9f2a19c22d0ac8d655b7858", "score": "0.73175395", "text": "@Override\n\tpublic void setAddress(String address) {\n\t\t\n\t}", "title": "" }, { "docid": "92dae97fad758dcf32675e30cc2cf1f4", "score": "0.72995263", "text": "@Override\r\n public void setAddress(String address) {\n super.setAddress(address);\r\n }", "title": "" }, { "docid": "b9f5f3667318d996b7a2343d8c356c02", "score": "0.7281858", "text": "public void setAddress(String temp) { address = temp; }", "title": "" }, { "docid": "2ab6441860d8eece2d9e652cf5e4bfae", "score": "0.7225863", "text": "public void setAddress(Address address) {\n\t\tthis.address = address;\n\t}", "title": "" }, { "docid": "2776a41805723ecdfa24a36c9634b16b", "score": "0.72254974", "text": "void setLocation(String location);", "title": "" }, { "docid": "2776a41805723ecdfa24a36c9634b16b", "score": "0.72254974", "text": "void setLocation(String location);", "title": "" }, { "docid": "2776a41805723ecdfa24a36c9634b16b", "score": "0.72254974", "text": "void setLocation(String location);", "title": "" }, { "docid": "15c510c70a49dcc2ab4940903054d9bd", "score": "0.72144717", "text": "public void setAddress(String address)\n {\n put(\"Address\", address);\n }", "title": "" }, { "docid": "a5770f9681ed34763e99a724de55ca7b", "score": "0.7213217", "text": "public void setAddress(String address)\n/* */ {\n/* 473 */ this.address = address;\n/* */ }", "title": "" }, { "docid": "8ae622bbfe64553266208d92812a297b", "score": "0.72117126", "text": "public void xsetAddress(org.apache.xmlbeans.XmlString address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADDRESS$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ADDRESS$2);\n }\n target.set(address);\n }\n }", "title": "" }, { "docid": "fc3c81bba294ec1a84be7d767818d14b", "score": "0.7208072", "text": "public void setAddress(String address)\r\n\t{\r\n\t\tthis.address = address;\r\n\t}", "title": "" }, { "docid": "ae9c365a18cc3d3cde2157fdc4549adc", "score": "0.719341", "text": "public void setLocation(Location loc){\n \tif(loc.getLatitude() != 0.0 && loc.getLongitude() != 0.0){\n \t\ttry{\n \t\t\tGeocoder geocoder = new Geocoder(this, Locale.getDefault());\n \t\t\tList<Address> list = geocoder.getFromLocation(loc.getLatitude(), loc.getLongitude(), 1);\n \t\t\tif(!list.isEmpty()){\n \t\t\t\tAddress address = list.get(0);\n \t\t\t\tToast.makeText(getBaseContext(), \"Mi direccion es: \"+address.getAddressLine(0), Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}catch(IOException e){\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n }", "title": "" }, { "docid": "b542821f4b3b75b47a93c7c93fa725aa", "score": "0.7169901", "text": "void setStreetAddress() {\n this.streetAddress = \"Komsomolskya\";\n }", "title": "" }, { "docid": "0092bb23c379b9c7ddc1fd2c58a6f90d", "score": "0.71629906", "text": "public void setAddress(String address){\n this.address = address;\n }", "title": "" }, { "docid": "4a437951a4543de48f21e5566abdc751", "score": "0.7116447", "text": "public void setAddress(String address) {\n\n this.address = address;\n }", "title": "" }, { "docid": "9288e700e251100ab2e0e20bc8bc1f3c", "score": "0.7083934", "text": "public void setAddress(String address) {\r\n this.address = address;\r\n }", "title": "" }, { "docid": "9288e700e251100ab2e0e20bc8bc1f3c", "score": "0.7083934", "text": "public void setAddress(String address) {\r\n this.address = address;\r\n }", "title": "" }, { "docid": "9288e700e251100ab2e0e20bc8bc1f3c", "score": "0.7083934", "text": "public void setAddress(String address) {\r\n this.address = address;\r\n }", "title": "" }, { "docid": "9288e700e251100ab2e0e20bc8bc1f3c", "score": "0.7083934", "text": "public void setAddress(String address) {\r\n this.address = address;\r\n }", "title": "" }, { "docid": "9288e700e251100ab2e0e20bc8bc1f3c", "score": "0.7083934", "text": "public void setAddress(String address) {\r\n this.address = address;\r\n }", "title": "" }, { "docid": "bc5f31b6af2d68cf1dceda8bfd44e0aa", "score": "0.7041845", "text": "public void setAddress(String value) {\n\t\tthis.address = value;\n\t}", "title": "" }, { "docid": "b646386c165b1fd534b62c042d939f81", "score": "0.7026799", "text": "void setLocation(final Location location);", "title": "" }, { "docid": "123d431ea85ef57390abea2e601ec2c1", "score": "0.7021536", "text": "public void setAddress(com.avalara.avatax.services.address.Address address) {\n this.address = address;\n }", "title": "" }, { "docid": "3fa8092811a3a2ee666b523e2c6ed8a2", "score": "0.7014812", "text": "public void setAddress(String address) {\r\n if (address != null) {\r\n this.address = address;\r\n }\r\n }", "title": "" }, { "docid": "4313384847ea537bc5d37bfb6e589e4b", "score": "0.70078653", "text": "public void setAddress( String address ) {\n this.address = address;\n }", "title": "" }, { "docid": "ba498c4f6953f9b39c73ca79f481a019", "score": "0.69946265", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3192c749852d78ce8398c5a11832b9c8", "score": "0.6986657", "text": "public void setAddress(String address)\n\t{\n\t\tthis.address = address;\n\t}", "title": "" }, { "docid": "3192c749852d78ce8398c5a11832b9c8", "score": "0.6986657", "text": "public void setAddress(String address)\n\t{\n\t\tthis.address = address;\n\t}", "title": "" }, { "docid": "bfb8fa077a89d04d9b8c94467efcab8c", "score": "0.6957173", "text": "public void setAddress(InetAddress value) {\n \t_address = value;\n }", "title": "" }, { "docid": "3011114af71ad8e2bec9dac27a89f7fa", "score": "0.6943855", "text": "public void setAddress (java.lang.String address) {\r\n\t\tthis.address = address;\r\n\t}", "title": "" }, { "docid": "16aa121a823cf7ebb36e9c047b1433fa", "score": "0.6941103", "text": "public void setLocation(HexLocation location) {\n\t\tthis.location = location;\n\t}", "title": "" }, { "docid": "dcab940e3d274213e2392b4f30768ff1", "score": "0.69352347", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "91fc65bae9411783e005df4aab2a9605", "score": "0.69339484", "text": "public void setAddress(String address) {\n this.address = address;\n }", "title": "" }, { "docid": "5923001be93035b8d713e556b15e0843", "score": "0.69283366", "text": "public void setAddress(String address) {\r\n\t\tthis.address = address;\r\n\t}", "title": "" }, { "docid": "5923001be93035b8d713e556b15e0843", "score": "0.69283366", "text": "public void setAddress(String address) {\r\n\t\tthis.address = address;\r\n\t}", "title": "" }, { "docid": "3613699a03d880ac79290a4b911fe552", "score": "0.6918766", "text": "public void setAdress(String newAddress){\n\t\tthis.address = newAddress;\n\t}", "title": "" }, { "docid": "6637664906c61aa847a936f53a60b2c7", "score": "0.69127995", "text": "public void setLocation(Location location)\n {\n this.location = location;\n }", "title": "" }, { "docid": "f1a71c900ad9beb7c480f637beb8c4d9", "score": "0.6887057", "text": "public void setToAddress(java.lang.String toAddress)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOADDRESS$10, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOADDRESS$10);\r\n }\r\n target.setStringValue(toAddress);\r\n }\r\n }", "title": "" }, { "docid": "d1f3d45edf60ab5a7edef639ba672d42", "score": "0.6864241", "text": "public void setAddress(int address)\n\t{\n\t\tthis.address = address;\n\t}", "title": "" }, { "docid": "5f9b4f438f3296dea136e45cb8cb52fc", "score": "0.6852002", "text": "public void updateAddress(Address address);", "title": "" }, { "docid": "c022f53e974c311dc0e6f382b401c067", "score": "0.6851112", "text": "public void setSetAddr(String setAddr) {\r\n this.setAddr = setAddr;\r\n }", "title": "" }, { "docid": "245d5098d024d90b75058073f61d5a86", "score": "0.68343854", "text": "void setLocation(Location location){\n this.location = location; \n }", "title": "" }, { "docid": "9f0cabfc61d2440f971008e423f7a170", "score": "0.6821536", "text": "public void setLocation(String loc)\n {\n location=loc;\n }", "title": "" }, { "docid": "1fca0505c6cba181a9f745c7917891ed", "score": "0.6815046", "text": "public void setAddress(String value) {\n setAttributeInternal(ADDRESS, value);\n }", "title": "" }, { "docid": "1fca0505c6cba181a9f745c7917891ed", "score": "0.6815046", "text": "public void setAddress(String value) {\n setAttributeInternal(ADDRESS, value);\n }", "title": "" }, { "docid": "1fca0505c6cba181a9f745c7917891ed", "score": "0.6815046", "text": "public void setAddress(String value) {\n setAttributeInternal(ADDRESS, value);\n }", "title": "" }, { "docid": "d298ae9b85b1836d5f0f741142c460cf", "score": "0.680398", "text": "@Override\n\tpublic void setLocation(Location location) {\n\t\t\n\t}", "title": "" }, { "docid": "6f67cfdc8d093af75692e14be9148a31", "score": "0.67985815", "text": "public void setFromAddress(java.lang.String fromAddress)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMADDRESS$8, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FROMADDRESS$8);\r\n }\r\n target.setStringValue(fromAddress);\r\n }\r\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "678f72172edc6fac1fdb6d86fa118984", "score": "0.67954683", "text": "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bb273039c7fc1a67c8fab3de6a16d537", "score": "0.678689", "text": "public static void origin(int addr)\r\n {\r\n startAddress = addr;\r\n }", "title": "" }, { "docid": "2ce8dfb0dca7b6d0d63f4387e69328d3", "score": "0.67725015", "text": "private void setAddress(String street, String city, String code) {\n \n streetAddress = street;\n cityAddress = city; \n zipOrPostalCode = code;\n }", "title": "" }, { "docid": "37fa2189031e8ac02753d56cc79c1956", "score": "0.67624617", "text": "public void setLocation(Location location) {\n this.location = location;\n }", "title": "" } ]
88fad6e9209bb6bc8249d2df8e474955
Methode om de orintatie van een robot te wijzigen.
[ { "docid": "9ad7fde84364c79c0d19901affe4b8b0", "score": "0.0", "text": "private void setOrientation(Orientation or) {\r\n \t\tthis.orientation = or;\r\n \t}", "title": "" } ]
[ { "docid": "93243357319d0994fdc2daf3ad2314db", "score": "0.73080605", "text": "public IRobot getRobot();", "title": "" }, { "docid": "0363ee165ff28ef886f544240fb7452b", "score": "0.7265158", "text": "public RecibiendoUnaOrden(Robot robot){\n this.robot = robot;\n }", "title": "" }, { "docid": "4110dac58629f9e1df2ab5753b1ffe6f", "score": "0.67220175", "text": "public Robot getRobot(){\n\t\treturn this.robot;\n\t}", "title": "" }, { "docid": "2b73ba52761e9516eb338097243502c0", "score": "0.66380274", "text": "public void robotInit() {\r\n RobotMap.init();\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n \t\tdrive = new Drive();\r\n// \t\tdrive = new FakeDrive();\r\n shooter = new Shooter();\r\n harvester = new Harvester();\r\n gearplacer = new Gearplacer();\r\n climber = new Climber();\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n // OI must be constructed after subsystems. If the OI creates Commands\r\n //(which it very likely will), subsystems are not guaranteed to be\r\n // constructed yet. Thus, their requires() statements may grab null\r\n // pointers. Bad news. Don't move it.\r\n oi = new OI();\r\n\r\n // instantiate the command used for the autonomous period\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\r\n\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\r\n \r\n\r\n //CameraServer.getInstance().startAutomaticCapture();\r\n camera_invalid_targets = new DigitalInput(2);\r\n camera_turn_left = new DigitalInput(3);\r\n camera_centered = new DigitalInput(4);\r\n camera_turn_right = new DigitalInput(5);\r\n }", "title": "" }, { "docid": "8b4ab63ebb85ce849e7791c944cbbd8e", "score": "0.66123813", "text": "public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n \t\n \t//elevator stick\n elevatorStick = new Joystick(1);\n \n /**\n X: Lift/Climb\n A: Bypass upper limit switch\n Left joystick: control elevator\n **/\n \n //resetButton = new JoystickButton(elevatorStick, 1);\n //resetButton.whileHeld(new resetRobot());\n //clawStopButton = new JoystickButton(elevatorStick, 8);\n //clawStopButton.whenPressed(new clawStop());\n clawCloseButton = new JoystickButton(elevatorStick, 6);\n clawCloseButton.whileHeld(new clawClose());\n clawOpenButton = new JoystickButton(elevatorStick, 5);\n clawOpenButton.whenPressed(new clawOpen());\n \n //drive stick\n driveStick = new Joystick(0);\n \n /**\n Y: enable ramp drive\n B: enable lowgear drive\n left joystick: Drive\n **/\n \n //driveautoFWD = new JoystickButton(driveStick, 5);\n //driveautoFWD.whenPressed(new driveFWD(0, 0));\n\n\n // SmartDashboard Buttons\n// SmartDashboard.putData(\"driveManual\", new driveManual());\n// SmartDashboard.putData(\"setRampSpeed: rampSpeed1\", new setRampSpeed(1));\n// SmartDashboard.putData(\"setRampSpeed: rampSpeed2\", new setRampSpeed(2));\n// SmartDashboard.putData(\"setRampSpeed: rampSpeed0_5\", new setRampSpeed(0.5));\n// SmartDashboard.putData(\"setRampSpeed: rampSpeed0_75\", new setRampSpeed(.75));\n// SmartDashboard.putData(\"clawOpen\", new clawOpen());\n// SmartDashboard.putData(\"clawClose\", new clawClose());\n// SmartDashboard.putData(\"clawStop\", new clawStop());\n// SmartDashboard.putData(\"elevatorManual\", new elevatorManual());\n// SmartDashboard.putData(\"driveRotate: One\", new driveRotate(0.5, 1.0));\n// SmartDashboard.putData(\"driveRotate: Two\", new driveRotate(0.5, 2.0));\n// SmartDashboard.putData(\"driveRotate: Three\", new driveRotate(0.5, 3.0));\n// SmartDashboard.putData(\"driveRotate: Four\", new driveRotate(-0.5, 1.0));\n// SmartDashboard.putData(\"driveRotate: Five\", new driveRotate(-0.5, 2.0));\n// SmartDashboard.putData(\"driveRotate: Six\", new driveRotate(-0.5, 3.0));\n// SmartDashboard.putData(\"driveRotate: Seven\", new driveRotate(0.75, 1.0));\n// SmartDashboard.putData(\"driveRotate: Eight\", new driveRotate(1.0, 1.0));\n// SmartDashboard.putData(\"driveFWD: One\", new driveFWD(0.5, 1.0));\n// SmartDashboard.putData(\"driveFWD: Two\", new driveFWD(0.5, 2.0));\n// SmartDashboard.putData(\"driveFWD: Three\", new driveFWD(0.5, 3.0));\n// SmartDashboard.putData(\"driveFWD: Four\", new driveFWD(.75, 1.0));\n// SmartDashboard.putData(\"driveFWD: Five\", new driveFWD(1.0, 1.0));\n// SmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\n// SmartDashboard.putData(\"driveAutonomous: default\", new driveAutonomous(0, 0, 0));\n// SmartDashboard.putData(\"autoLeft\", new autoLeft());\n// SmartDashboard.putData(\"autoCenter\", new autoCenter());\n// SmartDashboard.putData(\"autoRight\", new autoRight());\n// SmartDashboard.putData(\"resetRobot\", new resetRobot());\n// SmartDashboard.putData(\"defaultClaw\", new defaultClaw());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n }", "title": "" }, { "docid": "805e5aad4145cd9a34337398d6347013", "score": "0.6567571", "text": "public OperatorControlCondition(RobotBase robot){\n this.robot = robot;\n }", "title": "" }, { "docid": "cab483b5e1fa607be5bb490339a42447", "score": "0.6513566", "text": "@Override\n public void robotInit() {\n\n }", "title": "" }, { "docid": "3278fe1965f8977564f4568317f0fefa", "score": "0.64892614", "text": "public void recibirOrden(){\n System.out.println(\"El robot ya esta recibiendo una orden.\");\n System.out.println(\"Termine de recibir la orden\");\n System.out.println(\"Comenzare a caminar\");\n robot.asignarNuevoEstado(robot.getEstadoCaminar());\n }", "title": "" }, { "docid": "f0cc6eec56fe043fad94b2b5fd70be8e", "score": "0.6470586", "text": "@Override\n public void robotInit() {\n }", "title": "" }, { "docid": "f0cc6eec56fe043fad94b2b5fd70be8e", "score": "0.6470586", "text": "@Override\n public void robotInit() {\n }", "title": "" }, { "docid": "f96cb644cbe4092e0ff831bfe003f474", "score": "0.64640266", "text": "public void robotInit() {\r\n RobotMap.init();\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n drive = new Drive();\r\n shoulder = new Shoulder();\r\n roller = new Roller();\r\n shooter = new Shooter();\r\n transmission = new Transmission();\r\n timing = new Timing();\r\n vision = new Vision();\r\n ballManipulator = new BallManipulator();\r\n ballHolder = new BallHolder();\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n // This MUST be here. If the OI creates Commands (which it very likely\r\n // will), constructing it during the construction of CommandBase (from\r\n // which commands extend), subsystems are not guaranteed to be\r\n // yet. Thus, their requires() statements may grab null pointers. Bad\r\n // news. Don't move it.\r\n oi = new OI();\r\n // instantiate the command used for the autonomous period\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\r\n autonomousCommand = new PerformAutonomous();\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\r\n timing.setAutonomousLength(10);\r\n prefs = Preferences.getInstance();\r\n vision.initHotValues();\r\n }", "title": "" }, { "docid": "9c63fa7bd22b07c423786def42c67094", "score": "0.6462211", "text": "@Override\n public void robotInit() {\n RobotMap.init();\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n chassis = new Chassis();\n chassisSensors = new ChassisSensors();\n climbArm = new ClimbArm();\n endArm = new EndArm();\n lowerArm = new LowerArm();\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS \n ledControl = new LEDControl();\n midArm = new MidArm();\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n \n DS = DriverStation.getInstance();\n \n \t//Setup Camera\n \tfrontCameraServer = CameraServer.getInstance().startAutomaticCapture();\n \tfrontCameraServer.setResolution(640, 360);\n \t\n \trearCameraServer = CameraServer.getInstance().startAutomaticCapture();\n \trearCameraServer.setResolution(640, 360);\n \t\n \t//Setup roboPrefs\n \trobotPrefs = Preferences.getInstance();\n \n // Add commands to Autonomous Sendable Chooser\n chooser.addDefault(\"Do Nothing\", \"Do Nothing\");\n chooser.addObject(\"Drive Forward\", \"Drive Forward\");\n chooser.addObject(\"Drive Backward\", \"Drive Backward\");\n chooser.addObject(\"Cross Line Outside\", \"Cross Line Outside\"); \n chooser.addObject(\"Cross Line Center\", \"Cross Line Center\");\n chooser.addObject(\"Score on Near Switch\", \"Score on Near Switch\");\n SmartDashboard.putData(\"Auto mode\", chooser);\n }", "title": "" }, { "docid": "4fa33e605fb82fe3c0a0d096613efe4c", "score": "0.64339006", "text": "public RobotPositionController(OdometryRobot robot) {\n this.robot = robot;\n }", "title": "" }, { "docid": "fab4ea2c44b9e6c02cf55885e25a5047", "score": "0.6412942", "text": "public void autonomous() {\n myRobotControl.autonomous();\n }", "title": "" }, { "docid": "e5d703a4a92ab06341ba8b6c94a10112", "score": "0.63763815", "text": "public void robotInit() {\n\t\tdrivetrain = new Drivetrain(\n\t\t\t\tnew DoubleSpeedcontroller(new CANTalon(RobotMap.CAN.DRIVE_LEFT_1),\n\t\t\t\t\t\tnew CANTalon(RobotMap.CAN.DRIVE_LEFT_2)),\n\t\t\t\tnew DoubleSpeedcontroller(new CANTalon(RobotMap.CAN.DRIVE_RIGHT_1),\n\t\t\t\t\t\tnew CANTalon(RobotMap.CAN.DRIVE_RIGHT_2)),\n\t\t\t\tnew Encoder(RobotMap.DIO.DRIVE_LEFT_ENCODER_A, RobotMap.DIO.DRIVE_LEFT_ENCODER_B),\n\t\t\t\tnew Encoder(RobotMap.DIO.DRIVE_RIGHT_ENCODER_A, RobotMap.DIO.DRIVE_RIGHT_ENCODER_B));\n\t\tballBlocker = new BallBlocker(new VictorSP(RobotMap.PWM.BALL_BLOCKER),\n\t\t\t\tnew DigitalInput(RobotMap.DIO.BALL_BLOCKER_DOWN), new DigitalInput(RobotMap.DIO.BALL_BLOCKER_UP));\n\t\tclimber = new Climber(new CANTalon(RobotMap.CAN.CLIMBER));\n\t\tfeeder = new Feeder(new VictorSP(RobotMap.PWM.FEEDER), new VictorSP(RobotMap.PWM.BLENDER));\n\t\tgearDropper = new GearDropper(new VictorSP(RobotMap.PWM.GEAR_DROPPER),\n\t\t\t\tnew DigitalInput(RobotMap.DIO.GEAR_DROPPER_OPEN), new DigitalInput(RobotMap.DIO.GEAR_DROPPER_CLOSE));\n\t\tpicker = new Picker(new VictorSP(RobotMap.PWM.PICKER));\n\t\tshooter = new Shooter(new CANTalon(RobotMap.CAN.SHOOTER),\n\t\t\t\tnew Encoder(RobotMap.DIO.SHOOTER_ENCODER_A, RobotMap.DIO.SHOOTER_ENCODER_B));\n\t\toi = new OI();\n\n\t}", "title": "" }, { "docid": "800207d4f9350e4a25ff4b81bc513a40", "score": "0.6364135", "text": "fr.upem.robot.Position robotPosition();", "title": "" }, { "docid": "2104429f8e33eb7a1dbdc135c8bcdbf2", "score": "0.6321995", "text": "@Override\n\t\t\tpublic void rutaRobot(Integer v, Laberinto lab) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2104429f8e33eb7a1dbdc135c8bcdbf2", "score": "0.6321995", "text": "@Override\n\t\t\tpublic void rutaRobot(Integer v, Laberinto lab) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6862f8f9e10e49f91c53ac54e76b8ad6", "score": "0.63025016", "text": "public void execute(Robot robot) {\n }", "title": "" }, { "docid": "3adc776537589160a109055ed50b9099", "score": "0.6296707", "text": "public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n driverJoy = new Joystick(1);\n \n manualClimb = new JoystickButton(driverJoy, 2);\n manualClimb.whenPressed(new StartWinch());\n\n manipJoy = new Joystick(0);\n \n manipButtonBack = new JoystickButton(manipJoy, 7);\n manipButtonBack.whenPressed(new OutputReverse());\n manipButtonStart = new JoystickButton(manipJoy, 8);\n manipButtonStart.whenPressed(new IntakeReverse());\n manipYButton = new JoystickButton(manipJoy, 4);\n manipYButton.whenPressed(new OutputToggle());\n manipBButton = new JoystickButton(manipJoy, 2);\n manipBButton.whenPressed(new GearToggle());\n manipAButton = new JoystickButton(manipJoy, 1);\n manipAButton.whenPressed(new IntakeToggle());\n\n // SmartDashboard Buttons\n SmartDashboard.putData(\"Gear Open\", new GearOpen());\n SmartDashboard.putData(\"Gear Close\", new GearClose());\n SmartDashboard.putData(\"Intake Start\", new IntakeStart());\n SmartDashboard.putData(\"Intake Stop\", new IntakeStop());\n SmartDashboard.putData(\"Intake Reverse\", new IntakeReverse());\n SmartDashboard.putData(\"Output Start\", new OutputStart());\n SmartDashboard.putData(\"Output Stop\", new OutputStop());\n SmartDashboard.putData(\"Output Reverse\", new OutputReverse());\n SmartDashboard.putData(\"Start Winch\", new StartWinch());\n SmartDashboard.putData(\"Stop Winch\", new StopWinch());\n SmartDashboard.putData(\"Drive To Angle: targetAngle\", new DriveToAngle(0));\n SmartDashboard.putData(\"TurnToGearReloadAngle\", new TurnToGearReloadAngle());\n SmartDashboard.putData(\"Auton Center Peg\", new AutonCenterPeg());\n SmartDashboard.putData(\"Auton Cross Line\", new AutonCrossLine());\n SmartDashboard.putData(\"Auton Left Side Peg\", new AutonLeftPeg());\n SmartDashboard.putData(\"Auton Right Side Peg\", new AutonRightPeg());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n manipButtonBack.whenReleased(new OutputStop());\n manipButtonStart.whenReleased(new IntakeStop());\n manualClimb.whenReleased(new StopWinch());\n SmartDashboard.putData(\"PrintPrefs\", new PrintPrefs());\n }", "title": "" }, { "docid": "42e99e0f58d57bc0f1b52473cd8c5b13", "score": "0.6259047", "text": "public static void init() {\n driveBaseLeftMotors = new Talon(0);\r\n LiveWindow.addActuator(\"DriveBase\", \"Left Motors\", (Talon) driveBaseLeftMotors);\r\n \r\n driveBaseRightMotors = new Talon(1);\r\n LiveWindow.addActuator(\"DriveBase\", \"Right Motors\", (Talon) driveBaseRightMotors);\r\n \r\n driveBaseRobotDrive = new RobotDrive(driveBaseLeftMotors, driveBaseRightMotors);\r\n \r\n driveBaseRobotDrive.setSafetyEnabled(true);\r\n driveBaseRobotDrive.setExpiration(0.1);\r\n driveBaseRobotDrive.setSensitivity(0.5);\r\n driveBaseRobotDrive.setMaxOutput(1.0);\r\n driveBaseRobotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\r\n driveBaseRobotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, true); \r\n\r\n driveBaseMainGyro = new Gyro(0);\r\n LiveWindow.addSensor(\"DriveBase\", \"Main Gyro\", driveBaseMainGyro);\r\n driveBaseMainGyro.setSensitivity(0.007);\r\n driveBaseMainUltrasonicSensor = new AnalogInput(1);\r\n LiveWindow.addSensor(\"DriveBase\", \"Main Ultrasonic Sensor\", driveBaseMainUltrasonicSensor);\r\n \r\n toteLiftToteLift = new Talon(2);\r\n LiveWindow.addActuator(\"Tote Lift\", \"Tote Lift\", (Talon) toteLiftToteLift);\r\n \r\n toteLiftToteBottom = new DigitalInput(0);\r\n LiveWindow.addSensor(\"Tote Lift\", \"Tote Bottom\", toteLiftToteBottom);\r\n \r\n toteLiftMainCompressor = new Compressor(0);\r\n \r\n \r\n toteLiftToteLevelerPiston = new DoubleSolenoid(0, 0, 1); \r\n LiveWindow.addActuator(\"Tote Lift\", \"Tote Leveler Piston\", toteLiftToteLevelerPiston);\r\n \r\n weightLiftWeightLift = new Talon(3);\r\n LiveWindow.addActuator(\"Weight Lift\", \"Weight Lift\", (Talon) weightLiftWeightLift);\r\n \r\n weightLiftWeightBottom = new DigitalInput(1);\r\n LiveWindow.addSensor(\"Weight Lift\", \"Weight Bottom\", weightLiftWeightBottom);\r\n \r\n cameraRingLight = new Relay(0);\r\n LiveWindow.addActuator(\"Camera\", \"Ring Light\", cameraRingLight);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n \r\n driveBaseMainAccelerometer = new BuiltInAccelerometer();\r\n LiveWindow.addSensor(\"DriveBase\", \"Main Gyro\", driveBaseMainAccelerometer);\r\n }", "title": "" }, { "docid": "e1dd84964eb8c9f34676c0c9972eeef3", "score": "0.6252058", "text": "public void robotInit() {\r\n preferences = Preferences.getInstance();\r\n rioName = preferences.getString(\"rioName\", null);\r\n\r\n logger = EventLogging.getLogger(Robot.class, Level.INFO);\r\n\r\n logger.info(\"Starting robotInit: name '{}', MAC address is {}\", rioName,\r\n getMACAddresses());\r\n\r\n canDeviceFinder = new CANDeviceFinder();\r\n logger.info(\"CAN devices = {}\", canDeviceFinder.deviceList.toString());\r\n \r\n driverStation = DriverStation.getInstance();\r\n\r\n RobotMap.init();\r\n\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n driveSubsystem = new DriveSubsystem();\r\n shooterSubsystem = new ShooterSubsystem();\r\n armSubsystem = new ArmSubsystem();\r\n intakeSubsystem = new IntakeSubsystem();\r\n dummySubsystem = new DummySubsystem();\r\n lightSubsystem = new LightSubsystem();\r\n\t\tliftSubsystem = new LiftSubsystem();\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n // OI must be constructed after subsystems. If the OI creates Commands\r\n // (which it very likely will), subsystems are not guaranteed to be\r\n // constructed yet. Thus, their requires() statements may grab null\r\n // pointers. Bad news. Don't move it.\r\n oi = new OI();\r\n\r\n // instantiate the command used for the autonomous period\r\n\r\n powerDistributionPanel = new PowerDistributionPanel();\r\n\r\n loadAutoChooser();\r\n SmartDashboard.putData(\"Autonomous mode chooser\", autoChooser);\r\n\r\n // start the thingy that keeps the operator console and the chooser in\r\n // sync\r\n new ControlPanelWatcher();\r\n\r\n robotDataLogger = new DataLogger();\r\n robotDataLogger.setInterval(1.000);\r\n robotDataLogger.setDataProvider(new RobotDataLoggerDataProvider());\r\n robotDataLogger.start();\r\n }", "title": "" }, { "docid": "88437fcafd9bf3ae008a256589e92405", "score": "0.62414974", "text": "@Override\r\n public void robotInit() {\r\n RobotMap.init();\r\n \r\n driveTrain = new DriveTrain();\r\n// EasyPathConfig config = new EasyPathConfig(\r\n// driveTrain, // the subsystem itself\r\n// driveTrain::tank, // function to set left/right speeds\r\n// // function to give EasyPath the length driven\r\n// () -> PathUtil.defaultLengthDrivenEstimator(driveTrain::getLeftPositionInch, driveTrain::getRightPositionInch),\r\n// driveTrain::getHeading, // function to give EasyPath the heading of your robot\r\n// driveTrain::zeroSensors, // function to reset your encoders to 0\r\n// 0.07 // kP value for P loop\r\n// );\r\n EasyPathConfig config = new EasyPathConfig(\r\n driveTrain, // the subsystem itself\r\n driveTrain::tankEasyDrive, // function to set left/right speeds\r\n // function to give EasyPath the length driven\r\n //driveTrain::getRightPositionInch,\r\n () -> PathUtil.defaultLengthDrivenEstimator(driveTrain::getLeftPositionInch, driveTrain::getRightPositionInch),\r\n driveTrain::getAngle, // function to give EasyPath the heading of your robot\r\n driveTrain::zeroSensors, // function to reset your encoders to 0\r\n 0.09 // kP value for P loop\r\n );\r\n \r\n \r\n \r\n \r\n \r\n // OPTIONAL\r\n // If your robot is turning or driving the wrong directions, try one or both of these:\r\n config.setSwapDrivingDirection(false); //false \r\n config.setSwapTurningDirection(false); //false\r\n \r\n \r\n // Now, give EasyPath your configuration and you are all set\r\n EasyPath.configure(config);\r\n \r\n // OI must be constructed after subsystems. If the OI creates Commands\r\n //(which it very likely will), subsystems are not guaranteed to be\r\n // constructed yet. Thus, their requires() statements may grab null\r\n // pointers. Bad news. Don't move it.\r\n oi = new OI();\r\n\r\n // Add commands to Autonomous Sendable Chooser\r\n \r\n\r\n chooser.addDefault(\"Autonomous Command\", new AutonomousCommand());\r\n\r\n \r\n SmartDashboard.putData(\"Auto mode\", chooser);\r\n SmartDashboard.putNumber(\"Turn Angle Setpoint\", 15.0);\r\n SmartDashboard.putNumber(\"PixyCenter\", 1.7);\r\n SmartDashboard.putNumber(\"Turn P\", 0.019);\r\n SmartDashboard.putNumber(\"Turn I\", 0);\r\n SmartDashboard.putNumber(\"Turn D\", 0.035);\r\n SmartDashboard.putNumber(\"Time\", 3.0);\r\n\t SmartDashboard.putNumber(\"Power\", 0.5);\r\n\t SmartDashboard.putNumber(\"kP\", 0.1);\r\n\t \r\n\t SmartDashboard.putNumber(\"Distance Setpoint\", 5000);\r\n\t SmartDashboard.putNumber(\"Distance P\", 3.0e-4);\r\n\t SmartDashboard.putNumber(\"Distance I\", 0);\r\n\t SmartDashboard.putNumber(\"Distance D\", 0.001);\r\n\t \r\n\t \tSmartDashboard.putNumber(\"Heading\", 0);\r\n\t \tSmartDashboard.putNumber(\"Angle\", Robot.driveTrain.getAngle());\r\n\t \tSmartDashboard.putNumber(\"Distance Setpoint\", 0);\r\n\t \tSmartDashboard.putNumber(\"Distance Error\", 0);\r\n\t \tSmartDashboard.putBoolean(\"Distance PID is On Target\", false);\r\n\t \tSmartDashboard.putBoolean(\"Distance PID is Executing\", false);\r\n\t \tSmartDashboard.putNumber(\"Encoder Value\", 0);\r\n\t \t\r\n\t \tSmartDashboard.putNumber(\"Left Encoder Distance, in\", Robot.driveTrain.getLeftPositionInch());\r\n\t \tSmartDashboard.putNumber(\"Right Encoder Distance, in\", Robot.driveTrain.getRightPositionInch());\r\n\t \r\n\t \tSmartDashboard.putNumber(\"Left Encoder Clicks\", Robot.driveTrain.getLeftPosition());\r\n\t \tSmartDashboard.putNumber(\"Right Encoder Clicks\", Robot.driveTrain.getRightPosition());\r\n\t SmartDashboard.putNumber(\"Angle\", Robot.driveTrain.getAngle()); \t \r\n \r\n }", "title": "" }, { "docid": "66bc61bc7a6c912a3a78785e46e23f57", "score": "0.6239279", "text": "@Override\r\n\tpublic void robotInit() {\r\n\t\t\r\n\t\tm_drivetrain = new DriveTrain();\r\n\t\tm_arm = new Arm();\r\n\t\tm_climber = new Climber();\r\n\t\tm_OI = new OI();\r\n\t\tSmartDashboard.putData(m_drivetrain);\r\n\t\t\r\n\t\tSmartDashboard.putNumber(\"accle Pow\", 3);\r\n\t\tSmartDashboard.putNumber(\"rotate Pow\", 3);\r\n\r\n\t\tstartChooser.addDefault(\"Left\", Auton.Position.LEFT);\r\n\t\tstartChooser.addObject(\"Middle\", Auton.Position.MIDDLE);\r\n\t\tstartChooser.addObject(\"Right\", Auton.Position.RIGHT);\r\n\t\t\r\n\t\tm_autonomousCommand = new Autonomous();\r\n\t\t\r\n// UsbCamera camera = new UsbCamera(\"cam0\",0);\r\n// camera.setFPS(15);\r\n// camera.setResolution(320, 240); //320 = width, 240 = height\r\n// CameraServer.getInstance().startAutomaticCapture(camera);\r\n\t}", "title": "" }, { "docid": "80dae98483fd5f9906b7fc2960f91f3f", "score": "0.62020123", "text": "public boolean findRobot();", "title": "" }, { "docid": "74d55428dc6e89135195b0681ef9ab87", "score": "0.62019694", "text": "@Override\n void init(Robot robot) {\n leftWheel = new VictorSPX(Constants.CAN.SHOOT_L);\n rightWheel = new VictorSPX(Constants.CAN.SHOOT_R);\n\n rightWheel.setInverted(true);\n }", "title": "" }, { "docid": "3d8957bd702e2c59e961c2880e3f3cc9", "score": "0.61971205", "text": "private void initOpMode() {\n ElapsedTime timer = new ElapsedTime();\n robot = new Robot(this, timer);\n// robot.init();\n// lrDrive = hardwareMap.dcMotor.get(\"lrDrive\");\n// lfDrive = hardwareMap.dcMotor.get(\"lfDrive\");\n// rrDrive = hardwareMap.dcMotor.get(\"rrDrive\");\n// rfDrive = hardwareMap.dcMotor.get(\"rfDrive\");\n\n //Set directions\n// lrDrive.setDirection(DcMotor.Direction.REVERSE);\n// lfDrive.setDirection(DcMotor.Direction.REVERSE);\n// rrDrive.setDirection(DcMotor.Direction.FORWARD);\n// rfDrive.setDirection(DcMotor.Direction.FORWARD);\n }", "title": "" }, { "docid": "de2cbaa2fb2816c7788f6e84836844f2", "score": "0.6188062", "text": "public static void init() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n driveSystemforPort = new Talon(1, 1);\r\n\tLiveWindow.addActuator(\"driveSystem\", \"forPort\", (Talon) driveSystemforPort);\r\n \r\n driveSystemforAft = new Talon(1, 2);\r\n\tLiveWindow.addActuator(\"driveSystem\", \"forAft\", (Talon) driveSystemforAft);\r\n \r\n driveSystemstarboardFor = new Talon(1, 3);\r\n\tLiveWindow.addActuator(\"driveSystem\", \"starboardFor\", (Talon) driveSystemstarboardFor);\r\n \r\n driveSystemstarboardAft = new Talon(1, 4);\r\n\tLiveWindow.addActuator(\"driveSystem\", \"starboardAft\", (Talon) driveSystemstarboardAft);\r\n \r\n driveSystemmecanumDrive = new RobotDrive(driveSystemforPort, driveSystemforAft,\r\n driveSystemstarboardFor, driveSystemstarboardAft);\r\n\t\r\n driveSystemmecanumDrive.setSafetyEnabled(true);\r\n driveSystemmecanumDrive.setExpiration(0.1);\r\n driveSystemmecanumDrive.setSensitivity(0.5);\r\n driveSystemmecanumDrive.setMaxOutput(1.0);\r\n driveSystemSpeedController1 = new Victor(1, 5);\r\n\tLiveWindow.addActuator(\"driveSystem\", \"Speed Controller 1\", (Victor) driveSystemSpeedController1);\r\n \r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n }", "title": "" }, { "docid": "d48e02c2a9a521b9e49bed01e6e868d4", "score": "0.6180897", "text": "public void controlRobot(IRobot robot) {\n int exits = nonWallExits(robot);\n int direction = IRobot.AHEAD;\n if ((robot.getRuns() == 0) && (pollRun == 0)) {\n robotData = new RobotData(); //reset the data store\n }\n explorerMode = 1; //robot starts in the explorer mode\n if ((exits == 3) && (passageExits(robot) == 2)) {\n robotData.recordJunction(robot);\n robotData.printJunction(robot);\n } \n if ((exits == 4) && (passageExits(robot) == 3)) {\n robotData.recordJunction(robot);\n robotData.printJunction(robot);\n } \n if (passageExits(robot) != 0) {\n direction = exploreControl(robot);\n loop = 0; //restores the loop so it works again\n }\n if (passageExits(robot) == 0){\n direction = backtrackControl(robot);\n loop++; //increments the loop so it can backtrack\n }\n robot.face(direction);\n pollRun++;\n}", "title": "" }, { "docid": "d4320bec77eda4c1fd4b1acd2ec53629", "score": "0.6175264", "text": "@Override\n public void initRobot()\n {\n //\n // Initializing robot objects.\n //\n robot = new Robot(TrcRobot.RunMode.TELEOP_MODE);\n dashboard = robot.dashboard;\n //\n // Initializing Gamepads.\n //\n driverGamepad = new FtcGamepad(\"DriverGamepad\", gamepad1, this);\n operatorGamepad = new FtcGamepad(\"OperatorGamepad\", gamepad2, this);\n driverGamepad.setYInverted(true);\n operatorGamepad.setYInverted(true);\n }", "title": "" }, { "docid": "18fd5eaa38c3cc9945f6d8479d377a6f", "score": "0.61395335", "text": "public void initRobot() {\n Polygon torsoPoly = Polygon.Builder()\n .addVertex(new Point(800, 350))\n .addVertex(new Point(1200, 350))\n .addVertex(new Point(1200, 900))\n .addVertex(new Point(800, 900)).build();\n Polygon headPoly = Polygon.Builder()\n .addVertex(new Point(900, 200))\n .addVertex(new Point(1100, 200))\n .addVertex(new Point(1100, 340))\n .addVertex(new Point(900, 340)).build();\n Polygon upperLeftArmPoly = Polygon.Builder()\n .addVertex(new Point(700, 380))\n .addVertex(new Point(790, 380))\n .addVertex(new Point(790, 600))\n .addVertex(new Point(700, 600)).build();\n Polygon lowerLeftArmPoly = Polygon.Builder()\n .addVertex(new Point(700, 600))\n .addVertex(new Point(790, 600))\n .addVertex(new Point(790, 800))\n .addVertex(new Point(700, 800)).build();\n Polygon leftHandPoly = Polygon.Builder()\n .addVertex(new Point(700, 800))\n .addVertex(new Point(790, 800))\n .addVertex(new Point(790, 850))\n .addVertex(new Point(700, 850)).build();\n Polygon upperRightArmPoly = Polygon.Builder()\n .addVertex(new Point(1210, 380))\n .addVertex(new Point(1300, 380))\n .addVertex(new Point(1300, 600))\n .addVertex(new Point(1210, 600)).build();\n Polygon lowerRightArmPoly = Polygon.Builder()\n .addVertex(new Point(1210, 600))\n .addVertex(new Point(1300, 600))\n .addVertex(new Point(1300, 800))\n .addVertex(new Point(1210, 800)).build();\n Polygon rightHandPoly = Polygon.Builder()\n .addVertex(new Point(1210, 800))\n .addVertex(new Point(1300, 800))\n .addVertex(new Point(1300, 850))\n .addVertex(new Point(1210, 850)).build();\n Polygon upperLeftLegPoly = Polygon.Builder()\n .addVertex(new Point(850, 910))\n .addVertex(new Point(950, 910))\n .addVertex(new Point(950, 1100))\n .addVertex(new Point(850, 1100)).build();\n Polygon lowerLeftLegPoly = Polygon.Builder()\n .addVertex(new Point(850, 1100))\n .addVertex(new Point(950, 1100))\n .addVertex(new Point(950, 1200))\n .addVertex(new Point(850, 1200)).build();\n Polygon leftFeetPoly = Polygon.Builder()\n .addVertex(new Point(850, 1200))\n .addVertex(new Point(950, 1200))\n .addVertex(new Point(950, 1250))\n .addVertex(new Point(850, 1250)).build();\n Polygon upperRightLegPoly = Polygon.Builder()\n .addVertex(new Point(1050, 910))\n .addVertex(new Point(1150, 910))\n .addVertex(new Point(1150, 1100))\n .addVertex(new Point(1050, 1100)).build();\n Polygon lowerRightLegPoly = Polygon.Builder()\n .addVertex(new Point(1050, 1100))\n .addVertex(new Point(1150, 1100))\n .addVertex(new Point(1150, 1200))\n .addVertex(new Point(1050, 1200)).build();\n Polygon rightFeetPoly = Polygon.Builder()\n .addVertex(new Point(1050, 1200))\n .addVertex(new Point(1150, 1200))\n .addVertex(new Point(1150, 1250))\n .addVertex(new Point(1050, 1250)).build();\n\n Model torso = new Model(\"torso\", new Point(0, 0), 0, torsoPoly);\n Parts.add(torso);\n Model head = new Model(\"head\", new Point(1000, 275), 25, headPoly);\n Parts.add(head);\n Model upperLeftArm = new Model(\"upperArm\", new Point(745, 380), 360, upperLeftArmPoly);\n Parts.add(upperLeftArm);\n Model lowerLeftArm = new Model(\"lowerArm\", new Point(745, 600), 135, lowerLeftArmPoly);\n Parts.add(lowerLeftArm);\n Model leftHand = new Model(\"hand\", new Point(745, 800), 35, leftHandPoly);\n Parts.add(leftHand);\n Model upperRightArm = new Model(\"upperArm\", new Point(1255, 380), 360, upperRightArmPoly);\n Parts.add(upperRightArm);\n Model lowerRightArm = new Model(\"lowerArm\", new Point(1255, 600), 30, lowerRightArmPoly);\n Parts.add(lowerRightArm);\n Model rightHand = new Model(\"hand\", new Point(1255, 800), 35, rightHandPoly);\n Parts.add(rightHand);\n Model upperLeftLeg = new Model(\"upperLeg\", new Point(900, 910), 90, upperLeftLegPoly);\n Parts.add(upperLeftLeg);\n Model lowerLeftLeg = new Model(\"lowerLeg\", new Point(900, 1100), 90, lowerLeftLegPoly);\n Parts.add(lowerLeftLeg);\n Model leftFeet = new Model(\"feet\", new Point(900, 1200), 35, leftFeetPoly);\n Parts.add(leftFeet);\n Model upperRightLeg = new Model(\"upperLeg\", new Point(1100, 910), 90, upperRightLegPoly);\n Parts.add(upperRightLeg);\n Model lowerRightLeg = new Model(\"lowerLeg\", new Point(1100, 1100), 90, lowerRightLegPoly);\n Parts.add(lowerRightLeg);\n Model rightFeet = new Model(\"feet\", new Point(1100, 1200), 35, rightFeetPoly);\n Parts.add(rightFeet);\n\n // set up the children\n torso.addChildren(head);\n torso.addChildren(upperLeftArm);\n upperLeftArm.addChildren(lowerLeftArm);\n lowerLeftArm.addChildren(leftHand);\n torso.addChildren(upperRightArm);\n upperRightArm.addChildren(lowerRightArm);\n lowerRightArm.addChildren(rightHand);\n torso.addChildren(upperLeftLeg);\n upperLeftLeg.addChildren(lowerLeftLeg);\n lowerLeftLeg.addChildren(leftFeet);\n torso.addChildren(upperRightLeg);\n upperRightLeg.addChildren(lowerRightLeg);\n lowerRightLeg.addChildren(rightFeet);\n }", "title": "" }, { "docid": "b8e788c72e1eba7bebe15f344f5fa3eb", "score": "0.6135698", "text": "@Override\n public final void runOpMode() {\n\n // 'telemetry' comes from FTC....\n // It is only available in runOpMode\n\n if (telemetry == null)\n throw new AssertionError(\"Unexpected null object: telemetry\");\n betterTelemetry = new AarreTelemetry(telemetry);\n\n // 'hardwareMap comes from FTC....\n // It is only available in runOpMode\n\n if (hardwareMap == null)\n throw new AssertionError(\"Unexpected null object: hardwareMap\");\n robot = new AarreRobot(this);\n\n betterTelemetry.log(\"Initializing robot\");\n\n // Wait for the driver to press PLAY\n waitForStart();\n\n final AarrePowerMagnitude drivePowerMagnitude = new AarrePowerMagnitude(0.5);\n final AarrePowerMagnitude turnPowerMagnitude = new AarrePowerMagnitude(0.5);\n final double inches = 12.0;\n final double timeout = 5.0;\n\n robot.drive(drivePowerMagnitude, inches, inches, timeout);\n robot.drive(drivePowerMagnitude, -inches, -inches, timeout);\n\n robot.drive(turnPowerMagnitude, inches, -inches, timeout);\n robot.drive(turnPowerMagnitude, -inches, inches, timeout);\n\n robot.raiseArm();\n robot.lowerArm();\n\n robot.raiseRiser();\n robot.lowerRiser();\n\n robot.lowerHook();\n robot.raiseHook();\n\n betterTelemetry.log(\"Ready to run\"); //\n\n }", "title": "" }, { "docid": "c48b7fa7cb959bab7b0b7fd37badd56a", "score": "0.6133611", "text": "@Override\n public void runOpMode() {\n robot.init(hardwareMap);\n robot.initAutonomous(this);\n robot.logger.LOGLEVEL |= robot.logger.LOGDEBUG;\n\n // Robot center is 9\" from each edge:\n // Back against the -x wall, wheels aligned on first tile in -y\n // THIS MUST BE DONE BEFORE BUILDING\n // THIS MUST BE DONE AFTER THE ROBOT IS IN ITS FINAL POSITION\n Pose2d startPose = new Pose2d(startingX, startingY, Math.toRadians(0));\n robot.drive.setPoseEstimate(startPose);\n\n BuildRing0();\n BuildRing1();\n BuildPowerRing0();\n BuildPowerRing1();\n BuildRing4(true);\n\n // Stare at the rings really hard until its time to go or stop\n vision.initAutonomous(this, \"LeftWebcam\");\n vision.clip = false;\n boolean leftBOK = true, rightBOK = true;\n do {\n ringCount = vision.countRings();\n vision.manageVisionBox(gamepad2);\n } while (!isStarted() && (!isStopRequested()));\n vision.shutdown();\n\n // FIXME: Test the stopping in auto here again.\n if (opModeIsActive()) {\n if (ringCount == 0) {\n RingP0(trajs[RINGP0]);\n //Ring0(trajs[RING0]);\n } else if (ringCount == 1) {\n RingP1(trajs[RINGP1]);\n //Ring1(trajs[RING1]);\n } else {\n // If it's not 0 or 1, assume 4 (highest possible point total)\n Ring4(trajs[RING4]);\n }\n }\n }", "title": "" }, { "docid": "83cbbe53a6f82b5d7085156c771aaacb", "score": "0.61211777", "text": "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n \n CameraServer.getInstance().startAutomaticCapture(0);//Camera 1 init\n CameraServer.getInstance().startAutomaticCapture(1); //camera 2 init\n\n \n \n\n dController = new Joystick(0);//driver init\n mController = new Joystick(1);//manip init\n bBoard = new buttonBoard();\n\n\n drive = new driveTrain();//subsystem init (runs default commands)\n lift = new elevator();\n hatchIntake = new hatchIntake();\n cargoIntake = new cargoIntake();\n\n\n }", "title": "" }, { "docid": "4700de21be56a1a63829d8e4553f304c", "score": "0.60934335", "text": "public MainRobot() {\n\n System.out.println(\"Running grtframeworkv6\");\n\n //RPC Connection\n NetworkRPC rpcConn = new NetworkRPC(180);\n\n //Driver station components\n GRTAttack3Joystick primary = new GRTAttack3Joystick(1, 12, \"primary\");\n GRTAttack3Joystick secondary = new GRTAttack3Joystick(2, 12, \"secondary\");\n GRTBGSystemsFXJoystick tertiary = new GRTBGSystemsFXJoystick(3, 12, \"Xbox Joystick\");\n\n primary.start();\n secondary.start();\n primary.enable();\n secondary.enable();\n tertiary.start();\n tertiary.enable();\n System.out.println(\"Joysticks initialized\");\n\n //Battery Sensor\n GRTBatterySensor batterySensor = new GRTBatterySensor(10, \"battery\");\n batterySensor.start();\n batterySensor.enable();\n\n //DriveTrain Encoders\n GRTEncoder dtEncoderLeft = new GRTEncoder(2, 1, 0.32, 10, \"EncoderLeft\");\n GRTEncoder dtEncoderRight = new GRTEncoder(3, 4, 0.32, 10, \"EncoderRight\");\n dtEncoderLeft.start();\n dtEncoderLeft.enable();\n dtEncoderRight.start();\n dtEncoderRight.enable();\n \n //Mechanism Encoders\n GRTEncoder turretRotationEncoder = new GRTEncoder(5,6,4.0,10,\"RotationEncoder\");\n GRTEncoder turretVisorEncoder = new GRTEncoder(7,8,4.0,10,\"Visor Encoder\");\n turretRotationEncoder.start();\n turretRotationEncoder.enable();\n turretVisorEncoder.start();\n turretVisorEncoder.enable();\n \n\n /**\n * *******************************************\n * VICTORS USED FOR THE DRIVETRAIN.\n */\n\n /*\n * //Bessy Code GRTVictor leftDT1 = new GRTVictor(LEFT_SIDECAR_MODULE,\n * 2, \"leftDT1\"); GRTVictor leftDT2 = new GRTVictor(LEFT_SIDECAR_MODULE\n * ,3, \"leftDT2\"); GRTVictor rightDT1 = new\n * GRTVictor(LEFT_SIDECAR_MODULE, 8, \"rightDT1\"); GRTVictor rightDT2 =\n * new GRTVictor(LEFT_SIDECAR_MODULE, 9, \"rightDT2\");\n */\n GRTVictor leftDT1 = new GRTVictor(LEFT_SIDECAR_MODULE, 9, \"leftDT1\");\n GRTVictor leftDT2 = new GRTVictor(LEFT_SIDECAR_MODULE, 10, \"leftDT2\");\n GRTVictor rightDT1 = new GRTVictor(RIGHT_SIDECAR_MODULE, 9, \"rightDT1\");\n GRTVictor rightDT2 = new GRTVictor(RIGHT_SIDECAR_MODULE, 10, \"rightDT2\");\n\n\n leftDT1.start();\n leftDT1.enable();\n leftDT2.start();\n leftDT2.enable();\n rightDT1.start();\n rightDT1.enable();\n rightDT2.start();\n rightDT2.enable();\n\n /**\n * *******************************************\n * VICTORS FOR MECHANISMS\n */\n //Mechanism Victors\n GRTVictor wedgeVictor = new GRTVictor(LEFT_SIDECAR_MODULE, 4, \"Wedge Victor\");\n GRTVictor rotationVictor = new GRTVictor(RIGHT_SIDECAR_MODULE, 3, \"Turret Rotator Victor\");\n GRTVictor visorVictor = new GRTVictor(RIGHT_SIDECAR_MODULE, 4, \"Visor Tilt Victor\");\n GRTVictor flywheelVictor1 = new GRTVictor(RIGHT_SIDECAR_MODULE, 7, \"flywheel1\");\n GRTVictor flywheelVictor2 = new GRTVictor(RIGHT_SIDECAR_MODULE, 8, \"flywheel2\");\n GRTVictor drawbridgeVictor = new GRTVictor(RIGHT_SIDECAR_MODULE, 5, \"drawbridge\");\n GRTVictor flailVictor1 = new GRTVictor(LEFT_SIDECAR_MODULE, 3, \"flail1\");\n GRTVictor topTransVictor1 = new GRTVictor(LEFT_SIDECAR_MODULE, 5, \"trans1\");\n GRTVictor topTransVictor2 = new GRTVictor(LEFT_SIDECAR_MODULE, 6, \"trans2\");\n GRTVictor botTransVictor1 = new GRTVictor(LEFT_SIDECAR_MODULE, 7, \"bottrans1\");\n GRTVictor botTransVictor2 = new GRTVictor(LEFT_SIDECAR_MODULE, 8, \"bottrans2\");\n\n\n\n\n wedgeVictor.start();\n wedgeVictor.enable();\n rotationVictor.start();\n rotationVictor.enable();\n visorVictor.start();\n visorVictor.enable();\n flywheelVictor1.start();\n flywheelVictor1.enable();\n flywheelVictor2.start();\n flywheelVictor2.enable();\n drawbridgeVictor.start();\n drawbridgeVictor.enable();\n flailVictor1.start();\n flailVictor1.enable();\n// flailVictor2.start();\t\tflailVictor2.enable();\n topTransVictor1.start();\n topTransVictor1.enable();\n topTransVictor2.start();\n topTransVictor2.enable();\n botTransVictor1.start();\n botTransVictor1.enable();\n botTransVictor2.start();\n botTransVictor2.enable();\n\n\n\n\n System.out.println(\"Motors initialized\");\n\n /**\n * *******************************************\n * SWITCHES FOR MECHANISMS\n */\n /**\n * ********************************************\n * DRIVETRAIN INITIALIZATION\n */\n GRTDriveTrain dt = new GRTDriveTrain(leftDT1, leftDT2, rightDT1, rightDT2, \"dt\");\n dt.start();\n dt.enable();\n\n dt.addDataLogger(new RPCLogger(rpcConn));\n robotBase = new GRTRobotBase(dt, batterySensor, dtEncoderLeft, dtEncoderRight);\n driverStation = new GRTAttack3RobotDriver(primary, secondary,\n DRIVER_PROFILE_KEYS, DRIVER_PROFILES, -1, -1, -1, \"driverStation\");\n driverStation.enable();\n System.out.println(\"Drivetrain initialized\");\n\n /**\n * ********************************************\n * CONTROLLER INITIALIZATION\n */\n driveControl = new PrimaryDriver(robotBase, driverStation, new LinearDrive(), \"driveControl\");\n\n System.out.println(\"Controllers initialized\");\n\n\n\n\n /**\n * *********************************************\n * LOGGING\n */\n// SensorLogger encoderLogger1 = new SensorLogger(dtEncoderLeft, rpcConn, new int[]{10, 11, 12, 13}, null);\n// SensorLogger encoderLogger2 = new SensorLogger(dtEncoderRight, rpcConn, new int[]{14, 15, 16, 17}, null);\n// encoderLogger1.start();\n// encoderLogger1.enable();\n// encoderLogger2.start();\n// encoderLogger2.enable();\n\n batterySensor = new GRTBatterySensor(10, \"batterySEnsor\");\n batterySensor.start();\n batterySensor.enable();\n\n SensorLogger batteryLogger = new SensorLogger(batterySensor, rpcConn, new int[] {141}, \"batteryLogger\");\n batteryLogger.start();\n batteryLogger.enable();\n\n System.out.println(\"Loggers initialized\");\n\n\n /**\n * ****************************************\n * MECHANISM INTIALIZATION\n */\n \n //\n GRTSwitch collectionSwitch = new GRTSwitch(LEFT_SIDECAR_MODULE,14, 14, \"Rotation Left Switch\");\n GRTSwitch upperRollersSwitch = new GRTSwitch(LEFT_SIDECAR_MODULE,13, 14, \"Rotation Left Switch\");\n GRTSwitch hopperSwitch = new GRTSwitch(LEFT_SIDECAR_MODULE, 12, 14, \"Rotation Left Switch\");\n GRTSwitch ballQueueSwitch = new GRTSwitch(LEFT_SIDECAR_MODULE, 11, 14, \"Rotation Left Switch\");\n \n collectionSwitch.start(); collectionSwitch.enable();\n upperRollersSwitch.start(); upperRollersSwitch.enable();\n hopperSwitch.start(); hopperSwitch.enable();\n ballQueueSwitch.start(); ballQueueSwitch.enable();\n\n Wedge wedge = new Wedge(wedgeVictor, null, null, \"Wedge\");\n wedge.start();\n wedge.enable();\n Drawbridge drawbridge = new Drawbridge(drawbridgeVictor, null, null, \"DrawBridge\");\n drawbridge.start();\n drawbridge.enable();\n\n ShootingSystem ss = new ShootingSystem(rotationVictor, visorVictor,\n flywheelVictor1, flywheelVictor2,\n flailVictor1,\n topTransVictor1, topTransVictor2,\n botTransVictor1, botTransVictor2, \n turretRotationEncoder, turretVisorEncoder);\n ss.start(); ss.enable();\n ss.enableAllSystems(); //YOU MUST DO THIS BEFORE USING THE SHOOTING SYSTEMS\n \n ss.addDataLogger(new RPCLogger(rpcConn));\n \n BallTracker bt = new BallTracker(STARTING_BALLS, collectionSwitch, hopperSwitch, upperRollersSwitch, ballQueueSwitch);\n bt.start(); bt.enable();\n \n \n MechTester tester = new MechTester(tertiary, dt, wedge, drawbridge, ss, \"Mechanism Tester\");\n \n BetabotController bc = new BetabotController(tertiary, primary, secondary, ss, wedge, drawbridge, tester);\n \n bt.addBallListener(bc);\n \n RPCShootingController shootControl = new RPCShootingController(rpcConn, ss, 88);\n \n// RPCController rpcController = new RPCController(rpcConn, new int[] {1183} , dt);\n// rpcController.start(); rpcController.enable();\n\n System.out.println(\"Mechanisms initialized\");\n\n\n\n /**\n * *******************************************\n * ADD OUR TELEOP AND AUTONOMOUS CONTROLLERS, AND LET'S GO!\n */\n addTeleopController(driveControl);\n addTeleopController(bc);\n addTeleopController(shootControl);\n// addTeleopController(encTest);\n// addTeleopController(rpcController);\n// addTeleopController(distTest);\n// addAutonomousController(balancer);\n System.out.println(\"All systems go!!\");\n }", "title": "" }, { "docid": "b1594f585fba176084c660a2359406c0", "score": "0.60796946", "text": "@Override\n\t\t\tpublic void accionRobot(Laberinto lab, Sala sala) {\n\n\t\t\t}", "title": "" }, { "docid": "b1594f585fba176084c660a2359406c0", "score": "0.60796946", "text": "@Override\n\t\t\tpublic void accionRobot(Laberinto lab, Sala sala) {\n\n\t\t\t}", "title": "" }, { "docid": "311d6ac27d5b9c6b10d1bd696de56c85", "score": "0.60742754", "text": "public void robotInit() {\n \tCameraServer.getInstance().startAutomaticCapture().setResolution(width, height);\n \t\n\n \tRobotMap.init();\n\n \tdrivelib = new mhRobotDrive(RobotMap.leftmotors, RobotMap.rightmotors);\n driveTrain = new DriveTrain();\n climber = new Climber();\n intake = new Intake();\n gearSystem = new GearSystem();\n shift = new Shifter(shiftMode.normal);\n \n \n currentlimit = new CurrentLimit();\n \n oi = new OI();\n \n //motionprofile = new RunTest();\n \t//camerafeed = new CameraFeeds(cameraRes, 20);\n \t//camerafeed.init();\n \t\n \t//vision = new Vision();\n \n try {\n\t\t\tlog = new OutputLog();\n\t\t\tlog.enable();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n \t//RunTest.Init(\"//home//lvuser//path\");\n \n //initialize to this in case switch fails at bottom\n autonomousCommand = new DriveStop();\n autoName = \"Stand Still\";\n autoCommandNum = 0;\n \t\n \tSmartDashboard.putData(gearSystem);\n SmartDashboard.putData(driveTrain);\n SmartDashboard.putData(climber);\n SmartDashboard.putData(intake);\n \n pdp = new PowerDistributionPanel();\n \n }", "title": "" }, { "docid": "7558fa9b9159e9b1063a1de32e71cf37", "score": "0.60739374", "text": "@Override\n protected void execute() {\n Robot.drivetrain.drive(Robot.m_oi.getLeftJoy().getRawAxis(1), Robot.m_oi.getRightJoy().getRawAxis(1)); // Drive with Joysticks\n }", "title": "" }, { "docid": "8d57bc0ea0c07820ea84af0da54bddfb", "score": "0.60645753", "text": "public void robotInit() \n\t{\n\t\t// Turns off motor safety and sets the sensitivity to 100% and sets the encoder distance scale\n\t\trobotDrive.setSafetyEnabled(false);\n\t\trobotDrive.setSensitivity(1);\n\t\trobotElectronics.getDrivetrainEncoder().setDistancePerPulse(encoderDistanceScale);\n\n\t\t// Inverts the directions of all the drivetrain motors\n\t\trobotDrive.setInvertedMotor(MotorType.kFrontLeft, true);\n\t\trobotDrive.setInvertedMotor(MotorType.kRearLeft, true);\n\t\trobotDrive.setInvertedMotor(MotorType.kFrontRight, true);\n\t\trobotDrive.setInvertedMotor(MotorType.kRearRight, true);\n\n\t\t// Enables the ultrasonic sensor to calculate distances\n\t\trobotElectronics.getUltrasonicSensor().setEnabled(true);\n\t\trobotElectronics.getUltrasonicSensor().setAutomaticMode(true);\n\n\t\t// Sets the flywheel motor's minimum and maximum voltages for going forwards and backwards\n\t\trobotElectronics.getFlywheelMotor().configNominalOutputVoltage(+0.0f, -0.0f);\n\t\trobotElectronics.getFlywheelMotor().configPeakOutputVoltage(+12.0f, -0.0f);\n\n\t\t// Sets the flywheel motor's PID profile and changes the PID type to be a speed based PID\n\t\trobotElectronics.getFlywheelMotor().setProfile(0);\n\t\trobotElectronics.getFlywheelMotor().changeControlMode(TalonControlMode.Speed);\n\n\t\t// Sets the default positions for the solenoids\n\t\trobotElectronics.getGearIntakeSolenoid().set(false);\n\t\trobotElectronics.getGearOuttakeSolenoid().set(false);\n\t\trobotElectronics.getGearPickupSolenoid1().set(false);\n\t\trobotElectronics.getGearPickupSolenoid2().set(true);\n\n\t\t// Initializes and starts up a new thread for the image analysis camera\n\t\tnew Thread(() -> {\n\t\t\t// Instantiates the vision analysis class as an object\n\t\t\tVisionAnalysis visionAnalysis = new VisionAnalysis();\n\n\t\t\t// Instantiates a UsbCamera object from the CameraServer for the first camera for image analysis (starts the SmartDashboard's camera stream)\n\t\t\tUsbCamera camera1 = CameraServer.getInstance().startAutomaticCapture(\"Microsoft LifeCam HD-3000 (Image Analysis)\", 0);\n\n\t\t\t// Instantiates a UsbCamera object from the CameraServer for the second camera for POV driving (starts the SmartDashboard's camera stream)\n\t\t\tUsbCamera camera2 = CameraServer.getInstance().startAutomaticCapture(\"Microsoft LifeCam NX-6000 (POV Driving)\", 1);\n\n\t\t\t// Sets the properties for the first camera object\n\t\t\tcamera1.setResolution(CAMERA_WIDTH, CAMERA_HEIGHT);\n\t\t\tcamera1.setBrightness(CAMERA_BRIGHTNESS);\n\t\t\tcamera1.setExposureManual(CAMERA_EXPOSURE);\n\t\t\tcamera1.setFPS(CAMERA_FPS);\n\n\t\t\t// Sets the properties for the second camera object\n\t\t\tcamera2.setResolution(CAMERA_WIDTH, CAMERA_HEIGHT);\n\t\t\tcamera2.setFPS(CAMERA2_FPS);\n\n\t\t\t// Gets a CvSink that will capture Mats from the camera\n\t\t\tCvSink cvSink = CameraServer.getInstance().getVideo(camera1);\n\n\t\t\t// Sets up a CvSource that will send the processed input back to the SmartDashboard\n\t\t\tCvSource outputStream = CameraServer.getInstance().putVideo(\"Image Analysis\", CAMERA_WIDTH, CAMERA_HEIGHT);\n\n\t\t\t// Initialize a Mat to capture a frame from the camera for processing\n\t\t\tMat sourceFrame = new Mat();\n\n\t\t\t// Runs the thread as long as the robot code is running\n\t\t\twhile(!Thread.interrupted())\n\t\t\t{\n\t\t\t\t// Captures a frame from the camera input\n\t\t\t\tcvSink.grabFrame(sourceFrame);\n\n\t\t\t\t// Performs the vision analysis code on the captured frame\n\t\t\t\tvisionAnalysis.process(sourceFrame);\n\n\t\t\t\t// Checks to see if any contours were even found otherwise skips over the vision code\n\t\t\t\tif (visionAnalysis.convexHullsOutput().size() > 0)\n\t\t\t\t{\n\t\t\t\t\t// Initializes a Rectangle object that will store the largest contour's outline to be added to the processed image to identify the target\n\t\t\t\t\tRect targetOutline = Imgproc.boundingRect(visionAnalysis.convexHullsOutput().get(0));\n\n\t\t\t\t\t// Loops through all the possible bounding contours and filters out the largest one\n\t\t\t\t\tfor (int counter = 1; counter < visionAnalysis.convexHullsOutput().size(); counter++)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Checks to see if the current contour is larger than the previous one and stores it\n\t\t\t\t\t\tif (targetOutline.size().area() < Imgproc.boundingRect(visionAnalysis.convexHullsOutput().get(counter)).area())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttargetOutline = Imgproc.boundingRect(visionAnalysis.convexHullsOutput().get(counter));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Draws the target's outline onto the source\n\t\t\t\t\tImgproc.rectangle(sourceFrame, new Point(targetOutline.x, targetOutline.y), new Point(targetOutline.x + targetOutline.width, targetOutline.y + targetOutline.height), new Scalar(0, 0, 255), 2);\n\n\t\t\t\t\t// Draws the hard coded ideal target location onto the source\n\t\t\t\t\tImgproc.rectangle(sourceFrame, new Point(130, 50), new Point(180, 60), new Scalar(255, 255, 255), 2);\n\n\t\t\t\t\t// Stores the dimensions of the target's outline\n\t\t\t\t\ttargetOutlineSize = targetOutline.size().toString();\n\n\t\t\t\t\t// Puts the processed frame on the driverstation as a labeled stream\n\t\t\t\t\toutputStream.putFrame(sourceFrame);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Puts the unprocessed source frame on the driverstation as a labeled stream\n\t\t\t\t\toutputStream.putFrame(sourceFrame);\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\n\t\t// Calls the function to update the SmartDashboard window's values\n\t\tupdateSmartDashboard();\n\t}", "title": "" }, { "docid": "2ee696069591eb835fe7e24e675288e4", "score": "0.6059959", "text": "@SuppressWarnings(\"resource\")\n public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n joystick0 = new Joystick(0);\n joystick1 = new Joystick(1);\n\n winchRetract = new JoystickButton(joystick0, 12);\n winchRetract.whileHeld(new WinchCommandRetract());\n winchRetract.whenReleased(new WinchCommandRetract().Stop());\n\n winchUnwind = new JoystickButton(joystick0, 16);\n winchUnwind.whileHeld(new WinchCommandUnwind());\n winchUnwind.whenReleased(new WinchCommandUnwind().Stop());\n\n towerExtend = new JoystickButton(joystick0, 14);\n towerExtend.whileHeld(new TowerCommandExtend());\n towerExtend.whenReleased(new TowerCommandExtend().Stop());\n\n towerRetract = new JoystickButton(joystick0, 3);\n towerRetract.whileHeld(new TowerCommandRetract());\n towerRetract.whenReleased(new TowerCommandRetract().Stop());\n\n shoot = new JoystickButton(joystick0, 1);\n shoot.whileHeld(new ShooterCommand());\n shoot.whenReleased(new ShooterCommand().Stop());\n \n conveyorMove = new JoystickButton(joystick0, 5);\n conveyorMove.whileHeld(new ConveyorBeltCommand());\n conveyorMove.whenReleased(new ConveyorBeltCommand().Stop());\n\n readyBall = new JoystickButton(joystick0, 4);\n readyBall.whileHeld(new ReadyBallCommand());\n readyBall.whenReleased(new ReadyBallCommand().Stop());\n\n ballCatcherAbsorb = new JoystickButton(joystick0, 2);\n ballCatcherAbsorb.whileHeld(new BallCatcherCommand());\n ballCatcherAbsorb.whenReleased(new BallCatcherCommand().Stop());\n\n shiftForward = new JoystickButton(joystick0, 8);\n shiftForward.whileHeld(new ShiftForward());\n shiftForward.whenReleased(new ShiftForward().Stop());\n\n shiftBackward = new JoystickButton(joystick0, 15);\n shiftBackward.whileHeld(new ShiftBackward());\n shiftBackward.whenReleased(new ShiftBackward().Stop());\n\n shiftRight = new JoystickButton(joystick0, 6);\n shiftRight.whileHeld(new ShiftRight());\n shiftRight.whenReleased(new ShiftRight().Stop());\n\n shiftLeft = new JoystickButton(joystick0, 7);\n shiftLeft.whileHeld(new ShiftLeft());\n shiftLeft.whenReleased(new ShiftLeft().Stop());\n\n gyroStabilization = new JoystickButton(joystick1, 1);\n gyroStabilization.whileHeld(new GyroDriveStabilization());\n\n resetGyro = new JoystickButton(joystick1, 2);\n resetGyro.whileHeld(new Reset());\n\n // SmartDashboard Buttons\n SmartDashboard.putData(\"AutonomousCommand\", new AutonomousCommand());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "title": "" }, { "docid": "4c38a172dc65a6dea73e90a160e27143", "score": "0.6054268", "text": "public OI()\r\n {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n driveJoystick = new Joystick(1);\r\n \r\n joystickShooterDown = new JoystickButton(driveJoystick, 6);\r\n joystickShooterDown.whileHeld(new ShooterAngleDown());\r\n joystickShooterUp = new JoystickButton(driveJoystick, 5);\r\n joystickShooterUp.whileHeld(new ShooterAngleUp());\r\n joystickShoot4 = new JoystickButton(driveJoystick, 4);\r\n joystickShoot4.whileHeld(new CannonShoot4());\r\n joystickShoot3 = new JoystickButton(driveJoystick, 3);\r\n joystickShoot3.whileHeld(new CannonShoot3());\r\n joystickShoot2 = new JoystickButton(driveJoystick, 2);\r\n joystickShoot2.whileHeld(new CannonShoot2());\r\n joystickShoot1 = new JoystickButton(driveJoystick, 1);\r\n joystickShoot1.whileHeld(new CannonShoot1());\r\n\t \r\n // SmartDashboard Buttons\r\n SmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\r\n SmartDashboard.putData(\"Cannon Shoot 1\", new CannonShoot1());\r\n SmartDashboard.putData(\"Cannon Shoot 2\", new CannonShoot2());\r\n SmartDashboard.putData(\"Cannon Shoot 4\", new CannonShoot4());\r\n SmartDashboard.putData(\"Cannon Shoot 3\", new CannonShoot3());\r\n SmartDashboard.putData(\"Shooter Angle Up\", new ShooterAngleUp());\r\n SmartDashboard.putData(\"Shooter Angle Down\", new ShooterAngleDown());\r\n SmartDashboard.putData(\"Drivetrain Normal Drive\", new DrivetrainNormalDrive());\r\n SmartDashboard.putData(\"Set Shooter Angle\", new SetShooterAngle());\r\n SmartDashboard.putData(\"Teleoperated\", new Teleoperated());\r\n SmartDashboard.putData(\"ChassisTurnAngle\", new ChassisTurnAngle());\r\n SmartDashboard.putData(\"DriveStraight\", new DriveStraight());\r\n SmartDashboard.putData(\"DriveAtASmallAngleVisionWaitForHotGoal\", new DriveAtASmallAngleVisionWaitForHotGoal());\r\n SmartDashboard.putData(\"DriveAtASmallAngleTimeAndPowerDriveAtHotGoal\", new DriveAtASmallAngleTimeAndPowerDriveAtHotGoal());\r\n SmartDashboard.putData(\"DriveAtASmallAngleTimeAndPowerWaitForHot\", new DriveAtASmallAngleTimeAndPowerWaitForHot());\r\n SmartDashboard.putData(\"DriveAtASmallAngleUltraSonicDriveAtHotGoal\", new DriveAtASmallAngleUltraSonicDriveAtHotGoal());\r\n SmartDashboard.putData(\"DriveAtASmallAngleUltraSonicWaitForHot\", new DriveAtASmallAngleUltraSonicWaitForHot());\r\n SmartDashboard.putData(\"DriveAtASmallAngleVisionDriveAtHotGoal\", new DriveAtASmallAngleVisionDriveAtHotGoal());\r\n SmartDashboard.putData(\"DriveInFrontOfBoxTimeAndPowerWaitForHot\", new DriveInFrontOfBoxTimeAndPowerWaitForHot());\r\n SmartDashboard.putData(\"DriveInFrontOfBoxUltraSonicWaitForHot\", new DriveInFrontOfBoxUltraSonicWaitForHot());\r\n SmartDashboard.putData(\"DriveLeftBox\", new DriveLeftBox());\r\n SmartDashboard.putData(\"DriveRightBox\", new DriveRightBox());\r\n SmartDashboard.putData(\"ShootBall\", new ShootBall());\r\n SmartDashboard.putData(\"Autonomous Command Group\", new AutonomousCommandGroup());\r\n SmartDashboard.putData(\"Update PID\", new UpdatePID());\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n }", "title": "" }, { "docid": "51de214c6fb41501de0c89754d6a8e2e", "score": "0.6047859", "text": "public void robotInit() {\n \tmotor1 = new CANTalon(0);\n \tmotor2 = new CANTalon(1);\n \tmotor3 = new CANTalon(2);\n \tmotor4 = new CANTalon(3);\n\t myRobot = new RobotDrive(motor1,motor2,motor3,motor4);\n\t armLeft = new Talon(1);\n\t armRight = new Talon(0);\n\t gyro = new Gyro(0);\n\t frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\n\t \n\t\t\n\n // open the camera at the IP address assigned. This is the IP address that the camera\n // can be accessed through the web interface.\n\t camera = new AxisCamera(\"10.2.91.11\");\n compressor.setClosedLoopControl(true);\n stick1 = new Joystick(0);\n blinky.set(false);\n commandArm = stick2.getY() ;\n accl = new BuiltInAccelerometer();\n a2 = 99;\n a1 = 99;\n a3 = 99;\n aCurrent = 99;\n v2 = 99;\n v1 = 99;\n v3 = 99;\n vCurrent = 99;\n dCurrent = 99;\n timeInterval = 0.5; // TODO: Use real interval\n }", "title": "" }, { "docid": "7457b5c919e961bfca577220188f939f", "score": "0.6047615", "text": "public String getTipoRobot() {\n\t\treturn tipoRobot;\n\t}", "title": "" }, { "docid": "1131616960dc3650924db179a8a3c54c", "score": "0.6046455", "text": "public static void turnright(){\n Robot.tankDrive(0.5, -0.5);//Tank drive directly from Joysticks\n \tRobot.setSafetyEnabled(true);//Set safety so robot doesn't go kasplat \n }", "title": "" }, { "docid": "2cc8e6258877356da8b111abecba2ff5", "score": "0.6038445", "text": "@Override\n public void runOpMode() {\n\n robot = new RobotRoverRuckus(hardwareMap, telemetry);\n\n initHardware();\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", robot); //\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n goldMineralDectect();\n locateStart();\n while (opModeIsActive()) {\n\n if(runtimeTemp.seconds()>2){\n locate();\n runtimeTemp.reset();\n }\n\n // Display it for the driver.\n telemetry.addData(\"Robot Status:\", robot);\n telemetry.update();\n }\n }", "title": "" }, { "docid": "698e734cb3e8a67b99539228fe917afa", "score": "0.6034814", "text": "public ArrayList<Robot> getRobots() { return this.armies; }", "title": "" }, { "docid": "c3df6060e609700d09a73a02898ca563", "score": "0.6030476", "text": "public void placeOily(){\n\t\trobots[currentRobot].placeOily();\n\t\tmainWindow.repaint();\n\t}", "title": "" }, { "docid": "b3f7fdf8de7ac0a0a8d017fb0f81f2cb", "score": "0.6022487", "text": "@Override\r\n\tprotected IRobotEnvironement make_robot() {\n\t\treturn new IRobotEnvironement() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void robotTakeBox(Robot r, Box b, int x, int y) {\r\n\t\t\t\tPosition p = new Position(x, y);\r\n\t\t\t\tboxMap.remove(b);\r\n\t\t\t\tboxesUp++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void robotPutBox(Robot r, Box b, int x, int y) {\r\n\t\t\t\tPosition p = new Position(x, y);\r\n\t\t\t\tboxesDown++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void robotMoved(Robot r, int x, int y) {\r\n\t\t\t\tPosition p = new Position(x, y);\r\n\t\t\t\trobotMap.put(r, p);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void robotKillHimself(Robot r) {\r\n\t\t\t\trobotMap.remove(r);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void robotCreated(Robot r, int x, int y) {\r\n\t\t\t\tPosition p = new Position(x, y);\r\n\t\t\t\trobotMap.put(r, p);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Map<Position, Object> getPerception(Robot r, int x, int y) {\r\n\t\t\t\tMap<Position, Object> perceptionMap = new HashMap<Position, Object>();\r\n\t\t\t\tfor (int i = x-3 ; i < x+3 ; i++) {\r\n\t\t\t\t\tfor (int j = y-3 ; j < y+3 ; j++) {\r\n\t\t\t\t\t\tPosition p = new Position(i, j);\r\n\t\t\t\t\t\tif(robotMap.containsValue(p)) {\r\n\t\t\t\t\t\t\tperceptionMap.put(p, getRobotKey(robotMap, p));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(boxMap.containsValue(p)) {\r\n\t\t\t\t\t\t\tperceptionMap.put(p, getBoxKey(boxMap, p));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(obstacleMap.containsValue(p)) {\r\n\t\t\t\t\t\t\tperceptionMap.put(p, getObstacleKey(obstacleMap, p));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tperceptionMap.put(p, null);\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\treturn perceptionMap;\r\n\t\t\t}\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "934670c22902dfd873e767142fabef83", "score": "0.6013135", "text": "public RobotContainer() {\n // Configure the button bindings\n\n configureButtonBindings();\n //dpad = controller_1.getPOV(0);\n // System.out.println(dpad); \n \n //m_victorMotor.setVictorSpeed(controller_1.getRawAxis(Constants.LEFT_TRIGGER));\n // m_victorMotor.setVictorSpeed(-1* controller_1.getRawAxis(Constants.RIGHT_TRIGGER));\n \n //Set default commands:\n //driveTrain.setDefaultCommand(new DriveRunCommand(driveTrain, controller_1));\n //feed.setDefaultCommand(new RunCommand(() -> feed.set(controller_1.getRawAxis(Constants.RIGHT_TRIGGER)), feed));\n //tWheel.setDefaultCommand(new RunCommand(() -> tWheel.set(1), tWheel));\n\n\n \n \n // RunCommand cmd = \n // new RunCommand(() -> m_victorMotor.setVictorSpeed(controller_1.getY(GenericHID.Hand.kLeft)), m_victorMotor);\n // m_victorMotor.setDefaultCommand(cmd);\n //m_victorMotor.setDefaultCommand(new VictorDrive(m_victorMotor, controller_1));\n \n }", "title": "" }, { "docid": "62b6a84dcf34c96c77324cd3a0c0a848", "score": "0.60013807", "text": "@Override\n\tpublic void onRobotHasFallen() {\n\n\t}", "title": "" }, { "docid": "ae58643331d80340b59d585dbcc81268", "score": "0.59972715", "text": "@Override\n\tpublic void robotInit() {\n\t\trobotStartPosition.addDefault(\"Robot Starts Left\", RobotConstants.AUTO_ROBOT_LEFT);\n\t\trobotStartPosition.addObject(\"Robot Starts Middle\", RobotConstants.AUTO_ROBOT_MIDDLE);\n\t\trobotStartPosition.addObject(\"Robot Starts Right\", RobotConstants.AUTO_ROBOT_RIGHT);\n\n\t\tcrossOver.addDefault(\"Auto - Cross Over\", RobotConstants.AUTO_SCALE_CROSS);\n\t\tcrossOver.addObject(\"Auto - Do Not Cross Over\", RobotConstants.AUTO_NO_SCALE_CROSS);\n \n\t\trecorder.addDefault(\"Do Nothing\", \"nothing\");\n\t\trecorder.addObject(\"Start Recording \", \"start\");\n\t\trecorder.addObject(\"Stop Recording\", \"stop\");\n\t\n\t\tfileRecorder.addDefault(\"Center --> Go Right\", RobotConstants.CENTER_2_RIGHT);\n\t\tfileRecorder.addObject(\"Center --> Go Left\", RobotConstants.CENTER_2_LEFT);\n\t\tfileRecorder.addObject(\"Left --> To Scale\", RobotConstants.LEFT_2_SCALE);\n\t\tfileRecorder.addObject(\"Right --> To Scale\", RobotConstants.RIGHT_2_SCALE);\n\t\tfileRecorder.addObject(\"Left --> To Scale Right\", RobotConstants.LEFT_2_SCALE_RIGHT);\n\t\tfileRecorder.addObject(\"Right --> To Scale Left\", RobotConstants.RIGHT_2_SCALE_LEFT);\n\t\tfileRecorder.addObject(\"Left --> Scale Right, No Cross, No Switch\", RobotConstants.LEFT_2_SCALE_SHORT);\n\t\tfileRecorder.addObject(\"Right --> Scale Left, No Cross, No Switch\", RobotConstants.RIGHT_2_SCALE_SHORT);\n\t\tfileRecorder.addObject(\"Left --> Scale Right, No Cross, Switch\", RobotConstants.LEFT_2_SCALE_SHORT_SWITCH);\n\t\tfileRecorder.addObject(\"Right --> Scale Left, No Cross, Switch\", RobotConstants.RIGHT_2_SCALE_SHORT_SWITCH);\n\n\t\tclimberPullin.addDefault(\"Climber Pullin Enabled\", RobotConstants.CLIMBER_PULLIN_ON);\n\t\tclimberPullin.addObject(\"Climber Pullin !!!DISABLED!!!\", RobotConstants.CLIMBER_PULLIN_OFF);\n\t\t\n\t\televatorLimits.addDefault(\"Elevator Limits Enabled\", RobotConstants.ELEVATOR_LIMITS_ON);\n\t\televatorLimits.addObject(\"Elevator Limits !!!DISABLED!!!\", RobotConstants.ELEVATOR_LIMITS_OFF);\n\t\t\n\t\tSmartDash.displayCompetitionChoosers(robotStartPosition, crossOver, elevatorLimits, climberPullin);\n\t\t\n if (!isCompetition)\t\t{\n SmartDash.displayRecordPlaybackChoosers(recorder, fileRecorder); \n }\n \t}", "title": "" }, { "docid": "5f5dfbf66659b36863c6e811c6d8ae88", "score": "0.59847146", "text": "public void runOpMode() {\n telemetry.addLine(\"DO NOT RUN CODE ROBOT STILL INITING\");\n telemetry.update();\n\n Init(); // init robot hardware\n\n init_vuforia_2(); //init camera\n\n telemetry.addLine(\"Ready to jump to hyperspace\");\n // Wait for the game to start (driver presses PLAY)\n\n telemetry.update();\n waitForStart();\n\n VuforiaStuff.skystonePos StoneRember = vuforiaStuff.vuforiascan(false,true); // look for skystone\n\n telemetry.addData(\"Init Arm Tilt Encoder\",robot.LiftMotor.getCurrentPosition());\n telemetry.addData(\"Init Extension ticks\",robot.ExtendMotor.getCurrentPosition());\n telemetry.update();\n //sleep(5000);\n\n armTiltWithEncoder(-1000,0.50); // rotate the arm up, but don't wait for it to finish moving\n armExtNonBlockling(2893,0.8); // extend the arm, but don't wait for it to finish moving\n\n //sleep(5000);\n\n /*\n while(robot.ExtendMotor.isBusy() || robot.LiftMotor.isBusy()){\n telemetry.addData(\"Arm Tilt Encoder\",robot.LiftMotor.getCurrentPosition());\n telemetry.addData(\"Extension ticks\",robot.ExtendMotor.getCurrentPosition());\n telemetry.update();\n\n }\n */\n\n // sleep(3000);\n\n switch (StoneRember) { // distance 11 and 10 to far forward\n case LEFT: //SkyStone is left\n frontgap(15,1,57 ,sensorSide.LEFT, sensorFront.DEATHSTAR ); //needs to be fixed\n telemetry.addLine(\"LEFT\");\n break;\n case CENTER: //SkyStone is on center\n telemetry.addLine(\":CENTER\");\n frontgap(15,1,75,sensorSide.LEFT, sensorFront.DEATHSTAR); //fixed\n break;\n case RIGHT: //SkyStone is on the right\n //strafe(25,-0.5); //Strafe over to the skystone\n telemetry.addLine(\"Right\");\n frontgap(15,1,90,sensorSide.LEFT, sensorFront.DEATHSTAR); //fixed 11 to far forward\n //strafe(60,-1);\n break;\n }\n RobotLog.d(\"8620WGW Test_Auto Before 1st GrabBlock. Arm Angle=\" + robot.LiftMotor.getCurrentPosition() + \"Arm Extension=\" + robot.ExtendMotor.getCurrentPosition());\n\n grabBlock();\n armExt(2000,1);\n\n drive(15,-1);\n rotate(85,1);\n\n switch(StoneRember) {\n //KEY: 1: drive under bridge with gap TODO test the distances of the gap drive\n case LEFT:\n gap(140, 1, 53, sensorSide.RIGHT); //1\n break;\n case CENTER:\n gap(130, 1, 53, sensorSide.RIGHT); //1\n break;\n case RIGHT:\n gap(120, 1, 53, sensorSide.RIGHT); //1\n break;\n }\n\n //frontgap(110,1,69, sensorSide.RIGHT, sensorFront.WOOKIE); //drive to waffle\n armExtNonBlockling(2800,1); //TODO strafed to far to the left\n armTiltWithEncoder(-1000,0.50); // rotate the arm up, but don't wait for it to finish moving\n strafe(60,1, 100, sensorFront.WOOKIE); // lines up on block 100\n //drive(10,1); // drive to place block decrease this drive was 30\n robot.OpenServo.setPosition(0);//set power zero and wait half a second.\n armTilt(.98,0.8); // tilt to clear skystone\n rotate(170,1); //rotates to align the waffle grabers on waffle\n armExtNonBlockling(1500,1);\n armTiltWithEncoder(900,0.25);\n //drive(10,1);//todo get closer to waffle\n robot.RightWaffle.setPosition(0.5); //moves the waffle grabber to push out the skystone if it is in the way\n robot.LeftWaffle.setPosition(0.5);\n strafe(15,1, 0, sensorFront.NOSENSOR); //strafes onto waffle was 20\n robot.RightWaffle.setPosition(0); //grabs waffle\n robot.LeftWaffle.setPosition(1);\n sleep(400); //TODO can this be shortned or taken out\n rotate(255,1); //rotates to align the waffle with building zone needs to be 240 to 250 was 225\n robot.RightWaffle.setPosition(1); //grabs waffle\n robot.LeftWaffle.setPosition(0);\n strafe(80,1, 0, sensorFront.NOSENSOR); //strafe waffle into build site\n drive(70,1);\n telemetry.update();\n\n }", "title": "" }, { "docid": "bff607bffa2634c5f231ab632132ba4f", "score": "0.5983258", "text": "public interface RobotBuilder {\n public void buildRobotHead();\n public void buildRobotTorso();\n public void buildRobotArms();\n public void buildRobotLegs();\n public Robot getRobot();\n}", "title": "" }, { "docid": "62ba5387508da510f3e2453c48b87389", "score": "0.59814185", "text": "public static void init() {\r\n \r\n shooterLED = new DigitalOutput(1);\r\n shooterLED.set(false);\r\n intakeLED = new DigitalOutput(2);\r\n intakeLED.set(false);\r\n randomLED = new DigitalOutput(3);\r\n randomLED.set(false);\r\n breathLED = new DigitalOutput(4);\r\n breathLED.set(false);\r\n \r\n agitator = new Talon(4);\r\n \r\n ultrasonic = new Ultrasonic(8, 9);\r\n \r\n driveGyro = new ADXRS453Gyro();\r\n driveGyro.startThread();\r\n \r\n //ShooterLEDRelay = new Relay(3); // double check PWM\r\n //ShooterLEDRelay.set(Relay.Value.kOff);\r\n //GearLEDRelay = new Relay (7); // double check PWM\r\n //GearLEDRelay.set(Relay.Value.kOff);\r\n \r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n ballintakeintaketalon = new Talon(5);\r\n LiveWindow.addActuator(\"ball intake\", \"intake talon\", (Talon) ballintakeintaketalon);\r\n \r\n shootershootertalon = new CANTalon(7);\r\n LiveWindow.addActuator(\"shooter\", \"shooter talon\", shootershootertalon);\r\n \r\n \r\n //UPDATE CAN IDs!\r\n \r\n driveleftreartalon = new CANTalon(5);\r\n LiveWindow.addActuator(\"drive\", \"left rear talon\", driveleftreartalon);\r\n \r\n driveleftfronttalon = new CANTalon(6);\r\n LiveWindow.addActuator(\"drive\", \"left front talon\", driveleftfronttalon);\r\n \r\n driverightfronttalon = new CANTalon(8);\r\n LiveWindow.addActuator(\"drive\", \"right front talon\", driverightfronttalon);\r\n \r\n driverightreartalon = new CANTalon(4);\r\n LiveWindow.addActuator(\"drive\", \"right rear talon\", driverightreartalon);\r\n \r\n driveRobotDrive41 = new RobotDrive(driveleftfronttalon, driveleftreartalon,\r\n driverightfronttalon, driverightreartalon);\r\n \r\n driveRobotDrive41.setSafetyEnabled(true);\r\n driveRobotDrive41.setExpiration(0.1);\r\n driveRobotDrive41.setSensitivity(0.5);\r\n driveRobotDrive41.setMaxOutput(1.0);\r\n\r\n driveRobotDrive41.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\r\n driveRobotDrive41.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\r\n climbingarmclimbingmotor = new Talon(6);\r\n LiveWindow.addActuator(\"climbing arm\", \"climbing motor\", (Talon) climbingarmclimbingmotor);\r\n \r\n gearthingygearmotor = new Spark(1);\r\n LiveWindow.addActuator(\"Gear thingy\", \"gear motor\", (Spark) gearthingygearmotor);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n \r\n\r\n \r\n }", "title": "" }, { "docid": "a28db45c03e601fd2cb0e4f5f604c6ff", "score": "0.59809554", "text": "@Override\n\tpublic void robotInit() {\n\t\tright_winch = new WPI_TalonSRX(8);\n\t\tleft_winch = new WPI_TalonSRX(9);\n\n\t\tpilot = new Joystick(0);\n\t\tco_pilot = new Joystick(1);\n\n\t\tcompressor = new Compressor(0);\n\t\tcompressor.start();\n\n\t\tdrive = new EE_Mecanum();\n\t\tcollector = new EE_Collector();\n\t\televator = new EE_Elevator(collector);\n\t\tauto = new EE_navFSM();\n\n\t\ttimer = new Timer();\n\n\t\t// Starting positions\n\t\tpos_chooser = new SendableChooser();\n\t\tpos_chooser.addObject(\"STARTING: Left\", new Integer(1));\n\t\tpos_chooser.addDefault(\"STARTING: Middle\", new Integer(2));\n\t\tpos_chooser.addObject(\"STARTING: Right\", new Integer(3));\n\t\tSmartDashboard.putData(\"Starting Position\", pos_chooser);\n\n\t\t// Goals\n\t\tauto_chooser = new SendableChooser();\n\t\tauto_chooser.addObject(\"Do nothing.\", new Integer(-1));\n\t\tauto_chooser.addObject(\"TESTING: Cross auto line\", new Integer(0));\n\t\tauto_chooser.addDefault(\"TESTING: Line up with our switch\", new Integer(1));\n\t\tauto_chooser.addObject(\"TESTING: Always forward: Switch, then go to scale\", new Integer(2));\n\t\tauto_chooser.addObject(\"Go to switch\", new Integer(3)); // this WAS\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// scale\n\t\tauto_chooser.addObject(\"Just auto line\", new Integer(4));\n\t\tSmartDashboard.putData(\"Autonomous Program\", auto_chooser);\n\n\t}", "title": "" }, { "docid": "6a8f39386fe6572894c579913cae41dc", "score": "0.5969489", "text": "public OI() {\n\t\t// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n\t\txbox = new Joystick(0);\n\n\t\ty = new JoystickButton(xbox, 3);\n\t\ty.whenPressed(new ExtendVPiston());\n\t\tx = new JoystickButton(xbox, 2);\n\t\tx.whenPressed(new RetractHPiston());\n\t\tb = new JoystickButton(xbox, 1);\n\t\tb.whenPressed(new ExtendHPiston());\n\t\ta = new JoystickButton(xbox, 0);\n\t\ta.whenPressed(new RetractVPiston());\n\n\t\t// SmartDashboard Buttons\n\t\tSmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\n\t\tSmartDashboard.putData(\"Forward\", new Forward());\n\t\tSmartDashboard.putData(\"Extend VPiston\", new ExtendVPiston());\n\t\tSmartDashboard.putData(\"Extend HPiston\", new ExtendHPiston());\n\t\tSmartDashboard.putData(\"Auto Section\", new AutoSection());\n\t\tSmartDashboard.putData(\"Retract VPiston\", new RetractVPiston());\n\t\tSmartDashboard.putData(\"Retract HPiston\", new RetractHPiston());\n\t\tSmartDashboard.putNumber(\"Speed\", getForward());\n\n\t\t// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\t\t// right = new JoystickButton(xbox, 6);\n\t}", "title": "" }, { "docid": "1793c503d6e063d82d380df4a78cfe02", "score": "0.59426326", "text": "@Override\r\n public void or_loop() {\r\n if (gamepad1.right_trigger > 0.25)\r\n robot.beaconSwitcher.increment(-0.02);\r\n if (gamepad1.left_trigger > 0.25)\r\n robot.beaconSwitcher.increment(0.02);\r\n /*if(gamepad1.y) //Eli's Idea\r\n robot.ultraParallelOne();*/\r\n\r\n if(gamepad2.a)\r\n robot.collector.motor.setPower(0.75);\r\n else\r\n robot.collector.motor.setPower(0);\r\n\r\n if(gamepad2.y)\r\n robot.shooter.motor.setPower(1.0);\r\n else\r\n robot.shooter.motor.setPower(0);\r\n\r\n if(gamepad2.x)\r\n robot.collector1.motor.setPower(0.75);\r\n else\r\n robot.collector1.motor.setPower(0.0);\r\n /* if(gamepad2.b)\r\n {\r\n\r\n robot.collector.motor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.collector1.motor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.collector1.motor.setTargetPosition(215);\r\n robot.collector1.motor.setPower(0.75);\r\n robot.collector.motor.setTargetPosition(339);\r\n robot.collector.motor.setPower(0.75);\r\n robot.collector.motor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n robot.collector1.motor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n }*/\r\n\r\n\r\n robot.leftDrive.motor.setPower(-gamepad1.left_stick_y);\r\n robot.rightDrive.motor.setPower(-gamepad1.right_stick_y);\r\n\r\n telemetry.addData(\"Servo Pos\",robot.beaconSwitcher.servo.getPosition());\r\n telemetry.addData(\"Red,Blue\", \"%d,%d\", robot.colorSensor.red(), robot.colorSensor.blue());\r\n telemetry.addData(\"Inner Collector current position: \", robot.collector1.motor.getCurrentPosition());\r\n telemetry.addData(\"Outer Collector current position: \", robot.collector.motor.getCurrentPosition());\r\n telemetry.update();\r\n /*\r\n String col = \"\";\r\n if (robot.colorSensor.red() - robot.colorSensor.blue() > 100)\r\n col = \"RED\";\r\n else if (robot.colorSensor.red() - robot.colorSensor.blue() < -100)\r\n col = \"BLUE\";\r\n else\r\n col = \"UNKNOWN\";\r\n\r\n telemetry.addData(\"Color\",col);\r\n */\r\n }", "title": "" }, { "docid": "7859a1c07f4973721f6d6880d262f32a", "score": "0.5939769", "text": "public static void main(String[] args) {\t\n\t//2. create an army of 5 robots.\nRobot[] army = new Robot[5];\nRandom rand = new Random();\n\t//3. use a for loop to initialize the robots.\nfor (int i = 0;i<army.length;i++) {\narmy[i] = new Robot();\narmy[i].setX(i*100+50);\narmy[i].setY(530);\n}\n\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\t//5. use another for loop to iterate through the array and make each robot move \n\t// a random amount less than 50.\nfor (int a = 0; a < army.length; a++) {\t\n\twhile (army[a].getY()>0) {\t\t\t\nfor (int j = 0; j < army.length; j++) {\n\tarmy[j].setSpeed(Integer.MAX_VALUE);\n\tarmy[j].move(rand.nextInt(5));\n\tif(army[j].getY()<=0) {\n\t\tSystem.out.println(\"Robot \"+j+\" wins! There's a party!\");\n\t\tSystem.exit(0);\n}\n}\n}\t\n}\n\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\n\t//7. declare that robot the winner and throw it a party!\n\t//8. try different races with different amounts of robots.\n\t//9. make the robots race around a circular track.\n}", "title": "" }, { "docid": "94026bfaf08985b6889e9f721fbfd825", "score": "0.5936771", "text": "public void robotInit() {\n \tchassis = new Drivetrain();\n \tmechanism = new Arm();\n \tmainCompressor = new Compressor(0);\n \t\n//Initialize Camera \t\n \tserver = CameraServer.getInstance();\n \t//server.setQuality(25);\n \tserver.startAutomaticCapture(\"cam0\",0);\n \t\n//Initialize Dash-board with radio buttons for different the autonomous \n \tchooser = new SendableChooser();\n \tchooser.addDefault(\"Move\", 1);\n \tchooser.addDefault(\"Move(Outake)\", 2);\n \tchooser.addDefault(\"Low Bar\", 3);\n \tchooser.addDefault(\"Low Bar(Outake)\", 4);\n \tchooser.addObject(\"Moat\", 5);\n \tchooser.addObject(\"Moat(Outake)\", 6);\n \tchooser.addObject(\"RoughTerrain\", 7);\n \tchooser.addObject(\"RoughTerrain(Outake)\", 8);\n \tchooser.addObject(\"RockWall\", 9);\n \tchooser.addObject(\"RockWall(Outake)\", 10);\n \tchooser.addObject(\"Portcullis\", 11);\n \tchooser.addObject(\"Portcullis(Outake)\", 12);\n \tchooser.addObject(\"Rampart\", 13);\n \tchooser.addObject(\"Rampart(Outake)\", 14);\n \tchooser.addObject(\"BRAVE!\", 15);\n \tchooser.addObject(\"LowGoal\", 16);\n \tchooser.addObject(\"Spy 188(Do not use)\", 17);\n \tchooser.addObject(\"Double Cross\", 18);\n \tSmartDashboard.putData(\"Autonomous Selector\", chooser);\n }", "title": "" }, { "docid": "39329665b6dfc72ea80d340a2414aea5", "score": "0.5929388", "text": "protected void execute()\r\n\t{\r\n\t\tSmartDashboard.putNumber(\"TurnWithGyro\", Robot.gyroSubsystem.GyroPosition());\r\n\t\tSmartDashboard.putNumber(\"Switch value\", Robot.pnuematicsSubsystem.leftLimitSwitch.getVoltage());\r\n\r\n\t\t/***************************\r\n\t\t * DRIVER CONTROLS\r\n\t\t ***************************/\r\n\r\n\t\t/*\r\n\t\t * Drive the robot arcade style. X-axis -- forward and reverse Y-axis --\r\n\t\t * turn left and right\r\n\t\t */\r\n\t\tdouble forward = Robot.joy1.getY();\r\n\t\tdouble turn = Robot.joy1.getX();\r\n\t\tRobot.driveSubsystem.arcadeDrive(forward, turn);\r\n\r\n\t\t// gear shifting\r\n\t\t// switch to high gear\r\n\t\tif (Robot.joy1.getRawButton(9))\r\n\t\t{\r\n\t\t\tRobot.driveSubsystem.changeToHighGear();\r\n\t\t}\r\n\r\n\t\t// switch to low gear\r\n\t\tif (Robot.joy1.getRawButton(10))\r\n\t\t{\r\n\t\t\tRobot.driveSubsystem.changeToLowGear();\r\n\t\t}\r\n\r\n\t\t// climb the rope\r\n\t\tif (Robot.joy1.getRawButton(8))\r\n\t\t{\r\n\t\t\tRobot.climberSubsystem.LiftOff();\r\n\t\t}\r\n\r\n\t\t// stop climing\r\n\t\telse\r\n\t\t{\r\n\t\t\tRobot.climberSubsystem.StopLift();\r\n\t\t}\r\n\r\n\t\t// Take rope off\r\n\t\tif (Robot.joy1.getRawButton(7))\r\n\t\t{\r\n\t\t\tRobot.climberSubsystem.Fall();\r\n\t\t}\r\n\r\n\t\t// stop moving\r\n\t\telse\r\n\t\t{\r\n\t\t\tRobot.climberSubsystem.StopLift();\r\n\t\t}\r\n\t\t/***************************\r\n\t\t * OPERATOR CONTROLS\r\n\t\t ***************************/\r\n\r\n\t\t// ball agitator\r\n\t\tdouble shaker = Robot.joyOp.getY();\r\n\t\tRobot.shooterSubsystem.shaker(shaker);\r\n\r\n\t\t// see if the ball gate needs to be opened to allow a ball into the\r\n\t\t// shooter\r\n\t\t// Robot.shooterSubsystem.GateControl();\r\n\r\n\t\t// open the arms holding the gear\r\n\t\tif (Robot.joyOp.getRawButton(2))\r\n\t\t{\r\n\t\t\tRobot.gearSubsystem.openArms();\r\n\t\t}\r\n\r\n\t\t// close the arms\r\n\t\tif (Robot.joyOp.getRawButton(3))\r\n\t\t{\r\n\t\t\tRobot.gearSubsystem.closeArms();\r\n\t\t}\r\n\r\n\t\t// spin the fuel pick up motor\r\n\t\tif (Robot.joyOp.getRawButton(5))\r\n\t\t{\r\n\t\t\tRobot.pickupSubsystem.PickUp();\r\n\t\t}\r\n\r\n\t\t// reverse the pickup motor\r\n\t\telse if (Robot.joyOp.getRawButton(6))\r\n\t\t{\r\n\t\t\tRobot.pickupSubsystem.SpitOut();\r\n\t\t}\r\n\r\n\t\t// stop spinning the pick up motor\r\n\t\telse\r\n\t\t{\r\n\t\t\tRobot.pickupSubsystem.StopPickUp();\r\n\t\t}\r\n\r\n\t\t// spin up the shoot wheel\r\n\t\tif (Robot.joyOp.getRawButton(1))\r\n\t\t{\r\n\t\t\tRobot.shooterSubsystem.shoot();\r\n\t\t\t// Robot.shooterSubsystem.GateControl();\r\n\t\t} else\r\n\t\t{\r\n\t\t\tRobot.shooterSubsystem.StopShoot();\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Once we have further functionality for buttons add it here/\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "91463d75335b1f5d92ff15ed9374bf2c", "score": "0.59282136", "text": "public static void main(String[] args) {\n\t\n\n\t//2. create an array of 5 robots.\nRobot [] robots = new Robot[5];\n\t//3. use a for loop to initialize the robots in your array.\nint y = 100;\nfor (int i = 0; i < robots.length; i++) {\n\trobots[i] = new Robot();\n\trobots[i].setSpeed(100);\n\trobots[i].turn(90);\nrobots[i].setY(y);\ny+=100;\nrobots[i].setX(101);\n}\n\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\n\t//5. use another for loop to iterate through the array and make each robot move \n\t// a random amount less than 50.\nRandom r = new Random();\nwhile (true) {\n\t\n\nfor (int i = 0; i < robots.length; i++) {\n\trobots[i].move(r.nextInt(9));\n\trobots[i].turn(-2);\n\tif (robots[i].getX()<=0) {\n\t\tJOptionPane.showMessageDialog(null, \"Robot \"+i+\" wins!\");\n\t\treturn;\n\t}\n\t\n}\n}\n//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\n\n\t//7. declare that robot the winner and throw it a party!\n\n\t//8. try different races with different amounts of robots.\n\n\t//9. make the robots race around a half circular track.\n\n}", "title": "" }, { "docid": "f56489147b98fafcee8d5458801a5bf9", "score": "0.59208673", "text": "public boolean run(Robot robot);", "title": "" }, { "docid": "55a072bc60ca0345b989a9362bda804f", "score": "0.59158915", "text": "public void robotInit() {\r\n\r\n\t\thkdrive.driveInit();\t\t//Initialize the HKDrive speed controllers\r\n\t\tliftMani.liftInit();\r\n\t\tmouthMani.mouthInit();\r\n\t\t//laser3.startMeasuring();\r\n\r\n\t\tCameraServer.getInstance().startAutomaticCapture();\r\n\t\tLedStrip.ledInit();\r\n\t\t//updateLidarDistance();\r\n\r\n\t\t// Auto mode strategies setup\r\n\t\tstrategy.addDefault(\"Just Cross Auto Line Strategy (1)\", new Integer(1));\r\n\t\tstrategy.addObject(\"Simple Switch Strategy(2)\", new Integer(2));\r\n\t\tstrategy.addObject(\"Smart Switch Strategy (3)\", new Integer(3));\r\n\t\tstrategy.addObject(\"Double Switch Angled (4)\", new Integer(4));\r\n\t\tstrategy.addObject(\"Smart Scale Strategy (5)\", new Integer(5));\r\n\t\tstrategy.addObject(\"Double Switch (6)\", new Integer(6));\r\n\t\tSmartDashboard.putData(\"strategy selector\", strategy); \r\n\r\n\t\tposition.addDefault(\"Left (1)\", new Integer(1));\r\n\t\tposition.addObject(\"Middle (2)\", new Integer(2));\r\n\t\tposition.addObject(\"Right (3)\", new Integer(3));\r\n\t\tSmartDashboard.putData(\"position selector\", position); \r\n\t}", "title": "" }, { "docid": "b296c03db70b378e73272b33b06f9dda", "score": "0.5915304", "text": "@Override\r\n\tpublic void robotInit() {\r\n\t\tSystem.out.println(\"Calling robotInit\");\r\n\t\t// Initialize auto mode manager\r\n\t\tAutoModeManager.init();\r\n\r\n\t\t// Initialize joystick control\r\n\t\tjoystickMgr = new JoystickManager();\r\n\t\tjoystickMgr.initController();\r\n\r\n\t\t server = CameraServer.getInstance();\r\n\t\t server.setQuality(100);\r\n\t\t server.startAutomaticCapture(\"cam0\");\r\n\r\n\t\tdriveTrain = new DriveTrainManager();\r\n\t\tdriveTrain.robotInit();\r\n\t\ttankDriver = new TankDriver(joystickMgr, driveTrain);\r\n\t\t//distanceHndlr = new DistanceHandler();\r\n\r\n\t\tboulderHndlr = new BoulderHandler(joystickMgr);\r\n\r\n\t\t// attempt for targeting overlay\r\n//\t\tframe = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\r\n//\r\n//\t\t// the camera name (ex \"cam0\") can be found through the roborio web\r\n//\t\t// interface\r\n//\t\tsession = NIVision.IMAQdxOpenCamera(\"cam0\", NIVision.IMAQdxCameraControlMode.CameraControlModeController);\r\n//\t\tNIVision.IMAQdxConfigureGrab(session);\r\n\t}", "title": "" }, { "docid": "4565b35a600f52492cda836ec3da78c2", "score": "0.59102845", "text": "public void runRobot() {\n\t\tcollect.collectBL();\n\t\tmove.turn90right();\n\t\tr.runEncodedMotor(RXTXRobot.MOTOR1, 100, 75, RXTXRobot.MOTOR2, 100, 75);\n\t\tr.sleep(500);\n\t\tcollect.collectBR();\n\t\tmove.turn90left();\t\n\t\tr.sleep(500);\n\t\tcollect.collectTR();\n\t\tmove.turn90left();\n\t}", "title": "" }, { "docid": "f648b25007738a869ad523e4e3c0cc2c", "score": "0.5909399", "text": "@Override\n\tpublic void robotInit() {\n\t\tboilerVisionServer.addVisionUpdateReceiver(BoilerVisionProcessor.getInstance());\n\t\tmEnabledLooper.register(BoilerVisionProcessor.getInstance());\n\t\tBoilerVisionServer.getInstance();\n\t\tled = new LEDController();\n\t\tled.initializeLEDs();\n\t\tdrive = new Drive();\n\t\tdrivehelp = new DriveHelper(drive, 0.1, 0.15); // Xbox 360\n\t\tsmartDrive = new SmartDrive(drive);\n\t\txbox = new Controllers();\n\t\tpdp = new PowerDistributionPanel();\n\t\tclimber = new Climber(pdp);\n\t\tshooter = new Shooter();\n\t\tconveyer = new Conveyer();\n\t\tintake = new Intake(drive, led);\n\t\tindexer = new Indexing_System();\n\t\tgearmanip = new GearManipulator(drive, intake, led);\n\t\tagitator = new Agitator();\n\t\tintakeLed = new SolenoidLED();\n\t\t// SmartDashboard.putNumber(\"Set Shooter RPM\", 3125.0);\n\t\tSmartDashboard.putNumber(\"Auto Shooting Time\", 4.5);\n\t\tboilerVisionServer.startPhone();\n\t\tboilerVisionServer.startApp(RobotMap.CameraSerial[RobotMap.cameraNumber]);\n\t\tatSpeed = false;\n\t\tshooting = false;\n\t\tauto = new AutonomousManager(drive, smartDrive, gearmanip, intake, shooter, indexer, conveyer, led, agitator);\n\t\tLogging.init();\n\t\tdrive.resetAngle();\n\t\tdrive.resetEncoders();\n\t\ttimer = new Timer();\n\t}", "title": "" }, { "docid": "3e55bde9b4c95dd6becb6679210980e1", "score": "0.5904378", "text": "@Override\n\tpublic String getRobotName() {\n\t\t\treturn \"Translabot\";\n\t}", "title": "" }, { "docid": "428f2bb478d3322a960c11d9d5dce776", "score": "0.59037083", "text": "public void setSensors() {\n switch (robotDir) {\n case NORTH:\n SRFrontLeft.setSensor(this.posRow + 1, this.posCol - 1, this.robotDir);\n SRFrontCenter.setSensor(this.posRow + 1, this.posCol, this.robotDir);\n SRFrontRight.setSensor(this.posRow + 1, this.posCol + 1, this.robotDir);\n SRLeft.setSensor(this.posRow + 1, this.posCol - 1, findNewDirection(MOVEMENT.LEFT));\n LRLeft.setSensor(this.posRow, this.posCol - 1, findNewDirection(MOVEMENT.LEFT));\n SRRight.setSensor(this.posRow + 1, this.posCol + 1, findNewDirection(MOVEMENT.RIGHT));\n break;\n case EAST:\n SRFrontLeft.setSensor(this.posRow + 1, this.posCol + 1, this.robotDir);\n SRFrontCenter.setSensor(this.posRow, this.posCol + 1, this.robotDir);\n SRFrontRight.setSensor(this.posRow - 1, this.posCol + 1, this.robotDir);\n SRLeft.setSensor(this.posRow + 1, this.posCol + 1, findNewDirection(MOVEMENT.LEFT));\n LRLeft.setSensor(this.posRow + 1, this.posCol, findNewDirection(MOVEMENT.LEFT));\n SRRight.setSensor(this.posRow - 1, this.posCol + 1, findNewDirection(MOVEMENT.RIGHT));\n break;\n case SOUTH:\n SRFrontLeft.setSensor(this.posRow - 1, this.posCol + 1, this.robotDir);\n SRFrontCenter.setSensor(this.posRow - 1, this.posCol, this.robotDir);\n SRFrontRight.setSensor(this.posRow - 1, this.posCol - 1, this.robotDir);\n SRLeft.setSensor(this.posRow - 1, this.posCol + 1, findNewDirection(MOVEMENT.LEFT));\n LRLeft.setSensor(this.posRow, this.posCol + 1, findNewDirection(MOVEMENT.LEFT));\n SRRight.setSensor(this.posRow - 1, this.posCol - 1, findNewDirection(MOVEMENT.RIGHT));\n break;\n case WEST:\n SRFrontLeft.setSensor(this.posRow - 1, this.posCol - 1, this.robotDir);\n SRFrontCenter.setSensor(this.posRow, this.posCol - 1, this.robotDir);\n SRFrontRight.setSensor(this.posRow + 1, this.posCol - 1, this.robotDir);\n SRLeft.setSensor(this.posRow - 1, this.posCol - 1, findNewDirection(MOVEMENT.LEFT));\n LRLeft.setSensor(this.posRow - 1, this.posCol, findNewDirection(MOVEMENT.LEFT));\n SRRight.setSensor(this.posRow + 1, this.posCol - 1, findNewDirection(MOVEMENT.RIGHT));\n break;\n }\n\n }", "title": "" }, { "docid": "cb5501f01c43dc627f783b0a4be101de", "score": "0.5903357", "text": "@Override\n public void robotInit() {\n\n /***********claw initialization********/\n claw1 = new PWMVictorSPX(9);\n claw2 = new PWMVictorSPX(4);\n \n \n mstick = new Joystick(0);\n //limitSwitch = new DigitalInput(2);\n }", "title": "" }, { "docid": "9e1520c3727ecb295e7bf7ef54b6d8d6", "score": "0.58969045", "text": "@Override\n public void robotInit() {\n log.debug(\"Begin robotInit\");\n\n //\n // Initialize subsystems and add to dashboard.\n //\n m_subsystemPneumatics = Subsystem_Pneumatics.create();\n m_subsystemDriveTrain = Subsystem_DriveTrain.create();\n\n //\n // Init autonomous command.\n //\n this.m_autonomousCommand = new Command_DriveManually();\n\n //\n // Init driver control button commands\n //\n m_oi.getBumperRight().whenPressed(new Command_ToggleOpenLoopRampRate());\n \n //\n // Dashboard widgets.\n //\n SmartDashboard.putData(\"Extend Both Axles Start\", new Command_ExtendFloatAxleAndFootStart());\n SmartDashboard.putData(\"Extend Both Axles Stop\", new Command_ExtendFloatAxleAndFootStop());\n\n SmartDashboard.putData(\"Retract Both Axles Start\", new Command_RetractFloatAxleAndFootStart());\n SmartDashboard.putData(\"Retract Both Axles Stop\", new Command_RetractFloatAxleAndFootStop());\n\n SmartDashboard.putData(\"Extend Middle Axle Start\", new Command_ExtendMiddleAxleStart());\n SmartDashboard.putData(\"Extend Middle Axle Stop\", new Command_ExtendMiddleAxleStop());\n\n SmartDashboard.putData(\"Retract Middle Axle Start\", new Command_RetractMiddleAxleStart());\n SmartDashboard.putData(\"Retract Middle Axle Stop\", new Command_RetractMiddleAxleStop());\n\n SmartDashboard.putData(\"Extend Float Axle Start\", new Command_ExtendFloatAxleStart());\n SmartDashboard.putData(\"Extend Float Axle Stop\", new Command_ExtendFloatAxleStop());\n\n SmartDashboard.putData(\"Retract Float Axle Start\", new Command_RetractFloatAxleStart());\n SmartDashboard.putData(\"Retract Float Axle Stop\", new Command_RetractFloatAxleStop());\n\n SmartDashboard.putData(\"Extend Foot Start\", new Command_ExtendFootStart());\n SmartDashboard.putData(\"Extend Foot Stop\", new Command_ExtendFootStop());\n\n SmartDashboard.putData(\"Retract Foot Start\", new Command_RetractFootStart());\n SmartDashboard.putData(\"Retract Foot Stop\", new Command_RetractFootStop());\n\n SmartDashboard.putData(\"Move Mass Forward Start\", new Command_MoveMassForwardStart());\n SmartDashboard.putData(\"Move Mass Forward Stop\", new Command_MoveMassForwardStop());\n\n SmartDashboard.putData(\"Move Mass Back Start\", new Command_MoveMassBackStart());\n SmartDashboard.putData(\"Move Mass Back Stop\", new Command_MoveMassBackStop());\n\n SmartDashboard.putData(\"Start Compressor\", new Command_StartCompressor());\n SmartDashboard.putData(\"Stop Compressor\", new Command_StopCompressor());\n\n SmartDashboard.putData(\"Move Forward 1 Inch\", new Command_MoveForwardOneInch());\n SmartDashboard.putData(\"Move Back 1 Inch\", new Command_MoveBackOneInch());\n\n SmartDashboard.putData(\"Climb Box Step1 - Prepare\", new Command_ClimbGoldStep1_Prepare());\n SmartDashboard.putData(\"Climb Box Step2 - Raise Bot\", new Command_ClimbGoldStep2_RaiseRobot());\n SmartDashboard.putData(\"Climb Box Step3 - Fixed On\", new Command_ClimbGoldStep3_GetFixedAxleOn());\n SmartDashboard.putData(\"Climb Box Step4 - Middle On\", new Command_ClimbGoldStep4_GetMiddleAxleOn());\n SmartDashboard.putData(\"Climb Box Step5 - Float On\", new Command_ClimbGoldStep5_GetFloatAxleOn());\n SmartDashboard.putData(\"Climb Box StepX - Float On Helper\", new Command_ClimbGoldStepX_GetFloatAxleOnHelper());\n\n SmartDashboard.putData(\"Reset the Robot\", new Command_ResetRobot());\n SmartDashboard.putData(\"Pulse Extend Foot\", new Command_PulseExtendFoot(0.25d));\n SmartDashboard.putData(\"Pulse Extend Float\", new Command_PulseExtendFloatAxle(0.25d));\n\n SmartDashboard.putData(\"Scheduler\", Scheduler.getInstance());\n\n this.camera = AIMRoboticsCamera.getInstance();\n\n log.debug(\"End robotInit\");\n }", "title": "" }, { "docid": "73e62959ea1c20cbefe51f27bc0f42fc", "score": "0.58771795", "text": "public void robotInit() {\n //Instantialize objects for RobotTemplate\n \n //driverStation = new DriverStation();\n rightStick = new Joystick(1);\n leftStick = new Joystick(2);\n userMessages = DriverStationLCD.getInstance();\n \n //2-Wheel tank drive\n //spikeA = new Relay(1);\n drivetrain = new RobotDrive(1,2);\n launcher = new Jaguar(5);\n //***CHANGE THESE PLACEHOLDER QUESTIONMARKS***\n //once jaguars are installed\n //launcher2 = new Jaguar(?);\n //launcher3 = new Jaguar(?);\n /*pistonUp = new Solenoid(1);\n pistonDown = new Solenoid(2);\n sol3 = new Solenoid(3);\n sol4 = new Solenoid(4);\n sol5 = new Solenoid(5);*/\n \n //4-Wheel tank drive\n //Motors must be set in the following order:\n //LeftFront=1; LeftRear=2; RightFront=3; RightRear=4;\n //drivetrain = new RobotDrive(1,2,3,4);\n //drivetrain.tankDrive(leftStick, rightStick);\n /*pistonDown.set(true);\n pistonUp.set(true);*/\n switchA = new DigitalInput(1);\n switchB = new DigitalInput(2);//remember to check port\n }", "title": "" }, { "docid": "9d3d7de0842ea00d9f2f6d3dabc29d66", "score": "0.5874201", "text": "public Environment() {\n\t\tthis.light1IsOn = true;\n\t\tthis.light2IsOn = true;\n\t\t\n\t\tthis.centralstation = CentralStation.getInstance();\n\t\tthis.mapSize = 25.0;\n\t\tthis.obstacleHeight = 2;\n\t\trobot = new Robot[4];\n\t\t\n\t\t\n robot[0] = new Robot(new Vector3d(11, 0, -11), \"Robot-1\",1);\n robot[1] = new Robot(new Vector3d(-11, 0, -11), \"Robot-2\", 2);\n robot[2] = new Robot(new Vector3d(-11, 0, 11), \"Robot-3\", 3);\n robot[3] = new Robot(new Vector3d(11, 0, 11), \"Robot-4\", 4);\n \n //subscribes the robots to the subject entity.\n\t\tfor (int i = 0; i < 4; i++)\n\t\t{\n\t\t\tthis.centralstation.attach(robot[i], i);\n\t\t\tthis.add(robot[i]);\n\t\t}\n \n\t\t//Walls\n Wall w5 = new Wall(new Vector3d(0, 0, -11.65), 25, this.obstacleHeight, this);\n w5.setColor(new Color3f(Color.WHITE));\n //w4.rotate90(1);\n add(w5);\n Wall w6 = new Wall(new Vector3d(0, 0, 11.65), 25, this.obstacleHeight, this);\n w6.setColor(new Color3f(Color.WHITE));\n //w4.rotate90(1);\n add(w6);\n Wall w7 = new Wall(new Vector3d(-11.65, 0, 0), 25, this.obstacleHeight, this);\n w7.setColor(new Color3f(Color.WHITE));\n w7.rotate90(1);\n add(w7);\n Wall w8 = new Wall(new Vector3d(11.65, 0, 0), 25, this.obstacleHeight, this);\n w8.setColor(new Color3f(Color.WHITE));\n w8.rotate90(1);\n add(w8);\n \n ///Boxes\n Box b1 = new Box(new Vector3d(2, 0 , 4), new Vector3f(1, 1, 1), this);\n b1.setColor(new Color3f(Color.GREEN));\n add(b1);\n \n Box b2 = new Box(new Vector3d(-6, 0 , -9), new Vector3f(1, 1, 1), this);\n b2.setColor(new Color3f(Color.GREEN));\n add(b2);\n \n Box b3 = new Box(new Vector3d(1, 0 , -9), new Vector3f(1, 1, 1), this);\n b3.setColor(new Color3f(Color.BLUE));\n add(b3);\n \n Box b4 = new Box(new Vector3d(6, 0 , 4), new Vector3f(1, 1, 1), this);\n b4.setColor(new Color3f(Color.BLUE));\n add(b4);\n \n Box b5 = new Box(new Vector3d(8, 0 , -7), new Vector3f(1, 1, 1), this);\n b5.setColor(new Color3f(Color.YELLOW));\n add(b5);\n \n Box b6 = new Box(new Vector3d(-1, 0 , 2), new Vector3f(1, 1, 1), this);\n b6.setColor(new Color3f(Color.RED));\n add(b6);\n \n Box b7 = new Box(new Vector3d(-5, 0 , 10), new Vector3f(1, 1, 1), this);\n b7.setColor(new Color3f(Color.RED));\n add(b7);\n \n Box b9 = new Box(new Vector3d(-5, 0 , -6), new Vector3f(1, 1, 1), this);\n b9.setColor(new Color3f(Color.YELLOW));\n add(b9);\n \n Box b10 = new Box(new Vector3d(8, 0 , 2), new Vector3f(1, 1, 1), this);\n b10.setColor(new Color3f(Color.CYAN));\n add(b10);\n \n Box b11 = new Box(new Vector3d(-4, 0 , 4), new Vector3f(1, 1, 1), this);\n b11.setColor(new Color3f(Color.CYAN));\n add(b11);\n \n Box b12 = new Box(new Vector3d(-8, 0 , 0), new Vector3f(1, 1, 1), this);\n b12.setColor(new Color3f(Color.MAGENTA));\n add(b12);\n \n Box b13 = new Box(new Vector3d(4, 0 , -7), new Vector3f(1, 1, 1), this);\n b13.setColor(new Color3f(Color.MAGENTA));\n add(b13);\n\t}", "title": "" }, { "docid": "08e65f6419435b20ee77fbe56b7fa6d7", "score": "0.5871956", "text": "@Override\n public void robotInit() {\n shifters_Subsystem = EvoShifters_Subsystem.getInstance();\n drivetrain_Subsys = Drivetrain_Subsys.getInstance();\n arm_Subsys = Arm_Subsys.getInstance();\n intake_Subsys = Intake_Subsys.getInstance();\n superstructure_Subsys = Superstructure_Subsys.getInstance();\n wrist_Subsys = Wrist_Subsys.getInstance();\n hatchIntake = HatchIntake.getInstance();\n limeLight = new Vision();\n m_oi = new OI();\n // chooser.addOption(\"My Auto\", new MyAutoCommand());\n SmartDashboard.putData(\"Auto mode\", m_chooser);\n arm_Subsys.zeroSensors();\n wrist_Subsys.resetEncoder();\n CameraServer.getInstance().startAutomaticCapture();\n }", "title": "" }, { "docid": "e2f4c043f6fee8c13203fb48516ace1d", "score": "0.5871186", "text": "public static void main(String[] args) {\n\t\t//2. create an array of 5 robots.\nRobot rob[] = new Robot[50];\nboolean endRace = false;\n\t\t//3. use a for loop to initialize the robots.\n for (int i = 0; i < rob.length; i++) {\n\trob[i] = new Robot(\"mini\");\n\t}\n\t\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\tfor (int i = 0; i < rob.length; i++) {\n\t\trob[i].setX(30 * i + 20);\n\t\trob[i].setY(580);\n\t}\n Random rand = new Random();\n\t\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\nwhile (!endRace) {\n\t//5. use another for loop to iterate through the array and make each robot move less than 50\n\tfor (int i = 0; i < rob.length; i++) {\n\t\trob[i].setSpeed(10);\n\t int movement = rand.nextInt(50);\n\t\t\trob[i].move(movement);\t\n\t\t\tif (rob[i].getY() <= 0) {\n\t\t\t\tendRace = true;\n\t\t\t\t//7. declare that robot the winner and throw it a party!\n\t\t\tSystem.out.println(\"ROBOT \" + i + \" HAS WON\");\n\t\t\t\tbreak;\n\t\t\t}\n\t}\n}\n\t\t\n\t\t//8. try different races with different amounts of robots.\n \t\n\t //9. make the robots race around a circular track.\n\n\t}", "title": "" }, { "docid": "338e7e9d5929664ae234411d8583c2b1", "score": "0.5870995", "text": "public void robotInit() \r\n {\r\n //Get the chassis object.\r\n _chassis = Chassis.getInstance();\r\n \r\n //Puts the PID constants into the Smart Dashboard so they are dynamicly changable.\r\n SmartDashboard.putNumber( \" P-Constant: \", _KP );\r\n SmartDashboard.putNumber( \" I-Constant: \", _KI );\r\n SmartDashboard.putNumber( \" D-Constant: \", _KD );\r\n \r\n //Get the mechanism object.\r\n _mechanism = Mechanism.getInstance();\r\n \r\n //Turns the camera light on.\r\n _mechanism.lightOn();\r\n \r\n //Puts the maximum arm up and down speeds into the SmartDashboard\r\n SmartDashboard.putNumber( \" Arm Up-Speed: \" , _ARM_UP_SPEED );\r\n SmartDashboard.putNumber( \" Arm Down-Speed: \" , _ARM_DOWN_SPEED );\r\n \r\n //Puts the minimum and maximum arm extremes into the SmartDashboard.\r\n SmartDashboard.putNumber( \" Arm Maximum Extreme: \" , _MAX_ARM_EXTREME );\r\n SmartDashboard.putNumber( \" Arm Minimum Extreme: \" , _MIN_ARM_EXTREME );\r\n \r\n //Puts the middle arm position constants into the SmartDashboard.\r\n SmartDashboard.putNumber( \" Arm Middle Up Position: \" , _ARM_MIDDLE_UP_POSITION );\r\n SmartDashboard.putNumber( \" Arm Middle Down Position: \" , _ARM_MIDDLE_DOWN_POSITION );\r\n SmartDashboard.putNumber( \" Arm Middle Up Speed: \" , _ARM_MIDDLE_UP_SPEED );\r\n SmartDashboard.putNumber( \" Arm Middle Down Speed: \" , _ARM_MIDDLE_DOWN_SPEED );\r\n \r\n //Puts the arm shooting delay into the SmartDashboard.\r\n SmartDashboard.putNumber( \" Arm Shooting Delay: \" , _DELAY );\r\n \r\n //Puts the expo of the driver into the SmartDashboard.\r\n SmartDashboard.putNumber( \" Driver Expo: \" , _DRIVEREXPO );\r\n \r\n //Puts the rotational exponential deadzone into the SmartDashboard.\r\n SmartDashboard.putNumber( \" Rot Dead-Zone: \" , _ROT_DEADZONE );\r\n \r\n //Puts the autonomous constants into the Smart Dashboard.\r\n SmartDashboard.putNumber( \" Auto-Center Turn Speed: \" , _AUTO_CENTER_TURN_SPEED );\r\n SmartDashboard.putNumber( \" Auto-Center Turn Time: \" , _AUTO_CENTER_TURN_TIME );\r\n SmartDashboard.putNumber( \" Auto-Center Forward Speed: \" , _AUTO_CENTER_FORWARD_SPEED );\r\n SmartDashboard.putNumber( \" Auto-Center Forward Distance: \" , _AUTO_CENTER_FORWARD_DISTANCE );\r\n SmartDashboard.putNumber( \" Auto-Side Forward Speed: \" , _AUTO_SIDE_FORWARD_SPEED );\r\n SmartDashboard.putNumber( \" Auto-Side Forward Distance: \" , _AUTO_SIDE_FORWARD_DISTANCE );\r\n \r\n //Initializes the chooser devices.\r\n _driverChooser = new SendableChooser();\r\n _driveTypeChooser = new SendableChooser();\r\n _autoCommandChooser = new SendableChooser();\r\n \r\n //Assigns a index number to each Driver type. The Airplane Controller is the default selection.\r\n _driverChooser.addDefault( \"Airplane Controller\" , new Integer( 0 ) );//0 for the Airplane Controller.\r\n _driverChooser.addObject( \"Attack Three\" , new Integer( 1 ) );//1 for the Attack Three joysticks.\r\n _driverChooser.addObject( \"XBox Controller\" , new Integer( 2 ) );//2 for the XBox Controller.\r\n \r\n //Assigns a index number to each drive type. The Normal Holo Drive is the default selection.\r\n _driveTypeChooser.addDefault( \"Normal Holo Driver\" , new Integer( 1 ) );//1 for the Normal Holo Dirve.\r\n _driveTypeChooser.addObject( \"Relative Holo Drive\" , new Integer( 0 ) );//0 for the Relative Holo Drive.\r\n \r\n //Adds each AutoCommand into the Smart Dashboard.\r\n _autoCommandChooser.addDefault( \"Do Nothing\" , new AutoNothing() );\r\n _autoCommandChooser.addObject( \"Center Auto Command\" , new AutoCenter() );\r\n _autoCommandChooser.addObject( \"Side Auto Command\" , new AutoSide() );\r\n \r\n //Puts the chooser devices into the Smart Dashboard.\r\n SmartDashboard.putData( \"Driver Controller\" , _driverChooser );\r\n SmartDashboard.putData( \"Drive Type\" , _driveTypeChooser );\r\n SmartDashboard.putData( \"Auto Command\" , _autoCommandChooser );\r\n \r\n //Finds the assigned index value of the driver type choosen\r\n int index = ( (Integer) _driverChooser.getSelected() ).intValue();\r\n \r\n //The type of the driver will be choosen from the given index value from the Smart Dashboard.\r\n switch( index )\r\n {\r\n //The XBox Controller if the index is 2.\r\n case 2:\r\n _driver = XBoxController.getInstance();\r\n break;\r\n \r\n //The Attack Three joysticks if the index is 1.\r\n case 1:\r\n _driver = AttackThree.getInstance();\r\n break;\r\n \r\n //The Airplane Controller if the index is 0 (or anything else).\r\n default:\r\n case 0:\r\n _driver = AirplaneController.getInstance();\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "ef5863075d03e1c300c7f521852462c8", "score": "0.58704215", "text": "@SuppressWarnings(\"unused\")\n public static void run(RobotController rc) throws GameActionException {\n\n // This is the RobotController object. You use it to perform actions from this robot,\n // and to get information on its current status.\n RobotPlayer.rc = rc;\n\n turnCount = 0;\n\n map_width = rc.getMapWidth();\n map_height = rc.getMapHeight();\n\n blockchain_read_index = Math.max(rc.getRoundNum()-1,2);\n blockchain_password = 599 + rc.getTeam().ordinal();\n\n possible_symmetries.add(Symmetry.HORIZONTAL);\n possible_symmetries.add(Symmetry.VERTICAL);\n possible_symmetries.add(Symmetry.ROTATIONAL);\n\n if (rc.getType() == RobotType.HQ){\n HQ_loc = rc.getLocation();\n int mirror_x = map_width - HQ_loc.x - 1;\n int mirror_y = map_height - HQ_loc.y - 1;\n symmetric_HQ_locs[Symmetry.HORIZONTAL.ordinal()] = new MapLocation(HQ_loc.x, mirror_y);\n symmetric_HQ_locs[Symmetry.VERTICAL.ordinal()] = new MapLocation(mirror_x, HQ_loc.y);\n symmetric_HQ_locs[Symmetry.ROTATIONAL.ordinal()] = new MapLocation(mirror_x, mirror_y);\n }\n\n System.out.println(\"I'm a \" + rc.getType() + \" and I just got created!\");\n\n for (int i = 0; i != map_width; i++)\n {\n for (int j = 0; j != map_height; j++)\n {\n map[i][j] = new Square();\n }\n }\n\n while (true) {\n turnCount += 1;\n // Try/catch blocks stop unhandled exceptions, which cause your robot to explode\n try {\n // Here, we've separated the controls into a different method for each RobotType.\n // You can add the missing ones or rewrite this into your own control structure.\n // if (enemy_HQ_loc != null)\n // rc.setIndicatorDot(enemy_HQ_loc, 0,0,0);\n\n System.out.println(\"I'm a \" + rc.getType() + \"! Location \" + rc.getLocation());\n switch (rc.getType()) {\n case HQ: runHQ(); break;\n case MINER: runMiner(); break;\n case REFINERY: runRefinery(); break;\n case VAPORATOR: runVaporator(); break;\n case DESIGN_SCHOOL: runDesignSchool(); break;\n case FULFILLMENT_CENTER: runFulfillmentCenter(); break;\n case LANDSCAPER: runLandscaper(); break;\n case DELIVERY_DRONE: runDeliveryDrone(); break;\n case NET_GUN: runNetGun(); break;\n }\n\n // Clock.yield() makes the robot wait until the next turn, then it will perform this loop again\n Clock.yield();\n\n } catch (Exception e) {\n System.out.println(rc.getType() + \" Exception\");\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "687cb0d83cd028468144d7563740c6a0", "score": "0.5857403", "text": "public Robot(){\n\t\tsetPosition(1);\n\t}", "title": "" }, { "docid": "b49d7e21aa165241785b572d0137ba50", "score": "0.5842528", "text": "public interface RobotBuilder {\n void buildHead();\n void buildBody();\n void buildArms();\n void buildLegs();\n\n Robot getRobot();\n}", "title": "" }, { "docid": "c105bb5dfe564f549c2aa0f46dc35de9", "score": "0.58371913", "text": "public OI() {\n driverStick = new Joystick(driverJoystick_Port); \n rightDriverTrigger = new JoystickButton(driverStick, rightDriverTrigger_Port);\n rightDriverTrigger.whenPressed(new ClimberGroupPassBar()); \n //leftDriverTrigger = new JoystickButton(driverStick, leftDriverTrigger_Port);\n //leftDriverTrigger.whenPressed(new ClimberEmergencyStop());\n //driverButtonA = new JoystickButton(driverStick, driverButtonA_Port);\n //riverButtonA.whenPressed(new ClimberGroup1()); \n //driverButtonY = new JoystickButton(driverStick, driverButtonY_Port);\n //driverButtonY.whenPressed(new ClimberGroup2());\n \n \n //shooterStick = new Joystick(shooterJoystickPort); \n //rightShooterTrigger = new JoystickButton(shooterStick, rightShooterTrigger_Port);\n //rightShooterTrigger.whenPressed(new ShooterGroupFire()); // add preset angles for the four buttons?\n }", "title": "" }, { "docid": "1b37ea526fa122ff5ab0f972f23c28be", "score": "0.58258295", "text": "public void robotInit() {\r\n forwardLimitSwitch = new DigitalInput(0);\r\n reverseLimitSwitch = new DigitalInput(1);\r\n upLimitSwitch = new DigitalInput(2);\r\n downLimitSwitch = new DigitalInput(3);\r\n DriveTrain = new RobotDrive(7,8);\r\n IntakeDrive = new RobotDrive(2,9);\r\n LebronJames = new RobotDrive(1,6);\r\n NotArm = new RobotDrive(5,0);\r\n \tLeftJoystick = new Joystick(0);\r\n RightJoystick = new Joystick(1);\r\n\r\n \r\n CameraServer.getInstance().startAutomaticCapture();\r\n //CameraServer.getInstance().startAutomaticCapture(1);\r\n nintendoDS = new DoubleSolenoid(0,1);\r\n Compressor c = new Compressor(0);\r\n\r\n \tc.setClosedLoopControl(true);\r\n \t/**AnalogOutput RedOut = new AnalogOutput(0);\r\n \tAnalogOutput GreenOut = new AnalogOutput(1);\r\n \tAnalogOutput BlueOut = new AnalogOutput(2);**/\r\n \t\r\n \t\r\n \tSystem.out.println(\"In robotInit\");\r\n }", "title": "" }, { "docid": "4aae0bac1940f04898bb9573626e3cfd", "score": "0.58251846", "text": "@Override\n public State run(RobotController rc, Knowledge knowledge) throws GameActionException {\n Robot[] robots = rc.senseNearbyGameObjects(Robot.class);\n for (Robot r : robots) {\n if (r.getTeam() == rc.getTeam()) {\n MapLocation l = rc.senseLocationOf(r);\n if (rc.getLocation().isAdjacentTo(l)) {\n\n rc.transferFlux(rc.senseLocationOf(r), r.getRobotLevel(),\n GameConstants.UNIT_UPKEEP * 2);\n }\n }\n }\n\n List<MapLocation> potentialLocations = CollectionUtils.subtract(\n Arrays.asList(rc.senseCapturablePowerNodes()), knowledge.enemyTowers);\n if (potentialLocations.size() > 0) {\n knowledge.pathGoal = potentialLocations.get(0);\n }\n\n if (!rc.isMovementActive()) {\n\n if (rc.canSenseSquare(knowledge.pathGoal)) {\n GameObject objectAtLocation = rc.senseObjectAtLocation(knowledge.pathGoal,\n RobotLevel.ON_GROUND);\n if (objectAtLocation != null\n && objectAtLocation.getTeam().equals(rc.getTeam().opponent())) {\n knowledge.enemyTowers.add(knowledge.pathGoal);\n }\n }\n\n potentialLocations = CollectionUtils.subtract(\n Arrays.asList(rc.senseCapturablePowerNodes()), knowledge.enemyTowers);\n if (potentialLocations.size() > 0) {\n knowledge.pathGoal = potentialLocations.get(0);\n }\n\n // first case: need to keep moving\n if (!rc.getLocation().isAdjacentTo(knowledge.pathGoal)) {\n // potentially spawn a dude\n if (rc.canMove(rc.getDirection()) && rc.getFlux() > RobotType.SOLDIER.spawnCost) {\n rc.spawn(RobotType.SOLDIER);\n } else {\n\n \tMovementAction ma = GroundPathfinder.nextStep(rc, knowledge);\n try {\n \tma.execute(rc);\n } catch (GameActionException e) {\n e.printStackTrace();\n }\n }\n }\n // second case: need to build tower\n else {\n if (rc.getFlux() >= RobotType.TOWER.spawnCost\n && rc.senseObjectAtLocation(rc.getLocation().add(rc.getDirection()),\n RobotLevel.ON_GROUND) == null) {\n rc.spawn(RobotType.TOWER);\n knowledge.pathGoal = rc.senseCapturablePowerNodes()[rc.getRobot().getID()\n % rc.senseCapturablePowerNodes().length];\n }\n }\n }\n return this;\n }", "title": "" }, { "docid": "c5ba06874b5238c5ce1539547357029c", "score": "0.58192", "text": "@Override\n\tpublic void chocarContra(Elemento elemento) {\t\n\t\telemento.chocarContraRobot(this); //robot\t\t\n\t}", "title": "" }, { "docid": "8df0bb27a8120371ce72f279dd408e63", "score": "0.5815815", "text": "public List<Robot> getRobots() {\n return robots;\n }", "title": "" }, { "docid": "d6e3f08840780d60906cd9d1f664c9c8", "score": "0.5807892", "text": "@Override\n public void robotInit() {\n\n FlightStickDrive.getInstance();\n DriveTrain.getInstance();\n OI.getInstance();\n\n System.out.println(\"Robot initialized\");\n }", "title": "" }, { "docid": "71d5948cb87f306d4511912acb2ba0b3", "score": "0.5807684", "text": "private void setRobot(String str){\n robot = str;\n Log.v(TAG, \"Setting robot to \" + robot);\n }", "title": "" }, { "docid": "847ced4d500b0fad5cf004b31a0b70b9", "score": "0.5806515", "text": "public static void main(String[] args) {\n Robot robot = new Robot(0,0,100);\n\n\n\n for(int k = 0; k < 4; k++){\n robot.go_up();\n\n }\n\n for(int j =0; j < 6; j++){\n robot.go_right();\n }\n for(int m = 0; m < 2; m++){\n robot.go_down();\n }\n\n\n\n\n /* robot.go_up();\n robot.go_up();\n robot.go_up();\n robot.go_up();\n robot.go_right();\n robot.go_right();\n robot.go_right();\n robot.go_right();\n robot.go_right();\n robot.go_right();\n robot.go_up();\n robot.go_up();*/\n }", "title": "" }, { "docid": "b898e5e63ce66ef247a44bbcd7a724fb", "score": "0.58063996", "text": "public int getRobotId() {\n\t\treturn robotId;\n\t}", "title": "" }, { "docid": "6967d474b83c0da551a07c2483cce4f5", "score": "0.5794759", "text": "private static void go() {\n\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\tRobotArmSimulator ex = new RobotArmSimulator();\n\t\tIRobotArmDirectControl robotarm = ex.init();\n\t\trun(robotarm);\n\t\t\n//\t\tcontroller.removeListener(ll);\n\t}", "title": "" }, { "docid": "d841c3130b8105742134878f0b99dfeb", "score": "0.5784582", "text": "public void runOpMode() {\n robot.init(hardwareMap);\n\n /*\n * Instantiate the drive class\n */\n DriveMecanum drive = new DriveMecanum(robot, opMode, myVuforia, myTrackables);\n\n /*\n * Set the initial servo positions\n */\n robot.servo4Bar1.setPower(0.8); // lower the arm to grab the stone\n robot.servo4Bar2.setPower(-0.8);\n robot.servoFoundation1.setPower(0.6);\n robot.servoFoundation2.setPower(1);\n sleep(1000);\n robot.servoSwivel.setPower(-0.4); // Rotate the stone into position to place\n robot.servoGrab.setPower(0.3); // be sure the stone grabber is open\n sleep(1000);\n robot.servo4Bar1.setPower(0.2); // lower the arm to grab the stone\n robot.servo4Bar2.setPower(-0.2);\n sleep(1000);\n\n robot.sensorProximity.getDistance(DistanceUnit.CM);\n\n /*\n * Calibrate the gyro\n\n robot.mrGyro.calibrate();\n while (robot.mrGyro.isCalibrating()) {\n telemetry.addData(\"Waiting on Gyro Calibration\", \"\");\n telemetry.update();\n }\n\n */\n\n telemetry.addData(\">\", \"System initialized and Ready\");\n telemetry.addData(\"Distance Sensor CM\", robot.sensorProximity.getDistance(DistanceUnit.CM));\n telemetry.addData(\"Color Red\", robot.colorSensorRevStone.red());\n telemetry.addData(\"Rear Facing Range (CM) = \", robot.wallRangeSensor.getDistance(DistanceUnit.CM));\n if (robot.wallRangeSensor.getDistance(DistanceUnit.CM) > 10){\n telemetry.addData(\"Initialization Problem: \", \"RANGE SENSOR VALUE ISSUE\");\n telemetry.addData(\"Action: \", \"CHECK POSITION OF THE ROBOT\");\n }\n\n telemetry.update();\n\n /*\n * Start the opMode\n */\n waitForStart();\n\n while (opModeIsActive()) {\n switch (state) {\n\n case LOCATE_SKYSTONE:\n telemetry.addData(\"gyro value = \", robot.imu.getAngularOrientation().firstAngle);\n telemetry.addData(\"Distance (cm)\",\n String.format(Locale.US, \"%.02f\", robot.wallRangeSensor.getDistance(DistanceUnit.CM)));\n telemetry.update();\n\n /*\n * Drive to the front wall (strafe diagonally)\n */\n drive.translateTime(.3, 115, 1.5);\n\n /*\n * Raise the lift into position to be able to grab skystone\n */\n drive.raiseLift(2);\n\n /*\n * Drive close enough to the Skystone for the color sensor to detect the stones.\n * Uses the Rev 2m Range sensor on the back of the robot to measure distance.\n */\n drive.translateFromWall(\"front\",0.1, 180, 65, 1.5);\n\n /*\n * Because the color sensor is on the left side of the robot, it may detect\n * the first stone as being a Skystone. We are unable to grab the first\n * stone due to the positioning of the grabber so we will strafe to the\n * right past the first stone and look at the second stone.\n */\n drive.translateTime(.3, 270, .6);\n\n /*\n * Strafe across the row of stones to locate the skystone. For this function,\n * we track the time it takes to locate the Skystone so that we can make\n * necessary adjustments to the time required to strafe to the foundation.\n */\n strafeTimeInit = runtime.time(); // track the starting time\n //alphaColor should be set to the desired upper threshold for the red value\n drive.translateSkystone(0.2,270, 1.5);\n drive.translateTime(0.1,90, 0.25);\n strafeTime = runtime.time() - strafeTimeInit; // tracks the total time\n\n /*\n * Strafe into position to pick up the Skystone. For this side, we need to\n * backtrack because the color sensor is on the left side of the robot.\n */\n drive.translateTime(.2, 90, 0.45);\n\n /*\n * Drive forward to grab the Skystone\n */\n drive.translateTime(.2, 180, .4);\n if (opMode.opModeIsActive()) { // check to make sure time has not expired\n robot.servoGrab.setPower(0.2);\n sleep(1000);\n }\n\n /*\n * Back away from the stones into a position so that we can clear the skybridge\n */\n drive.translateTime(.2,0,.5);\n\n /*\n * Lower the lift mechanism so that we can clear the skybridge\n */\n drive.lowerLift(1.25);\n\n /*\n * Strafe to the Foundation. In the middle position, the robot takes about\n * 4 seconds to strafe to the skystone at 40% power. In general, we need to\n * reduce the total strafe time by about 1/3 of the time it takes to locate\n * the Skystone with the translateSkystone algorithm.\n */\n timeToSkystone = 4 - (strafeTime * 0.3);\n drive.translateTime(.4, 270, timeToSkystone);\n\n state = State.PLACE_FOUNDATION;\n break;\n\n case PLACE_FOUNDATION:\n /*\n * drive forward to the foundation\n */\n// drive.translateFromWall(0.3, 180, 90, 1);\n drive.translateFromWall(\"front\",0.3, 180, 70, 2);\n drive.translateFromWall(\"front\",0.1, 180, 90, 0.5);\n\n// drive.translateTime(.3, 180, 1);\n\n /*\n * Grab the foundation\n */\n if (opMode.opModeIsActive()) { // check to make sure time has not expired\n robot.servoFoundation1.setPower(1);\n robot.servoFoundation2.setPower(.6);\n sleep(500);\n }\n\n /*\n * Pull the Foundation towards the wall\n */\n drive.translateToWall(.3, 0, 20, \"front\",30);\n// drive.translateTime(.3,0,2.5);\n\n /*\n * rotate the foundation towards the wall\n */\n drive.rotateGyro(0.3, 85, \"right\", 2);\n/*\n Note: this is the old code - remove after rotateGyro Function is validated\n\n robot.motorLF.setPower(0.3);\n robot.motorLR.setPower(0.3);\n robot.motorRF.setPower(-0.3);\n robot.motorRR.setPower(-0.3);\n sleep (1800);\n */\n\n /*\n * drive the robot into the back wall; will help to align the robot\n */\n drive.translateTime(0.2,180,1.7);\n\n /*\n * Let go of the Foundation and the skystone (should fall onto the foundation)\n */\n\n if (opMode.opModeIsActive()){ // check to make sure time has not expired\n robot.servoFoundation1.setPower(0.6);\n robot.servoFoundation2.setPower(1);\n robot.servoGrab.setPower(-1);\n sleep(500);\n }\n\n sleep(4000);\n state = State.PARK_BRIDGE;\n //Exit the state\n break;\n\n case PARK_BRIDGE:\n /*\n * strafe to parking position near the bridge\n */\n drive.translateTime(.4, 20, 1.8);\n\n /*\n * strafe closer to the bridge\n */\n drive.translateTime(.3, 90, 1);\n\n state = State.HALT; //Exit the state\n break;\n\n case PARK_WALL:\n /*\n * strafe closer to the wall\n */\n drive.translateTime(.4, 270, 0.6);\n\n /*\n * Drive to parking position under the bridge\n */\n drive.translateTime(.5, 0, 1.1);\n\n /*\n * strafe closer to the wall\n */\n drive.translateTime(.4, 270, 0.3);\n\n state = State.HALT; //Exit the state\n break;\n\n\n case HALT:\n drive.motorsHalt(); //Stop the motors\n\n //Exit the OpMode\n requestOpModeStop();\n break;\n }\n }\n }", "title": "" }, { "docid": "8e0e9ed8c2fd87f92a7af2c5112427ef", "score": "0.5778906", "text": "abstract public void orderRobotToFire(Robot robot, Simulator sim);", "title": "" }, { "docid": "a9e97e7dae545354624f25128ad31c1e", "score": "0.57755804", "text": "@Override\n public void robotInit() {\n System.out.println(\"robotInit()\");\n debug = StormProp.getBoolean(\"debug\",false);\n\n // Ideally this would be handled uniformly using a subclass of SubSystem, but not now\n drive = new Drive(); // Drive always instanced, but will not instance talons if useDrive is false\n\n if (useCompressor) compressor = new Compression();\n\n if (useValveControl) valveControl = new ValveControl();\n\n if (useArm) arm = new Arm();\n\n if (useElevator){\n if (debug) System.out.println(\"Creating Elevator\");\n elevator = new Elevator();\n }\n\n if (useBackjack) backjack = new Backjack();\n\n if (useIntake) intake = new Intake();\n\n if (useVision) pixyVision = new PixyVision(StormProp.getString(\"visionTable\",\"vision\"), true);\n\n if (useNavX) navX = new NavX();\n\n\n if (useStormNet) {\n \t stormNetSubsystem = new StormNetSubsystem();\n System.out.println(\"eeeeee\");\n\t tapeAlignSys = new TapeAlign();\n\t lidarAlignSys = new LidarAlign();\n\t } \n\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n onInitCheck();\n\n aInitCmd = new AutonInit();\n\n }", "title": "" }, { "docid": "ac69c187d99fb21d337202135c91192e", "score": "0.57745975", "text": "public void setRobotView(RobotView r)\n\t{\n\t\tthis.robot_act=r;\n\t}", "title": "" }, { "docid": "caa1d11a7e71db4a2b2b3c4c10430d68", "score": "0.5768174", "text": "public ArrayList<Robot> getRobots() {\n return robots;\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.5767152", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.5767152", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.5767152", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.5767152", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "7ccc5cb3bfd2e70cf097b3ce437b8d8b", "score": "0.5766234", "text": "@Override\n protected void execute() {\n\n if (joyType == JoyType.JOY) {\n if (Robot.oi.driverJoystick.getRawButton(JOY_TRIGGER_BTN) == true){\n //System.out.printf(\" y=%g twist=%g \\n\\r \",ctrlr.getY(),ctrlr.getTwist());\n updateDrivetrainGearSetting(); // Automatic transmission routine (change to High speed as needed)! \n calcJoyMotorSpeedAngle(); // Get joystick position values and calculate speed and direction\n Robot.drivetrain.driveByJoystick(motorSpeed,motorAngle); // Send command to Drivetrain to run motors\n return;\n } else {\n // Joystick is not activated !\n Robot.drivetrain.stopMtrs();\n return;\n }\n }\n\n if (joyType == JoyType.XBOX) {\n if ((ctrlr.getX() > 0.1) ||\n (ctrlr.getY() > 0.1) || \n (Math.abs(ctrlr.getZ()) > 0.1)) {\n // DRIVING by Xbox Controller\n //System.out.printf(\" y=%g twist=%g \\n\\r \", ctrlr.getX(), ctrlr.getY(), ctrlr.getZ() );\n updateDrivetrainGearSetting(); // Automatic transmission routine (change to High speed as needed)! \n calcXboxMotorSpeedAngle(); // Get joystick position values and calculate speed and direction\n Robot.drivetrain.driveByJoystick(motorSpeed,motorAngle); // Send command to Drivetrain to run motors\n } else {\n Robot.drivetrain.stopMtrs(); \n }\n }\n //if (ctrlr..getRawButton(LOG_BTN) == true) logData();\n }", "title": "" }, { "docid": "5004af96b1492a1a7dc0ed9224458f10", "score": "0.5760661", "text": "public void robotInit() {\n\t\tif (constantChanger) {\n\t\t\t// constantChanger frame = new constantChanger();\n\t\t}\n\n\t\tscheduler = Scheduler.getInstance();\n\t\t// setSubsystems to the Instance of each\n\t\tmDrive = Drive.getInstance();\n\t\tmIntake = Intake.getInstance();\n\t\tmToteLift = ToteLift.getInstance();\n\t\tmIntakeLift = IntakeLift.getInstance();\n\t\t// sets it so all information about the drive will be printed repeatedly\n\t\t// during driving\n\t\t// mDrive.setPrintingDriveInfo(false);\n\n\t\tautoChooser = new SendableChooser();\n\t\t// autoChooser.addObject(\"DEFAULT\", new MoveForwardTimeAuto());\n\t\tautoChooser.addDefault(\"YELLOW TOTE DEFAULT\", new YellowToteAuto());\n\t\tautoChooser.addObject(\"One Tote\", new OneToteAuto());\n\t\tautoChooser.addObject(\"Wait\", new WaitAuto());\n\t\tautoChooser.addObject(\"Forward Small (1 second)\", new MoveForwardAuto(500));\n\t\tautoChooser.addObject(\"Forward Med (2 seconds)\", new MoveForewardTimeAuto(2, .3));\n\t\tautoChooser.addObject(\"Forward Large (3 seconds)\", new MoveForewardTimeAuto(3, .3));\n\t\tautoChooser.addObject(\"YELLOW TOTE\", new YellowToteAuto());\n\t\tautoChooser.addObject(\"Ramp Strats\", new GrabCanAndMoveAuto());\n\t\tautoChooser.addObject(\"3 Grey Tote\", ThreeTotePIDAuto.getInstance());\n\t\tautoChooser.addObject(\"TATERS\", new YellowTatersAuto());\n\t\tautoChooser.addObject(\"YELLOW SWAG BACKUP\", new YellowToteAutoAndTravel());\n\t\tautoChooser.addObject(\"YELLOW SWAG BACKUP Chezy\", new YellowToteAutoAndTravelTurn());\n\t\tSmartDashboard.putData(\"AUTO CHOOSER\", autoChooser);\n\t}", "title": "" }, { "docid": "a26925d59e00c77aec02c7f6e51bd4c8", "score": "0.57569313", "text": "@Override\n public void init() {\n Robot.init(hardwareMap, telemetry, gamepad1, gamepad2);\n Robot.driveTrain.setBrakeMode(true);\n }", "title": "" } ]
2116f97052201be125230ca13a2cdc5b
Swap value of x and y indices
[ { "docid": "a573adbc5ef1db359e38bbd0e5f0a5a2", "score": "0.67305565", "text": "private static void exchange(Comparable[] a, int x, int y){\n\t\tComparable t= a[x];\n\t\ta[x]=a[y];\n\t\ta[y]=t;\n\t}", "title": "" } ]
[ { "docid": "688e455ee222604bbcfad720e7fc90c3", "score": "0.71413", "text": "private void swap(int[][] matrix, int x1, int y1, int x2, int y2) {\n int temp = matrix[x1][y1];\n matrix[x1][y1] = matrix[x2][y2];\n matrix[x2][y2] = temp;\n\n }", "title": "" }, { "docid": "8702cd8e8390666e303c4173f2daede4", "score": "0.70781267", "text": "private void swap(int x1,int y1,int x2,int y2){\r\n //System.out.println(x1 + \" \" + y1 + \" \" + x2 +\" \" +y2);\r\n int tmp = board[x1-1][y1-1];\r\n board[x1-1][y1-1]= board[x2-1][y2-1];\r\n board[x2-1][y2-1]= tmp;\r\n }", "title": "" }, { "docid": "90008467259b2809aa39cb57a4127b51", "score": "0.70684606", "text": "public static void swap( int x, int y, int[] o ) {\n int tmp = o[x];\n o[x] = o[y];\n o[y] = tmp;\n }", "title": "" }, { "docid": "78ad4a062c597ccfb95e8a4644c16104", "score": "0.68376595", "text": "private static void swap(int[] x, int a, int b) {\n int i = x[a];\n x[a] = x[b];\n x[b] = i;\n }", "title": "" }, { "docid": "593a78b40a70f9d9045fdfbef163abf3", "score": "0.68093115", "text": "public void swap(int a, int b) {\r\n Object aObject = model.getElementAt(a);\r\n Object bObject = model.getElementAt(b);\r\n model.set(a, bObject);\r\n model.set(b, aObject);\r\n }", "title": "" }, { "docid": "85083ff05ed6a309a43153f4d1205519", "score": "0.6793734", "text": "private void swap(int[] x, int i, int j)\n\t{\n\t\tint t = x[i];\n\t\tx[i] = x[j];\n\t\tx[j] = t;\n\t}", "title": "" }, { "docid": "9b15ecfa643513f925279cdf4f4a455f", "score": "0.6728976", "text": "private void swap(int i, int j) {\n Cell tmp = a.get(i);\n a.set(i, a.get(j));\n a.set(j, tmp);\n }", "title": "" }, { "docid": "58eca8f5c41dabd961714198bab861ee", "score": "0.6717654", "text": "private static void swap(int[] arr, int idx1, int idx2) {\n int temp = arr[idx1];\n arr[idx1] = arr[idx2];\n arr[idx2] = temp;\n }", "title": "" }, { "docid": "019e4447045a91407fdbaf9470c5ed54", "score": "0.65866303", "text": "private void swap(int i, int j){\r\n int temp = arr[i].getData();\r\n arr[i].setData(arr[j].getData());\r\n arr[j].setData(temp);\r\n }", "title": "" }, { "docid": "e8b6dfcf1945dbf717de4c9c4ef4579a", "score": "0.6542774", "text": "private void swap(int pos1, int pos2){\n int temp = this.arr[pos1];\n this.arr[pos1] = this.arr[pos2];\n this.arr[pos2] = temp;\n }", "title": "" }, { "docid": "c69e2ead306bd8f0b1fdc79df0876ad7", "score": "0.6538917", "text": "public void flipCoordinates() {\n\t\tReal2 temp = from;\n\t\tfrom = to;\n\t\tto = temp;\n\t}", "title": "" }, { "docid": "2ba6b0f82213ff092f405d2887e3d156", "score": "0.65133977", "text": "private void swap(int first, int second) {\n\t\tint temporary = data[first];\r\n\t\tdata[first] = data[second];\r\n\t\tdata[second] = temporary;\r\n\t}", "title": "" }, { "docid": "5a6e956d6b4cdab5ee0f96ee0e478aee", "score": "0.64720744", "text": "private void swap(int src[], int i, int j) {\n \n int temp = src[i];\n src[i] = src[j];\n src[j] = temp;\n \n }", "title": "" }, { "docid": "4d1e1d0c09b32b6a4df277b63695794e", "score": "0.646707", "text": "private void swap(int[] A, int idx1, int idx2) {\n\t int temp = A[idx1];\n\t A[idx1] = A[idx2];\n\t A[idx2] = temp;\n\t}", "title": "" }, { "docid": "4cb330bb243e76a5e3114fbb22d61013", "score": "0.6440008", "text": "private void swap(int from, int to) {\n E temp = data[from];\n data[from] = data[to];\n data[to] = temp;\n }", "title": "" }, { "docid": "e8a0745be7e3e40ee4ea508a49272daa", "score": "0.64372295", "text": "public void swap(X[] xs, int i, int j) {\n X temp = xs[i];\n xs[i] = xs[j];\n xs[j] = temp;\n }", "title": "" }, { "docid": "1e40e1eec25d64a08140a977cabf3083", "score": "0.6429927", "text": "private void swap(int index1, int index2) {\n E element1 = getElement(index1);\n E element2 = getElement(index2);\n setElement(index2, element1);\n setElement(index1, element2);\n }", "title": "" }, { "docid": "b825b8ba60ce3e27b964d9e3ba246df1", "score": "0.6427293", "text": "public static void swap(int[] source, int index1, int index2) {\n int temp = source[index1];\n source[index1] = source[index2];\n source[index2] = temp;\n }", "title": "" }, { "docid": "aa11ee6a9e35ab9a92303d46279bd0ea", "score": "0.6419454", "text": "private void swap(final int a, final int b, final byte[][] values) {\n final int l = list[a];\n list[a] = list[b];\n list[b] = l;\n final byte[] c = values[a];\n values[a] = values[b];\n values[b] = c;\n }", "title": "" }, { "docid": "d84fa7061d4c30053e355c5336e5b498", "score": "0.6413639", "text": "protected void swap (int i, int j) {\n\t\tint buf = values[i];\n\t\tvalues[i] = values[j];\n\t\tvalues[j] = buf;\n\t}", "title": "" }, { "docid": "f70b8d439c883d88e63e6f5be280a158", "score": "0.6406637", "text": "public void swap(HashMap<String, Integer> order, String x, String y) {\n int temp = order.get(x);\n order.put(x, order.get(y));\n order.put(y, temp);\n }", "title": "" }, { "docid": "b3e82d249aef766e17d00e83878d4ddd", "score": "0.6398076", "text": "private void swap(int[] A, int index1, int index2) {\n int temp = A[index1];\n A[index1] = A[index2];\n A[index2] = temp;\n }", "title": "" }, { "docid": "395358b52a0514ed883e97a816e71d7c", "score": "0.6387281", "text": "public static void Swapping(double[][] a,int i,int b){\n\t\t\t\t\tdouble[] temp=a[i];\n\t\t\t\t\t a[i]=Arrays.copyOf(a[b],a[b].length);\t\n\t\t\t\t\t a[b]=temp;\n\t}", "title": "" }, { "docid": "d54ae616d82b1b599cd585da00445f39", "score": "0.63504094", "text": "void swapped(int i, int j);", "title": "" }, { "docid": "1f8b867d6ffb25c1963d3d3da51c5f8b", "score": "0.63334", "text": "private void swap(int i, int j)\r\n {\r\n a.set(j, a.set(i, a.get(j)));\r\n }", "title": "" }, { "docid": "e8a8e3af5f422b06f95c5cc8d31e21a4", "score": "0.63157165", "text": "private void swap(int i, int j) {\n double[] temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }", "title": "" }, { "docid": "0f8c01c6f1de546006d84eac6d70e984", "score": "0.62904406", "text": "private void swap(int i, int j) {\n\t\tObject temp;\n\t\tfor (int k = 0; k < getNumberOfExplanatoryAttributes() + 1; k++) {\n\t\t\ttemp = data[i][k];\n\t\t\tdata[i][k] = data[j][k];\n\t\t\tdata[j][k] = temp;\n\t\t}\n\n\t}", "title": "" }, { "docid": "b723854f9ef0359c4afc51e7ece14e0b", "score": "0.6266809", "text": "private void swap(int[] array, int i, int j){\n\t\tint tmp = array[i];\n\t\tarray[i] = array[j];\n\t\tarray[j] = tmp;\n\t}", "title": "" }, { "docid": "9044d7ea7ad3917ff2bc40a9a2f1a72a", "score": "0.6266603", "text": "public void swap(int index1, int index2){\n Node temp = arr[index1];\n arr[index1] = arr[index2];\n arr[index2] = temp;\n }", "title": "" }, { "docid": "4ceca5822083a0cd5bd07250d440e742", "score": "0.6263652", "text": "private void swap(final int a, final int b, final double[] values) {\n final int l = list[a];\n list[a] = list[b];\n list[b] = l;\n final double c = values[a];\n values[a] = values[b];\n values[b] = c;\n }", "title": "" }, { "docid": "97d2293dd77fa763968a73c7f90d95ea", "score": "0.6262722", "text": "private void swap(int[] array, int index1, int index2){\n\t\tif(array.length-1<index1 || array.length-1<index2) return;\n\t\tint aux = array[index1];\n\t\tarray[index1] = array[index2];\n\t\tarray[index2] = aux;\n\t\t\n\t}", "title": "" }, { "docid": "30b5294d5e28743d55e75c8705a8e66b", "score": "0.62532693", "text": "private static final void swap(int[] arr, int i, int j) {\n int placeholder = arr[i];\n arr[i] = arr[j];\n arr[j] = placeholder;\n }", "title": "" }, { "docid": "a32a9d571acce7940ac72500f17f57e8", "score": "0.62428135", "text": "private void swap(int i, int j) {\n int tmp = meter[i];\n meter[i] = meter[j];\n meter[j] = tmp;\n }", "title": "" }, { "docid": "2207e281cb74294d6101f7631b7d8be3", "score": "0.6226999", "text": "private void swap(int[] nums, int a, int b) {\n int temp = nums[a];\n nums[a] = nums[b];\n nums[b] = temp;\n }", "title": "" }, { "docid": "16610ada07476f7c3461b4180161908a", "score": "0.62209976", "text": "private static void swap(int[] a, int i, int j) {\n int ai = a[i];\n a[i] = a[j];\n a[j] = ai;\n }", "title": "" }, { "docid": "81646b9d35d4c091d75f4e1bf16ecb97", "score": "0.6216336", "text": "private void exchange(int i, int j)\n {\n int t = a[c(i)];\n a[c(i)] = a[c(j)];\n a[c(j)] = t;\n }", "title": "" }, { "docid": "2e96907b7c0d342161dfc0e379f4557e", "score": "0.6206937", "text": "public void swapElements(Position<E> p1, Position<E> p2);", "title": "" }, { "docid": "8549f530012e1a69c5c822bcadb7fee4", "score": "0.61961716", "text": "private void exchange(int[] arr, int i, int j) {\n\t\tint temp = arr[i];\r\n\t\tarr[i] = arr[j];\r\n\t\tarr[j] = temp;\r\n\t}", "title": "" }, { "docid": "cdd1f58221e52397cfbb4eaffad55e7f", "score": "0.61886936", "text": "public static void swap(int[] data, int first, int second) {\r\n\t\tint temp = data[first];\r\n\t\tdata[first] = data[second];\r\n\t\tdata[second] = temp;\r\n\t}", "title": "" }, { "docid": "bcab605576997bef0e7f0acb4fddfae0", "score": "0.61798054", "text": "private static void swap(Object[] array, int i, int j)\r\n {\r\n Object temp = array[i];\r\n array[i] = array[j];\r\n array[j] = temp; \r\n }", "title": "" }, { "docid": "c98b4e452bfd7585c0ef3674fb34d02b", "score": "0.61744475", "text": "public void swap(int a, int b) {\r\n int t = nums[a];\r\n nums[a] = nums[b];\r\n nums[b] = t;\r\n }", "title": "" }, { "docid": "40eb542a516407e4e756baa26dad4d21", "score": "0.61729395", "text": "private static void swap(int[] a, int i, int j) {\n\t\tint temp = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = temp;\n\t}", "title": "" }, { "docid": "b98332f92b4184a16c5df7b36093e6e2", "score": "0.6167203", "text": "private void swap(int array[], int first, int second) {\n\t\t\tint temp = array[first];\n\t\t\tarray[first] = array[second];\n\t\t\tarray[second] = temp;\n\t\t}", "title": "" }, { "docid": "972e178e69e3a19904a6bb5776323d05", "score": "0.61655056", "text": "private void swap(int i1, int i2) {\n // Swap the items at the provided indicies using a temporary variable\n int temp = arr[i1];\n arr[i1] = arr[i2];\n arr[i2] = temp;\n }", "title": "" }, { "docid": "df3461f8280842aa8d0b70d3f0750e44", "score": "0.61635256", "text": "private static void swap(int[] arr, int i, int j) {\n\t\tint temp = arr[i];\n\t\tarr[i] = arr[j];\n\t\tarr[j] = temp;\n\t}", "title": "" }, { "docid": "68eb8b5b9317f194fbf4ed71c70401d2", "score": "0.6163059", "text": "private static void swap(List<Node> nodes, int i, int j) \r\n { \r\n Node tmp; \r\n tmp = nodes.get(i); \r\n nodes.set(i , nodes.get(j)); \r\n nodes.set(j , tmp); \r\n }", "title": "" }, { "docid": "ae4378540a6b4b29b6f5819f0be6a66f", "score": "0.615443", "text": "private void swap(List<Integer> heapList, Integer valueX, Integer valueY) {\n\t\tInteger t = heapList.get(valueX);\n\t\theapList.set(valueX, heapList.get(valueY));\n\t\theapList.set(valueY, t);\n\t}", "title": "" }, { "docid": "712cf092e149247637ce279d6c091e92", "score": "0.6154177", "text": "private static void swap(ArrayList<Integer> keys, int pos1, int pos2) {\r\n int temp = keys.get(pos1);\r\n keys.set(pos1, keys.get(pos2));\r\n keys.set(pos2, temp);\r\n }", "title": "" }, { "docid": "c25724132a49bd7a257aa1173073ad37", "score": "0.61508816", "text": "public void swapInto(X[] xs, int i, int j) {\n if (j > i) {\n X x = xs[j];\n System.arraycopy(xs, i, xs, i + 1, j - i);\n xs[i] = x;\n }\n }", "title": "" }, { "docid": "6e75ff07e6e665fe4c15b9a5bd06926f", "score": "0.61502343", "text": "private static void swap(int[] arr, int i, int j) {\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }", "title": "" }, { "docid": "8c5a9caceec401f01cf5e076d0419e2c", "score": "0.61499226", "text": "private static void exch(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap; \n }", "title": "" }, { "docid": "4bd6a63c196ad4d8222baf684ecc97f6", "score": "0.6134057", "text": "void swap(int i, int j) {\n int v = nums[j];\n nums[j] = nums[i];\n nums[i] = v;\n }", "title": "" }, { "docid": "243504575032df163d7495e9312b17c5", "score": "0.61291325", "text": "static void swap(Object[] array, int i, int j) {\n/* 220 */ Object temp = array[i];\n/* 221 */ array[i] = array[j];\n/* 222 */ array[j] = temp;\n/* */ }", "title": "" }, { "docid": "074adceab165b2f62beb59c339bf6f79", "score": "0.6127415", "text": "private static void swap(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "title": "" }, { "docid": "5837fb08865891240bd736227947c822", "score": "0.6122011", "text": "public static void swap(int[] array, int index1, int index2) {\n int tmp = array[index1];\n array[index1] = array[index2];\n array[index2] = tmp;\n }", "title": "" }, { "docid": "8f02e56ee11288a304d87dbd88bff37d", "score": "0.6116956", "text": "public void swapArrays() {\n int[] temp = currentCells;\n currentCells = nextCells;\n nextCells = temp;\n }", "title": "" }, { "docid": "668897204658583ad17c8379cf6ea8ac", "score": "0.6101412", "text": "static void swap(int[] arr, int i, int j)\r\n\t{\r\n\t int temp = arr[i];\r\n\t arr[i] = arr[j];\r\n\t arr[j] = temp;\r\n\t}", "title": "" }, { "docid": "d6e2de1e9f74a1555bf2d85e50c02986", "score": "0.60983545", "text": "private static final void swap(int[] a, int i, int j) {\r\n\t\tif (i != j) {\r\n\t\t\tint temp = a[i];\r\n\t\t\ta[i] = a[j];\r\n\t\t\ta[j] = temp;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "450fc35d780a9b23aee61f45674b6df6", "score": "0.6097793", "text": "private void swap(final int a, final int b, final int[] values) {\n final int l = list[a];\n list[a] = list[b];\n list[b] = l;\n final int c = values[a];\n values[a] = values[b];\n values[b] = c;\n }", "title": "" }, { "docid": "16930d7274cc807221a8120744cdbfdb", "score": "0.60960156", "text": "private void swap(){\n\t\tint targetXGridPos = myGridPos.x + swapDirection;\n\t\tint targetXPos = targetXGridPos*SwappidySwap.BLOCK_SIZE.x;\n\t\tif( Math.abs(position.x - targetXPos) <= GameBoard.SWAP_SPEED ){\n\t\t\tif(swapRep){ // we only need one of the pair to notify the gameboard\n\t\t\t\tif(swapDirection==1) // if we're the left block, send our pos\n\t\t\t\t\tgameboard.handleCompletedSwapping(myGridPos.x, myGridPos.y);\n\t\t\t\telse // we're the right block, so send left block's pos\n\t\t\t\t\tgameboard.handleCompletedSwapping(myGridPos.x-1, myGridPos.y);\n\n\t\t\t}\n\t\t\tswapRep = false;\n\t\t}\n\t\telse{\n\t\t\tposition.x += swapDirection*GameBoard.SWAP_SPEED;\n\t\t}\n\t}", "title": "" }, { "docid": "d5cf6bbfab75036ba81cfc766d0d0a09", "score": "0.60914594", "text": "public void swap(int i, int j) {\n double[] temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }", "title": "" }, { "docid": "e87f964ca4a7049f0c482ac6374e50c6", "score": "0.60907704", "text": "private void exch(int i, int j){\r\n\t\tint swap=b[i];\r\n\t\tb[i]=b[j];\r\n\t\tb[j]=swap;\r\n\r\n\t\ta[b[i]]=i;\r\n\t\ta[b[j]]=j;\r\n\t}", "title": "" }, { "docid": "b690dd25e02024b474eaa7273b2a7361", "score": "0.6088411", "text": "public void swap(int [] arr, int i, int j){\n\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n\n }", "title": "" }, { "docid": "c13aa8439b7ebd68b693e18863d7f945", "score": "0.60849726", "text": "private Object[] swap(int i, int j, Object[] o) {\r\n\t\tObject temp = o[i];\r\n\t\to[i]=o[j];\r\n\t\to[j]=temp;\r\n\t\treturn o;\r\n\t}", "title": "" }, { "docid": "308ce5e0eac9fbbb1d140b89b9855b4a", "score": "0.6080012", "text": "public static void main(String[] args) {\n\t\t\n\t\tint x = 10;\n\t\tint y = 5;\n\t\tint temp;\n\t\t\n\t\t// Using temp way:\n\t\t\n\t\tSystem.out.println(\"Original Values: \" + x + \" <==> \" + y);\n\n\t\ttemp = x;\n\t\tx = y;\n\t\ty = temp;\n\t\t\n\t\tSystem.out.println(\"Swap using Temp: \" + x + \" <==> \" + y);\n\t\t\n\t //Without using temp\n\t\t\n\t\tx = x + y; // x >>> 5 + 10 = 15\n\t\ty = x - y; // y >>> 15 - 10 = 5\n\t\tx = x - y; // x >>> 15 - 5 = 10\n\t\t\n\t\tSystem.out.println(\"Swap without Temp \" + x + \" <==> \" + y);\n\t\t\n\n\t}", "title": "" }, { "docid": "57eb5190f4fa54422194bb108972690d", "score": "0.60663986", "text": "private void swapIndex(int indexOne, int indexTwo) {\n Task tmp = nodes[indexOne]; // prio\n\n nodes[indexOne] = nodes[indexTwo];\n nodes[indexTwo] = tmp;\n }", "title": "" }, { "docid": "7df9f3519a8b5c57997f2ebe0b60fd1e", "score": "0.6048397", "text": "protected abstract void swap(int[] array, int j);", "title": "" }, { "docid": "250b5af3de5c4969c54db92bd8dc3519", "score": "0.60457796", "text": "private static void swap(int[] array, int i, int j) {\n int t;\n t = array[i];\n array[i] = array[j];\n array[j] = t;\n }", "title": "" }, { "docid": "34d2de4bfb2a1646f2df3d0f87cf4e63", "score": "0.6044225", "text": "private static void mySwap(int[] a, int i, int j){// swap\n a[i] += a[j];// a = a0 + b0, b = b0\n a[j] = a[i] - a[j];// a = a0 + b0, b = a0\n a[i] -= a[j];// a = b0, b = a0\n }", "title": "" }, { "docid": "b4bcbdb93ce894122185e8db70960d04", "score": "0.6039434", "text": "private void swap(int firstIndex,int secondIndex) {\r\n\t\tE temp;\r\n\t\ttemp = heap.get(firstIndex);\r\n\t\theap.set(firstIndex, heap.get(secondIndex));\r\n\t\theap.set(secondIndex, temp);\t\t\r\n\t}", "title": "" }, { "docid": "67e18838245104f793c5c4d74aed5a46", "score": "0.60372776", "text": "private void swapElements(int index1, int index2) {\n Collections.swap(binaryElements, index1, index2);\n }", "title": "" }, { "docid": "c63186fe16faa4bc8dc4366ede9bb66a", "score": "0.60364187", "text": "public void swap(int i, int j)\n {\n int s = columns.simpleColumnCount();\n for (int k = 0; k < s; k++)\n data.swapCell(i * s + k, j * s + k);\n }", "title": "" }, { "docid": "8ebb15ee003c99ca74d949a5ba49d0db", "score": "0.6036309", "text": "void swap(int i, int j) {\n // TODO\n Item entryI = elems.get(i);\n Item entryJ = elems.get(j);\n\n entryI.setPosition(j);\n entryJ.setPosition(i);\n\n elems.set(i,entryJ);\n elems.set(j,entryI);\n }", "title": "" }, { "docid": "a8d4b859d5d6bd805674b4078b1a69f7", "score": "0.603235", "text": "void swap (int[] arr, int i , int j){\r\n\t\tint temp = arr[i];\r\n\t\tarr[i] = arr[j];\r\n\t\tarr[j] = temp;\r\n\t}", "title": "" }, { "docid": "f0c02d31c299dc63773a02aef3a99982", "score": "0.6027433", "text": "public void swap(int a, int b, int [] array) {\n int temp = array[a];\n array[a] = array[b];\n array[b] = temp;\n }", "title": "" }, { "docid": "5c57014446a103e990436239f89be3f5", "score": "0.60232395", "text": "private void swap(int[] arr, int i, int j, Map<Integer, Integer> mp) {\n mp.remove(arr[i]);\n mp.remove(arr[j]);\n int l = -arr[i];\n arr[i] = -arr[j];\n mp.put(-arr[j], i);\n arr[j] = l;\n mp.put(l, j);\n }", "title": "" }, { "docid": "01df6ee43f78f78d79761f7f1e1d0841", "score": "0.60206723", "text": "public static void swap(int[] values, int i, int j) {\n int temp = values[i];\n values[i] = values[j];\n values[j] = temp;\n }", "title": "" }, { "docid": "1edc637725f1fd504d310b3651fd8f55", "score": "0.6020609", "text": "private static void exch(Object[] a, int i, int j)\r\n { Object swap = a[i]; a[i] = a[j]; a[j] = swap; }", "title": "" }, { "docid": "eee1fffce5992707ae2cc974d4694684", "score": "0.601208", "text": "private static void exch(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "title": "" }, { "docid": "eee1fffce5992707ae2cc974d4694684", "score": "0.601208", "text": "private static void exch(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "title": "" }, { "docid": "35a34c97d9f8421050383ae34f15fba2", "score": "0.6005091", "text": "public void swap(int[] a, int i, int j) {\n\tint temp = a[i];\n\ta[i] = a[j];\n\ta[j] = temp;\n }", "title": "" }, { "docid": "dad53de936c055c564c46cc3b4b84802", "score": "0.59915906", "text": "private void swapElements(int[] array, int i, int j){\n int a = array[i];\n array[i] = array[j];\n array[j] = a;\n }", "title": "" }, { "docid": "fa5213ddace667a1f5a71ed4784feb96", "score": "0.5991532", "text": "private void swap(Object a, Object b){\n Object t = a;\r\n a = b;\r\n b = t;\r\n }", "title": "" }, { "docid": "99b7ab5ff06787ea19355e37136a4c42", "score": "0.59909403", "text": "static void swap (char a[],int x, int y)\n{\n char temp;\n temp = a[x];\n a[x] = a[y];\n a[y] = temp;\n}", "title": "" }, { "docid": "c7271691f50e4adb05992192bb7d5baf", "score": "0.5989233", "text": "private void exchange( Comparable[] datos, int i, int j)\n\t{\n\t\t// TODO implementar\n\t\tComparable swap = datos[i];\n\t\tdatos[i] = datos[j];\n\t\tdatos[j] = swap;\n\t}", "title": "" }, { "docid": "24f050009d106b8ea8fe5503f9144147", "score": "0.5986449", "text": "private void swap(final long[] values, final int a, final int b) {\n final int l = list[a];\n list[a] = list[b];\n list[b] = l;\n final long c = values[a];\n values[a] = values[b];\n values[b] = c;\n }", "title": "" }, { "docid": "e8ea7b8fb12fcfdfab18ff500157e187", "score": "0.59808886", "text": "public static void swap(int[] array, int firstIndex, int secondIndex) {\n if (firstIndex != secondIndex) {\n int tmp = array[firstIndex];\n array[firstIndex] = array[secondIndex];\n array[secondIndex] = tmp;\n }\n }", "title": "" }, { "docid": "5c2d8d53a5d02eded2d9c9161e455a2b", "score": "0.5979987", "text": "private static void swap(int[] input, int i, int j) {\n\t\tinput[i] = input[i] ^ input[j];\n\t\tinput[j] = input[i] ^ input[j];\n\t\tinput[i] = input[i] ^ input[j];\n\t}", "title": "" }, { "docid": "8f6c7c1ac54f8b737e0070c4978713c8", "score": "0.59691143", "text": "public void swapArrayidx(double[] arrayToSort, int idxFrom, int idxTo) {\n double tmp = arrayToSort[idxFrom];\n arrayToSort[idxFrom] = arrayToSort[idxTo];\n arrayToSort[idxTo] = tmp;\n }", "title": "" }, { "docid": "b121b173248faa49ea1e2b6954e543ca", "score": "0.5961733", "text": "public void swap(int[] arr, int i, int j){\r\n\t\tint temp = arr[i];\r\n\t\tarr[i] = arr[j];\r\n\t\tarr[j] = temp;\r\n\t}", "title": "" }, { "docid": "b6418be8908d86e6552aba1f43ce5621", "score": "0.5951064", "text": "private void swap(int[] a, int j, int i) {\n\t\tint temp = a[j];\n\t\ta[j] = a[i];\n\t\ta[i] = temp;\n\t}", "title": "" }, { "docid": "4de71faf4103b9b11aa1855692d1673d", "score": "0.5945456", "text": "private static void swap(int[] arr, int left, int right) {\n int tempHolder = arr[left];\n arr[left] = arr[right];\n arr[right] = tempHolder;\n }", "title": "" }, { "docid": "53d02c860f0389f898d91e80b486ce9b", "score": "0.5944936", "text": "private void swap(int i, int j){\n\t\tCommand temp = this.history.get(j);\n\t\tthis.history.set(j, this.history.get(i));\n\t\tthis.history.set(i, temp);\n\t}", "title": "" }, { "docid": "6453a0b544797743c46f7474d642495a", "score": "0.59429127", "text": "public void swap(int index1, int index2) {\n\t\tT temp = (T) heap.arr[index1];\n\t\theap.arr[index1] = heap.arr[index2];\n\t\theap.arr[index2] = temp;\n\t}", "title": "" }, { "docid": "707ded078e7afe44d50460661a257d12", "score": "0.59393156", "text": "public static void swap(List<Integer> values, int i, int j) {\r\n int temp = values.get(i);\r\n values.set(i, values.get(j));\r\n values.set(j, temp);\r\n }", "title": "" }, { "docid": "44c47e88dfff228a16d0d5e3a4816f47", "score": "0.5927126", "text": "public static void swap(int[] A, int a, int b) {\r\n int temp = A[a];\r\n A[a] = A[b];\r\n A[b] = temp;\r\n }", "title": "" }, { "docid": "8cb9cf02d6497d148fd15ba3df548006", "score": "0.59216005", "text": "<T> void swap(ArrayList<T> alist, int index1, int index2) {\n alist.set(index2, alist.set(index1, alist.get(index2)));\n }", "title": "" }, { "docid": "504a54ea515fb1823151a2b3189e7e02", "score": "0.591982", "text": "private void swap(int index1, int index2) {\n T node1 = this.heap.get(index1);\n T node2 = this.heap.get(index2);\n this.heap.set(index1, node2);\n this.heap.set(index2, node1);\n }", "title": "" }, { "docid": "8aea6cdfb378fc3c350d63e744bb2de3", "score": "0.5914762", "text": "protected void swap(int index1, int index2, boolean column)\n\t{\n\t\tint[] temp=null;\n\t\tif(column)\n\t\t{\n\t\t\ttemp = new int[9];\n\t\t\tfor(int i = 0; i < 9; i++)\n\t\t\t\ttemp[i] = this._board[i][index1];\n\t\t\tfor(int i = 0; i < 9; i++)\n\t\t\t\tthis._board[i][index1] = this._board[i][index2];\n\t\t\tfor(int i = 0; i < 9; i++)\n\t\t\t\tthis._board[i][index2] = temp[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttemp = this._board[index1];\n\t\t\tthis._board[index1] = this._board[index2];\n\t\t\tthis._board[index2] = temp;\n\t\t}\n\t}", "title": "" }, { "docid": "d3a76f865fff5778c50d4b144c57cc99", "score": "0.59017706", "text": "private void swap(ArrayList<Student> list, int index1, int index2) {\n\n Student temp;\n\n temp = list.get(index1);\n list.set(index1, list.get(index2));\n list.set(index2, temp);\n }", "title": "" } ]
46090e053d05bb332366b2fa5b217248
Parses the command line arguments.
[ { "docid": "775de907880bb2957b333c33a7d4c7ea", "score": "0.7216559", "text": "private void parseArgs(String argv[]) throws IllegalArgumentException {\n for (int i = 0; i < argv.length; i++) {\n if (argv[i].equals(\"-v\")) {\n verbose = true;\n continue;\n }\n\n if (argv[i].equals(\"-p\")) {\n ignoreCase = false;\n continue;\n }\n\n if (argv[i].equals(\"-d\")) {\n if (i + 1 >= argv.length) {\n usage();\n throw (new IllegalArgumentException(\"Directory name must be specified\"));\n }\n\n dirName = argv[i + 1];\n i++;\n continue;\n }\n\n if (argv[i].equals(\"-c\")) {\n if (i + 1 >= argv.length) {\n usage();\n throw (new IllegalArgumentException(\"Class name must be specified\"));\n }\n\n className = argv[i + 1];\n i++;\n continue;\n }\n\n usage();\n throw (new IllegalArgumentException(\"Unknown argument \\\"\" + argv[i] + \"\\\"\"));\n }\n\n if (dirName == null) {\n usage();\n throw (new IllegalArgumentException(\"Directory name must be specified\"));\n }\n\n if (className == null) {\n usage();\n throw (new IllegalArgumentException(\"Class name must be specified\"));\n }\n }", "title": "" } ]
[ { "docid": "62135ef429356034c15d6e56d87bb20f", "score": "0.7636407", "text": "CommandLineArgumentConfig parseCommandLineArguments(String[] args);", "title": "" }, { "docid": "d64c68e8f36668c54c012d5354ebf8a1", "score": "0.7432728", "text": "private void parseArguments(String[] args) {\n int i = 0;\n while (i < args.length) {\n if (\"-b\".equals(args[i])) {\n baseUrl = checkStringArgument(\"-b\", args, i+1);\n } else if (\"-n\".equals(args[i])) {\n namespace = checkStringArgument(\"-n\", args, i+1);\n } else if (\"-l\".equals(args[i])) {\n localPart = checkStringArgument(\"-l\", args, i+1);\n } else if (\"-t\".equals(args[i])) {\n numThreads = checkIntegerArgument(\"-t\", args, i+1, 1, Integer.MAX_VALUE);\n } else if (\"-ct\".equals(args[i])) {\n numChildThreads = checkIntegerArgument(\"-ct\", args, i+1, 1, Integer.MAX_VALUE);\n } else if (\"-a\".equals(args[i])) {\n numAttrs = checkIntegerArgument(\"-a\", args, i+1, 1, Integer.MAX_VALUE);\n } else if (\"-s\".equals(args[i])) {\n sizeAttr = checkIntegerArgument(\"-s\", args, i+1, 1, Integer.MAX_VALUE);\n } else if (\"-os\".equals(args[i])) {\n operationSleep = checkIntegerArgument(\"-os\", args, i+1, 0, Integer.MAX_VALUE);\n } else if (\"-ts\".equals(args[i])) {\n threadSleep = checkIntegerArgument(\"-ts\", args, i+1, 0, Integer.MAX_VALUE);\n } else if (\"-i\".equals(args[i])) {\n iterations = checkIntegerArgument(\"-i\", args, i+1, 1, Integer.MAX_VALUE);\n } else if (\"-ci\".equals(args[i])) {\n childIterations = checkIntegerArgument(\"-ci\", args, i+1, 1, Integer.MAX_VALUE);\n } else if (\"-u\".equals(args[i])) {\n updateAttributes = checkIntegerArgument(\"-u\", args, i+1, 0, Integer.MAX_VALUE);\n } else if (\"-d\".equals(args[i])) {\n debug = true;\n i--;\n } else {\n usage(\"Unknown option: \" + args[i]);\n }\n i = i + 2;\n }\n }", "title": "" }, { "docid": "268ff573167c49eee7a728b311d5da66", "score": "0.7112835", "text": "private void mainLineParser(String[] arguments) {\n\n\t _led = 0;\n\t _prefix = false;\n\t _whitespace = false;\n\t _files = new Vector<String>();\n\n\n\t int i = 0;\n\t while (i < arguments.length) {\n\t boolean kosher_args = false;\n\t String arg = arguments[i].trim();\n\t if (arg.compareTo(\"--led\") == 0 && Integer.parseInt(arguments[i+1]) >= 0) {\n\t _led = Integer.parseInt(arguments[i+1]);\n\t i = i + 2;\n\t kosher_args = true;\n\t }\n\t else if (arg.compareTo(\"--prefix\") == 0) {\n\t _prefix = true;\n\t i++;\n\t kosher_args = true;\n\t }\n\t else if (arg.compareTo(\"--whitespace\") == 0) {\n\t _whitespace = true;\n\t i++;\n\t kosher_args = true;\n\t }\n\t else { \n\t char[] chars = arg.toCharArray();\n\t if (chars[0] == '/' && chars[chars.length - 1] == 't') {\n\t \t _files.add(arg);\n\t \t kosher_args = true;\n\t }//end if\n\t i++;\n\t }//end else\n\t if (!kosher_args) {\n\t throw new IllegalArgumentException();\n\t }\n\t }//end while\n\t}", "title": "" }, { "docid": "897589cb19e8284fa95a54ba6f8527dd", "score": "0.6983706", "text": "public void initParser(String[] args){\n\n buildOptions();\n CommandLineParser commandLineParser = new DefaultParser();\n\n\n try {\n commandLine = commandLineParser.parse(options, args);\n } catch (org.apache.commons.cli.ParseException e) {\n Logger.log(Logger.LOG_LEVEL_CRITICAL, e);\n printUsage();\n }\n\n if(commandLine.hasOption(\"help\")) {\n printUsage();\n }\n\n }", "title": "" }, { "docid": "8bedf2aa2a0b3c7d14cb1811bca64c82", "score": "0.69053763", "text": "private void parseArguments(String[] args) {\r\n String hostname = DEFAULT_HOSTNAME;\r\n int port = DEFAULT_PORT;\r\n String username = DEFAULT_USERNAME;\r\n String password = DEFAULT_PASSWORD;\r\n String command = null;\r\n List<String> params = new ArrayList<String>();\r\n\r\n for (int i = 0; i < args.length; i++) {\r\n String arg = args[i];\r\n if (arg.equals(\"-h\")) {\r\n i++;\r\n if (i < args.length) {\r\n hostname = args[i];\r\n } else {\r\n System.err.println(\"ERROR: Missing hostname with '-h' option\");\r\n System.exit(1);\r\n }\r\n } else if (arg.equals(\"-p\")) {\r\n i++;\r\n if (i < args.length) {\r\n try {\r\n port = Integer.parseInt(args[i]);\r\n } catch (NumberFormatException e) {\r\n System.err.println(\"ERROR: Invalid port number: \" + args[i]);\r\n System.exit(1);\r\n }\r\n } else {\r\n System.err.println(\"ERROR: Missing port number with '-p' option\");\r\n System.exit(1);\r\n }\r\n } else if (arg.equals(\"-u\")) {\r\n i++;\r\n if (i < args.length) {\r\n String[] parts = args[i].split(\":\");\r\n username = parts[0];\r\n if (parts.length > 1) {\r\n password = parts[1];\r\n } else {\r\n password = \"\";\r\n }\r\n } else {\r\n System.err.println(\"ERROR: Missing user account with '-u' option\");\r\n System.exit(1);\r\n }\r\n } else {\r\n if (command == null) {\r\n command = args[i];\r\n } else {\r\n params.add(args[i]);\r\n }\r\n }\r\n }\r\n \r\n if (command == null) {\r\n printUsage();\r\n System.exit(0);\r\n }\r\n \r\n connector = new ExistConnector(hostname, port, username, password);\r\n \r\n try {\r\n if (command.equalsIgnoreCase(\"list\")) {\r\n doList(params);\r\n } else if (command.equalsIgnoreCase(\"get\")) {\r\n doGet(params);\r\n } else if (command.equalsIgnoreCase(\"import\")) {\r\n doImport(params);\r\n } else if (command.equalsIgnoreCase(\"export\")) {\r\n doExport(params);\r\n } else if (command.equalsIgnoreCase(\"delete\")) {\r\n doDelete(params);\r\n } else if (command.equalsIgnoreCase(\"query\")) {\r\n doQuery(params);\r\n } else {\r\n System.err.println(\"ERROR: Unknown command: \" + command);\r\n System.exit(1);\r\n }\r\n } catch (XmldbException e) {\r\n System.err.println(\"ERROR: \" + e.getMessage());\r\n System.exit(99);\r\n }\r\n }", "title": "" }, { "docid": "a9c4ba2f77a3c52aa0dea314c9c09a0a", "score": "0.69027406", "text": "private ApplicationArguments(String[] args)\n \t\tthrows ParseException\n \t{\n \t\tsuper();\n \t\tcreateOptions();\n \n \n \t\tfinal CommandLineParser parser = new GnuParser();\n \t\ttry\n \t\t{\n \t\t\t_cmdLine = parser.parse(_options, args);\n \t\t}\n \t\tcatch(ParseException ex)\n \t\t{\n \t\t\tSystem.err.println(\"Parsing failed. Reason: \" + ex.getMessage());\n \t\t\tprintHelp();\n \t\t\tthrow ex;\n \t\t}\n \n \t\tif (_cmdLine.hasOption(IOptions.SQUIRREL_HOME[0]))\n \t\t{\n \t\t\t_squirrelHome = _cmdLine.getOptionValue(IOptions.SQUIRREL_HOME[0]);\n \t\t}\n \t\tif (_cmdLine.hasOption(IOptions.USER_SETTINGS_DIR[0]))\n \t\t{\n \t\t\t_userSettingsDir = _cmdLine.getOptionValue(IOptions.USER_SETTINGS_DIR[0]);\n \t\t}\n \t\tif (_cmdLine.hasOption(IOptions.LOG_FILE[0]))\n \t\t{\n\t\t\t_loggingConfigFile = _cmdLine.getOptionValue(IOptions.USER_SETTINGS_DIR[0]);\n \t\t}\n \t}", "title": "" }, { "docid": "c2c5e7b0db03d2b5c023b9ede2565605", "score": "0.68786216", "text": "public void parseArguments(String[] args) {\n\t\tHelpFormatter formatter = new HelpFormatter();\n\t\tint widthFormatter = 88;\n\t\tCommandLine cLine = parseLine(args);\n\t\t\n\t\tif (cLine == null) {\n\t\t\tformatter.printHelp(widthFormatter, command, header, options, footer, true);\n\t\t\tSystem.exit(1);\n\t\t}\t\t\n\t\t\n\t\tif (cLine.hasOption(\"h\"))\t{\n\t\t\tformatter.printHelp(widthFormatter, command, header, options, footer, true);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t/* Ja el tracta loadOptrion\n\t\tif (! cLine.hasOption(\"l\") || ! cLine.hasOption(\"y\") ) {\t//no language or year \n\t\t\texitError(formatter, \"I need Wikipedia language code and year\");\n\t\t}\n\t */\n\t\t\n\t\t// Wikipedia related\n\t\tlocale = new Locale(cLine.getOptionValue(\"l\"));\n\t\tyear = Integer.valueOf(cLine.getOptionValue(\"y\"));\n\n\t\tDump ad = new Dump(locale, year);\n\t\tad.getLanguage();\t\n\t\t\n\t\t// WikiTailor related\n\t\t// Guessing if its an absolute or a relative path\n\t\tString input = cLine.getOptionValue(\"i\");\n\t\tString iniFile;\n\t\tif (input.startsWith(FileIO.separator)){\n\t\t\tiniFile = input;\n\t\t} else {\n\t\t\tiniFile = System.getProperty(\"user.dir\")+FileIO.separator+input;\n\t\t}\n\t\t// Read it\n\t\tp = WTConfig.getProperties(iniFile);\t\t\n\t}", "title": "" }, { "docid": "e186b0e984d6bc452ee8af956b2d678d", "score": "0.68734765", "text": "public void parseArgs(String args[]) throws Exception {\n for(int i=0; i < args.length; i++) {\n String opt = args[i];\n if (opt.equalsIgnoreCase(\"-proto\")) {\n proto = args[++i];\n } else if (opt.equalsIgnoreCase(\"-host\")) {\n mach = args[++i];\n } else if (opt.equalsIgnoreCase(\"-port\")) {\n port = args[++i];\n } else if (opt.equalsIgnoreCase(\"-user\")) {\n user = args[++i];\n } else if (opt.equalsIgnoreCase(\"-pw\")) {\n pw = args[++i];\n } else if (opt.equalsIgnoreCase(\"-cmdfile\")) {\n is = new FileInputStream(args[++i]);\n } else if (opt.equalsIgnoreCase(\"-closedelay\")) {\n delay= Integer.parseInt(args[++i]);\n }\n }\n }", "title": "" }, { "docid": "42584b07db846b986442624983a4e3a5", "score": "0.686132", "text": "@Override\n public Arguments parseArguments(String[] args){\n\n Options options = new Options();\n Option file = new Option(\"f\", \"file\", true, \"input file path\");\n file.setRequired(true);\n options.addOption(file);\n Option date = new Option(\"d\", \"date\", true, \"date for most active cookies\");\n date.setRequired(true);\n options.addOption(date);\n\n CommandLineParser parser = new DefaultParser();\n HelpFormatter formatter = new HelpFormatter();\n CommandLine cmd = null;\n\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException e) {\n formatter.printHelp(\"Arguments supported are \", options);\n LOGGER.error(\"The application does not support provided arguments, please provide valid arguments\", e);\n throw new WrongArgumentsException(\"Invalid arguments passed\");\n }\n\n String filePath = cmd.getOptionValue(\"file\");\n String dateInput = cmd.getOptionValue(\"date\");\n\n Arguments arguments = new Arguments();\n arguments.setFileName(filePath);\n try {\n LocalDate localDate = LocalDate.parse(dateInput, dateTimeFormatter);\n OffsetDateTime forDate = localDate.atStartOfDay(UTCZoneId).toOffsetDateTime();\n arguments.setDate(forDate);\n } catch (DateTimeParseException ex) {\n LOGGER.error(\"Parsing Date Exception\", ex);\n throw new WrongArgumentsException(\"Wrong date argument format, please provide date in yyyy-MM-dd format\");\n }\n return arguments;\n }", "title": "" }, { "docid": "b7d31621d6339f933fc16b95cec8df2c", "score": "0.6856934", "text": "public void parseArgs(String[] argv) {\n if (argv != null) {\n for (int argc = 0; argc < argv.length; argc += 2)\n switch (argv[argc]) {\n case \"-d\":\n mDiagnosticsEnabled = argv[argc + 1].equals(\"true\");\n break;\n case \"-e\":\n mExchangeRateTimeout = Duration.ofSeconds(Integer.parseInt(argv[argc + 1]));\n break;\n case \"-i\":\n mMaxIterations = Integer.parseInt(argv[argc + 1]);\n break;\n case \"-m\":\n mMaxTimeout = Duration.ofSeconds(Integer.parseInt(argv[argc + 1]));\n break;\n case \"-r\":\n mDefaultRate = Integer.parseInt(argv[argc + 1]);\n break;\n case \"-s\":\n mDefaultSync = argv[argc + 1].charAt(0);\n break;\n default:\n printUsage();\n return;\n }\n }\n }", "title": "" }, { "docid": "016e2e5203120ce74f04723d13c77992", "score": "0.6782365", "text": "private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for(i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch(args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if(annotTypesToWrite == null) annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if(gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }", "title": "" }, { "docid": "f61f2503e84b99966a1abb55b2d127f2", "score": "0.67731655", "text": "public static void cmdParser(String[] args){\n for (int i =0; i<args.length; i++){\n if (args[i].equalsIgnoreCase(\"-v\")){\n isVerbose = true;\n }else if (args[i].equalsIgnoreCase(\"-h\")){\n hasHeaderData = true;\n headerData = headerData.concat(args[i+1]+\"\\r\\n\");\n i++;\n }else if (args[i].equalsIgnoreCase(\"-d\")){\n hasInLineData = true;\n inLineData = (args[i+1]);\n i++;\n }else if (args[i].equalsIgnoreCase(\"-f\")){\n readFromFile = true;\n filePath = (args[i+1]);\n i++;\n }else if (args[i].equalsIgnoreCase(\"get\")){\n isGetRequest = true;\n }else if (args[i].equalsIgnoreCase(\"post\")){\n isPostRequest = true;\n }else if (args[i].equalsIgnoreCase(\"help\")){\n needHelp = true;\n }else{\n url = (args[i]);\n }\n }\n }", "title": "" }, { "docid": "86889a0b56a8c819a05755aad5041447", "score": "0.6770916", "text": "@SuppressWarnings(\"static-access\")\n\tpublic static Parameter parseCommandline(String[] args) {\n\t\tCommandLineParser parser = new BasicParser();\n\n\t\t// create the Options\n\t\tOptions options = new Options();\n\n\t\tOption help = new Option(\"h\", \"help\", false, \"print help and exit\");\n\t\toptions.addOption(help);\n\n\t\toptions.addOption(\"n\", \"no-gui\", false, \"display no GUI. Only logfile output (default: false) \");\n\n\t\tOption version = new Option(\"v\", \"version\", false, \"print the version information and exit\");\n\t\toptions.addOption(version);\n\n\t\tOption debug = new Option(\"d\", \"debug\", false, \"print debugging information (default: false)\");\n\t\toptions.addOption(debug);\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"ip\").withDescription(\"ip adress from DUMP1090\").hasArg()\n\t\t\t\t.isRequired().create(\"i\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"port\").withDescription(\"port from DUMP1090 (default: 30003)\")\n\t\t\t\t.hasArg().create(\"p\"));\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"max-count\").withDescription(\"set max count value (default: 50)\")\n\t\t\t\t.hasArg().create(\"max\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"min-count\").withDescription(\"set min count value (default: 0) \")\n\t\t\t\t.hasArg().create(\"min\"));\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"window-width\").withDescription(\"set window with (default: 600)\")\n\t\t\t\t.hasArg().create(\"width\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"window-height\").withDescription(\"set window hight (default: 600)\")\n\t\t\t\t.hasArg().create(\"height\"));\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"refresh-time\")\n\t\t\t\t.withDescription(\"refresh time in ms (default: 300000 ms = 5 Minuten)\").hasArg().create(\"r\"));\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"copy-time\")\n\t\t\t\t.withDescription(\"copy time in Minuten (default: 60 Minuten)\").hasArg().create(\"c\"));\n\n\t\toptions.addOption(\"k\", \"copy\", false, \"copy output file to destination (default: false)\");\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"ziel-ip\").withDescription(\"ip adress for copy destination\")\n\t\t\t\t.hasArg().create(\"dip\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"ziel-user\").withDescription(\"destination User (default: pi\")\n\t\t\t\t.hasArg().create(\"duser\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"ziel-passwort\").withDescription(\"passwort from destination User\")\n\t\t\t\t.hasArg().create(\"dpsw\"));\n\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"thing-speak-channel-id\")\n\t\t\t\t.withDescription(\"channel ID for ThingSpeak\").hasArg().create(\"channel\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"thing-speak-api-write-key\")\n\t\t\t\t.withDescription(\"api write Key for ThingSpeak\").hasArg().create(\"writekey\"));\n\n\t\tParameter parameter = new Parameter();\n\n\t\ttry {\n\t\t\t// parse the command line arguments\n\t\t\tCommandLine line = parser.parse(options, args);\n\n\t\t\tparameter.setIp(line.getOptionValue(\"i\"));\n\t\t\tparameter.setPort(line.getOptionValue(\"p\"));\n\n\t\t\tparameter.setMaxCount(line.getOptionValue(\"max\"));\n\t\t\tparameter.setMinCount(line.getOptionValue(\"min\"));\n\n\t\t\tparameter.setBreite(line.getOptionValue(\"width\"));\n\t\t\tparameter.setHoehe(line.getOptionValue(\"height\"));\n\n\t\t\t// Ziel Passwort nicht vorhanden setzen\n\t\t\tif (line.hasOption(\"dpsw\")) {\n\t\t\t\t// wenn Passwort angegeben auch setzen\n\t\t\t\tparameter.setZielPasswort(line.getOptionValue(\"dpsw\"));\n\t\t\t}\n\n\t\t\t// Ziel User nicht vorhanden setzen\n\t\t\tif (line.hasOption(\"duser\")) {\n\t\t\t\t// wenn User angegeben auch setzen\n\t\t\t\tparameter.setZielUser(line.getOptionValue(\"duser\"));\n\t\t\t} else {\n\t\t\t\t// default ziel User\n\t\t\t\tparameter.setZielUser(\"pi\");\n\t\t\t}\n\n\t\t\t// Ziel IP nicht vorhanden setzen\n\t\t\tif (line.hasOption(\"dip\")) {\n\t\t\t\t// wenn Ausgabe Datei angegeben\n\t\t\t\tparameter.setZielIp(line.getOptionValue(\"dip\"));\n\t\t\t} else {\n\t\t\t\t// default ziel IP\n\t\t\t\tparameter.setZielIp(\"pi-home\");\n\t\t\t}\n\n\t\t\t// ThingSpeak nicht vorhanden setzen\n\t\t\tif (line.hasOption(\"channel\")) {\n\t\t\t\t// wenn Channel gesetzt angegeben\n\t\t\t\tparameter.setThingSpeakChannelId(Integer.valueOf(line.getOptionValue(\"channel\")));\n\t\t\t} else {\n\t\t\t\t// default Channel\n\t\t\t\tparameter.setThingSpeakChannelId(null);\n\t\t\t}\n\t\t\tif (line.hasOption(\"writekey\")) {\n\t\t\t\t// wenn Api Write Key gesetzt angegeben\n\t\t\t\tparameter.setThingSpeakApiWriteKey(line.getOptionValue(\"writekey\"));\n\t\t\t} else {\n\t\t\t\t// default Api Write Key\n\t\t\t\tparameter.setThingSpeakApiWriteKey(null);\n\t\t\t}\n\n\t\t\tparameter.setRefreshTime(line.getOptionValue(\"r\"));\n\n\t\t\tparameter.setCopyTime(line.getOptionValue(\"c\"));\n\n\t\t\tif (line.hasOption(\"d\")) {\n\t\t\t\tSystem.out.println(\"Starte \" + ANWENDUNG_UND_VERSION + \" im Debug Modus ...\");\n\t\t\t\tLOG.debug(\"Starte \" + ANWENDUNG_UND_VERSION + \" im Debug Modus ...\");\n\t\t\t\tparameter.setDebug(true);\n\t\t\t}\n\n\t\t\tif (line.hasOption(\"n\")) {\n\t\t\t\tSystem.out.println(\"Starte \" + ANWENDUNG_UND_VERSION + \" ohne GUI ...\");\n\t\t\t\tparameter.setNoGui(true);\n\t\t\t}\n\t\t\tif (line.hasOption(\"k\")) {\n\t\t\t\tparameter.setCopy(true);\n\t\t\t}\n\n\t\t\tif (line.hasOption(\"v\")) {\n\t\t\t\tSystem.out.println(ANWENDUNG_UND_VERSION);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tif (line.hasOption(\"h\")) {\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (parameter.isDebug()) {\n\t\t\t\tSystem.out.println(\"Starte \" + ANWENDUNG_UND_VERSION + \" mit Parameter: \" + parameter);\n\t\t\t}\n\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"Starte \" + ANWENDUNG_UND_VERSION + \" mit Parameter: \" + parameter);\n\t\t\t}\n\n\t\t} catch (ParseException exp) {\n\t\t\tSystem.out.println(\"Fehler beim parsen der Kommandozeile: \" + exp.getMessage());\n\t\t\tprintHelp(options);\n\t\t\treturn null;\n\t\t}\n\t\treturn parameter;\n\t}", "title": "" }, { "docid": "f11d1d9eaf0aff9b82b5a9477a4af757", "score": "0.67316014", "text": "private void processArgs(String[] args) throws Exception {\r\n\t\tCommandLineParser parser = new BasicParser();\r\n\t\tOptions options = buildOptions();\r\n\t\tCommandLine cmd = null;\r\n\t\ttry {\r\n\t\t\tcmd = parser.parse(options, args);\r\n\t\t} catch (ParseException e) {\r\n\t\t\ttheLogger.log(Level.INFO, \"Failed to parse command line properties\", e);\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\thelp(options);\r\n\t\t}\r\n\t\r\n\t\tif (cmd.hasOption(\"h\"))\r\n\t\t\thelp(options);\r\n\r\n\t\tif (cmd.hasOption(\"i\")) {\r\n\t\t\tinputPath = cmd.getOptionValue(\"i\");\r\n\t\t} else {\r\n\t\t\ttheLogger.log(Level.INFO, \"Missing -i option\");\r\n\t\t\thelp(options);\r\n\t\t}\r\n\r\n\t\t// output path\r\n\t\tif (cmd.hasOption(\"o\")) {\r\n\t\t\toutputPath = cmd.getOptionValue(\"o\");\r\n\t\t} else {\r\n\t\t\ttheLogger.log(Level.INFO, \"Missing -o option\");\r\n\t\t\thelp(options);\r\n\t\t}\r\n\t\t\r\n\t\t// verify paths\r\n\t\tif (inputPath.length() == 0 || outputPath.length() == 0 || inputPath.equals(outputPath))\r\n\t\t{\r\n\t\t\ttheLogger.log(Level.INFO, \"Invalid input/output path\");\r\n\t\t\thelp(options);\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// width\r\n\t\tif (cmd.hasOption(\"w\")) {\r\n\t\t\tbandwidth = Double.parseDouble(cmd.getOptionValue(\"w\"));\r\n\t\t\tif (bandwidth <= 0d)\r\n\t\t\t{\r\n\t\t\t\ttheLogger.log(Level.INFO, \"Invalid -w option\");\r\n\t\t\t\thelp(options);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttheLogger.log(Level.INFO, \"Invalid -w option\");\r\n\t\t\thelp(options);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// use start and end only\r\n\t\tif (cmd.hasOption(\"s\")) {\r\n\t\t\tsummaryOutput = true;\r\n\t\t}\t\r\n\t\t\r\n\t\t// max distance\r\n\t\tif (cmd.hasOption(\"m\")) {\r\n\t\t\tmaxDist = Double.parseDouble(cmd.getOptionValue(\"m\"));\r\n\t\t\tif (maxDist <= 0d || (int)(maxDist % bandwidth) != 0)\r\n\t\t\t{\r\n\t\t\t\ttheLogger.log(Level.INFO, \"Invalid -m option\");\r\n\t\t\t\thelp(options);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttheLogger.log(Level.INFO, \"Missing -w option\");\r\n\t\t\thelp(options);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dff97c566ab7d557003981abb07c3d63", "score": "0.6678552", "text": "private static void parseCommandLineArgs(String[] args)\n\t{\n\t\tfor (int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tif (args[i].equals(\"-theta_file\"))\n\t\t\t\tKMeans.distributionFile = args[i + 1];\n\t\t\telse if (args[i].equals(\"-clusters_file\"))\n\t\t\t\tKMeans.clustersFile = args[i + 1];\n\t\t\telse if (args[i].equals(\"-assignments_file\"))\n\t\t\t\tKMeans.assignmentFile = args[i + 1];\n\t\t\telse if (args[i].equals(\"-C\"))\n\t\t\t\tKMeans.C = Integer.parseInt(args[i + 1]);\n\t\t\telse if (args[i].equals(\"-iterations\"))\n\t\t\t\tKMeans.iterations = Integer.parseInt(args[i + 1]);\n//\t\t\telse if (args[i].equals(\"-input_file\"))\n//\t\t\t\tKMeans.tweetsFile = args[i + 1];\n\t\t}\n\t}", "title": "" }, { "docid": "bb362801419313a9531557f72680f54d", "score": "0.6671516", "text": "public void parseCommandLine(String[] args) throws CommandLineParserException {\n\n try {\n CommandLineParser parser = new PosixParser();\n commandLine = parser.parse(options, args);\n\n } catch (ParseException e) {\n usage();\n throw new CommandLineParserException(e.getMessage());\n }\n\n }", "title": "" }, { "docid": "16488dc1e8bf9af4589d17ca37e6c097", "score": "0.6624979", "text": "@Override\n protected void parseArgs(String[] args) {\n Option orgOption = Option.builder()\n .longOpt(\"org_id\")\n .desc(\"Specify the organization id\")\n .argName(\"ORGANIZATION ID\")\n .required(true)\n .hasArg()\n .build();\n Option sddcOption = Option.builder()\n .longOpt(\"sddc_id\")\n .desc(\"Specify the SDDC id\")\n .argName(\"SDDC ID\")\n .required(true)\n .hasArg()\n .build();\n List<Option> optionList =\n Arrays.asList(orgOption, sddcOption);\n\n super.parseArgs(optionList, args);\n this.orgId = (String) parsedOptions.get(\"org_id\");\n this.sddcId = (String) parsedOptions.get(\"sddc_id\");\n }", "title": "" }, { "docid": "3aec0f5d231d9a3fcf2c54454b3fab38", "score": "0.66198325", "text": "private static void _parseArgs(String[] args) {\n\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"-design\")) {\n i++;\n _designname = args[i];\n if (_designname.indexOf(\".\") == -1)\n _designname = _designname + _ext;\n } else if (args[i].equals(\"-edifout\")) {\n i++;\n _newedif = args[i];\n } else if (args[i].equals(\"-type\")) {\n i++;\n if (args[i].equals(\"-l\"))\n _type = \"LOC\";\n else\n _type = \"RLOC\";\n } else {\n _usage();\n System.exit(-1);\n }\n }\n }", "title": "" }, { "docid": "9b8e75cdab51a62655f75c6774e96598", "score": "0.658376", "text": "protected void initArgs(String[] args)\n\t{\n\t\tCmdLineParser cmd = new CmdLineParser(this);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tcmd.parseArgument(args);\n\t\t}\n\t\tcatch (CmdLineException e)\n\t\t{\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\tcmd.printUsage(System.err);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcatch (Exception e) {e.printStackTrace();}\n\t}", "title": "" }, { "docid": "fe113f2c63618e30bb5b77ec9cbfa595", "score": "0.6557232", "text": "private static void parseCommandLineArguments( String[] args )\r\n {\r\n // In later versions this should be able to load custom GUIs\r\n boolean useGUI = false;\r\n \r\n if ( args.length > 0 )\r\n {\r\n for ( String arg : args )\r\n {\r\n if ( arg.equalsIgnoreCase( \"gui\" ) )\r\n {\r\n useGUI = true;\r\n }\r\n }\r\n }\r\n\r\n if ( useGUI )\r\n {\r\n IO.setIOUtility( new GameWindow() );\r\n }\r\n else\r\n {\r\n IO.setIOUtility( new SystemIOUtility() );\r\n }\r\n }", "title": "" }, { "docid": "ae0c2f4ad841fa1bf5b91bf3c508ddfa", "score": "0.6543057", "text": "@Test\n public void test_parse_args_valid_host_and_port_should_pass() {\n ArgParser ap = new ArgParser();\n String[] args = {\"PortScanner\", \"--hosts\", \"127.0.0.1\", \"--ports\", \"22\"};\n String error = ap.parseArgs(args);\n assertNull(error);\n }", "title": "" }, { "docid": "c8f3b26ca122c17db46bfcfc6880fd37", "score": "0.6529332", "text": "private void parseArgs(String[] args) {\n\t\tif(args.length < 2)\t{\n\t\t\tthrow new IllegalArgumentException(\"expected parameters: 'id' 'numberOfElementsToProduce' 'failure rate' 'XVSM space URI'!\");\n\t\t}\n\t\ttry\t{\n\t\t\tthis.id = Integer.parseInt(args[0]);\n\t\t} catch (Exception e)\t{\n\t\t\tthrow new IllegalArgumentException(\"ID has to be an integer!\");\n\t\t}\n\t\t\n\t\ttry\t{\n\t\t\tthis.space = URI.create(args[1]);\n\t\t} catch (Exception e)\t{\n\t\t\tthrow new IllegalArgumentException(\"URI could not be parsed\");\n\t\t}\n\t\t\n\t\ttry\t{\n\t\t\tthis.productCount = Integer.parseInt(args[2]);\n\t\t} catch (Exception e)\t{\n\t\t\tthrow new IllegalArgumentException(\"amount has to be an integer\");\n\t\t}\n\t\t\n\t\ttry\t{\n\t\t\tthis.failureRate = Double.parseDouble(args[3]);\n\t\t} catch (Exception e)\t{\n\t\t\tthrow new IllegalArgumentException(\"failure rate has to be a float and must be 0 <= failure rate <= 1\");\n\t\t}\n\t}", "title": "" }, { "docid": "4556cc8fc67c784a129ff1bba7f5b5cf", "score": "0.6513916", "text": "private void parseArgs(String[] args)\n {\n if (args.length < 1)\n {\n usage();\n }\n\n List<String> argList = new ArrayList<String>();\n argList.addAll(Arrays.asList(args));\n\n int pos;\n\n //debug messages\n Level l = Level.WARNING;\n if (argList.contains(\"-v\"))\n {\n pos = argList.indexOf(\"-v\");\n if (argList.size() > ++pos)\n {\n try\n {\n l = Level.parse(argList.get(pos).toUpperCase());\n\n } catch (IllegalArgumentException e)\n {\n System.err.println(\n \"No such verbosity level: \" + argList.get(pos));\n System.exit(-2);\n }\n argList.remove(pos);//must be first as we don't know it's name.\n argList.remove(\"-v\");\n }\n }\n\n //quiet! (only fatal messages i.e. runtime errors)\n if (argList.contains(\"-q\"))\n {\n l = Level.OFF;\n argList.remove(\"-q\");\n }\n\n //actually set the verbosity levels.\n //need to set the root logger and all of its handlers.\n for (Handler h : Logger.getLogger(\"\").getHandlers())\n {\n h.setLevel(l);\n }\n logger.setLevel(l);\n\n\n //recursive switch\n recursive = false;\n if (argList.contains(\"-r\"))\n {\n recursive = true;\n argList.remove(\"-r\");\n }\n\n\t//ignore unknown file extensions\n\tignoreNonOffice = false;\n\tif (argList.contains(\"-i\"))\n\t {\n\t\tignoreNonOffice = true;\n\t\targList.remove(\"-i\");\n\t }\n\n //output file\n if (argList.contains(\"-o\"))\n {\n pos = argList.indexOf(\"-o\");\n String outArg;\n if (argList.size() > ++pos)\n {\n outArg = argList.remove(pos);\n try\n {\n output = new FileOutputStream(outArg);\n argList.remove(\"-o\");\n } catch (FileNotFoundException ex)\n {\n logger.log(Level.SEVERE, \"Can't open output file\", ex);\n usage();\n }\n } else\n {\n usage(); //exits program.\n }\n } else\n {\n output = System.out;\n }\n\n //format\n if (argList.contains(\"-f\"))\n {\n pos = argList.indexOf(\"-f\");\n if (++pos < argList.size())\n {\n outputModule = selectOutputFormat(argList.remove(pos));\n argList.remove(\"-f\");\n }\n } else\n {\n outputModule = selectOutputFormat(\"default\");\n }\n\n registerDefaultProcessors();\n //should now be empty except for the input argument.\n if (argList.size() != 1)\n {\n usage();\n }\n\n inputFile = new File(argList.get(0));\n\n //if no input has been set, die.\n if (inputFile == null || !inputFile.canRead())\n {\n logger.log(Level.SEVERE, \"Can't open input file {0}\", inputFile.getPath());\n usage();\n }\n\n logger.log(Level.FINEST, \"Opened input file: {0} \",\n inputFile.getPath());\n\n\n }", "title": "" }, { "docid": "d6a3f4d38b779d9526b9642e006b8d48", "score": "0.6502459", "text": "public CmdLineData parseInput(String[] args) throws InvalidArgumentsException {\n int i = 0;\n while (i < args.length) {\n if (args[i].charAt(0) == '-' && cmdLineData.checkValidSetting(args[i].substring(1))) {\n if (args[i].equals(\"-ip\")) {\n this.cmdLineData.setServerPath(args[i + 1]);\n } else {\n this.cmdLineData.setCommandLineDataSetting(args[i].substring(1), args[i + 1]);\n }\n i += 2;\n } else {\n i++;\n }\n }\n return this.cmdLineData;\n }", "title": "" }, { "docid": "00d1a61d33461797fcfdf746b8aa35de", "score": "0.6482437", "text": "public CommandLine parse(String[] args) {\r\n \t\ttry {\r\n \t\t\tCommandLineParser parser = new GnuParser();\r\n \t\t\tCommandLine comLine = parser.parse(getOptions(), args);\r\n \t\t\tif (comLine.hasOption(\"h\")) {\r\n \t\t\t\tprintHelpAndExit(0);\r\n \t\t\t} else if (comLine.hasOption(\"v\")) {\r\n \t\t\t\tprintVersionAndExit(0);\r\n \t\t\t} else if (!containsAllRequiredOptions(comLine)) {\r\n \t\t\t\tSystem.err.println(\"Required options are missing.\");\r\n \t\t\t\tprintHelpAndExit(1);\r\n \t\t\t}\r\n \t\t\treturn comLine;\r\n \t\t} catch (ParseException e) {\r\n \t\t\tSystem.err.println(parseErrorMessage(e.getMessage()));\r\n \r\n \t\t\tprintHelpAndExit(1);\r\n \t\t}\r\n \t\t// never reached\r\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "a001aa32bc549cd7d8fe5c70acb92748", "score": "0.6470179", "text": "private static CommandLine parse(String[] args) {\n\t\tCommandLineParser cli = new DefaultParser();\n\t\ttry {\n\t\t\treturn cli.parse(OPTS, args);\n\t\t} catch (ParseException ex) {\n\t\t\tprintHelp();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5effda60353b5284e25b28ef6cbe1ef8", "score": "0.6462679", "text": "public static Properties parseArgs(String[] args) {\n\t\tProperties props = new Properties();\n\n\t\tint argindex = 0;\n\t\tif (args.length == 0) {\n\t\t\tSystem.err.println(\"no input.\");\n\t\t\tusageMessage();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\twhile (args[argindex].startsWith(\"-\")) {\n\t\t\tif (args[argindex].compareTo(\"-load\") == 0) {\n\t\t\t\tsetBench(false);\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-bench\") == 0) {\n\t\t\t\tsetBench(true);\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-threads\") == 0) {\n\t\t\t\targindex++;\n\t\t\t\tif (argindex >= args.length) {\n\t\t\t\t\tusageMessage();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tprops.setProperty(\"threadcount\", Integer.parseInt(args[argindex]) + \"\");\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-ops\") == 0) {\n\t\t\t\targindex++;\n\t\t\t\tif (argindex >= args.length) {\n\t\t\t\t\tusageMessage();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tprops.setProperty(\"operationcount\", Integer.parseInt(args[argindex]) + \"\");\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-loads\") == 0) {\n\t\t\t\targindex++;\n\t\t\t\tif (argindex >= args.length) {\n\t\t\t\t\tusageMessage();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tprops.setProperty(\"loadcount\", Integer.parseInt(args[argindex]) + \"\");\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-dist\") == 0) {\n\t\t\t\targindex++;\n\t\t\t\tif (argindex >= args.length) {\n\t\t\t\t\tusageMessage();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tprops.setProperty(\"distribution\", args[argindex]);\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-s\") == 0) {\n\t\t\t\tonStatus();\n\t\t\t\targindex++;\n\t\t\t} else if (args[argindex].compareTo(\"-h\") == 0 || args[argindex].compareTo(\"-help\") == 0) {\n\t\t\t\tusageMessage();\n\t\t\t\tSystem.exit(0);\n\t\t\t} else { // each operations ratio setting\n\t\t\t\tString paramName = args[argindex].substring(1).toUpperCase();\n\t\t\t\targindex++;\n\t\t\t\tif (argindex >= args.length) {\n\t\t\t\t\tusageMessage();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tprops.setProperty(paramName, Double.parseDouble(args[argindex]) + \"\");\n\t\t\t}\n\n\t\t\tif (argindex >= args.length) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn props;\n\t}", "title": "" }, { "docid": "253a5d1a9c0c30290aa8b53f6d8c9940", "score": "0.6416285", "text": "public static void parseArgs(String[] args){\n\n if (args.length > 0) {\n FILENAME = args[0];\n }\n\n // socket details\n if (args.length > 1) SERVER = args[1];\n if (args.length > 2) PORT = Integer.parseInt(args[2]);\n }", "title": "" }, { "docid": "2bb3f346a79b6366eb7d8634540fa91e", "score": "0.63793737", "text": "public void readArguments(String args[])\r\n {\r\n if (args.length == 2)\r\n {\r\n if (isInteger(args[1]))\r\n {\r\n readHeap(args[0], Integer.parseInt(args[1]));\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"Error: only pass in two arguments\");\r\n }\r\n }", "title": "" }, { "docid": "2d103df61cf344f6569047a2b8959f3e", "score": "0.6359798", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 's': alleleBedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'a': alignmentBedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': minimumBaseQuality = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: System.out.println(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (alleleBedFile == null || alignmentBedFile == null) Misc.printErrAndExit(\"\\nCouldn't find one or both of your xxx.bed files?\\n\");\n\n\t}", "title": "" }, { "docid": "4413a2440c46d963545f3ca09b01a414", "score": "0.6351664", "text": "private static CommandLine parseAndValidateInput(String[] args) {\n\t\tif (args == null || args.length == 0) {\n\t\t\t//printUsage(System.out);\n\t\t\t//System.exit(0);\n\t\t}\n\n\t\t// Parse the arguments\n\t\tOptions opts = buildOptions();\n\t\tCommandLineParser parser = new GnuParser();\n\t\tCommandLine line = null;\n\t\ttry {\n\t\t\tline = parser.parse(opts, args, true);\n\t\t} catch (ParseException e) {\n\t\t\tfailAndExit(\"Unable to parse the input arguments:\\n\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\n\t\t// Ensure we don't have any extra input arguments\n\t\tif (line.getArgs() != null && line.getArgs().length > 0) {\n\t\t\tSystem.err.println(\"Unsupported input arguments:\");\n\t\t\tfor (String arg : line.getArgs()) {\n\t\t\t\tSystem.err.println(arg);\n\t\t\t}\n\t\t\tfailAndExit(\"\");\n\t\t}\n\n\t\t// If the user asked for help, nothing else to do\n\t\tif (line.hasOption(HELP)) {\n\t\t\treturn line;\n\t\t}\n\n\t\tif (!line.hasOption(MODE)) {\n\t\t\tfailAndExit(\"The 'mode' option is required\");\n\t\t}\n\n\t\tString mode = line.getOptionValue(MODE);\n\n\t\tif (! (mode.equals(MODE_DATAGEN) || mode.equals(MODE_REFRESH) || mode.equals(MODE_PREPARE))) {\n\t\t\tfailAndExit(\"Only support modes:\"+MODE_DATAGEN + \",\" + MODE_REFRESH + \",\"+MODE_PREPARE);\n\t\t}\n\n\t\tProperties properties = line.getOptionProperties(\"D\");\n\n\t\tif (properties.getProperty(BigConfConstants.BIGFRAME_HADOOP_HOME) == null) {\n\t\t\tfailAndExit(\"HADOOP_HOME is not set\");\n\t\t}\n\n\t\tif (properties.getProperty(BigConfConstants.BIGFRAME_HADOOP_SLAVE) == null) {\n\t\t\tfailAndExit(\"HADOOP_SLAVES is not set\");\n\t\t}\n\n\t\tif (properties.getProperty(BigConfConstants.BIGFRAME_TPCDS_LOCAL) == null) {\n\t\t\tfailAndExit(\"TPCDS_LOCAL is not set\");\n\t\t}\n\n\t\tif (properties.getProperty(BigConfConstants.BIGFRAME_TPCDS_SCRIPT) == null) {\n\t\t\tfailAndExit(\"TPCDS_SCRIPT is not set\");\n\t\t}\n\n\t\tif (properties.getProperty(BigConfConstants.BIGFRAME_CONF_DIR) == null) {\n\t\t\tfailAndExit(\"CONF_DIR is not set\");\n\t\t}\n\n\n\t\treturn line;\n\t}", "title": "" }, { "docid": "e0645d43a98e61b269b2339be2764f4e", "score": "0.6326927", "text": "static CommandLineOptions parseOptions(String[] args, Logger logger) {\r\n \r\n if (args.length < 1) {\r\n logUsageString(logger);\r\n return null;\r\n }\r\n List<String> argList = new ArrayList<String>(Arrays.asList(args));\r\n \r\n // flag to indicate whether the usage string has already been logged via -h option.\r\n boolean loggedUsageStringForOption = false;\r\n \r\n String moduleName = null;\r\n String workspaceName = null;\r\n List<String> inputFileStrings = new ArrayList<String>(); // (List of String)\r\n List<String> inputDirectoryStrings = new ArrayList<String>(); // (List of String);\r\n File outputFolder = null;\r\n String[] classPath = null;\r\n String[] patterns = null;\r\n Level verbosity = null;\r\n ForeignImportGenerator.GenerationScope generationScope = null;\r\n String[] excludeMethods = null;\r\n \r\n try {\r\n while (!argList.isEmpty()) {\r\n String nextArg = argList.get(0);\r\n \r\n // Handle non-dash argument.\r\n // This should give the module name and the workspace name.\r\n if (!nextArg.startsWith(\"-\")) {\r\n // Check that there is one arg remaining.\r\n if (argList.size() != 1) {\r\n throw new ParseException();\r\n }\r\n \r\n moduleName = nextArg;\r\n argList = Collections.emptyList();\r\n \r\n } else {\r\n \r\n // Save the option text.\r\n String option = nextArg;\r\n \r\n // Shorten argList by one arg.\r\n argList = argList.subList(1, argList.size());\r\n \r\n //\r\n // Zero-argument options.\r\n //\r\n if (option.equals(\"-h\")) {\r\n if (!loggedUsageStringForOption) {\r\n loggedUsageStringForOption = true;\r\n logUsageString(logger);\r\n }\r\n \r\n } else if (option.equals(\"-v\") || option.equals(\"-verbose\")) {\r\n if (verbosity != null) {\r\n logger.severe(\"Multiple verbosity options provided.\");\r\n throw new ParseException();\r\n }\r\n verbosity = Level.FINEST;\r\n \r\n } else if (option.equals(\"-q\") || option.equals(\"-quiet\")) {\r\n if (verbosity != null) {\r\n logger.severe(\"Multiple verbosity options provided.\");\r\n throw new ParseException();\r\n }\r\n verbosity = Level.SEVERE;\r\n \r\n } else if (option.equals(\"-public\")) {\r\n if (generationScope != null) {\r\n logger.severe(\"Multiple generation scope options provided.\");\r\n throw new ParseException();\r\n }\r\n generationScope = ForeignImportGenerator.GenerationScope.ALL_PUBLIC;\r\n \r\n } else if (option.equals(\"-private\")) {\r\n if (generationScope != null) {\r\n logger.severe(\"Multiple generation scope options provided.\");\r\n throw new ParseException();\r\n }\r\n generationScope = ForeignImportGenerator.GenerationScope.ALL_PRIVATE;\r\n \r\n } else if (option.equals(\"-privateTypeImpl\")) {\r\n if (generationScope != null) {\r\n logger.severe(\"Multiple generation scope options provided.\");\r\n throw new ParseException();\r\n }\r\n generationScope = ForeignImportGenerator.GenerationScope.PARTIAL_PUBLIC;\r\n\r\n //\r\n // One-argument options.\r\n //\r\n } else {\r\n // Make sure there's another argument\r\n if (argList.size() < 1) {\r\n throw new ParseException();\r\n }\r\n \r\n // Get the argument to the option.\r\n String optionArg = argList.get(0);\r\n \r\n // Shorten argList by another arg.\r\n argList = argList.subList(1, argList.size());\r\n \r\n if (option.equals(\"-ws\")) {\r\n // The name of the workspace.\r\n if (workspaceName != null) {\r\n logger.severe(\"Multiple workspace names provided.\");\r\n throw new ParseException();\r\n }\r\n workspaceName = optionArg;\r\n \r\n } else if (option.equals(\"-cp\")) {\r\n // Classpath provided on the command line.\r\n if (classPath != null) {\r\n logger.severe(\"Multiple classpath options provided.\");\r\n throw new ParseException();\r\n }\r\n \r\n classPath = pathsToStrings(optionArg);\r\n \r\n } else if (option.equals(\"-cpf\")) {\r\n // Read the classpath from a file.\r\n if (classPath != null) {\r\n logger.severe(\"Multiple classpath options provided.\");\r\n throw new ParseException();\r\n }\r\n \r\n classPath = fileToStrings(optionArg, logger);\r\n if (classPath == null) {\r\n // There was a problem reading the file.\r\n return null;\r\n }\r\n \r\n } else if (option.equals(\"-p\")) {\r\n // Patterns provided on the command line.\r\n if (patterns != null) {\r\n logger.severe(\"Multiple pattern options provided.\");\r\n throw new ParseException();\r\n }\r\n \r\n patterns = pathsToStrings(optionArg);\r\n \r\n } else if (option.equals(\"-pf\")) {\r\n // Patterns provided from a file.\r\n if (patterns != null) {\r\n logger.severe(\"Multiple pattern options provided.\");\r\n throw new ParseException();\r\n }\r\n \r\n patterns = fileToStrings(optionArg, logger);\r\n if (patterns == null) {\r\n // There was a problem reading the file.\r\n return null;\r\n }\r\n \r\n } else if (option.equals(\"-xm\")) {\r\n // Exclude methods provided on the command line.\r\n if (excludeMethods != null) {\r\n logger.severe(\"Multiple exclude method options provided.\");\r\n throw new ParseException();\r\n }\r\n excludeMethods = pathsToStrings(optionArg);\r\n \r\n } else if (option.equals(\"-xmf\")) {\r\n // Exclude methods provided from a file.\r\n if (excludeMethods != null) {\r\n logger.severe(\"Multiple exclude method options provided.\");\r\n throw new ParseException();\r\n }\r\n excludeMethods = fileToStrings(optionArg, logger);\r\n if (excludeMethods == null) {\r\n // There was a problem reading the file.\r\n return null;\r\n }\r\n \r\n } else if (option.equals(\"-f\")) {\r\n // Input jar file.\r\n inputFileStrings.addAll(Arrays.asList(pathsToStrings(optionArg)));\r\n \r\n } else if (option.equals(\"-d\")) {\r\n // Input directory.\r\n inputDirectoryStrings.addAll(Arrays.asList(pathsToStrings(optionArg)));\r\n \r\n } else if (option.equals(\"-o\")) {\r\n // output folder\r\n if (outputFolder != null) {\r\n logger.severe(\"Multiple output folders specified.\");\r\n throw new ParseException();\r\n }\r\n outputFolder = new File(optionArg);\r\n \r\n } else {\r\n logger.severe(\"Unknown option: \" + option);\r\n throw new ParseException();\r\n }\r\n }\r\n }\r\n }\r\n \r\n } catch (ParseException pe) {\r\n // Some problem occurred parsing the arguments.\r\n // Log the usage string and return null.\r\n if (!loggedUsageStringForOption) {\r\n logUsageString(logger);\r\n }\r\n return null;\r\n }\r\n \r\n File[] inputFiles = new File[inputFileStrings.size()];\r\n {\r\n int index = 0;\r\n for (final String inputFileString : inputFileStrings) {\r\n inputFiles[index] = new File(inputFileString);\r\n index++;\r\n }\r\n }\r\n\r\n File[] inputDirectories = new File[inputDirectoryStrings.size()];\r\n {\r\n int index = 0;\r\n for (final String inputDirString : inputDirectoryStrings) {\r\n inputDirectories[index] = new File(inputDirString);\r\n index++;\r\n }\r\n }\r\n\r\n return makeOptions(moduleName, workspaceName, inputFiles, inputDirectories, outputFolder, \r\n classPath, patterns, generationScope, excludeMethods, verbosity, logger);\r\n }", "title": "" }, { "docid": "0c7b9c6b048b59a3aa933b083acf7dba", "score": "0.63081986", "text": "private void parseArgs(String[] args, String valid) throws Exception {\r\n options = new HashMap<>();\r\n params = new LinkedList<>();\r\n HashMap<String, Integer> validator = buildValidator(valid);\r\n String msg = \"\";\r\n\r\n /* First parsing phase: collect all options and parameters\r\n * and trigger exceptions for unknown options */\r\n String key = null;\r\n for (int i = 0; i < args.length; ++i) {\r\n String s = args[i];\r\n if (s.startsWith(\"-\")) {\r\n key = s;\r\n if (!validator.containsKey(key)) {\r\n msg += \"Invalid option \" + key + \".\\n\";\r\n } else {\r\n options.put(key, null);\r\n }\r\n } else if (key != null && ((validator.get(key) & FLAG_VALUE) != 0)) {\r\n options.put(key, s);\r\n key = null;\r\n } else {\r\n params.add(s);\r\n }\r\n }\r\n\r\n /* Second parsing phase: trigger exceptions for missing\r\n * values for options requiring one */\r\n for (String opt : options.keySet()) {\r\n String val = options.get(opt);\r\n if (val == null && (validator.get(opt) & FLAG_VALUE) != 0) {\r\n msg += \"Option \" + opt + \" requires a value.\\n\";\r\n }\r\n }\r\n\r\n /* Third parsing phase: trigger exceptions for missing\r\n * mandatory options */\r\n for (String opt : validator.keySet()) {\r\n if ((validator.get(opt) & FLAG_REQUIRED) != 0 && !options.containsKey(opt)) {\r\n msg += \"Option \" + opt + \" is mandatory.\\n\";\r\n }\r\n }\r\n\r\n if (!msg.equals(\"\")) {\r\n throw new Exception(msg);\r\n }\r\n }", "title": "" }, { "docid": "ce1a53d930f25aa3fb97123b1d08d2df", "score": "0.62954026", "text": "public Commander(String... args) throws ParseException {\n options = buildOptions(\n \t\tRenameParameterOptions.OPT_HELP,\n \t\tRenameParameterOptions.OPT_MODE,\n \t\tRenameParameterOptions.OPT_PROJECT_DIR,\n RenameParameterOptions.OPT_TEST_FULL_NAME,\n RenameParameterOptions.OPT_OLD_SCENARIO,\n RenameParameterOptions.OPT_NEW_SCENARIO,\n RenameParameterOptions.OPT_OLD_TEST,\n RenameParameterOptions.OPT_NEW_TEST,\n RenameParameterOptions.OPT_OLD_PARAM,\n RenameParameterOptions.OPT_NEW_PARAM,\n RenameParameterOptions.OPT_BEAN_FULL_NAME\n );\n Parser parser = new GnuParser();\n commandLine = parser.parse(options, args);\n }", "title": "" }, { "docid": "c74b2421c379a58e118c2c72ee5c0066", "score": "0.62880385", "text": "void parseParams(String[] argv) throws IllegalArgumentException {\n\n\t\tint argc = 0;\n\t\tint nArgs = argv.length;\n\n\t\tif (nArgs == 0) {\n\t\t\tusage(\"-env, -nodeName, -nodeHost, and -helperHost are required.\");\n\t\t}\n\t\tString nodeName = null;\n\t\tString nodeHost = null;\n\t\twhile (argc < nArgs) {\n\t\t\tString thisArg = argv[argc++];\n\n\t\t\tif (thisArg.equals(\"-env\")) {\n\t\t\t\tif (argc < nArgs) {\n\t\t\t\t\tenvHome = new File(argv[argc++]);\n\t\t\t\t} else {\n\t\t\t\t\tusage(\"-env requires an argument\");\n\t\t\t\t}\n\t\t\t} else if (thisArg.equals(\"-nodeName\")) {\n\t\t\t\t// the node name\n\t\t\t\tif (argc < nArgs) {\n\t\t\t\t\tnodeName = argv[argc++];\n\t\t\t\t\trepConfig.setNodeName(nodeName);\n\t\t\t\t} else {\n\t\t\t\t\tusage(\"-nodeName requires an argument\");\n\t\t\t\t}\n\t\t\t} else if (thisArg.equals(\"-nodeHost\")) {\n\t\t\t\t// The node hostname, port pair\n\t\t\t\tnodeHost = argv[argc++];\n\t\t\t\tif (argc <= nArgs) {\n\t\t\t\t\trepConfig.setNodeHostPort(nodeHost);\n\t\t\t\t} else {\n\t\t\t\t\tusage(\"-nodeHost requires an argument\");\n\t\t\t\t}\n\t\t\t} else if (thisArg.equals(\"-helperHost\")) {\n\t\t\t\t// The helper node hostname, port pair\n\t\t\t\tif (argc < nArgs) {\n\t\t\t\t\trepConfig.setHelperHosts(argv[argc++]);\n\t\t\t\t} else {\n\t\t\t\t\tusage(\"-helperHost requires an argument\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tusage(\"Unknown argument; \" + thisArg);\n\t\t\t}\n\t\t}\n\t\tif (envHome == null) {\n\t\t\tusage(\"-env is a required parameter\");\n\t\t}\n\n\t\tif (nodeName == null) {\n\t\t\tusage(\"-nodeName is a required parameter\");\n\t\t}\n\n\t\tif (nodeHost == null) {\n\t\t\tusage(\"-nodeHost is a required parameter\");\n\t\t}\n\n\t\t// Helper host can be skipped once a anode has joined a group\n\t\trepConfig.setGroupName(REP_GROUP_NAME);\n\t}", "title": "" }, { "docid": "708ccf92a2d94ae9ee2c094f84863361", "score": "0.628062", "text": "public static HashMap<String, String> parseArgs(String[] args) \n \t\tthrows ArgumentParseException {\n HashMap<String, String> argsList = new HashMap<String, String>();\n \n if (args.length == 10) { //all arguments are required\n for (int i = 0; i < args.length; i+=2) {\n String key = \"\";\n switch(args[i].charAt(1)) {\n case 'E':\n key = \"entrants\";\n break;\n case 'T':\n key = \"times\";\n break;\n case 'C':\n key = \"courses\";\n break;\n case 'K':\n key = \"checkpoints\";\n break;\n case 'L':\n key = \"log\";\n break;\n default:\n throw new ArgumentParseException();\n }\n\n argsList.put(key, args[i+1]);\n }\n } else {\n throw new ArgumentParseException();\n }\n \n return argsList;\n }", "title": "" }, { "docid": "3d01433e760dbb0e9447d7c879421e32", "score": "0.62680846", "text": "public void parseArgs(String[] args, int index) {\n\t\tif (index < args.length)\n\t\t\tthis.configfilename = args[index];\n\t\tif (++index < args.length)\n\t\t\tthis.simdt = Double.parseDouble(args[index]);\n\t\tif (++index < args.length)\n\t\t\tthis.outputfileprefix = args[index];\n\t\tif (++index < args.length)\n\t\t\tthis.output_format = args[index];\n\t\tif (++index < args.length) \n\t\t\tstartTime = round(Double.parseDouble(args[index]));\n\t\tif (++index < args.length)\n\t\t\tduration = Double.parseDouble(args[index]);\n\t\tif (++index < args.length) \n\t\t\toutputDt = round(Double.parseDouble(args[index]));\n\t\tif (++index < args.length) \n\t\t\tnumReps = Integer.parseInt(args[index]);\n\t\tif (++index < args.length) \n\t\t\tuncertaintymodel = args[index];\n\t\tif (++index < args.length) \n\t\t\tnodeflowsolver = args[index];\n\t\tif (++index < args.length) \n\t\t\tnodesrsolver = args[index];\n\t}", "title": "" }, { "docid": "5cea60e22f4238227be5bbdb60af076d", "score": "0.6244023", "text": "public void processArgs(String[] args){\n\t\tFile[] fastas = null;\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': fastas = IO.extractFiles(new File(args[++i])); break;\n\t\t\t\t\tcase 'c': convertedPointDirs = IO.extractFiles(args[++i]); break;\n\t\t\t\t\tcase 'n': nonConvertedPointDirs = IO.extractFiles(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'w': windowSize = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'm': minimumNumberCsInWindow = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'l': log2RatioThreshold = Float.parseFloat(args[++i]); break;\n\t\t\t\t\tcase 'p': fdrThreshold = Float.parseFloat(args[++i]); break;\t\n\t\t\t\t\tcase 'g': printGraphs = true; break;\n\t\t\t\t\tcase 'r': fullPathToR = new File(args[++i]); break;\n\t\t\t\t\tcase 'x': maxGap = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//look for fasta files\n\t\tif (fastas == null || fastas.length ==0) Misc.printErrAndExit(\"\\nError: cannot find any fasta sequence files?\\n\");\n\n\t\t//look for point directories\n\t\tif (convertedPointDirs == null || convertedPointDirs[0].isDirectory() == false) Misc.printExit(\"\\nError: cannot find your converted PointData directories(s)!\\n\");\n\t\t//only one directory look deeper\n\t\tif (convertedPointDirs.length == 1){\n\t\t\tFile[] otherDirs = IO.extractOnlyDirectories(convertedPointDirs[0]);\n\t\t\tif (otherDirs != null && otherDirs.length > 0) convertedPointDirs = otherDirs;\n\t\t}\n\n\t\t//nonConverted data\n\t\tif (nonConvertedPointDirs[0].isDirectory() == false) Misc.printExit(\"\\nError: cannot find your nonConverted PointData directories(s)!\\n\");\n\t\t//only one directory look deeper\n\t\tif (nonConvertedPointDirs.length == 1){\n\t\t\tFile[] otherDirs = IO.extractOnlyDirectories(nonConvertedPointDirs[0]);\n\t\t\tif (otherDirs != null && otherDirs.length > 0) nonConvertedPointDirs = otherDirs;\n\t\t}\n\n\t\t//make window maker \n\t\twindowMaker = new WindowMaker(windowSize,minimumNumberCsInWindow);\n\n\t\t//look for and or create the save directory\n\t\t//look for and or create the save directory\n\t\tif (saveDirectory == null) Misc.printExit(\"\\nError: enter a directory text to save results.\\n\");\n\t\telse if (saveDirectory.exists() == false) saveDirectory.mkdirs();\n\t\tif (printGraphs) {\n\t\t\tpvalueDirectory = new File (saveDirectory, \"BpPValues\");\n\t\t\tpvalueDirectory.mkdir();\n\t\t\tlog2RatioDirectory = new File (saveDirectory, \"BpLog2Ratio\");\n\t\t\tlog2RatioDirectory.mkdir();\n\t\t}\n\t\twindowsDirectory = new File (saveDirectory, \"BinaryWindowData\");\n\t\twindowsDirectory.mkdir();\n\n\n\t\t//load fasta files into hash\n\t\tchromosomeFastaFiles = new HashMap<String,File>();\n\t\tPattern chrom = Pattern.compile(\"(.+)\\\\.fa.*\");\n\t\tfor (int i=0; i< fastas.length; i++){\n\t\t\tMatcher mat = chrom.matcher(fastas[i].getName());\n\t\t\tif (mat.matches()) chromosomeFastaFiles.put(mat.group(1), fastas[i]);\n\t\t}\n\n\n\t\t//check for R and required libraries\n\t\tif (fullPathToR == null || fullPathToR.canExecute()== false) {\n\t\t\tMisc.printExit(\"\\nError: Cannot find or execute the R application -> \"+fullPathToR+\"\\n\");\n\t\t}\n\n\t\tSystem.out.println(\"Params:\");\n\t\tSystem.out.println(fdrThreshold+ \"\\tFDR threshold\");\n\t\tSystem.out.println(log2RatioThreshold+ \"\\tLog2Ratio threshold\");\n\t\tSystem.out.println(windowSize+ \"\\tWindow size\");\n\t\tSystem.out.println(minimumNumberCsInWindow+\"\\tMinimum #C obs in window\");\n\t\tSystem.out.println(minimumCoverage + \"\\tMinimum read coverage over + and - strands to score each CG\");\n\t\tSystem.out.println(maxGap+ \"\\tMax gap between significant CGs to merge\");\n\t\tSystem.out.println(windowMergeMultiplier+\"\\tWindow merge multiplier\");\n\t\tSystem.out.println(printGraphs+ \"\\tPrint graphs\");\n\t\tSystem.out.println();\n\n\t}", "title": "" }, { "docid": "af5953959d644b3a423f5aa60d99a5d8", "score": "0.6237565", "text": "private CommandLine parseCommandLine(final Options options, final String[] args) {\n CommandLineParser cmdParser = new DefaultParser();\n CommandLine cmdLine = null;\n try {\n cmdLine = cmdParser.parse(options, args);\n\n // Special options\n if (cmdLine.hasOption(ARG_HELP)) {\n showHelpAndExit(options, stdout, 0);\n }\n if (cmdLine.hasOption(ARG_VERSION)) {\n Properties props = new Properties();\n props.load(Cli.class.getClassLoader().getResourceAsStream(\"yaml.properties\"));\n err(APP_NAME + \" \" + props.getProperty(\"version\"));\n System.exit(0);\n }\n\n String format = cmdLine.getOptionValue(ARG_FORMAT, DEFAULT_FORMAT);\n if (!OUTPUT_FORMATS.containsKey(format)) {\n endOnError(\n String.format(\"invalid output format '%1$s'. Supported formats: %2$s\",\n format,\n OUTPUT_FORMATS.keySet().stream().map(f -> (DEFAULT_FORMAT.equals(f))?(\"'\" + f + \"' (default)\"):(\"'\" + f + \"'\")).collect(Collectors.joining(\", \"))),\n false\n );\n }\n\n // If no argument, we show a short error message\n if (cmdLine.getArgs().length == 0) {\n endOnError(\"FILE_OR_DIR is required\", true);\n }\n // If - is supplied, it must be the only argument\n if (Arrays.stream(cmdLine.getArgs()).anyMatch(\"-\"::equals) && cmdLine.getArgs().length > 1) {\n endOnError(\"If - supplied, it must be the only argument\", false);\n }\n } catch (AlreadySelectedException e) {\n endOnError(\"options `c' and `d' are mutually exclusive.\\n\", true);\n } catch (ParseException|IOException e) {\n endOnError(e.getMessage(), true);\n }\n\n return cmdLine;\n }", "title": "" }, { "docid": "71258c6a7b138b48ca01ffdbdbd34a6f", "score": "0.62339616", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'v': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': minimumQual = Float.parseFloat(args[++i]); break;\n\t\t\t\t\tcase 't': minimumTumorAltFraction = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'n': maximumNormalAltFraction = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'u': minimumTumorReadDepth = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'o': minimumNormalReadDepth = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'd': minimumTNFractionDiff = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'r': minimumTNRatio = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'p': excludeNonPass = true; break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\t}", "title": "" }, { "docid": "c1f930bc7d7fb002452df2499f9ec3ce", "score": "0.62315756", "text": "protected Configuration parseArguments(String[] args, Configuration conf) throws ClassNotFoundException, URISyntaxException, IllegalArgumentException {\n List<String> activeResources = new ArrayList<>();\n\n inputPaths = args[0];\n log.info(\"InputPaths is \" + inputPaths);\n for (int i = 1; i < args.length; i++) {\n if (args[i].equals(\"-inputFileLists\")) {\n inputFileLists = true;\n } else if (args[i].equals(\"-inputFileListMarker\")) {\n inputFileListMarker = args[++i];\n } else if (args[i].equals(\"-instance\")) {\n instanceName = args[++i];\n AccumuloHelper.setInstanceName(conf, instanceName);\n } else if (args[i].equals(\"-zookeepers\")) {\n zooKeepers = args[++i];\n AccumuloHelper.setZooKeepers(conf, zooKeepers);\n } else if (args[i].equals(\"-workDir\")) {\n workDir = args[++i];\n if (!workDir.endsWith(Path.SEPARATOR)) {\n workDir = workDir + Path.SEPARATOR;\n }\n } else if (args[i].equals(\"-user\")) {\n userName = args[++i];\n AccumuloHelper.setUsername(conf, userName);\n } else if (args[i].equals(\"-pass\")) {\n password = PasswordConverter.parseArg(args[++i]).getBytes();\n AccumuloHelper.setPassword(conf, password);\n } else if (args[i].equals(\"-flagFile\")) {\n flagFile = args[++i];\n } else if (args[i].equals(\"-flagFileDir\")) {\n flagFileDir = args[++i];\n } else if (args[i].equals(\"-flagFilePattern\")) {\n flagFilePattern = args[++i];\n } else if (\"-srcHdfs\".equalsIgnoreCase(args[i])) {\n srcHdfs = new URI(args[++i]);\n } else if (\"-destHdfs\".equalsIgnoreCase(args[i])) {\n destHdfs = new URI(args[++i]);\n } else if (\"-distCpConfDir\".equalsIgnoreCase(args[i])) {\n distCpConfDir = args[++i];\n } else if (\"-distCpBandwidth\".equalsIgnoreCase(args[i])) {\n distCpBandwidth = Integer.parseInt(args[++i]);\n } else if (\"-distCpMaxMaps\".equalsIgnoreCase(args[i])) {\n distCpMaxMaps = Integer.parseInt(args[++i]);\n } else if (\"-distCpStrategy\".equalsIgnoreCase(args[i])) {\n distCpStrategy = args[++i];\n } else if (\"-doNotDeleteAfterDistCp\".equalsIgnoreCase(args[i])) {\n deleteAfterDistCp = false;\n } else if (\"-writeDirectlyToDest\".equalsIgnoreCase(args[i])) {\n writeDirectlyToDest = true;\n } else if (\"-filterFsts\".equalsIgnoreCase(args[i])) {\n idFilterFsts = args[++i];\n } else if (args[i].equals(\"-inputFormat\")) {\n inputFormat = Class.forName(args[++i]).asSubclass(InputFormat.class);\n } else if (args[i].equals(\"-mapper\")) {\n mapper = Class.forName(args[++i]).asSubclass(Mapper.class);\n } else if (args[i].equals(\"-splitsCacheTimeoutMs\")) {\n conf.set(TableSplitsCacheStatus.SPLITS_CACHE_TIMEOUT_MS, args[++i]);\n } else if (args[i].equals(\"-disableRefreshSplits\")) {\n conf.setBoolean(TableSplitsCache.REFRESH_SPLITS, false);\n } else if (args[i].equals(\"-splitsCacheDir\")) {\n conf.set(TableSplitsCache.SPLITS_CACHE_DIR, args[++i]);\n } else if (args[i].equals(\"-multipleNumShardsCacheDir\")) {\n conf.set(NumShards.MULTIPLE_NUMSHARDS_CACHE_PATH, args[++i]);\n } else if (args[i].equals(\"-enableAccumuloConfigCache\")) {\n conf.setBoolean(TableConfigCache.ACCUMULO_CONFIG_FILE_CACHE_ENABLE_PROPERTY, true);\n } else if (args[i].equalsIgnoreCase(\"-accumuloConfigCachePath\")) {\n conf.set(TableConfigCache.ACCUMULO_CONFIG_CACHE_PATH_PROPERTY, args[++i]);\n conf.setBoolean(TableConfigCache.ACCUMULO_CONFIG_FILE_CACHE_ENABLE_PROPERTY, true);\n } else if (args[i].equals(\"-disableSpeculativeExecution\")) {\n disableSpeculativeExecution = true;\n } else if (args[i].equals(\"-skipMarkerFileGeneration\")) {\n generateMarkerFile = false;\n } else if (args[i].equals(\"-outputMutations\")) {\n outputMutations = true;\n } else if (args[i].equals(\"-mapOnly\")) {\n useMapOnly = true;\n generateMarkerFile = false;\n } else if (args[i].equals(\"-useCombiner\")) {\n useCombiner = true;\n } else if (args[i].equals(\"-useInlineCombiner\")) {\n useInlineCombiner = true;\n } else if (args[i].equals(\"-pipelineId\")) {\n pipelineId = args[++i];\n } else if (args[i].equals(\"-markerFileReducePercentage\")) {\n try {\n markerFileReducePercentage = Float.parseFloat(args[++i]);\n } catch (NumberFormatException e) {\n log.error(\"ERROR: marker file reduce percentage must be a float in [0.0,1.0]\");\n return null;\n }\n } else if (args[i].equals(\"-markerFileLIFO\")) {\n markerFileFIFO = false;\n } else if (args[i].equals(\"-cacheBaseDir\")) {\n cacheBaseDir = args[++i];\n } else if (args[i].equals(\"-cacheJars\")) {\n String[] jars = StringUtils.trimAndRemoveEmptyStrings(args[++i].split(\"\\\\s*,\\\\s*\"));\n for (String jarString : jars) {\n File jar = new File(jarString);\n Path file = new Path(cacheBaseDir, jar.getName());\n log.info(\"Adding \" + file + \" to job class path via distributed cache.\");\n jobDependencies.add(file);\n }\n } else if (args[i].equals(\"-verboseCounters\")) {\n verboseCounters = true;\n } else if (args[i].equals(\"-tableCounters\")) {\n tableCounters = true;\n } else if (args[i].equals(\"-noFileNameCounters\")) {\n fileNameCounters = false;\n } else if (args[i].equals(\"-contextWriterCounters\")) {\n contextWriterCounters = true;\n } else if (args[i].equals(\"-enableBloomFilters\")) {\n enableBloomFilters = true;\n } else if (args[i].equals(\"-collectDistributionStats\")) {\n conf.setBoolean(MultiTableRangePartitioner.PARTITION_STATS, true);\n } else if (args[i].equals(\"-ingestMetricsLabel\")) {\n this.metricsLabelOverride = args[++i];\n } else if (args[i].equals(\"-ingestMetricsDisabled\")) {\n this.metricsOutputEnabled = false;\n } else if (args[i].equals(\"-generateMapFileRowKeys\")) {\n generateMapFileRowKeys = true;\n } else if (args[i].equals(\"-compressionType\")) {\n compressionType = args[++i];\n } else if (args[i].equals(\"-compressionTableBlackList\")) {\n String[] tables = StringUtils.split(args[++i], ',');\n compressionTableBlackList.addAll(Arrays.asList(tables));\n } else if (args[i].equals(\"-maxRFileUndeduppedEntries\")) {\n maxRFileEntries = Integer.parseInt(args[++i]);\n } else if (args[i].equals(\"-maxRFileUncompressedSize\")) {\n maxRFileSize = Long.parseLong(args[++i]);\n } else if (args[i].equals(\"-shardedMapFiles\")) {\n conf.set(ShardedTableMapFile.SHARDED_MAP_FILE_PATHS_RAW, args[++i]);\n ShardedTableMapFile.extractShardedTableMapFilePaths(conf);\n } else if (args[i].equals(\"-createTables\")) {\n createTables = true;\n } else if (args[i].startsWith(REDUCE_TASKS_ARG_PREFIX)) {\n try {\n reduceTasks = Integer.parseInt(args[i].substring(REDUCE_TASKS_ARG_PREFIX.length(), args[i].length()));\n } catch (NumberFormatException e) {\n log.error(\"ERROR: mapred.reduce.tasks must be set to an integer (\" + REDUCE_TASKS_ARG_PREFIX + \"#)\");\n return null;\n }\n } else if (args[i].equals(\"-jobObservers\")) {\n if (i + 2 > args.length) {\n log.error(\"-jobObservers must be followed by a class name\");\n System.exit(-2);\n }\n String jobObserverClasses = args[++i];\n try {\n String[] classes = jobObserverClasses.split(\",\");\n for (String jobObserverClass : classes) {\n log.info(\"Adding job observer: \" + jobObserverClass);\n Class clazz = Class.forName(jobObserverClass);\n Observer o = (Observer) clazz.newInstance();\n jobObservers.add(o);\n }\n } catch (ClassNotFoundException | IllegalAccessException | InstantiationException e) {\n log.error(\"cannot instantiate job observer class '\" + jobObserverClasses + \"'\", e);\n System.exit(-2);\n } catch (ClassCastException e) {\n log.error(\"cannot cast '\" + jobObserverClasses + \"' to Observer\", e);\n System.exit(-2);\n }\n } else if (args[i].startsWith(\"-\")) {\n // Configuration key/value entries can be overridden via the command line\n // (taking precedence over entries in *conf.xml files)\n addConfOverride(args[i].substring(1));\n } else {\n log.info(\"Adding resource \" + args[i]);\n conf.addResource(args[i]);\n activeResources.add(args[i]);\n }\n }\n\n conf = interpolateEnvironment(conf);\n\n for (String resource : activeResources) {\n conf.addResource(resource);\n }\n\n // To enable passing the MONITOR_SERVER_HOME environment variable through to the monitor,\n // pull it into the configuration\n String monitorHostValue = System.getenv(\"MONITOR_SERVER_HOST\");\n log.info(\"Setting MONITOR_SERVER_HOST to \" + monitorHostValue);\n if (null != monitorHostValue) {\n conf.set(\"MONITOR_SERVER_HOST\", monitorHostValue);\n }\n\n if (workDir == null) {\n log.error(\"ERROR: Must provide a working directory name\");\n return null;\n }\n\n if ((!useMapOnly) && (reduceTasks == 0)) {\n log.error(\"ERROR: -mapred.reduce.tasks must be set\");\n return null;\n }\n\n if (flagFileDir == null && generateMarkerFile) {\n log.error(\"ERROR: -flagFileDir must be set\");\n return null;\n }\n\n if (useMapOnly && !outputMutations) {\n log.error(\"ERROR: Cannot do bulk ingest mapOnly (i.e. without the reduce phase). Bulk ingest required sorted keys.\");\n return null;\n }\n\n if (!outputMutations && destHdfs == null) {\n log.error(\"ERROR: -destHdfs must be specified for bulk ingest\");\n return null;\n }\n\n return conf;\n }", "title": "" }, { "docid": "0cb34625a9fd01810bf358e6ef0c30b9", "score": "0.6222572", "text": "private static Namespace parseArgs(String[] args) {\r\n ArgumentParser parser = ArgumentParsers.newFor(\"Client\").build().description(\"Client for SurfStore\");\r\n parser.addArgument(\"config_file\").type(String.class).help(\"Path to configuration file\");\r\n parser.addArgument(\"method\").type(String.class).help(\"upload, download, delete or getversion\");\r\n parser.addArgument(\"path_to_file\").type(String.class).help(\"Path to the file (in case of local) or remote file name\");\r\n parser.addArgument(\"directory\").nargs(\"?\").setDefault(\"\").type(String.class).help(\"Directory to store downloaded file\");\r\n\r\n Namespace res = null;\r\n try {\r\n res = parser.parseArgs(args);\r\n } catch (ArgumentParserException e){\r\n parser.handleError(e);\r\n }\r\n return res;\r\n }", "title": "" }, { "docid": "4b6ba7662b5151f6f1ccc4acb1de69c3", "score": "0.6189587", "text": "public final static void parseArgs(String[] args,\n Configuration conf,\n int numInputs) {\n if (args.length != 2+numInputs) {\n System.err.println(\"You must provide \"\n + String.valueOf(numInputs + 2)\n + \" arguments to this program: \"\n + \" the number of reducers (should be an integer),\"\n + \" the input file and the output path\");\n ToolRunner.printGenericCommandUsage(System.err);\n System.exit(-1);\n }\n conf.setInt(\"wc_numred\", Integer.parseInt(args[0]));\n for (int i=1; i<=numInputs; i++) {\n conf.set(\"wc_input\" + String.valueOf(i), args[i]);\n }\n conf.set(\"wc_output\",args[numInputs+1]);\n }", "title": "" }, { "docid": "b9ad588859b4555da2bdf6cfbf90790e", "score": "0.61787635", "text": "private Parser parse(String[] args){\n\t\t\n\t\tParser parser=new Parser();\n\t\tfor(int i=0; i<args.length; i++){\n\t\t\tString arg=args[i];\n\t\t\tString[] split=arg.split(\"=\");\n\t\t\tString a=split[0].toLowerCase();\n\t\t\tString b=split.length>1 ? split[1] : null;\n\t\t\tif(b!=null && b.equalsIgnoreCase(\"null\")){b=null;}\n\n//\t\t\toutstream.println(arg+\", \"+a+\", \"+b);\n\t\t\tif(a.equals(\"in\") || a.equals(\"infna\") || a.equals(\"fnain\") || a.equals(\"fna\")){\n\t\t\t\tassert(b!=null);\n\t\t\t\tTools.addFiles(b, fnaList);\n\t\t\t}else if(a.equals(\"in\") || a.equals(\"infna\") || a.equals(\"fnain\") || a.equals(\"fna\")){\n\t\t\t\tassert(b!=null);\n\t\t\t\tTools.addFiles(b, fnaList);\n\t\t\t}else if(b==null && new File(arg).exists() && FileFormat.isFastaFile(arg)){\n\t\t\t\tfnaList.add(arg);\n\t\t\t}else if(a.equals(\"pgm\") || a.equals(\"gm\") || a.equals(\"model\")){\n\t\t\t\tassert(b!=null);\n\t\t\t\tif(b.equalsIgnoreCase(\"auto\") || b.equalsIgnoreCase(\"default\")){\n\t\t\t\t\tb=Data.findPath(\"?model.pgm\");\n\t\t\t\t\tpgmList.add(b);\n\t\t\t\t}else{\n\t\t\t\t\tTools.addFiles(b, pgmList);\n\t\t\t\t}\n\t\t\t}else if(b==null && new File(arg).exists() && FileFormat.isPgmFile(arg)){\n\t\t\t\tTools.addFiles(arg, pgmList);\n\t\t\t}else if(a.equals(\"outamino\") || a.equals(\"aminoout\") || a.equals(\"outa\") || a.equals(\"outaa\") || a.equals(\"amino\")){\n\t\t\t\toutAmino=b;\n\t\t\t}else if(a.equals(\"k\")){\n\t\t\t\tint k=Integer.parseInt(b);\n\t\t\t\tGeneModel.setInnerK(k);\n\t\t\t\tGeneModel.setEndK(k);\n\t\t\t}else if(a.equals(\"innerk\")){\n\t\t\t\tint k=Integer.parseInt(b);\n\t\t\t\tGeneModel.setInnerK(k);\n\t\t\t}else if(a.equals(\"endk\")){\n\t\t\t\tint k=Integer.parseInt(b);\n\t\t\t\tGeneModel.setEndK(k);\n\t\t\t}else if(a.equals(\"startleftoffset\")){\n\t\t\t\tint x=Integer.parseInt(b);\n\t\t\t\tGeneModel.setStartLeftOffset(x);\n\t\t\t}else if(a.equals(\"startrightoffset\")){\n\t\t\t\tint x=Integer.parseInt(b);\n\t\t\t\tGeneModel.setStartRightOffset(x);\n\t\t\t}else if(a.equals(\"stopleftoffset\")){\n\t\t\t\tint x=Integer.parseInt(b);\n\t\t\t\tGeneModel.setStopLeftOffset(x);\n\t\t\t}else if(a.equals(\"stoprightoffset\")){\n\t\t\t\tint x=Integer.parseInt(b);\n\t\t\t\tGeneModel.setStopRightOffset(x);\n\t\t\t}else if(a.equals(\"verbose\")){\n\t\t\t\tverbose=Tools.parseBoolean(b);\n\t\t\t\tReadWrite.verbose=verbose;\n\t\t\t}else if(a.equals(\"plus\")){\n\t\t\t\tGeneModel.PROCESS_PLUS_STRAND=Tools.parseBoolean(b);\n\t\t\t}else if(a.equals(\"minus\")){\n\t\t\t\tGeneModel.PROCESS_MINUS_STRAND=Tools.parseBoolean(b);\n\t\t\t}else if(a.equals(\"ordered\")){\n\t\t\t\tordered=Tools.parseBoolean(b);\n\t\t\t}\n\t\t\t\n\t\t\telse if(a.equals(\"minlen\") || a.equals(\"minlength\")){\n\t\t\t\tminLen=Integer.parseInt(b);\n\t\t\t}else if(a.equals(\"maxoverlapss\") || a.equals(\"overlapss\") || a.equals(\"overlapsamestrand\") || a.equals(\"moss\")){\n\t\t\t\tmaxOverlapSameStrand=Integer.parseInt(b);\n\t\t\t}else if(a.equals(\"maxoverlapos\") || a.equals(\"overlapos\") || a.equals(\"overlapoppositestrand\") || a.equals(\"moos\")){\n\t\t\t\tmaxOverlapOppositeStrand=Integer.parseInt(b);\n\t\t\t}else if(a.equalsIgnoreCase(\"minStartScore\")){\n\t\t\t\tminStartScore=Float.parseFloat(b);\n\t\t\t}else if(a.equalsIgnoreCase(\"minStopScore\")){\n\t\t\t\tminStopScore=Float.parseFloat(b);\n\t\t\t}else if(a.equalsIgnoreCase(\"minInnerScore\") || a.equalsIgnoreCase(\"minKmerScore\")){\n\t\t\t\tminKmerScore=Float.parseFloat(b);\n\t\t\t}else if(a.equalsIgnoreCase(\"minOrfScore\") || a.equalsIgnoreCase(\"minScore\")){\n\t\t\t\tminOrfScore=Float.parseFloat(b);\n\t\t\t}else if(a.equalsIgnoreCase(\"breakLimit\")){\n\t\t\t\tGeneCaller.breakLimit=Integer.parseInt(b);\n\t\t\t}\n\t\t\t\n\t\t\telse if(parser.parse(arg, a, b)){\n\t\t\t\t//do nothing\n\t\t\t}else{\n\t\t\t\toutstream.println(\"Unknown parameter \"+args[i]);\n\t\t\t\tassert(false) : \"Unknown parameter \"+args[i];\n\t\t\t\t//\t\t\t\tthrow new RuntimeException(\"Unknown parameter \"+args[i]);\n\t\t\t}\n\t\t}\n\n\t\tif(pgmList.isEmpty()){\n\t\t\tString b=Data.findPath(\"?model.pgm\");\n\t\t\tpgmList.add(b);\n\t\t}\n\t\t\n\t\tif(Shared.threads()<2){ordered=false;}\n\t\tassert(!fnaList.isEmpty()) : \"At least 1 fasta file is required.\";\n\t\tassert(!pgmList.isEmpty()) : \"At least 1 pgm file is required.\";\n\t\treturn parser;\n\t}", "title": "" }, { "docid": "23d30f7073a42bb1cb3294e9af7a9330", "score": "0.6167864", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'p': pointDataDirectories = IO.extractFiles(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': mergeStrands = true; break;\n\t\t\t\t\tcase 'i': sumIdenticalPositions = true; break;\n\t\t\t\t\tcase 'd': shiftPointData = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'o': stripScores = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//look for point directories\n\t\tif (pointDataDirectories == null || pointDataDirectories[0].isDirectory() == false) Misc.printExit(\"\\nError: cannot find your PointData directories(s)!\\n\");\n\t\t//only one directory look deeper\n\t\tif (pointDataDirectories.length == 1){\n\t\t\tFile[] otherDirs = IO.extractOnlyDirectories(pointDataDirectories[0]);\n\t\t\tif (otherDirs != null && otherDirs.length > 0) pointDataDirectories = otherDirs;\n\t\t}\n\n\t\t//create the save directory\n\t\tif (saveDirectory == null) Misc.printExit(\"\\nError: enter a directory text to save results.\\n\");\n\t\tif (saveDirectory.exists() == false) saveDirectory.mkdir();\n\t\telse System.out.println(\"\\nWARNING: the save directory exists, will over write files contained within.\\n\");\n\n\t}", "title": "" }, { "docid": "92d8c441d84b5ffb73fd518fb0616278", "score": "0.6158273", "text": "private static void parseCommandLineParameters(String[] args)\n\t{\n\t\t// set default values\n\t\tmode = MODE_EVALUATE;\n\t\tpathGroundTruthImages = null;\n\t\tpathGroundTruthFile = null;\n\n\t\tif (args.length > 0)\n\t\t{\n\t\t\tif ( args[0].startsWith(\"/?\")\n\t\t\t || args[0].toLowerCase().startsWith(\"/h\")\n\t\t\t\t || args[0].toLowerCase().startsWith(\"-h\")\n\t\t\t\t || args[0].toLowerCase().startsWith(\"--h\"))\n\t\t\t{\n\t\t\t\tprintUsage();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\n\t\tfor (int iArg=0; iArg<args.length; iArg++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tint pos = args[iArg].indexOf(\"=\");\n\t\t\t\tif (pos != -1)\n\t\t\t\t{\n\t\t\t\t\tString var = args[iArg].substring(0, pos);\n\t\t\t\t\tString val = args[iArg].substring(pos+1);\n\n\t\t\t\t\tif (var.equalsIgnoreCase(\"mode\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t\t if (val.equalsIgnoreCase(\"copySmallGroundTruth\")) mode = MODE_COPYSMALLGROUNDTRUTH;\n\t\t\t\t\t\telse if (val.equalsIgnoreCase(\"copyImages\")) mode = MODE_COPYIMAGES;\n\t\t\t\t\t\telse if (val.equalsIgnoreCase(\"evaluate\")) mode = MODE_EVALUATE;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"pathGT\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tpathGroundTruthImages = val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"fileGT\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tpathGroundTruthFile = val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"pathSM\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tpathSaliencyMapImages = val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"pathResult\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tpathResult = val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"thresholdGT\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tthresholdBinGroundTruth = Double.parseDouble(val);\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"thresholdSize\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tthresholdSizeGroundTruth = Double.parseDouble(val);\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"pathIm\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tpathImagesToCopy = val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"pathDef\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tpathDefiningImageNames = val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (var.equalsIgnoreCase(\"saveGT\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tsaveGroundTruthImages = Boolean.parseBoolean(val);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\texit(\"'\"+var+\"' is not a valid parameter!\", true);\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\texit(\"Could not interpret '\"+args[iArg]+\"'!\", true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\texit(\"Could not interpret '\"+args[iArg]+\"': \"+e+\".\", true);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "706884625611e7cd8dd10f8fda87f3da", "score": "0.6155429", "text": "private void processCommandLineArguments(final String[] arguments)\n {\n final JCommander commander\n = JCommander.newBuilder()\n .programName(\"JCommander Demonstration\")\n .addObject(this)\n .verbose(1)\n .build();\n commander.parse(arguments);\n if (help)\n {\n commander.usage();\n }\n else\n {\n out.println(\"The file name provided is '\" + file + \"' and verbosity is set to \" + verbose);\n }\n }", "title": "" }, { "docid": "6ea757c8d8948941e948f743f7fcf31e", "score": "0.6154727", "text": "protected void parse(String userid, CommandLine cmdLine, String[] arguments) throws ParseException {\n\t\t\n\t}", "title": "" }, { "docid": "5b4804e8848257f82e9bffd32ea14eb1", "score": "0.6137344", "text": "public static void main(String[] arg) {\n\n TestTaskStringParser testTaskStringParser = new TestTaskStringParser();\n\n for (String line : arg) {\n System.out.println(testTaskStringParser.parseString(line));\n }\n }", "title": "" }, { "docid": "d6652759f0021a9c65973dac06bb761a", "score": "0.61076134", "text": "public static void main(String[] args) {\n\t\t\n\t\t/* now we can resume normal startup */\n\t\tOptions options = createCommandLineOptions();\n\n\t\tCommandLineParser parser = new GnuParser();\n\n\t\ttry {\n\t\t\t/* Parse the command line options */\n\t\t\tCommandLine line = parser.parse(options, args);\n\n\t\t\tif(!showHelp(options, line)) {\n\t\n\t\t\t\t/* Options are good, lets start */\n\t\t\t\ttry {\n\t\t\t\t\t/* If there is a configuration file then manage how that gets used */\n\t\t\t\t\tmanageConfigurationFile(line);\n\t\n\t\t\t\t\t/* This puts left over arguments that are added onto the command line into the Configuration */\n\t\t\t\t\tmanageAdditionalArgs(line);\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Parse out the command line arguments and reconcile them with any that might be in the properties file\n\t\t\t\t\t * (apply command line overrides)\n\t\t\t\t\t */\n\t\t\t\t\tString command = manageArgument(line, COMMAND);\n\t\n\t\t\t\t\t/* Validate that basic mandatory properties have been set */\n\t\t\t\t\tString[] mandatoryProperties = new String[] { COMMAND };\n\t\t\t\t\tString[] mandatoryValues = new String[] { command };\n\t\t\t\t\tvalidateMandatoryArguments(mandatoryProperties, mandatoryValues);\n\t\n\t\t\t\t\t/* Execute the relevant command */\n\t\t\t\t\tif (command.equals(HELP)) {\n\t\t\t\t\t\tdisplayHelp(options);\n\t\t\t\t\t}\n\t\t\t\t\telse if (command.equals(CMD_IMPORT)) {\n\t\t\t\t\t\tString inputFileName = manageArgument(line, ARG_INPUT_XML_FILENAME);\n\t\t\t\t\t\tmandatoryProperties = new String[] { ARG_INPUT_XML_FILENAME };\n\t\t\t\t\t\tmandatoryValues = new String[] { inputFileName };\n\t\t\t\t\t\tvalidateMandatoryArguments(mandatoryProperties, mandatoryValues);\n\t\n\t\t\t\t\t\tEnvironmentBuildMetadataImport importer = new EnvironmentBuildMetadataImport(inputFileName);\n\t\t\t\t\t\timporter.importEnvironmentMetadata();\n\t\t\t\t\t\texit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tLOG.error(\"'\" + command\n\t\t\t\t\t\t\t\t\t\t+ \"' is either not supported or has not been implemented. Supported (but not neccessarily implemented) commands are: \"\n\t\t\t\t\t\t\t\t\t\t+ Arrays.toString(getSupportedCommands()));\n\t\t\t\t\t\texit(1);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"Failed to execute command\", e);\n\t\t\t\t\texit(1);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (org.apache.commons.cli.ParseException e1) {\n\t\t\tLOG.error(\"Unable to parse arguments\", e1);\n\t\t\tdisplayHelp(options);\n\t\t\texit(1);\n\t\t}\n\t}", "title": "" }, { "docid": "a4a8a7a27fc0613dc9e6e73ecb7f2b1a", "score": "0.60946083", "text": "public void parse(String[] args) throws Exception\r\n \t{\r\n \t\tOptionParser parser = new OptionParser();\r\n \t\t\r\n \t\tOptionSpec<Integer> count = parser.accepts(\"c\").withOptionalArg().ofType(Integer.class)\r\n \t\t.describedAs(\"number of feasible solutions\").defaultsTo(10000);\r\n \t\t\r\n \t\tOptionSpec<Boolean> outputOperationFlag = parser.accepts(\"o\").withOptionalArg().ofType(Boolean.class)\r\n \t\t.describedAs(\"besides the minimal cost, also print the corresponding sequences of operations and starting time\")\r\n \t\t.defaultsTo(false);\r\n \t\t\r\n \t\tOptionSpec<Void> help = parser.acceptsAll(asList(\"h\", \"?\"), \"show the help message\");\r\n \t\t\r\n \t\tOptionSet options = parser.parse(args);\r\n \t\t\r\n \t\tif(options.has(help))\r\n \t\t{\r\n \t\t\tparser.printHelpOn(System.out);\r\n \t\t\tSystem.exit(0);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tsetNbrFeasibleSolutions(options.valueOf(count));\r\n \t\t\tsetOutputOperationSequence(options.valueOf(outputOperationFlag));\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "42d58eb0d9adfb5e043138bfa6d70c6d", "score": "0.60928816", "text": "private String[] parseArgs(String args) {\n\t\tString[] argsToStringArray = args.split(EMPTY_SPACE);\n\n\t\treturn argsToStringArray;\n\t}", "title": "" }, { "docid": "fa9d1911c04308e9ec693fbec6765b67", "score": "0.6090044", "text": "@Override\n public Map< CommandConstants, String > parser( String [] args )\n {\n Map< CommandConstants, String > parameters = new HashMap< CommandConstants, String >();\n // set default parserType to MONGO\n parameters.put( CommandConstants.PARSERTYPE, ExecutorType.MONGO.toString() );\n for( int index = 0; index < args.length; index++ )\n {\n String arg = args[ index ];\n if( arg.startsWith( \"-\" ) )\n {\n if( arg.equals( \"--help\" ) )\n {\n throw new IllegalArgumentException( helpMessage() );\n }\n CommandConstants commandConstants = CommandConstants.getCommandConstatnt( arg );\n\n index++;\n if( index < args.length )\n {\n String value = args[ index ];\n CommandConstants key = null;\n if( !value.startsWith( \"-\" ) )\n {\n switch( commandConstants )\n {\n case LOGDIRECTORY:\n key = CommandConstants.LOGDIRECTORY;\n break;\n case MONGOSUITES:\n key = CommandConstants.MONGOSUITES;\n break;\n case PARSERTYPE:\n key = CommandConstants.PARSERTYPE;\n break;\n case YAML:\n key = CommandConstants.YAML;\n break;\n case DBHOST:\n key = CommandConstants.DBHOST;\n break;\n case DBPORT:\n key = CommandConstants.DBPORT;\n break;\n case DBNAME:\n key = CommandConstants.DBNAME;\n break;\n case REVIEW:\n key = CommandConstants.REVIEW;\n break;\n case USERID:\n key = CommandConstants.USERID;\n break;\n case SPLIT:\n key = CommandConstants.SPLIT;\n break;\n case RANDOM:\n key = CommandConstants.RANDOM;\n break;\n default:\n break;\n }\n parameters.put( key, value );\n }\n else\n {\n throw new IllegalArgumentException( helpMessage() );\n }\n }\n }\n }\n\n /*\n * Validate the required parameters\n */\n validate( parameters );\n return parameters;\n }", "title": "" }, { "docid": "c305ea1c196bd1d0a969e86899399560", "score": "0.6087369", "text": "private static void handleProgramArgs(String[] args) {\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tswitch (args[i]) {\n\t\t\t\tcase \"-s\":\n\t\t\t\tcase \"--showMessages\":\n\t\t\t\t\tshowMessages = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-H\":\n\t\t\t\tcase \"--host\":\n\t\t\t\t\tkafkaHost = args[++i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-p\":\n\t\t\t\tcase \"--port\":\n\t\t\t\t\tkafkaPort = args[++i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-g\":\n\t\t\t\tcase \"--group\":\n\t\t\t\t\tgroupName = args[++i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-t\":\n\t\t\t\tcase \"--topics\":\n\t\t\t\t\ttopics = args[++i].split(\",\"); /* CSV list of topics */\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-h\":\n\t\t\t\tcase \"--help\":\n\t\t\t\tdefault:\n\t\t\t\t\tprintProgramUsage();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8d4861f7beac0d0df7a55b159b4c5620", "score": "0.60817903", "text": "public InputDataHolder parse(final String[] args) {\n log.debug(\"Starts with args \" + Arrays.toString(args));\n final Options options = new Options();\n\n options.addOption(\"c\", \"command\", true, \"It's a user command\");\n options.addOption(\"p\", \"path\", true, \"It's a path to file\");\n options.addOption(\"s\", \"size\", true, \"It's a size of file part\");\n\n final CommandLineParser parser = new DefaultParser();\n final CommandLine cmd;\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException e) {\n log.warn(\"CommandLineParser could not parse input arguments. \\n\" +\n \"Method parse(options, args) takes next params: \" +\n \"org.apache.commons.cli.Options \" +\n Arrays.toString(new Object[]{options.getOptions()}) + \"; \" +\n \"args \" + Arrays.toString(args)); // add info param\n throw new InputException(\"Could not parse input arguments. \");\n }\n InputDataHolder result = new InputDataHolder(cmd);\n log.debug(\"Return \" + result.getClass().getTypeName());\n return result;\n }", "title": "" }, { "docid": "7ee02b20597da4943f30b7d4885fcdac", "score": "0.6057215", "text": "static boolean commandparser(String[] args) {\n\t\t\n\t\tint i = 0;\n\t\t\n\t\twhile (i < args.length && args[i].startsWith(\"-\")) {\n arg = args[i++];\n\t\t\n if (arg.equals(\"-h\")) { \n usage();\n return false;\n }\n \n else if (arg.equals(\"-f\")) {\n if (i < args.length)\n filename = args[i++];\n else\n System.err.println(\"-f requires a filename value\");\n }\n \n else if (arg.equals(\"-w\")) {\n if (i < args.length)\n niname = args[i++];\n else\n System.err.println(\"-w requires an uri value\");\n }\n \n else if (arg.equals(\"-a\")) {\n if (i < args.length)\n authority = args[i++];\n else\n System.err.println(\"-a requires an authority value\");\n }\n \n else if (arg.equals(\"-l\")) {\n if (i < args.length)\n fqdn = args[i++];\n else\n System.err.println(\"-l requires a value (FQDN)\");\n } \n\t\t}\n\t\t\t\t\n\t\tif (fqdn == null || authority == null || filename == null) {\n\t\t\tusage();\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "9f4b6ff8c102d71520ad312fac6dfca2", "score": "0.60327977", "text": "private static void processProgramParameters(String[] args) {\r\n\t\tint i=0;\r\n\t\twhile(i<args.length) {\r\n\t\t\ttry {\r\n\t\t\t\tif(args[i].equals(\"-s\")) {\r\n\t\t\t\t\tserializerType = args[i++ + 1];\r\n\t\t\t\t}\r\n\t\t\t\telse if(args[i].equals(\"-pc\")) {\r\n\t\t\t\t\tproductCount = Integer.parseInt(args[i++ + 1]);\r\n\t\t\t\t}\r\n\t\t\t\telse if(args[i].equals(\"-fc\")) {\r\n\t\t\t\t\tforwardChaining = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if(args[i].equals(\"-dir\")) {\r\n\t\t\t\t\toutputDirectory = args[i++ + 1];\r\n\t\t\t\t}\r\n\t\t\t\telse if(args[i].equals(\"-fn\")) {\r\n\t\t\t\t\toutputFileName = args[i++ + 1];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tprintUsageInfos();\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ti++;\r\n\t\t\t\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tSystem.err.println(\"Invalid arguments\\n\");\r\n\t\t\t\tprintUsageInfos();\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ac1a1eef141e147eb7c264e3d9437ac6", "score": "0.5986191", "text": "public FindArgs parse() {\n this.valueMap = new HashMap<>(Map.of(\"-d\", \"\", \"-n\", \"\", \"-o\", \"\", \"type\", \"\"));\n for (int index = 0; index < args.length; ++index) {\n if (valueMap.containsKey(args[index].toLowerCase()) && index + 1 < args.length\n && !args[index + 1].startsWith(\"-\")) {\n valueMap.put(args[index].toLowerCase(), args[index + 1]);\n }\n if (this.valueMap.get(\"type\").isEmpty()) {\n switch (args[index].toLowerCase()) {\n case \"-f\":\n this.valueMap.put(\"type\", NameType.FULL_NAME.toString());\n break;\n case \"-m\":\n this.valueMap.put(\"type\", NameType.MASK.toString());\n break;\n case \"-r\":\n this.valueMap.put(\"type\", NameType.REGEXP.toString());\n break;\n default:\n }\n }\n }\n return this;\n }", "title": "" }, { "docid": "ef9ccb0a14bd0837db184edfae98f08d", "score": "0.5974625", "text": "private boolean parseOptions(String[] args) {\n\t\t// parse the command line options and\n\t\t// fill the data array\n\t\ttry {\n\t\t\tlogger.trace(\"Parsing cliArgs...\");\n\t\t\tthis.options.parse(args);\n\t\t} \n\t\tcatch (ParseException e) {\n\t\t\tlogger.debug(e.toString());\n\t\t\treturn false;\n\t\t} \n\t\tcatch (NumberFormatException e)\t{\n\t\t\tlogger.debug(e.toString());\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2a7319c548745e4df8ee2e0184d8eb48", "score": "0.5943925", "text": "public Command parse(String arguments, UniversityList universityMasterList,\n ModuleList moduleMasterList, UniversityList universitySelectedList,\n ModuleList moduleSelectedList) throws AddParseException, IOException {\n\n logger.log(Level.INFO, Constants.LOGMSG_PARSESTARTED);\n\n String flagArguments = identifyFlagAndSplitArgs(arguments);\n\n switch (flag) {\n case Constants.FLAG_UNIVERSITY:\n handleUniFlagArgs(flagArguments, universityMasterList, universitySelectedList);\n logger.log(Level.INFO, Constants.LOGMSG_PARSESUCCESS);\n return new AddUniCommand(university, universityMasterList, universitySelectedList);\n case Constants.FLAG_MODULE:\n handleModFlagArgs(flagArguments, moduleMasterList, moduleSelectedList);\n logger.log(Level.INFO, Constants.LOGMSG_PARSESUCCESS);\n return new AddModCommand(module, moduleMasterList, moduleSelectedList);\n case Constants.FLAG_MAP:\n handleMapFlagArgs(flagArguments, universitySelectedList, moduleSelectedList, universityMasterList);\n logger.log(Level.INFO, Constants.LOGMSG_PARSESUCCESS);\n return new AddMapCommand(uniIndex, mapIndex,universityMasterList, moduleMasterList,\n universitySelectedList, moduleSelectedList);\n default:\n logger.log(Level.WARNING, Constants.LOGMSG_PARSEFAILED);\n throw new AddParseException(Constants.ERRORMSG_PARSEEXCEPTION_INCORRECTFLAGS, 1, true);\n }\n }", "title": "" }, { "docid": "2e87c76d25b47605aaec73e0e529b7f7", "score": "0.59425837", "text": "public static void main(String[] args) throws ParseException, IOException, java.text.ParseException {\n\t\tCommandLineTest cml = new CommandLineTest();\n\t\tcml.run(args);\n\t}", "title": "" }, { "docid": "2540f038e53ac672c72db63eef564190", "score": "0.59171665", "text": "private void parseArgs(ArrayList argList) {\n if (argList.size() == 0) {\n usage();\n System.exit(1);\n } else if (\"update\".equals((String) argList.get(0))) {\n argList.remove(0);\n doUpdate(argList);\n } else if (\"delete\".equals((String) argList.get(0))) {\n argList.remove(0);\n doDelete(argList);\n } else if (\"help\".equals((String) argList.get(0))) {\n usage();\n } else {\n usage();\n System.exit(1);\n }\n }", "title": "" }, { "docid": "ec3441b4c574b14e052395a232d01768", "score": "0.5840558", "text": "public static void main(String[] args) {\n if (args == null || args.length == 0) {\n System.out.println(\"No arguments passed\");\n return;\n }\n var app = new ConsoleApp();\n int i = 0;\n for (; i < args.length; i++) {\n if (args[i].equals(\"-n\")) {\n app.handle(List.of(Arrays.copyOfRange(args, i + 1, args.length)));\n return;\n }\n if (args[i].startsWith(\"--numbers=\")) {\n String numbers = args[i].split(\"=\", 2)[1];\n app.handle(List.of(numbers.split(\",\")));\n return;\n }\n }\n if (i == args.length)\n System.out.println(\"No numbers passed\");\n }", "title": "" }, { "docid": "d98651fc7c245d2bd9eeca46eb3c768f", "score": "0.58385736", "text": "public static void main(String[] args) throws IOException, ParseException {\n\n }", "title": "" }, { "docid": "175727d845f24ea27782868b38d43183", "score": "0.5833295", "text": "public static void main(String[] argv) {\n XMLProcess checker = new XMLProcess();\n\n // is there anything to do?\n if (argv.length == 0) {\n checker.usage();\n System.exit(1);\n }\n\n // variables\n String arg = null;\n\n // process arguments\n for (int i = 0; i < argv.length; i++) {\n arg = argv[i];\n if (arg.charAt(0) == '-') {\n String option = arg.substring(1);\n if (\"h\".equals(option)) {\n checker.usage();\n System.exit(0);\n }\n }\n }\n\n checker.initialize(argv);\n checker.parse(arg);\n\n }", "title": "" }, { "docid": "f360093c0c2b2fe5c75e8a9bd1d5e4d6", "score": "0.5822999", "text": "protected CommandLine parseCommandLine(String[] argsArray) {\n\t\ttry {\n\t\t\treturn new DefaultParser().parse(OPTIONS, argsArray, true);\n\t\t} catch (ParseException e) {\n\t\t\thandleErrorAndExit(null, null, null, \"ERROR: Cannot parse command line: \" + e.getMessage(), 6);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "bc17755f0091938e7b43159ea189da5f", "score": "0.581787", "text": "private boolean parseOptions(String args) {\n\t\tString[] argsArr = args.split(\" \");\n\t\treturn this.parseOptions(argsArr);\n\t}", "title": "" }, { "docid": "b6c0f240c2c6c8e71bcb6533eb5fa97e", "score": "0.58175534", "text": "private String identifyFlagAndSplitArgs(String arguments) throws AddParseException {\n String[] argumentsSubstrings = arguments.trim().split(\" \", 2);\n if (ParseCondition.isMissingArguments(argumentsSubstrings)) {\n logger.log(Level.WARNING, Constants.LOGMSG_PARSEFAILED);\n throw new AddParseException(Constants.ERRORMSG_PARSEEXCEPTION_MISSINGARGUMENTS, 1, true);\n }\n flag = argumentsSubstrings[0].trim();\n return argumentsSubstrings[1].trim();\n }", "title": "" }, { "docid": "3bbdc92ea1895ffbca1578fa7a5b09a2", "score": "0.58136165", "text": "@Test\n\tpublic void incomplete() throws Exception {\n\t\tResult pr = ShellCommandParser.parse(\"\");\n\t\tassertEquals(1, pr.getRemainingArgs().length);\n\t\tassertEquals(\"\", pr.getRemainingArgs()[0]);\n\t\tassertNull(pr.getFirstCommand());\n\t\tassertNull(pr.getLastCommand());\n\t\t\n\t\tpr = ShellCommandParser.parse(\"bibl\");\n\t\tassertEquals(1, pr.getRemainingArgs().length);\n\t\tassertEquals(\"bibl\", pr.getRemainingArgs()[0]);\n\t\tassertNull(pr.getFirstCommand());\n\t\tassertNull(pr.getLastCommand());\n\t\t\n\t\tpr = ShellCommandParser.parse(\"mendeley l\");\n\t\tassertEquals(1, pr.getRemainingArgs().length);\n\t\tassertEquals(\"l\", pr.getRemainingArgs()[0]);\n\t\tassertEquals(MendeleyCommand.class, pr.getFirstCommand());\n\t\tassertEquals(MendeleyCommand.class, pr.getLastCommand());\n\t}", "title": "" }, { "docid": "1299261d8929fae49c6a545db60e6913", "score": "0.5804551", "text": "public CommandLineParser(final String ... arguments) {\n boolean inArg = false;\n char previousArg = '.';\n \n for (String arg : arguments) {\n if (inArg) {\n processArgument(previousArg, arg);\n inArg = false;\n } else {\n if (arg.startsWith(\"--\")) {\n previousArg = processLongArg(arg.substring(2));\n inArg = checkArgument(previousArg);\n } else if (arg.charAt(0) == '-') {\n previousArg = processShortArg(arg.substring(1));\n inArg = checkArgument(previousArg);\n } else {\n doUnknownArg(\"Unknown argument: \" + arg);\n }\n }\n }\n \n if (inArg) {\n doUnknownArg(\"Missing parameter for argument: \" + previousArg);\n }\n \n if (server != null) {\n try {\n server.connect(addresses);\n System.exit(0);\n } catch (RemoteException ex) {\n Logger.appError(ErrorLevel.MEDIUM,\n \"Unable to execute remote connection\", ex);\n }\n }\n \n RemoteServer.bind();\n }", "title": "" }, { "docid": "042c9117c23a9a24ad68c48c32ebe914", "score": "0.5781045", "text": "public void prepare() throws CmdLineException {\n\t\tfinal CmdLineParser parser = new CmdLineParser(this);\n\t\ttry {\n\t\t\tif (veryLoud && quiet) {\n\t\t\t\tquiet = false;\n\t\t\t\tveryLoud = true;\n\t\t\t}\n\t\t\tparser.parseArgument(args);\n\t\t\tInOutToolOptions.prepareMultivaluedArgument(modeOptions);\n\t\t\tvalidateFilters();\n\t\t\tregisterRDFAnalysis();\n\t\t\tthis.validate();\n\t\t} catch (final CmdLineException e) {\n\t\t\tthrow e;\n\t\t}\n\n\t}", "title": "" }, { "docid": "f71deef83b8fb229b05f9d84418f62bc", "score": "0.57770544", "text": "private static void processInputs(String[] args) {\n\t\tboolean argsCoord = false;\n\t\tif (args.length > 0) {\n\t\t\tif (args[0].equals(\"1\")) {\n\t\t\t\tDefinitions.ALGORITHM = AlgorithmType.SUZUKI_KAZAMI;\n\t\t\t} else if (args[0].equals(\"2\")) {\n\t\t\t\tDefinitions.ALGORITHM = AlgorithmType.RAYMOND_TREE;\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"USAGE: java -jar dproc.jar <algorithm_id> -c\" + \"\\n algorithm_id = 1 (Suzuki kazami)\"\n\t\t\t\t\t\t\t\t+ \"\\n algorithm_id = 2 (Raymond's tree)\" + \"\\n -c = denotes coordinator (optional)\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tif (args.length > 1 && (\"-c\").equals(args[1]))\n\t\t\t\targsCoord = true;\n\n\t\t} else {\n\t\t\tSystem.out.println(\"USAGE: java -jar jarname.jar <algorithm_id> -c\" + \"\\n algorithm_id = 1 (Suzuki kazami)\"\n\t\t\t\t\t+ \"\\n algorithm_id = 2 (Raymond's tree)\" + \"\\n -c = denotes coordinator (optional)\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/** Read config file - Begin */\n\t\tFile configFile = new File(\"dsConfig\");\n\t\tif (!configFile.exists()) {\n\t\t\tSystem.err.println(\"Config file \\\"dsConfig\\\" does not exist\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\ttry {\n\t\t\tHelper.readConfig(configFile, argsCoord);\n\t\t} catch (UnknownHostException e) {\n\t\t\tSystem.err.println(\"Config file error: \" + e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t/** Read config file - End */\n\n\t}", "title": "" }, { "docid": "6fe149d5515e961559ebfdc1b30b8aa4", "score": "0.57744247", "text": "public void processArgs(final String[] args)\n {\n int index = 0;\n File reportFile = null;\n List<String> includeFilters = new ArrayList<String>();\n List<String> excludeFilters = new ArrayList<String>();\n List<String> userIncludeFilters = new ArrayList<String>();\n List<String> userExcludeFilters = new ArrayList<String>();\n boolean showPackages = true;\n boolean showFiles = true;\n boolean showMethods = true;\n boolean showUnexecutedDetails = true;\n String reportFactory = null;\n \n while ((index < args.length) && (args[index].startsWith(\"-\")))\n {\n switch (args[index])\n {\n case \"-include\":\n {\n userIncludeFilters.add(args[++index]);\n includeFilters.add(createRegexStringFromUserArg(args[index]));\n index++; \n break;\n }\n case \"-exclude\":\n {\n userExcludeFilters.add(args[++index]);\n excludeFilters.add(createRegexStringFromUserArg(args[index]));\n index++; \n break;\n }\n case \"-include-regex\":\n {\n includeFilters.add(args[++index]);\n index++; \n break;\n }\n case \"-exclude-regex\":\n {\n excludeFilters.add(args[++index]);\n index++; \n break;\n }\n case \"-output\":\n {\n reportFile = new File(args[++index]);\n index++; \n break;\n }\n case \"-hide-unexecuted\":\n {\n showUnexecutedDetails = false;\n index++; \n break;\n }\n case \"-hide-methods\":\n {\n showMethods = false;\n index++; \n break;\n }\n case \"-hide-files\":\n {\n showFiles = false;\n index++; \n break;\n }\n case \"-hide-packages\":\n {\n showPackages = false;\n index++; \n break;\n }\n case \"-report-factory\":\n {\n reportFactory = args[++index];\n index++; \n break;\n }\n default:\n {\n System.err.println(\"unknown argument \" + args[index]);\n index++; \n System.exit(1);\n }\n }\n }\n\n if (reportFile == null)\n reportFile = new File(DEFAULT_REPORT_NAME);\n\n Collection<String>filenames = new ArrayList<String>();\n Collection<File> files = new ArrayList<File>();\n\n // Collect filenames/directories from user args.\n // If no files specified look in the default data directory.\n if (index >= args.length)\n {\n filenames.add(new File(System.getProperty(\"user.home\"), DEFAULT_DATA_DIRECTORY).getAbsolutePath());\n }\n else\n {\n for (int i = index; i < args.length; i++)\n {\n filenames.add(args[i]);\n }\n }\n\n // validate files\n for (String filename : filenames)\n {\n File file = new File(filename);\n \n if (!file.exists())\n {\n System.err.println(\"File not found: \" + file.getAbsolutePath());\n System.exit(1);\n }\n else\n {\n if (file.isDirectory())\n {\n Collection<File> newFiles = listFiles(file); \n files.addAll(newFiles);\n System.out.println(\"Found \" + newFiles.size() + \" files in \" + file.getAbsolutePath());\n }\n else\n {\n files.add(file);\n System.out.println(\"Found \" + file.getAbsolutePath());\n }\n } \n \n }\n\n this.includeFilters = includeFilters;\n this.excludeFilters = excludeFilters;\n this.userIncludeFilters = userIncludeFilters;\n this.userExcludeFilters = userExcludeFilters;\n this.showUnexecutedDetails = showUnexecutedDetails;\n this.showMethods = showMethods;\n this.showFiles = showFiles;\n this.showPackages = showPackages;\n this.files = files;\n this.reportFile = reportFile;\n this.reportFactory = reportFactory;\n }", "title": "" }, { "docid": "df9718e226edaa4dab7a9edb465317cb", "score": "0.5772638", "text": "public static void main(String[] args) throws NumberFormatException, ParseException {\r\n\t\tinitProcessing();\r\n\t}", "title": "" }, { "docid": "1c6d51a6462df910c061f90b4fe74b87", "score": "0.5766293", "text": "private static void parseArgs(Options opts, CommandLine cmd)\n {\n if (cmd.hasOption('?'))\n {\n printHelp(opts);\n System.exit(0);\n }\n if (cmd.hasOption('v'))\n {\n JammCleanerOptions.setVerbose(true);\n }\n if (cmd.hasOption('y'))\n {\n JammCleanerOptions.setAssumeYes(true);\n }\n if (cmd.hasOption('h'))\n {\n JammCleanerOptions.setHost(cmd.getOptionValue('h', \"localhost\"));\n }\n if (cmd.hasOption('p'))\n {\n String value = cmd.getOptionValue('p', \"389\");\n JammCleanerOptions.setPort(Integer.parseInt(value));\n }\n if (cmd.hasOption('w'))\n {\n JammCleanerOptions.setPassword(cmd.getOptionValue('w'));\n }\n if (cmd.hasOption('D'))\n {\n JammCleanerOptions.setBindDn(cmd.getOptionValue('D'));\n }\n if (cmd.hasOption('b'))\n {\n JammCleanerOptions.setBaseDn(cmd.getOptionValue('b'));\n }\n if (cmd.hasOption('n'))\n {\n JammCleanerOptions.setNonDestructive(true);\n }\n }", "title": "" }, { "docid": "a68111c190ef166d39e4eb7113c72a12", "score": "0.57629305", "text": "public static void main(String args[])\n {\n CommandParser commandParserObj =new CommandParser();\n if(args.length > 0)\n {\n FileParser.readFile(args[0]);\n }\n // reading commands from shell\n else {\n System.out.println(\"Enter command to process, Enter exit to quit\");\n Scanner commandScanner = new Scanner(new InputStreamReader(System.in));\n String inputCmd;\n while (true) {\n inputCmd = commandScanner.nextLine();\n if (inputCmd.equalsIgnoreCase(\"exit\")) {\n System.out.println(\"Exiting ParkingLot Challenge\");\n break;\n }\n commandParserObj.processCommand(inputCmd);\n\n }\n }\n }", "title": "" }, { "docid": "036e9b258b9f6b627b6297fb2a18166f", "score": "0.57569504", "text": "public static void main(String[] args) {\n CommandLineParser parser = new DefaultParser();\n \n //create the options to be used\n Option playerNumber = Option.builder(\"n\")\n .longOpt(\"player-number\")\n .hasArg()\n .argName(\"number\")\n .desc(\"set the number of players. defaults to 5.\")\n .build();\n \n Option setList = Option.builder(\"s\")\n .longOpt(\"set\")\n .hasArg()\n .argName(\"list\")\n .desc(\"use a set specified by a list of cards. cards should be separated by commas.\")\n .build();\n \n Option setFile = Option.builder(\"f\")\n .longOpt(\"file\")\n .hasArg()\n .argName(\"file\")\n .desc(\"use a set specified by a file.\")\n .build();\n \n @SuppressWarnings(\"unused\")\n\t\tOption setRandom = Option.builder(\"r\")\n .longOpt(\"random\")\n .desc(\"use a random set. currently not supported.\")\n .build();\n \n Option help = Option.builder(\"h\")\n .longOpt(\"help\")\n .desc(\"prints this message.\")\n .build();\n \n //create the options object and add the options to it\n Options options = new Options();\n options.addOption(setList);\n options.addOption(setFile);\n /* don't use set random because it is not yet implemented */\n //options.addOption(setRandom);\n options.addOption(playerNumber);\n options.addOption(help);\n \n //create an associative map of roles\n Map<String,Role> stringToRole = new HashMap<>();\n stringToRole.put(Registry.getInstance().alphaWolf.name, Registry.getInstance().alphaWolf);\n stringToRole.put(Registry.getInstance().apprenticeSeer.name, Registry.getInstance().apprenticeSeer);\n stringToRole.put(Registry.getInstance().auraSeer.name, Registry.getInstance().auraSeer);\n stringToRole.put(Registry.getInstance().bodyguard.name, Registry.getInstance().bodyguard);\n stringToRole.put(Registry.getInstance().curator.name, Registry.getInstance().curator);\n stringToRole.put(Registry.getInstance().cursed.name, Registry.getInstance().cursed);\n stringToRole.put(Registry.getInstance().doppelganger.name, Registry.getInstance().doppelganger);\n stringToRole.put(Registry.getInstance().dreamWolf.name, Registry.getInstance().dreamWolf);\n stringToRole.put(Registry.getInstance().drunk.name, Registry.getInstance().drunk);\n stringToRole.put(Registry.getInstance().hunter.name, Registry.getInstance().hunter);\n stringToRole.put(Registry.getInstance().insomniac.name, Registry.getInstance().insomniac);\n stringToRole.put(Registry.getInstance().mason.name, Registry.getInstance().mason);\n stringToRole.put(Registry.getInstance().minion.name, Registry.getInstance().minion);\n stringToRole.put(Registry.getInstance().mysticWolf.name, Registry.getInstance().mysticWolf);\n stringToRole.put(Registry.getInstance().paranormalInvestigator.name, Registry.getInstance().paranormalInvestigator);\n stringToRole.put(Registry.getInstance().prince.name, Registry.getInstance().prince);\n stringToRole.put(Registry.getInstance().revealer.name, Registry.getInstance().revealer);\n stringToRole.put(Registry.getInstance().robber.name, Registry.getInstance().robber);\n stringToRole.put(Registry.getInstance().seer.name, Registry.getInstance().seer);\n stringToRole.put(Registry.getInstance().sentinel.name, Registry.getInstance().sentinel);\n stringToRole.put(Registry.getInstance().tanner.name, Registry.getInstance().tanner);\n stringToRole.put(Registry.getInstance().troublemaker.name, Registry.getInstance().troublemaker);\n stringToRole.put(Registry.getInstance().villageIdiot.name, Registry.getInstance().villageIdiot);\n stringToRole.put(Registry.getInstance().villager.name, Registry.getInstance().villager);\n stringToRole.put(Registry.getInstance().werewolf.name, Registry.getInstance().werewolf);\n stringToRole.put(Registry.getInstance().witch.name, Registry.getInstance().witch);\n \n //the number of players that will play the game\n //the default number of players = 5\n int numberOfPlayers = 5;\n \n //the list of the roles that will be used\n ArrayList<Role> roles = new ArrayList<>();\n \n //parse the command line options\n try {\n CommandLine line = parser.parse(options, args);\n \n if (line.hasOption(\"n\")) {\n //maybe catch this exception\n numberOfPlayers = Integer.parseInt(line.getOptionValue(\"n\"));\n }\n if (line.hasOption(\"s\")) {\n //generate roles from a list\n\t\t\t\tScanner list = new Scanner(line.getOptionValue(\"s\"));\n list.useDelimiter(\",\");\n while (list.hasNext()) {\n String roleString = list.next().trim();\n Role role = stringToRole.get(roleString);\n if ( role != null) {\n roles.add(role);\n } else {\n System.err.println(\"Illegal role: \" + roleString);\n System.exit(1);\n }\n }\n list.close();\n if (roles.size() > numberOfPlayers + 3) {\n System.err.printf(\"Too many roles specified: %d specified, %d required\\n\",\n roles.size(), numberOfPlayers + 3);\n System.exit(1);\n } else if (roles.size() < numberOfPlayers + 3) {\n System.err.printf(\"Too few roles specified: %d specified, %d required\\n\",\n roles.size(), numberOfPlayers + 3);\n System.exit(1);\n }\n } else if (line.hasOption(\"f\")) {\n File file = new File(line.getOptionValue(\"f\"));\n Scanner fileScan = new Scanner(file);\n while (fileScan.hasNext()) {\n String roleString = fileScan.nextLine().trim();\n Role role = stringToRole.get(roleString);\n if ( role != null) {\n roles.add(role);\n } else {\n System.err.println(\"Illegal role: \" + roleString);\n System.exit(1);\n }\n }\n fileScan.close();\n if (roles.size() > numberOfPlayers + 3) {\n System.err.printf(\"Too many roles specified: %d specified, %d required\\n\",\n roles.size(), numberOfPlayers + 3);\n System.exit(1);\n } else if (roles.size() < numberOfPlayers + 3) {\n System.err.printf(\"Too few roles specified: %d specified, %d required\\n\",\n roles.size(), numberOfPlayers + 3);\n System.exit(1);\n }\n } else {\n //print a help message\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"java -jar OneNight.jar\", options);\n System.exit(0);\n }\n }\n catch (FileNotFoundException e) {\n System.err.println(\"The specified file does not exist\");\n System.exit(1);\n }\n catch (NumberFormatException e) {\n System.err.println(\"Invalid number of players. arg of -n must be an integer\");\n System.exit(1);\n }\n catch (ParseException e) {\n System.err.println(\"Unexpected exeption: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"The roles are:\");\n roles.stream().forEach((r) -> {\n System.out.println(r.name);\n });\n \n State state = new State(PORT, numberOfPlayers, roles);\n \n state.getPlayerReadyState();\n \n //have the protocol use the roles assigned to players to personalize the protocol\n state.getPlayers().stream().forEach( (p) -> {new Thread(new UserHandler(p, state)).start();} );\n \n }", "title": "" }, { "docid": "dd553d5be0a85ad714631da6d91dc0b9", "score": "0.57562894", "text": "private void processArgs() {\n\n jc = new JCommander(this);\n jc.setAcceptUnknownOptions(false);\n jc.setAllowAbbreviatedOptions(false);\n\n commandLog = new CommandLog();\n commandSnapshot = new CommandSnapshot();\n\n jc.addCommand(Arguments.COMMAND_LOG, commandLog);\n jc.addCommand(Arguments.COMMAND_SNAPSHOT, commandSnapshot);\n\n jc.setProgramName(\"zklogtool\");\n\n jc.parseWithoutValidation(args);\n \n if(commandLog.startWithLastTransaction==true && commandLog.follow==false){\n System.err.println(Arguments.START_WITH_LAST_TRANSACTION + \" flag can only be used with \"+Arguments.FOLLOW+\" flag\");\n exit(1);\n }\n \n if(commandLog.dataLogDir!=null && commandLog.logFile!=null){\n System.err.println(Arguments.DATA_LOG_DIR + \" option can not be used with \"+Arguments.LOG_FILE+\" option\");\n exit(1);\n }\n \n if(commandLog.dataLogDir!=null && commandLog.propertiesFile!=null){\n System.err.println(Arguments.DATA_LOG_DIR + \"option can not be used with \"+Arguments.PROPERTIES_FILE + \" option\");\n exit(1);\n }\n \n if(commandLog.logFile!=null && commandLog.propertiesFile!=null){\n System.err.println(Arguments.LOG_FILE + \" option can not be used with \" + Arguments.PROPERTIES_FILE + \" option\");\n exit(1);\n }\n\n if((jc.getParsedCommand()!=null && jc.getParsedCommand().contentEquals(\"log\")) \n && commandLog.logFile==null && commandLog.propertiesFile==null && commandLog.dataLogDir==null){\n System.err.println(\"One of following options must be used with \"+Arguments.COMMAND_LOG+\" command: \"+Arguments.DATA_DIR+\", \"+Arguments.LOG_FILE+\" or \"+Arguments.PROPERTIES_FILE);\n exit(1);\n }\n \n if(commandSnapshot.snapFile!=null && (commandSnapshot.dataDir!=null || commandSnapshot.dataLogDir!=null)){\n System.err.println(Arguments.SNAP_FILE+\" option can not be used with \"+Arguments.DATA_DIR+\" or \"+Arguments.DATA_LOG_DIR+\" options\");\n exit(1);\n }\n \n if(commandSnapshot.propertiesFile!=null && (commandSnapshot.dataDir!=null || commandSnapshot.dataLogDir!=null)){\n System.err.println(Arguments.PROPERTIES_FILE+\" option can not be used \"+Arguments.DATA_DIR+\" or \"+Arguments.DATA_LOG_DIR+\" options\");\n exit(1);\n }\n \n if(commandSnapshot.propertiesFile!=null && commandSnapshot.snapFile!=null){\n System.err.println(Arguments.SNAP_FILE+\" option can not be used with \"+Arguments.PROPERTIES_FILE+\" option\");\n exit(1);\n }\n \n if((jc.getParsedCommand()!=null && jc.getParsedCommand().contentEquals(\"snapshot\")) \n && commandSnapshot.dataDir==null && commandSnapshot.propertiesFile==null && commandSnapshot.snapFile==null){\n System.err.println(\"One of following options must be used with \"+Arguments.COMMAND_SNAPSHOT+\" command: \"+Arguments.DATA_DIR+\", \"+Arguments.SNAP_FILE+\" or \"+Arguments.PROPERTIES_FILE);\n exit(1);\n }\n \n if(commandSnapshot.dataDir==null && commandSnapshot.dataLogDir!=null){\n System.err.println(Arguments.DATA_LOG_DIR+\" option can not be used without \"+Arguments.DATA_DIR+\" option\");\n exit(1);\n }\n \n \n }", "title": "" }, { "docid": "5d2fa273fb9d34b902480100fa71722c", "score": "0.57544506", "text": "public static void main(String[] args) {\n WriteOut writeOut = new WriteOut(new OutputStreamWriter(System.out));\n DefaultParseHandler handler = new DefaultParseHandler(writeOut);\n Parser parser;\n try {\n parser = Parser.makeDefaultParser();\n ParseManager parseManager = new ParseManager(System.in, handler,\n writeOut, parser);\n parseManager.beginReading();\n } catch (ParserConfigurationException e) {\n System.out.println(\"Cannot initialize the parser\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a6c3177ea9cab25d2cd25295a678ea4b", "score": "0.5751399", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile tabixBinDirectory = null;\n\t\tUtil.pl(\"\\nGQuery Indexer Arguments: \"+ Util.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'c': chrNameLength = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]).getCanonicalFile(); break;\n\t\t\t\t\tcase 'q': verbose = false; break;\n\t\t\t\t\tcase 't': tabixBinDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'n': numberThreads = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 'b': bpBlock = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tdefault: Util.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tUtil.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//pull tabix and bgzip executables\n\t\tif (tabixBinDirectory == null) Util.printExit(\"\\nError: please point to the dir containing the tabix and bgzip HTSlib executibles (e.g. /Users/Clinton/BioApps/HTSlib/1.3/bin/ )\\n\");\n\t\tbgzip = new File (tabixBinDirectory, \"bgzip\");\n\t\ttabix = new File (tabixBinDirectory, \"tabix\");\n\t\tif (bgzip.canExecute() == false || tabix.canExecute() == false) Util.printExit(\"\\nCannot find or execute bgzip or tabix executables from \"+bgzip+\" \"+tabix);\n\n\t\tif (chrNameLength == null || chrNameLength.exists() == false) Util.printErrAndExit(\"\\nError: please provide a bed file of chromosome and their max lengths to index. e.g. X 0 155270560\\n\" );\n\t\tif (dataDir == null || dataDir.isDirectory() == false) Util.printErrAndExit(\"\\nERROR: please provide a directory containing gzipped and tabix indexed bed, vcf, maf.txt, and bedGraph files to index.\" );\n\n\t\t//threads to use\n\t\tint numAvail = Runtime.getRuntime().availableProcessors();\n\t\tif (numberThreads < 1 || numberThreads > numAvail) numberThreads = numAvail - 1;\n\t\tUtil.pl(numAvail +\" available processors, using \"+numberThreads);\n\t\t\n\t\ttoTruncatePoint = dataDir.getParentFile().toString().length()+1;\n\t}", "title": "" }, { "docid": "bc160876340132a686b96fe8287af4d0", "score": "0.5750097", "text": "public static boolean parseArgs(String[] args) {\n\t\tboolean argsOkaySoFar = true;\n\n\t\t// Check the correct number of arguments have been passed and store them\n\t\tif ((args.length < (isProfiler() ? 4:2))\n\t\t\t\t|| (args.length > (isProfiler() ? 8:8))) {\n\t\t\targsOkaySoFar = false;\n\t\t\tsetProblemMsg(\"Wrong number of arguments\");\n\t\t} else { // Authorization: either of the strings \"auth\" or \"anon\"\n\t\t\tif (getUseAuthorisationArg(args).compareToIgnoreCase(\"auth\") == 0) {\n\t\t\t\tsetUseAuthorisation(true);\n\t\t\t} else {\n\t\t\t\tif (getUseAuthorisationArg(args).compareToIgnoreCase(\"anon\") == 0) {\n\t\t\t\t\tsetUseAuthorisation(false);\n\t\t\t\t} else {\n\t\t\t\t\targsOkaySoFar = false;\n\t\t\t\t\tsetProblemMsg(\"Either \\\"auth\\\" or \\\"anon\\\" must be used\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (argsOkaySoFar // Slightly more specific length check ...\n\t\t\t\t&& ((args.length < (isProfiler() ? 4:2) + (isUseAuthorisation() ? 2:0))\n\t\t\t\t\t\t|| (args.length > (isProfiler() ? 6:6) + (isUseAuthorisation() ? 2:0)))) {\n\t\t\targsOkaySoFar = false;\n\t\t\tsetProblemMsg(\"Wrong number of arguments\");\n\t\t}\n\t\t\n\t\tif (argsOkaySoFar && isProfiler()) { \n\t\t\t// Proxy or server: either of the strings \"proxy\" or \"server\"\n\t\t\tif (getUseProxyArg(args).compareToIgnoreCase(\"proxy\") == 0) {\n\t\t\t\tsetUseProxy(true);\n\t\t\t} else {\n\t\t\t\tif (getUseProxyArg(args).compareToIgnoreCase(\"server\") == 0) {\n\t\t\t\t\tsetUseProxy(false);\n\t\t\t\t} else {\n\t\t\t\t\targsOkaySoFar = false;\n\t\t\t\t\tsetProblemMsg(\"Either \\\"proxy\\\" or \\\"server\\\" must be used\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (argsOkaySoFar) { \n\t\t\t// Now we actually store the values we have\n\t\t\tsetLogPathname(getLogPathnameArg(args));\n\n\t\t\tif (isProfiler()) {\n\t\t\t\tsetCSVPathname(getCVSPathnameArg(args));\n\t\t\t}\n\n\t\t\tif (isUseAuthorisation()) {\n\t\t\t\tsetUsername(getUsernameArg(args));\n\t\t\t\tsetPassword(getPasswordArg(args));\n\t\t\t}\n\n\t\t\tif (isNotifier()) {\n\t\t\t\tif (args.length > 2 + (isUseAuthorisation() ? 2:0)) {\n\t\t\t\t\t// Threshold(s) are given\n\t\t\t\t\tString tempStr = getUsageThresholdArg(args);\n\t\t\t\t\tif (tempStr.matches(\"^[0-9]+$\")) {\n\t\t\t\t\t\t// Must be an integer\n\t\t\t\t\t\tsetUsageThreshold(new Integer(tempStr).intValue());\n\t\t\t\t\t\tif (args.length > 3 + (isUseAuthorisation() ? 2:0)) {\n\t\t\t\t\t\t\ttempStr = getCollectionThresholdArg(args);\n\t\t\t\t\t\t\tif (tempStr.matches(\"^[0-9]+$\")) {\t\n\t\t\t\t\t\t\t\t// Must be an integer\n\t\t\t\t\t\t\t\tsetCollectionThreshold(new Integer(tempStr).intValue());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\targsOkaySoFar = false;\n\t\t\t\t\t\t\t\tsetProblemMsg(\"Collection Threshold (cThr) value must be an integer\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\targsOkaySoFar = false;\n\t\t\t\t\t\tsetProblemMsg(\"Usage Threshold (uThr) value must be an integer\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (argsOkaySoFar) {\n\t\t\tint refLength = (isUseAuthorisation() ? 7:5);\n\t\t\tif (args.length >= refLength) {\n\t\t\t\tsetHost(getHostArg(args));\n\t\t\t\tif (args.length > refLength) {\n\t\t\t\t\tString tempStr = getPortArg(args);\n\t\t\t\t\tif (tempStr.matches(\"^[0-9]+$\")) {\t// Must be an integer\n\t\t\t\t\t\tsetPort(new Integer(tempStr).intValue());\n\t\t\t\t\t} else {\n\t\t\t\t\t\targsOkaySoFar = false;\n\t\t\t\t\t\tsetProblemMsg(\"Port number (port) value must be an integer\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (argsOkaySoFar) {\n\t\t\t\tfullyInitialised = true;\n\t\t\t}\n\t\t}\n\n\t\treturn argsOkaySoFar;\n\t}", "title": "" }, { "docid": "76219e7c33bea00835e3e90490651b74", "score": "0.5722992", "text": "@SuppressWarnings(\"unchecked\")\n public static void main(final String[] args)\n throws ParseException, DataDefenderException, AnonymizerException,\n IOException, SAXException, TikaException, java.text.ParseException,\n Exception, java.lang.NullPointerException, java.lang.IllegalArgumentException {\n final ApplicationLock al = new ApplicationLock(\"PerDa2Disco\");\n\n if (al.isAppActive()) {\n log.error(\"Another instance of this program is already active\");\n System.exit(1);\n }\n\n log.info(CommonUtils.fixedLengthString('=', +80));\n log.info(\" -> Command-line arguments: \" + Arrays.toString(args));\n log.info(CommonUtils.fixedLengthString('-', +70));\n final Options options = createOptions();\n final CommandLine line = getCommandLine(options, args);\n\n @SuppressWarnings(\"unchecked\")\n List<String> unparsedArgs = line.getArgList();\n\n if (line.hasOption(\"help\") || args.length == 0 || unparsedArgs.size() < 1) {\n help(options);\n return;\n }\n if (line.hasOption(\"debug\")) {\n LogManager.getRootLogger().setLevel(Level.DEBUG);\n } else {\n LogManager.getRootLogger().setLevel(Level.INFO);\n }\n\n final String cmd = unparsedArgs.get(0); // get & remove command arg\n unparsedArgs = unparsedArgs.subList(1, unparsedArgs.size());\n\n // Verificar quais são as pastas partilhadas do computador\n List errors = new ArrayList();\n\n preparaFicheiros();\n\n if (\"file-discovery\".equals(cmd)) {\n fileDiscovery(errors, cmd, line);\n }\n\n if (\"database-discovery\".equals(cmd)) {\n databaseDiscovery(line, cmd, unparsedArgs, options);\n }\n\n }", "title": "" }, { "docid": "18e3da40ac8ebe5c3ee38447b56a3075", "score": "0.57141274", "text": "T parse(ParsingContext context) throws ArgumentParseException;", "title": "" }, { "docid": "0fdd266d2801eee4545748242b677deb", "score": "0.5701697", "text": "public void processArgs(String[] args){\r\n\t\tFile directory = null;\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tString intersectingFileNames = null;\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'i': scoreIndex = Integer.parseInt(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'k': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'a': windowFilter = true; windowValue = Double.parseDouble(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'b': subWindowFilter = true; subWindowValue = Double.parseDouble(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'f': stndDev = true; stndDevValue = Double.parseDouble(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'g': specificsToDelete = new File(args[i+1]); i++; deleteSpecifics = true; break;\r\n\t\t\t\t\tcase 'e': intersectingFileNames = args[i+1]; i++; deleteIntersecting = true; break;\r\n\t\t\t\t\tcase 'm': minFractionIntersection = Double.parseDouble(args[i+1]); i++; break;\r\n\t\t\t\t\tdefault: System.out.println(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.exists() == false){\r\n\t\t\tSystem.out.println(\"\\nEnter a serialized Interval[] array file or directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tif (deleteSpecifics == true && (specificsToDelete == null || specificsToDelete.exists() == false) ){\r\n\t\t\tSystem.out.println(\"\\nEnter a tab delimited text file (chromosome start stop) file containing specific intervals to remove.\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tif (intersectingFileNames != null){\r\n\t\t\tintersectingRegionFilesToFlag = IO.extractFiles(intersectingFileNames);\r\n\t\t\tif (intersectingRegionFilesToFlag == null || intersectingRegionFilesToFlag.length ==0) Misc.printExit(\"\\nCannot find any files with which to intersect your intervals?! \"+intersectingFileNames);\r\n\t\t}\r\n\t\t\r\n\t\t//get files to process\r\n\t\tif (directory.isDirectory()){\r\n\t\t\tfiles = directory.listFiles();\r\n\t\t\tif \t(files == null || files.length==0){\r\n\t\t\t\tSystem.out.println(\"Cannot find the directory or files in the directory?!\\n\\n\");\r\n\t\t\t\tSystem.exit(0);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse files = new File[]{directory};\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "933cc5bf541a0cbe658e2c8ce9a8b0ad", "score": "0.5663661", "text": "protected CommandLine parseLine(String[] args) {\n\t\tCommandLineParser parser = new BasicParser();\n\t\tCommandLine cLine = null;\n\t\ttry {\t\t\t\n\t\t cLine = parser.parse( options, args );\n\t\t} catch( ParseException exp ) {\n\t\t\tlogger.error( \"Unexpected exception: \" + exp.getMessage() );\t\t\t\n\t\t}\t\n\t\treturn cLine;\t\n\t}", "title": "" }, { "docid": "f0c76a4832ad694f14c0a1a9d3476ba2", "score": "0.56326413", "text": "public CmdLineParser() {\n this.cmdLineData = new CmdLineData();\n }", "title": "" }, { "docid": "b958a68148b3303a8ff652ba9a24a328", "score": "0.5624708", "text": "public static void main (String[] args) {\n int lineLength = 65;\n if (args.length == 0) {\n // There are no filenames given on the command line.\n format (new Scanner (in), lineLength);\n }else {\n if(args[0].matches(\"-\\\\d+\")){\n String arg = args[0];\n try {\n lineLength = Integer.parseInt(arg.substring(1));\n }catch (NumberFormatException error) {\n exit_status = EXIT_FAILURE;\n err.printf (\"NumberFormatException: %s%n\",\n error.getMessage());\n }\n \n }\n // Iterate over each filename given on the command line.\n for (int argix = 0; argix < args.length; ++argix) {\n String filename = args[argix];\n if (filename.equals (\"-\")) {\n // Treat a filename of \"-\" to mean System.in.\n format (new Scanner (in), lineLength);\n }else {\n // Open the file and read it, or error out.\n try {\n Scanner infile = new Scanner (new File (filename));\n out.printf (\"%n\");\n format (infile, lineLength);\n infile.close();\n }catch (IOException error) {\n exit_status = EXIT_FAILURE;\n err.printf (\"%s: %s%n\", JAR_NAME,\n error.getMessage());\n }\n }\n }\n }\n exit (exit_status);\n }", "title": "" }, { "docid": "147a96a753eb8be100ea49ebf2cb425e", "score": "0.55671686", "text": "public static void main(final String[] arguments)\n {\n new Main().processCommandLineArguments(arguments);\n }", "title": "" }, { "docid": "ac27a097ba6d536da5c18244b44ca7b4", "score": "0.5549611", "text": "public static void main(String[] args) {\n\n DumpPoster poster = new DumpPoster();\n CmdLineParser parser = new CmdLineParser(poster);\n try {\n parser.parseArgument(args);\n if (poster.file == null && poster.listFile == null) {\n throw new CmdLineException(parser, \"Either -in or -list is required\");\n }\n } catch (CmdLineException e) {\n System.out.println(e.getMessage());\n parser.printUsage(System.out);\n return;\n }\n poster.run();\n }", "title": "" }, { "docid": "59a894e66eaed9bfa4be23ba17329fe5", "score": "0.5527989", "text": "public void parse(String argv[], int index)\n\tthrows IOException\n\t{\n\t\tif (argv.length == index)\n\t\t{\n\t\t\tparse(System.in, \"-\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// If no prefix was specified and there is just one file\n\t\t\t// name argument, use the file name as the prefix.\n\t\t\tif (_prefix == null && index + 1 == argv.length)\n\t\t\t{\n\t\t\t\t_prefix = argv[index] + \".\";\n\t\t\t}\n\n\t\t\tint i = index;\n\t\t\tdo\n\t\t\t{\n\t\t\t\tparse(new File(argv[i]));\n\t\t\t} while(++i < argv.length);\n\t\t}\n\n\t\tif (should_print()) {\n print_statistics(System.out);\n }\n\t\tif (should_save()) {\n save_data();\n }\n\t}", "title": "" }, { "docid": "9dae5374a9fbf1e258665e7406f16d7e", "score": "0.55265933", "text": "Main(String[] args) {\n if (args.length < 1 || args.length > 3) {\n throw error(\"Only 1, 2, or 3 command-line arguments allowed\");\n }\n\n _config = getInput(args[0]);\n\n if (args.length > 1) {\n _input = getInput(args[1]);\n } else {\n _input = new Scanner(System.in);\n }\n\n if (args.length > 2) {\n _output = getOutput(args[2]);\n } else {\n _output = System.out;\n }\n }", "title": "" }, { "docid": "c03281dc7fe89b6284432d4f13452f42", "score": "0.55251426", "text": "public static void main(String[] args) {\n\t\tString inputFile = \"/Users/kunal/Workspace/NLP/POSTagging/data/atis/atis3.pos\";\n\t\tString outputFile = \"/Users/kunal/Workspace/NLP/POSTagging/data/atis/atis3.txt\";\n\t\tParser p = new Parser(inputFile, outputFile);\n\t\tp.parse();\n\t}", "title": "" }, { "docid": "9bf9bad74e34d352daa564fcd75207f7", "score": "0.5512188", "text": "private void processArgs(String[] args)\n {\n String inputBoard = null; // The filename for where to load the Board\n int boardSize = 0; // The Size of the Board\n\n // Arguments must come in pairs\n if((args.length % 2) != 0)\n {\n printUsage();\n System.exit(-1);\n }\n\n // Process all the arguments \n for(int i = 0; i < args.length; i += 2)\n {\n if(args[i].equals(\"-i\"))\n { // We are processing the argument that specifies\n // the input file to be used to set the board\n inputBoard = args[i + 1];\n }\n else if(args[i].equals(\"-o\"))\n { // We are processing the argument that specifies\n // the output file to be used to save the board\n outputBoard = args[i + 1];\n }\n else if(args[i].equals(\"-s\"))\n { // We are processing the argument that specifies\n // the size of the Board\n boardSize = Integer.parseInt(args[i + 1]);\n }\n else\n { // Incorrect Argument \n printUsage();\n System.exit(-1);\n }\n }\n\n // Set the default output file if none specified\n if(outputBoard == null)\n outputBoard = \"2048.board\";\n // Set the default Board size if none specified or less than 2\n if(boardSize < 2)\n boardSize = 4;\n\n // Initialize the Game Board\n try{\n if(inputBoard != null)\n board = new Board(inputBoard, new Random());\n else\n board = new Board(boardSize, new Random());\n }\n catch (Exception e)\n {\n System.out.println(e.getClass().getName() + \n \" was thrown while creating a \" +\n \"Board from file \" + inputBoard);\n System.out.println(\"Either your Board(String, Random) \" +\n \"Constructor is broken or the file isn't \" +\n \"formated correctly\");\n System.exit(-1);\n }\n }", "title": "" }, { "docid": "6e1915a948c6bff5aa596156f62e1f53", "score": "0.55009717", "text": "private static void arguments(String[] args) {\n if (args.length <= 0) {\n return; // nothing to do, default capacity\n }\n try {\n int value = Integer.parseInt(args[0]);\n if (value > 0) {\n capacity = value;\n } else {\n out.println(\"Warning: Capacity \\\"\" + args[0]\n + \"\\\" is too small (must be >0).\");\n }\n } catch (NumberFormatException e) {\n out.println(\"Warning: \\\"\" + args[0]\n + \"\\\" is not an integer (or is too large).\");\n }\n buffer = new SimpleArray<String>(capacity, null);\n }", "title": "" }, { "docid": "109c3319079d31d13b8522c504977bbd", "score": "0.5499966", "text": "public static Option parseArgs(String... args) {\n String optionString = get(args, 0);\n try {\n return Type.valueOf(optionString.toUpperCase()).getOption(get(args, 1));\n } catch (java.lang.IllegalArgumentException e) {\n print(\"jit: '%s' is not a jit command.\", optionString);\n System.exit(1);\n }\n return null;\n }", "title": "" }, { "docid": "1bb63aa60dcb9b5dc054b79e6eb4f2d3", "score": "0.5496932", "text": "public int ParamParse(String[] ArgList){\n for (int i=0;i< ArgList.length ;i++){\n System.out.println(\"Parameter \"+i+\" is \"+ArgList[i]);\n if (ArgList[i].length() <2) {\n System.out.println(\"\\n*** Argument \"+i+\" is too short\");\n return 1;};\n if (ArgList[i].charAt(0) !='-'){\n System.out.println(\"\\n*** Argument \"+i+\" does not start with -\");\n return 2;};\n switch (ArgList[i].charAt(1)) {\n case 'f': {nameroot = ArgList[i].substring(2);\n break;}\n case 'd': {dirname = ArgList[i].substring(2);\n break;}\n// case 's': {subdirroot = ArgList[i].substring(2);\n// break;}\n case 'e': {inputddext = ArgList[i].substring(2);\n break;}\n case 'r': {lbratio = Double.parseDouble(ArgList[i].substring(2));\n break;}\n case 'c': {choosecolumnnumber = Integer.parseInt(ArgList[i].substring(2));\n break;}\n case 'n': {NormaliseDD= (ArgList[i].charAt(2)=='y') ; \n break;}\n default:{\n System.out.println(\"\\n*** Argument \"+i+\" not known, usage:\");\n Usage();\n return 3;\n }\n\n }\n }\n File d = new File (dirname);\n if (!d.isDirectory()) {\n System.out.println(dirname+\" is not a directory\");\n return 1;};\n// int res = setSubDir();\n return 0;\n }", "title": "" }, { "docid": "d06236207a8bf92873d7927dd0c9f626", "score": "0.54954123", "text": "private void parse() {\n this.state = State.COMMAND_NAME;\n\n String cmdName = name(true);\n for (; counter < toParse.length();) {\n argument();\n }\n\n finalizeParsing();\n }", "title": "" }, { "docid": "94ad5ffca11eb5c7daf2304d4af3b776", "score": "0.54910207", "text": "Integer[] splitCommandArgs(String[] strArgs);", "title": "" }, { "docid": "cf3d3d4dc2d9a36f7df5a9d7bee2f924", "score": "0.5489419", "text": "public static void main(String[] args) {\n int num1=Integer.parseInt(args[0]); //parseint convert string nto integer\n int num2=Integer.parseInt(args[1]);\n int sum=num1+num2;\n System.out.println(\"sum of number through command line argument\"+sum);\n \n }", "title": "" }, { "docid": "ff8a62a0838d9f499a401265731267cf", "score": "0.5487426", "text": "public String processArgs(String[] args) throws Exception {\r\n int i = 0, j;\r\n String arg;\r\n char flag;\r\n boolean vflag = false;\r\n String outputfile = \"\";\r\n\tString readFromFile = null;\r\n\t\r\n\ttry {\r\n\t\t while (i < args.length && args[i].startsWith(\"-\")) {\r\n\t arg = args[i++];\r\n\r\n\t if (arg.equals(\"-verbose\")) {\r\n\t System.out.println(\"verbose mode on\");\r\n\t vflag = true;\r\n\t } \r\n\t\t\r\n\t\t\tif (args[0].equals(\"-f\")) {\r\n\t\t\t\tlogger.info(\"reading VIVO URI's from file \" + args[1]);\r\n\t\t\t\treadFromFile = args[1];\r\n\t\t\t}\r\n\t\t\t\r\n else if (arg.equals(\"-output\")) {\r\n if (i < args.length)\r\n outputfile = args[i++];\r\n else\r\n System.err.println(\"-output requires a filename\");\r\n if (vflag)\r\n System.out.println(\"output file = \" + outputfile);\r\n }\r\n\t\t\t\r\n\t\t\t//if (args[2].equals(\"-u\")) {\r\n\t\t\t//\tlogger.info(\"reading HRIS person URI's from file \" + args[3]);\r\n\t\t\t//\treadFromFile = args[3];\r\n\t\t\t//}\r\n\t\t}\r\n\t} catch (Exception e) { \r\n\t\tlogger.error(\"exception reading args! Error\" + e);\r\n\t\tthrow e; \r\n\t} finally {\r\n\t\t//logger.debug(\"created new model...\");\r\n\t\r\n\t}\r\n\treturn readFromFile;\r\n}", "title": "" } ]
e11ba128e4808f523d92ac94c0f07ad6
To loop through a directory to process all files
[ { "docid": "5f7f362f89f0a5428e61bdae83f57739", "score": "0.0", "text": "public static void showFiles(File[] files) throws IOException {\r\n\t for (File file : files) {\r\n\t if (file.isDirectory()) {\r\n\t System.out.println(\"Directory: \" + file.getName());\r\n\t showFiles(file.listFiles());\r\n\t } else {\r\n\t \tcombineClassAndAPI(file.getName());\r\n\t }\r\n\t }\r\n\t}", "title": "" } ]
[ { "docid": "dbcaf2ccb289d4f60cf76649e7565107", "score": "0.79408646", "text": "private static void loopThrough(final File dir) throws Exception {\n\t\tassert dir.isDirectory() : \"Logic error: not a directory\";\n\t\tFile[] files = dir.listFiles(new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\treturn name != null && name.endsWith(\".txt\");\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tArrays.sort(files);\n\t\tfor (File f : files) {\n\t\t\tprocessFile(f);\n\t\t}\n\t}", "title": "" }, { "docid": "1795c555fafec7c055e93ff56d28c46b", "score": "0.7619379", "text": "protected void visitAllFiles(File dir, String nametag) throws IOException {\r\n if (dir.isDirectory()) {\r\n String[] children = dir.list();\r\n for (int i=0; i<children.length; i++) {\r\n visitAllFiles(new File(dir, children[i]),nametag);\r\n }\r\n } else {\r\n process(dir,nametag);\r\n }\r\n }", "title": "" }, { "docid": "7f1dafbd16d274bdc220efe0c4d76186", "score": "0.7314723", "text": "private void scanForFilesInDir() throws Exception {\n while (currentDirectoryIndex < directories.size()) {\n try {\n Thread.sleep(200);\n } catch(InterruptedException e) {\n Log.e(TAG, \"Error... \" + e);\n }\n if (isPaused || stopScanService) {\n break;\n }\n\n File dir = (File) directories.toArray()[currentDirectoryIndex];\n Log.d(TAG, \"Scanning for files inside \" + dir.getName() + \" directory\");\n Collection<File> files = FileUtils.listFiles(dir, null, false);\n Log.d(TAG, files.size() + \" files found.....\");\n scanResultModel.addFilesAndCompute(files);\n directoryProcessedCount += 1;\n sendCurrentProgress(scanResultModel);\n currentDirectoryIndex++;\n }\n }", "title": "" }, { "docid": "050e49c6b5b88e1e1ef7004572058802", "score": "0.6950565", "text": "public void ProcessFiles(String inputFolder) {\n\t\tFile dir = new File(inputFolder);\n\t File[] children = dir.listFiles();\n\t if (children == null) {\n\t \tSystem.out.println(\"Either dir does not exist or is not a directory!\");\n\t } else {\n\t for (int i = 0; i < children.length; i++) {\n\t String filename = children[i].getPath();\n\t System.out.println(i + \" th: \" + filename + \" is completed!\");\n\t try {\n\t\t\t\t\tprocessSingleLogFile(filename);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t }\n\t processExpiredSessions(Long.MAX_VALUE);\n\t }\n\t}", "title": "" }, { "docid": "75df711024edb2378e0fe8a1c9674107", "score": "0.691439", "text": "void processFiles(String filePath);", "title": "" }, { "docid": "79be82c9b11a56d68ddd4b74c674bfcf", "score": "0.6818157", "text": "public void parseFiles() throws Exception {\n File dir = new File(new FtpUtil().getLocalDirWithoutMakeDir());\r\n \r\n File[] files = dir.listFiles();\r\n if (files == null || files.length == 0) {\r\n logger.info(\"目录\" + new FtpUtil().getLocalDir() + \"没有需要分析的文件\");\r\n return;\r\n }\r\n File f;\r\n for (int i = 0; i < files.length; i++) {\r\n f = files[i];\r\n if (f.isDirectory()) {\r\n continue;\r\n }\r\n this.parseFile(f.getName());\r\n }\r\n }", "title": "" }, { "docid": "0e37f30bbe7a381748e81205a02f4c2e", "score": "0.6734517", "text": "private void processCurrentDir() throws IOException {\n List<File> files = Files.list(Paths.get(inputDir))\n .filter(Files::isRegularFile)\n .filter(path -> path.toString().endsWith(\".xml\"))\n .map(Path::toFile)\n .collect(Collectors.toList());\n\n for (File currFile : files) {\n if (isValid(currFile.getName())) {\n doProcess(currFile.getName());\n } else {\n System.out.println(\"Bad input - \" + currFile.getName() + \" - \" + getCurrentDate());\n }\n }\n }", "title": "" }, { "docid": "d4e1fbe7fda97077da8fe522e565d8ad", "score": "0.66424114", "text": "private void pollForFiles() {\r\n for (File file : dir.listFiles()) {\r\n if (file.isFile() && !openFiles.contains(file)) {\r\n processFile(file);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "4cdb7892ebdfb88a94276710bf2d3d5e", "score": "0.6641909", "text": "public void enumerate(File directory) throws InterruptedException\n\t{\n\t\tFile[] files = directory.listFiles();\n\t\tfor (File file : files)\n\t\t{\n\t\t\tif (file.isDirectory())\n\t\t\t\tenumerate(file);\n\t\t\telse\n\t\t\t\tqueue.put(file);\n\t\t}\n\t}", "title": "" }, { "docid": "6022525d2dc8533acc3057d086538f9a", "score": "0.66399", "text": "public void processFolder(File inputDir) {\n String configString = null;\n String dataString = null;\n try {\n configString =\n Files.lines(Paths.get(inputDir.getAbsolutePath(), Properties.CONFIG_FILE_NAME))\n .collect(Collectors.joining());\n dataString =\n Files.lines(Paths.get(inputDir.getAbsolutePath(), Properties.DATA_FILE_NAME))\n .collect(Collectors.joining());\n } catch (IOException e) {\n e.printStackTrace();\n logger.log(Level.SEVERE,\"Exception in reading one of the config files in json. Exiting ...\");\n System.exit(1);\n }\n JsonObject config = jsonParser.parse(configString).getAsJsonObject();\n JsonObject data = jsonParser.parse(dataString).getAsJsonObject();\n\n String fields = config.get(\"train.feature.ngram.extractionFields\").getAsString();\n String esIndex = config.get(\"index.indexName\").getAsString();\n String classNumber = data.get(\"numClassesInModel\").getAsString();\n\n\n // run a loop for all the json files. Call processFile() for every file\n List<File> allFiles= null;\n try {\n allFiles = DirWalker.getFiles(inputDir.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (File jsonReport : allFiles) {\n\n /* Ignoring all files other than \"report*.json\" */\n String fileName = jsonReport.getName();\n if ( ! fileName.endsWith(\".json\"))\n continue;\n if ( ! fileName.startsWith(\"report\"))\n continue;\n logger.info(\"processing file \"+jsonReport.getName());\n processFile(jsonReport, esIndex, fields);\n }\n }", "title": "" }, { "docid": "bd43fec02c384de1fe38560ad9920b5c", "score": "0.6601522", "text": "private void scanDirectory(File directory)\n {\n if(directory != null)\n {\n File[] filesList = directory.listFiles(); // list the files within that directory.\n\n // make sure that the list of files exists and also ensure that there is at least one item in that directory before trying to extract anything from it.\n if(filesList != null && filesList.length > 0)\n {\n // for each file in the filesList, check if it is a directory or if it is a file.\n for(File file: filesList)\n {\n if(file.isDirectory())\n {\n scanDirectory(file); // recursively loop back to this method and take the new file and search for songs within it\n }\n else // file is not a directory meaning it could be a song. Send to the add SongToList method to determine if that is something that we want to do or not.\n {\n addSongToList(file, directory); // send in the current file, and also send in the last directory received by the method to add that directory to the list of folders.\n }\n }\n }\n }\n }", "title": "" }, { "docid": "24120aa232622af41c767663ca1c08b6", "score": "0.6488807", "text": "private void loadDir(File dir)\r\n\t{\r\n\t\tfor(Object file : FileUtils.listFiles(dir, new String[] { \"xml\" }, false))\r\n\t\t{\r\n\t\t\tloadFile((File) file);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f7003baf95aa6cb6160d5c0e80db5a58", "score": "0.64624614", "text": "public static void process_all_POs(String directory_path) throws Exception\n\t{\n\t\tFile directory = new File(directory_path);\n\t\tFile[] files = directory.listFiles();\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor(File file : files)\n\t\t{\n\t\t\tif (file.getAbsolutePath().contains(\".xml\"))\n\t\t\t{\n\t\t\t\tlist.add(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Store itemNumber, quantity in the map (merge all PO's into one -> group by itemNumber in map)\n\t\tHashMap<String, Integer> map_number_quantity = new HashMap<String, Integer>();\n\t\tfor(String filepath : list)\n\t\t{\n\t\t\tmerge_POs_into_One(filepath, map_number_quantity);\n\t\t}\n\n\t\t//After merge, order everything required\n\t\torder_all(map_number_quantity);\n\t\t\n\t\t\n\t\t//put the files into /processed folder\n\t\tFile processed_dir = new File(directory_path+\"/processed\");\n\t\tif (!processed_dir.exists()) processed_dir.mkdir();\n\n\t\tfor(File file : files)\n\t\t{\n\t\t\tif (file.getAbsolutePath().contains(\".xml\"))\n\t\t\t{\n\t\t\t\tfile.renameTo(new File(processed_dir.getAbsolutePath()+\"/\"+file.getName()));\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "76dd1a3dbe0d549bb72fd31d9cbfadcd", "score": "0.64363486", "text": "private void walkDir(File dir) {\n walkDir(dir, Collections.singletonList(pdfExtension));\n }", "title": "" }, { "docid": "f92f08e92b720e0011931b3e279c8be3", "score": "0.6401853", "text": "public List<FileInfo> scanDirectory();", "title": "" }, { "docid": "5e811cf47df2dbc0b1535b0214f19de6", "score": "0.63612247", "text": "protected void scanDirectory()\n {\n if (System.currentTimeMillis() - scanIntervalMillis >= lastScanMillis) {\n Set<Path> newPaths = scanner.scan(fs, filePath, processedFiles);\n\n for (Path newPath : newPaths) {\n try {\n FileStatus fileStatus = fs.getFileStatus(newPath);\n if (fileStatus.isDirectory()) {\n checkVisitedDirectory(newPath);\n } else {\n String newPathString = newPath.toString();\n pendingFiles.add(newPathString);\n processedFiles.add(newPathString);\n localProcessedFileCount.increment();\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n lastScanMillis = System.currentTimeMillis();\n }\n }", "title": "" }, { "docid": "98d669fb2f7e3fc8d162816966d8c2ca", "score": "0.63430166", "text": "public void scanFolder(){\n\t\tHashSet<String> knownFilesCopy = (HashSet<String>) knownFiles.clone();\n\t\tFile dir = new File(this.path);\n\t\tString [] fileList = dir.list(this.filter);\n\t\t\n\t\tfor(String s : fileList){\n\t\t\tif(!this.knownFiles.contains(s)){\n\t\t\t\tthis.fireFileAdded(s);\n\t\t\t\tthis.knownFiles.add(s);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tknownFilesCopy.remove(s);\n\t\t\t}\n\t\t}\n\t\tfor(String s : knownFilesCopy){\n\t\t\tthis.fireFileRemoved(s);\n\t\t\tknownFiles.remove(s);\n\t\t}\n\t}", "title": "" }, { "docid": "dc414be4f20a3c94b237ee78bd6d797c", "score": "0.6317119", "text": "@Given(\"^I want to traverse a folder \\\"([^\\\"]*)\\\" for files$\")\r\n\tpublic void i_want_to_traverse_a_folder_for_files(String directory) throws Throwable {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tlogger.info(\"Start of Directory Traversal: \" + directory);\r\n\t\t\tfileReadHelper = new fileReaderImpl(directory);\r\n\t\t\tfileList = fileReadHelper.traverseDirectory();\r\n\t\t\tlogger.info(fileList.length + \" files found\");\r\n\t\t\t\r\n\t\t} catch (Exception excep) {\r\n\t\t\tlogger.log(Level.SEVERE, excep.getMessage(), excep);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd3f2a6ff0c761ec869cdf75818142d9", "score": "0.6299215", "text": "public void process() throws Exception {\n // Insert main algorithm for MusicCrawler\n\n File dir = new File(folderDir);\n File[] fileNames = dir.listFiles();\n System.out.println(\"No. of MP3 files in this directory: \" + fileNames.length);\n\n for (int i = 0; i < fileNames.length; i++) {\n File file = fileNames[i];\n\n //System.out.println(\"i+1 = \" + (i+1));\n //System.out.println(\"fileNames.length = \" + fileNames.length);\n\n if ((i + 1) == fileNames.length) {\n System.out.println(\"wuahahahahaha\");\n\n if ((file.toString()).endsWith(\".mp3\") || (file.toString()).endsWith(\".Mp3\")\n || (file.toString()).endsWith(\".MP3\")) {\n // System.out.println(file);\n output(file);\n }\n output(EOF);\n }\n\n if ((file.toString()).endsWith(\".mp3\") || (file.toString()).endsWith(\".Mp3\") || (file.toString())\n .endsWith(\".MP3\")) {\n// System.out.println(file);\n output(file);\n }\n }\n }", "title": "" }, { "docid": "2b266663aed4233bf3f64b4a01dd47b5", "score": "0.62678367", "text": "void process(List<String> directories);", "title": "" }, { "docid": "d4ddf754306f5a8e65761ee2a832e80d", "score": "0.62417865", "text": "public List<File> scan(File directory) throws IOException {\r\n return Files.walk(Paths.get(directory.toString()))\r\n .map((path) -> path.toFile())\r\n .collect(Collectors.toList());\r\n }", "title": "" }, { "docid": "25dd5bc7e7ff406b8b475655a2d6f294", "score": "0.6225767", "text": "public void readDir(File dir) {\n if (forceStop) return;\n\n if (!dir.exists()) {\n throw new IllegalArgumentException(\"archive path does not exists: \" + dir.getAbsolutePath());\n }\n File[] directoryListing = dir.listFiles();\n if (directoryListing != null) {\n archiveReaderCallback.processDirChanged(dir);\n for (File child : directoryListing) {\n if (forceStop) break;\n readDir(child);\n }\n } else {\n archiveReaderCallback.processFileContent(this, dir);\n }\n }", "title": "" }, { "docid": "7e28158b7a41ac1129b94c21c0ce40b2", "score": "0.62201214", "text": "public void doProcess() {\r\n ExecutorService executorService = null;\r\n try {\r\n executorService = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\r\n\r\n List<FileProcessorTask> fileTaskList = new ArrayList<>();\r\n\r\n if (processorConfiguration.getInput().exists() && processorConfiguration.getInput().isDirectory()) {\r\n Arrays.stream(processorConfiguration.getInput().listFiles()).forEach(file -> {\r\n if (file.isFile()) {\r\n fileTaskList.add(new FileProcessorTask(processorConfiguration, file));\r\n }\r\n });\r\n }\r\n\r\n List<Future<String>> results = executorService.invokeAll(fileTaskList);\r\n\r\n //handle results\r\n results.forEach(result -> {\r\n printResults(result);\r\n });\r\n }\r\n catch (InterruptedException e) {\r\n //TODO handle exception\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (executorService != null) {\r\n executorService.shutdown();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "538d4c5f84a0982e2c70f60bf639be53", "score": "0.6217847", "text": "private static void enumerateFiles(java.util.Vector out, String dir, int deepCounter, int howDeep, BooleanWrapper check, int threadRest, int restMillis) throws InterruptedException, IOException {\n deepCounter++;\n if(howDeep>=0&&deepCounter>howDeep){\n return;\n }\n java.io.File f = new java.io.File(dir);\n if(!f.isDirectory()){\n throw new IllegalArgumentException(\"The given directory \"+dir+\" is not a valid directory.\");\n }\n java.io.File[] files = f.listFiles();\n java.util.Arrays.sort(files);\n for(int i = 0; !check.getValue()&&files!=null&&i<files.length;i++){\n if(threadRest!=0&&i%threadRest==0){\n Thread.sleep(0, restMillis);\n }\n out.add(files[i].getAbsoluteFile().getCanonicalPath());\n if(files[i].isDirectory()){\n enumerateFiles(out, files[i].getAbsoluteFile().getCanonicalPath(), (deepCounter), howDeep, check, threadRest, restMillis);\n }\n }\n }", "title": "" }, { "docid": "30256f69a48ba037122245f1d6cbcbca", "score": "0.621177", "text": "public static void init(File directory){\n\t\tfor(File file : directory.listFiles()){\n\t\t\tadd(file);\n\t\t}\n\t}", "title": "" }, { "docid": "8ffca48eb42b8385209018ceb491e319", "score": "0.62059605", "text": "@Override\n public void scan() throws IOException {\n Set<String> resources = new HashSet<>();\n for (Path path: getClassPath()) {\n String pathString = path.toString();\n List<String> resourcesList = new ArrayList<>();\n BasicFileAttributes pathAttr = Files.readAttributes(path, BasicFileAttributes.class);\n if (pathAttr.isRegularFile() && pathString.endsWith(\".jar\")) {\n scanJar(path, resources, resourcesList);\n } else if (pathAttr.isDirectory()) {\n scanFolder(path, resources, resourcesList);\n }\n Collections.sort(resourcesList);\n for(String resource:resourcesList) {\n produce(ResourceScript.create(classLoader, resource));\n }\n }\n }", "title": "" }, { "docid": "b27b9a8f9491a6d743dcf55b6ce6b51a", "score": "0.6203783", "text": "private void scanDir(String pDir){\n try{\n String[] files = new File(pDir).list();\n for(int i=0; i < files.length; i++){\n if (!(new File(pDir+\"\\\\\"+files[i])).isDirectory()){//file\n if (files[i].indexOf(\".plt\") > 0 || files[i].indexOf(\".kml\") > 0 || files[i].indexOf(\".gpx\") > 0){\n log(\"Start to scan track \"+files[i]);\n scanTrack(pDir+\"\\\\\"+files[i]);\n }else{\n log(files[i]+\" was skipped.\");\n }\n\n }\n else{//directory\n scanDir(pDir+\"\\\\\"+files[i]);\n }\n }\n //Show result\n log(\"Founded tracks count:\" + foundedTracks.size());\n }\n catch(NullPointerException e){\n log(\"Directory \"+pDir+\" not found!\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9727398153fe84f2ff12f8dd4d7438a9", "score": "0.6193161", "text": "private void search(File folder) {\n\tFile children[] = folder.listFiles();\n\n\t// update count\n\tcount += children.length; // add now, or after? best: as-i-go.\n\n\t// test each file in this folder\n\tfor (int i=0; i<children.length; i++) {\n\t if (children[i].isDirectory()) {\n\t\tsearch(children[i]);\n\t } else {\n\t\ttestFile(children[i]);\n\t }\n\t}\n }", "title": "" }, { "docid": "d94d2a8856db45b00a09ef7c25a48775", "score": "0.6138341", "text": "public static void getAllFiles(File dir){\n File[] files = dir.listFiles();\n for (File file : files) {\n if(file.isDirectory()){\n getAllFiles(file);\n }else{\n /**\n *只要.java结尾的文件\n * 1.把file对象转换为字符串对象\n * 2.调用String类中的方法endsWith判断字符串是否以.java结尾\n * */\n String fileName = file.getName();\n fileName = fileName.toLowerCase();//转换为小写\n if(fileName.endsWith(\".java\")){\n System.out.println(\"file = \" + file);\n }\n }\n }\n }", "title": "" }, { "docid": "d95c52c6e407d8d641644f8dc4b53cde", "score": "0.6135731", "text": "public void processAllFeatureManifests(File featuresDir) throws IOException {\r\n\t\tfor (File dir : featuresDir.listFiles()) {\r\n\t\t\tFile file = new File(dir, \"feature.xml\");\r\n\t\t\tif (file.exists())\r\n\t\t\t\tprocess(file);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0ca88ba814d1d83860d45fae18b3cc9d", "score": "0.6110826", "text": "public static void listAllFiles(String directory) \r\n {\r\n File directoryFile = new File(directory);\r\n File[] contents = directoryFile.listFiles();\r\n for (int i = 0; i < contents.length; i++)\r\n {\r\n //lists the path of each file in the directory\r\n System.out.println(contents[i].getAbsolutePath());\r\n }\r\n \r\n }", "title": "" }, { "docid": "d9513f979521fabb3077f3651984c7f6", "score": "0.6101237", "text": "public void listFilesForFolder(final File folder) {\n if (!folder.exists()) {\n throw new IllegalArgumentException(\"The folder \" + folder + \" doesn't exist\");\n }\n for (final File fileEntry : folder.listFiles()) {\n if (fileEntry.isDirectory()) {\n if (fileEntry.canRead()) {\n listFilesForFolder(fileEntry);\n }\n } else {\n this.toExecute.add(fileEntry.getAbsolutePath());\n }\n }\n }", "title": "" }, { "docid": "697dab5ea95797d0a6dc8c28ff68f15c", "score": "0.6081508", "text": "private static void processFolder(String folderName){\n\t\tString[] javaClassFilesNames = FileServer.listFolderContents(folderName,\".class\");\r\n\t\t\r\n\t\t// for each file, dump out \r\n\t\tfor (int i = 0; i < javaClassFilesNames.length; i++) {\r\n\t\t\tString fileDetails = javaClassFilesNames[i];\r\n\t\t\texportJavaFileMethodNames(folderName+fileDetails);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e5dc0de2801398fee5e558d1f2ef71b2", "score": "0.60675234", "text": "protected void visitDirectory(Path filePath)\n {\n }", "title": "" }, { "docid": "7dcb075420a57b7f6b324bbc19d5be24", "score": "0.6065579", "text": "protected void getAllDirectories(File dir, String trainFileName, String testFileName) {\n\t\tFile[] dirFiles = dir.listFiles();\n\t\tArrays.sort(dirFiles);\n\n\t\tBufferedWriter writer = null;\n\n\t\ttry {\n\t\t this.writer = new BufferedWriter(new FileWriter(trainFileName));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t System.out.println(\"\\nCould not open POSTaggedFile: \" + null);\n\t\t System.exit(1);\n\t\t}\n\n\t\tfor(int i = 0; i < dirFiles.length ; i++){\n\n\t\t\tif(!dirFiles[i].getName().startsWith(\".\")){\n\t\t\t\tthis.writebrown_test = false;\n\t\t\t\tthis.count = 0;\n\t\t\t\tSystem.out.println(dirFiles[i] + \"\\n\");\n\t\t\t\tgetAllFiles(dirFiles[i], trainFileName, testFileName);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ce3effe9ea25e921870889c263cb36e0", "score": "0.6062276", "text": "private void scanDirectory(File directory) {\n if (cancel) {\n \tLog.d(\"\",\"w23001-Scan aborted\");\n clearData();\n return;\n }\n File[] files = directory.listFiles();\n if (files != null) {\n for (File currentFile : files) {\n if (cancel) {\n clearData();\n return;\n }\n if (currentFile.isDirectory()) {\n if (currentFile.getName().indexOf(mFilterString) >= 0) {\n mDirList.add(IconifiedText.buildIconItem(mContext, currentFile));\n }\n scanDirectory(currentFile);\n } else {\n if (currentFile.getName().indexOf(mFilterString) >= 0) {\n mFileList.add(IconifiedText.buildIconItem(mContext, currentFile));\n }\n }\n }\n }\n }", "title": "" }, { "docid": "65f2a45f85ea9c3e2398124f2879a3e3", "score": "0.6061143", "text": "void processEvents() {\n\t\ttry {\n\t\t\tfor (;;) {\n\n\t\t\t\t// wait for key to be signalled\n\t\t\t\tWatchKey key;\n\t\t\t\ttry {\n\t\t\t\t\tkey = watcher.take();\n\t\t\t\t} catch (InterruptedException x) {\n\t\t\t\t\tConnectionHandler.logError(x);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tPath dir = keys.get(key);\n\t\t\t\tif (dir == null) {\n\t\t\t\t\tSystem.err.println(\"WatchKey not recognized!!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (WatchEvent<?> event : key.pollEvents()) {\n\t\t\t\t\tWatchEvent.Kind kind = event.kind();\n\n\t\t\t\t\t// TBD - provide example of how OVERFLOW event is handled\n\t\t\t\t\tif (kind == OVERFLOW) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Context for directory entry event is the file name of\n\t\t\t\t\t// entry\n\t\t\t\t\tWatchEvent<Path> ev = cast(event);\n\t\t\t\t\tPath name = ev.context();\n\t\t\t\t\tPath child = dir.resolve(name);\n\t\t\t\t\tSystem.out.println(\"Doing run: \" + child.toString());\n\n\t\t\t\t\tdoRun(child);\n\n\t\t\t\t\t// print out event\n\t\t\t\t\tSystem.out.format(\"%s: %s\\n\", event.kind().name(), child);\n\n\t\t\t\t\t// if directory is created, and watching recursively, then\n\t\t\t\t\t// register it and its sub-directories\n\t\t\t\t\tif (recursive && (kind == ENTRY_CREATE)) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (Files.isDirectory(child, NOFOLLOW_LINKS)) {\n\t\t\t\t\t\t\t\tregisterAll(child);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException x) {\n\t\t\t\t\t\t\t// ignore to keep sample readbale\n\t\t\t\t\t\t\t// ConnectionHandler.logError(x);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// reset key and remove from set if directory no longer\n\t\t\t\t// accessible\n\t\t\t\tboolean valid = key.reset();\n\t\t\t\tif (!valid) {\n\t\t\t\t\tkeys.remove(key);\n\n\t\t\t\t\t// all directories are inaccessible\n\t\t\t\t\tif (keys.isEmpty()) {\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} catch (Exception e) {\n\t\t\tConnectionHandler.logError(e);\n\t\t}\n\t}", "title": "" }, { "docid": "1ec6d7f5792f1adb6b2b33225af75f6e", "score": "0.6054533", "text": "private void initListFiles(String dir) {\n Path path = new File(dir).toPath();\n try (DirectoryStream<Path> entries = Files.newDirectoryStream(path)) {\n for (Path entry : entries) {\n System.out.println(entry.getFileName().toString());\n if (entry.toFile().isFile()) {\n listFiles.add(entry.getFileName().toString());\n }\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "b8930b9d2636793291594b32df58d0da", "score": "0.60413027", "text": "@Override\n\t\t\tpublic FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}", "title": "" }, { "docid": "f07c2ff1a566c48d36d3d641d52a952a", "score": "0.603306", "text": "private void walkDir(File dir, List<String> extensions) {\n File[] listFile = dir.listFiles();\n if (listFile != null) {\n for (File aListFile : listFile) {\n\n if (aListFile.isDirectory()) {\n walkDir(aListFile, extensions);\n } else {\n for (String extension : extensions) {\n if (aListFile.getName().endsWith(extension)) {\n //Do what ever u want\n mFilePaths.add(aListFile.getAbsolutePath());\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "01d0f5efdf5a088283c7c214b9fa6c5f", "score": "0.6017109", "text": "public void run(){\n\n\t\tHashSet<Path> forUpdate = new HashSet<>();\n\t\tboolean initial = true;\n\t\t// main watch loop, that checks for files\n\t\tCollection<FileChangeEntry<MyContext>> changed = null;\n\t\ttry {\n\t\t\twhile(!Thread.interrupted()){\n\t\t\t\t\n\t\t\t\tchanged = folderWatcher.takeBatch(opts.burstDelay);\n\t\t\t\tif(changed == null) {\n\t\t\t\t\tinitial = false;\n\t\t\t\t\tbreak; // interrupted\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (FileChangeEntry<MyContext> fileChangeEntry: changed) {\n\t\t\t\t\tif(fileChangeEntry.getMatcher().getContext().isForCompile())\n\t\t\t\t\t\tforUpdate.add(forCompileGlob.relativize(fileChangeEntry.getPath()));\n\t\t\t\t\telse{\n\t\t\t\t\t\tif(hr.hrg.javawatcher.Main.isInfoEnabled())\n\t\t\t\t\t\t\thr.hrg.javawatcher.Main.logInfo(\"Include changed, adding all input SCSS to recompile queue (\"+fileChangeEntry.getPath()+\")\");\n\t\t\t\t\t\tforUpdate.addAll(inputFiles);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (Path p : forUpdate){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tprocessFile(p, initial);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\thr.hrg.javawatcher.Main.logError(\"error processing path \"+p.toAbsolutePath(),e);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\tinitial = false;\n\t\t\t\tforUpdate.clear();\n\t\t\t}\t\t\n\t\t} finally {\n\t\t\tfolderWatcher.close();\n\t\t}\n\t}", "title": "" }, { "docid": "59da15afe6aa30904cb562c3839455bc", "score": "0.60136986", "text": "@Override\n\tpublic void run() {\n\t\tFile f = new File(initPath);\n\t\tif(f.isDirectory()){\n\t\t\ttry{\n\t\t\t\tdirectoryProcess(f);\n\t\t\t}catch(InterruptedException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.printf(\"%s: The search has been interrupted\", Thread.currentThread().getName());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5db74f965ad0ae11ae4849defd21a44f", "score": "0.5990944", "text": "private void getallImages(String directory) throws IOException {\n File d = new File(directory);\n\n if (!d.exists()) {\n throw new IOException(directory + \" does not exist!\");\n }\n\n if (!d.isDirectory()) {\n throw new IOException(directory + \" is not a directory!\");\n }\n\n for (File f : d.listFiles()) {\n if (f.isDirectory()) {\n\n String mainFolder = directory + \"/\" + f.getName();\n System.out.println(mainFolder);\n //Load all images\n String imageFolder = mainFolder + \"/images\";\n getImages(imageFolder);\n }\n }\n }", "title": "" }, { "docid": "dcf53fc45c150ff68bac58f270279037", "score": "0.59898126", "text": "@Override\n\tpublic List<File> getFiles(File directory) {\n\t\t\n\t\t// TODO Auto-generated method stu\n String[] childFiles = directory.list();\n List<File> childFilesList = new ArrayList(); \n \n for(String child: childFiles)\n {\n \tFile childFile = new File(child);\n \tchildFilesList.add(childFile);\n }\n\t\treturn childFilesList;\t\t\n\t}", "title": "" }, { "docid": "14f2e0e8fbc37325cec67d0305aa57f0", "score": "0.5983274", "text": "public static ArrayList<File> getAllFiles(String dir) throws IOException{\r\n ArrayList<File> list = new ArrayList<>();\r\n Files.walk(Paths.get(dir)).filter(Files::isRegularFile).forEach((n)->list.add(n.toFile()));\r\n return list;\r\n }", "title": "" }, { "docid": "229b8704b381a1ff691e369557e961fb", "score": "0.5969757", "text": "public void indexDirectory(String dir) throws Exception\n\t{\n\t\tString[] files = VFSManager.getFileVFS()\n\t\t\t._listDirectory(null,dir,\"*.{html,txt}\",true,null);\n\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tindexURL(files[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "b8f0b4b2cf81382b94a66508d2f5cd38", "score": "0.5938653", "text": "public void index(File baseDir) throws IOException, ParseException {\n for(ArcHarvestFileDTO ahf: arcFiles) {\n this.getResources().putAll(ahf.index(baseDir));\n }\n }", "title": "" }, { "docid": "223bcdc7571d6fd858cb4b5ba01c31da", "score": "0.59362596", "text": "public void forAllFiles(BiConsumer<Path, FileNode> nodeConsumer) {\n files.forEach(nodeConsumer::accept);\n children.forEach((key, value) -> value.forAllFiles(nodeConsumer));\n }", "title": "" }, { "docid": "57d6546254c1b23f74e1b2ce81961414", "score": "0.5934807", "text": "private void countAllFiles(File f){\n\t\t if(f.isDirectory()){ //if folder, look for files\n\t\t\t for(File sub:f.listFiles()){\n\t\t\t\t countAllFiles(sub);\n\t\t\t }\n\t\t }else if(f.isFile() && f.getName().endsWith(\".mp3\")){ //if mp3-file, add to database\n\t\t\tsearchedFiles++;\n\t\t }\n\t}", "title": "" }, { "docid": "12204965affb2da0b1323887e14f0fee", "score": "0.5927445", "text": "@Override\n public void explore(File rootDirectory, IFileVisitor visitor) {\n visitor.visit(rootDirectory);\n\n //If the file doesn't exist, we're getting out...\n if (!rootDirectory.exists())\n return;\n \n /* DFS */\n \n File[] childFiles = rootDirectory.listFiles();\n //Sort the array to make sure to always get the same order...\n Arrays.sort(childFiles);\n\n // we have to check first all the files then the directories\n for (File childFile : childFiles) {\n if (childFile.isFile()) {\n visitor.visit(childFile);\n }\n }\n\n //Explore each subdirectories...\n for (File childFile : childFiles) {\n if (childFile.isDirectory()) {\n explore(childFile, visitor);\n }\n }\n }", "title": "" }, { "docid": "5b0bfce0537afa30003aa6fd0def39da", "score": "0.5924574", "text": "public void recurseDir(ArrayList<File> a, String dir) {\n File file = new File(dir);\n if (file.isDirectory()) {\n // If you want to include directories in the list\n a.add(file); \n File[] subfiles = file.listFiles();\n for (int i = 0; i < subfiles.length; i++) {\n // Call this function on all files in this directory\n recurseDir(a,subfiles[i].getAbsolutePath());\n }\n } else {\n a.add(file);\n }\n}", "title": "" }, { "docid": "e86052ee07bffafb99878b10d751c1cd", "score": "0.5922586", "text": "public void iterate(BiConsumer<Path, byte[]> consumer) throws FileNotFoundException, IOException {\n\t\tContracts.requires(consumer, \"consumer\");\n\t\tBiConsumer<Path, byte[]> action = (path, bytes) -> {\n\t\t\tvar cached = entries.get(path.toString());\n\t\t\tif (cached != null) {\n\t\t\t\tconsumer.accept(path, cached);\t\t\t\t\n\t\t\t} else {\n\t\t\t\tconsumer.accept(path, bytes);\n\t\t\t}\n\t\t};\n\n\t\tif (this.isClass) {\n\t\t\tbytecode(root, action);\n\t\t} else if (isDirectory) {\n\t\t\tvar entries = Files.list(root).filter(e -> {\n\t\t\t\treturn e.toString().endsWith(\".class\");\n\t\t\t}).collect(Collectors.toList());\n\t\t\tfor (var entry : entries) {\n\t\t\t\tbytecode(entry, action);\n\t\t\t}\n\t\t} else if (isJar) {\n\t\t\topenJar(root, e -> !e.isDirectory() && e.getName().endsWith(\".class\"), action);\n\t\t}\n\t}", "title": "" }, { "docid": "442c0e945bde28be1c2b875f48f7e3c2", "score": "0.5916561", "text": "public abstract void processFile(String inputDirectory, String inputFileName, String outputDirectory);", "title": "" }, { "docid": "07f37c2730ea2b2b232d61f78cc4253e", "score": "0.5904026", "text": "public void processEvents() {\n\n\t\tfor (boolean check = true; check;) {\n\n\t\t\t// wait for key to be signalled\n\t\t\tWatchKey key;\n\t\t\ttry {\n\t\t\t\tkey = watcher.take();\n\t\t\t} catch (InterruptedException x) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tPath dir = keys.get(key);\n\n\t\t\tfor (WatchEvent<?> event : key.pollEvents()) {\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tWatchEvent.Kind kind = event.kind();\n\n\t\t\t\t// Context for directory entry event is the file name of entry\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tPath name = ((WatchEvent<Path>) event).context();\n\t\t\t\tPath child = dir.resolve(name);\n\n\t\t\t\t// if directory is created, and watching recursively, then register it and its\n\t\t\t\t// sub-directories\n\t\t\t\tif (kind == ENTRY_CREATE) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (Files.isDirectory(child)) {\n\t\t\t\t\t\t\tdirectories(child);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException x) {\n\n\t\t\t\t\t\tSystem.out.println(x.getMessage());\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (child.toString().endsWith(\"input/q.txt\")) {\n\n\t\t\t\t\t\tSystem.out.println(\"q.txt found. Program terminated.\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFiles.move(child, Paths.get(\"/home/regen/git/caseStudyTwo/LetterBatch/resources/archive/\"\n\t\t\t\t\t\t\t\t\t+ child.getFileName()), StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcheck = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (child.toString()\n\t\t\t\t\t\t\t.startsWith(\"/home/regen/git/caseStudyTwo/LetterBatch/resources/input/COMPANY\")\n\t\t\t\t\t\t\t&& child.toString().endsWith(\".txt\")) {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinputFile = new Reader(child);\n\t\t\t\t\t\t\tif (inputFile.isValidFile())\n\t\t\t\t\t\t\t\tinputFile.generateAllLetters();\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFiles.move(child, Paths.get(\n\t\t\t\t\t\t\t\t\t\"/home/regen/git/caseStudyTwo/LetterBatch/resources/error/\" + child.getFileName()),\n\t\t\t\t\t\t\t\t\tStandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// reset key and remove from set if directory no longer accessible\n\t\t\tboolean valid = key.reset();\n\t\t\tif (!valid) {\n\t\t\t\tkeys.remove(key);\n\n\t\t\t\t// all directories are inaccessible\n\t\t\t\tif (keys.isEmpty()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a1038e195684ca8f51ebcd4a4a517bcd", "score": "0.5895385", "text": "public void scanDirectory(File[] dirs) {\n\n int filesRead = 0;\n int propertiesSynced = 0;\n\n for (File currentDir : dirs) {\n logger.info(\"Reading directory: \" + currentDir.getAbsolutePath());\n Iterator<File> fileIterator = FileUtils.iterateFiles(currentDir, null, true);\n while (fileIterator.hasNext()) {\n File currentFile = fileIterator.next();\n if (currentFile.getName().equals(FileType.RDF.toString())) {\n filesRead++;\n String infosourceId = currentFile.getParentFile().getParentFile().getParentFile().getName();\n String infoSourceUid = infoSourceDAO.getUidByInfosourceId(String.valueOf(infosourceId));\n //read the dublin core in the same directory - determine if its an image\n try {\n logger.info(\"Reading file: \" + currentFile.getAbsolutePath());\n FileReader reader = new FileReader(currentFile);\n List<Triple> triples = TurtleUtils.readTurtle(reader);\n //close the reader\n reader.close();\n\n String currentSubject = null;\n List<Triple> splitBySubject = new ArrayList<Triple>();\n\n String guid = null;\n //iterate through triple, splitting the triples by subject\n for (Triple triple : triples) {\n\n if (currentSubject == null) {\n currentSubject = triple.subject;\n } else if (!currentSubject.equals(triple.subject)) {\n //sync these triples\n//\t\t\t\t\t\t\t\t/data/bie/1036/23/235332/rdf\n\n guid = sync(currentFile, splitBySubject, infosourceId, infoSourceUid);\n if (guid != null && guid.trim().length() > 0) {\n propertiesSynced++;\n }\n //clear list\n splitBySubject.clear();\n currentSubject = triple.subject;\n }\n splitBySubject.add(triple);\n }\n\n //sort out the buffer\n if (!splitBySubject.isEmpty()) {\n guid = sync(currentFile, splitBySubject, infosourceId, infoSourceUid);\n if (guid != null && guid.trim().length() > 0) {\n propertiesSynced++;\n }\n }\n\n if (gList && guid != null) {\n guidOut.write((guid + \"\\n\").getBytes());\n }\n\n guidList.add(guid);\n\n } catch (Exception e) {\n logger.error(\"Error reading triples from file: '\" + currentFile.getAbsolutePath() + \"', \" + e.getMessage(), e);\n }\n }\n }\n logger.info(\"InfosourceId: \" + currentDir.getName() + \" - Files read: \" + filesRead + \", files matched: \" + propertiesSynced);\n totalFilesRead += filesRead;\n totalPropertiesSynced += propertiesSynced;\n }\n }", "title": "" }, { "docid": "7fa180b348145163a58c9a8101a178df", "score": "0.58950573", "text": "private void build(File directory) {\n File[] list = directory.listFiles();\n if (list == null) {\n return;\n }\n\n for (File file : list) {\n if (file.isDirectory() && !this.ignoredDirectories.contains(file.getName())) {\n build(file);\n } else {\n if (file.getName().equals(\"map.xml\")) {\n try {\n final MapSource source = getMapFolder(file.getParentFile());\n final AtlasMap map = AtlasMapFactory.parse(source, source.createDocument());\n this.maps.add(map);\n } catch (Exception e) {\n if (e instanceof MatchBuildException || e instanceof XmlException) {\n if (e.getCause() != null) {\n Atlas.get().getMapErrorLogger().warning(\n \"Failed to read XML: \" + file.getPath() + \" \" + e.getCause().getMessage());\n } else {\n Atlas.get().getMapErrorLogger()\n .warning(\"Failed to read XML: \" + file.getPath() + \" \" + e.getMessage());\n }\n } else {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "e83b4d5ef56908a301a4414cd6c04fc3", "score": "0.58878887", "text": "@Override\n\t\tpublic FileVisitResult postVisitDirectory(Path path, IOException exc)\n\t\t\t\tthrows IOException {\n\t\t\t// We continue the folder walk\n\t\t\treturn FileVisitResult.CONTINUE;\n\t\t}", "title": "" }, { "docid": "83d815b9decced8f72b3ca04d11a3a87", "score": "0.5883091", "text": "@Override\n\tpublic void listFilesForFolder() {\n\n\t}", "title": "" }, { "docid": "38bb08fc3ec3a62e06561651bcbbc853", "score": "0.5829068", "text": "@Override\n\tpublic void registerAll(final Path startDir) throws IOException {\n\t\tlogger.info(\"Scanning \" + startDir + \" ...\");\n\n\t\t// register directory and sub-directories\n\t\tFiles.walkFileTree(startDir, new SimpleFileVisitor<Path>() {\n\t\t\t@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tlogger.debug(\"Scanning \" + dir + \" ...\");\n\t\t\t\tregister(dir);\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}\n\t\t});\n\t\tlogger.info(\"Done register all path:\" + startDir);\n\t}", "title": "" }, { "docid": "af35d094ef5b4687f44787546d3d3a4f", "score": "0.5803733", "text": "@Override\n public void run() {\n scanInputDirsNow();\n }", "title": "" }, { "docid": "cd02457ccf584f3f5b27ba2579248152", "score": "0.57997274", "text": "public void startProcessingData() {\n\t\tFile cvsDir = new File(\".\", \"src/main/resources/csv\");\n\n\t\tFile[] files = cvsDir.listFiles(new FileFilter() {\n\t\t\tpublic boolean accept(File file) {\n\t\t\t\treturn file.isFile();\n\t\t\t}\n\t\t});\n\n\t\tfor (File file : files) {\n\n\t\t\ttry {\n\t\t\t\tif (file.getName().contains(DAILY_PRICES)) {\n\t\t\t\t\tthis.processDailyPricesFile(file);\n\t\t\t\t} else if (file.getName().contains(DIVIDENDS)) {\n\t\t\t\t\tthis.processDividendsFile(file);\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tlogger.warn(\"Could not process file : \" + file.getAbsolutePath(), e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.warn(\"Could not process file : \" + file.getAbsolutePath(), e);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7ccfed9c7260a325f2d08326673b19b8", "score": "0.57997185", "text": "@Override\n\tprotected List<String> compute() {\n\t\tList<String> list=new ArrayList<>();\n\t\t\n\t\tList<FolderProcessor> tasks=new ArrayList<>();\n\t\tFile file=new File(path);\n\t\tFile content[] = file.listFiles();\n\t\tif(content!=null){\n\t\t\tfor(int i=0;i<content.length;i++){\n\t\t\t\tif(content[i].isDirectory()){\n\t\t\t\t\tFolderProcessor task=new FolderProcessor(content[i].getPath(), extension);\n\t\t\t\t\ttask.fork();\n\t\t\t\t\ttasks.add(task);\n\t\t\t\t}else{\n\t\t\t\t\tif(chedkFile(content[i].getName())){\n\t\t\t\t\t\tlist.add(content[i].getAbsolutePath());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(tasks.size()>50){\n\t\t\tSystem.out.printf(\"%s:%d tasks ran.\\n\",file.getAbsoluteFile(),tasks.size());\n\t\t}\n\t\taddResultsFromTasks(list,tasks);\n\t\treturn list;\n\t}", "title": "" }, { "docid": "b20a5ad40c942f1eb193f8a7679c3dad", "score": "0.5782917", "text": "private void recursiveSearch(Consumer<ProvidedFile> onFileGen, File root){\n if (matcher.isBlacklisted(root.getName())) {\n return;\n }\n\n if (root.isDirectory()) {\n for (File file : Objects.requireNonNull(root.listFiles())) {\n recursiveSearch(onFileGen, file);\n }\n } else {\n onFileGen.accept(parseFile(root));\n }\n return;\n }", "title": "" }, { "docid": "f52034d5094a26e97ab1c976964b03f4", "score": "0.57735026", "text": "@Override\n public FileVisitResult preVisitDirectory(Path currDir, BasicFileAttributes bfa)\n throws IOException\n {\n // nothing to do.\n return FileVisitResult.CONTINUE;\n }", "title": "" }, { "docid": "311aee28a30bd87dba6a206bac7ddebf", "score": "0.57647276", "text": "@Override\n public FileVisitResult preVisitDirectory(Path dir,\n BasicFileAttributes attrs) {\n find(dir);\n return CONTINUE;\n }", "title": "" }, { "docid": "092987b30c23f9faa668f5c2a6d71804", "score": "0.576192", "text": "private void scanDir(File dir, String packageName) throws ClassNotFoundException {\n if (dir.isDirectory()) {\n packageName += dir.getName() + \".\";\n for (File file : dir.listFiles()) {\n this.scanDir(file, packageName);\n }\n } else if (dir.getName().contains(\".class\")) { //file is class\n String className = packageName + dir.getName().replace(\".class\", \"\");\n Class<?> cls = Class.forName(className);\n this.availableClasses.add(cls);\n }\n }", "title": "" }, { "docid": "ae2eee91f9b76dc9fd8ea4d695595a3c", "score": "0.57512134", "text": "private void loadFileList() {\n\n File source = new File(this.sourceDir);\n File[] fileList = source.listFiles();\n\n if (fileList == null) {\n System.exit(0); // in case of no files in directory\n }\n\n Filter dirFilter = new Directory(); // get only the files in the directory\n fileArray = new ArrayList<>(Arrays.asList(fileList));\n fileArray = dirFilter.filterFiles(fileArray);\n }", "title": "" }, { "docid": "3a2106851f0127b0aefe9bb073a2936c", "score": "0.5747571", "text": "private void search(File dir) {\r\n\t\tfor (File f : dir.listFiles()) {\r\n\t\t\tif (f.isDirectory()) {\r\n\t\t\t\tsearch(f);\r\n\t\t\t} else\r\n\t\t\tif (f.isFile()) {\r\n\t\t\t\tString newFile = f.getAbsolutePath().toUpperCase();\r\n\t\t\t\tint idx = newFile.indexOf(root);\r\n\t\t\t\tif (idx >= 0) {\r\n\t\t\t\t\tnewFile = newFile.substring(idx + root.length()).replaceAll(\"\\\\\\\\\", \"/\");\r\n\t\t\t\t\tif (newFile.startsWith(\"/\")) {\r\n\t\t\t\t\t\tnewFile = newFile.substring(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tFile old = files.put(newFile, f);\r\n\t\t\t\t\tif (old != null) {\r\n\t\t\t\t\t\tSystem.err.printf(\"Duplicate filename: %s (%d) and %s (%d)%n\", f.getAbsolutePath(), f.length(), old.getAbsolutePath(), old.length());\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": "e507c02bbfe12fd6bf64bd7c89b58676", "score": "0.5737313", "text": "public static void findAllFiles(File[] listFilesInDir, List<String> allFiles) {\n for (File file : listFilesInDir) {\n if (file.isDirectory()) {\n findAllFiles(Objects.requireNonNull(file.listFiles()), allFiles); // Calls same method again.\n } else {\n String path = file.getAbsolutePath();\n if (path.contains(\".vm\")) {\n allFiles.add(file.getAbsolutePath());\n }\n }\n }\n }", "title": "" }, { "docid": "b2253cdcb3a0cbdb7c0da00685e35d76", "score": "0.5735476", "text": "private File[] fetchFilesInDirectory(String indexFileWithCompletePath) {\n return new File(indexFileWithCompletePath).getParentFile().listFiles();\n }", "title": "" }, { "docid": "da413bb04626d91b97c66be2208da7a5", "score": "0.5734389", "text": "private void readAllPictureFiles(DefaultMutableTreeNode root, File dir,\n\t\t\tPM_ListenerX listener) {\n\n\t\tif (!isPictureDir(dir)) {\n\t\t\treturn;\n\t\t}\n\n\t\tDefaultMutableTreeNode node = new DefaultMutableTreeNode(\n\t\t\t\tnew MyTreeNode(dir.getName(), dir));\n\t\troot.add(node);\n\n\t\tFile[] files = dir.listFiles();\n\t\tArrays.sort(files);\n\t\tint pictures = 0;\n\t\t// are pictures in the dir ?\n\t\tfor (File file : files) {\n\t\t\tif (PM_Utils.isPictureFile(file)) {\n\t\t\t\tpictures++;\n\t\t\t}\n\t\t\tif (isPictureDir(file)) {\n\t\t\t\treadAllPictureFiles(node, file, listener);\n\t\t\t}\n\t\t}\n\t\tif (pictures != 0) {\n\t\t\t((MyTreeNode) node.getUserObject()).setPictures(pictures);\n\t\t\t// add picture count to all parents\n\t\t\tTreeNode tn = node.getParent();\n\t\t\twhile (tn != null) {\n\n\t\t\t\tif (tn instanceof DefaultMutableTreeNode) {\n\t\t\t\t\tObject o = ((DefaultMutableTreeNode) tn).getUserObject();\n\t\t\t\t\tif (o instanceof MyTreeNode) {\n\t\t\t\t\t\tMyTreeNode my = (MyTreeNode) o;\n\t\t\t\t\t\tmy.add(pictures);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttn = tn.getParent();\n\n\t\t\t}\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (node.isLeaf()) {\n\t\t\t\tnode.removeFromParent();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bb808739b81fa7de46670d05499582ee", "score": "0.57301605", "text": "private static String[] listAllFiles(String dir, String pattern) {\n logger.debug(\"List ALL Intermediate files in \" + dir);\n File file = new File(dir);\n if (file.exists()) {\n IntermediateFileFilter iff = new IntermediateFileFilter(pattern);\n String[] files = file.list(iff);\n Arrays.sort(files, new Comparator<String>() {\n public int compare(String f1, String f2) {\n return f1.compareTo(f2);\n }\n });\n return files;\n }\n return new String[0];\n }", "title": "" }, { "docid": "265b3588876ca0ef984081e9c96e86d6", "score": "0.5728055", "text": "private void initFiles() {\n\t\tFile[] list = this.folder.listFiles();\n\n\t\tfor (File item : list) {\n\t\t\tif (item.exists()) {\n\t\t\t\tthis.fileList.add(item);\n\t\t\t\tthis.fileStringList.add(item.toString().replace(this.rawFileName + \"\\\\\", \"\"));\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "35ce90f08619508552c6f3b8d5e80058", "score": "0.5716328", "text": "@Override\r\n\tprotected void doOp()\r\n\t{\r\n\t\tSystem.out.println(\"srcDir = \" + srcDir.getPath());\r\n\t\ttry {\r\n\t\t\tFile[] files = srcDir.listFiles(new FilenameFilter() {\r\n\t\t public boolean accept(File file, String name) {\r\n\t\t return name.endsWith(extension);\r\n\t\t \t //return file.isFile();\r\n\t\t }\r\n\t\t });\r\n\t\t\tfor (File file : files) \r\n\t\t\t{\r\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(file));\r\n\t\t\t\tString fileName = file.getName();\r\n\t\t\t\tFile newFile = new File(destDirUrl + File.separator +fileName);\r\n\t\t\t\tif (!newFile.exists())\r\n\t\t\t\t{\r\n\t\t\t\t\tnewFile.createNewFile();\r\n\t\t\t\t}\r\n\t\t\t\tfileWriter = new BufferedWriter(new FileWriter(newFile));\r\n\t\t\t\tfor (String line = br.readLine(); line != null; line = br.readLine()) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (line.trim().isEmpty() || line.trim().equals(\"\\n\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchar[] lineArray = line.toCharArray();\r\n\t\t\t\t\tif (doWriteLine(lineArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfileWriter.write(line);\r\n\t\t\t\t\t\tfileWriter.newLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbr.close();\r\n\t\t\t\tif (null != fileWriter)\r\n\t\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception 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": "f9223560eeef883efb598eabce41a78c", "score": "0.5704153", "text": "@Override\n public void run() {\n String pattern = \"**\" + searchExpression + \"*\";\n PathMatcher matcher = FileSystems.getDefault().getPathMatcher(\"glob:\" + pattern);\n\n if (panService.isCurrentBatchNameUsed()) panService.uptickBatchName();\n String batchKey = panService.getCurrentBatchName();\n\n for (File file : sampleFile.getParentFile().listFiles()) {\n if(matcher.matches(file.toPath())) { //Check if file matches the expression\n ChannelContainer newData = null;\n try {\n newData = loadFile(file); //Load the file\n } catch (IOException e) {\n logService.error(e);\n\n } finally {\n String channelSetName = file.getName().trim(); //Extract data and store in PanService\n if(isRelative) newData.makeRelative();\n newData.setBatchKey(batchKey);\n panService.addChannelSet(channelSetName, newData);\n\n }\n\n\n\n }\n }\n\n\n\n\n }", "title": "" }, { "docid": "3ffc708480f8d8a6a27f54915ff7cdab", "score": "0.5701316", "text": "private static void listf(File directory, List<File> files, Set<String> extensions) {\n\t\tFile[] fList = directory.listFiles();\r\n\t\tif (fList != null) {\r\n\t\t\tArrays.stream(fList).filter(f -> f.isDirectory()).sorted().forEach(f -> listf(f, files, extensions));\r\n\t\t\tArrays.stream(fList).filter(f -> f.isFile() && isFileInExtensionset(extensions, f.getName())).sorted().forEach(f -> files.add(f));\r\n\t\t\t\r\n\t\t\t\r\n//\t\t\tfor (File file : fList) {\r\n//\t\t\t\tif (file.isFile() && isFileInExtensionset(extensions, file.getName()))\r\n//\t\t\t\t\tfiles.add(file);\r\n//\t\t\t\t\r\n//\t\t\t\telse if (file.isDirectory())\r\n//\t\t\t\t\tlistf(file, files, extensions);\r\n//\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "15d73e6a8d7273fc1e750e149b952306", "score": "0.5692924", "text": "private static void scanInDir(\n Set<Class<?>> classes,\n File dir,\n String packageName,\n Function<Class<?>, Boolean> filter\n ) throws ClassNotFoundException {\n File[] files = dir.listFiles();\n if (files == null) {\n return;\n }\n // find\n for (File file : files) {\n // make full name\n String fullName = packageName + \".\" + file.getName();\n if (file.isDirectory()) { // dir\n scanInDir(classes, file, fullName, filter);\n } else if (fullName.endsWith(\".class\")) { // class file\n load(classes, fullName, filter);\n }\n }\n }", "title": "" }, { "docid": "8ef25d6d980f9672cb7dd31f7e5d89dc", "score": "0.5690093", "text": "@Override\n\t\tpublic boolean accept(File dir, String filename) {\n\t\t\tNumber_of_Files++;\n\t\t\tif(new File(dir.toString()+\"/\"+filename).isDirectory())\n\t\t\t\treturn true;\n\t\t return false;\n\t\t}", "title": "" }, { "docid": "4783c1226be01ec844133547f71f5966", "score": "0.5689948", "text": "@Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attr) {\n if(directoryEntered) {\n return SKIP_SUBTREE; // This is a subsequenbt directory so skip the contents\n } else {\n directoryEntered = true;\n System.out.format(\"\\n%s contains the following files\", dir);\n if(extension == null) {\n System.out.print(\":\");\n } else {\n System.out.format(\" with extension %s:\", extension);\n }\n return CONTINUE;\n }\n }", "title": "" }, { "docid": "ef4eadb6ae871a6c3eb0588a465fe2ca", "score": "0.5682523", "text": "private static List<File> searchDirectory(File dir) {\n\t\tArrayList<File> jarfiles = new ArrayList<File>();\n\t\tFile[] files = dir.listFiles();\n\t\t\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile() && filter.accept(file)) {\n\t\t\t\tjarfiles.add(file);\n\t\t\t}\n\t\t\t\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tjarfiles.addAll(searchDirectory(file));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn jarfiles;\n\t}", "title": "" }, { "docid": "e6ff79da0c5d1d5cc70249bcc2f49d66", "score": "0.5666327", "text": "default Iterable<Path> scanFor(FileObject dir, Predicate<Path> pred) throws IOException {\n if (dir == null) {\n return empty();\n }\n List<Path> result = null;\n for (FileObject fo : dir.getChildren()) {\n Path p = toPath(fo);\n if (pred.test(p)) {\n if (result == null) {\n result = new ArrayList<>(3);\n }\n result.add(p);\n }\n }\n return result == null ? SingleIterable.empty()\n : result.size() == 1 ? new SingleIterable(result.get(0))\n : result;\n }", "title": "" }, { "docid": "3e935004f1c2f695d3ad89605e6c2afd", "score": "0.56532097", "text": "private void registerDirectory(Path dir) throws IOException {\n\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n\t\tkeys.put(key, dir);\n\n\t\tFile folder = new File(\"/home/regen/git/caseStudyTwo/LetterBatch/resources/input/\");\n\t\tFile[] listOfFiles = folder.listFiles();\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\tif (listOfFiles[i].isFile()) {\n\n\t\t\t\tif (listOfFiles[i].getName().toString().startsWith(\"COMPANY\")\n\t\t\t\t\t\t&& listOfFiles[i].getName().toString().endsWith(\".txt\")) {\n\n\t\t\t\t\tfile = new File(listOfFiles[i].getPath());\n\n\t\t\t\t\tpath = Paths.get(listOfFiles[i].getAbsolutePath());\n\n\t\t\t\t\tinputFile = new Reader(path);\n\t\t\t\t\tif (inputFile.isValidFile())\n\t\t\t\t\t\tinputFile.generateAllLetters();\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"Incorrect File Format.\");\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "28814fc8705541826e227bbf888cf569", "score": "0.5650725", "text": "public void constructFromDir() throws IOException{\n if(dir == null) {\n System.out.println(\"Specify directory to analyse!\");\n return;\n }\n\n dir.open();\n\n for(String s : this.dir.getJavaFileNames()) {\n javaFiles.add(new JavaFile(s));\n }\n\n for(String s : this.dir.getClassFileNames()) {\n classFiles.add(new ClassFile(s));\n }\n }", "title": "" }, { "docid": "389bce339af38c14d644f736ce3d1a08", "score": "0.56467867", "text": "private void getAllFiles(URI uri, String extension) {\n\n File directory = new File(uri);\n File[] files = directory.listFiles();\n\n if (files != null) {\n for (File file : files) {\n if (file.isFile() && file.getPath().endsWith(extension)) {\n this.files.add(new FileModel(\n file.getName(),\n file.getPath(),\n FileUtils.getFileAttributes(file)\n ));\n } else {\n getAllFiles(file.toURI(),extension);\n }\n }\n }\n }", "title": "" }, { "docid": "c153c489d26f6fa26401a4c605cb875b", "score": "0.56449866", "text": "private void readFolder(String inputFolder) {\n File[] listOfFiles = FileHandler.getAllFiles(inputFolder);\n if (listOfFiles != null && listOfFiles.length > 0) {\n for (File file : listOfFiles) {\n\n if (file.isFile() && !file.getName().startsWith(\".\") && !file.isHidden()) {\n HashMap<String, String> extractedMetadata = extractable.extract(file);\n if (extractedMetadata != null) {\n String[] pathElements = FileHandler.getPathArray(file.getAbsolutePath(), \"/\");\n String pathKey = null;\n\n if (pathElements.length > 0) {\n String firstLevel = pathElements[pathElements.length - 3];\n String secondLevel = pathElements[pathElements.length - 2];\n\n pathKey =firstLevel + \"_\" + secondLevel;\n if(pathKey.contains(\"data_in\")) {\n pathKey = pathKey.replace(\"data_in\",secondLevel);\n }\n pathKey = pathKey.toLowerCase();\n }\n\n if (folderFileMap.containsKey(pathKey)) {\n folderFileMap.get(pathKey).add(extractedMetadata);\n } else {\n extractedFileList = new ArrayList<HashMap<String, String>>();\n extractedFileList.add(extractedMetadata);\n folderFileMap.put(pathKey, extractedFileList);\n }\n }\n } else {\n readFolder(file.getAbsolutePath());\n }\n }\n } else {\n System.out.println(inputFolder+ \": Input folder is empty\");\n }\n }", "title": "" }, { "docid": "54d418b59e9bad490a12d804d67a4e46", "score": "0.5641233", "text": "public static void main(String[] args) throws IOException {\n\n File inputDirectory = new File(\"data/input\");\n File outputDirectory = new File(\"data/output\");\n\n // Step 2 Read the files from the directory and iterate the files\n File[] files = inputDirectory.listFiles();\n for(File sourse: files) {\n if(sourse.isFile()) {\n File dest = new File(\n outputDirectory.getPath()\n + File.separator\n + sourse.getName());\n // Step 3 Create the output stream and read the files\n\n OutputStream oStream = new FileOutputStream(dest);\n byte[] buffer = new byte[(int) sourse.length()];\n FileInputStream iStream = new FileInputStream(sourse);\n iStream.read(buffer);\n\n try{\n oStream.write(buffer);\n } catch (IOException ex) {\n System.out.println(\"IOExeption -> \" + ex.getMessage());\n }finally {\n // Step 4 Close the streams\n oStream.close();\n iStream.close();\n }\n }\n }\n }", "title": "" }, { "docid": "cd90bfb5732ff4f417fed6441cb254cd", "score": "0.56405723", "text": "void task3() {\n\t\tdir = new File(absolutePath(File_name()));\n\t\tdir_Listing = dir.listFiles();\n\t\tif (dir_Listing != null) {\n\t\t\tSystem.out.println(\"Converting the files from HTML to TXT\");\n\t\t\tfor (File specificFile : dir_Listing) {\n\t\t\t\twriteTotxt(specificFile);\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nConversion completed\");\n\t\t\tSystem.out.println(\"\\nRefresh the \\\"Text\\\" Folder to see the newly created files\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Directory is empty\");\n\t\t}\n\t}", "title": "" }, { "docid": "d44c72ae85210e494c3a828a24cca059", "score": "0.5629441", "text": "private void performProcessing(Plugin p, ProjectVersion pv,\r\n List projectFiles) {\r\n Iterator pfit = projectFiles.iterator();\r\n while (pfit.hasNext()) {\r\n ProjectFile pf = (ProjectFile) pfit.next();\r\n System.out.println(String\r\n .format(\"Processing file %s\", pf.getName()));\r\n HashMap<String, String> results;\r\n try {\r\n results = p.run(pf);\r\n } catch (PluginException pe) {\r\n System.out.println(String.format(\"An error occured while \"\r\n + \"processing file %s:\\n %s\", pf.getName(), pe\r\n .getMessage()));\r\n log(pe.toString());\r\n continue;\r\n }\r\n storeResults(results, pf, pv);\r\n }\r\n }", "title": "" }, { "docid": "b832c5416ee19fe6c9936f5ce3ba562d", "score": "0.561944", "text": "@Override\n public Map<String, List<String>> readFiles(File directory) throws DroneApplicationException {\n\n Map inputInformation = new HashMap();\n\n File file = new File(directory.toURI());\n String[] pathNames = file.list();\n\n for (String pathName : pathNames) {\n if (isValidInputFileName(pathName)) {\n List<String> lines = readFile(retrieveFile(file.getAbsolutePath() + \"/\" + pathName));\n inputInformation.put(getDroneId(pathName), lines);\n }\n }\n\n return inputInformation;\n }", "title": "" }, { "docid": "332b3102362379d5cc89028ed4d89065", "score": "0.5618158", "text": "default Iterable<Path> scanFor(Path dir, Predicate<Path> pred) throws IOException {\n if (dir == null) {\n return empty();\n }\n List<Path> result = null;\n try (Stream<Path> all = Files.list(dir)) {\n Iterator<Path> it = all.iterator();\n while (it.hasNext()) {\n Path p = it.next();\n if (pred.test(p)) {\n if (result == null) {\n result = new ArrayList<>(3);\n }\n result.add(p);\n }\n }\n }\n return result == null ? SingleIterable.empty()\n : result.size() == 1 ? new SingleIterable(result.get(0))\n : result;\n }", "title": "" }, { "docid": "086a1220a329dac137ef3bffbe67e6da", "score": "0.55998933", "text": "@Test\n @Ignore\n public void shouldParseAllFiles() {\n Path directory = Start2FoldConstants.XML_DIRECTORY;\n Start2FoldConstants.list(directory)\n .forEach(path -> {\n try {\n logger.info(\"handling {}\",\n path);\n // safe are: STF0005, STF0021\n String pdbId = Jsoup.parse(path.toFile(), \"UTF-8\").getElementsByTag(\"protein\").attr(\"pdb_id\");\n Structure structure = StructureParser.fromPdbId(pdbId).parse();\n Chain chain = structure.chains().findFirst().get();\n Start2FoldXmlParser.parse(chain, path);\n } catch (Exception e) {\n logger.warn(\"inspect:\", e);\n }\n });\n }", "title": "" }, { "docid": "49cc40ebe0adc8e7704f606304966206", "score": "0.5589789", "text": "public DirScpOperation(File root) {\n File[] dirContent = root.listFiles();\n assert root.isDirectory() && dirContent != null;\n myDirName = root.getName();\n for (File file : dirContent) {\n if (file.isDirectory()) {\n myOps.add(new DirScpOperation(file));\n } else {\n myOps.add(new FileScpOperation(file));\n }\n }\n }", "title": "" }, { "docid": "70577878eea7700192ab58dcc175d299", "score": "0.5588332", "text": "public static ArrayList<File> getFilesToProcess(String sourceDirectory)\r\n\t\t{\r\n\t\tVariables.getLogger().debug(\"We look for the file to process\");\r\n\t\tArrayList<File> fileList = new ArrayList<File>();\r\n\t\t\r\n\t\tFile directory = new File(sourceDirectory);\r\n\t\tfor(File f : directory.listFiles())\r\n\t\t\t{\r\n\t\t\tfor(String ext : Variables.getAllowedFiles())\r\n\t\t\t\t{\r\n\t\t\t\tif(f.getName().contains(\".\"+ext))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfileList.add(f);\r\n\t\t\t\t\tVariables.getLogger().debug(\"The following file has been added to the list : \"+f.getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\treturn fileList;\r\n\t\t}", "title": "" }, { "docid": "88e8897f5e801682a93c1e428195b7e8", "score": "0.55838627", "text": "public void scan(){\n log(\"scan()-\"+pDir);\n scanDir(pDir);\n }", "title": "" }, { "docid": "9bb5ed40dc80af43a9a2a6bc7619ae2b", "score": "0.558077", "text": "public void run() {\n\n\t\tList<File> listarquivos = getArqDiretoriosESubDiretorios(diretorio);\n\t\tFile[] arquivos = converteListParaArray(listarquivos);\n\t\tif (arquivos.length > 0) {\n\t\t\tfor (int i = 0; i < arquivos.length; i++) {\n\t\t\t\tFile arq = arquivos[i];\n\n\t\t\t\tif (arq.getName().endsWith(\".java\")) {\n\n\t\t\t\t\ttotalDeArqEncontrados++;\n\n\t\t\t\t\tarquivo.putArquivo(arq.getPath());\n\t\t\t\t\tleitor = new LeArquivo(arquivo);\n\t\t\t\t\tleitor.start();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tleitor.join();// esperar a thread terminar de executar\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tresultado = leitor.getResultado();\n\t\t\t\t\ttotalDeArqProcessados++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1e68be13e6f2bf6226316007006d6d16", "score": "0.5578827", "text": "@Override\n\tpublic Collection<File> getFiles() {\n\t\ttry {\n\t\t\treturn FileHelper.listDirectoryFiles( directory, new ExtensionFilenameFilter(), /* recurse */ true );\n\n\t\t} catch( FileNotFoundException ex ) {\n\t\t\tthrow new BuildFileException( \"The directory referred to by a 'tree' include in the package '\" + pkg.getName() + \"' was not found. See cause.\", ex );\n\t\t}\n\t}", "title": "" }, { "docid": "2f9ff125333f4f199cdd989b2fe22902", "score": "0.55736214", "text": "@Override\r\n public FileVisitResult postVisitDirectory(Path dir,\r\n IOException exc) {\r\n return CONTINUE;\r\n }", "title": "" }, { "docid": "781f04a46d7d7a3bf4aeedd0e25326c4", "score": "0.557321", "text": "private void pullDeviceFiles(IDevice device) throws Exception {\n for (String dir : DEVICE_DIRS) {\n pullDirectory(device, dir);\n }\n }", "title": "" }, { "docid": "e3e7b98ec7d2fdcf57797b94e12266c1", "score": "0.5568847", "text": "public static void search_files() {\n startSearch();\n }", "title": "" }, { "docid": "4f49420b826a2721445fe7c7447ebbcb", "score": "0.5568612", "text": "protected abstract void processAll();", "title": "" }, { "docid": "9901e414878c7b6b8e8dbaa918d2ef8e", "score": "0.55665874", "text": "@Override\n\t\tpublic FileVisitResult preVisitDirectory(Path path,\n\t\t\t\tBasicFileAttributes attrs) throws IOException {\n\t\t\treturn FileVisitResult.CONTINUE;\n\t\t}", "title": "" } ]
a21dc23d86240d3b5370808637618538
Called by layer PRESENTER when VIEW pass for a reconstruction/destruction. Usefull for kill/stop activities that could be running on the background Threads
[ { "docid": "b8562488ea8eca1cc746aaa9b798e1af", "score": "0.0", "text": "@Override\n public void onDestroy(boolean isChangingConfiguration) {\n\n }", "title": "" } ]
[ { "docid": "8075ff8cff589e9f3bc0ece25d914ae4", "score": "0.64970183", "text": "@Override\r\n\tpublic void onDestroyView() {\r\n\t\tLog.d(LOG_TAG, \"onDestroyView\");\r\n\r\n\t\t// interrupt the RouteRetrieverThreads\r\n\t\tif (poiRouteRetriever != null)\r\n\t\t\tpoiRouteRetriever.interrupt();\r\n\r\n\t\tif (toTourRouteRetriever != null)\r\n\t\t\ttoTourRouteRetriever.interrupt();\r\n\r\n\t\t((ViewGroup) mapView.getParent()).removeView(mapView);\r\n\r\n\t\tsuper.onDestroyView();\r\n\t}", "title": "" }, { "docid": "522bf4d5a2c5160bb26ca25513895612", "score": "0.6136206", "text": "@Override\n public void onCameraViewStopped() {\n mFrame.release();\n }", "title": "" }, { "docid": "502fe8c251009364eac06c0cb3cc1649", "score": "0.6092534", "text": "public void cleanup() {\n view = null;\n }", "title": "" }, { "docid": "21b1b08e2d35dd941e77ccd577e61ce6", "score": "0.6089666", "text": "protected void onDestroy(){\n controller.setflag(false, null, null);\n super.onDestroy();\n }", "title": "" }, { "docid": "b6e0a9da20b763fc8f1109746c07abcb", "score": "0.6036393", "text": "public void run() {\n dispose = DoNothing;\n Log.debug(\"Disposing \" + this);\n installThreadLocals();\n notifyViewDisposal();\n release();\n persistentFacesState.dispose();\n facesContext.dispose();\n allServedViews.remove(viewIdentifier);\n }", "title": "" }, { "docid": "6ea6f97a27d35e9cce48e318394fd4ce", "score": "0.60221136", "text": "@Override\n public void onCameraViewStopped() {\n rgba.release();\n gray.release();\n }", "title": "" }, { "docid": "cd6babd70a03c2cd4cb1cb48df6cf7d6", "score": "0.60120386", "text": "@Override\n public void onCameraViewStopped() {\n mRgba.release();\n }", "title": "" }, { "docid": "b6d13f4930cf24cf854c7e5013cc8e01", "score": "0.59803456", "text": "@Override\n public void run() {\n wm.removeView(viewG);\n }", "title": "" }, { "docid": "b6d13f4930cf24cf854c7e5013cc8e01", "score": "0.59803456", "text": "@Override\n public void run() {\n wm.removeView(viewG);\n }", "title": "" }, { "docid": "b6d13f4930cf24cf854c7e5013cc8e01", "score": "0.59803456", "text": "@Override\n public void run() {\n wm.removeView(viewG);\n }", "title": "" }, { "docid": "4879a840f89e6ee91e7e1ba912a0a739", "score": "0.5974747", "text": "@Override\n public void onDestroy() {\n cambioClaveScreenView = null;\n eventBus.unregister(this);\n }", "title": "" }, { "docid": "827a8d75546b1cd28f534f90d35240f9", "score": "0.5965021", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\t//imageLoader.destroy();\r\n\t\t//imageLoader.stop();\r\n\t}", "title": "" }, { "docid": "e4909418bb238f57be20acdbac329157", "score": "0.5963299", "text": "@Override\n public void onSurfaceDestroyed() {\n if (executorService != null) {\n executorService.shutdownNow();\n }\n\n }", "title": "" }, { "docid": "f9d0b9c67f967d14ae4be9a42837b032", "score": "0.5929674", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmGameView.mGameThread.setGameState(GameThread.STOP);\n\t\tLog.i(TAG, \"onDestroy()\");\n\t}", "title": "" }, { "docid": "895bb78b08f3f3a5e6f9852f287499dd", "score": "0.5918955", "text": "@Override\n public void onStop() {\n Log.v(\"debug : \", \"onStop called and controller is hided and set to null\");\n// System.gc();\n super.onStop();\n }", "title": "" }, { "docid": "e1d96871ee791910ca4c0d9a6d957cad", "score": "0.59148747", "text": "public void run() {\n try {\n memoryView.updateEnv(ctx);\n } catch (Exception e) {\n e.printStackTrace();\n }\n memoryViewSP.invalidate();\n memoryViewSP.repaint();\n viewerEnv.enableStepping();\n }", "title": "" }, { "docid": "5201c0ba2a8a866f645bad5859498197", "score": "0.5877781", "text": "@Override\n\tpublic void onCameraViewStopped() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "8634dc0a752b58fd4f3b653ed63cbab3", "score": "0.5860905", "text": "public void Terminate()\r\n {\r\n view = null;\r\n entityList.clear();\r\n }", "title": "" }, { "docid": "71a64300ff728721c2a1d8bfa9300dfd", "score": "0.5849611", "text": "protected void onDestroy() {\n\t\tif(vVideoView!=null){\n\t\tvVideoView.onRelease();\n\t\t}\n\t\tif (!mIsGridMode) {\n\t\t\tif (null != mInfoLoader) {\n\t\t\t\tmInfoLoader.clearQueue();\n\t\t\t}\n\n\t\t\tif (null != mLoader) {\n\t\t\t\tmLoader.clearQueue();\n\t\t\t}\n\t\t}\n\t\tmIsGridMode = false;\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "585c88a97bb0a32a9924d327a5ade231", "score": "0.58458686", "text": "public abstract void releaseViews();", "title": "" }, { "docid": "fa049f0d7dcf08389e5b85c747a58da1", "score": "0.5777987", "text": "void runUpdate()\n {\n updateHandle = null;\n updateRun = null;\n\n if (delegate != null)\n delegate.viewerMovedTo(this, viewState);\n }", "title": "" }, { "docid": "6907c21fb6a9f1783b61e085d0ee5041", "score": "0.57768476", "text": "void preDestroy();", "title": "" }, { "docid": "c0918a6ba06fbd414427b8e4a88a29fa", "score": "0.57674813", "text": "private void exit() {\n ((ISubject) mModel).detach(this);\n ((ISubject) mView).detach(this);\n mModel.releaseModel();\n mView.releaseView();\n }", "title": "" }, { "docid": "e6af3f21ee7efa9d89d7bcf8b93a8dc7", "score": "0.576555", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tisrun = false;\r\n\t\tsuper.onDestroy();\r\n\t}", "title": "" }, { "docid": "e9af26bc4eb7c44788070306852e1bb2", "score": "0.5760635", "text": "@Override\n public void run() {\n Intent backIntent = new Intent(OptimalStateActivity.this, AfterOptimizerActivity.class);\n startActivity(backIntent);\n finish();\n }", "title": "" }, { "docid": "a64903de8a26039ef06a5414e3861300", "score": "0.5748957", "text": "private void doAfterRestoreView(PhaseEvent arg0) {\n\t}", "title": "" }, { "docid": "9930a913907ecb935c18a121777e8241", "score": "0.570921", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tTF=false;\n\t\tLog.e(\"SurfaceView\",\"surfaceDestroyed\");\n\t\tif(gameThread!=null){\n\t\tLog.e(\"Thread Status\",\"\"+gameThread.getState());\n\t\tgameThread=null;\n\n\t\t}\n\t}", "title": "" }, { "docid": "f764444fab6da54bfb6e64e7d23add66", "score": "0.5706205", "text": "private void m2487e() {\n if (!this.f2333A) {\n ((C1531a) getPresenter()).mo17108d();\n ((C1531a) getPresenter()).closeCamera();\n ((C1531a) getPresenter()).detach();\n Handler handler = this.f2360z;\n if (handler != null) {\n handler.removeCallbacksAndMessages(null);\n }\n this.f2333A = true;\n }\n }", "title": "" }, { "docid": "c64ed59f10b13f840c6dbcfe049db598", "score": "0.56990653", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.d(\"ouou\", \"house---》onDestroyView\");\r\n\t}", "title": "" }, { "docid": "319c2f092e818b76ef7d73d5e11bc8cd", "score": "0.5698824", "text": "@Override\r\n public void viewResume()\r\n {\n }", "title": "" }, { "docid": "9d571a63ae8077a9b32756d59490ccdd", "score": "0.56814665", "text": "void detachView();", "title": "" }, { "docid": "9d571a63ae8077a9b32756d59490ccdd", "score": "0.56814665", "text": "void detachView();", "title": "" }, { "docid": "82b30bfa18f6f9bdb5688abcebf01fa3", "score": "0.56777096", "text": "private void processPendingView() {\n if (pendingViewAndParameters != null) {\n navigator.navigateTo(pendingViewAndParameters);\n pendingViewAndParameters = null;\n }\n }", "title": "" }, { "docid": "33a834e7c6618e68945e2ff1e72793c6", "score": "0.56656736", "text": "@Override\n protected void onResume() {\n super.onResume();\n viewIgre.resume();\n }", "title": "" }, { "docid": "f6458c6875a8b57756b4e02093b80af4", "score": "0.5655498", "text": "@Override\n public void run() {\n Modeling3dReconstructSetting setting = new Modeling3dReconstructSetting.Factory()\n .setReconstructMode(Modeling3dReconstructConstants.ReconstructMode.PICTURE)\n .create();\n Log.i(TAG, \"Obtain the 3D reconstruction mode.: \" + setting.getReconstructMode());\n String filePath = new Constants(ScanActivity.this).getCaptureImageFile() + manager.getSurfaceViewCallback().getCreateTime();\n // Creating a Rebuilding Task\n modeling3dReconstructInitResult = modeling3dReconstructEngine.initTask(setting);\n // Creating a Rebuilding Task\n String taskId = modeling3dReconstructInitResult.getTaskId();\n // Check whether taskId is empty.\n if (taskId == null || taskId.equals(\"\")) {\n LogUtil.i(\"get taskID error \" + modeling3dReconstructInitResult.getRetMsg());\n } else {\n // Check whether taskId is empty.\n modeling3dReconstructEngine.setReconstructUploadListener(uploadListener);\n // Executing a Rebuild Upload Task\n modeling3dReconstructEngine.uploadFile(taskId, filePath);\n }\n\n }", "title": "" }, { "docid": "692b03c32e9599c3a02e7b2cc76a9d74", "score": "0.5654503", "text": "protected abstract void destroyViewSpecificContent(GL2 gl);", "title": "" }, { "docid": "96adbb6071fd1aef31f6fe15f1e7f989", "score": "0.56535196", "text": "@Override\n public void onCameraViewStopped() {\n\n }", "title": "" }, { "docid": "96adbb6071fd1aef31f6fe15f1e7f989", "score": "0.56535196", "text": "@Override\n public void onCameraViewStopped() {\n\n }", "title": "" }, { "docid": "1e1d7850e0a95060e2118b3a2038177b", "score": "0.56433564", "text": "@CallSuper\n @Override\n public void onDestroyView() {\n onDestroyView(this);\n super.onDestroyView();\n }", "title": "" }, { "docid": "32844f6e08d71c38b90cc4748ddc8022", "score": "0.56409764", "text": "@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tViewGroup vg = (ViewGroup) unit.getImage().getParent();\n\t\t\t\t\t\tvg.removeView(unit.getImage());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\n\t\t\t\t\t// System.out.println(\"Removing Image from view: \" +\n\t\t\t\t\t// unit.toString() + \" Remaining Images: \" + ((FrameLayout)\n\t\t\t\t\t// currentActivity.findViewById(R.id.play_frame)).getChildCount());\n\t\t\t\t}", "title": "" }, { "docid": "6963d236e75edadcaf915497a0ee2566", "score": "0.56392986", "text": "@Override\n public void onDestroy() {\n Log.d(Constants.LOG_TAG, \"Control onDestroy\");\n utils.stopCamera();\n utils.deactivate();\n }", "title": "" }, { "docid": "e83d60418456aa6f7c7040e2066444f4", "score": "0.56297386", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tpoint.disconnect();\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "b337d2575dc5e2e23f86c792cf0e93a6", "score": "0.56187356", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t}", "title": "" }, { "docid": "fa9bab2c2dc67ccc069911368e280395", "score": "0.561488", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n \t_thread.setRunning(false);\n }", "title": "" }, { "docid": "93a28e4e8c0baae54cba768a47468330", "score": "0.56068826", "text": "@Override\n\tprotected void onDestroy() {\n\t\tif (this == KunKunInfo.getInstance().lastShowActivity) {\n\t\t\tKunKunInfo.getInstance().lastShowActivity = null;\n\t\t}\n\t\tremoveAllProcessingRequest();\n\t\ttry {\n\t\t\tunregisterReceiver(receiver);\n\t\t} catch (Exception e) {\n\t\t}\n\t\tHashMapManager.getInstance().clearHashMapById(this.toString());\n\t\tSystem.gc();\n\t\tSystem.runFinalization();\n\t\t\n\t\tsuper.onDestroy();\n\n\t}", "title": "" }, { "docid": "cd99a5f65f87d7a6eddc6ce92b08f6cc", "score": "0.5606347", "text": "public void stop() {\n viewStopped();\n }", "title": "" }, { "docid": "a8ac42af16be4d3db1637cbcd36d81c6", "score": "0.56052226", "text": "public void onCameraViewStopped() {\n }", "title": "" }, { "docid": "b69abc6ca57f41132429f52bc7a75966", "score": "0.5586581", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tLog.d(MainActivity.DEBUG, \"SurfaceView Destroyed\");\n\n\t\t// Shutting down the graphics thread\n\t\tif (gameRunner != null) {\n\t\t\tgameRunner.shutDown();\n\t\t}\n\n\t\t// Making sure the tread stops\n\t\twhile (gameRunner != null) {\n\t\t\ttry {\n\t\t\t\tgameRunner.join();\n\t\t\t\tgameRunner = null;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLog.d(MainActivity.DEBUG, \"GameRunner Join Interrupted\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8befe37c7091a3046baaa68eb158233b", "score": "0.558536", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\t\n\t}", "title": "" }, { "docid": "cd6fd96c47334f1c98a1d77382f13552", "score": "0.55745167", "text": "public void destroy()\t{ m_viewer.destroy(); }", "title": "" }, { "docid": "9ece3363ab974bfcb4d9e95f3beb4622", "score": "0.556983", "text": "public void post(){\n log.info(\"Cleaning current Instance\");\n updateLoadingMessage(\"Finishing up\");\n\n rendering.setScene(1);\n\n log.info(\"Finished Initialization in {} Seconds!\", Time.getSeconds());\n }", "title": "" }, { "docid": "12d222bb8870059ce56e071463fffc4b", "score": "0.5566475", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tLog.i(tag, \"onDestroyView\");\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "9bf6c3b3e68cdd3fa0f7ffee4b56437e", "score": "0.5521849", "text": "@Override\r\n\t\tpublic void process() {\n\t\t\tEasyScene.this.process();\r\n\t\t\tLayerManager.getInstance().processHUDLayers();\r\n\t\t}", "title": "" }, { "docid": "1a7ec90ccd95eeb9be28bf31d72c2264", "score": "0.55212647", "text": "private void m1119b() {\n C1227o oVar = this.f1322e;\n String str = \"AppLovinAdView\";\n if (oVar != null) {\n oVar.mo10378b(str, \"Destroying...\");\n }\n C0801c cVar = this.f1328k;\n if (cVar != null) {\n try {\n ViewParent parent = cVar.getParent();\n if (parent instanceof ViewGroup) {\n ((ViewGroup) parent).removeView(this.f1328k);\n }\n this.f1328k.removeAllViews();\n if (((Boolean) this.f1320c.mo10202a(C1096c.f2512eR)).booleanValue()) {\n this.f1328k.loadUrl(\"about:blank\");\n this.f1328k.onPause();\n this.f1328k.destroyDrawingCache();\n }\n } catch (Throwable th) {\n this.f1322e.mo10377a(str, \"Unable to destroy ad view\", th);\n }\n this.f1328k.destroy();\n this.f1328k = null;\n }\n this.f1339v = true;\n }", "title": "" }, { "docid": "8f2e541a651f5db3b39e2e0881bc571c", "score": "0.5512107", "text": "public void run() {\n /*\n r8 = this;\n r7 = 0;\n r3 = com.android.camera.module.PanoramaModule.TAG;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"StillProcTask>>\";\n r4 = r4.append(r5);\n r4 = r4.append(r8);\n r4 = r4.toString();\n com.android.camera.log.Log.v(r3, r4);\n L_0x001c:\n r0 = 0;\n r3 = com.android.camera.module.PanoramaModule.this;\n r4 = r3.mImageSyncObj;\n monitor-enter(r4);\n L_0x0024:\n r3 = com.android.camera.module.PanoramaModule.this;\t Catch:{ all -> 0x0077 }\n r3 = r3.mIsShooting;\t Catch:{ all -> 0x0077 }\n if (r3 == 0) goto L_0x007a;\n L_0x002c:\n r3 = com.android.camera.module.PanoramaModule.this;\t Catch:{ all -> 0x0077 }\n r3 = r3.mStillProcList;\t Catch:{ all -> 0x0077 }\n r3 = r3.size();\t Catch:{ all -> 0x0077 }\n if (r3 != 0) goto L_0x007a;\n L_0x0038:\n r3 = com.android.camera.module.PanoramaModule.TAG;\t Catch:{ InterruptedException -> 0x0056 }\n r5 = \"StillProcTask waiting>>\";\n com.android.camera.log.Log.v(r3, r5);\t Catch:{ InterruptedException -> 0x0056 }\n r3 = com.android.camera.module.PanoramaModule.this;\t Catch:{ InterruptedException -> 0x0056 }\n r3 = r3.mImageSyncObj;\t Catch:{ InterruptedException -> 0x0056 }\n r3.wait();\t Catch:{ InterruptedException -> 0x0056 }\n r3 = com.android.camera.module.PanoramaModule.TAG;\t Catch:{ InterruptedException -> 0x0056 }\n r5 = \"StillProcTask waiting<<\";\n com.android.camera.log.Log.v(r3, r5);\t Catch:{ InterruptedException -> 0x0056 }\n goto L_0x0024;\n L_0x0056:\n r1 = move-exception;\n r3 = com.android.camera.module.PanoramaModule.TAG;\t Catch:{ all -> 0x0077 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0077 }\n r5.<init>();\t Catch:{ all -> 0x0077 }\n r6 = \"StillProcTask: \";\n r5 = r5.append(r6);\t Catch:{ all -> 0x0077 }\n r6 = r1.getMessage();\t Catch:{ all -> 0x0077 }\n r5 = r5.append(r6);\t Catch:{ all -> 0x0077 }\n r5 = r5.toString();\t Catch:{ all -> 0x0077 }\n com.android.camera.log.Log.e(r3, r5);\t Catch:{ all -> 0x0077 }\n goto L_0x0024;\n L_0x0077:\n r3 = move-exception;\n monitor-exit(r4);\n throw r3;\n L_0x007a:\n r3 = com.android.camera.module.PanoramaModule.this;\t Catch:{ all -> 0x0077 }\n r3 = r3.mStillProcList;\t Catch:{ all -> 0x0077 }\n r3 = r3.size();\t Catch:{ all -> 0x0077 }\n if (r3 <= 0) goto L_0x0093;\n L_0x0086:\n r3 = com.android.camera.module.PanoramaModule.this;\t Catch:{ all -> 0x0077 }\n r3 = r3.mStillProcList;\t Catch:{ all -> 0x0077 }\n r5 = 0;\n r0 = r3.remove(r5);\t Catch:{ all -> 0x0077 }\n r0 = (com.android.camera.module.PanoramaModule.StillImageData) r0;\t Catch:{ all -> 0x0077 }\n L_0x0093:\n monitor-exit(r4);\n if (r0 == 0) goto L_0x0114;\n L_0x0096:\n r3 = com.android.camera.module.PanoramaModule.TAG;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"attachStillImageExt() start: \";\n r4 = r4.append(r5);\n r5 = r0.mId;\n r4 = r4.append(r5);\n r4 = r4.toString();\n com.android.camera.log.Log.d(r3, r4);\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mMorphoPanoramaGP;\n if (r3 != 0) goto L_0x0156;\n L_0x00bb:\n r2 = -1073741824; // 0xffffffffc0000000 float:-2.0 double:NaN;\n L_0x00bd:\n if (r2 == 0) goto L_0x00e8;\n L_0x00bf:\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mActivity;\n if (r3 == 0) goto L_0x00e8;\n L_0x00c5:\n r3 = com.android.camera.module.PanoramaModule.TAG;\n r4 = \"attachStillImageExt() -> 0x%x\";\n r5 = 1;\n r5 = new java.lang.Object[r5];\n r6 = java.lang.Integer.valueOf(r2);\n r5[r7] = r6;\n r4 = java.lang.String.format(r4, r5);\n com.android.camera.log.Log.e(r3, r4);\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mActivity;\n r4 = new com.android.camera.module.PanoramaModule$StillProcTask$1;\n r4.<init>();\n r3.runOnUiThread(r4);\n L_0x00e8:\n r3 = r8.shootCount;\n if (r3 != 0) goto L_0x00ff;\n L_0x00ec:\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mMorphoPanoramaGP;\n if (r3 == 0) goto L_0x00ff;\n L_0x00f4:\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mMorphoPanoramaGP;\n r4 = r0.mImage;\n r3.attachSetJpegForCopyingExif(r4);\n L_0x00ff:\n r3 = r8.shootCount;\n r3 = r3 + 1;\n r8.shootCount = r3;\n r3 = r0.mImage;\n com.android.camera.panorama.NativeMemoryAllocator.freeBuffer(r3);\n r3 = r0.mMotionData;\n com.android.camera.panorama.NativeMemoryAllocator.freeBuffer(r3);\n r3 = com.android.camera.module.PanoramaModule.this;\n r3.addProcessedCount();\n L_0x0114:\n r3 = com.android.camera.module.PanoramaModule.this;\n r4 = r3.mSyncObj;\n monitor-enter(r4);\n r3 = com.android.camera.module.PanoramaModule.this;\t Catch:{ all -> 0x016b }\n r3 = r3.mIsShooting;\t Catch:{ all -> 0x016b }\n if (r3 != 0) goto L_0x0168;\n L_0x0123:\n r3 = com.android.camera.module.PanoramaModule.TAG;\t Catch:{ all -> 0x016b }\n r5 = \"StillProcTask: exiting\";\n com.android.camera.log.Log.d(r3, r5);\t Catch:{ all -> 0x016b }\n monitor-exit(r4);\n L_0x012e:\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mStillProcList;\n r3 = r3.size();\n if (r3 <= 0) goto L_0x016e;\n L_0x013a:\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mStillProcList;\n r0 = r3.remove(r7);\n r0 = (com.android.camera.module.PanoramaModule.StillImageData) r0;\n r3 = r0.mImage;\n com.android.camera.panorama.NativeMemoryAllocator.freeBuffer(r3);\n r3 = r0.mMotionData;\n com.android.camera.panorama.NativeMemoryAllocator.freeBuffer(r3);\n r3 = com.android.camera.module.PanoramaModule.this;\n r3.addProcessedCount();\n goto L_0x012e;\n L_0x0156:\n r3 = com.android.camera.module.PanoramaModule.this;\n r3 = r3.mMorphoPanoramaGP;\n r4 = r0.mImage;\n r5 = r0.mId;\n r6 = r0.mMotionData;\n r2 = r3.attachStillImageExt(r4, r5, r6);\n goto L_0x00bd;\n L_0x0168:\n monitor-exit(r4);\n goto L_0x001c;\n L_0x016b:\n r3 = move-exception;\n monitor-exit(r4);\n throw r3;\n L_0x016e:\n r3 = com.android.camera.module.PanoramaModule.TAG;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"StillProcTask<<\";\n r4 = r4.append(r5);\n r4 = r4.append(r8);\n r4 = r4.toString();\n com.android.camera.log.Log.v(r3, r4);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.module.PanoramaModule.StillProcTask.run():void\");\n }", "title": "" }, { "docid": "d10686433ce19aad63b3a1895466bf45", "score": "0.55088353", "text": "public void reset() {\n cancelShowRunnable();\n inflateView();\n mFalsingCollector.onBouncerHidden();\n }", "title": "" }, { "docid": "a4d382a0d7843e7efc25384e4c44a119", "score": "0.5500037", "text": "@Override\r\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\r\n\t\tmapView.onRestart();\r\n\t}", "title": "" }, { "docid": "a2873811f51ea94db62dc2dbfda9ccd6", "score": "0.5488948", "text": "public void surfaceDestroyer(SurfaceHolder holder){\n st.interrupt();\n }", "title": "" }, { "docid": "9357e7570580f83daa2653c83448c26c", "score": "0.5477869", "text": "public void onDestroy() {\n if (this.mIsBack) {\n int i = this.mUsedFor;\n if (!(i == 1 && i == 2)) {\n MainActivity.postInitCDib(this.mUsedFor == 0 ? this : null, null);\n }\n }\n if (getIntent() != null && getIntent().getBooleanExtra(Constants.EXTRA_FROM_MAINACTIVITY, false)) {\n MainActivity.gotoMainActivity(this);\n }\n super.onDestroy();\n }", "title": "" }, { "docid": "67315e81485cf9867fc06c87c2def344", "score": "0.54722863", "text": "public void onDetachedFromWindow() {\n this.a.getViewTreeObserver().removeOnPreDrawListener(this.i);\n this.a.setVisibility(0);\n a(this.a, (GhostViewApi14) null);\n super.onDetachedFromWindow();\n }", "title": "" }, { "docid": "75db4b708302656cd93a86acf498879a", "score": "0.54719055", "text": "void dispatchDetachedFromWindow() {\n AttachInfo info = mAttachInfo;\n if (info != null) {\n int vis = info.mWindowVisibility;\n if (vis != GONE) {\n onWindowVisibilityChanged(GONE);\n }\n }\n releaseDrawableReference(mBGDrawable);\t//XXX: 只要保证在回收的时候有调用cleanup就不需要这句了\n onDetachedFromWindow();\n //XXX\n// if ((mPrivateFlags&SCROLL_CONTAINER_ADDED) != 0) {\n// mAttachInfo.mScrollContainers.remove(this);\n// mPrivateFlags &= ~SCROLL_CONTAINER_ADDED;\n// }\n mAttachInfo = null;\n }", "title": "" }, { "docid": "338e8390781059b8cacaa5d5a9d8e648", "score": "0.5469018", "text": "private void doBeforeRestoreView(PhaseEvent arg0) {\n\t}", "title": "" }, { "docid": "b432cf31c54ece6164fb62a6fb6bae96", "score": "0.5466955", "text": "public void onInvalidate() {\n ExternalViewabilitySessionManager externalViewabilitySessionManager = this.f34784c;\n if (externalViewabilitySessionManager != null) {\n externalViewabilitySessionManager.endDisplaySession();\n this.f34784c = null;\n }\n HtmlBannerWebView htmlBannerWebView = this.f34783b;\n if (htmlBannerWebView != null) {\n htmlBannerWebView.destroy();\n this.f34783b = null;\n }\n }", "title": "" }, { "docid": "846aa2e0d8dc8781a1290bdd8dca1ebd", "score": "0.5461077", "text": "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t\tRuntimeData.onResume();\n\t\tGLView.onResume();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.54591733", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.54591733", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.54591733", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.54591733", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.54591733", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "5c6109408e569ac035c781727d40feda", "score": "0.5458081", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "title": "" }, { "docid": "5c6109408e569ac035c781727d40feda", "score": "0.5458081", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "title": "" }, { "docid": "2222530bcf4696ce0ee486fae5f9fcc8", "score": "0.5451984", "text": "@Override\n public void onPause() {\n if(mCaptureSession != null) {\n mCaptureSession.close();\n mCaptureSession = null;\n }\n if (mCamera != null) {\n mCamera.close();\n mCamera = null;\n }\n\n mPreviewThread.quitSafely();\n try {\n mPreviewThread.join();\n } catch (InterruptedException ex) {\n Log.e(TAG, \"Background worker thread was interrupted while joined\", ex);\n }\n\n //Free gyro. App needs to update initial orientation\n mSensorManager.unregisterListener(mGyroListener);\n mSensorManager.unregisterListener(mInitialOrientationListener);\n\t\t\tmHasInitialOrientation = false;\n super.onPause();\n }", "title": "" }, { "docid": "e51e93b8624741f1f085d79809dbe45f", "score": "0.54491836", "text": "@Override\n protected void onDestroy(){\n super.onDestroy();\n setBonusRoundTokenHolder(false);\n setMakeNextWordBonusInitiator(false);\n theState = null;\n myState = null;\n textMainArenaFragment = null;\n bonusRoundFragment = null;\n peerListItemsFragment = null;\n peersMap = null;\n if(task != null)\n task.cancel(true);\n connectionsClient.stopAllEndpoints();\n connectionsClient.stopDiscovery();\n connectionsClient.stopAdvertising();\n connectionsClient = null;\n System.gc();\n //Log.i(TAG, \"ON DESTROY CALLED\");\n }", "title": "" }, { "docid": "ca558de88b558372496d91cc2eebee60", "score": "0.5447443", "text": "protected void onRegionsCleared() { \n invalidate(); \n }", "title": "" }, { "docid": "28bc0aafd12cedbca2d5d69a56c90bfc", "score": "0.5444245", "text": "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\t// just have the View's thread save its state into our Bundle\n\t\tsuper.onSaveInstanceState(outState);\n\t\tmWorld.saveState(outState);\n\t}", "title": "" }, { "docid": "13c9845c13a5454720ba915bc16c73ef", "score": "0.5441009", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tmConnectView.destoryView();\r\n \t\tLog.d(DEBUG, \"onDestroy\");\r\n\t}", "title": "" }, { "docid": "501584e7d8240e894cdf9df6ff70d000", "score": "0.54335344", "text": "public final /* synthetic */ void zzvw() {\n super.destroy();\n }", "title": "" }, { "docid": "1b793fd4d84e2858500e6abe75399e90", "score": "0.54309464", "text": "@Override\r\n\t\t\tpublic void OnFinishedDisappear() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "8582be30249a36ad4d39990d3e28d8ea", "score": "0.54254216", "text": "protected void sceneDisposing() {\n }", "title": "" }, { "docid": "f252f719d98c9f78f1dc830e168c81dc", "score": "0.542486", "text": "public void\nstop()\n{\n solutionThread = null;\n offImage = null;\n offGraphics = null;\n}", "title": "" }, { "docid": "b4c936f6eb31a10b4644f9aa0c36cf24", "score": "0.54233235", "text": "@Override\n\tprotected void onDestroy() {\n\t\tActivityHelper.recycleBitmaps(this.getSzBitmap());\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "172f24b24a1351017dd453190bd55726", "score": "0.5420376", "text": "@Override\n public void shutdown() {\n views.values().forEach(PersistentView::disconnectRemoteView);\n }", "title": "" }, { "docid": "f64b3b05cec310a119457c10693e2e96", "score": "0.5413938", "text": "protected void postStop() {\n\n }", "title": "" }, { "docid": "f105fdd3f4f2450d584abd6cd9b4df01", "score": "0.5412291", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tSystem.out.println(\"onDestroyView\");\n\t\t// if (browsehistory.size() > 0)\n\t\t// updateTracker(browsehistory);\n\t}", "title": "" }, { "docid": "42f6309250e30a6573bb05b89b18d45f", "score": "0.5411851", "text": "private void stopRun() {\n\t\tSystem.out.println(\"Exploration is cancelled\");\n\t\tdisplayMgt.cancel(true);\n\t\texplored_map.setObstacleVirtualWall();\n\t\texplored_map.paintAgain();\n\t}", "title": "" }, { "docid": "546d36a6034d3b485678cd57bb33c060", "score": "0.5409697", "text": "@Override\n\tprotected void shutdown() {\n\t\tLog.d(name, \"shutdown start\");\n\t\tif(timer != null) {\n\t\t\ttry {\n\t\t\t\ttimer.send(Constants.Message.MSG_SHUTDOWN);\n\t\t\t\ttimer.join(100);\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t}\n\t\tif(fr != null) {\n\t\t\ttry {\n\t\t\t\tif(fr.isAlive()) {\n\t\t\t\t\tfr.interrupt();\n\t\t\t\t\tfr.join(100);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\tif(gol != null) {\n\t\t\ttry {\n\t\t\t\tgol.send(Constants.Message.MSG_SHUTDOWN);\n\t\t\t\tgol.join(100);\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t}\n\t\tif(view != null) {\n\t\t\tfinal ViewHost glgv = view.get();\n\t\t\tif(glgv != null) {\n\t\t\t\tglgv.disconnect();\n\t\t\t}\n\t\t}\n\t\tLog.d(name, \"shutdown complete\");\n\t}", "title": "" }, { "docid": "524e61e90ab528b6574770edaf844091", "score": "0.5407197", "text": "@UiThread\n public void destroy() {\n submit(new Runnable() {\n @WorkerThread\n @Override\n public void run() {\n m_buildingsApi.destroy(BuildingHighlight.this, BuildingHighlight.m_allowHandleAccess);\n }\n });\n\n }", "title": "" }, { "docid": "58d5aa3966ec90925ab4a744cdb3232f", "score": "0.5389558", "text": "@Override\r\n\t\t\tpublic void OnFinishedDisappear() {\n\t\t\t}", "title": "" }, { "docid": "6171b8073d392d5132ee707c405a3963", "score": "0.5387964", "text": "@Override\n public void kill() {\n stopRequested = true;\n tasks.add(() -> {\n }); // This reactivates the game object's thread\n }", "title": "" }, { "docid": "bebc3723ead18e9ec4a5c76c5d2f0393", "score": "0.53849196", "text": "public void destroy() {\n\t\tif (viewLayout != null) {\n\t\t\t// viewLayout.destroy(brick.getParentGLCanvas().asGLAutoDrawAble().getGL().getGL2());\n\t\t\tviewLayout = null;\n\t\t}\n\t}", "title": "" }, { "docid": "657ffa884b9644ca0cfd9bdb45f02a5b", "score": "0.5384371", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) \n {\n System.err.println(\"surfacedDestroy\");\n camera.stopPreview();\n camera.release();\n camera = null;\n }", "title": "" }, { "docid": "bcf6bce40590e82234ad6e6a35cf6991", "score": "0.538317", "text": "@Override\n public void onDone() {\n mOverlay.remove(mGraphic);\n }", "title": "" }, { "docid": "4192abdb35a31661a37fd7a83e8b2421", "score": "0.5382217", "text": "@Override\n public void recycle() {\n // pass\n }", "title": "" }, { "docid": "45098db46b969c79c616396a8494560b", "score": "0.5380895", "text": "protected void onFinish() {\n viewModel.release();\n getDiManager().release(this);\n }", "title": "" }, { "docid": "1a6d541d4192c7d6d9987c8c26d1cf97", "score": "0.5380409", "text": "@Override\r\n public void onDestroy() {\n if (mThread != null) {\r\n mThread.interrupt();\r\n }\r\n super.onDestroy();\r\n }", "title": "" }, { "docid": "58bbab5a46263fa2b2bc26334d32faf1", "score": "0.5379717", "text": "@Override\n protected void onDestroy() {\n super.onDestroy();\n mMapView.onDestroy();\n }", "title": "" }, { "docid": "f553f5b7733745dca9458764c54791cb", "score": "0.5379587", "text": "public void run() {\n\t\t s = new stage(this.context);\n\t\t //Sending surface view to constructor\n\t\t DrawObject dr = new DrawObject(v,thread);\n\t\t try {\n\t\t\t\ts.setLevel(1);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t \n\t\t\t Log.i(\"MyApp\",\"count\"+count++);\n\t\t\n\t\t\twhile(IsRunning)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(!holder.getSurface().isValid())\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tCanvas canvas = holder.lockCanvas();\n\t\t\t\tPaint paint = new Paint();\n\t\t\t\t\n\t\t\t\tcanvas.drawARGB(255, 255, 255, 255);\n\t\t\t\t//s.ondraw(canvas,s);\n\t\t\t\tdr.Ondraw(canvas, s);\n\t\t\t\t// Log.i(\"MyApp\",\"count\"+count++);\n\t\t\t\tholder.unlockCanvasAndPost(canvas);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1558a4343ca5fbfa5084f050cbbbb654", "score": "0.53689414", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tGDFSuezApplication.stopCamera();\n\t}", "title": "" }, { "docid": "a683b463f22530c72e17c0c622ed9c55", "score": "0.53683275", "text": "@Override\npublic void onDestroy() {\n\tsuper.onDestroy();\n\tSystem.out.println(\"onDestroy\");\n\tmAdView.pushImageCycle();\nisthis=false;\n}", "title": "" }, { "docid": "370e7f59f4dde130b3416d92d3008f77", "score": "0.53655267", "text": "public final void onDestroy() {\n if (isFinishing() && this.f30086m) {\n mo17689a(2);\n }\n super.onDestroy();\n }", "title": "" }, { "docid": "9a66649ead330aca2613c30334a6190d", "score": "0.5363447", "text": "public void cleanup() {\n if (!this.mIsDestroyed) {\n if (this.mActiveRequest != null) {\n this.mActiveRequest.cancel();\n this.mActiveRequest = null;\n }\n setAutorefreshEnabled(false);\n cancelRefreshTimer();\n this.mMoPubView = null;\n this.mContext = null;\n this.mUrlGenerator = null;\n this.mIsDestroyed = true;\n }\n }", "title": "" } ]
ad4d65b6a4b167d6497f618c1cbc7bfb
Generate JSON from Database
[ { "docid": "7b1d16347def2f7ac463b61da244b686", "score": "0.674908", "text": "public String generateJSON() throws JSONException {\n ArrayList<User> users = databaseManager.listUsers();\n\n JSONObject json = new JSONObject();\n JSONArray jsonArray = new JSONArray();\n\n for (User user : users) {\n JSONObject userData = new JSONObject();\n userData.put(UserDao.Properties.Id.columnName, user.getId());\n userData.put(UserDao.Properties.Name.columnName, user.getName());\n userData.put(UserDao.Properties.Password.columnName, user.getPassword());\n userData.put(UserDao.Properties.Active.columnName, user.getActive());\n userData.put(UserDao.Properties.CreatedAt.columnName, user.getCreatedAt());\n userData.put(UserDao.Properties.UpdatedAt.columnName, user.getUpdatedAt());\n jsonArray.put(userData);\n }\n json.put(UserDao.TABLENAME, jsonArray);\n L.t(context, \"\" + json);\n\n // Save JSON to SD card\n try {\n File sdCardDirectory = new File(Environment.getExternalStorageDirectory() + \"/Android/Data/\" + context.getPackageName() + \"/JSON/\");\n if (!sdCardDirectory.exists()) {\n sdCardDirectory.mkdirs();\n }\n\n String fileName = \"Task\" + System.currentTimeMillis() + \".json\";\n File jsonFile = new File(sdCardDirectory, fileName);\n FileWriter writer = new FileWriter(jsonFile);\n writer.append(json.toString());\n writer.flush();\n writer.close();\n return fileName;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n\n\n }", "title": "" } ]
[ { "docid": "c98ad58f8f2388e6e8fe180cd5f0978a", "score": "0.65923977", "text": "public String toJSON(){\n\t\tString[] objects = new String[records.size()];\n\t\tfor(int i=0; i<records.size(); i++){\n\t\t\tobjects[i] = records.get(i).toJSON();\n\t\t}\n\t\treturn \"[\" + String.join(\",\", objects) + \"]\";\n\t}", "title": "" }, { "docid": "19dad4a1c4e48fcd3f14421379f7d236", "score": "0.65103716", "text": "public String getJson() throws Exception {\n String result = \"{\";\n if (data.size() == 0) {\n result = \"{}\";\n return result;\n }\n boolean isFirst = true;\n for (Entry<String, Member> entry : data.entrySet()) {\n if (!isFirst) {\n result += ',';\n } else {\n isFirst = false;\n }\n result += \"\\\"\" + entry.getKey() + \"\\\":\";\n switch (entry.getValue().recordType) {\n case NULL:\n result += \"null\";\n break;\n case INT:\n result += entry.getValue().getInt();\n break;\n case UINT:\n result += entry.getValue().getUint();\n break;\n case DOUBLE:\n result += entry.getValue().getDouble();\n break;\n case STRING:\n result += \"\\\"\" + entry.getValue().getString() + \"\\\"\";\n break;\n case DATETIME:\n case DATE:\n case TIME:\n result += \"\\\"\" + entry.getValue().getString() + \"\\\"\";\n break;\n case DYNCOL:\n result += entry.getValue().getDynCol().getJson();\n break;\n default:\n throw new Exception(\"Dynamic type \" + entry.getValue().recordType + \" is unknown.\");\n }\n }\n result += '}';\n return result;\n }", "title": "" }, { "docid": "72738efdc08c6511f7d1e8ac74767a6e", "score": "0.6495093", "text": "public String dataTableJSON() {\n return JsonRenderer.renderDataTable(dataTable(), true, true, false).toString();\n }", "title": "" }, { "docid": "01dd658f38e523864cfc4f212b4e4148", "score": "0.6448709", "text": "public String toJson();", "title": "" }, { "docid": "045f9a08c99e005fc9c61deea37a2868", "score": "0.64438957", "text": "public String toString() {\n HashMap<String, Object> jsonObj = new HashMap<String, Object>();\n jsonObj.put(MolaDbConstants.JSON_KEY, key.toJsonObj());\n jsonObj.put(MolaDbConstants.JSON_TABLENAME, tableName);\n return JsonUtils.toJsonString(jsonObj);\n }", "title": "" }, { "docid": "df875729ee7fae0befc01e838d4408a8", "score": "0.64334756", "text": "public String toJson(){\n\t\treturn \"{\\\"ID\\\":\\\"\" + this.ID + \"\\\",\" + \n\t\t\"\\\"Nome\\\":\\\"\" + this.Nome + \"\\\",\" +\n\t\t\"\\\"Pagina\\\":\\\"\" + this.Pagina + \"\\\",\" +\n\t\t\"\\\"Link\\\":\\\"\" + this.Link + \"\\\",\" +\n\t\t\"\\\"Tipo\\\":\\\"\" + this.Tipo + \"\\\",\" +\n\t\t\"\\\"Autore\\\":\\\"\" + this.Autore + \"\\\",\" +\n\t\t\"\\\"updateInterval\\\":\\\"\" + this.updateInterval + \"\\\",\" +\n\t\t\"\\\"lastTimestamp\\\":\\\"\" + this.lastTimestamp + \"\\\",\" +\n\t\t\"\\\"Icona\\\":\\\"\" + this.Icona + \"\\\"}\" ;\n\t}", "title": "" }, { "docid": "54e75e1a5e92e330bbc9b1f414862da9", "score": "0.6419531", "text": "public String getJSON() {\r\n\t\tString VPJson;\r\n\t\tVPJson = \"\\n{\" + \r\n\t\t\"\\n\" + \"\\t\" + '\"' + \"Procedure\" + '\"' + \" : \" + \r\n\t\t\"\\n\" + \"\\t\" + \"{\" + \r\n\t\t\"\\n\" + \"\\t\\t\" + '\"' + \"name\" + '\"' + \" : \" + '\"' + Procedure.getName() + '\"' + \",\" +\r\n\t\t\"\\n\" + \"\\t\\t\" + '\"' + \"price\" + '\"' + \" : \" + Procedure.getPrice() +\r\n\t\t\"\\n\" + \"\\t\" + \"}\" + \",\" +\r\n\t\t\"\\n\" + \"\\t\" + '\"' + \"quantity\" + '\"' + \" : \" + getQuanity() + \",\" +\r\n\t\t\"\\n\" + \"\\t\" + '\"' + \"isCoveredByInsurance\" + '\"' + \" : \" + getIsCoveredByInsurance() + \",\" +\r\n\t\t\"\\n\" + \"\\t\" + '\"' + \"pctCovered\" + '\"' + \" : \" + getPctCovered() +\r\n\t\t\"\\n\" + \"}\";\r\n\t\treturn VPJson;\r\n\t}", "title": "" }, { "docid": "2e3387902f9fa25f742e8efdb716e96a", "score": "0.6416348", "text": "private synchronized String generateJsonString() {\n\t\tJSONObject JsonObj = new JSONObject();\n\t\tJsonObj.put(\"url\", this.url);\n\t\tJsonObj.put(\"votes\", this.votes);\n\t\tJsonObj.put(\"review_count\", this.review_count);\n\t\tJsonObj.put(\"type\", this.type);\n\t\tJsonObj.put(\"user_id\", this.user_id);\n\t\tJsonObj.put(\"name\", this.name);\n\t\tJsonObj.put(\"average_stars\", this.average_stars);\n\n\t\treturn JsonObj.toString();\n\t}", "title": "" }, { "docid": "9f76762bffc99ee679a4119b5dfc5ed9", "score": "0.6351504", "text": "public synchronized JSONObject buildJSON() throws JSONException {\n \t\tJSONObject json = new JSONObject();\n \t\tjson.put(\"primaryKey\", primaryKey);\n \t\tjson.put(\"email\", email);\n \t\tjson.put(\"password\", password);\n \t\t\n \t\treturn json;\n \t}", "title": "" }, { "docid": "1d080319bd9282c18d29451b8834d202", "score": "0.62901473", "text": "public String getAllUsers(){\n JSONObject object = new JSONObject();\n object.put(\"datetime\",new Util().getCurrentTime());\n JSONArray jsonArray = new JSONArray();\n\n database = mongoClient.getDatabase(\"hobby\");\n collection = database.getCollection(\"users\");\n MongoCollection<Document> table = collection;\n for (Document doc : table.find()){\n try {\n JSONObject userJson = new JSONObject();\n userJson = (JSONObject) new JSONParser().parse(doc.toJson());\n jsonArray.add(userJson);\n\n } catch (ParseException e) {\n log.error(e.toString());\n }\n }\n object.put(\"users\",jsonArray);\n log.print(\"Json file created\");\n return object.toJSONString();\n }", "title": "" }, { "docid": "2c4f0ffb3b0ae1b4a0b09c95d6ba3310", "score": "0.6217951", "text": "private JSONObject createJson() {\n JSONObject schemaJson = new JSONObject(), deviceInfoJson = new JSONObject(), parametersJson = new JSONObject();\n JSONArray deviceArray = new JSONArray(), parametersArray = new JSONArray();\n try {\n schemaJson.put(\"deviceInfo\", deviceArray);\n deviceInfoJson.put(\"androidID\",\n Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID));\n deviceInfoJson.put(\"manufacturer\", Build.MANUFACTURER);\n deviceInfoJson.put(\"model\", Build.MODEL);\n deviceInfoJson.put(\"user\", Build.USER);\n deviceInfoJson.put(\"product\", Build.PRODUCT);\n deviceInfoJson.put(\"androidVersion\", VERSION.RELEASE);\n deviceArray.put(deviceInfoJson);\n schemaJson.put(\"parameters\", parametersArray);\n parametersJson.put(\"userId\", parameters.get(\"userId\"));\n parametersJson.put(\"implementationid\", parameters.get(\"implementationid\"));\n parametersJson.put(\"trafficSource\", parameters.get(\"trafficSource\"));\n parametersJson.put(\"userClass\", parameters.get(\"userClass\"));\n parametersArray.put(parametersJson);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return schemaJson;\n\n }", "title": "" }, { "docid": "92a73bae553ee883ddb54b682437ebcd", "score": "0.61884683", "text": "private static JSONObject resultToJson(ResultSet result)\n\t\t\tthrows SQLException, JSONException {\n\n\t\tJSONArray jArray = new JSONArray();\n\t\tJSONObject jObjDevice = new JSONObject();\n\t\tJSONObject jTypes = new JSONObject();\n\t\tint rows = 0;\n\t\tboolean haveTypes = false;\n\t\ttry {\n\t\t\twhile (result.next()) {\n\t\t\t\tResultSetMetaData rsmd = result.getMetaData();\n\t\t\t\tJSONObject jObj = new JSONObject();\n\t\t\t\tint cols = rsmd.getColumnCount();\n\t\t\t\tfor (int i = 1; i <= cols; i++) {\n\t\t\t\t\tint type = rsmd.getColumnType(i);\n\t\t\t\t\tif (type == Types.BIGINT || type == Types.INTEGER) {\n\t\t\t\t\t\tif(!haveTypes) jTypes.put(rsmd.getColumnLabel(i), \"number\");\n\t\t\t\t\t\tjObj.put(rsmd.getColumnLabel(i), result.getInt(i));\n\t\t\t\t\t} else if (type == Types.DECIMAL) {\n\t\t\t\t\t\tif(!haveTypes) jTypes.put(rsmd.getColumnLabel(i), \"number\");;\n\t\t\t\t\t\tjObj.put(rsmd.getColumnLabel(i),result.getBigDecimal(i).setScale(2, RoundingMode.HALF_UP));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(!haveTypes) jTypes.put(rsmd.getColumnLabel(i), \"string\");;\n\t\t\t\t\t\tjObj.put(rsmd.getColumnLabel(i), result.getString(i));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thaveTypes = true;\n\t\t\t\tjArray.put(jObj);\n\t\t\t\trows++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of rows: \"+ rows);\n\t\t\t\n\t\t\tjObjDevice.put(\"data\", jArray);\n\t\t\tjObjDevice.put(\"dataType\", jTypes);\n\t\t\t\n\t\t} catch (org.json.JSONException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn jObjDevice;\n\t}", "title": "" }, { "docid": "b222f4ac08d089a5033c65b88fddc409", "score": "0.6123785", "text": "public void setLocalDBToJSON() {\n\n\n Cursor cursor = getAllData(\"userTable\"); //cursor hold all your data\n JSONObject jobj ;\n JSONArray arr = new JSONArray();\n while(cursor.moveToNext()) {\n\n jobj = new JSONObject();\n try {\n jobj.put(\"uID\",cursor.getString(0));\n\n jobj.put(\"user_phone\",cursor.getString(1));\n\n jobj.put(\"user_name\",cursor.getString(2));\n\n jobj.put(\"user_email\",cursor.getString(3));\n\n jobj.put(\"user_pass\",cursor.getString(4));\n\n jobj.put(\"user_ratings\",cursor.getString(5));\n\n jobj.put(\"user_salt\",cursor.getString(6));\n\n jobj.put(\"user_flag\",cursor.getString(7));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n arr.put(jobj);\n }\n\n jobj = new JSONObject();\n try {\n jobj.put(\"data\", arr);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n jsonString2 = jobj.toString();\n\n }", "title": "" }, { "docid": "e5c7447f71d2f58c13313781f0804acc", "score": "0.61069334", "text": "private static JsonArray resultToJsonConvert(ResultSet rs) throws SQLException {\n JsonArray json = new JsonArray();\n ResultSetMetaData rsmd = rs.getMetaData();\n\n while (rs.next()) {\n int numColumns = rsmd.getColumnCount();\n JsonObject obj = new JsonObject();\n\n for (int i = 1; i < numColumns + 1; i++) {\n String column_name = rsmd.getColumnName(i);\n Gson gson = new Gson();\n\n switch (rsmd.getColumnType(i)) {\n case java.sql.Types.ARRAY:\n if (rs.getArray(column_name) != null)\n obj.addProperty(column_name, gson.toJson(rs.getArray(column_name)));\n else\n obj.add(column_name, null);\n break;\n case java.sql.Types.BIGINT:\n obj.addProperty(column_name, rs.getLong(column_name));\n break;\n case java.sql.Types.BOOLEAN:\n obj.addProperty(column_name, rs.getBoolean(column_name));\n break;\n case java.sql.Types.BLOB:\n if (rs.getBlob(column_name) != null)\n obj.addProperty(column_name, gson.toJson(rs.getBlob(column_name)));\n else\n obj.add(column_name, null);\n break;\n case java.sql.Types.DOUBLE:\n obj.addProperty(column_name, rs.getDouble(column_name));\n break;\n case java.sql.Types.FLOAT:\n obj.addProperty(column_name, rs.getFloat(column_name));\n break;\n case java.sql.Types.TINYINT:\n obj.addProperty(column_name, rs.getInt(column_name) == 1);\n break;\n case java.sql.Types.INTEGER:\n case java.sql.Types.SMALLINT:\n obj.addProperty(column_name, rs.getInt(column_name));\n break;\n case java.sql.Types.NVARCHAR:\n obj.addProperty(column_name, rs.getNString(column_name));\n break;\n case java.sql.Types.VARCHAR:\n String elem = rs.getString(column_name);\n if (elem != null) {\n try {\n JsonElement jObject = JsonParser.parseString(elem);\n // Use \"name\" in column, because the characters or guilds have a `[name]` so,\n // json parse think `[name]` it is a json array, not a String\n if (jObject.isJsonPrimitive() || column_name.equals(\"name\")) {\n obj.addProperty(column_name, elem);\n } else {\n obj.add(column_name, jObject);\n }\n } catch (JsonSyntaxException e) {\n obj.addProperty(column_name, elem);\n }\n }\n break;\n case java.sql.Types.DATE:\n if (rs.getDate(column_name) != null)\n obj.addProperty(column_name, gson.toJson(rs.getDate(column_name)));\n else\n obj.add(column_name, null);\n break;\n case java.sql.Types.TIMESTAMP:\n if (rs.getTimestamp(column_name) != null)\n obj.addProperty(column_name, rs.getTimestamp(column_name).toString());\n else\n obj.add(column_name, null);\n break;\n default:\n if (rs.getObject(column_name) != null)\n obj.addProperty(column_name, gson.toJson(rs.getObject(column_name)));\n else\n obj.add(column_name, null);\n break;\n }\n }\n json.add(obj);\n }\n return json;\n }", "title": "" }, { "docid": "3ffc2ef75bea0fc8134e10da8dff013d", "score": "0.6104836", "text": "public static String consultar(String proveedor) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = \"SELECT E.id, E.categoriaEvento, E.titulo, E.direccion, E.fecha, E.hora, C.nombre, C.apellidos \"\n + \"FROM Solicitud S natural join Evento E natural join Cliente C \"\n + \"WHERE (S.proveedor=? AND S.pendiente=TRUE AND S.evento=E.id \"\n + \"AND E.cliente=C.usuario);\";\n\n JsonObjectBuilder jb = Json.createObjectBuilder();\n JsonObjectBuilder grande = Json.createObjectBuilder();\n JsonArrayBuilder lista = Json.createArrayBuilder();\n\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, proveedor);\n\n rs = ps.executeQuery();\n String devolver = null;\n\n while (rs.next()) {\n jb.add(\"id\", rs.getString(\"id\"));\n jb.add(\"categoriaEvento\", rs.getString(\"categoriaEvento\"));\n jb.add(\"titulo\", rs.getString(\"titulo\"));\n jb.add(\"direccion\", rs.getString(\"direccion\"));\n jb.add(\"fecha\", rs.getString(\"fecha\"));\n jb.add(\"hora\", rs.getString(\"hora\"));\n jb.add(\"nombre\", rs.getString(\"nombre\"));\n jb.add(\"apellidos\", rs.getString(\"apellidos\"));\n\n /* Añadir al array */\n lista.add(jb.build());\n }\n\n /* Guarda la lista en el json array grande */\n rs.close();\n ps.close();\n\n pool.freeConnection(connection);\n\n StringWriter sw = new StringWriter();\n JsonWriter writer = Json.createWriter(sw);\n\n writer.writeArray(lista.build());\n\n writer.close();\n sw.close();\n devolver = sw.toString();\n\n return devolver;\n\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n\n }", "title": "" }, { "docid": "1cadf313e35576e7b8880f918001da08", "score": "0.6091147", "text": "public String getJson(){\n JSONStringer json = new JSONStringer();\n\n try {\n json.object().key(\"CreditCardTransactionCollection\").array().object()\n .key(\"AmountInCents\").value(payment.getAmountInCents())\n .key(\"InstallmentCount\").value(payment.getInstallmentCount())\n .key(\"CreditCardOperation\").value(\"AuthAndCapture\")\n .key(\"CreditCard\").object()\n .key(\"CreditCardNumber\").value(payment.getCreditCardNumber())\n .key(\"ExpMonth\").value(payment.getExpMonth())\n .key(\"ExpYear\").value(payment.getExpYear())\n .key(\"CreditCardBrand\").value(payment.getCreditCardBrand())\n .key(\"HolderName\").value(payment.getCreditCardHolderName())\n .key(\"SecurityCode\").value(payment.getSecurityCode())\n .endObject()\n .endObject().endArray().endObject();\n json.object().key(\"Buyer\").object()\n .key(\"Name\").value(payment.getName())\n .key(\"Email\").value(payment.getEmail())\n .endObject().endObject();\n\n } catch (JSONException e) {\n\n e.printStackTrace();\n }\n\n\n return json.toString();\n }", "title": "" }, { "docid": "0d00e7d6446af24f78c14c02b41231bd", "score": "0.6079541", "text": "public JSONObject getTableHashJson() throws Exception {\n\t\tJSONObject tableJson = new JSONObject();\n\t\tfor (Object k : this.tableHash.keySet()) {\n\t\t\ttableJson.put((String) k, (this.tableHash.get((String) k)).toJson());\n\t\t}\n\t\t\n\t\treturn tableJson;\n\t}", "title": "" }, { "docid": "75cf2f530118189b9c63551a9ad64b36", "score": "0.606758", "text": "@Test\n public void testSqlMapper(){\n System.out.println(new Gson().toJson(sqlMapper.selectOne(\"select * from user_info where seq = 1\")));\n }", "title": "" }, { "docid": "0ad80bbb450f19378a94a72cc329ab9a", "score": "0.60583425", "text": "public String getJSONString() {\n\t\tString[] columns = new String[] { \"json\" };\n\t\tCursor cursor = sqLiteDatabase.query(MYDATABASE_TABLE, columns, null,\n\t\t\t\tnull, null, null, null);\n\n\t\tcursor.moveToFirst();\n\t\tint index_JSON = cursor.getColumnIndex(\"json\");\n\n\t\t//we will create a simple return value of the format:\n\t\t//\"[trail1JSON, trail2JSON, ...]\"\n\t\tString sReturn = \"[\";\n\t\twhile (!cursor.isAfterLast()) {\n\t\t\tString sTrailJSON = cursor.getString(index_JSON);\n\t\t\tsReturn = sReturn.concat(sTrailJSON);\n\t\t\tcursor.moveToNext();\n\t\t\tif (!cursor.isAfterLast()) {\n\t\t\t\tif (sTrailJSON.compareTo(\"\") != 0)\n\t\t\t\t\tsReturn = sReturn.concat(\",\");\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsReturn = sReturn.concat(\"]\");\n\n\t\treturn sReturn;\n\t}", "title": "" }, { "docid": "fe7e6c46b8cf6832ffc9d2083a232b65", "score": "0.6028211", "text": "public String toJSON();", "title": "" }, { "docid": "2f9ceca466c39d7d350a191411040732", "score": "0.60235214", "text": "@Override\r\n\tpublic String toJson() {\n\t\t return getJson(this);\r\n\t}", "title": "" }, { "docid": "b93074eeac13594bd9cd9d87f90b31f7", "score": "0.60122377", "text": "public static String testMovies() {\n String jsonString = \"{\"\r\n + \"\\\"movies\\\":\"\r\n + \"[ \";\r\n try {\r\n List<Movie> movies = iMovieDao.testMovies();\r\n\r\n if (movies.isEmpty()) {\r\n System.out.println(\"There are no movies\");\r\n }\r\n\r\n int i = 1;\r\n for (Movie movie : movies) {\r\n\r\n jsonString += movie.toJson();\r\n\r\n if (i < movies.size()) {\r\n jsonString += \",\";\r\n i++;\r\n } else {\r\n jsonString += \" \";\r\n }\r\n\r\n }\r\n jsonString += \"]\"\r\n + \"}\";\r\n\r\n System.out.println(jsonString);\r\n } catch (DaoException e) {\r\n e.printStackTrace();\r\n }\r\n return jsonString;\r\n\r\n }", "title": "" }, { "docid": "402b5d9f6ebdc742d116c9a53c5c1e5e", "score": "0.5954566", "text": "public String toJson() {\n\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\treturn gson.toJson(this);\t\n\t}", "title": "" }, { "docid": "46565bdce3b216d5d9a8ad5e57b71132", "score": "0.5948479", "text": "@Override\n public JSONObject toJson() {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"name\", this.name);\n jsonObject.put(\"row\", this.row);\n jsonObject.put(\"column\", this.column);\n return jsonObject;\n }", "title": "" }, { "docid": "83b993480ed0734e7e4b68d98f2ef2c6", "score": "0.59314466", "text": "public String toJSONString () {\n String strJson = \"{\";\n switch (objectType) {\n case LacmdElement.ID_CAT_ELEMENT:\n strJson += \"\\\"element\\\":\\\"\" + idstr + \"\\\"\";\n if (items != null && items.size() > 0) {\n strJson += \", \\\"items\\\":[\";\n for (int i=0;i<items.size();i++) {\n if (i!=0) strJson += \", \";\n strJson += \"\\\"\" + items.get(i).idstr + \"\\\"\";\n }\n strJson += \"]\";\n }\n break;\n\n case LacmdMenu.ID_CAT_MENU:\n strJson += \"\\\"menu\\\":\\\"\" + idstr + \"\\\"\";\n if (items != null && items.size() > 0) {\n strJson += \", \\\"items\\\":[\";\n for (int i=0;i<items.size();i++) {\n if (i!=0) strJson += \", \";\n strJson += items.get(i).toJSONString();\n }\n strJson += \"]\";\n }\n break;\n }\n strJson += \"}\";\n return strJson;\n }", "title": "" }, { "docid": "6ee037c7e58b4224e9d25828cca15144", "score": "0.59110844", "text": "public JSONObject asJSON () {\n JSONObject jsonObj = new JSONObject();\n try {\n jsonObj.put(\"class\", \"Query\");\n jsonObj.put(\"id\", id);\n if (getHasResult() != null) {\n jsonObj.put(\"hasResult\", getHasResult().getId());\n }\n if (getHasDistributions() != null) {\n String HasDistributionsAsString = \"\";\n for (Distribution HasDistributionsitem: getHasDistributions()) {\n HasDistributionsAsString += HasDistributionsitem.getId() + \",\";\n HasDistributionsAsString.replaceFirst(\",$\", \"\");\n }\n jsonObj.put(\"hasDistributions\", HasDistributionsAsString);\n }\n if (getHasRemainingEliminationNodes() != null) {\n jsonObj.put(\"hasRemainingEliminationNodes\", getHasRemainingEliminationNodes().getId());\n }\n if (getHasNodeDistMap() != null) {\n JSONArray jsonHasNodeDistMap = new JSONArray();\n for (Node row: getHasNodeDistMap()) {\n jsonHasNodeDistMap.put(row.getId());\n }\n jsonObj.put(\"hasNodeDistMap\", jsonHasNodeDistMap);\n }\n if (getHasTarget() != null) {\n jsonObj.put(\"hasTarget\", getHasTarget().getId());\n }\n if (getHasPlan() != null) {\n jsonObj.put(\"hasPlan\", getHasPlan().getId());\n }\n if (getHasModel() != null) {\n jsonObj.put(\"hasModel\", getHasModel().getId());\n }\n jsonObj.put(\"id\", getId());\n } catch (Exception e1) {\n logWriter.error(\"Error in marshalling to JSON \", e1);\n }\n return jsonObj;\n }", "title": "" }, { "docid": "be8c3e6f8945807112e4830a4bde81c8", "score": "0.59109885", "text": "private JSONArray billToJson() {\n JSONArray jsonArray = new JSONArray();\n\n jsonArray.put(usersList.toJson());\n\n jsonArray.put(productsList.toJson());\n\n return jsonArray;\n }", "title": "" }, { "docid": "750530bca1dd1376c3aab0fc56f2fa9c", "score": "0.59066206", "text": "private JSONObject cursorToJson(Cursor cursor) {\n JSONObject jsonObject = new JSONObject();\n JSONArray resultSet = new JSONArray();\n cursor.moveToFirst();\n try{\n jsonObject.put(\"myitems\", resultSet);\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n /*\n * scan columns for each row - represented by Cursor object\n * and construct new item - represented by JSONObject\n */\n while (cursor.isAfterLast() == false) {\n int totalColumn = cursor.getColumnCount();\n JSONObject rowObject = new JSONObject();\n for (int i = 0; i < totalColumn; i++) {\n if (cursor.getColumnName(i) != null) {\n try {\n rowObject.put(cursor.getColumnName(i),\n cursor.getString(i));\n } catch (Exception e) {\n }\n }\n }\n resultSet.put(rowObject);\n cursor.moveToNext();\n }\n cursor.close();\n return jsonObject;\n }", "title": "" }, { "docid": "c1f0fcea65645c15e7b392e5e713367c", "score": "0.5896413", "text": "public JSONObject toJson(){\r\n JSONObject book = new JSONObject();\r\n book.put(\"id\", (\"\"+this.id));\r\n book.put(\"name\", this.name);\r\n book.put(\"author\", this.author);\r\n return book;\r\n }", "title": "" }, { "docid": "11b4c239cda0a8330c46516b75c453b3", "score": "0.5890687", "text": "@Override\n public JSONObject convertToJson() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n jsonObject.put(TransactionFieldName.RECORD_ID.getFieldName(), this.recordId.toString());\n jsonObject.put(TransactionFieldName.CASHIER_ID.getFieldName(), this.cashierId);\n jsonObject.put(TransactionFieldName.TOTAL_AMOUNT.getFieldName(), this.totalAmount);\n jsonObject.put(TransactionFieldName.TRANSACTION_TYPE.getFieldName(), this.transactionType);\n jsonObject.put(TransactionFieldName.REFERENCE_ID.getFieldName(), this.referenceId);\n jsonObject.put(TransactionFieldName.CREATED_ON.getFieldName(), (new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS\", Locale.US)).format(this.createdOn));\n jsonObject.put(TransactionFieldName.TOTAL_ITEMS_SOLD.getFieldName(), this.totalItemSold);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject;\n }", "title": "" }, { "docid": "5427b054d63ce80b011a55d7a9371d71", "score": "0.5873597", "text": "public static List<JSONObject> convertToJSON(ResultSet resultSet) throws Exception {\n\n List<JSONObject> jsonList = new ArrayList<JSONObject>();\n while (resultSet.next()) {\n int nCols = resultSet.getMetaData().getColumnCount();\n JSONObject obj = new JSONObject();\n for (int i = 0; i < nCols; i++) {\n obj.put(resultSet.getMetaData().getColumnLabel(i + 1),\n resultSet.getObject(i + 1));\n }\n jsonList.add(obj);\n }\n return jsonList;\n }", "title": "" }, { "docid": "4fa5e9d0cf5cd3fa1493e98301f46480", "score": "0.5865873", "text": "public String toJSONString();", "title": "" }, { "docid": "52bf451ad558d50a5d25240d78d05069", "score": "0.5860561", "text": "JSONObject toJson();", "title": "" }, { "docid": "52bf451ad558d50a5d25240d78d05069", "score": "0.5860561", "text": "JSONObject toJson();", "title": "" }, { "docid": "efb8867eb34efe99262743e9016a43d2", "score": "0.5841523", "text": "public String toString() {\n Map<String, Object> rootObj = new HashMap<String, Object>();\n Map<String, Object> reqItems = new HashMap<String, Object>();\n Iterator<Entry<String, List<WriteRequest>>> iter = this.requestItems.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry<String, List<WriteRequest>> entry = iter.next();\n String tableName = (String) entry.getKey();\n List<WriteRequest> val = (List<WriteRequest>) entry.getValue();\n reqItems.put(tableName, toJsonObj(val));\n }\n rootObj.put(MolaDbConstants.JSON_REQUEST_ITEMS, reqItems);\n return JsonUtils.toJsonString(rootObj);\n }", "title": "" }, { "docid": "64dc5f7969d7001ac39907be358494d4", "score": "0.5835224", "text": "public List<Map<String, Object>> ResultSetToJSON(ResultSet rs) throws SQLException {\n List<Map<String, Object>> rows = new ArrayList<>();\n ResultSetMetaData rsmd = rs.getMetaData();\n int columnCount = rsmd.getColumnCount();\n\n while (rs.next()) {\n // Represent a row in DB. Key: Column name, Value: Column value\n Map<String, Object> row = new HashMap<>();\n for (int i = 1; i <= columnCount; i++) {\n String colName = rsmd.getColumnLabel(i); // change to fix error of alias in mysql\n Object colVal = rs.getObject(i);\n row.put(colName, colVal);\n }\n rows.add(row);\n }\n\n return rows;\n }", "title": "" }, { "docid": "30f29c64295c0eae6e309adeeb31f189", "score": "0.58187675", "text": "public String toJson() {\n String trimmedBarcode = barcode.substring(0, barcode.length() - 2);\n return String.format(\"{\\\"barcode\\\":\\\"%s\\\",\\\"genes\\\":%s}\", trimmedBarcode, Arrays.toString(geneIndices));\n }", "title": "" }, { "docid": "2331a85d8aea2f589996d265f2f72c1d", "score": "0.57978565", "text": "public JSONObject stateToJSONObject(){\n WordManager wm = WordManager.getInstance();\n JSONObject currentDatabase = new JSONObject();\n\n JSONArray offlineWords = new JSONArray();\n for(String s: wm.getOfflineWords()){\n offlineWords.put(s);\n }\n\n JSONArray vocabListWords = new JSONArray();\n for(Word w: wm) {\n vocabListWords.put(w.toJSON());\n }\n try {\n currentDatabase.put(\"offlineWords\", offlineWords);\n currentDatabase.put(\"vocabListWords\", vocabListWords);\n } catch (JSONException e){\n System.out.println(\"Error trying to create JSONObject in DatabaseIO\");\n }\n return currentDatabase;\n }", "title": "" }, { "docid": "fab0b0177ba31a9c829b18b2d2fb5b6c", "score": "0.5794582", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n boolean available = false;\n String code = null;\n while (!available) {\n code = UUID.randomUUID().toString().replaceAll(\"-\", \"\").substring(0, 8);\n TypedQuery<Equipo> query = em.createQuery(\"SELECT c FROM Equipo c WHERE c.codigoBarras = :cod\", Equipo.class);\n query.setParameter(\"cod\", code);\n List<Equipo> codeList = query.getResultList();\n if (!(codeList.size() > 0)) {\n available = true;\n }\n }\n return code;\n }", "title": "" }, { "docid": "876c2af6b5287c0496ddaa2643e2201c", "score": "0.5788638", "text": "@Override\n public String toString()\n {\n return makeJson();\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "007810e32d0cc3250be3c7f3ac9d7bd4", "score": "0.5781915", "text": "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "title": "" }, { "docid": "8c963e9bb541c908af1baf5ee1a1106a", "score": "0.5776395", "text": "public String toJson() {\r\n return toString();\r\n }", "title": "" }, { "docid": "fc546d576638556e51b07205176b5b35", "score": "0.57649016", "text": "public void convertToJSON() throws JSONException, IOException {\n //Create a JSONObject and JSONArray to hold all data\n JSONObject baseObject = new JSONObject();\n JSONArray eArray = new JSONArray();\n\n int arrayLength = notifications.size();\n\n for(int index=0; index<arrayLength; index++)\n {\n JSONObject currentObject = new JSONObject();\n currentObject.put(\"title\", notifications.get(index).getTitle());\n currentObject.put(\"description\", notifications.get(index).getDescription());\n eArray.put(currentObject);\n }\n baseObject.put(\"emergencies\", eArray);\n\n //STORE FILE\n String FILENAME = \"eStorage.json\";\n String JSONString = baseObject.toString();\n\n FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n fos.write(JSONString.getBytes());\n fos.close();\n }", "title": "" }, { "docid": "c09c71d281f9b31e5d89169ae154d357", "score": "0.576093", "text": "public static void createDB(){\r\n try{\r\n System.out.println(\"Please setup your database to proceed\");\r\n FileWriter dbConfigWriter = new FileWriter(\"dbconfig.json\");\r\n System.out.println(\"Enter number of fields in your collection\");\r\n Scanner inp = new Scanner(System.in);\r\n int numOfFields = inp.nextInt();\r\n JSONObject collection = new JSONObject();\r\n int i=0;\r\n while(i < numOfFields){\r\n System.out.println(\"Enter field \"+(i+1)+\" name with out spaces\");\r\n String field = inp.next();\r\n collection.put(\"field\"+(i+1), field);\r\n i++;\r\n }\r\n JSONArray collections = new JSONArray();\r\n collections.add(collection);\r\n dbConfigWriter.write(collections.toJSONString());\r\n dbConfigWriter.flush();\r\n dbConfigWriter.close();\r\n FileWriter dbDataWriter = new FileWriter(\"dbdata.json\");\r\n dbDataWriter.write(new JSONArray().toJSONString());\r\n dbDataWriter.flush();\r\n dbDataWriter.close();\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n}", "title": "" }, { "docid": "032fc9f280e6067b71d3541090ea4358", "score": "0.57543033", "text": "public JSONObject toJSON() {\n\t\tJSONObject result = new JSONObject();\n\t\tresult.put(\"id\", this.id);\n\t\tresult.put(\"name\", this.name);\n\t\tJSONArray jsonPrograms = new JSONArray();\n\t\tfor (int i = 0; i < this.programs.size(); i++) {\n\t\t\tjsonPrograms.put(this.programs.get(i).toJSON());\n\t\t}\n\t\tresult.put(\"programs\", jsonPrograms);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "2e56070ccb388721c1fde51e856e33a0", "score": "0.5752561", "text": "public String getJson() {\n\t\ttry {\n\t\t\tWebContext ctx = WebContextFactory.get();\n\t\t\tHttpServletRequest request = ctx.getHttpServletRequest();\t\t\t\n\t\t\tGameCode gc = kc.getNextGameEvent(WebUtils.getGameCode(request));\n\t\t\tWebUtils.setGameCode(request, gc);\n\t\t\tGame game = gc.getGame();\n\t\t\tStringBuilder jsn = new StringBuilder();\n\t\t\t\n\t\t\tString gameJSON = \"\";\n\t\t\tGson gson = new GsonBuilder()\n\t\t\t.setExclusionStrategies(new PpzExclusionStrategy())\n\t\t\t.serializeNulls()\n\t\t\t.create();\n\t\t\t\n\t\t\tFormattedGame fGame = new FormattedGame(game);\n\n\t\t\t\n\t\t\tgameJSON = gson.toJson(fGame);\n\t\n\t\t\t//String bank = \"\\\"bank\\\": {\\\"sporUcet\\\": \\\"\"+getSporeniValue()+\"\\\",\\\"hypoteka\\\": \\\"\"+getHypotekaValue()+\"\\\",\\\"spotrUver\\\": \\\"\"+getSpotrUverValue()+\"\\\",\\\"akciovyIF\\\": \\\"\"+getAkciovyIFValue()+\"\\\"}\";\n\t\t\tString event = \"\\\"events\\\": \" + getRandomEvent();\n\t\t\t\n\t\t\tjsn.append(\"{\");\n\t\t\tjsn.append(\"\\\"ppz\\\":\");\n\t\t\tjsn.append(gameJSON);\n\t\t\t//jsn.append(\", \");\n\t\t\t//jsn.append(bank);\n\t\t\t\n\t\t\tBoolean generateEvent = false;\n\t\t\tRandom randomGenerator = new Random();\n\t\t\tint randomInt = randomGenerator.nextInt(3);\n\t\t\tswitch (randomInt) {\n\t\t\t\tcase 0: generateEvent = true; break;\n\t\t\t\tcase 1: generateEvent = false; break;\n\t\t\t\tcase 2: generateEvent = false; break;\n\t\t\t}\t\t\n\t\t\tif(generateEvent == true) {\n\t\t\t\tjsn.append(\", \");\n\t\t\t\tjsn.append(event);\n\t\t\t}\n\t\t\tjsn.append(\"}\");\n\t\t\tString sJsn = jsn.toString();\n\t\treturn sJsn;\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"JSON Error\", e);\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "ebf8485f9818eb43930401b30a33314f", "score": "0.5751943", "text": "public String asJson() {\n\t\tGson gson = new Gson();\n\t\treturn gson.toJson(this);\n\t}", "title": "" }, { "docid": "85ebcca813f1cfce0b6e62a7e91af376", "score": "0.5742504", "text": "public void saveToJSON() {\n\t\tJSONHandler.saveAccounts(this.accounts);\n\t\tJSONHandler.saveVenues(this.venues);\n\t}", "title": "" }, { "docid": "f4d2c8cd0f94a0a69dbc20c4d67b7f4d", "score": "0.5740907", "text": "public JSONObject saveToJson();", "title": "" }, { "docid": "d47a9fc3c4497cf5a31e7a6e0595549c", "score": "0.57367975", "text": "public JSONArray listadoDB(String tabla){\n ResultSet resultado = null;\n int total = 0;\n JSONArray jsonArray = new JSONArray();\n try {\n Statement st = this.conexion.createStatement();\n resultado = st.executeQuery(\"SELECT * FROM \"+tabla);\n if (resultado.last()) {\n total = resultado.getRow();\n resultado.beforeFirst(); \n }\n while (resultado.next()) {\n int total_rows = resultado.getMetaData().getColumnCount();\n JSONObject obj = new JSONObject();\n for (int i = 0; i < total_rows; i++) {\n obj.put(resultado.getMetaData().getColumnLabel(i + 1)\n .toLowerCase(), resultado.getObject(i + 1));\n }\n jsonArray.put(obj);\n }\n return jsonArray;\n }\n catch (SQLException sqle) {\n sqle.getMessage();\n return jsonArray;\n }\n }", "title": "" }, { "docid": "967c4ca13aa4fcf0ec855da08668ec71", "score": "0.5689849", "text": "private Object serializeResultSet(ResultSet _source) {\n\n\t\tJSONArray ja = new JSONArray();\n\t\t\n\t\ttry {\n\t\t\twhile(_source.next()){\n\t\t\t\t//create JSON\n\t\t\t\tJSONObject jo = new JSONObject();\n\t\t\t\tjo.put(\"uuid\", _source.getString(\"UUID\"));\n\t\t\t\tjo.put(\"name\", _source.getString(\"name\"));\n\t\t\t\tjo.put(\"description\", _source.getString(\"description\"));\n\t\t\t\tjo.put(\"domain\", _source.getString(\"domain\"));\n\t\t\t\tjo.put(\"classification\", _source.getString(\"classification\"));\n\t\t\t\tjo.put(\"severity\", _source.getString(\"severity\"));\n\t\t\t\tjo.put(\"priority\", _source.getString(\"priority\"));\n\n\t\t\t\tjo.put(\"status\", Alert.getStatusName(_source.getInt(\"status\")));\n\t\t\t\t\n\t\t\t\tJSONObject metadata = new JSONObject(_source.getString(\"metadata\"));\n\t\t\t\tjo.put(\"metadata\", metadata);\n\n\t\t\t\tjo.put(\"lastStatusChange\", Instant.ofEpochMilli(_source.getLong(\"lastStatusChange\")).toString());\n\t\t\t\tjo.put(\"created\", Instant.ofEpochMilli(_source.getLong(\"created\")).toString());\n\t\t\t\tjo.put(\"lastOccurrence\", Instant.ofEpochMilli(_source.getLong(\"lastOccurrence\")).toString());\n\n\t\t\t\tjo.put(\"createdIndex\", _source.getString(\"createdIndex\"));\n\t\t\t\tjo.put(\"lastIndex\", _source.getString(\"lastIndex\"));\n\t\t\t\t\n\t\t\t\tjo.put(\"acknowledgeBy\", _source.getString(\"acknowledgeBy\"));\n\t\t\t\tjo.put(\"acknowledgeAt\", Instant.ofEpochMilli(_source.getLong(\"acknowledgeAt\")).toString());\n\n\t\t\t\tjo.put(\"comment\", _source.getString(\"comment\"));\n\t\t\t\tjo.put(\"commentBy\", _source.getString(\"commentBy\"));\n\t\t\t\tjo.put(\"commentedAt\", Instant.ofEpochMilli(_source.getLong(\"commentedAt\")).toString());\n\n\t\t\t\tjo.put(\"tally\", _source.getString(\"tally\"));\n\t\t\t\tjo.put(\"detailsContentType\", _source.getString(\"detailsContentType\"));\n\t\t\t\tjo.put(\"details\", _source.getString(\"details\"));\n\t\t\t\t\n\t\t\t\tjo.put(\"snoozed\", _source.getBoolean(\"snoozed\"));\n\t\t\t\tjo.put(\"snoozedBy\", _source.getString(\"snoozedBy\"));\n\t\t\t\tjo.put(\"snoozedAt\", Instant.ofEpochMilli(_source.getLong(\"snoozedAt\")).toString());\n\t\t\t\t\n\t\t\t\tjo.put(\"wellId\", _source.getString(\"wellId\"));\n\t\t\t\t// backwards compatibility\n\t\t\t\tjo.put(\"wellName\", metadata.optString(\"wellName\"));\n\t\t\t\tjo.put(\"rigName\", metadata.optString(\"rigName\"));\n\t\t\t\t\n\t\t\t\tjo.put(\"notificationsSent\", _source.getBoolean(\"notificationsSent\"));\n\n\t\t\t\tjo.putOpt(\"holeDepth\", SQLHelper.getDoubleOrNull(_source, \"holeDepth\"));\n\t\t\t\tjo.putOpt(\"finalHoleDepth\", SQLHelper.getDoubleOrNull(_source, \"finalHoleDepth\"));\n\t\t\t\tjo.putOpt(\"bitDepth\", SQLHelper.getDoubleOrNull(_source, \"bitDepth\"));\n\t\t\t\tjo.putOpt(\"finalBitDepth\", SQLHelper.getDoubleOrNull(_source, \"finalBitDepth\"));\n\t\t\t\tjo.putOpt(\"rigState\", SQLHelper.getIntegerOrNull(_source, \"rigState\"));\n\t\t\t\tjo.putOpt(\"finalRigState\", SQLHelper.getIntegerOrNull(_source, \"finalRigState\"));\n\t\t\t\t\n\t\t\t\tja.put(jo);\n\t\t\t}\n\t\t\tSystem.out.println(ja.toString());\n\t\t\treturn ja;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "05e611e282e92dd071d496e451ecfaa8", "score": "0.56817275", "text": "public String toJson() {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "28956a289ecd0d44665bf9262ce433b2", "score": "0.56782204", "text": "@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public String getJson2() {\n String testData = Generator.generatePerson(2, 4);\r\n \r\n return testData;\r\n }", "title": "" }, { "docid": "7c79f277c3d9e08bff1def4397ce523a", "score": "0.5675681", "text": "private JSONArray carsToJson() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Car c : parkingList) {\r\n jsonArray.put(c.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }", "title": "" }, { "docid": "db6f823202a43f6d3fd712721505e1d4", "score": "0.5673877", "text": "@GET\r\n @Produces(\"application/json\")\r\n public String getJson(@PathParam(\"id\") String filmId) throws JSONException, SQLException, NamingException {\r\n \r\n InitialContext ctx= new InitialContext();\r\n DataSource ds = (DataSource) ctx.lookup(\"jdbc/conexionPool\");\r\n Connection conn = ds.getConnection();\r\n Statement sqlStatement = conn.createStatement();\r\n sqlStatement.execute(\"USE sakila;\");\r\n \r\n String sql = String.format(\"SELECT * FROM film WHERE film_id = '%s'\",\r\n filmId);\r\n ResultSet res = sqlStatement.executeQuery(sql);\r\n JSONArray filmsArray = new JSONArray();\r\n System.out.println(\"hola\");\r\n while(res.next()){\r\n JSONObject film = new JSONObject();\r\n film.put(\"id\",res.getInt( \"film_id\" ));\r\n film.put(\"title\",res.getString( \"title\" ));\r\n String sqlActors = String.format(\"SELECT * FROM film_actor WHERE film_id = '%s'\",\r\n res.getString( \"film_id\" ));\r\n ResultSet resActors = conn.createStatement().executeQuery(sqlActors);\r\n JSONArray actorsArray = new JSONArray();\r\n while(resActors.next()){\r\n String sqlActorData = String.format(\"SELECT * FROM actor_info WHERE actor_id = '%s'\",\r\n resActors.getInt( \"actor_id\" ));\r\n ResultSet resActorData = conn.createStatement().executeQuery(sqlActorData);\r\n while(resActorData.next()){\r\n JSONObject actor = new JSONObject();\r\n actor.put(\"first_name\", resActorData.getString( \"first_name\" ));\r\n actor.put(\"last_name\", resActorData.getString( \"last_name\" ));\r\n actorsArray.put(actor);\r\n };\r\n resActorData.close();\r\n \r\n };\r\n resActors.close();\r\n film.put(\"actors\",actorsArray);\r\n filmsArray.put(film);\r\n };\r\n res.close();\r\n\r\n return filmsArray.toString();\r\n }", "title": "" }, { "docid": "7f1c0782f5d4c4c72fd3b732215ce522", "score": "0.5669712", "text": "private void getSqliteData1() {\n\n Cursor cursor = dbHelper.getData();\n if (cursor.getCount() == 0) {\n Log.e(\"Error\", \"no Data\");\n return;\n }\n JSONArray resultSet = new JSONArray();\n JSONObject returnObj = new JSONObject();\n\n cursor.moveToFirst();\n while (cursor.isAfterLast() == false) {\n\n int totalColumn = cursor.getColumnCount();\n JSONObject rowObject = new JSONObject();\n\n for (int i = 0; i < totalColumn; i++) {\n if (cursor.getColumnName(i) != null) {\n try {\n if (cursor.getString(i) != null) {\n Log.d(\"TAG_NAME2\", cursor.getString(i));\n rowObject.put(cursor.getColumnName(i), cursor.getString(i));\n } else {\n rowObject.put(cursor.getColumnName(i), \"\");\n }\n } catch (Exception e) {\n Log.d(\"TAG_NAME1\", e.getMessage());\n }\n }\n }\n resultSet.put(rowObject);\n cursor.moveToNext();\n }\n cursor.close();\n String datajson = resultSet.toString();\n datajson.replaceAll(\"\\\\\\\\\", \"\");\n Log.d(\"datajson\", datajson);\n Config.CartData = datajson;\n }", "title": "" }, { "docid": "4137d25920f000c732b6d2efcc1c4686", "score": "0.5668272", "text": "public String getJsonProductos(){\n\t\tSystem.out.println(\"Haciendo json...\");\n\t\tthis.lista = new ArrayList<String>();\n\t\tlista.add(\"Manteca\");\n\t\tlista.add(\"Mamadera\");\n\t\tlista.add(\"Mermelada\");\n\t\tlista.add(\"Mandioca\");\n\t\t\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "4e112cd11b06d47656a12b74e009697e", "score": "0.5663878", "text": "public String toJson(Object obj);", "title": "" }, { "docid": "815992fd9d312d04f450ef3acd5fbfa0", "score": "0.5661866", "text": "private String newJson() {\n\t\tif (recordIterator.hasNext()) {\n\t\t\treturn recordIterator.next().value();\n\t\t} else {\n\t\t\tupdateIterator();\n\t\t\tconsumer.commitAsync();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "f1bfc9cdeb16a025325cc50a9629577b", "score": "0.56616586", "text": "public void generateTaskPackJSON(ArrayList<TaskPack> taskPacks) throws JSONException {\n\n JSONArray mainArray = new JSONArray();\n JSONArray itemArray;\n\n JSONObject itemObject;\n JSONObject taskObject;\n JSONObject taskPackObject;\n JSONObject finalJsonObject = new JSONObject();\n\n for (TaskPack taskPack : taskPacks) {\n JSONArray taskArray = new JSONArray();\n ArrayList<Task> Tasks = (ArrayList<Task>) databaseManager.listTasksByTAskPackId(taskPack.getId());\n for (Task task : Tasks) {\n final LinkedHashMap<Long, Item> items = databaseManager.loadTaskWiseItem(task);\n itemArray = new JSONArray();\n if (items != null) {\n for (Map.Entry<Long, Item> itemValue : items.entrySet()) {\n Item item = itemValue.getValue();\n\n itemObject = new JSONObject();\n itemObject.put(ItemDao.Properties.X.columnName, item.getX());\n itemObject.put(ItemDao.Properties.Y.columnName, item.getY());\n itemObject.put(ItemDao.Properties.Rotation.columnName, item.getRotation());\n itemObject.put(ItemDao.Properties.Key.columnName, item.getKey());\n itemObject.put(ItemDao.Properties.IsCircleView.columnName, item.getIsCircleView());\n itemObject.put(ItemDao.Properties.CircleColor.columnName, item.getCircleColor());\n itemObject.put(ItemDao.Properties.UserText.columnName, item.getUserText());\n itemObject.put(ItemDao.Properties.TextColor.columnName, item.getTextColor());\n itemObject.put(ItemDao.Properties.TextSize.columnName, item.getTextSize());\n itemObject.put(ItemDao.Properties.BorderColor.columnName, item.getBorderColor());\n itemObject.put(ItemDao.Properties.BackgroundColor.columnName, item.getBackgroundColor());\n itemObject.put(ItemDao.Properties.Drawable.columnName, item.getDrawable());\n itemObject.put(ItemDao.Properties.Width.columnName, item.getWidth());\n itemObject.put(ItemDao.Properties.Height.columnName, item.getHeight());\n itemObject.put(ItemDao.Properties.Left.columnName, item.getLeft());\n itemObject.put(ItemDao.Properties.Right.columnName, item.getRight());\n itemObject.put(ItemDao.Properties.Top.columnName, item.getTop());\n itemObject.put(ItemDao.Properties.Bottom.columnName, item.getBottom());\n itemObject.put(ItemDao.Properties.ImagePath.columnName, item.getImagePath());\n itemObject.put(ItemDao.Properties.Type.columnName, item.getType());/*\n itemObject.put(ItemDao.Properties.CreatedAt.columnName, item.getCreatedAt() == null ? new Date() : item.getCreatedAt());\n itemObject.put(ItemDao.Properties.UpdatedAt.columnName, item.getUpdatedAt() == null ? new Date() : item.getUpdatedAt());*/\n itemObject.put(ItemDao.Properties.OpenApp.columnName, item.getOpenApp());\n itemObject.put(ItemDao.Properties.Result.columnName, item.getResult());\n itemObject.put(ItemDao.Properties.AllowDragDrop.columnName, item.getAllowDragDrop());\n itemObject.put(ItemDao.Properties.DragDropTarget.columnName, item.getDragDropTarget());\n itemObject.put(ItemDao.Properties.CornerRound.columnName, item.getCornerRound());\n itemObject.put(ItemDao.Properties.NavigateTo.columnName, item.getNavigateTo());\n itemObject.put(ItemDao.Properties.ShowedBy.columnName, item.getShowedBy());\n itemObject.put(ItemDao.Properties.HideBy.columnName, item.getHideBy());\n itemObject.put(ItemDao.Properties.CloseApp.columnName, item.getCloseApp());\n itemObject.put(ItemDao.Properties.ItemSound.columnName, item.getItemSound());\n itemObject.put(ItemDao.Properties.OpenUrl.columnName, item.getOpenUrl());\n itemObject.put(ItemDao.Properties.FontTypeFace.columnName, item.getFontTypeFace());\n itemObject.put(ItemDao.Properties.FontAlign.columnName, item.getFontAlign());\n itemObject.put(ItemDao.Properties.AutoPlay.columnName, item.getAutoPlay());\n itemObject.put(ItemDao.Properties.SoundDelay.columnName, item.getSoundDelay());\n itemObject.put(ItemDao.Properties.BorderPixel.columnName, item.getBorderPixel());\n // Tutorial TAG\n itemObject.put(ItemDao.Properties.Helper.columnName, item.getHelper());\n itemObject.put(ItemDao.Properties.TutorialX.columnName, item.getTutorialX());\n itemObject.put(ItemDao.Properties.TutorialY.columnName, item.getTutorialY());\n// itemObject.put(ItemDao.Properties.TutorialLeft.columnName, item.getTutorialLeft());\n// itemObject.put(ItemDao.Properties.TutorialRight.columnName, item.getTutorialRight());\n itemObject.put(ItemDao.Properties.TutorialTag.columnName, item.getTutorialTag());\n itemObject.put(ItemDao.Properties.TutorialAnimation.columnName, item.getTutorialAnimation());\n\n\n itemArray.put(itemObject);\n\n copyForShare(item.getImagePath(), appImagePath, shareImagePath);\n //added by reaz for item sound\n copyForShare(item.getItemSound(), appSoundPath, shareSoundPath);\n }\n }\n\n taskObject = new JSONObject();\n taskObject.put(TaskDao.Properties.UniqId.columnName, task.getUniqId());\n taskObject.put(TaskDao.Properties.Name.columnName, task.getName());\n taskObject.put(TaskDao.Properties.TaskImage.columnName, task.getTaskImage());\n taskObject.put(TaskDao.Properties.Type.columnName, task.getType());\n taskObject.put(TaskDao.Properties.BackgroundColor.columnName, task.getBackgroundColor());\n taskObject.put(TaskDao.Properties.Active.columnName, task.getActive());\n taskObject.put(TaskDao.Properties.CreatedAt.columnName, task.getCreatedAt());\n taskObject.put(TaskDao.Properties.UpdatedAt.columnName, task.getUpdatedAt());\n taskObject.put(TaskDao.Properties.UserId.columnName, task.getUserId());\n taskObject.put(TaskDao.Properties.SlideSequence.columnName, task.getSlideSequence());\n taskObject.put(TaskDao.Properties.FeedbackImage.columnName, task.getFeedbackImage());\n taskObject.put(TaskDao.Properties.FeedbackAnimation.columnName, task.getFeedbackAnimation());\n taskObject.put(TaskDao.Properties.PositiveAnimation.columnName, task.getPositiveAnimation());\n taskObject.put(TaskDao.Properties.NegativeAnimation.columnName, task.getNegativeAnimation());\n taskObject.put(TaskDao.Properties.FeedbackSound.columnName, task.getFeedbackSound());\n taskObject.put(TaskDao.Properties.PositiveSound.columnName, task.getPositiveSound());\n taskObject.put(TaskDao.Properties.NegativeSound.columnName, task.getNegativeSound());\n\n taskObject.put(TaskDao.Properties.FeedbackType.columnName, task.getFeedbackType());\n\n taskObject.put(TaskDao.Properties.ErrorBgColor.columnName, task.getErrorBgColor());\n taskObject.put(TaskDao.Properties.Errortext.columnName, task.getErrortext());\n taskObject.put(TaskDao.Properties.ErrorImage.columnName, task.getErrorImage());\n // for tutorial\n taskObject.put(TaskDao.Properties.Tutorial.columnName, task.getTutorial());\n taskObject.put(TaskDao.Properties.Transition.columnName, task.getTransition());\n\n taskObject.put(ItemDao.TABLENAME, itemArray);\n taskArray.put(taskObject);\n\n // Copying related resources to share folder\n copyForShare(task.getTaskImage(), appImagePath, shareImagePath);\n copyForShare(task.getFeedbackImage(), appImagePath, shareImagePath);\n // Copying related resources to share folder for error image\n copyForShare(task.getErrorImage(), appImagePath, shareImagePath);\n\n copyForShare(task.getFeedbackSound(), appSoundPath, shareSoundPath);\n copyForShare(task.getPositiveSound(), appSoundPath, shareSoundPath);\n copyForShare(task.getNegativeSound(), appSoundPath, shareSoundPath);\n\n }\n\n taskPackObject = new JSONObject();\n taskPackObject.put(TaskPackDao.Properties.Name.columnName, taskPack.getName());\n taskPackObject.put(TaskPackDao.Properties.Level.columnName, taskPack.getLevel());\n taskPackObject.put(TaskPackDao.Properties.FirstLayerTaskID.columnName, taskPack.getFirstLayerTaskID());\n taskPackObject.put(TaskPackDao.Properties.CreatedAt.columnName, taskPack.getCreatedAt());\n taskPackObject.put(TaskDao.TABLENAME, taskArray);\n mainArray.put(taskPackObject);\n }\n\n finalJsonObject.put(TaskPackDao.TABLENAME, mainArray);\n\n // Save JSON to SD card\n try {\n File sdCardDirectory = new File(shareJSONPath);\n if (!sdCardDirectory.exists()) {\n sdCardDirectory.mkdirs();\n }\n\n\n File jsonFile = new File(sdCardDirectory, jsonFileName);\n FileWriter writer = new FileWriter(jsonFile);\n writer.append(finalJsonObject.toString());\n writer.flush();\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n }", "title": "" }, { "docid": "ddc046b84a96412ac5f67c8dd4881928", "score": "0.56615365", "text": "private static String emp2JSON(Employee emp) {\n Jsonb jsonb = JsonbBuilder.create();\n String jsonEmp = jsonb.toJson(emp);\n return jsonEmp;\n }", "title": "" }, { "docid": "1b39400ed7133650a8298c76a2662ec0", "score": "0.56356305", "text": "@AutoEscape\n\tpublic String getJson_richiedente();", "title": "" }, { "docid": "b9961a37a1aac36d062dcb99bba32663", "score": "0.5634101", "text": "public String toJson() {\n StringBuilder builder = new StringBuilder(\"{\");\n for(int i = 0; i < termCount; i++) {\n builder.append(\"\\\"\");\n builder.append(terms[i].term);\n builder.append(\"\\\"\");\n builder.append(\":\");\n builder.append(terms[i].list.toJson()); // starts a series of toJson calls down the object path\n builder.append(\",\");\n }\n builder.deleteCharAt(builder.length()-1); // remove the trailing comma\n builder.append(\"}\");\n return builder.toString();\n }", "title": "" }, { "docid": "7408fd83d281d6287d0966949e1fd30f", "score": "0.5621718", "text": "public String toJSON() {\n\t\tJSONObject allEmps = new JSONObject();\n\t\tJSONArray VArray = new JSONArray();\n\t\tJSONArray EArray = new JSONArray();\n\t\tCollection<node_data> V = this.getV();\n\t\tIterator<node_data> iter = V.iterator();\n\t\tCollection<edge_data> E = null;\n\t\tIterator itr = null;\n\n\t\ttry {\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tnode_data nn = (node_data) iter.next();\n\t\t\t\tint n = nn.getKey();\n\t\t\t\tString p = nn.getLocation().toString();\n\t\t\t\tJSONObject node = new JSONObject();\n\t\t\t\tnode.put(\"id\", n);\n\t\t\t\tnode.put(\"pos\", p);\n\t\t\t\tVArray.put(node);\n\t\t\t\titr = this.getE(n).iterator();\n\n\t\t\t\twhile(itr.hasNext()) {\n\t\t\t\t\tedge_data ee = (edge_data)itr.next();\n\t\t\t\t\tJSONObject edge = new JSONObject();\n\t\t\t\t\tedge.put(\"src\", ee.getSrc());\n\t\t\t\t\tedge.put(\"dest\", ee.getDest());\n\t\t\t\t\tedge.put(\"w\", ee.getWeight());\n\t\t\t\t\tEArray.put(edge);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tallEmps.put(\"Nodes\", VArray);\n\t\t\tallEmps.put(\"Edges\", EArray);\n\t\t} catch (Exception var14) {\n\t\t\tvar14.printStackTrace();\n\t\t}\n\n\t\treturn allEmps.toString();\n\t}", "title": "" }, { "docid": "568fb9647f867c4280428680378a882e", "score": "0.5621657", "text": "private String toJson(Object o) \n {\n\t // TODO Auto-generated method stub\n \t// to convert user object to Json string and return it\n\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t try\n\t\t {\n\t\t\t return mapper.writeValueAsString(o);\n\t\t }\n\t\t catch(JsonProcessingException e)\n\t\t {\n\t\t\t e.printStackTrace();\n\t\t }\n\t return null;\n \n }", "title": "" }, { "docid": "fcd8316c9889582f57c838078bdcb2a0", "score": "0.56036395", "text": "public String exportToJson() {\n return exportToJson(false);\n }", "title": "" }, { "docid": "1b2ba14c4694590e47cb8a9fd7628287", "score": "0.5602329", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n return \"[{\\\"name\\\": \\\"Jan\\\",\\\"mail\\\":\\\"jan@a.dk\\\"},{\\\"name\\\":\\\"Ann\\\",\\\"mail\\\":\\\"ann@a.dk\\\"},{\\\"name\\\":\\\"ib\\\",\\\"mail\\\":\\\"ib@a.dk\\\"}]\";\n }", "title": "" }, { "docid": "9012f14ba2c08d77871e2989e19a2b63", "score": "0.5599342", "text": "@RolesAllowed({\"trainer\"})\n @Path(\"/all\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response dbDump(){\n ArrayList<String> documents = new ArrayList<>();\n //Gathers the specific collection we want\n FindIterable<Document> document = users.find();\n //Iterate through each db hit and amend it to a string\n for (Document doc: document){\n documents.add(doc.toJson());\n }\n mongoClient.close();\n return Response.ok(documents.toString(), MediaType.APPLICATION_JSON).build();\n }", "title": "" }, { "docid": "aab7d63fff5e2655ed885efe56cc11c6", "score": "0.55754304", "text": "private static Map[] printJSON(ResultSet count, ResultSet query) throws SQLException {\n ResultSetMetaData meta = query.getMetaData();\n int columns = meta.getColumnCount();\n\n // determine the number of results that match the query\n count.next();\n int results = count.getInt(1);\n\n Map[] values = new Map[results];\n int index = results;\n\n while(query.next()){\n Map tempMap = new HashMap();\n for(int i = 1; i <= columns; ++i){\n tempMap.put(meta.getColumnName(i), query.getObject(i));\n }\n values[results - index] = tempMap;\n --index;\n }\n return values;\n }", "title": "" }, { "docid": "934cb2863380032ccc8ae98c5008c9d5", "score": "0.55734223", "text": "public static String\n\tjavaToJson(Object obj){\nString json=\"{}\";\t\nObjectMapper mapper=new ObjectMapper();\n try {\n\tjson=mapper.writeValueAsString(obj);\n} catch (JsonGenerationException e) {\n\te.printStackTrace();\n} catch (JsonMappingException e) {\n\te.printStackTrace();\n} catch (IOException e) {\n\te.printStackTrace();\n}\n\t\treturn json;\n\t}", "title": "" }, { "docid": "d38ecf1c3b7075ac02fe9e4e91a7b9c0", "score": "0.5560757", "text": "@Override\n public JSONObject getItems() {\n JSONObject result = cursorToJson(database.getItems());\n return result;\n }", "title": "" }, { "docid": "a68ad8b757d59d769b80bf96471dfa05", "score": "0.55562586", "text": "String getEntryJson();", "title": "" }, { "docid": "bd79ac2b081e3b4d42395cf628de7b2e", "score": "0.55547637", "text": "public JSONObject toJSON(){\n JSONObject blockJs=new JSONObject();\n blockJs.put(\"name\",getName());\n blockJs.put(\"family\", getFamily());\n blockJs.put(\"module\", getModule());\n blockJs.put(\"description\", getDescription());\n JSONArray fields=new JSONArray();\n for(String key:properties.keySet()){\n Property property=properties.get(key);\n JSONObject field=new JSONObject();\n field.put(\"name\",property.getName());\n field.put(\"type\",property.getType());\n field.put(\"defaultValue\",property.getDefaultValue());\n field.put(\"attrs\",\"editable\");\n field.put(\"description\",property.getDescription());\n fields.put(field);\n }\n\n if(input!=null && input.size()!=0) {\n for(String inputParam:input.keySet()) {\n Data inputValue=input.get(inputParam);\n JSONObject inputObj = new JSONObject();\n inputObj.put(\"name\", inputValue.getName());\n inputObj.put(\"type\", inputValue.getType());\n inputObj.put(\"attrs\", \"input\");\n inputObj.put(\"card\", inputValue.getCardinality());\n fields.put(inputObj);\n }\n }\n\n if(output!=null && output.size()!=0) {\n for(String outputParam:output.keySet()){\n Data outputValue=output.get(outputParam);\n JSONObject outputObj = new JSONObject();\n outputObj.put(\"name\", outputValue.getName());\n outputObj.put(\"type\", outputValue.getType());\n outputObj.put(\"attrs\", \"output\");\n outputObj.put(\"card\", outputValue.getCardinality());\n fields.put(outputObj);\n }\n }\n blockJs.put(\"fields\", fields);\n\n return blockJs;\n }", "title": "" }, { "docid": "604a45236f6965edb4795fd0c4a5aea3", "score": "0.55471957", "text": "@Override\n\tpublic String toJson() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cc019fc3fad2fb4e05fc54246c1464b7", "score": "0.55414736", "text": "public static String toJSON(List<Gene> genesList) {\n JSONArray jsonList = new JSONArray();\n for (Gene gene : genesList) {\n JSONObject jsonGene = new JSONObject();\n jsonGene.put(\"centimorgan\", gene.getCentimorgan() == null ? \"\" : gene.getCentimorgan());\n jsonGene.put(\"chromosome\", gene.getChromosome() == null ? \"\" : gene.getChromosome());\n jsonGene.put(\"cytoband\", gene.getCytoband() == null ? \"\" : gene.getCytoband());\n jsonGene.put(\"ensemblReference\", gene.getEnsemblReference()== null ? \"\" : gene.getEnsemblReference());\n jsonGene.put(\"founderLineNumber\", gene.getFounderLineNumber()== null ? \"\" : gene.getFounderLineNumber());\n jsonGene.put(\"gene_key\", Integer.toString(gene.getGene_key()));\n jsonGene.put(\"mgiReference\", gene.getMgiReference()== null ? \"\" : gene.getMgiReference());\n jsonGene.put(\"name\", gene.getName() == null ? \"\" : gene.getName());\n jsonGene.put(\"plasmidConstruct\", gene.getPlasmidConstruct()== null ? \"\" : gene.getPlasmidConstruct());\n jsonGene.put(\"promoter\", gene.getPromoter()== null ? \"\" : gene.getPromoter());\n jsonGene.put(\"species\", gene.getSpecies() == null ? \"\" : gene.getSpecies());\n jsonGene.put(\"symbol\", gene.getSymbol() == null ? \"\" : gene.getSymbol());\n \n if ((gene.getSynonyms() != null) && (gene.getSynonyms().size() > 0)) {\n JSONArray synonyms = new JSONArray();\n Iterator<GeneSynonym> iterator = gene.getSynonyms().iterator();\n while (iterator.hasNext()) {\n GeneSynonym geneSynonym = iterator.next();\n JSONObject synonym = new JSONObject();\n synonym.put(\"geneSynonym_key\", Integer.toString(geneSynonym.getGeneSynonym_key()));\n synonym.put(\"name\", geneSynonym.getName());\n synonym.put(\"symbol\", geneSynonym.getSymbol());\n synonyms.add(synonym);\n }\n jsonGene.put(\"synonyms\", synonyms);\n }\n \n jsonList.add(jsonGene);\n }\n \n\n // Gson dosn't reserve space for fields with null values!!!!\n//////// Gson gson = new Gson();\n//////// String s = gson.toJson(genesDAOList);\n//////// System.out.println(s);\n//////// return s;\n \n return jsonList.toString();\n }", "title": "" }, { "docid": "60d76b5f128ea8c5d572ae374bfdf553", "score": "0.5534285", "text": "public String makeJson()\n {\n return JsonParser.parsePretty(messages);\n }", "title": "" }, { "docid": "675fe114dab99a30581f8b83a7d3bd13", "score": "0.5533039", "text": "public String getStringRepresentation() {\n JSONObject jsonCollection = new JSONObject();\n jsonCollection.put(\"name\", this.name);\n JSONArray jsonElements = new JSONArray();\n for (int i=0; i<elements.size();i++){\n if (elements.get(i) instanceof Book){\n JSONObject bo = new JSONObject(((Book) elements.get(i)).getStringRepresentation());\n jsonElements.put(bo);\n //jsonElements.put(((Book) elements.get(i)).getStringRepresentation());\n }\n else if (elements.get(i) instanceof Collection){\n JSONObject bo = new JSONObject(((Collection) elements.get(i)).getStringRepresentation());\n jsonElements.put(bo);\n //jsonElements.put(((Collection) elements.get(i)).getStringRepresentation());\n }\n }\n jsonCollection.put(\"elements\", jsonElements);\n\n return jsonCollection.toString();\n }", "title": "" }, { "docid": "e4fdfc5cbc9949852fecb5311be43445", "score": "0.5514099", "text": "@GET\r\n\t@Path(\"/database\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic String Database(@Context HttpServletRequest request) throws PException {\n\t\tString dbList = adminDb.getDBList();\r\n\t\t// System.out.println(dbList);\r\n\t\treturn dbList;\r\n\t}", "title": "" }, { "docid": "82856908d917109fcec47ed3cf1fbf95", "score": "0.5508315", "text": "private String returnJsonData(Object src){\n\t Gson gson = new Gson();\r\n\t\t\tString feeds = gson.toJson(src);\r\n\t\t\treturn feeds;\r\n\t\t}", "title": "" }, { "docid": "82856908d917109fcec47ed3cf1fbf95", "score": "0.5508315", "text": "private String returnJsonData(Object src){\n\t Gson gson = new Gson();\r\n\t\t\tString feeds = gson.toJson(src);\r\n\t\t\treturn feeds;\r\n\t\t}", "title": "" }, { "docid": "82856908d917109fcec47ed3cf1fbf95", "score": "0.5508315", "text": "private String returnJsonData(Object src){\n\t Gson gson = new Gson();\r\n\t\t\tString feeds = gson.toJson(src);\r\n\t\t\treturn feeds;\r\n\t\t}", "title": "" }, { "docid": "a41763633159f098eaf14f7e6d0ac4e6", "score": "0.5505599", "text": "public String toJsonString() {\n return new Gson().toJson(this);\n }", "title": "" }, { "docid": "a41763633159f098eaf14f7e6d0ac4e6", "score": "0.5505599", "text": "public String toJsonString() {\n return new Gson().toJson(this);\n }", "title": "" }, { "docid": "feffd93f40da6b76b26f7a8e990d4805", "score": "0.5504077", "text": "private JSONObject generateJsonObject() {\n JSONObject obj = new JSONObject();\n obj.put(\"hello\", \"world\");\n obj.put(\"number\", 256);\n obj.put(\"boolean\", true);\n return obj;\n }", "title": "" }, { "docid": "d6e00fd3bd22ee0301161c304d934d2b", "score": "0.5502255", "text": "@GET\n @Path(\"/montadoras\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getMontadorasVeiculos() {\n Gson gson = new Gson();\n List listaObjResult = VeiculosDAO.listarMontadoras();\n\n List<Map<String, Object>> listJson = new ArrayList<>();\n for (Object veiculo : listaObjResult) {\n Map<String, Object> map = new HashMap<>();\n map.put(\"montadora\", veiculo);\n listJson.add(map);\n }\n for (Map<String, Object> map : listJson) {\n String json = gson.toJson(map);\n System.out.println(json);\n }\n\n return gson.toJson(listJson);\n }", "title": "" }, { "docid": "359522d82fcab08dd4eb3facb07e9da9", "score": "0.54995066", "text": "@GetMapping(value = \"/exercises\")\n @ResponseBody\n public String indexExercises(){\n\n //get all the entries in the db and json it\n Gson gson = new Gson();\n return gson.toJson(exerciseRepo.findAll());\n }", "title": "" }, { "docid": "3c48df4c0fc306bb13f602bb662f2509", "score": "0.54988766", "text": "public JSONObject getEvent(int id) {\n JSONArray formattedEvent = new JSONArray();\n try{\n PreparedStatement psmt = conn.prepareStatement(\"SELECT * FROM events WHERE id=?;\");\n psmt.setInt(1, id);\n ResultSet rs = psmt.executeQuery();\n if(rs.next()){\n int total_rows = rs.getMetaData().getColumnCount();\n for (int i = 0; i < total_rows; i++) {\n JSONObject obj = new JSONObject();\n obj.put(rs.getMetaData().getColumnLabel(i + 1)\n .toLowerCase(), rs.getObject(i + 1));\n formattedEvent.put(obj);\n }\n }\n return new JSONObject();\n } catch (SQLException e){\n e.printStackTrace();\n return new JSONObject(formattedEvent);\n }\n finally {\n if (conn != null) {\n try {\n conn.close(); // <-- This is important\n DataStore.getInstance().newConnection();\n conn = DataStore.getInstance().getConn();\n } catch (SQLException e) {\n /* handle exception */\n }\n }\n }\n\n }", "title": "" }, { "docid": "b14ed800a0abb9c53f4154f104b5df1c", "score": "0.549771", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic String listSuppliersByJson() {\n\t\tList<Supplier> slist = sessionFactory.getCurrentSession().createQuery(\"from Supplier\").getResultList();\n\t\tGson g = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();\n\t\tString list = g.toJson(slist);\n\t\treturn list;\n\t}", "title": "" }, { "docid": "5e06111672f79bd8f7539ef6f33a05a6", "score": "0.54938287", "text": "private String toJSON() {\n Document message = new Document();\n Document hostPort = new Document();\n\n hostPort.append(\"host\", host);\n hostPort.append(\"port\", port);\n\n message.append(\"command\", command);\n message.append(\"hostPort\", hostPort);\n\n return message.toJson();\n }", "title": "" } ]
f74557c7e8a63a83c832812bfb2872e4
0 1 2 3 4 5 0 1 1 2
[ { "docid": "fb303de8fd003960f13f6e7434b7344d", "score": "0.0", "text": "public int longestConsecutive(int[] nums) {\n if (null == nums || nums.length == 0) {\n return 0;\n }\n Arrays.sort(nums);\n //连续数最大长度\n int res = 1;\n //start连续数起始指针,end连续数结束指针\n int start = 0, end = 0;\n for (int i = 0; i < nums.length - 1; i++) {\n //end右移一位\n end = i + 1;\n //i位子和i+1位置的数连续\n if (nums[i] + 1 == nums[i + 1]) {\n res = Math.max(res, end - start + 1);\n //i位子和i+1位置的数相等\n } else if (nums[i] == nums[i + 1]) {\n //起始指针右移一位,抵消i位子和i+1位置的数相等对长度计算的影响\n start++;\n //i位子和i+1位置的数不相等\n } else {\n //起始指针指向i+1位子\n start = i + 1;\n }\n }\n return res;\n }", "title": "" } ]
[ { "docid": "a50b72629af312e85bfcaccd399ccf9e", "score": "0.5498622", "text": "@Override\n public void strum() {\n // Starting from 6, move all the way to down the for loop, plucking all of\n // the cables.\n strum(6);\n }", "title": "" }, { "docid": "683d301ce4a2c184baf730f0bf128a3c", "score": "0.54600185", "text": "void Ex5 () {\n\t\t\n\t\tfor (int x = 5; x>0; x--) {\n\t\t\tfor (int y = 5; y>0; y--) {\n\t\t\t\tSystem.out.print(x);\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "9e6c208bef125d900f0bd52e8194105a", "score": "0.54363155", "text": "private static void puzzleNo5() {\n \t\tint result = 0;\n \n for(int i = 1; i <= 5; i++) {\n result += i * i;\n }\n \n \t\tblackBox.puzzleNo5(result);\n \t}", "title": "" }, { "docid": "d562f28f047808feacc54948da821b40", "score": "0.5369187", "text": "private void next( byte[] board, int pos )\n {\n if( pos>=0 && pos<board.length ) board[pos] = (byte)((board[pos]+1) % 6); \n }", "title": "" }, { "docid": "7b9e6dbec909573700d6d0f5543a5215", "score": "0.5335344", "text": "static int next(int t) {\n\tint b = t & (-t);\n\tint s = t/b + 1;\n\tint c = s & (-s);\n\treturn s * b + c/2 - 1;\n }", "title": "" }, { "docid": "a99b3317d02a7eb38b0dcad5847205ff", "score": "0.53322595", "text": "public static void main(String[] args) {\n\t\t\n\t\tint[] o = new int[20];\n\t\t\n\t\tfor(int a = 0; a < o.length; a++) {\n\t\t\to[a] = a;\n\t\t}\n\t\t\n\t\tint[] g = take(5, o);\n\t\t\n\t\t\n\t\tSystem.out.println(toString(g));\n\t\t\n\t\tSystem.out.println(toString(drop(5, o)));\n\t\t\n\t\tint[] z = concat(o, g);\n\t\t\n\t\tprintArr(z);\n\t\t\n\t\tSystem.out.println(toString(identity(16)));\n\t\t\n\t}", "title": "" }, { "docid": "a80385186b946ea32226ba30cfd71a8d", "score": "0.5329037", "text": "static int segregate(int a[]) {\n\t\tint n = a.length;\n int j = n-1;\n for(int i=n-1; i>=0; i--) {\n if(a[i] <=0 ) {\n int t = a[i];\n a[i] = a[j];\n a[j] = t;\n j--;\n }\n }\n return j+1;\n\t}", "title": "" }, { "docid": "ced5208b01391a314a3a12dcc136ff7e", "score": "0.5317997", "text": "@Override\n\tpublic int turno() {\n\t\treturn 5;\n\t}", "title": "" }, { "docid": "4b447a659ddcc56d60aa8f7106605af4", "score": "0.5297632", "text": "private void insertToNumberOfUsers(byte nextByte){\n if(this.zeroCounter == 1){\n this.field1[0] = nextByte;\n this.zeroCounter++;\n }\n else{\n this.field1[1] = nextByte;\n this.zeroCounter++;\n }\n }", "title": "" }, { "docid": "e499c99284f496b503141bb5bc33d33c", "score": "0.52932036", "text": "public static void main(String[] args) {\n\t\tint[] a = new int[] {1,2,3,4,5,6,7,8};\r\n\t\tint n = 5;\r\n\t\tint temp = 0;\r\n\t\t\r\n\t\twhile(n>0) {\r\n\t\t\ttemp = a[a.length-1];\r\n\t\t\tfor(int i=a.length-1;i>0;i--) {\r\n\t\t\t\ta[i]=a[i-1];\t\t\t\r\n\t\t\t}\r\n\t\t\ta[0]=temp;\r\n\t\t\tn--;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int j=0;j<a.length;j++) {\r\n\t\t\tSystem.out.print(a[j] + \" \");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "28fcd67aac2e1851101e84a75613d2bb", "score": "0.5262236", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tint[] num = new int[5];\n\t\tint pat = 0;\n\t\t\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\n\t\t\tnum[i] = i + 1;\n\t\t\t\n\t\t\tSystem.out.println(num[i]);\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println();\n\t\t\t\t\n\t\twhile (pat < 5) {\n\t\t\t\n\t\t\tnum[pat] = pat + 1;\n\t\t\t\n\t\t\tSystem.out.println(num[pat]);\n\t\t\t\n\t\t\tpat++;\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "13d79e02f323206febdc305f4f62ea1b", "score": "0.52621984", "text": "public static void main(String[] args) {\n\t\tint a[]= {1,2,3,4,5,6};\n\t\tint b[]= {7,8,9,10,11,12};\n\t\tint d=0;\n\t\tint c[]=new int[a.length+b.length];\n\t\tfor(int i=0;i<c.length;i++) {\n\t\t\tif(d<=5) {\n\t\t\tc[i]=a[i];\n\t\t\td++;\n\t\t\t}else {\n\t\t\t\tc[i]=b[i-b.length];\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<c.length;i++) {\n\t\t\tSystem.out.print(c[i]+\" \");\n\t\t}\n\t}", "title": "" }, { "docid": "6e18a2ab94a678465a85c1eafb61ab15", "score": "0.5258914", "text": "public static void moveZeroes(int[] nums) {\n }", "title": "" }, { "docid": "e298792b2d1be9776965e144077e8394", "score": "0.52380735", "text": "private void count() {\n if(counter != 5) {\n counter++;\n }else{\n counter = 0;\n }\n }", "title": "" }, { "docid": "83e0aad532d5c7f146d029b9d52e363f", "score": "0.52212375", "text": "public static void main(String[] args) {\n\t\t int[]a = {3, 2, 1, 0, 4, 0, 0, 2, 7, 0, 50, 0, 6, 8, 9, 0, 9, 1, 0, 8, 5};\n\t\t \n\t\t int cuurenindex=0;\n\t\t \n\t\t for(int i=0;i<a.length;i++)\n\t\t {\n\t\t\t if(a[i]!=0)\n\t\t\t {\n\t\t\t\t a[cuurenindex]=a[i];cuurenindex++;\n\t\t\t }\n\t\t }\n\t\t while(cuurenindex<a.length)\n\t\t {\n\t\t\t a[cuurenindex]=0;\n\t\t\t cuurenindex++;\n\t\t }\n\t\t \n\t\t for(int i=0;i<a.length;i++)\n\t\t {\n\t\t\t System.out.print(a[i]);\n\t\t }\n\t}", "title": "" }, { "docid": "eb0bb59146988872098e3d5a23eebcdf", "score": "0.521518", "text": "public static void main(String[] args) {\nint [] array= {0,2,0,3,0,5};\nint counter=0;\nfor(int i=0;i<array.length;i++)\n{\n\tif(array[i]!=0)\n\t{\n\t\tarray[counter]=array[i];\n\t\tcounter++;\n\t}\n}\nSystem.out.println(counter);\nwhile(array.length>counter)\n{\n\tarray[counter]=0;\n\tcounter++;\n}\nSystem.out.println(Arrays.toString(array));\n\t}", "title": "" }, { "docid": "3141848bc21db0e0184e47019eecdd76", "score": "0.5204061", "text": "private int calculateNext(int s) {\n\t\treturn s + 1;\n\t}", "title": "" }, { "docid": "25ac302ded6833dfc661615766d2296e", "score": "0.5199046", "text": "private int getBlocks(long size) {\n\t\tif (size == 0) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn (int) ((size - 1) / blockSize + 1);\n\t}", "title": "" }, { "docid": "8a39ee1b36d6413437c0b9e968c4aaf8", "score": "0.5193286", "text": "public void moveZeroes1(int[] nums) {\n \tif (nums == null || nums.length == 0) return;\n \tint start = 0; // pointer for current value signing position\n \tfor (int i = 0; i < nums.length; i++) {\n \t\tif (nums[i] != 0) {\n \t\t\tnums[start++] = nums[i];\n \t\t}\n \t}\n \twhile (start < nums.length) {\n \t\tnums[start++] = 0;\n \t} \t\n }", "title": "" }, { "docid": "7870b14fa6b2af5ddf89f5af68c62a21", "score": "0.51855373", "text": "public static int[] backLoop(int[] input){\nint ref=input.length;\nint a=input[1];\nint b=input[ref-1];\nint ch=(a+b)/2;\nfor(int i=0;i<ref;i++){\nif(i%2==0) input[i]=(input[i]%ch)+(ref+i);\nelse input[i]=(input[i]+ref+i);\n}\nreturn input;\n}", "title": "" }, { "docid": "871bbcc48f795de4f7669e4fa2e21c6f", "score": "0.51829976", "text": "public static int compute5(int x) {\n return 36969 * (x & 65535) + (x >> 16);\n }", "title": "" }, { "docid": "6e508b4ed4362480601d4ec35fb1539d", "score": "0.5169578", "text": "private int incr(int index){\r\n return (index+1)%MAX_SIZE;\r\n }", "title": "" }, { "docid": "5d10e43756cedd80dd701ae2084ac0a5", "score": "0.5168429", "text": "void Ex4 () {\n\t\t\n\t\tfor (int a = 1; a < 6; a++) {\n\t\t\tfor (int b = 5; b > 0; b--) {\n\t\t\t\tSystem.out.print(b);\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t}", "title": "" }, { "docid": "1c8283df3d7d161d581d1b3edee28364", "score": "0.51502514", "text": "public static void r4p2() {\n /* R 4.2 a Output:\n *\n * 0 10\n * 1 9\n * 2 8\n * 3 7\n * 4 6\n *\n * R 4.2 b Output:\n *\n * i will always be less than j\n * So will count from 10 up by 2s\n */\n\n }", "title": "" }, { "docid": "7c6d1ecd386659b11499bd26e6b2c3a5", "score": "0.5136918", "text": "public static void getNonZeroBytes(int[] data)\r\n {\r\n RNGGetBytes(data);\r\n int l = data.length;\r\n for(int i = 0; i < l; i++)\r\n {\r\n while(data[i] == 0)\r\n {\r\n data[i] = ran5.nextInt();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "95ca91b3279b96418d7c2c03288ab565", "score": "0.5136437", "text": "private int[] onetotwo(int d) {\n int[] des = new int[2];\n des[0] = d / n;\n des[1] = d % n - 1;\n if (des[1] < 0) {\n des[0] -= 1;\n des[1] += n;\n }\n return des;\n }", "title": "" }, { "docid": "2e35ac00c2a33c0db92e1d229aabd9a4", "score": "0.51346314", "text": "static int jumpingOnClouds(int[] c) {\n int count=0;\n int secondCount=0;\n while (true){\n if(count+2<c.length && (c[count+2] == 0)){\n count=count+2;\n }\n else if(count+1<c.length){\n count++;\n }\n else {\n break;\n }\n\n secondCount++;\n\n }\n return secondCount;\n }", "title": "" }, { "docid": "ace933bce0c8b8f040f93f72d090dd49", "score": "0.51244235", "text": "int getFixed32SPacked(int index);", "title": "" }, { "docid": "83bbde0113a3e6b642ae2fe4e3f6657a", "score": "0.5121304", "text": "public void read(int value) {\n if(counter<k){\n block[counter] = value;\n }else {\n int tmp = rdm.nextInt(counter + 1);\n if (tmp < k) {\n block[tmp] =value;\n }\n }\n counter++;\n }", "title": "" }, { "docid": "58d4713fa976b37239c57b36034464b5", "score": "0.51181537", "text": "public void method5(int nr) {\n\t\tfor (int i = 0; i < nr; i++) {\n\t\t\tSystem.out.println(\"I = \" + i);\n\t\t}\n\t}", "title": "" }, { "docid": "7483e0636ff6d361d5f77721c1a126e3", "score": "0.5112", "text": "@Test\n public void test5(){\n int[] sequence = new int[5];\n sequence[0] = 1;\n sequence[1] = 1;\n sequence[2] = 1;\n sequence[3] = 2;\n sequence[4] = 3;\n\n boolean pass = false;\n\n AlmostIncreasingSequence almostIncreasingSequence = new AlmostIncreasingSequence();\n boolean result = almostIncreasingSequence.almostIncreasingSequence(sequence);\n\n assert(pass == result);\n }", "title": "" }, { "docid": "0253b1bbe215af1953f6fd3a1f088a1e", "score": "0.5105606", "text": "void op_8XY5()\n{\n int X = get_X();\n int Y = get_Y();\n c8System.V[0xF] = 1;\n if(c8System.V[Y] > c8System.V[X])\n \tc8System.V[0xF] = 0; //underflow\n\n c8System.V[X] -=c8System.V[Y];\n c8System.V[X]&=0xFF;\n \n\n}", "title": "" }, { "docid": "5e89f932bc28fd3c147fec99aea79f32", "score": "0.5094918", "text": "private static void countTrailingZeroes(int n) {\n\t\tint count=0;\n\t\twhile(n>0){\n\t\t\tn=n/5;\n\t\t\tcount+=n;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "title": "" }, { "docid": "63f31e62e6fb1508f30d68b09b9471d9", "score": "0.5091364", "text": "int getRepeat();", "title": "" }, { "docid": "12f11f2704d8aa976ddc291d9159964a", "score": "0.5087437", "text": "@Override\n\tpublic void test() {\n\t\tint[] nums = {1,2,3,4,5,6};\n\t\trotate(nums, 4);\n\t\tfor (int i: nums){\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t}", "title": "" }, { "docid": "627f1f8ccc1b2abe293b3cccbdafe2fd", "score": "0.5081582", "text": "private int rIndex(int index)\n\t{\n\t\treturn index * 2 + 2;\n\t}", "title": "" }, { "docid": "09214f8560b549496c017b46d4018d4d", "score": "0.5067527", "text": "static void minimumBribes(int[] q) {\n \tint count=0;\n\n \t for (int i=0;i<q.length;i++)\n {\n if((q[i]==i+1)||(q[i]==i)||(q[i]==i-1 ))\n {\n }\n else {\n count=count+1;\n }\n }\n\n {\n if (count>5) {\n System.out.println(\"too chaotic\"); \n }else {System.out.println(count);}\n }\n\n \n \t\n \t\n \t\n /*\tfor (int i=0;i<q.length;i++)\n \t{\n \t\tif(q[i]==i+1) {\n \t\t\tSystem.out.println(q[i]+ \"equals\"+i);\n \t\t}\n \t\telse {\n \t\t\tSystem.out.println(q[i]+ \"not equals\"+i);\n\n \t\t\tcount=count+1;\n \t\t}\n \t}\n\n \t{\n \tif (count>2) {\n \t\tSystem.out.println(\"too chaotic\"); \t\n \t}else {System.out.println(count);}\n \t}*/\n\n }", "title": "" }, { "docid": "9def4b1eed75da34cb094176d081365e", "score": "0.50611323", "text": "int getIps(int index);", "title": "" }, { "docid": "62ca2de403cbcd0214fb190b68dbec0a", "score": "0.50373566", "text": "public void ptn_5(){\r\n\t\tfor(int i = 1; i<=a; i++){\r\n\t\t\tfor(int j = ((a-i)+1); j<=a; j++){\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d8d4e14e6e4f7fc9cc07c021ba5314b8", "score": "0.50366217", "text": "public static void main(String args[])\n {\n int i,j,x=1;\n for(i=1;i<=5;i++)\n {\n for(j=1;j<=i;j++)\n {\n System.out.print(x);\n x++;\n }\n System.out.println(\"\");\n }\n \n }", "title": "" }, { "docid": "1108bcebfeb403bbd1d38de30fe11f54", "score": "0.5026443", "text": "public static void main(String[] args){\n Stream.iterate(1, element->element+1)\n .filter(element->element%5==0)\n .limit(5)\n .forEach(System.out::println);\n }", "title": "" }, { "docid": "221dc7e7366aaa313d90040fa9e5aba6", "score": "0.50153714", "text": "public static int[] warmup1(int[] answer){\n\t\tArrayList<Integer> temp = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < answer.length; i++) {\n\t\t\tif(answer[i] != 0)\n\t\t\t\ttemp.add(answer[i]);\n\t\t}\n\t\tint[] newSequence = new int[temp.size()];\n\t\tfor(int i = 0; i < temp.size(); i++) {\n\t\t\tnewSequence[i] = temp.get(i);\n\t\t}\n\t\treturn newSequence;\n\t}", "title": "" }, { "docid": "22fb352d5d636606dd5422c413c78be9", "score": "0.5009444", "text": "static int sockMerchant(int n, int[] ar) {\n int count = 0;\n for (int i = 0; i < n; i++) {\n for (int j = i + 1; j < n; j++) {\n if (ar[i] != 0 && ar[i] == ar[j]) {\n count++;\n ar[i] = ar[j] = 0;\n System.out.println(count);\n break;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "9d2a311f4cc3094a6697136dd01c8997", "score": "0.5007201", "text": "public int[] generateInd(){\n //Inicializa un individuo de longitud length\n int[] res = new int[length];\n double ran; \n //Por cada bit de res genera un numero aleatorio entre 0 y 1\n //Si ran<0.5 se pone un 0 y si es mayor un 1.\n for(int i = 0; i < length; i++){\n ran = semilla.nextDouble();\n if(ran < 0.5){ \n res[i] = 0;\n }else{\n res[i] = 1;\n }\n }\n return res;\n }", "title": "" }, { "docid": "f2fb72314964fa6154da77dc1b52d892", "score": "0.50018483", "text": "public static void method_1() {\n IntStream lott = new SecureRandom().ints(1, 46).distinct().limit(6);\n lott.boxed().sorted().map(i -> \"[\" + i + \"]\").forEach(System.out::print);\n System.out.println();\n }", "title": "" }, { "docid": "c70bda56193e4aa4c060282202517c04", "score": "0.5000392", "text": "private int hijoIzq(int index) {\r\n\t\treturn 2 * index + 1;\r\n\t}", "title": "" }, { "docid": "ba9443a1cd402204658fac0341a4198e", "score": "0.4997616", "text": "public static int calculateNextAssumingStart5(int mod, List<Integer> sequence) {\n int k0 = posMod(sequence.get(2) - sequence.get(1), mod);\n int k1 = posMod(sequence.get(2) - sequence.get(0), mod); \n int kbig = sequence.get(3);\n \n int s4 = posMod(kbig + k0, mod); \n Preconditions.checkState(s4 == sequence.get(4));\n int s5 = posMod(kbig + k1, mod);\n \n return s5;\n }", "title": "" }, { "docid": "fb9a58f9e060fff31572f2cda20a90c9", "score": "0.49971473", "text": "private static void push(int i) {\n\tif(isFull())\r\n\t{\r\n\ttos++;\r\n\ts[tos]=i;\r\n\t}\r\n\telse\r\n\t\tSystem.out.println(\"full\");\r\n\r\n\t\r\n}", "title": "" }, { "docid": "44ded467964304544a8461ab0525c84f", "score": "0.49831346", "text": "private static int method(int a, int[] c) {\n\r\n a++;\r\n c[0] /= 2;\r\n c[0] = c[0] + c[1];\r\n c = new int[4];\r\n \r\n\r\n /*** Stelle 10 \r\n * a = 5, no b, c ={0,0,0,0}\r\n * bzw. 13 \r\n * a = 24, no b, c = {0,0,0,0} ***/\r\n System.out.println(\"Stelle 10/13: \" + a + \" \" + Arrays.toString(c));\r\n\r\n\r\n return a;\r\n }", "title": "" }, { "docid": "fa6d90ff97bc522ba95e681d98873380", "score": "0.49770933", "text": "public final short currentPos() { return data5; }", "title": "" }, { "docid": "9b45dcbdde1c21adf19663de7eae2e77", "score": "0.4973379", "text": "private int yyr5() {\n { yyrv = new Pair(((Expression)yysv[yysp-4]),((Expression)yysv[yysp-2])); }\n yysv[yysp-=5] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "c41ae085d40d47136d37fdf56389b474", "score": "0.49666655", "text": "static int sockMerchant(int n, int[] ar) {\n \n List<Integer> i = new ArrayList<>();\n for (int j = 0; j <= 100; j++) {\n i.add(0);\n }\n\n Arrays.stream(ar).forEach(a -> {\n i.set(a, i.get(a) + 1);\n });\n\n i.forEach(ii -> {\n if (ii > 1) {\n if (ii % 2 == 0) {\n sock_pair += ii / 2;\n } else {\n sock_pair += (--ii) / 2;\n }\n }\n });\n\n return sock_pair;\n }", "title": "" }, { "docid": "1510f6f7f74f610c9b417eb9d5cfe394", "score": "0.49663344", "text": "public int compRand(){\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "0ce237f0406452d9b3525523f4358963", "score": "0.49612787", "text": "private static int randomInt ()\n {\n Random generator = new Random(); \n return generator.nextInt(5) + 1;\n }", "title": "" }, { "docid": "bcb7a52d8c4306529083df6b03b7baf4", "score": "0.4952037", "text": "static void minimumBribes(int[] q) {\n int length = q.length;\n int queue[] = new int[length];\n int allBribes= 0;\n for (int i = 0 ; i < length; i++) \n queue[i] = i+1;\n \n for (int i = 0 ; i < length-1; i++){\n int bribe = 0;\n while (queue[i + bribe] != q[i]){\n bribe++;\n }\n if(bribe > 2){\n System.out.println(\"Too chaotic\");\n return;\n }\n allBribes += bribe;\n int temp = queue[i+bribe];\n for ( int j = bribe; j>0; j--){\n queue[i +j] = queue[i +j-1];\n }\n queue[i] = temp;\n }\n System.out.println(allBribes);\n }", "title": "" }, { "docid": "33e4f7c23657a32cc296efec86127d3b", "score": "0.4948037", "text": "private static int generate() {\n\t\treturn 2;\n\t}", "title": "" }, { "docid": "d7e1b6fe77b8d1f0dbdb507df7240b78", "score": "0.49456882", "text": "public static void main(String[] args) {\n\t\tint n=5;\n\t\tint lost[] = {2,4};\n\t\tint reserve[] = {1,3,5};\n\t\tint people[] = new int[5];\n\t\tint answer=5-lost.length;\n\t\tfor(int i=0;i<lost.length;i++) {\n\t\t\tpeople[lost[i]-1]--;\n\t\t}\n\t\tfor(int i=0;i<reserve.length;i++) {\n\t\t\tpeople[reserve[i]-1]++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<people.length;i++) {\n\t\t\tif(people[i]==-1) {\n\t\t\t\tif(i-1>=0 && people[i-1]==1) {\n\t\t\t\t\tpeople[i]++;\n\t\t\t\t\tpeople[i-1]--;\n\t\t\t\t\tanswer++;\n\t\t\t\t}else if(i+1<people.length && people[i+1]==1) {\n\t\t\t\t\tpeople[i]++;\n\t\t\t\t\tpeople[i+1]++;\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "5148abe098c3a8c744ae069f2f6561f1", "score": "0.4940991", "text": "static void pushUp(int n) {\n ships[n] = ships[n << 1] + ships[n << 1 | 1];\n }", "title": "" }, { "docid": "737cdcb9cb91037932557ee2968f1a90", "score": "0.49368918", "text": "public void next() {\n for (int i = 0; i < board.length; i++) {\n int numAliveNeighbours = countAliveNeighbours(i);\n if (board[i] == 1) {\n if (numAliveNeighbours != 2 && numAliveNeighbours != 4) {\n board[i] = -1;\n }\n } else {\n if (numAliveNeighbours == 2 || numAliveNeighbours == 3) {\n board[i] = 2;\n }\n }\n }\n for (int i = 0; i < board.length; i++) {\n board[i] = board[i] > 0 ? 1 : 0;\n }\n }", "title": "" }, { "docid": "381a0df20c613bf38a6681768dae9b54", "score": "0.49365857", "text": "public int[] runAt();", "title": "" }, { "docid": "84ad6119fed95fc4494d09a4f2233190", "score": "0.49357632", "text": "private int start(int seq) {\n return acc.getInt(PACKET_INFO + (seq & packetMask) * LEN_PACKET_INFO);\n }", "title": "" }, { "docid": "8de004449b1941d8d18ca981ca6bbc29", "score": "0.4935267", "text": "public static void exercise1() {\n // loo 5 elemendile täisarvude massiv\n // loe sisse konsoolist 5 täisarvu\n // trükij arvud väla vastupidises järiekorras\n\n Scanner scanner = new Scanner(System.in);\n int[] m = new int[5];\n System.out.println(\"Sisestage 5 numbrit!\");\n\n for (int i = 0; i < 5; i++) {\n m[i] = scanner.nextInt();\n }\n System.out.println(\"Numbrid sisestatud\");\n\n for (int i = 4; i >= 0; i--) {\n System.out.println(m[i]);\n }\n }", "title": "" }, { "docid": "cd14f2e5029cd151d97856c95520192e", "score": "0.49297974", "text": "private void algo5_1() {\n\t\tcube.Mi();\n\t\tcube.Ui();\n\t\tcube.M();\n\t\tcube.Ui();\n\t\tcube.Ui();\n\t\tcube.Mi();\n\t\tcube.Ui();\n\t\tcube.M();\n\t}", "title": "" }, { "docid": "d47ff6377971c4bed88a9014fe704548", "score": "0.49294055", "text": "public void ptn_1(){\r\n\t\tint b , out;\r\n\t\tfor (int i=1; i<=a ; i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(i+\" \");\r\n\t\t\tb = a;\r\n\t\t\tout = i;\r\n\t\t\tfor (int j=1; j<i ; j++)\r\n\t\t\t{\r\n\t\t\t\tb--;\r\n\t\t\t\tout = out + b;\r\n\t\t\t\tSystem.out.print(out+\" \");\r\n\t\t\t}\r\n\t\t\tout = 0;\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0e0f038d629f84c551300345e6ca0ab6", "score": "0.492648", "text": "static void initializeArray1(boolean first) {\n\t\tint c = 0;\n\t\tfor (int i = 0; i < slots; i++) {\n\t\t\tRandom rand = new Random();\n\t\t\tint val = rand.nextInt(slots);\n\t\t\tint mod = val % slots;\n\t\t\tif (arrHashes[mod] == -1) {\n\t\t\t\tarrHashes[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tc++;\n\t\t\t} else if(first){\n\t\t\t\tresult[0] = c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dd93b7bb5e8a7707ca3a47c6a3fa8c08", "score": "0.49256235", "text": "public static void main(String[] args) {\n\t\tint[] array = {1,0,2,0,4,0,5};\n\t\t\n\t\tmoveZeroToEnd(array,array.length);\n\t\t\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "22e69e279e1ed497963118e06582c55f", "score": "0.49253094", "text": "int minCount();", "title": "" }, { "docid": "e5ec1f0650dcd1f6b4704354230f27c5", "score": "0.49228558", "text": "@Test(timeout = 4000)\n public void test045() throws Throwable {\n Label label0 = new Label();\n int[] intArray0 = new int[9];\n int[] intArray1 = new int[0];\n MethodWriter.getNewOffset(intArray0, intArray1, label0);\n assertArrayEquals(new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0}, intArray0);\n }", "title": "" }, { "docid": "6200d5a08e5fd8c8e4afb661104793cf", "score": "0.49227262", "text": "private int doFive(int[] count)\r\n {\r\n \t\r\n \tint fiveScore = 0;\r\n \t\r\n \tif(count[4] == 1)\r\n \t{\r\n \t\r\n \t\tfiveScore = 50;\r\n \t\t\r\n \t}\r\n\t\r\n\telse if(count[4] == 2)\r\n\t{\r\n\t\t\r\n\t\tfiveScore = 100;\r\n\t\t\r\n\t}\r\n\t\r\n\telse if(count[4] == 3)\r\n\t{\r\n\t\t\r\n\t\tfiveScore = 500;\r\n\t\t\r\n\t}\r\n\t\r\n\telse if(count[4] == 4)\r\n\t{\r\n\t\t\r\n\t\tfiveScore = 1000;\r\n\t\t\r\n\t}\r\n\t\r\n\telse if(count[4] == 5)\r\n\t{\r\n\t\t\r\n\t\tfiveScore = 2000;\r\n\t\t\r\n\t}\r\n\t\r\n\telse if(count[4] == 6)\r\n\t{\r\n\t\t\r\n\t\tfiveScore = 4000;\r\n\t\t\r\n\t}\r\n \t\r\n \tdiceLeft -= count[4];\r\n \t\r\n \treturn fiveScore;\r\n \t\r\n }", "title": "" }, { "docid": "97c8dbe4ad3a11e941fe10729682c7da", "score": "0.49216244", "text": "@Override\n public void fillUp(){\n for (int i=0 ;i<5; i++){\n for (int j=0;j<6;j++){\n if (matrix[i][j]==0)\n matrix[i][j]=(int)pow(2,(int)(Math.random()*3+1));\n }\n }\n }", "title": "" }, { "docid": "41886eaa7b069184eee8b47966e79ea5", "score": "0.491771", "text": "@Test\n public void test6(){\n int[] sequence = new int[8];\n sequence[0] = 1;\n sequence[1] = 2;\n sequence[2] = 3;\n sequence[3] = 4;\n sequence[4] = 5;\n sequence[5] = 3;\n sequence[6] = 5;\n sequence[7] = 6;\n\n boolean pass = true;\n\n AlmostIncreasingSequence almostIncreasingSequence = new AlmostIncreasingSequence();\n boolean result = almostIncreasingSequence.almostIncreasingSequence(sequence);\n\n assert(pass == result);\n }", "title": "" }, { "docid": "de21eb9526df1f06a9287dcff4b7f57d", "score": "0.49155998", "text": "@Override\n public void run() {\n for(int i=1;i<=5;i++)\n {\n System.out.println(i);\n }\n }", "title": "" }, { "docid": "af67bf8a352c43eb2ef355a69396449f", "score": "0.49151626", "text": "long getNextSequence();", "title": "" }, { "docid": "6eeec12f545cca51795de49202cd0b82", "score": "0.4906723", "text": "void op_5XY0()\n{\n if(c8System.V[get_X()] == c8System.V[get_Y()]) {\n \tc8System.pc+=2;\n \tc8System.pc&= 0x0FFF;\n }\n}", "title": "" }, { "docid": "6259afccadd6c4655afc75796b42928c", "score": "0.4904789", "text": "private short incr(short x) {\n\t\tx++; \n\t\treturn (x < 2*wSize ? x : 0);\n\t}", "title": "" }, { "docid": "c401509d241dff2b440eee904fb201b3", "score": "0.49038914", "text": "private int randomIndex() {\n int idx;\n // Using the uniform random generator API, get a random index\n if (items == 1) {\n return 0;\n }\n // return StdRandom.uniform(first, (first + items - 1) % queue.length);\n idx = StdRandom.uniform(first, first + items - 1);\n return idx;\n }", "title": "" }, { "docid": "e122e9dd7cddcac2ce2fe3015ba1b0f4", "score": "0.49030152", "text": "void addElements(int value){\n this.count += value;\n }", "title": "" }, { "docid": "fd1e9b29e5fad154919236359ab972f2", "score": "0.49025336", "text": "@Override\n public int getTanks() {\n return 1;\n }", "title": "" }, { "docid": "2a22844f6ff56b0e7e899baba98f2e2e", "score": "0.49020156", "text": "void function9(int size){\n int[] mass = createRandomIntMass2(size);\n printIntMass(mass);\n int elem = mass[0];\n int count = countElem(mass, elem);\n for (int i: mass) {\n int count2 = countElem(mass, i);\n if (count2 > count){\n elem = i;\n count = count2;\n }\n if(count == count2){\n elem = Integer.min(elem, i);\n }\n }\n System.out.println(\"elem:\" + elem + \" times:\" + count);\n }", "title": "" }, { "docid": "28d7a0455f1c76ef918fd4b95330fd38", "score": "0.48975906", "text": "public static void main(String[] args) {\n\t\tint count=1;\n\t\tfor(int i=5;i>=1;i--)\n\t\t{\n\t\t\tfor(int j=1;j<=i;j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tSystem.out.print(j);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\t\n\t\t}\n\t}", "title": "" }, { "docid": "3a8a6f7d31bce76d241bb1bfa12722d4", "score": "0.48961815", "text": "private int padre(int index) {\r\n\t\treturn (index - 1) / 2;\r\n\t}", "title": "" }, { "docid": "abad004a1f432a4717b53081e31492b9", "score": "0.48958647", "text": "static int findUniqueNumber2(int[] a) {\n\t\t\n\t\tint result = 0;\n\t\tfor (int item: a) {\n\t\t\tresult ^= item;\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "a9b98505ac44d2332e995c66de360299", "score": "0.4881103", "text": "short getRepeat();", "title": "" }, { "docid": "564b6b7a516d3613a212bbfd06ea5b04", "score": "0.48802364", "text": "public void updateBlockNum(byte[] data){\n\t\t //first and second bytes of ACK + 1 and stored into data block#;\n\t\t \n\t\t if(Byte.toUnsignedInt(new Byte(data[3])) != 255){\n\t\t\t int newSecond = Byte.toUnsignedInt(new Byte(data[3])) + 1;\n\t\t\t data[3] = (byte) newSecond;\n\t\t\t data[2] = 0;\n\t\t\t \n\t\t }else if(Byte.toUnsignedInt(new Byte(data[2])) == 0 && Byte.toUnsignedInt(new Byte(data[3])) == 255){\n\t\t\t int newFirst = Byte.toUnsignedInt(new Byte(data[2])) + 1;\n\t\t\t data[2] = (byte) newFirst ; data[3] = 0;\n\t\t }else{\n\t\t\t data[2] = 0; data[3] = 1;\n\t\t }\n\n\t }", "title": "" }, { "docid": "3cd4f1b22efa63c77d5b1900190482dd", "score": "0.48696122", "text": "public static void p4() {\n\tfor(int i=500;i<1001;i++) {\n\t//System.out.println(\"\"+i);\n\t\tOS.out(\"\"+i);\n\t}\n\n\t}", "title": "" }, { "docid": "53133fbadf000206414973e8660f29cd", "score": "0.48663044", "text": "public void moveZeroes1(int[] nums) {\n \tif (nums == null || nums.length == 0) return;\n \tfor (int i = 0, start =0; i < nums.length; i++) {\n \t\tif (nums[i] != 0) {\n \t\t\ttemp = nums[i];\n \t\t\tnums[i] = nums[start];\n \t\t\tnums[start] = temp;\n \t\t\tstart++;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "beef11e1151baa22b66d9a81900b2bfd", "score": "0.4864186", "text": "@Override\n\tpublic int getD1() {\n\t\treturn 5;\n\t}", "title": "" }, { "docid": "1b1d3173b0ff1ef127d78344ab14ab59", "score": "0.4863985", "text": "void op_CXNN()\n{\n int temprand = (int)(Math.random()*256);\n c8System.V[get_X()] = (int) (temprand & get_NN());\n}", "title": "" }, { "docid": "8cb9ef4e43318cd43bbdbcab31be28cc", "score": "0.4855957", "text": "public static void main(String[] args) {\n\t\tArrayList<Integer> nums = new ArrayList<Integer>();\n\t\tArrayList<String> band = new ArrayList<String>(); \n\t\tnums.add(2);\n\t\tnums.add(3);\n\t\tnums.add(5);\n\t\tnums.add(7);\n\t\tnums.add(11);\n\t\tnums.add(13);\n\t\tnums.add(17);\n\t\tnums.add(19);\n\t\tnums.add(0,nums.remove(nums.size()-1)) ; \n\t\n\t\tSystem.out.println (nums); \n\n\n\t\t\n}", "title": "" }, { "docid": "cea2fc3d4f61bac185cc080265c864de", "score": "0.4854744", "text": "public static int reset_lowest_set_bit(int x) {\n int y = x;\n int j = 5;\n int k = 10;\n int l = 20;\n for(int i = -64 ; i < 64; i++){\n y = i & i-1;\n j += y;\n j = j & j-1;\n k +=j;\n k = k & k-1;\n l +=k;\n l = l & l-1;\n }\n return y + j + k + l;\n}", "title": "" }, { "docid": "34a2736e4825d9d377ee3727c02deb7b", "score": "0.48529953", "text": "@Test\n\tpublic void method2() {\n\n\t\tfor (int i = 5; i > 0; i--) {\n\t\t\tSystem.out.println(String.join(\"\", Collections.nCopies(5 - i, \" \"))\n\t\t\t\t\t+ String.join(\"\", Collections.nCopies(2 * i - 1, \"*\")));\n\t\t}\n\t}", "title": "" }, { "docid": "f7a41331698e790ebbf1e50ec690dc7d", "score": "0.4852492", "text": "void mo70500d(int i);", "title": "" }, { "docid": "6b8d51588fde46744f5633bf1d9ed16d", "score": "0.48458093", "text": "@Override\n\t\t\tpublic void input(int count) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3fa70feb9040322a9018070645eb0777", "score": "0.48405054", "text": "@Override\n default int size() {return degree() + 1;}", "title": "" }, { "docid": "de481e25691303754c74482e3b34a97f", "score": "0.4831249", "text": "public static void main(String[] args){\n System.out.println(\"please input a number\");\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt(), count = num, NUM = 20;\n float[] index = new float[NUM];\n while (num-->0)\n {\n RedPacketUtil util = new RedPacketUtil();\n List<Float> temp = util.splitRedPacket(20, NUM);\n for (int i=0; i < temp.size(); i++)\n {\n index[i] += temp.get(i);\n }\n }\n for (int i=0; i<NUM; i++){\n System.out.println(\"the number \" + i + \" can get \" + (index[i]/count));\n }\n\n }", "title": "" }, { "docid": "eba022e0e453ee8582e656c72d295358", "score": "0.48299593", "text": "void op_FX55()\n{\n byte i;\n int X = get_X();\n for(i = 0; i <= X; i++)\n \tc8System.mem[c8System.I+i] = c8System.V[i];\n}", "title": "" }, { "docid": "6414ce53aedcc19787d4a31e3fde7111", "score": "0.48299357", "text": "public static void main(String[] args) {\n\t\tint n=5; \r\n\t\tfor(int i=5;i>0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<=n;j++)\r\n\t\t\t{\r\n\t\t\tSystem.out.print(j%2+\" \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\r\n\t\t}", "title": "" }, { "docid": "4a39729c69e8b88a44b8098ea89ed697", "score": "0.48291686", "text": "int[] eValuate() {\n\t\tint largest, val[];\n\t\tint i, index, s;\n\t\tval =new int[2];\n\n\t\tfor (s=0;s<2;s++) {\n\t\t\tval[s]=0;\n\t\t\tlargest=0;\n\t\t\t/* front rank first */\n\t\t\tfor (i=0;i<8;i++) {\n\t\t\t\tindex=s*16+i;\n\t\t\t\tval[s]+=state[index];\n\t\t\t\tif (largest<state[index]) largest=state[index];\n\t\t\t}\n\t\t\tif (val[s]>0) {\n\t\t\t\tfor (i=8;i<16;i++) {\n\t\t\t\t\tindex=s*16+i;\n\t\t\t\t\tval[s]+=state[index];\n\t\t\t\t\tif (largest<state[index]) largest=state[index];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((val[s]==0) || ((largest==1) && (state[32]==0))) {\n\t\t\t\tgameOver=true;\n\t\t\t\tval[s]=-255*65536; /* 255*2^16=0x00ff0000 */\n\t\t\t}\n\t\t}\n\t\treturn val;\n\t}", "title": "" }, { "docid": "6af3804ae8c42e4c06e6d6e910957ac3", "score": "0.482343", "text": "@Test\n public void test4(){\n int[] sequence = new int[6];\n sequence[0] = 10;\n sequence[1] = 1;\n sequence[2] = 2;\n sequence[3] = 3;\n sequence[4] = 4;\n sequence[5] = 5;\n\n boolean pass = true;\n\n AlmostIncreasingSequence almostIncreasingSequence = new AlmostIncreasingSequence();\n boolean result = almostIncreasingSequence.almostIncreasingSequence(sequence);\n\n assert(pass == result);\n }", "title": "" }, { "docid": "6a42cd90fdadf82d492e265c916d23d0", "score": "0.48191768", "text": "private static void puzzleNo1() {\n \t\tint result = 0;\n \t\tint first=1;\n int second=1;\n for(int i=0;i<7;i++)\n {\n result=first+second;\n first=second;\n second=result;\n }\n \t\tblackBox.puzzleNo1(result);\n \t}", "title": "" }, { "docid": "c15f94490be1950d75c334901eb2c70f", "score": "0.48168463", "text": "private void halfsize(int i) {\n\t\t\n\t}", "title": "" } ]
8787b3b412b30d200a96c6359399c8a9
called when the RoomDatabase is initialized.
[ { "docid": "e6154a3f46ae17c8ae5080488cd97911", "score": "0.0", "text": "@Override\n protected SupportSQLiteOpenHelper createOpenHelper(DatabaseConfiguration config) {\n\n return null;\n }", "title": "" } ]
[ { "docid": "88e28f76760bb50204b4e8581492aea6", "score": "0.7791388", "text": "@Override\n\tpublic void initDatabase() {\n\t\t\n\t}", "title": "" }, { "docid": "2753d3a87b54cf06952752cb1dec271e", "score": "0.76089376", "text": "public void initialize() {\r\n helper.getReadableDatabase();\r\n }", "title": "" }, { "docid": "6c90ba047d75927516eecc320ee11993", "score": "0.7226556", "text": "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tDatabaseManager.init(this); \r\n\t}", "title": "" }, { "docid": "68dcf435cbdb2f0df63e5843223a71d0", "score": "0.70428437", "text": "@Override\n public void onCreate() {\n super.onCreate();\n App.context = getApplicationContext();\n\n // Set up timber\n setUpTimber();\n\n // Pre populate database (if needed)\n DataGenerator.populateDatabase();\n\n }", "title": "" }, { "docid": "df3cb6c7c0e9a17cfd385378d65f28d2", "score": "0.6973182", "text": "@Override\n public boolean onCreate() {\n Context context = getContext();\n ResourceResolver resourceResolver = ResourceResolver.newInstance(getContext());\n initialize(resourceResolver.getAuthority());\n mDatabaseHelper = new SQLiteOpenHelper(context);\n return true;\n }", "title": "" }, { "docid": "1574d589d64b544afad0b713c27e5fe8", "score": "0.69233626", "text": "public void init() throws SlickException {\n ready = true;\n }", "title": "" }, { "docid": "1f7a20f4c66bec97ced1f27f635880eb", "score": "0.6916703", "text": "@Override\r\n public void onCreate(SQLiteDatabase db) {\r\n }", "title": "" }, { "docid": "f95bdcc73951b9a187c5812a16f36fd1", "score": "0.68579733", "text": "@Override\n public void onCreate() {\n mDbContext = new MainDbContext(this);\n\n super.onCreate();\n }", "title": "" }, { "docid": "f75af5699c819fe52df3cff6905b1662", "score": "0.68483025", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "38395d562991910acdbfa44f5ed7c964", "score": "0.6846075", "text": "private void initializeDatabase(){\n\n\t\tpizzas.forEach(pizza -> insertPizza(pizza));\n\t}", "title": "" }, { "docid": "1924bc3157523f55b8e329dd14c1d49a", "score": "0.6837685", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "1924bc3157523f55b8e329dd14c1d49a", "score": "0.6837685", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "1924bc3157523f55b8e329dd14c1d49a", "score": "0.6837685", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "1924bc3157523f55b8e329dd14c1d49a", "score": "0.6837685", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "1924bc3157523f55b8e329dd14c1d49a", "score": "0.6837685", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "1924bc3157523f55b8e329dd14c1d49a", "score": "0.6837685", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "17770af11919d0a37637be12f9befd59", "score": "0.68004715", "text": "@Override\n public boolean onCreate() {\n SomeApplication.setContext(getContext()); // The idea from: https://firebase.googleblog.com/2016/12/how-does-firebase-initialize-on-android.html\n\n // Initialize the simple DictionaryOpenHelper\n this.db_sqLiteHelper = new DictionaryOpenHelper(this.getContext());\n // Create a write able database which will trigger its creation if it doesn't already exist.\n this.db = db_sqLiteHelper.getWritableDatabase();\n return this.db != null;\n }", "title": "" }, { "docid": "9b2b974a06b3079dd0894bde0f7def91", "score": "0.6796156", "text": "public void initialize() {\n createTables();\n dataInitializer.populateTables();\n }", "title": "" }, { "docid": "897561f067fe12ffe4eba9f3cb61876d", "score": "0.678362", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n\n }", "title": "" }, { "docid": "7d882054b98094370bf794b089630599", "score": "0.6768603", "text": "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\r\n\t}", "title": "" }, { "docid": "87cb9f2456fb2a14dad3e43c8b5ad09a", "score": "0.67579526", "text": "public void initialize() {\n // Create DB schema if not present\n if (!isSchemaInitialized()) {\n this.executeStatements(PATH_SCHEMA);\n LOG.info(\"[DB-startup] Cosmo database structure created successfully.\");\n for (DatabaseInitializationCallback callback : callbacks) {\n callback.execute();\n }\n }\n // More thorough schema validation\n validateSchema();\n }", "title": "" }, { "docid": "6af0a92f8d9960d8ba2ed13661101142", "score": "0.6725035", "text": "@Before\n public void initDb() throws Exception\n {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n WokabelDatabase.class)\n // allowing main thread queries, just for testing\n .allowMainThreadQueries()\n .build();\n\n mSupergroupDao = mDatabase.getSupergroupDao();\n }", "title": "" }, { "docid": "5486c90f0d7118b01b44a6266f4978e7", "score": "0.6716581", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "title": "" }, { "docid": "8fba21c188dbdcb5c169d0ecf634bc7f", "score": "0.6704029", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\n\t}", "title": "" }, { "docid": "dadae6369377041ee9f75592360597a9", "score": "0.6701495", "text": "@Override\n public void onCreate()\n {\n super.onCreate();\n context = this.getApplicationContext();\n dbHelper = new com.endeavor.walter.getout9.DBHelper();\n com.endeavor.walter.getout9.DatabaseManager.initializeInstance(dbHelper);\n\n\n }", "title": "" }, { "docid": "a40bbd7afa91b24092c1425b45b244a3", "score": "0.6681", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "title": "" }, { "docid": "a40bbd7afa91b24092c1425b45b244a3", "score": "0.6681", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "title": "" }, { "docid": "9ba68bd4e381f13d02cbc9fc59d7a8aa", "score": "0.66591465", "text": "@Override\n public boolean onCreate() {\n carsDatabase = new CarsDatabase(getContext());\n return true;\n }", "title": "" }, { "docid": "d622efa25919bced8b117b33fa6520a9", "score": "0.6657664", "text": "private void prepareDatabase() {\n }", "title": "" }, { "docid": "0157a43d722b4bc0390ae6d92ab35eb4", "score": "0.6656966", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\n\t}", "title": "" }, { "docid": "0157a43d722b4bc0390ae6d92ab35eb4", "score": "0.6656966", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\n\t}", "title": "" }, { "docid": "0157a43d722b4bc0390ae6d92ab35eb4", "score": "0.6656966", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\n\t}", "title": "" }, { "docid": "01c909e54a8faeeffbbb535fab09a197", "score": "0.6637786", "text": "@Override\n public void onOpen(SQLiteDatabase db) {\n super.onOpen(db);\n }", "title": "" }, { "docid": "524a5345e7e0874c7c431f815ac70253", "score": "0.6619935", "text": "@Override\n public void onCreate() {\n // connect to data source\n\n }", "title": "" }, { "docid": "78746a1836257dbcc16c4ae3a4c85518", "score": "0.660757", "text": "@Override\n\t\tpublic void onOpen(SQLiteDatabase db) {\n\t\t\tsuper.onOpen(db);\t\t\t\n\t\t}", "title": "" }, { "docid": "46494ec1a41c6c58abe88da6127396ee", "score": "0.66055745", "text": "@Override\r\n public void onOpen(SQLiteDatabase db) {\n }", "title": "" }, { "docid": "48c78f8680faeaae853aaaf8d1256b42", "score": "0.66031605", "text": "@Override\n public void onInitialised() {\n }", "title": "" }, { "docid": "4bc346a99814ce3d9cd4d1bc723aeee3", "score": "0.66017973", "text": "@Override\n public void onInitialized() {\n }", "title": "" }, { "docid": "e1e612c25b25297993c8ca946aa77f94", "score": "0.65993446", "text": "@Override\n public boolean onCreate() {\n db = Connector.getDatabase();\n return false;\n }", "title": "" }, { "docid": "fd8b81d18d36658d2f4b9d892d5f2b2d", "score": "0.65891683", "text": "public void onInit() {\n }", "title": "" }, { "docid": "86953f93ef7dd0f3a4ab5a630e85cf1e", "score": "0.65774655", "text": "@PostConstruct\n private void init() {\n beanSessionBookcase.initDatabase();\n }", "title": "" }, { "docid": "1be4d6f48da4dd02dc9e92ec0b37cc43", "score": "0.6575699", "text": "public void init() {\n\t dbEngine.connect();\n\t getGameDetail();\n\t}", "title": "" }, { "docid": "6f372dbad9b010dedc0458141ab8142d", "score": "0.65378565", "text": "@Override\n\tpublic void initialize(TweetStore db) {\n\t\t\n\t}", "title": "" }, { "docid": "517f40955aa06fa5971bae7c9c5451c3", "score": "0.6527077", "text": "@Override\n public boolean onCreate() {\n myDB = new MyDBHandler(getContext(), null, null, 1)\n return false;\n }", "title": "" }, { "docid": "d82509846b12a180df2bc9c619e6180c", "score": "0.6523953", "text": "@PostConstruct\n public void init() {\n final List<Config> confList = em.createQuery(\"SELECT c from Config c WHERE c.name = :name\", Config.class)\n .setParameter(\"name\", \"schema_version\").getResultList();\n if (CollectionUtils.isEmpty(confList)) {\n initDB.initialPopulation();\n em.persist(new Config(\"schema_version\", \"1\"));\n }\n checkDevicesTable();\n checkSlotsTable();\n checkUnitsTable();\n }", "title": "" }, { "docid": "1cde68b2bb5487a50398a7dda7136396", "score": "0.6516211", "text": "private void initializeDatabase() {\n\t\tthis.database = new UtilDatabase(this) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected java.util.List<Class<?>> getDatabaseClasses() {\r\n\t\t\t\tList<Class<?>> list = new ArrayList<Class<?>>();\r\n\t\t\t\tlist.add(DB.class);\r\n\t\t\t\treturn list;\r\n\t\t\t};\r\n\t\t};\r\n\t\tthis.database.initializeDatabase(\r\n\t\t (String) this.Config.getProp(\"DB.driver\"),\r\n\t\t (String) this.Config.getProp(\"DB.url\"),\r\n\t\t (String) this.Config.getProp(\"DB.username\"),\r\n\t\t (String) this.Config.getProp(\"DB.password\"),\r\n\t\t (String) this.Config.getProp(\"DB.isolation\"),\r\n\t\t (Boolean) this.Config.getProp(\"DB.logging\"),\r\n\t\t (Boolean) this.Config.getProp(\"DB.rebuildDB\"));\r\n\t\t\r\n\t\tthis.Config.setProp(\"DB.rebuildDB\", false);\r\n\t}", "title": "" }, { "docid": "b47a2fde8c0be77bd907fad749310c41", "score": "0.6493113", "text": "@Override\n public boolean onCreate() {\n myDatabaseHelper=new MyDatabaseHelper(this.getContext(), \"myDict.db3\", 1);\n return true;\n }", "title": "" }, { "docid": "3c3e34fbc6c39f1484fdca6d6962fa38", "score": "0.6478711", "text": "private void initDatabase() {\n database = getClient().getDatabase(getProps().getProperty(\"database\"));\n }", "title": "" }, { "docid": "d7cae42e827c51ae61196d9ea8015896", "score": "0.64333516", "text": "private void initDB() {\n characterdataDb = new CharacterdataDatabase(this);\n characterdataDb.open();\n statsDb = new StatsDatabase(this);\n statsDb.open();\n weaponDb = new WeaponDatabase(this);\n weaponDb.open();\n armorDb = new ArmorDatabase(this);\n armorDb.open();\n itemDb = new ItemDatabase(this);\n itemDb.open();\n\n\n }", "title": "" }, { "docid": "d10294cddca9ad2cb5aec76e59b9d5c8", "score": "0.6420725", "text": "@Override\n public boolean onCreate() {\n Context context = getContext();\n movieDatabase = new MoviesDatabase(context);\n\n return true;\n }", "title": "" }, { "docid": "5dea3baef6446b11a3724c51013798cf", "score": "0.64146644", "text": "@Override\n\tpublic void onInit() {\n\t\t\n\t}", "title": "" }, { "docid": "66a1f3473717475676be0cc27ffce0b5", "score": "0.6397672", "text": "public void initialize() {\n this.loadTransactionList();\n }", "title": "" }, { "docid": "397bf799c4d9157e42b66c4cd46cbac7", "score": "0.6389558", "text": "@Override\n public boolean onCreate() {\n mDataBaseHandler = new DataBaseHandler(getContext());\n return true;\n }", "title": "" }, { "docid": "1b3608438c0152f1d7221ccaae7b3b49", "score": "0.63716036", "text": "@Override\n public void onCreate() {\n super.onCreate();\n Realm.init(getApplicationContext());\n\n //todo normal migration\n RealmConfiguration realmConfiguration = new RealmConfiguration.Builder()\n .name(Realm.DEFAULT_REALM_NAME)\n //.name(REALM_NAME)\n .schemaVersion(SCHEMA_VERSION)\n //.deleteRealmIfMigrationNeeded()\n // Or you can add the migration code to the configuration.\n // This will run the migration code without throwing\n // a RealmMigrationNeededException.\n /*.migration((realm, oldVersion, newVersion) -> {\n if(oldVersion == 0) {\n final RealmObjectSchema colorSchema = realm.getSchema().get(\"jar_color\");\n colorSchema.addField(\"jar_color\", int.class);\n oldVersion++;\n }\n })*/\n .migration(new Migration())\n .build();\n Realm.setDefaultConfiguration(realmConfiguration);\n\n // Initialize the SDK before executing any other operations,\n VKSdk.initialize(getApplicationContext());\n\n lang = Prefs.with(getBaseContext()).getPrefLanguage();\n if (lang.equals(\"default\")) {\n lang = getResources().getConfiguration().locale.getCountry().toLowerCase();\n Prefs.with(getBaseContext()).setPrefLanguage(lang);\n }\n locale = new Locale(lang);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }", "title": "" }, { "docid": "1091ae585847f4e711e4280171b98f60", "score": "0.63622236", "text": "public void initialize() {\n dependencies = ProvenanceSystem.getDbManager().getDependencies();\n }", "title": "" }, { "docid": "9cf01e2b63f353ea911ce2a639e78304", "score": "0.6360926", "text": "private void init() {\n final LiveData<List<Track>> fromDB = loadFromDb();\n trackList.addSource(fromDB, new Observer<List<Track>>() {\n @Override\n public void onChanged(@Nullable List<Track> tracks) {\n trackList.setValue(tracks);\n getTracksFromApiOrDb(fromDB);\n }\n });\n }", "title": "" }, { "docid": "16595ec09d2478f288de2579d9e41441", "score": "0.6359502", "text": "private void setDatabaseCreated() {\n mIsDatabaseCreated.postValue(true);\n }", "title": "" }, { "docid": "fb70b2bbbc1a26b79802eadea6933f0b", "score": "0.6348722", "text": "private void initThemaDao() \n\t{\n\t\tthemaDao = new ThemaDao();\n \n }", "title": "" }, { "docid": "3c15322e63d5d4b3f3b490699b0fc382", "score": "0.6340696", "text": "public void initializeOrFail() {\n try {\n initialize();\n } catch (SQLException e) {\n DatabaseUtil.throwAndroidSQLException(TAG, e);\n }\n }", "title": "" }, { "docid": "f01a67177b8a6f9a68e422af7847fe68", "score": "0.63301814", "text": "private static void initailzeDatabaseTables() {\n\t}", "title": "" }, { "docid": "ee213ba56f0b9e7077a6b606c3348126", "score": "0.6326134", "text": "public void initEntireDatabase() {\n\n // Inserts all the counties into the county table\n for (int state_id = 1; state_id < 52; state_id++) {\n this.insertCounties(state_id);\n }\n\n // Inserts all the state and county results into their respective tables, as well as state\n // demographics information\n for (int year = 1972; year <= 2016; year += 4) {\n this.insertStateResult(year);\n for (int state_id = 1; state_id < 52; state_id++) {\n this.insertCountyResult(state_id, year);\n this.insertDemographicData(state_id, year);\n }\n }\n }", "title": "" }, { "docid": "75d0df5b0aef21f0fbf928753b93ccb6", "score": "0.63188934", "text": "private void init() {\n try {\n this.database = catalogManager.getConfiguration().getDatabasePrefix() + \"_clinical\";\n\n this.clinicalVariantEngine = getClinicalStorageEngine();\n } catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "77b040612089c46c4550a25fe1429896", "score": "0.63044417", "text": "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n sqLiteDatabase.execSQL(SQL_CREATE_ENTRIES);\n\n }", "title": "" }, { "docid": "793b02e313233cdbcf63c1d6d06d2af7", "score": "0.6295794", "text": "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// if we are auto-creating our schema, check and create\n\t\t\tif (m_autoDdl)\n\t\t\t{\n\t\t\t\tm_sqlService.ddl(this.getClass().getClassLoader(), \"sakai_presence\");\n\t\t\t}\n\n\t\t\tsuper.init();\n\t\t}\n\t\tcatch (Exception t)\n\t\t{\n\t\t\tlog.warn(\"init(): \", t);\n\t\t}\n\t}", "title": "" }, { "docid": "f3a0c248a8fcea29199ecd4b2273fb7e", "score": "0.6293869", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tOwnTable.onCreate(database);\n\t}", "title": "" }, { "docid": "c19b700c0a5ee747be03981012ab7974", "score": "0.62833893", "text": "@Override\n public void onCreate() {\n super.onCreate();\n //initialize\n ecNumber = PreferenceManager.getDefaultSharedPreferences(this);\n loginData = getPref();\n databaseHelper = new DatabaseHelper(this);\n databaseOnlineStatus = new DatabaseOnlineStatus(this);\n databaseOnlineStatus.deleteData();\n databaseLocation = new DatabaseLocation(this);\n init();\n\n\n\n }", "title": "" }, { "docid": "57e621ef0d5c24db2e1977574a20dc7e", "score": "0.6279309", "text": "@Override\n public void onCreate() {\n super.onCreate();\n DaoMaster.DevOpenHelper devOpenHelper = new DaoMaster.DevOpenHelper(this, \"Utems-db\");\n SQLiteDatabase database = devOpenHelper.getWritableDatabase();\n daoSession = new DaoMaster(database).newSession();\n }", "title": "" }, { "docid": "4eed096eb1d82980b68e50160a556d47", "score": "0.62761563", "text": "private void initData() {\n final long token = Binder.clearCallingIdentity();\n try {\n if (mCursor != null) {\n mCursor.close();\n }\n\n Date date = new Date(System.currentTimeMillis());\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n mCursor = mContext.getContentResolver().query(\n FootballScoresDatabaseContract.ScoresTable.buildScoreWithDate(),\n Utilities.DATABASE_PROJECTION,\n null,\n new String[]{simpleDateFormat.format(date)},\n null\n );\n\n } finally {\n Binder.restoreCallingIdentity(token);\n }\n }", "title": "" }, { "docid": "d6e4f14ae2c730aa7631d84e31cf0aa3", "score": "0.62684476", "text": "private synchronized void initializeData() {\n if (mInitialized) return;\n mInitialized = true;\n\n if (mDatabaseSource.isExist(1)) {\n Log.e(LOG_TAG, \"Data exist in DB\");\n startFetchDataFromDb();\n } else {\n Log.e(LOG_TAG, \"Data fetch from network\");\n startFetchDataFromNetwork();\n }\n }", "title": "" }, { "docid": "e089732988e09706eb4d05314cce24e1", "score": "0.62565917", "text": "private static synchronized void ensureInitialized() {\n\t\tif ( null == _db ) {\n\t\t\tthrow new IllegalStateException( \"JSON/q has not been initialized\" );\n\t\t}\n\t}", "title": "" }, { "docid": "aa3697f9049c33214596351e16189e84", "score": "0.62539554", "text": "@Override\r\n\t public void onCreate() {\n\t Log.i(TAG, \"创建onCreate\");\r\n\t mydatabase = new DatabaseUtil(this); //数据库访问对象\r\n\r\n\t }", "title": "" }, { "docid": "5598267409a1ef2319659902355b7a8f", "score": "0.62421465", "text": "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\r\n\t\t// Log.e(TAG, \"In Method: onCreate\");\r\n\t\tDBAdapter.onCreate(db);\r\n\t}", "title": "" }, { "docid": "4f4df8af5bf41f2eba6475114cb73d5f", "score": "0.6238203", "text": "public void init(){\n\n try {\n\n //setup database tables\n createTables();\n //seed customers\n createCustomers();\n //seed comedians\n createComedians();\n //seed events\n createEvents();\n //seed bookings\n createBookings();\n //seed feedback\n createFeedback();\n\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9ed43d1a92dd87aefe7a1c3fc26a6508", "score": "0.62194616", "text": "@Override\r\n public boolean onCreate() {\n MyOwnDatabase myHelper = new MyOwnDatabase(getContext());\r\n myDB = myHelper.getWritableDatabase();\r\n if(myDB!=null)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "b4d08e6ae3160393f854b010320b6f78", "score": "0.62176603", "text": "@Override\n protected void onStart() {\n super.onStart();\n if (dao == null) {\n dao = new DAO(this);\n dao.open();\n }\n// fillData();\n System.out.println(\"on start\");\n }", "title": "" }, { "docid": "900f23bbaeb92ef2a0ba3b27427209f0", "score": "0.62162346", "text": "private void initializeDatabase() {\n logger.info(\"Initializing the Apicurio Hub API database.\");\n logger.info(\"\\tDatabase type: \" + config.getJdbcType());\n \n final List<String> statements = this.sqlStatements.databaseInitialization();\n logger.debug(\"---\");\n this.jdbi.withHandle( handle -> {\n statements.forEach( statement -> {\n logger.debug(statement);\n handle.createUpdate(statement).execute();\n });\n return null;\n });\n logger.debug(\"---\");\n }", "title": "" }, { "docid": "ea566af7e43d225fa91098c19a56e0a2", "score": "0.62136835", "text": "@PostConstruct\n\tprivate void initialize() {\n\t\tlog.info(\"Intializing tables\");\n\t\ttry {\n\t\t\tjdbcTemplate.execute(\"CREATE TABLE sentences(\"\n\t\t\t\t\t+ \"id int primary key auto_increment, \"\n\t\t\t\t\t+ \"name VARCHAR(16), \"\n\t\t\t\t\t+ \"key INT, \"\n\t\t\t\t\t+ \"type VARCHAR(16), \"\n\t\t\t\t\t+ \"timestamp INT8)\");\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "df777dd46794218ec69fbd8b8cb8d5da", "score": "0.619712", "text": "@Override\n\tpublic void onOpen(SQLiteDatabase db) {\n\t\tsuper.onOpen(db);\n\t\t//打开数据库首先被执行的\n\t}", "title": "" }, { "docid": "08ce1440e1e18391cbbac03bb3528cdb", "score": "0.61917335", "text": "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }", "title": "" }, { "docid": "08ce1440e1e18391cbbac03bb3528cdb", "score": "0.61917335", "text": "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }", "title": "" }, { "docid": "5aa655462473f344961e2965a39a9f32", "score": "0.61705816", "text": "private void initDB() {\n\t\tmdb.openDatabase();\n\t\tsubPrice = String.valueOf(mdb.getSubPrice(userName));\n\t\titemList = mdb.getCartItemList(userName);\n\t\tmdb.closeDatabase();\n\t}", "title": "" }, { "docid": "f55728c67e9fa754e6dc9be15224aa12", "score": "0.6158163", "text": "private void init() {\n // delete all in database\n personDao.deleteAll();\n // add 5 patients\n for (int i = 1; i < 6; i++) {\n Person p = new Person();\n p.setAddress(\"address_\" + i);\n p.setFirstName(\"firstName_\" + i);\n p.setSecondName(\"secondName_\" + i);\n p.setRole(Role.PATIENT);\n personDao.save(p);\n }\n }", "title": "" }, { "docid": "140369ec617ed0ac3e18c3c2541a785d", "score": "0.6144802", "text": "@Override\r\n public void onCreate() {\r\n mDb.addEventCallback(mDbChangeHandler);\r\n mCr = mContext.getContentResolver();\r\n PersistSettings setting1 = mDb.fetchOption(PersistSettings.Option.FIRST_TIME_SYNC_STARTED);\r\n PersistSettings setting2 = mDb.fetchOption(PersistSettings.Option.FIRST_TIME_SYNC_COMPLETE);\r\n PersistSettings setting3 = mDb\r\n .fetchOption(PersistSettings.Option.FIRST_TIME_NATIVE_SYNC_COMPLETE);\r\n if (setting1 != null) {\r\n mFirstTimeSyncStarted = setting1.getFirstTimeSyncStarted();\r\n }\r\n if (setting2 != null) {\r\n mFirstTimeSyncComplete = setting2.getFirstTimeSyncComplete();\r\n }\r\n if (setting3 != null) {\r\n mFirstTimeNativeSyncComplete = setting3.getFirstTimeNativeSyncComplete();\r\n }\r\n \r\n if (mFetchNativeContactsOnChange) {\r\n mNativeContactsApi.registerObserver(this);\r\n }\r\n if (mFirstTimeSyncComplete) {\r\n // native sync shall be performed only if the first time sync has\r\n // been completed\r\n startUpdateNativeContactSyncTimer();\r\n startFetchNativeContactSyncTimer();\r\n }\r\n }", "title": "" }, { "docid": "c86feb2815b0f5efc5064217c6c9a9c8", "score": "0.6142374", "text": "public void init() {\n faqDao = new GenericDao(FAQ.class);\n// userDao = new GenericDao(User.class);\n }", "title": "" }, { "docid": "3e379b8cabc4867ab6ef66b872d0754b", "score": "0.6139674", "text": "public void initialize() {\r\n\t\tcontext.initialize();\r\n\t}", "title": "" }, { "docid": "2372ecd9bac0bffa59e3cc95c06f9fbc", "score": "0.6137208", "text": "private void initializeFirebaseDBFields() {\r\n mAuth = FirebaseAuth.getInstance();\r\n user = mAuth.getCurrentUser();\r\n mAuthListener = new FirebaseAuth.AuthStateListener() {\r\n /**\r\n * This method is prompted when a user logs in or logs out.\r\n * It adds an observer for auth state changes.\r\n * @param firebaseAuth the entry point of the Firebase SDK\r\n */\r\n @Override\r\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\r\n }\r\n };\r\n\r\n database = FirebaseDatabase.getInstance();\r\n mUserGroups = database.getReference(DatabaseKeyConstants.USERS)\r\n .child(user.getUid()).child(DatabaseKeyConstants.GROUPS);\r\n }", "title": "" }, { "docid": "e18413b3859c0eaf9efb575428c26e03", "score": "0.6121122", "text": "private void preInit() {\r\n this.tableName = \"users\";\r\n \r\n addFields(this.ownFields);\r\n }", "title": "" }, { "docid": "88a9d67f5161f2029fb999bd93e0d225", "score": "0.6118548", "text": "@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tdb.execSQL(SQL_CREATE_ENTRIES);\t\t\n\t\t}", "title": "" }, { "docid": "539c298f2db765e74d95a58677b41abb", "score": "0.61172247", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db)\n\t{\n\t\tdb.execSQL(SQL_CREATE_ENTRIES);\n\t}", "title": "" }, { "docid": "ed4c1879ab3c34fbd82bd9d3a26901f3", "score": "0.6116741", "text": "private void setInitialData() {\n databaseAdapter.open();\n folders.addAll(databaseAdapter.getFolders());\n databaseAdapter.close();\n }", "title": "" }, { "docid": "9f879ca75a8dec494428cd1b154cf706", "score": "0.61164063", "text": "public abstract void initialize( ConstraintDatabase cdb );", "title": "" }, { "docid": "8b8e5d22f805ebfa93589deccc072e08", "score": "0.60966027", "text": "@Override\n public boolean onCreate() {\n mDbHelper = new WorkoutDbHelper(getContext());\n return true;\n }", "title": "" }, { "docid": "aacf959c2aae13654338cc1d1c008c43", "score": "0.60915387", "text": "private DatabaseManager() {\n connetion = new ConectionDB();\n recreateTable(CreationStrings.version);\n }", "title": "" }, { "docid": "6fa3f60e1f7c8b0e9c14bf81491324d2", "score": "0.6089985", "text": "public abstract void initializeRoom();", "title": "" }, { "docid": "da590170e6f32a343dcb05dd33f4a1ae", "score": "0.60890895", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tDBUtil.getInstance().initSpManager(this);\n\t\t\n//\t\tdataInit();\n\t}", "title": "" }, { "docid": "9d749c369939dca7b11f332ebf2230d8", "score": "0.60887176", "text": "public MemoryDatabase() {\r\n \t\tthis.initialize();\r\n \t}", "title": "" }, { "docid": "036248992430a253d40aded777c69c95", "score": "0.6088084", "text": "public InitDB() {\r\n }", "title": "" }, { "docid": "ae1fc61a031a62196b51da0bc15d493f", "score": "0.60847145", "text": "@PostConstruct\n\tprivate void initDatabase() {\n\t\trepository.save(new Employee(\"Bilbo\", \"Baggins\", \"thief\"));\n\t}", "title": "" }, { "docid": "819263a99232429ebedec6a80f639d3f", "score": "0.60809", "text": "protected void reinitialize() {\n if(!this.entityManager.isOpen()) {\n this.entityManager = App.entityManagerFactory.createEntityManager();\n }\n }", "title": "" }, { "docid": "48b54e5a9e07b8ee1f01c258067e006d", "score": "0.6074609", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_database_example);\n\n //and here\n mydb = new OurDatabase(this); //This should be included in the onCreate method\n }", "title": "" }, { "docid": "60f7bcc52ae8718704fa54714b7fc3ea", "score": "0.60729015", "text": "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n sqLiteDatabase.execSQL(CREATE_TABLE);\n }", "title": "" } ]
6a959b1e3639c54213b0219bcc360ffe
the options for freeing a path
[ { "docid": "802b4653bee370c86f8404e55f1da990", "score": "0.0", "text": "public FreeTOptions getOptions() {\n return this.options;\n }", "title": "" } ]
[ { "docid": "5fe889e03e14caa553aae3700f4d3e66", "score": "0.5843952", "text": "public FreeTResponse free(String path, boolean recursive, FreeTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;", "title": "" }, { "docid": "453216dfe87e7bf3eb18c6dca613ca7d", "score": "0.57497466", "text": "public void destructor()\n//\n////////////////////////////////////////////////////////////////////////\n{\n // Free up path\n path.unref();\n\n // The SoDetailList destructor deletes all details in the list, so\n // we don't have to do it here\n}", "title": "" }, { "docid": "7699b58a34b38a3c36e5a2054ab74447", "score": "0.5679083", "text": "@Override\n public void clean(Path path) {\n }", "title": "" }, { "docid": "d4eabdee53be9fbebcf4424a44cec8ae", "score": "0.5667538", "text": "protected abstract void closePath();", "title": "" }, { "docid": "aea37ab2d4ecab5b98463a79ef93a810", "score": "0.55792564", "text": "void deleteFile(FsPath path);", "title": "" }, { "docid": "75b58ee54d8214bc0f6d588b3b62f713", "score": "0.5554238", "text": "public void destructor() {\n \t \t \n \t \t int n = pimpl.pathcodearray.getLength();\n \t \t for (int i = 0; i < n; i++) Destroyable.delete( pimpl.pathcodearray.operator_square_bracket(i));\n \t \t Destroyable.delete( this.state);\n\n \t \t this.currentpath.unrefNoDelete(); // to match the ref() in the constructor\n \t \t \n \t \t Destroyable.delete(currentpath); // java port \t \t \n \t \t Destroyable.delete(pimpl); // java port\n \t }", "title": "" }, { "docid": "8721d61591f83f6a3de58594612ddf08", "score": "0.55279505", "text": "public void free();", "title": "" }, { "docid": "132440f9bed63ae381be8cb1294d020d", "score": "0.55139476", "text": "private void setDel() {\n\t\tDelOpt.add(\"-d\");\n\t\tDelOpt.add(\"/d\");\n\t\tDelOpt.add(\"delete\");\n\n\t}", "title": "" }, { "docid": "d470000149a36361823af35da0a240b3", "score": "0.54530346", "text": "public void close()\n//\n////////////////////////////////////////////////////////////////////////\n{\n // Free up path\n path.unref();\n\n // The SoDetailList destructor deletes all details in the list, so\n // we don't have to do it here\n}", "title": "" }, { "docid": "7c36dbcbd83a17a357f2e6bb67b933d0", "score": "0.5339227", "text": "void destroyObservablePath(final ObservablePath path) {\n path.dispose();\n }", "title": "" }, { "docid": "27e61cf9e58fee23efd1e5587ae27725", "score": "0.52806276", "text": "public void free() {\r\n\r\n\t}", "title": "" }, { "docid": "9ae6fed829c757c85fa1245618401e1d", "score": "0.52298063", "text": "go.micro.runtime.RuntimeOuterClass.DeleteOptions getOptions();", "title": "" }, { "docid": "c4b0becccd3c3a6f4bafd30e7943ceb1", "score": "0.5205963", "text": "public void resetPath();", "title": "" }, { "docid": "1be9ac4be3e3a673fbd3c0cff1830ddf", "score": "0.51317674", "text": "abstract void free();", "title": "" }, { "docid": "eec8cf6b2da2288aa6ffca6baeac2e09", "score": "0.51150364", "text": "public abstract void free();", "title": "" }, { "docid": "74d7c24d40473438d611333918e0d4ac", "score": "0.5078957", "text": "public Builder clearPath() {\n path_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6e0800521db4e5402fad8b0f17ae71a8", "score": "0.50606644", "text": "@Override\r\n\tpublic void remFile(String path) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1207fac5d2f2237268da8d215d67f59", "score": "0.5055401", "text": "void free() {\n\t\t}", "title": "" }, { "docid": "0b6257880b412255ed06579e8769c061", "score": "0.5052579", "text": "public void ungeneratePath() {\n path = oldPaths.pop();\n }", "title": "" }, { "docid": "af2d3cf489d7b90f62e8a0b53a05ea87", "score": "0.504748", "text": "public void free(ItemReference ref);", "title": "" }, { "docid": "4d1bdee5ae33e5edef9878e9d60f7d98", "score": "0.5018736", "text": "public void free() {\n if (relRootCM.isOpen())\n relRootCM.close();\n if (relReachableCM.isOpen())\n relReachableCM.close();\n if (relCICM.isOpen())\n relCICM.close();\n if (relCMCM.isOpen())\n relCMCM.close();\n }", "title": "" }, { "docid": "dabf1ace9f711a90ae3e7f6368215101", "score": "0.5018244", "text": "public void clearPathData()\r\n {\r\n // Clear out all paths\r\n for(String key: network_topology.keyset())\r\n {\r\n //System.out.println(\"Clearing : \"+ key);\r\n network_topology.get(key).previous=null;\r\n network_topology.get(key).minDistance = Double.POSITIVE_INFINITY;\r\n }\r\n }", "title": "" }, { "docid": "0cb2b6bddb1abc0740ac0d58e477553d", "score": "0.501275", "text": "void removePathItem(String name);", "title": "" }, { "docid": "13e218aa6f166a9ec4609d059d947d82", "score": "0.5005883", "text": "void unregister(Path path);", "title": "" }, { "docid": "42f888f755ba6a4e7148a0ae32ced7a4", "score": "0.50056326", "text": "public void clearPaths() {\n _thePaths.clear();\n }", "title": "" }, { "docid": "1aceab4f2869c7b1210f8c2def245d2f", "score": "0.49938202", "text": "void invalidate(String pathString);", "title": "" }, { "docid": "8e0fe7d79fef535268683cb088715b0d", "score": "0.4951997", "text": "void removePath(int i);", "title": "" }, { "docid": "ce079f3f0abbfd789b76dd02b8433f9f", "score": "0.49448314", "text": "void delete(MountPoint mountPoint);", "title": "" }, { "docid": "b7e9083ce394ae5f3af9c20145c22cf3", "score": "0.49126646", "text": "public void dispose() {\n Collection<File> values = compareFiles.values();\n for (File file : values) {\n file.delete();\n }\n\n compareFiles.clear();\n }", "title": "" }, { "docid": "8b10b597b96827db3eaa442e6ec74466", "score": "0.4906802", "text": "void fileDeleted(String path);", "title": "" }, { "docid": "e915b157af2c787464bd52bc1a6b2e56", "score": "0.4900432", "text": "@Override\n\tpublic void freeMe() {\n\n\t}", "title": "" }, { "docid": "2bc283cf230929bd2505184a21040239", "score": "0.48716205", "text": "public remove_args setPath(String path) {\n this.path = path;\n return this;\n }", "title": "" }, { "docid": "4c667bba2f46fc2f3769df6276861bb5", "score": "0.48694578", "text": "public void free() {\n byteBase.free();\n byteBase = null;\n }", "title": "" }, { "docid": "3e4890e712f17524f897a45ab83a90b4", "score": "0.4862108", "text": "public void delete()\n {\n if (this.data != null)\n {\n this.data.free();\n this.data = null;\n }\n \n this.width = 0;\n this.height = 0;\n \n this.mipmaps = 1;\n }", "title": "" }, { "docid": "032c412e1f90c9c0eedfb889daf32a9d", "score": "0.48407844", "text": "public UnmountTResponse unmount(String alluxioPath, UnmountTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;", "title": "" }, { "docid": "cc1f340af54f3f3cb8b91dc6fd59fa43", "score": "0.48221087", "text": "private void del_file() {\n\t\tFormatter f;\n\t\ttry{\n\t\t\tf = new Formatter(url2); //deleting file content\n\t\t\tf.format(\"%s\", \"\");\n\t\t\tf.close();\t\t\t\n\t\t}catch(Exception e){}\n\t}", "title": "" }, { "docid": "68548633f32ec7420811f1462e646fc1", "score": "0.48214892", "text": "public void free() {\n\t\tcodeItem.free();\n\t}", "title": "" }, { "docid": "5bb2767fc1188ec3cd320179a6040054", "score": "0.4791616", "text": "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "title": "" }, { "docid": "a48b72c31cd8a3aaca9e88914f093c0f", "score": "0.47907636", "text": "public native void free();", "title": "" }, { "docid": "1a4588a5f16b20fbfdcd73e9ed186871", "score": "0.47792876", "text": "@Override\r\n\tpublic void remDir(String path) {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b8a3454e952e92e7dd18650ee0980e1", "score": "0.4767264", "text": "void Free();", "title": "" }, { "docid": "d22b032359f5d4dbd6afbfab943b6f1b", "score": "0.4754833", "text": "public Builder clearPaths() {\n paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "87bfd2a50037d215e5449a2b55f41079", "score": "0.47495443", "text": "public void removePath(PathItem pathItem) {\r\n pathItems.remove(pathItem);\r\n }", "title": "" }, { "docid": "5d97976fb0daca52d30f34bc5b175350", "score": "0.47442138", "text": "private void deleteResource() {\n }", "title": "" }, { "docid": "3381db252d1a91766d2f3649a5460614", "score": "0.4740871", "text": "public void free(){\n\t\t//android.util.Log.d(TAG,\"free()\");\n\t\tthis.freeGeometries();\n\t\tthis.freeLights();\n\t\tthis.freeCameras();\n\t\tthis.freeTextures();\n\t\tthis.freeMaterials();\n\t}", "title": "" }, { "docid": "b9ec85997b6b4bcdb8319c2fa160faab", "score": "0.47254938", "text": "void deleteFile(FileReference fileReferece);", "title": "" }, { "docid": "2a32984ab209849d4fd7fb5295254d09", "score": "0.4722309", "text": "public void delete(String so_cd);", "title": "" }, { "docid": "a9d59eb7aea2f86c488f1532360b9ebc", "score": "0.47214013", "text": "@Override\r\n\tpublic void destory() {\n\t\t\r\n\t}", "title": "" }, { "docid": "424dd626b7aa2d83d83eb0f325dfc4c4", "score": "0.4721286", "text": "public void destory(){\n \n }", "title": "" }, { "docid": "d5931d3b7a6ca7d0bf26998de62f2604", "score": "0.46942836", "text": "public void deleteFile(File f);", "title": "" }, { "docid": "a4662317f167fb890ab1a081a69d7e76", "score": "0.4688437", "text": "@Override\n\tpublic void removeOption(String option) {\n\n\t}", "title": "" }, { "docid": "90be218c954b382257aa76d4ca315b56", "score": "0.46859604", "text": "abstract public void remove( String path )\r\n throws Exception;", "title": "" }, { "docid": "31043fc248fb7c6a6715050b66556d10", "score": "0.46726778", "text": "void close() throws FileSystemException;", "title": "" }, { "docid": "bc5431391ae409ee6514c5c8eabda29e", "score": "0.4668028", "text": "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}", "title": "" }, { "docid": "4cd66fb692abc90016add86dbc84f975", "score": "0.46674272", "text": "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "title": "" }, { "docid": "3d4f7739272098cfed85ce82bfe35353", "score": "0.46599558", "text": "public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }", "title": "" }, { "docid": "d3dfc5f49032e60dc59420f8384170d1", "score": "0.46588036", "text": "void delete(InformationResourceFile file);", "title": "" }, { "docid": "8749942612d9c86cbe7d076c889aa3a7", "score": "0.4624847", "text": "private void clean(Path path) throws IOException {\n if (Files.exists(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<>() {\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n\n public FileVisitResult postVisitDirectory(Path path, IOException exception) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n });\n }\n }", "title": "" }, { "docid": "83309f1fa16fc8bc010e05e1f196400c", "score": "0.46222016", "text": "public void freeGeometries(){\n\t\tfinal int size = this.geometries.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tfinal int key = this.geometries.keyAt(index);\n\t\t\tthis.geometries.get(key).free();\n\t\t\tthis.geometries.delete(key);\n\t\t}\n\t}", "title": "" }, { "docid": "6ebbf8f50a6037dd022e958ad40552e5", "score": "0.46200463", "text": "@Override\n\tpublic void destory() {\n\t\t\n\t}", "title": "" }, { "docid": "6ebbf8f50a6037dd022e958ad40552e5", "score": "0.46200463", "text": "@Override\n\tpublic void destory() {\n\t\t\n\t}", "title": "" }, { "docid": "f854f9da1ea6fc1f98f305538363ec75", "score": "0.4619543", "text": "public void delete() {\n\t\tcp.delete();\n\t}", "title": "" }, { "docid": "535ebd1a6fb9a2a9ad109faef765ccb5", "score": "0.4605022", "text": "public free_args(free_args other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetPath()) {\n this.path = other.path;\n }\n this.recursive = other.recursive;\n if (other.isSetOptions()) {\n this.options = new FreeTOptions(other.options);\n }\n }", "title": "" }, { "docid": "473731afc692aff62e8022762d203b9a", "score": "0.46014833", "text": "public DeleteTResponse remove(String path, boolean recursive, DeleteTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;", "title": "" }, { "docid": "f7ce791b0a7498d5f11533805d24b454", "score": "0.4588056", "text": "public PcepMsgPath() {\n eroObj = null;\n attrList = null;\n rroObj = null;\n this.isEroObjectSet = false;\n this.isAttributeListSet = false;\n this.isRroObjectSet = false;\n this.isBandwidthObjectSet = false;\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.45861685", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "644824cd082dc4d6d3edfbd0607dde37", "score": "0.45703277", "text": "public void closepath() \n {\n\tLine line = new Line(_currentx, _currenty, _startx, _starty);\n\t_currentPath.add(line);\n\t_currentx = _startx;\n\t_currenty = _starty;\n\t_closedPath = true;\n }", "title": "" }, { "docid": "e6f6f05238853344a0beb34137d1fd26", "score": "0.45668092", "text": "public void destory()\n\t{\n\t\tif( !isConfigInitalized() ){\n\t\t\treturn;\n\t\t}\n\t\tif( isRedisClusterMode() ){\n\t\t\ttry {\n\t\t\t\t((JedisCluster) commands).close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\t((Jedis) commands).close();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "685cfda4e9ba5be0a94332e1bb568311", "score": "0.45666945", "text": "public void delete(String path) throws GRIDAClientException {\n\n List<String> paths = new ArrayList<String>();\n paths.add(path);\n\n delete(paths);\n }", "title": "" }, { "docid": "7fa5779751f338ccf6ebef9826725f17", "score": "0.4561071", "text": "public static void free(IJVLCMediaManager server) {\n \t}", "title": "" }, { "docid": "4223d984af14b480452f75c4ea4e6e00", "score": "0.45609352", "text": "public void clean();", "title": "" }, { "docid": "bd6f01c2eda17bf65461063f6d48dc5b", "score": "0.4560434", "text": "go.micro.runtime.RuntimeOuterClass.DeleteOptionsOrBuilder getOptionsOrBuilder();", "title": "" }, { "docid": "1f6ac40173fc37662a4b9dccd207dbc5", "score": "0.45600823", "text": "private void clearAssetPath() {\n \n assetPath_ = getDefaultInstance().getAssetPath();\n }", "title": "" }, { "docid": "de0c90c2176cafd1b27cf8a5f62ce058", "score": "0.45490658", "text": "boolean free(String variable);", "title": "" }, { "docid": "b02bc1691d3e29ec16846aaba2f80b17", "score": "0.45418102", "text": "public void freeMemory() {\n native_freeMemory();\n }", "title": "" }, { "docid": "7251c24b39b175afb1f70fa646dccb86", "score": "0.45409244", "text": "public void removeFileInstance()\n {\n this.source = null;\n this.data = null;\n }", "title": "" }, { "docid": "2e7e0b27e770dc4c6df6ec8ccb80a7fb", "score": "0.45339772", "text": "public void unsetFileStrc()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FILESTRC$4, 0);\n }\n }", "title": "" }, { "docid": "e7a56538ead908a863f5f00e5f081f3c", "score": "0.45246857", "text": "public void cleanup(Appendable err) throws IOException {\n\n String[] toRemove = {\".data\", \".properties\", \".script\", \".tmp\", \".log\"};\n\n for (String aToRemove : toRemove) {\n String tmpFile = \"\" + Globals.DBname + aToRemove;\n File f = new File(tmpFile);\n if (f.exists()) {\n\n f.delete();\n err.append(\"Abacus disk clean up: removing \" + tmpFile + \"\\n\");\n\n }\n }\n err.append(\"\\n\");\n }", "title": "" }, { "docid": "cc78162a57485946739b016a81e40e56", "score": "0.451828", "text": "@Override\n public int free(Pointer pointer) {\n if (null == pointer || 0 == pointer.pointer) {\n return -1;\n }\n\n int ret = JniContextAccess.release(pointer);\n pointer.setPointer(0);\n return ret;\n }", "title": "" }, { "docid": "69191aaf03ef3fa4ac6eeea56ce2e8b1", "score": "0.45121723", "text": "public void free() {\n mm.freeBlock(startingPosition, size);\n }", "title": "" }, { "docid": "265d57c702ade647ce936a39ec9489c7", "score": "0.4509159", "text": "public void destroy() {\r\n if (isDestroyed) {\r\n return;\r\n }\r\n isDestroyed = true;\r\n IOUtil.safeDelete(fileA);\r\n IOUtil.safeDelete(fileB);\r\n }", "title": "" }, { "docid": "daa3a221ca280c931ea5b1a7fcf7c33e", "score": "0.45041084", "text": "public void clearPath(Path path) throws Exception {\n List<FileInfo> listing = metastore.list(Collections.singletonList(path), true);\n \n for(FileInfo file : listing) {\n metastore.delete(file.getPath());\n }\n }", "title": "" }, { "docid": "81454406e89adc0c432b759df85b6ba0", "score": "0.4503691", "text": "public void deleteAllOptset() {\n this.optionSet = new ArrayList<OptionSet>();\n }", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.45019332", "text": "public void cleanup();", "title": "" }, { "docid": "c52a3fd1daff7e66c912f3b228eeb7e5", "score": "0.4501212", "text": "public void deleteOptsetByName(String name) {\n int index = findIndexOfOptset(name);\n if (index != -1) {\n this.optionSet.remove(index);\n } else {\n System.out.println(\"The optionset named \" + name + \" no exists !!!\");\n }\n }", "title": "" }, { "docid": "a7c54673dc2b611e10372668f15b11c9", "score": "0.45003513", "text": "void free(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources);", "title": "" } ]
d1bb07e73342a8413a6ffd8a2d165ba7
Moves to the next location of the square.
[ { "docid": "afe8e06a5475421e465a6fd5d83569be", "score": "0.69526047", "text": "public void move()\n {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(getDirection());\n if (gr.isValid(next))\n moveTo(next);\n else\n removeSelfFromGrid();\n \n }", "title": "" } ]
[ { "docid": "e6d9131b6ff390c19ecd634cf992c4f1", "score": "0.7054405", "text": "private void nextPosition() {\n\n\t\tsetCurrentDisplayId(getCurrentDisplayId() + 1);\n\t}", "title": "" }, { "docid": "46cdbb516954f7f86fe1a3dd7d6a1ca3", "score": "0.6901695", "text": "private void goToNext() {\n\t\tif ( frontIsClear() ) {\n\t\t\tmove();\n\t\t}\n\t\tif ( frontIsClear() ) {\n\t\t\tmove();\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "a89b51cb42755b803a831fd33d659939", "score": "0.6748772", "text": "void moveNext() {\n \t if (cursor != null && index != (length - 1)) {\n \t \tcursor = cursor.next;\n \t \tindex++;\n \t } else if (index == (length - 1)) {\n \t \tcursor = null;\n \t \tindex = -1;\n \t }\n }", "title": "" }, { "docid": "ae93fd19e12e00072126ba47320458dc", "score": "0.6675296", "text": "private void moveOnce() {\n\t\tint x = getPieceX(getCurrentPlayer());\n\t\tint y = getPieceY(getCurrentPlayer());\n\t\tif (y % 2 == 0) {// If y is even\n\t\t\tif (x == 9) {\n\t\t\t\ty++;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the y\n\t\t\t} else {\n\t\t\t\tx++;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the x\n\t\t\t}\n\t\t} else {\n\t\t\tif (x == 0 && y != 0) {\n\t\t\t\ty++;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the y\n\t\t\t} else {\n\t\t\t\tx--;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the x\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3a8ddce9c5f2a1c5a3b13a1cf071a201", "score": "0.6580757", "text": "public void moveNext() {\n if ((objects != null) && !objects.isEmpty()\n && (objectIndex < (objects.size() - 1))) {\n objectIndex++;\n object = objects.get(objectIndex);\n reset();\n fireObjectSelected();\n }\n }", "title": "" }, { "docid": "409bb67b0d824f1ffd60ac940de62f49", "score": "0.65573895", "text": "public void nextAnimationStep() {\r\n\t\tif(!isGameOver()) {\r\n\t\t\t//goes from the second to last row and and moves everything down 1\r\n\t\t\tfor(int row = board.length-2; row >= 0; row--) {\r\n\t\t\t\tfor(int col = 0; col < board[row].length; col++) {\r\n\t\t\t\t\tsetBoardCell(row+1, col, getBoardCell(row, col)); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//goes through the first row and adds random cells\r\n\t\t\tfor(int col = 0; col < board[0].length; col++) {\r\n\t\t\t\tsetBoardCell(0, col, BoardCell.getNonEmptyRandomBoardCell(random));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "61a0d40f7f81d9d89b42d1190b8ad474", "score": "0.65479016", "text": "public void move()\n {\n switch(direction) {\n case 3 :\n setLocation(getX(), getY() + 1);\n break;\n case 0 :\n setLocation(getX() + 1, getY());\n break;\n case 2 :\n setLocation(getX(), getY() - 1);\n break;\n case 1 :\n setLocation(getX() - 1, getY());\n break;\n }\n }", "title": "" }, { "docid": "5809b89ae252990da057c0826fb102ce", "score": "0.6495826", "text": "private void moveToNextLine() {\n\t\tif(frontIsClear()){\n\t\t\tfor (int i=0; i<4; i++) {\n\t\t\t\tif (frontIsClear()) {\n\t\t\t\t\tmove();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "022f3ff1c2986cbeab5f2e24fbb46047", "score": "0.64937055", "text": "private void moveIt() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "13fda476ddb2365bea0460cc7a6581f1", "score": "0.64772666", "text": "private void jumpToNextColumn(){\n\t\tmove();\n\t\tmove();\n\t\tmove();\n\t\tmove();\n\t}", "title": "" }, { "docid": "9ee7a2318de1603c041566fe1d15dba1", "score": "0.64634824", "text": "public void moveTo(BoardSquare newSquare) {\n if(this.location != null) {\n this.location.removePlayer(this); //remove from old location\n }\n this.role = null;\n this.location = newSquare; //set players new location\n this.location.addPlayer(this); //add to new location\n }", "title": "" }, { "docid": "bba8bf1110a75ae3620770b63d7d1601", "score": "0.6434811", "text": "public void moveTo(int col, int row){\n this.col += col;\n this.row += row;\n }", "title": "" }, { "docid": "1ff88b9f8e5ae1870f17d210823967a7", "score": "0.6408585", "text": "void moveNext(){\n if(0<=getIndex() && getIndex()<(length()-1)){\n cursor = cursor.next;\n index++;\n }\n else{\n cursor = null;\n }\n\n }", "title": "" }, { "docid": "30906f0a51debae9baa2adc8f60eae13", "score": "0.640505", "text": "private void nextPosition() {\n position++;\n }", "title": "" }, { "docid": "f2567bd1dd62ac87bb9238e06e43da5a", "score": "0.6394739", "text": "private void onNextTurn() {\n\t\tgamePanel.getDrawZone().setSelectedSquare(null);\n\t\tif (!currentMovement.isEmpty()) {\n\t\t\tgame.getBoard().move(currentMovement.getReversedCondensed());\n\t\t\tcurrentMovement.clear();\n\t\t\tgamePanel.repaint();\n\t\t}\n\t\tgamePanel.getActionZone().getNextButton().setText(\"Next turn\");\n\t\tgame.nextTurn();\n\t\tgamePanel.getInfoBar().updateLabels();\n\t\tsetButtonsVisibility();\n\t\tgamePanel.getDrawZone().getBoardView().updateMovement();\n\t}", "title": "" }, { "docid": "481d2e6b77747d125ce3619880ff5fc9", "score": "0.6374516", "text": "@Override\n public void findNextLoc() \n {\n try\n {\n setXPos(getXPos()+getXSpd());\n setYPos(getYPos()+getYSpd());\n if(getXSpd()>=0)\n {\n setType(1);\n }\n else if(getXSpd()<0)\n {\n setType(0);\n }\n setTimeCount(getTimeCount()+1);\n }\n catch(Exception ex)\n {\n ErrorLogger.logError(\"SEVERE\",this.getClass().toString(),ex.toString());\n }\n }", "title": "" }, { "docid": "98b204d13a2273c626dd0443abf64974", "score": "0.63579977", "text": "public void setNext() {\n\tif(col.getNr() < col.dim) {\n\t next = allSquares[row.getNr()-1][col.getNr()];\n\t}else if(col.getNr() == col.dim) {\n\t if(row.getNr() < row.dim) {\n\t\tnext = allSquares[row.getNr()][0];\n\t }else {\n\t\tnext = null;\n\t\tlastSquare = true;\n\t }\n\t}\n\tif(next != null) {\n\t if(next.col.getNr() == col.dim && next.row.getNr() == col.dim && next.predefined == true)\n\t\tlastSquare = true;\n\t}\n }", "title": "" }, { "docid": "0aa4b82697aaa095720eb9a28ffa7bce", "score": "0.6354343", "text": "public void move() {\n allIn();\n }", "title": "" }, { "docid": "3faf7b9a9ce1102024b6edff7333e143", "score": "0.63313836", "text": "public void nextStep(){\n scene.getZombies().parallelStream().forEach(z -> z.moveTo(z.nextPosition, 1));\n //Ash moves towards his target.\n\n //Any zombie within a 2000 unit range around Ash is destroyed.\n\n //Zombies eat any human they share coordinates with.\n\n ++turns;\n }", "title": "" }, { "docid": "252b73f2629f66c6eb62d65ac0421b21", "score": "0.6298923", "text": "public synchronized void nextMove() throws InterruptedException {\n if (!this.previousThreadName.equals(Thread.currentThread().getName())) {\n while (!this.GRID[this.nextC[0]][this.nextC[1]].equals(chrNull)) {\n this.nextC[0] = random.nextInt(3);\n this.nextC[1] = random.nextInt(3);\n }\n this.setChar(this.nextC[0], this.nextC[1]);\n System.out.println(\"Current -> GRID[\" + this.nextC[0] + \", \" + this.nextC[1] + \"] = \" +\n this.GRID[this.nextC[0]][this.nextC[1]]);\n this.previousC[0] = this.nextC[0];\n this.previousC[1] = this.nextC[1];\n this.previousThreadName = Thread.currentThread().getName();\n } else {\n try {\n throw new QueueException(Thread.currentThread().getName(), \"The Thread turned out of Queue!\");\n } catch (QueueException e) {\n e.printStackTrace();\n e.getCause();\n\n }\n }\n }", "title": "" }, { "docid": "a165b7252d166dbc189cb51c89e521ed", "score": "0.6298153", "text": "public void nextTurn(){\n //check if single player game, then let computer play turn\n if(!twoPlayer){\n if(freeSpots == 0){\n return ; //bail out if no more free spots\n }\n int aiColumn;\n do {\n //randomly pick a position\n aiColumn = (int) (Math.random() * boardColumns);\n }while(piecesInColumn[aiColumn]>=boardRows); //keep trying if this spot was taken\n //update grid with new play, computer is always y\n grid[aiColumn][boardRows - 1 - piecesInColumn[aiColumn]] = 'y'; \n //update free spots\n freeSpots--;\n //update number of pieces in that column\n piecesInColumn[aiColumn]++;\n }\n else{\n //change turns\n if(turn == 'r'){\n turn = 'y';\n }\n else{\n turn = 'r';\n }\n }\n return;\n }", "title": "" }, { "docid": "e3eb72e4a6cc25273520a850c81224d9", "score": "0.6297719", "text": "public void step(){\n \r\n x = x + right;\r\n y = y + down;\r\n }", "title": "" }, { "docid": "3ef8d0ad43b1472c17af08f80c9892be", "score": "0.62888426", "text": "public void advance() {\n SnakePart head = parts.get(0);\n\n int len = parts.size() - 1;\n for (int i=len; i > 0; i--) {\n SnakePart before = parts.get(i-1);\n SnakePart part = parts.get(i);\n part.x = before.x;\n part.y = before.y;\n }\n\n // move the snake's head\n if (direction == UP) {\n head.y -= 1;\n }\n if (direction == LEFT) {\n head.x -= 1;\n }\n if (direction == DOWN) {\n head.y += 1;\n }\n if (direction == RIGHT) {\n head.x += 1;\n }\n if (head.x < 0) {\n head.x = 9;\n }\n if (head.x > 9) {\n head.x = 0;\n }\n if (head.y < 0) {\n head.y = 12;\n }\n if (head.y > 12) {\n head.y = 0;\n }\n }", "title": "" }, { "docid": "ea27aee00d74bd875e65f7c70ee83a9a", "score": "0.62777793", "text": "protected abstract int getNextMove();", "title": "" }, { "docid": "f11bc63f20f79de6a186b5767c82f0db", "score": "0.6260731", "text": "public void moveStep() {\n for (int i = body.size() - 1; i >= 0; i--) {\n SnakeCell curCell = body.get(i);\n //For the case of the head there is no next cell so update its direction to the current user inputted direction\n if (i == 0) {\n curCell.setCellDirection(curDirection);\n } else {\n SnakeCell nextCell = body.get(i - 1);\n curCell.setCellDirection(nextCell.getCellDirection());\n }\n }\n //Now after direction is updated move all cells one place in their direction\n body.forEach(snakeCell -> snakeCell.moveCellInDirection());\n }", "title": "" }, { "docid": "9f9a07296c9906c757ac411179c2dbc5", "score": "0.6253738", "text": "protected abstract void computeNextPosition();", "title": "" }, { "docid": "676bc863abdf902a76addac9db7d7d29", "score": "0.6244135", "text": "public void moveTo(){\n\t\tif (x > dx){\n\t\t\tx -= 1;\n\t\t}\n\t\telse if (x < dx){\n\t\t\tx += 1;\n\t\t}\n\t\tif (y > dy){\n\t\t\ty -= 1;\n\t\t}\n\t\telse if (y < dy){\n\t\t\ty += 1;\n\t\t}\n\t\tif (x == dx && y == dy){\n\t\t\tsetRandPos();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9e8d01af213bb0937b17fc22d4897b9f", "score": "0.6241491", "text": "public void next( Direction direction )\n {\n this.position = this.boardTensor.getNeighborPosition( this.position, direction );\n\n assert this.position != -1;\n }", "title": "" }, { "docid": "3cdaee6c7243904259d79914d723ffa8", "score": "0.6240726", "text": "public void nextTurn() {\n if (!gameOver()) {\n pluginMove();\n }\n updateAll();\n }", "title": "" }, { "docid": "3f8c1b5b8a675c15f9d3bab66d4f1512", "score": "0.62361217", "text": "public void move(){\n\t position += move;\n\n\t}", "title": "" }, { "docid": "b0cb76d1768a0c89ff5affca3e297694", "score": "0.62142986", "text": "private void moveToNextColumn(){\t\t\t\t\n\t\tfor(int i=0; i<4; i++){\n\t\t\tmove();\n\t\t}\n\t}", "title": "" }, { "docid": "5999f2f304b3eadc21165ae81b00c978", "score": "0.62079203", "text": "@Override\n public void move(int x, int y) {\n shipSquares.forEach((Square s) -> s.offset(x, y));\n\n bottomRight.offset(x, y);\n }", "title": "" }, { "docid": "1e8bf185d53ef10d28d44d476c20e35f", "score": "0.6205936", "text": "public void move()\n {\n if (!canMove()) {\n return;\n }\n switch(direction) {\n case SOUTH :\n setLocation(getX(), getY() + 1);\n break;\n case EAST :\n setLocation(getX() + 1, getY());\n break;\n case NORTH :\n setLocation(getX(), getY() - 1);\n break;\n case WEST :\n setLocation(getX() - 1, getY());\n break;\n }\n }", "title": "" }, { "docid": "c2e869dcb061b03718bce321474daf3c", "score": "0.61906177", "text": "private void moveToNextPlayer() {\n\t\t// change current player\n\t\tint index = players.indexOf(currentPlayer);\n\t\tint nextIndex = (index + 1) % players.size();\n\t\tcurrentPlayer = players.get(nextIndex);\n\n\t\t/*\n\t\t * change indicator change next player, add 1 to total turn when very\n\t\t * player's turn passed, add 1 to round\n\t\t */\n\t\tturnTotal += 1;\n\t\tround = turnTotal / players.size();\n\t\tnotifyCurrentPlayerChanged();\n\n\t}", "title": "" }, { "docid": "3330f5fc7c86b3b39e2a42082b464edb", "score": "0.6177805", "text": "public void moveNodeOneStep() {\n if(numberOfSteps > 0) {\r\n \r\n int x = (int) (((double) location.x) + deltaX);\r\n int y = (int) (((double) location.y) + deltaY);\r\n \r\n numberOfSteps--;\r\n \r\n if(numberOfSteps == 0) setLocation(targetLocation);\r\n else setLocation(x,y);\r\n }\r\n }", "title": "" }, { "docid": "05e8e021092104ff0fbe5c30702631b1", "score": "0.6167964", "text": "private void makeMove() {\n\n Square curSquare = detectMousePressEvent();\n\n // see if the king is in check before the move is made\n // check for valid square selection\n if (curSquare != null) {\n captureProtocol(curSquare);\n if (curSquare.getOccupant() != null) {\n if (curSquare.getOccupant().getColor() == turn) {\n Square.setHighlightedStartSquare(curSquare);\n }\n }\n moveProtocol(curSquare);\n }\n }", "title": "" }, { "docid": "59457ee9da78f43ed7793712ce785b9f", "score": "0.6151239", "text": "ChessState.ChessMove next()\n {\n ChessState.ChessMove m = new ChessState.ChessMove();\n m.xSource = x;\n m.ySource = y;\n m.xDest = moves.get(moves.size() - 2);\n m.yDest = moves.get(moves.size() - 1);\n advance();\n return m;\n }", "title": "" }, { "docid": "6f7fb4e0882283ef4ef3a83acf670a21", "score": "0.61439407", "text": "public void advance()\n {\n if(isCurrent()){\n\n currentIndex += 1;\n }\n\n\n }", "title": "" }, { "docid": "ab327c5955127de2f4658c6cc121426a", "score": "0.61389136", "text": "public void provideNextMove(){\r\n//\t\tSystem.out.println(\"ai provide next move\");\r\n\t\tgameLogic.newMove(getRandomMove(), player);\r\n\t}", "title": "" }, { "docid": "df9964aaf3df1a0032874e978522115f", "score": "0.61320335", "text": "public void move() {\n\t\t\r\n\t}", "title": "" }, { "docid": "84758cbf070002383db91334e3be7542", "score": "0.6128399", "text": "private void step() {\r\n\t\tspaceship.move();\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "6da666337ec5d976f7a46acb20288a5f", "score": "0.6119912", "text": "public void moveTo(int prevx, int prevy, int x, int y) {\r\n //set the new square to old square's pieceID\r\n square[x][y].setPiece(square[prevx][prevy].getPiece());\r\n //after done setting it, set old piece to null\r\n square[prevx][prevy].setPiece(null);\r\n //after done setting, set old buttonData to empty string\r\n buttonData[prevx][prevy].setText(\"\");\r\n //moved square == moved buttonData\r\n buttonData[x][y].setText(square[x][y].getPieceID());\r\n\r\n //after a move, switch player and take turns\r\n if (player == 0) {\r\n player = 1;\r\n } else {\r\n player = 0;\r\n }\r\n\r\n }", "title": "" }, { "docid": "80607d32336fc978fa3677d919961462", "score": "0.61036366", "text": "public void goNext() {\n\t\tcurrent.goNext();\n\t}", "title": "" }, { "docid": "0d8f2b5552b1b46a95444c8deaab2ef0", "score": "0.609493", "text": "private void moveDown()\n {\n setLocation( getX(), getY() + 2 );\n }", "title": "" }, { "docid": "2045e8a5c9f2dfd4c384eb4b6be21026", "score": "0.60873044", "text": "public void next( int row, int col ) throws Exception\n {\n System.out.println(java.time.LocalTime.now() + \"--> Next Blank\");\n if( col < 8 )\n solve( row, col + 1 ) ;\n else\n solve( row + 1, 0 ) ;\n }", "title": "" }, { "docid": "02a0c69f9c1d15af3e0b6e239dbb04aa", "score": "0.6086438", "text": "public void step(){\n\t\tint step = rand.nextInt(2);\n//\t\tif((step == 1) && (current.x == gridSize - 1)){\n//\t\t\t\n//\t\t\tcurrent.y++;\n//\t\t}\n//\t\tif(step == 0 && current.y == gridSize - 1){\n//\t\t\tcurrent.x++;\n//\t\t}\n\t\tif(step ==1){\n\t\t\tif(current.x == gridSize -1){\n\t\t\tcurrent.y++;\n\t\t\t}else {\n\t\t\t\tcurrent.x++;\n\t\t\t}\n\t\t}else if(step == 0) {\n\t\t\tif(current.y == gridSize -1){\n\t\t\t\tcurrent.x++;\n\t\t\t}else {\n\t\t\t\tcurrent.y++;\n\t\t\t}\n\t\t}\n\t\tpath.add(new Point (current));\n\t}", "title": "" }, { "docid": "0e4283a87129d88a3d3f3029b626ccec", "score": "0.6079987", "text": "public Point nextMove() {\n\t\ttry {\n\t\t\tmoveCount++;\n\t\t\tPoint me = getCurrentPosn();\n\t\t\tPoint potential;\n\t\t\tif (isOnLine(me) < 2\n\t\t\t\t\t&& (closest == null || Point.manhattan(me, finish) <= Point\n\t\t\t\t\t\t\t.manhattan(finish, closest))) {\n\t\t\t\t// find the next spot that is on the line, return it.\n\t\t\t\tif ((potential = followLine(me)) != null) {\n\t\t\t\t\treturn potential;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// wall hug.\n\t\t\tif ((potential = bug(me)) != null) {\n\t\t\t\treturn potential;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in nextMove()\" + e);\n\t\t}\n\t\t// if it gets here, there are major problems.\n\t\t// just in case, we'll modify the move count.\n\t\tmoveCount--;\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fe1d4e6be8fa144aa6aa7958b0d8002f", "score": "0.6077759", "text": "private void moveRight() {\r\n\tif (positionX + squareWidth <= squareWidth * 3) {\r\n\t positionX += squareWidth;\r\n\t this.checkSquare();\r\n\t}\r\n }", "title": "" }, { "docid": "8f8d77d6777109d839fe68b3ca768ecc", "score": "0.60769606", "text": "public void setNext(Move next) {\n this.next = next; \n }", "title": "" }, { "docid": "0f2ca2a6db57881e0c0ab1306118ba7d", "score": "0.60548794", "text": "public void move() {\n\t\tm_board.move(m_location.x + MOVE_DX, m_location.y + MOVE_DY, this);\n\t}", "title": "" }, { "docid": "3d5d9439551ec96c3db0f6e84627dd2c", "score": "0.605282", "text": "public Point move() {\n\t\tif(this.getDirection().x != 0 || this.getDirection().y != 0) {\n\t\t\tif(!this.isMovePossible(getPosition().x+getDirection().x, getPosition().y+getDirection().y)) {\n\t\t\t\tthis.direction.x *= -1;\n\t\t\t\tthis.direction.y *= -1;\n\t\t\t}\n\t\t\tthis.position.x += this.direction.x;\n\t\t\tthis.position.y += this.direction.y;\n\t\t}\n\t\tthis.setCurrentSprite((this.getCurrentSprite()+1)%5); // change the sprite\n\t\treturn this.getPosition();\n\t}", "title": "" }, { "docid": "921f195e145958d2d0fa623e632bf6a9", "score": "0.60416585", "text": "public boolean moveToSquare(int squareNumber) {\n\t\tif (!isFreeSquare(squareNumber))\n\t\t\treturn false;\n\t\tsetSquare(squareNumber,isXTurn() ? CROSS : NOUGHT);\n\t\tmoveCount++;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a55541c586726671698a6c07239dc3e2", "score": "0.6039856", "text": "private Point nextLoc(int row, int col) {\r\n\t\tint newRow = 0, newCol = 0;\r\n\t\tif (col == board.getNumCols() - 1) {\r\n\t\t\tnewRow = row + 1;\r\n\t\t\tnewCol = 0;\r\n\t\t} else {\r\n\t\t\tnewCol = col + 1;\r\n\t\t\tnewRow = row;\r\n\t\t}\r\n\r\n\t\treturn new Point(newRow, newCol);\r\n\t}", "title": "" }, { "docid": "c6a89a29592d6ec12e7e1cbdefacce7a", "score": "0.6036497", "text": "public boolean nextMove () {\n if (grid.isFull()) {\n throw new RuntimeException();\n }\n for (int i = 0; i < grid.getLen(); i++) {\n for (int j = 0; j < grid.getLen(); j++) {\n if (grid.addToken(i,j,token)) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "47b15dce3f6b6f417ec4d28b5a98e922", "score": "0.6034015", "text": "private Position getNextPosition(Position pos) {\n\t\tPosition newPos = null;\n\t\ttry {\n\t\t\tnewPos = new Position(pos);\n\t\t} catch (InvalidSnakePositionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tswitch (pos.getDirection()) {\n\t\tcase NORTH:\n\t\t\tnewPos.decreaseCol();\n\t\t\tbreak;\n\n\t\tcase SOUTH:\n\t\t\tnewPos.increaseCol();\n\t\t\tbreak;\n\n\t\tcase WEST:\n\t\t\tnewPos.decreaseRow();\n\t\t\tbreak;\n\n\t\tcase EAST:\n\t\t\tnewPos.increaseRow();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn newPos;\n\t}", "title": "" }, { "docid": "f35eaa00cb3f4ed1a75081b116c9ad47", "score": "0.60323477", "text": "public void movePlayer() {\n nextStar = findNextStar();\n \n if (nextStar != null) {\n // find distance to next star using distance formula\n int xDist = nextStar.getX() - player.getX();\n int yDist = nextStar.getY() - player.getY();\n int distance = (int) Math.sqrt(Math.pow(xDist, 2) + Math.pow(yDist, 2));\n \n player.turnTowards(nextStar.getX(), nextStar.getY());\n \n // figure out how many frames the player needs to move for\n playerMoveDist = distance / playerSpeed;\n // move the remainder of pixels left over\n player.move(distance % playerSpeed);\n playerPosCounter = 0;\n }\n }", "title": "" }, { "docid": "ae19a79d01ecf43e85c7259c1e6c9126", "score": "0.6023619", "text": "public boolean move(String newSquare) {\n if(this.location.isAdjacent(newSquare)){\n if (this.role == null) {\n moveTo(location.getSingleAdj(newSquare));\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "49d766dbfe01c0710c7395119bb00a0a", "score": "0.6015193", "text": "public void next() {\n coordIndex += coordinatesForSegmentType(segmentTypes[segmentIndex++]);\n }", "title": "" }, { "docid": "0cb428c150352cdcb8e46aee25686b2c", "score": "0.600851", "text": "private void moveDown() {\r\n\tif (positionY + squareHeight <= squareHeight * 3) {\r\n\t positionY += squareHeight;\r\n\t this.checkSquare();\r\n\t}\r\n }", "title": "" }, { "docid": "0d2ee6b0c9b3d99b55878d35d85e8e71", "score": "0.60074407", "text": "void movePlayerToNextStation() {\n\n if (this.nextStation != null) {\n this.currentStation.setIsVisited(false);\n this.currentStation = this.nextStation;\n }\n\n this.updateVisited();\n }", "title": "" }, { "docid": "38eb8eee339213b17217a32ee58c313b", "score": "0.6006647", "text": "private void updateCell(int x, int y) {\n\t\tboard[x][y].advance();\n\t}", "title": "" }, { "docid": "5119278c1fbd8a67e13d76eea5b70922", "score": "0.6005261", "text": "public void moveBy(int x, int y) {\n\t\tthis.x += x;\n\t\tthis.y += y; \n\t}", "title": "" }, { "docid": "e64b71717112d201e13d446b791a96dd", "score": "0.6000309", "text": "private void nextPlayer() {\n if (model.getRound() == 11)\n return;\n model.getCurrentPlayer().setDiceMoved(false);\n model.getCurrentPlayer().setToolCardUsed(false);\n if (model.getLap() == 0) {\n if (!model.getCurrentPlayer().equals(model.getPlayers().get(model.getPlayersNumber() - 1))) { //if player isn't the last element of the array list\n model.setCurrentPlayer(model.getPlayers().get(model.getPlayers().indexOf(model.getCurrentPlayer()) + 1)); //currentPlayer is the one following player\n } else {\n model.setLap(1); //beginning of the second turn of the round\n }\n\n } else if (model.getLap() == 1) {\n if (!model.getCurrentPlayer().equals(model.getPlayers().get(0))) { //if player isn't the first element of the array list\n model.setCurrentPlayer(model.getPlayers().get(model.getPlayers().indexOf(model.getCurrentPlayer()) - 1)); //currentPlayer is the previous of player\n } else {\n model.setLap(0); //ends of second turn\n nextRound();\n }\n }\n if (model.getCurrentPlayer().isSuspended() || model.getCurrentPlayer().isConnectionLost())\n nextPlayer();\n }", "title": "" }, { "docid": "9ee130c505a1ade5fc1b1c664d01d970", "score": "0.600022", "text": "public void move() {\n if(_direction > 0){\r\n switch(_direction) {\r\n case 1:\r\n _location.x++;\r\n break;\r\n case 2:\r\n _location.x--;\r\n break;\r\n case 3:\r\n _location.y++;\r\n break;\r\n case 4:\r\n _location.y--;\r\n break;\r\n default:\r\n break;\r\n }\r\n } else {\r\n switch(_rand.nextInt(4)) {\r\n case 0:\r\n _location.x++;\r\n break;\r\n case 1:\r\n _location.x--;\r\n break;\r\n case 2:\r\n _location.y++;\r\n break;\r\n case 3:\r\n _location.y--;\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "24130aef2b234b8469d596caf69061ae", "score": "0.59935623", "text": "public void move() {\r\n\t\tbyte moveTo = 0;\r\n\t\tint trials = 0; // the number of trials after which the fox recognizes that he is trapped is 100\r\n\t\tif (search == null) {\r\n\t\t\tif (lastSeen == null) { // the rabbit was never seen\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmoveTo = (byte) (Math.abs(generator.nextInt()) % 8);\r\n\t\t\t\t} while (! move(MAPPING[moveTo], Constants.NORMAL_STEP) && trials++ < 100);\r\n\t\t\t} else { // the rabbit was seen by a fox\r\n\t\t\t\tint direction = 0;\r\n\t\t\t\tif (location.x > lastSeen.x)\r\n\t\t\t\t\tdirection |= Constants.UP;\r\n\t\t\t\telse\r\n\t\t\t\t\tdirection |= Constants.DOWN;\r\n\t\t\t\tif (location.y > lastSeen.y)\r\n\t\t\t\t\tdirection |= Constants.LEFT;\r\n\t\t\t\telse\r\n\t\t\t\t\tdirection |= Constants.RIGHT;\r\n\t\t\t\ttrials = 0;\r\n\t\t\t\tif (! move(direction, Constants.NORMAL_STEP)) {\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tmoveTo = (byte) (Math.abs(generator.nextInt()) % 8);\r\n\t\t\t\t\t} while (! move(MAPPING[moveTo],\r\n\t\t\t\t\t\t\tConstants.NORMAL_STEP) && trials < 100);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else /* seen */ { // the movement isn't restricted\r\n\t\t\tobserver.update(null, \"seen\");\r\n\t\t\tif (search.distance > Constants.FOX_STEP)\r\n\t\t\t\tmove(search.direction, Constants.FOX_STEP);\r\n\t\t\telse {\r\n\t\t\t\tmove(search.direction, search.distance);\r\n\t\t\t\tobserver.update(null, \"lost\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tsearch = null;\r\n\t}", "title": "" }, { "docid": "33da7f573660eedbe619c486d03e68e6", "score": "0.5993157", "text": "static void makeMove(int move) {\r\n setSquare(move, false);\r\n isXsTurn = !isXsTurn;\r\n moves++;\r\n }", "title": "" }, { "docid": "307b3a6be63454d426add20595a3bb44", "score": "0.59903365", "text": "private void goToNextBeeper() {\n\t\tmove();\n\t\twhile(beepersPresent()) {\n\t\t\tmove();\n\t\t}\t\t\n\t\tbackToPosition();\t\t\n\t}", "title": "" }, { "docid": "006d2349e5871441b97f8501bc9a9789", "score": "0.59857625", "text": "protected void makeMove() {\n boolean badMove = true;\n int row = -1;\n int col = -1;\n\n while (badMove) {\n row = rg.discrete(0, 2);\n col = rg.discrete(0, 2);\n if (board.getMark(row, col) == SPACE_CHAR) {\n board.addMark(row, col, this.mark);\n badMove = false;\n }\n }\n reportMove(row, col);\n return;\n }", "title": "" }, { "docid": "b522224dd6a8aa22648ae9b45d7d4563", "score": "0.5985324", "text": "public void findNext() {\n boolean b = false;\n\n if (activeMethod != -1) b = callMethod(activeMethod);\n else {\n for (int method : methodOrder) {\n b = callMethod(method);\n if (b) {\n activeMethod = method;\n break;\n }\n }\n }\n\n if (!b) {\n showMessage(\"Cannot find another square to assign or reduce logically; \" +\n System.lineSeparator() +\n \"you can try again after entering one or more on your own.\");\n setAutomatic(false); // (whether it was or not, it shouldn't be, now)\n } // end if\n }", "title": "" }, { "docid": "cc00a77b8884f6cbb62924a947ac5691", "score": "0.59848785", "text": "private void advance() {\n this.current = lexer.next();\n }", "title": "" }, { "docid": "09b4ce33dd8b458d6d34edcbbc58f4c0", "score": "0.597693", "text": "public void move(){\n\t\ttry{\n\t\t\tthis.team.getBoard().moveForward();\n\t\t}\n\t\tcatch (RuntimeException e) {\n\t\t\tSystem.out.println(e);\n\t\t\tthis.stacks[this.currentPiece].clear();\n\t\t\tthis.currentInstructions.clear();\n\t\t\treturn;\n\t\t}\n\t\tfinally {}\n\t}", "title": "" }, { "docid": "184f9054939794388f5e496fb1f52f36", "score": "0.59589666", "text": "public void nextTurn(){\n turn.next();\n }", "title": "" }, { "docid": "7d3b85c6ee1744b5fb10553a262864b3", "score": "0.5955074", "text": "@Override\n\tpublic void move() {\n\t\ty+=5;\n\t}", "title": "" }, { "docid": "91ecb8e59021f43aa59cc86c33766441", "score": "0.5954484", "text": "void executeMove() {\n movingPiece.movePiece(finalRow, finalCol);\n }", "title": "" }, { "docid": "00158d905b9b2aa063dd9845372a24a5", "score": "0.59521407", "text": "private void nextTurn() {\r\n\t\tif(currentTurn == white) {\r\n\t\t\tcurrentTurn = black;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcurrentTurn = white;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "590e30c0c9f9d2f1022d5e32cba83dfe", "score": "0.5950798", "text": "private void squareClicked(final Coordinates coordinates) {\n\t\tif (game.getCurrentPlayer() != mainPlayer || waitingForAnswer) {\n\t\t\treturn;\n\t\t}\n\t\tfinal AbstractBoard board = game.getBoard();\n\t\tfinal Pawn pawn = board.getPawn(coordinates);\n\t\tfinal ErrorMsg errorMsg;\n\n\t\t// Si on définit quel pion déplacer\n\t\tif (currentMovement.size() == 0) {\n\t\t\tif (pawn == null || pawn.getOwner() != mainPlayer) {\n\t\t\t\terrorMsg = ErrorMsg.WRONG_MOVE;\n\t\t\t} else {\n\t\t\t\tcurrentMovement.push(coordinates);\n\t\t\t\terrorMsg = null;\n\t\t\t}\n\t\t\t//\tSi on veut redéfinir le pion à déplacer\n\t\t} else if (currentMovement.size() == 1 && pawn != null && pawn.getOwner() == mainPlayer) {\n\t\t\tcurrentMovement.pop();\n\t\t\tcurrentMovement.push(coordinates);\n\t\t\terrorMsg = null;\n\t\t\t//\tSi on veut effectuer un déplacement\n\t\t} else {\n\t\t\tboard.move(currentMovement.getReversedCondensed());\n\t\t\tcurrentMovement.push(coordinates);\n\t\t\tif (!board.checkMove(currentMovement, mainPlayer)) {\n\t\t\t\tcurrentMovement.pop();\n\t\t\t\terrorMsg = ErrorMsg.WRONG_MOVE;\n\t\t\t} else {\n\t\t\t\terrorMsg = null;\n\t\t\t}\n\t\t}\n\n\t\tif (errorMsg != null) {\n\t\t\tgamePanel.getDrawZone().addMessage(errorMsg.getMessage());\n\t\t}\n\n\t\tgamePanel.getActionZone().getResetButton().setEnabled(!currentMovement.isEmpty());\n\t\tmovePawn(currentMovement);\n\n\t\tgamePanel.getDrawZone().setSelectedSquare(currentMovement.size() == 0 ? null : currentMovement.lastElement());\n\n\t\tgamePanel.getDrawZone().getBoardView().updateMovement();\n\n\t\tsetButtonsVisibility();\n\t}", "title": "" }, { "docid": "5456b127e2c8e3209872a83746a3fead", "score": "0.5950151", "text": "public void move (int square)\n {\t//If win, throw IAE\n \tif (isWon()) //Throws exception and notifies the player\n \t{\n \t\tJOptionPane.showMessageDialog(null, \"YOU WIN! \\nClick 'Start New Game' if you wish to play again\");\n \t\tthrow new IllegalArgumentException(); \t\t\n \t}\n \t//If square is out of bounds, throw IAE\n \tif (square < 1 || square > 25)\n \t{\n \t\tthrow new IllegalArgumentException();\n \t}\n\n \t\n }", "title": "" }, { "docid": "9d56a1d8b100476f151dbf4fdcd82fd7", "score": "0.594536", "text": "public void nextFrame() {\n \tframe.set(getFrame() + 1);\n }", "title": "" }, { "docid": "a22c3d157273e2e49cd273923f76679a", "score": "0.5937455", "text": "public void move() {\n\t\tif (snakeAlive) {\n\t\t\tsnakebody.removeLast();\n\t\t\tPosition head = getNextPosition(snakebody.getFirst());\n\t\t\tsnakebody.addFirst(head);\n\t\t}\n\t}", "title": "" }, { "docid": "7c698c343dcaaab500815544b3156810", "score": "0.5936069", "text": "@Override\n\tpublic List<Step> getNextMove(ChessBoard board) {\n\t\tList<Step> list = new ArrayList<Step>();\n\t\t//产生黑卒的走法\n\t\tif(!isRed) \n\t\t{\n\t\t\t//如果没有过河,那么就只能向前走,只需要前面的位置是空或者不是己方棋子就可以\n\t\t\tif(this.getX() <= 4) \n\t\t\t{\n\t\t\t\tif( isDestinationLegal(board, this.getX()+1, this.getY())) \n\t\t\t\t{\n\t\t\t\t\tlist.add(new Step(this.getX(),this.getY(), this.getX()+1, this.getY()));\n\t\t\t\t}\n\t\t\t}else {//过河之后有前方一个和左右两个位置可以走,但是向前走要注意是否超过棋盘的边界\n\t\t\t\tif(this.getX() < 10 && this.getY()+1 < 9 && isDestinationLegal(board, this.getX(), this.getY()+1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() + 1));\n\t\t\t\tif(this.getX() < 10 && this.getY()-1 >= 0 && isDestinationLegal(board, this.getX(), this.getY()-1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() - 1));\n\t\t\t\tif(this.getX() < 10 && isDestinationLegal(board, this.getX()+1, this.getY()))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX()+1, this.getY()));\n\t\t\t}\n\t\t}else {\n\t\t\t//如果没有过河,那么就只能向前走,只需要前面的位置是空或者不是己方棋子就可以\n\t\t\tif(this.getX() >= 5) \n\t\t\t{\n\t\t\t\tif(isDestinationLegal(board, this.getX()-1, this.getY()))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX()-1, this.getY()));\n\t\t\t}else {\n\t\t\t\t//过河之后有前方一个和左右两个位置可以走,但是向前走要注意是否超过棋盘的边界\n\t\t\t\tif(this.getX() >= 0 && this.getY()+1 < 9 && isDestinationLegal(board, this.getX(), this.getY()+1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() + 1));\n\t\t\t\tif(this.getX() >= 0 && this.getY() - 1 >= 0 && isDestinationLegal(board, this.getX(), this.getY()-1))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX(), this.getY() - 1));\n\t\t\t\tif(this.getX() >= 0 && isDestinationLegal(board, this.getX()-1, this.getY()))\n\t\t\t\t\tlist.add(new Step(this.getX(), this.getY(),this.getX()-1, this.getY()));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "8527f95cbfd3cc26936a8ee5764a9a03", "score": "0.59336895", "text": "public void move(int row, int col) {\n\n\t\tmove(row, col, turnKeeper);\n\n\t}", "title": "" }, { "docid": "8c2e901530121e0528a6f0f98c606378", "score": "0.5932384", "text": "public void moveTo(Location newLocation, Bord board) {\r\n int count = 0;\r\n if (board == null)\r\n throw new IllegalStateException(\r\n \"This piece is not on a board.\");\r\n if (board.get(location) != this)\r\n\r\n throw new IllegalStateException(\r\n \"The board contains a different piece at location \"\r\n + location + \".\");\r\n if (!board.isValid(newLocation))\r\n throw new IllegalArgumentException(\r\n \"Location \" + newLocation + \" is not valid.\");\r\n\r\n if (newLocation.equals(location))\r\n return;\r\n\r\n board.remove(location);\r\n Piece other = board.get(newLocation);\r\n if (other != null) {\r\n if (other.getValue() == 100000) { // Hits a Lake\r\n board.put(location, this);\r\n return;\r\n } else if (this.getValue() == 3 && other.getValue() == 100) { // three beats bombs\r\n other.removeSelfFromGrid();\r\n location = newLocation;\r\n board.put(location, this);\r\n\r\n } else if (this.getValue() == 1 && other.getValue() == 10) { // spy gets ten\r\n other.removeSelfFromGrid();\r\n location = newLocation;\r\n board.put(location, this);\r\n } else if (this.getValue() >= other.getValue()) {\r\n other.removeSelfFromGrid();\r\n location = newLocation;\r\n board.put(location, this);\r\n\r\n\r\n } else {\r\n board.remove(location);\r\n if (other.getValue() == 100) { // bomb kills piece\r\n other.removeSelfFromGrid();\r\n }\r\n }\r\n\r\n } else {\r\n location = newLocation;\r\n board.put(location, this);\r\n }\r\n }", "title": "" }, { "docid": "8a3229b5a433f8a69b06f2214cf15a50", "score": "0.5932363", "text": "public void moveToSwitch() {\n \tposition = 1;\n// \tSystem.out.println(\"In move to switch\");\n// \tif(!isAtSwitch())\n//\t \tif(!isAtScale())\n//\t \t\tlowerLift();\n//\t \telse if(!isAtFloor())\n//\t \t\traiseLift();\n//\t else stopLift();\n }", "title": "" }, { "docid": "7465fd47c78424774b88b1cf8e6de9c5", "score": "0.5923965", "text": "public void moveTo(double x, double y) {\n\t\tentries.add(new MoveTo(x, y));\n\t}", "title": "" }, { "docid": "f1df3ddc5e060340517b5e0a16ec6a6c", "score": "0.5918227", "text": "public Shape getNextMove() {\n return getNextMoves()[random.nextInt(2)];\n }", "title": "" }, { "docid": "b4053b66648c442ec1755c4ed702b902", "score": "0.59141827", "text": "private void moveRedSquare(int x, int y) {\n if (allowMoveRedSquare) {\n int OFFSET = 1;\n if (x <= (blackSquareX + 50) & x > (blackSquareX - 50) & y >= (blackSquareY - 50) & y <= (blackSquareY + 50)){\n drawSquares = false;\n allowMoveRedSquare = false;\n repaint();\n view.getmenuItemChoiceA().setVisible(true);\n view.getmenuItemChoiceB().setVisible(true);\n view.getmenuItemChoiceC().setVisible(true);\n view.gettxtStory().setText(view.getGameInfo().getStories().get(view.getGameInfo().getCurrentRoom() - 1).getBody());\n view.getScroll().setSize(view.getWidth() - 50, view.getHeight() - 100);\n\n }\n if ((redSquareX != x) || (redSquareY != y)) {\n repaint(redSquareX, redSquareY, redSquareW + OFFSET, redSquareH + OFFSET);\n redSquareX = x;\n redSquareY = y;\n repaint(redSquareX, redSquareY, redSquareW + OFFSET, redSquareH + OFFSET);\n }\n }\n }", "title": "" }, { "docid": "34f9c5e758aeff2191e88c48ec6e7b6a", "score": "0.59114504", "text": "private void movePiece(Piece pieceToMove, int newPieceX, int newPieceY) {\n\t\tSquare currentSquare = currentBoard.squaresList[pieceToMove.xLocation][pieceToMove.yLocation];\n\t\tSquare targetSquare = currentBoard.squaresList[newPieceX][newPieceY];\n\t\tcurrentSquare.isOccupied = false;\n\t\tcurrentSquare.occupyingPiece = null;\n\t\ttargetSquare.isOccupied = true;\n\t\ttargetSquare.occupyingPiece = pieceToMove;\n\t\tpieceToMove.xLocation = newPieceX;\n\t\tpieceToMove.yLocation = newPieceY;\n\t}", "title": "" }, { "docid": "674432ce3bfbb2865b1330fcd51c28b3", "score": "0.5887531", "text": "public void move(int direction)\n {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(direction);\n if (gr.isValid(next))\n moveTo(next);\n }", "title": "" }, { "docid": "eddea5cb36987ef37e0fe0fc0da9d3b5", "score": "0.5887125", "text": "public void advance() {\n index++;\n }", "title": "" }, { "docid": "8b386f01885055269d16f88bf57769a1", "score": "0.5886919", "text": "private void nextTurn() {\n UnitColor color = currentTurn.isType(UnitColor.BLUE) ? UnitColor.RED : UnitColor.BLUE;\n currentTurn = new Turn(color);\n }", "title": "" }, { "docid": "0fd29b837e241e111c1723da404d62be", "score": "0.5882996", "text": "private void handleMoving() {\n\t\tif (moves >= 0){\n\t\t\tx += nextx;\n\t\t\ty += nexty;\n\t\t\tmoves--;\n\t\t} else { // Match up with nextStation and calculate new nextStation\n\t\t\tsetUpLoading();\n\t\t}\n\t}", "title": "" }, { "docid": "22bf5634ca76976d9b326336c9973ec0", "score": "0.5881069", "text": "Coordinate getNextPosition(CarState state, Coordinate curr, MyMap map);", "title": "" }, { "docid": "1f6e9e3d4e9d60447549a83b6b61c9bd", "score": "0.5875356", "text": "public void movePlayerToSpecificSquareType(Player player, String squareType){\r\n\t\tSquare currentSpot = player.getLocation();\r\n\r\n\t\twhile (!currentSpot.getClass().getName().equals(squareType)){\r\n\t\t\tcurrentSpot = currentSpot.getNext();\r\n\r\n\t\t\tif (currentSpot == go){\r\n\t\t\t\tplayer.addToWallet(GO_VALUE);\r\n System.out.println(player.getGamePiece() + \" passed go.\");\r\n }\r\n\t\t}\r\n\t\tplayer.setLocation(currentSpot);\r\n\t}", "title": "" }, { "docid": "55feba9eff4d6337864b66cf1f4bc473", "score": "0.5874461", "text": "public void moveRight() {\r\n\r\n\t\tif (isFree(currentRow, currentCol + 1)) { // check the next cell is valid\r\n\t\t\tgrid[currentRow][currentCol].setVisited(true); // sets the current cell as visited\r\n\t\t\tgrid[currentRow][currentCol].setStatus(0); // sets the current cell is as CLEAR\r\n\t\t\tsetCurrentCol(currentCol + 1); // move to the next cell by updating the column number;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "919d901a2cd97161b0f962efa110633e", "score": "0.5873218", "text": "public void goToNextPlayer() {\n myCurrentPlayer = getNextPlayer();\n }", "title": "" }, { "docid": "2b983c7dc045545e9bd86fc432653343", "score": "0.58732057", "text": "private void incrementCurrentMove(){\n currentMove++;\n if(currentMove > gameSize){ //Loop around\n currentMove = 1;\n }\n if(!players.containsValue(currentMove)){incrementCurrentMove();} //If the player has disconnected recursion!\n }", "title": "" }, { "docid": "74be373d69b201d478db55dc36ee543c", "score": "0.5872765", "text": "@Override\n\tpublic void moveTo(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "f1889aeeebc0b0441488c243365c5d01", "score": "0.5871464", "text": "public void next() {\r\n\t\tArrayList<Team> teams = world.getTeams();\r\n\t\tif (teams.size() == currentIndex + 1) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"There are no more teams\", \"Next team\",\r\n\t\t\t JOptionPane.ERROR_MESSAGE);\r\n\t\t} else {\r\n\t\t\tcurrentIndex++;\r\n\t\t\tupdateInterface();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e92ceb6ac5b4169b3eeb22f27564c7b1", "score": "0.5870811", "text": "public void moveTo (int row, int column) {\n this.row = row;\n this.column = column;\n }", "title": "" }, { "docid": "9ba4318fe3fb7f4fcdae0e7b058ef9c4", "score": "0.58690643", "text": "private static int[][] findNextMove() {\n // Traverses through the entire board\n for (int row = BOARD_START_INDEX; row < BOARD_SIZE; row++) {\n for (int col = BOARD_START_INDEX; col < BOARD_SIZE; col++) {\n // If current block is empty\n if (stack.peek().board[row][col] == EMPTY_VALUE) {\n // Tries to assignall num from MIN_VALUE to MAX_VALUE to that block\n for (int num = MIN_VALUE; num <= MAX_VALUE; num++) {\n// System.out.println(Arrays.toString(stack.peek().usedNums));\n // If num has been used, skip\n if (stack.peek().usedNums[num - 1])\n continue;\n // Set usage as true\n stack.peek().usedNums[num - 1] = true;\n\n // Pushes only if num is safe at row col\n if (isSafe(stack.peek().board, row, col, num)) {\n int[][] temp = stack.peek().board;\n int[][] newBoard = new int[BOARD_SIZE][BOARD_SIZE];\n\n // Copy previous board into new board\n for (int i = 0; i < BOARD_SIZE; i++)\n for (int j = 0; j < BOARD_SIZE; j++)\n newBoard[i][j] = temp[i][j];\n\n newBoard[row][col] = num;\n return newBoard;\n }\n }\n return null;\n }\n }\n }\n return null;\n }", "title": "" } ]
eb03f9a194ba4a58e1d9d11fdeff6dfa
set request log of ExecutionContext
[ { "docid": "3945525a2d23f4d138afb925614e9685", "score": "0.0", "text": "@CrossOrigin(origins = {\"*\"})\n @ApiOperation(value = \"\", notes = \"Retrieves the catalogue id's for a party.\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Retrieved the catalogue id's successfully\"),\n @ApiResponse(code = 401, message = \"Invalid token. No user was found for the provided token\"),\n @ApiResponse(code = 404, message = \"No catalogue ids found for the given party\"),\n @ApiResponse(code = 500, message = \"Unexpected error while getting catalogue id's\")\n })\n @RequestMapping(value = \"/catalogue/ids/{partyId}\",\n produces = {\"application/json\"},\n method = RequestMethod.GET)\n public ResponseEntity getAllCatalogueIdsForParty(@ApiParam(value = \"Identifier of the party for which the catalogue to be retrieved\", required = true) @PathVariable String partyId,\n @ApiParam(value = \"The Bearer token provided by the identity service\", required = true) @RequestHeader(value = \"Authorization\", required = true) String bearerToken) {\n String requestLog = String.format(\"Incoming request to get catalogue id list for party: %s\", partyId);\n executionContext.setRequestLog(requestLog);\n\n log.info(requestLog);\n // validate role\n if(!validationUtil.validateRole(bearerToken, executionContext.getUserRoles(),RoleConfig.REQUIRED_ROLES_CATALOGUE_READ)) {\n throw new NimbleException(NimbleExceptionMessageCode.UNAUTHORIZED_INVALID_ROLE.toString());\n }\n\n List<String> catalogueIds;\n try {\n catalogueIds = service.getCatalogueIdsForParty(partyId);\n } catch (Exception e) {\n throw new NimbleException(NimbleExceptionMessageCode.INTERNAL_SERVER_ERROR_FAILED_TO_GET_CATALOGUES.toString(),e);\n }\n\n if (catalogueIds == null) {\n throw new NimbleException(NimbleExceptionMessageCode.NOT_FOUND_NO_DEFAULT_CATALOGUE.toString(),Arrays.asList(partyId));\n }\n\n log.info(\"Completed request to get catalogue id list for party: {}\", partyId);\n return ResponseEntity.ok(catalogueIds);\n }", "title": "" } ]
[ { "docid": "f98c45bceba0075d869d8e6243299907", "score": "0.7153573", "text": "void setLoggingContext();", "title": "" }, { "docid": "0ae22df4aa16ecfadf3f081dc3972b1d", "score": "0.6346533", "text": "@Override\n\tpublic void addLog(LogRequest request) {\n\t\t\n\t}", "title": "" }, { "docid": "ed592418309dcbcb604ef26074d1f297", "score": "0.6211214", "text": "void log(Content content, HttpServletRequest request);", "title": "" }, { "docid": "74fd63665e1adb6951a6b4e4785ad568", "score": "0.6176543", "text": "public LogHttpServletRequestWrapper(HttpServletRequest request) {\n\t\tsuper(request);\n\t}", "title": "" }, { "docid": "5fa7fb55ce9d25394029e7347696c5e8", "score": "0.5988156", "text": "@Override\n\tprotected void initial(HttpServletRequest req) throws SiDCException, Exception {\n\t\tLogAction.getInstance().initial(logger, this.getClass().getCanonicalName());\n\t}", "title": "" }, { "docid": "be90cdd4f161e2424382e85399d81362", "score": "0.59254116", "text": "public void enableRequestResponseLogging() {\n enableRequestResponseLogging(LOGGER, Level.FINE);\n }", "title": "" }, { "docid": "91266dd54310342d34dc381d3ed98438", "score": "0.58051217", "text": "@Override\n\tpublic void addOpLog(OpLogRequest request) {\n\t\t\n\t}", "title": "" }, { "docid": "37056c7ed4ec52db10b40250777109de", "score": "0.5780422", "text": "void log(String request, String response);", "title": "" }, { "docid": "2d318b8cd52d7cfc7004dcc19dad393b", "score": "0.5737633", "text": "private void logHttpRequest( ServletRequestWrapper reqWrap ) {\n if ( LOG.getLevel() == ILogger.LOG_DEBUG ) {\n LOG.logDebug( \"getRemoteAddr \" + reqWrap.getRemoteAddr() );\n LOG.logDebug( \"getRemotePort \" + reqWrap.getRemotePort() );\n LOG.logDebug( \"getLocalPort \" + reqWrap.getLocalPort() );\n LOG.logDebug( \"getMethod \" + reqWrap.getMethod() );\n LOG.logDebug( \"getQueryString \" + reqWrap.getQueryString() );\n LOG.logDebug( \"getPathInfo \" + reqWrap.getPathInfo() );\n LOG.logDebug( \"getRequestURI \" + reqWrap.getRequestURI() );\n LOG.logDebug( \"getServerName \" + reqWrap.getServerName() );\n LOG.logDebug( \"getServerPort \" + reqWrap.getServerPort() );\n LOG.logDebug( \"getServletPath \" + reqWrap.getServletPath() );\n }\n }", "title": "" }, { "docid": "92277dec0a726fe5fd0db894af3eb996", "score": "0.5720145", "text": "public static void logAllRequestInfo(HttpServletRequest request) {\n\n if (request != null) {\n log.info(\"logAllRequestInfo: Attributes = \" +\n getRequestAttributes(request));\n log.info(\"logAllRequestInfo: Parameters = \" +\n getRequestParameters(request));\n log.info(\"logAllRequestInfo: Headers = \" +\n getRequestHeaders(request));\n }\n\n }", "title": "" }, { "docid": "0ddbfb25e2b91ce4e42cf511fd27431d", "score": "0.57107663", "text": "private void updateInterceptorContext(SdkHttpFullRequest request, ExecutionContext executionContext) {\n executionContext.interceptorContext(executionContext.interceptorContext().copy(b -> b.httpRequest(request)));\n }", "title": "" }, { "docid": "ba787a0b8001b6650199372ca19520d8", "score": "0.57066673", "text": "private void log() {\n }", "title": "" }, { "docid": "ca56765ac25e012634e84e7bd89c07dc", "score": "0.5685553", "text": "public void setRequest(HttpRequest request) {\r\n\t\tthis.request = request;\r\n\t}", "title": "" }, { "docid": "a0506813c34b176a2b96c60e611a6609", "score": "0.5661543", "text": "@Override\r\n\tprotected void setLogger() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0d166044f3d2d710230de80c03dfbae5", "score": "0.5633443", "text": "@Override\n\tprotected void setLogger() {\n\t\t\n\t}", "title": "" }, { "docid": "1179c0202989e9e3ec7635f299f0ab46", "score": "0.5551587", "text": "public void setRequestContext(RequestContext context) {\n this._requestContext = context;\n}", "title": "" }, { "docid": "56c28cadb953e8c04e0e9100f4979c4f", "score": "0.5523781", "text": "public RequestLogs() {}", "title": "" }, { "docid": "f4f980b5bb20ea3bf1968b3bc2fb49b0", "score": "0.5503901", "text": "public void log() {\n\t\t\n\t}", "title": "" }, { "docid": "a2f280dec1bf84f2b6d766d264ef1f41", "score": "0.550298", "text": "private ContextLogDispatcher() {}", "title": "" }, { "docid": "7e0acd30a9db8c19f5ab1e9619777315", "score": "0.5473019", "text": "public void setLog(Log log)\r\n\t{\r\n\t\tthis.proc.setLog(log);\r\n\t}", "title": "" }, { "docid": "957a1dfdedc4db1d30b96f5cad6411b6", "score": "0.5471384", "text": "@Override\n public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain )\n throws IOException, ServletException {\n MDC.put( \"requestId\", UUID.randomUUID().toString().toUpperCase());\n\n\n MDC.put(\"client\", request.getRemoteAddr());\n HttpServletRequest httpServletRequest = (HttpServletRequest) request;\n MDC.put(\"requestURL\", httpServletRequest.getRequestURI());\n\n try {\n chain.doFilter( request, response );\n } finally {\n // When the control returns to the filter, clean it.\n MDC.remove( \"requestId\" );\n MDC.remove( \"client\" );\n MDC.remove( \"requestURL\" );\n }\n }", "title": "" }, { "docid": "6b13c2e2b68da826c88fa00af0911dfc", "score": "0.5457847", "text": "public void logHTTPRequest(HttpServletRequest request, Logger logger, List parameterNamesToObfuscate) {\r\n StringBuffer params = new StringBuffer();\r\n Iterator i = request.getParameterMap().keySet().iterator();\r\n while (i.hasNext()) {\r\n String key = (String) i.next();\r\n String[] value = (String[]) request.getParameterMap().get(key);\r\n for (int j = 0; j < value.length; j++) {\r\n params.append(key + \"=\");\r\n if (parameterNamesToObfuscate != null && parameterNamesToObfuscate.contains(key)) {\r\n params.append(\"********\");\r\n } else {\r\n params.append(value[j]);\r\n }\r\n if (j < value.length - 1) {\r\n params.append(\"&\");\r\n }\r\n }\r\n if (i.hasNext())\r\n params.append(\"&\");\r\n }\r\n Cookie[] cookies = request.getCookies();\r\n if ( cookies != null ) {\r\n for ( int c=0; c<cookies.length; c++ ) {\r\n if ( !cookies[c].getName().equals(\"JSESSIONID\")) {\r\n params.append( \"+\" + cookies[c].getName() + \"=\" + cookies[c].getValue() );\r\n }\r\n }\r\n }\r\n String msg = request.getMethod() + \" \" + request.getRequestURL() + (params.length() > 0 ? \"?\" + params : \"\");\r\n logger.info(Logger.SECURITY, true, msg);\r\n }", "title": "" }, { "docid": "e374a6f7dd89e47de0216d89d06c3fa1", "score": "0.54446954", "text": "private void setAudittraceValue(HttpServletRequest request) throws Exception {\n\n try {\n systemAuditBean = new SystemAuditBean();\n ////get unique Id from the page.It may be the primary key---------------\n String uniqueId = request.getParameter(standingOrderTypesBean.getOrderID());\n\n systemAuditBean.setUserRoleCode(sessionVarlist.getCMSSessionUser().getUserRole());\n systemAuditBean.setUserName(sessionVarlist.getCMSSessionUser().getUserName());\n //set unique id\n systemAuditBean.setUniqueId(uniqueId);\n //set description \n systemAuditBean.setDescription(\"Add standing order type. Standing order ID: '\" + standingOrderTypesBean.getOrderID() + \"' by: \" + sessionVarlist.getCMSSessionUser().getUserName());\n systemAuditBean.setApplicationCode(ApplicationVarList.ADMINISTRATION_APPLICATION);\n systemAuditBean.setSectionCode(SectionVarList.SYSTEMCONFIGMANAGEMENT);\n systemAuditBean.setPageCode(PageVarList.STANDING_ORDER_TYPES);\n systemAuditBean.setTaskCode(TaskVarList.ADD);\n systemAuditBean.setIp(request.getRemoteAddr());\n //add remarks here\n systemAuditBean.setRemarks(uniqueId);\n //set field name which is being changed(only if)\n systemAuditBean.setFieldName(\"\");\n //set old value of change if required\n systemAuditBean.setOldValue(\"\");\n //set new value of change if required\n systemAuditBean.setNewValue(\"\");\n\n systemAuditBean.setLastUpdateduser(sessionVarlist.getCMSSessionUser().getUserName());\n\n } catch (Exception ex) {\n throw ex;\n }\n }", "title": "" }, { "docid": "50c4476c4dd664c0705b29c263c5f33d", "score": "0.5434275", "text": "public static void setHttpRequest(HttpServletRequest httprequest){\n\t\trequest.set(httprequest);\n\t}", "title": "" }, { "docid": "4d2330fda03345cd04d2937b8481e878", "score": "0.54331255", "text": "private void logHeaders(ServletRequest request,\n\t\t\tHttpServletRequest httpRequest) {\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tif (request != null) {\n\t\t\t\tLOG.debug(\"----------------------Headers----------------------\");\n\t\t\t\tEnumeration<String> headerNames = httpRequest.getHeaderNames();\n\t\t\t\twhile (headerNames.hasMoreElements()) {\n\t\t\t\t\tString headerName = headerNames.nextElement();\n\t\t\t\t\tLOG.debug(\"Header Name: \" + headerName);\n\t\t\t\t\tString headerValue = httpRequest.getHeader(headerName);\n\t\t\t\t\tLOG.debug(\", Header Value: \" + headerValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLOG.debug(\"No Request\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7435aa0419fc44fbea8057f2c543d9c3", "score": "0.54284954", "text": "@Override\n\tprotected void init() throws SiDCException, Exception {\n\t\tLogAction.getInstance().debug(\"Request:\" + entity);\n\t}", "title": "" }, { "docid": "7435aa0419fc44fbea8057f2c543d9c3", "score": "0.54284954", "text": "@Override\n\tprotected void init() throws SiDCException, Exception {\n\t\tLogAction.getInstance().debug(\"Request:\" + entity);\n\t}", "title": "" }, { "docid": "93698c33c19ceb04532055a99ac5ad10", "score": "0.53995293", "text": "@Override\n public void setupLogging() throws Exception {\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.communication.dispatching.server.WebserviceManager\")\n// .setLevel(Level.INFO);\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.application.server.CoapServerApplication\")\n// .setLevel(Level.INFO);\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.application.server.webservice.ObservableWebservice\")\n// .setLevel(Level.DEBUG);\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.communication.observing.client.ClientObservationHandler\")\n// .setLevel(Level.INFO);\n Logger.getRootLogger().setLevel(Level.DEBUG);\n }", "title": "" }, { "docid": "10d32506221253d09017cb6184f1fb9d", "score": "0.53890747", "text": "void logAccess(Request request, Response response, long time,\n boolean useDefault);", "title": "" }, { "docid": "0da3ea40f5787b77d5e752b7f1c861d0", "score": "0.53872013", "text": "public void setResourceName(String logContext);", "title": "" }, { "docid": "568ba2d256725a861fc87c4af49670d2", "score": "0.53824127", "text": "private void logRequestSent(@NonNull final Request authenticatedRequest) {\n\n // Log requests only if log level is info or below\n if (PerkLogger.LogLevel.INFO.level > PerkLogger.getLogLevel().level)\n return;\n\n final StringBuilder requestSB = new StringBuilder();\n requestSB.append(authenticatedRequest.method())\n .append(\" \")\n .append(authenticatedRequest.url().toString())\n .append(\"\\n\");\n requestSB.append(authenticatedRequest.headers().toString()).append(\"\\n\" );\n final RequestBody requestBody = authenticatedRequest.body();\n if (requestBody != null) {\n requestSB.append(readRequestBody(requestBody)).append(\"\\n\");\n }\n\n PerkLogger.i(LOG_TAG, \"------------ Request ------------\\n\" + requestSB.toString());\n }", "title": "" }, { "docid": "26bf54ae803f23fe13d315f90d2eb0a3", "score": "0.53733665", "text": "private void logResponseRequestId(final String awsRequestId) {\n if (requestIdLog.isDebugEnabled() || requestLog.isDebugEnabled()) {\n final String msg = \"AWS Request ID: \" +\n (awsRequestId == null ? \"not available\" : awsRequestId);\n if (requestIdLog.isDebugEnabled()) {\n requestIdLog.debug(msg);\n } else {\n requestLog.debug(msg);\n }\n }\n }", "title": "" }, { "docid": "bb1380df8f3b3a55748b68804468f0f1", "score": "0.5359982", "text": "@Override\n public void setLogFile(File log) {\n }", "title": "" }, { "docid": "3db6fb4fdbb93f9fc42e5d384be89e73", "score": "0.5354681", "text": "private LogTrace() {\n \n }", "title": "" }, { "docid": "54d63651791e278f0f31d5bc2438b2b6", "score": "0.53388435", "text": "public static void setupLogging() {\n\t}", "title": "" }, { "docid": "382b8c10e402937465278d8c86bc1b86", "score": "0.53343505", "text": "@Override\r\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\r\n\t}", "title": "" }, { "docid": "00593f96d66f75cc8b9d8d2f3f7926d6", "score": "0.5319153", "text": "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request=request;\n\t}", "title": "" }, { "docid": "06be8ac1c6bbddb9ac8251a0093405fe", "score": "0.5311222", "text": "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "title": "" }, { "docid": "06be8ac1c6bbddb9ac8251a0093405fe", "score": "0.5311222", "text": "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "title": "" }, { "docid": "06be8ac1c6bbddb9ac8251a0093405fe", "score": "0.5311222", "text": "@Override\n\tpublic void setServletRequest(HttpServletRequest request) {\n\t\tthis.request = request;\n\t}", "title": "" }, { "docid": "5459606d259a5fd983664510c3bad157", "score": "0.53078645", "text": "private void logRequestParameters(javax.servlet.http.HttpServletRequest request) {\n Enumeration<String> params = request.getParameterNames();\n while(params.hasMoreElements()){\n String paramName = params.nextElement();\n logger.info(\"Parameter Name - \"+paramName+\", Value - \"+request.getParameter(paramName));\n }\n }", "title": "" }, { "docid": "44f8fa8476afb164b9f61985237473c1", "score": "0.5263483", "text": "public void setServletRequest(HttpServletRequest request) {\n\t\tthis.request=request;\r\n\t}", "title": "" }, { "docid": "6d01e01c5a53d3a8d85d9dd182196b70", "score": "0.525384", "text": "@WorkerThread\n private void perRequestReport() {\n\n if (consoleLogReport) {\n Log.v(\"AESOP \" + TAG, \"**********************************\");\n for (String s : singleRequestResultLog) {\n Log.v(\"AESOP \" + TAG, \"Log: \" + s);\n }\n Log.v(\"AESOP \" + TAG, \"**********************************\");\n }\n\n compositeResultLog.addAll(singleRequestResultLog);\n singleRequestResultLog.clear();\n }", "title": "" }, { "docid": "6cc3e4c6fa016a976c6c5625e5c58084", "score": "0.524654", "text": "@Override\n\tprotected void configureLogging() {\n\t}", "title": "" }, { "docid": "009296493febb09ac07ff2012cf85bed", "score": "0.5235628", "text": "private void setRequestInProgress(HttpServletRequest request) {\r\r\n\t\tHttpSession session = request.getSession();\r\r\n\t\tsession.setAttribute(REQUEST_IN_PROCESS, request);\r\r\n\t}", "title": "" }, { "docid": "35b0150031a731c7910f9e67eece05cb", "score": "0.5182352", "text": "void setLoggingRequestHelperFactory(LoggingRequestHelperFactory helperFactory) {\n this.helperFactory = helperFactory;\n }", "title": "" }, { "docid": "4892a913c1f9dc95635be10bf3e5ffec", "score": "0.51705194", "text": "public void enableDebugLogging() {\n debugLogging = true;\n }", "title": "" }, { "docid": "50ec344a3425e4563e78432f775b9405", "score": "0.5154734", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void getRequestResult(String msg) {\n\t\t\t\t\t\t\t\t\tTapfunsLogUtil.logI(msg);\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "d5204066c50681e43e32c646467fee7e", "score": "0.5154057", "text": "private void logAccess(HttpOutput output, HttpStatus status) {\n\t\tAccessLog log = conn.getAccessLog();\n\t\tString request = this.method + \" \" + this.uriSpec + \" \" + this.version;\n\t\tlog.write(conn.getRemoteAddress(), this.requestTimeMillis, request, status, \n\t\t\t\toutput.getBytesWritten(), getHeader(\"Referer\"), getHeader(\"User-Agent\"));\n\t}", "title": "" }, { "docid": "4e3aafc3bdedc1f113e688536424b739", "score": "0.5153408", "text": "private void wrapJettyHandler(Server server) {\n LogbackAccessJettyRequestLog requestLog = new LogbackAccessJettyRequestLog(\n logbackAccessProperties, environment, applicationEventPublisher);\n RequestLogHandler requestLogHandler = new RequestLogHandler();\n requestLogHandler.setHandler(server.getHandler());\n requestLogHandler.setRequestLog(requestLog);\n server.setHandler(requestLogHandler);\n }", "title": "" }, { "docid": "78b4c95908faf9cd1cc311cb5ce12ccd", "score": "0.51475847", "text": "private void logExtendedRequestId(HttpResponse response) {\n String reqId = response.getHeaders()\n .get(HttpResponseHandler.X_AMZN_EXTENDED_REQUEST_ID_HEADER);\n\n if (reqId != null && (requestIdLog.isDebugEnabled() || requestLog.isDebugEnabled())) {\n String msg = \"AWS Extended Request ID: \" + reqId;\n if (requestIdLog.isDebugEnabled()) {\n requestIdLog.debug(msg);\n } else {\n requestLog.debug(msg);\n }\n }\n }", "title": "" }, { "docid": "61a9e1bf515f2ea5b3f123cae6302b5d", "score": "0.51439553", "text": "public void setTransactionLog(TransactionLog log) {\n transactionLog = log;\n }", "title": "" }, { "docid": "21f323d770e8ffc7d4f2066f8f177b23", "score": "0.5142608", "text": "protected void doTrace(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "30bed74fb3cca267325a84c900d34d7e", "score": "0.5133486", "text": "@Override\n\tpublic void setServletRequest(HttpServletRequest arg0) {\n this.request=arg0;\n\t}", "title": "" }, { "docid": "2a1f341fe4d0ceb4741cc8603d48c0b8", "score": "0.5133196", "text": "@Override\n\tpublic Object run() throws ZuulException {\n\t\t\n\t\tHttpServletRequest request = RequestContext.getCurrentContext().getRequest();\n\t\t//Now 'request' contains the intercepted request.\n\t\t//We will now log this request using logger\n\t\t\n\t\tlogger.info(\"request -> {} request url -> {}\", request, request.getRequestURI());\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "947ca616481a56c0a790c67a85fd619f", "score": "0.5127285", "text": "private void a(HttpEntityEnclosingRequest object) {\n int n2;\n StringBuffer stringBuffer = new StringBuffer();\n Object object2 = object.getAllHeaders();\n int n3 = object2.length;\n for (n2 = 0; n2 < n3; ++n2) {\n stringBuffer.append(object2[n2].toString()).append(\"\\n\");\n }\n stringBuffer.append(object.getRequestLine().toString()).append(\"\\n\");\n if (object.getEntity() != null) {\n try {\n object = object.getEntity().getContent();\n if (object != null && (n2 = object.available()) > 0) {\n object2 = new byte[n2];\n object.read((byte[])object2);\n stringBuffer.append(\"POST:\\n\");\n stringBuffer.append(new String((byte[])object2)).append(\"\\n\");\n }\n }\n catch (IOException var1_2) {\n aa.y(\"Error Writing hit to log...\");\n }\n }\n aa.y(stringBuffer.toString());\n }", "title": "" }, { "docid": "9221ee8e82f83087d01eb3d5c765d26a", "score": "0.5121601", "text": "void setHttpContext(HttpContext context)\n {\n _httpContext=context;\n }", "title": "" }, { "docid": "cbceac965934a84901a404ecbe8503b4", "score": "0.51100814", "text": "public static void sendRequestToAll(RequestTelemetry rt)\n\t{\n\t\tfor (ApplicationInsightsLogger logger : _loggers.values())\n\t\t{\n\t\t\tlogger.sendRequest(rt);\n\t\t}\n\t}", "title": "" }, { "docid": "f65dd4f397af2166715f31f316d20895", "score": "0.51074874", "text": "protected void preprocessRequest(final HttpRequest request, final HttpContext context)\n throws IOException, HttpException {\n this.httpcontext = context;\n super.preprocessRequest(request, context);\n if (HEADERLOG.isDebugEnabled()) {\n HEADERLOG.debug(\">> \" + request.getRequestLine().toString());\n Header[] headers = request.getAllHeaders();\n for (int i = 0; i < headers.length; i++) {\n HEADERLOG.debug(\">> \" + headers[i].toString());\n }\n }\n }", "title": "" }, { "docid": "fa270d902b6a6bd4bd80c28950ceae16", "score": "0.5101471", "text": "void setLogging(boolean enabled);", "title": "" }, { "docid": "f045c9c3133ce6ac996c0e0ebbdfff49", "score": "0.50869095", "text": "public Log4jAppender()\n\t\tthrows IOException\n\t{ \n\t\tlogger = Logger.getLogger(\"jetty.request\");\n\t}", "title": "" }, { "docid": "d0ae972cb8e78db3f03a303b248bef19", "score": "0.5058578", "text": "public void log(Throwable t) {\n controller.log(t);\n }", "title": "" }, { "docid": "f9458aadf823d5df7a65ee1d429669b8", "score": "0.5056971", "text": "public void logRequest(CredentialsDTO user, MessageDTO message) throws SwazamException;", "title": "" }, { "docid": "06cbea380e3499c59360f9b01c0d81d0", "score": "0.50436085", "text": "static public void setContext(final Context context) {\n // once setContext is called, we can set up the uncaught exception handler since\n // it will force logging to the file\n if (null == Logger.context) {\n\n // set a custom JUL Handler so we can capture third-party and internal java.util.logging.Logger API calls\n LogManager.getLogManager().getLogger(\"\").addHandler(julHandler);\n java.util.logging.Logger.getLogger(\"\").setLevel(Level.ALL);\n\n Logger.context = context;\n\n // now that we have a context, let's set the fileLoggerInstance properly unless it was already set by tests\n if (fileLoggerInstance == null || fileLoggerInstance instanceof FileLogger) {\n FileLogger.setContext(context);\n fileLoggerInstance = FileLogger.getInstance();\n }\n\n SharedPreferences prefs = Logger.context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n\n // level\n if (null != level) { // someone called setLevel method before setContext\n setLevelSync(level); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n setLevelSync(LEVEL.fromString (prefs.getString (SHARED_PREF_KEY_level, getLevelDefault().toString())));\n }\n\n // logFileMaxSize\n if (null != logFileMaxSize) { // someone called setMaxStoreSize method before setContext\n setMaxStoreSize(logFileMaxSize); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n setMaxStoreSize(prefs.getInt(SHARED_PREF_KEY_logFileMaxSize, DEFAULT_logFileMaxSize));\n }\n\n // capture\n if (null != capture) { // someone called setCapture method before setContext\n setCaptureSync(capture); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n setCaptureSync(prefs.getBoolean (SHARED_PREF_KEY_logPersistence, DEFAULT_capture));\n }\n\n // filters\n if (null != filters) { // someone called setFilters method before setContext\n setFiltersSync(filters); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n try {\n setFiltersSync(JSONObjectToHashMap(new JSONObject(prefs.getString (SHARED_PREF_KEY_filters, \"{}\"))));\n } catch (JSONException e) {\n // not possible\n }\n }\n\n uncaughtExceptionHandler = new UncaughtExceptionHandler ();\n Thread.setDefaultUncaughtExceptionHandler (uncaughtExceptionHandler);\n }\n }", "title": "" }, { "docid": "cfe3a64f2d7849057cdd57d0cad9fd3c", "score": "0.5037756", "text": "private void setupRequestContext() {\r\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\r\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\r\n\t\tRequestContextHolder.setRequestAttributes(attributes);\r\n\t}", "title": "" }, { "docid": "9c9644be966cb67bc5a34e6758d8e7e8", "score": "0.50280017", "text": "public void onStartLog(String sessionId) {\n\n\t}", "title": "" }, { "docid": "58690c6fc2c8e6a370fd1f08ad98ff12", "score": "0.5008368", "text": "private void logSlowRequests(long requestLifetime, Request<?> request,\n byte[] responseContents, StatusLine statusLine) {\n if (requestLifetime > SLOW_REQUEST_THRESHOLD_MS) {\n // TODO implement logging\n }\n }", "title": "" }, { "docid": "922d2af5d0cd4eff6875767c79744422", "score": "0.5007877", "text": "public void testSetLog() {\n System.out.println(\"setLog\");\n \n String s = \"\";\n \n LogTrace.setLog(s);\n \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": "a2c6dd4fbf4718480e7b89bc482948e0", "score": "0.50055945", "text": "private void setupRequestContext() {\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\n\t\tRequestContextHolder.setRequestAttributes(attributes);\n\t}", "title": "" }, { "docid": "9b4d06d290723b9a254fa86874048b03", "score": "0.49968797", "text": "@Override\n\tprotected final void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doTrace(req, resp);\n\t}", "title": "" }, { "docid": "16f25ccd5af9f931962bf0752354a073", "score": "0.4980223", "text": "void setLoggingTag(String loggingTag);", "title": "" }, { "docid": "20589206aa79dafa8ca179e503a4d53d", "score": "0.4973829", "text": "public static void collectAndSendLog(Context context){\r\n\t\t_context = context;\r\n\t\t_collectLogTask = (CollectLogTask) (new Log()).new CollectLogTask().execute();\r\n }", "title": "" }, { "docid": "59552a99c40d94054da261566467f734", "score": "0.4968924", "text": "protected void logFlush() {\n }", "title": "" }, { "docid": "f20bd5ab7087df556e5734c9a7ffb14b", "score": "0.49661127", "text": "@Before(\"log()\")\n\tpublic void before(JoinPoint joinPoint) {\n\t}", "title": "" }, { "docid": "44dddf065950748cbd5930c42da46e30", "score": "0.49660528", "text": "@Override\n\t\t\tpublic void exception(final Throwable e) {\n\t\t\t\tthis.log(e);\n\n\t\t\t}", "title": "" }, { "docid": "536096e94c1d4b1586ea5bfe3d01e944", "score": "0.49659228", "text": "@Override\n\tpublic void setServletRequest(HttpServletRequest arg0) {\n\t\trequest = arg0;\n\t}", "title": "" }, { "docid": "4af2273bf30fccab4193b0115768b489", "score": "0.4964832", "text": "@Async\n public void add(HttpServletRequest request) {\n service.execution(request);\n }", "title": "" }, { "docid": "457f0b8dc32d4fe5e49f8c66524f8c33", "score": "0.49590284", "text": "public void log(String name) {\r\n\t\ttrace = factory.createTrace();\r\n\t\tlog.add(trace);\r\n\t\ttrace.getAttributes().put(XConceptExtension.KEY_NAME,\r\n\t\t\t\tfactory.createAttributeLiteral(XConceptExtension.KEY_NAME, name, conceptExtension));\r\n\t}", "title": "" }, { "docid": "04464a3335e871585e7f59f97209479f", "score": "0.49559298", "text": "public void logLazily(LogEntry entry, ReplicationContext repContext) {\n\n lazyLogQueue.add(new LazyQueueEntry(entry, repContext));\n }", "title": "" }, { "docid": "6f75ada774ca8bf90d64b647dbdd0523", "score": "0.49542987", "text": "@Override\n\t\t\t\tpublic void log(String message, Throwable e) {\n\t\t\t\t}", "title": "" }, { "docid": "0f60cdc18527dc313158a053d0f1802c", "score": "0.49503306", "text": "@Test\n\tpublic void testLog()\n\t{\t\n\t\t\n\t\tgiven()\n\t\t .queryParam(\"key\", apiKey)\n\t\t .queryParam(\"country\", countryCode)\n\t\t .queryParam(\"city\", cityName.get(0))\n\t\t.when()\n\t\t .get(apiUrl)\n\t\t.then() \n\t\t .log().all();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "64181b4290fb2315b60795b0c0020480", "score": "0.49472883", "text": "public void setServletRequest(HttpServletRequest arg0) {\n\t\t\t request=arg0;\r\n\t\t}", "title": "" }, { "docid": "387bb357f008c3a3005ac4d1addc70fd", "score": "0.49454802", "text": "public Request logAndReplaceRequest(String str, Request request, Object[] objArr) throws IOException {\n String str2;\n this.log.log(String.format(\"---> %s %s %s\", str, request.getMethod(), request.getUrl()));\n if (this.logLevel.ordinal() >= LogLevel.HEADERS.ordinal()) {\n for (Header header : request.getHeaders()) {\n this.log.log(header.toString());\n }\n TypedOutput body = request.getBody();\n if (body != null) {\n String mimeType = body.mimeType();\n if (mimeType != null) {\n this.log.log(\"Content-Type: \" + mimeType);\n }\n long length = body.length();\n str2 = length + \"-byte\";\n if (length != -1) {\n this.log.log(\"Content-Length: \" + length);\n }\n if (this.logLevel.ordinal() >= LogLevel.FULL.ordinal()) {\n if (!request.getHeaders().isEmpty()) {\n this.log.log(\"\");\n }\n if (!(body instanceof TypedByteArray)) {\n request = Utils.readBodyToBytesIfNecessary(request);\n body = request.getBody();\n }\n this.log.log(new String(((TypedByteArray) body).getBytes(), MimeUtil.parseCharset(body.mimeType(), Utf8Charset.NAME)));\n } else if (this.logLevel.ordinal() >= LogLevel.HEADERS_AND_ARGS.ordinal()) {\n if (!request.getHeaders().isEmpty()) {\n this.log.log(\"---> REQUEST:\");\n }\n for (int i = 0; i < objArr.length; i++) {\n this.log.log(\"#\" + i + \": \" + objArr[i]);\n }\n }\n } else {\n str2 = \"no\";\n }\n this.log.log(String.format(\"---> END %s (%s body)\", str, str2));\n }\n return request;\n }", "title": "" }, { "docid": "17074375015ce4a27cb6d6449b54d666", "score": "0.49387652", "text": "public RequestContext getRequestContext() {\n return this._requestContext;\n}", "title": "" }, { "docid": "4f219b9db458f0c57695c1440c1dfc6a", "score": "0.4938344", "text": "public void intercept(final HttpRequest request)\n throws IOException {\n final HttpHeaders headers = (HttpHeaders) request.getHeaders();\n Log.d(TAG, \"setting authToken in Header: \"\n + authToken);\n headers.setAuthorization(\"GoogleLogin auth=\" + authToken);\n //headers.setGoogleLogin(authToken);\n //request.getInterceptor().intercept(request);\n //new MethodOverride().intercept(request);\n }", "title": "" }, { "docid": "60cad3bfe9e703790dabfc03faaa5e71", "score": "0.493645", "text": "protected void traceRequest(HttpServletRequest req) {\n\t\tif (!DEBUG)\n\t\t\treturn;\n\t\tStringBuffer result = new StringBuffer(req.getMethod());\n\t\tresult.append(' ');\n\t\tresult.append(req.getRequestURI());\n\t\tString query = req.getQueryString();\n\t\tif (query != null)\n\t\t\tresult.append('?').append(query);\n\t\tSystem.out.println(result);\n\t\tif (DEBUG_VEBOSE)\n\t\t\tprintHeaders(req);\n\t}", "title": "" }, { "docid": "e47bebd07bb52ab36f2f413c493bf05c", "score": "0.4931589", "text": "@Override\r\n\tpublic void setServletRequest(HttpServletRequest arg0) {\n\t\tthis.request = arg0;\r\n\t}", "title": "" }, { "docid": "e47bebd07bb52ab36f2f413c493bf05c", "score": "0.4931589", "text": "@Override\r\n\tpublic void setServletRequest(HttpServletRequest arg0) {\n\t\tthis.request = arg0;\r\n\t}", "title": "" }, { "docid": "9d6545799ce7d503d99cf6c87bfd100f", "score": "0.4928397", "text": "public void setLogFile(final String logFile);", "title": "" }, { "docid": "be226dce13c6bd9b8bed73c252e18cdb", "score": "0.49193427", "text": "public SubscriptionDebugLogInterceptor() {\n\t\tthis(DEFAULT_LOGGER, Level.INFO);\n\t}", "title": "" }, { "docid": "dd8fe269d119d1ad607f1c296e2062d8", "score": "0.49070692", "text": "default ServerConfig logResponseContent() {\n return logResponseContent(true);\n }", "title": "" }, { "docid": "8c8a75ef3079b769b89fed1658494a16", "score": "0.49064413", "text": "public void setServletRequest(HttpServletRequest arg0) {\n\t\trequest=arg0;\r\n\t}", "title": "" }, { "docid": "1b62d41b400c9e4a45dbb0e5016e90ab", "score": "0.49062726", "text": "public GitLabApi withRequestResponseLogging() {\n enableRequestResponseLogging();\n return (this);\n }", "title": "" }, { "docid": "5b0fa4e0b2d6c1997b50b6ef6b5f8418", "score": "0.49059373", "text": "private void addSessionContextToLogging() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\r\n String tokenValue = \"EMPTY\";\r\n if (authentication != null && !Strings.isNullOrEmpty(authentication.getDetails().toString())) {\r\n MessageDigestPasswordEncoder encoder = new MessageDigestPasswordEncoder(\"SHA-1\");\r\n log.debug(\"Check create id session for current request using token:\" + authentication.getDetails().toString());\r\n tokenValue = encoder.encodePassword(authentication.getDetails().toString(), \"not_so_random_salt\");\r\n log.debug(\"Check encoded id session for current request using token:\" + tokenValue);\r\n }\r\n MDC.put(TOKEN_SESSION_KEY, tokenValue);\r\n\r\n String userValue = \"EMPTY\";\r\n if (authentication != null && !Strings.isNullOrEmpty(authentication.getPrincipal().toString())) {\r\n userValue = authentication.getPrincipal().toString();\r\n }\r\n MDC.put(USER_SESSION_KEY, userValue);\r\n }", "title": "" }, { "docid": "31202ce30fdad914f0dc103ee28a3644", "score": "0.48963714", "text": "private Log() {\n\t}", "title": "" }, { "docid": "8db8a1849fb34d6e234f8422bb8caf41", "score": "0.4891484", "text": "public void sendRequest(RequestTelemetry rt)\n\t{\n\t\t// Add the application context\n\t\tMap<String, String> props = rt.getProperties();\n\t\tcopyStaticProperties(props);\n\n\t\t// Send the message to App Insights\n\t\tif (_internalLogger.isTraceEnabled())\n\t\t{\n\t\t\t_internalLogger.trace(\"[REQUEST] Going to send the request telemetry for \" + rt.getUrlString()\n\t\t\t\t\t+ \" to application insights\");\n\t\t}\n\n\t\t_client.trackRequest(rt);\n\t}", "title": "" }, { "docid": "173633460e746cc6f3780012fb79b067", "score": "0.48886293", "text": "public void setServletRequest(HttpServletRequest arg0) {\n\t\trequest = arg0;\r\n\t}", "title": "" }, { "docid": "bfdebe8d7d36798b0088e03ccabaaa88", "score": "0.48867795", "text": "public void setStartLogging(boolean startLogging) {\n this.startLogging = startLogging;\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "63cfe7f54f50d5ad7e5ee71e13fc78ab", "score": "0.48849106", "text": "private void setEventLogLevel() {\n if (this.eventLog instanceof Logger) {\n if (this.debug) {\n if (!this.eventLog.isDebugEnabled()) {\n ((Logger) this.eventLog).setLogLevel(Logger.DEBUG);\n }\n } else if (this.eventLog.isDebugEnabled()) {\n ((Logger) this.eventLog).setLogLevel(Logger.INFO);\n }\n }\n }", "title": "" }, { "docid": "4e0a2d962dce70d9135b8cf289a7f33b", "score": "0.48815948", "text": "@Before(\"execution(* com.springAU.service.EmployeeService.getAllEmployees(..))\")\n\tpublic void logBeforeget(JoinPoint joinPoint){\n\t\tstart = LocalTime.now();\n\t\tSystem.out.println(\"\\nEmployeeAspect.logBefore() started at: \"+LocalTime.now()+ \" \"+joinPoint.getSignature().getName()+\"()\");\n\t}", "title": "" }, { "docid": "bc2dd19881fbfdf2b89534ac8c8dec58", "score": "0.4881143", "text": "public void setThreadLogger(Thread thread, Logger logger)\n\t{\n\t\tappLogger.setLogger(thread, logger);\n\t}", "title": "" } ]
ddbe3beab75bdd5c53e645c57cb4a732
Get the time in milliseconds of the last update cycle start
[ { "docid": "c4999bc2580e762b49abe116533988d6", "score": "0.0", "text": "public static long getMilliTime()\n {\n return currentTime / 1000000;\n }", "title": "" } ]
[ { "docid": "99e7ee34335b9c7ae74219ce2ab1ab09", "score": "0.7146412", "text": "private double now() {\n return System.nanoTime() / 1000000.0d;\n }", "title": "" }, { "docid": "6bc13650890fd66d8bea4cc671d11a3c", "score": "0.7142758", "text": "long getLastUpdateTime();", "title": "" }, { "docid": "c2084af794fe1dd8a1378e86b093240e", "score": "0.7125588", "text": "public long millis() {\r\n\tlong elapsed = elapsedTime;\r\n\tif (baseTime!=0) { // we are started\r\n\t\telapsed += System.currentTimeMillis() - baseTime;\r\n\t}\r\n\treturn elapsed;\r\n}", "title": "" }, { "docid": "2ddfffc1439b6d9225bf07673f3a88bd", "score": "0.7082805", "text": "private long timeElapsedSinceLastStart() {\n if ( isRunning() ) {\n return System.currentTimeMillis() - _startTime;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "263b9e096dd26770e27a53a96d450fd2", "score": "0.7054424", "text": "public static long getTime()\n\t{\n\t\tif(System.currentTimeMillis() > lastUpdate + TIME_TILL_UPDATE)\n\t\t{\n\t\t\tupdateOffSet();\n\t\t\tlastUpdate = System.currentTimeMillis();\n\t\t\t\n\t\t\t//LOG OFFSET\n\t\t\tLOGGER.info(Lang.getInstance().translate(\"Adjusting time with %offset% milliseconds.\").replace(\"%offset%\", String.valueOf(offset)));\n\t\t}\n\t \n\t\t//CALCULATE CORRECTED TIME\n\t\treturn System.currentTimeMillis() + offset;\n\t}", "title": "" }, { "docid": "ea825c5fc81276d601190b593f7f6350", "score": "0.70252603", "text": "@Override\n public double timeNow()\n {\n if (logStart == 0)\n {\n logStart = DatalogManager.INSTANCE.getLogStart();\n }\n final long runTime = System.currentTimeMillis() - logStart;\n final double timeNow = runTime / 1000.0;\n \n return timeNow;\n }", "title": "" }, { "docid": "da82d001473ed0651c7c068c78615f19", "score": "0.69980407", "text": "@Override\n\tpublic long getUpdateTime() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a2bb04946e077b985aed12c2525be57d", "score": "0.69916296", "text": "public long getLastUpdateTime();", "title": "" }, { "docid": "067e27a780d3b4792ec8c99f11e82800", "score": "0.69837016", "text": "public long getTime() {\n return System.nanoTime()/1000L;\n }", "title": "" }, { "docid": "77a1e51b62270205acdee7ac674f4dd9", "score": "0.6976136", "text": "public long getLastUpdate() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "123130c35cef016fc0992780c84f11da", "score": "0.69602865", "text": "public long elapsedTime() {\n\t\tlong now = System.currentTimeMillis();\n\t\t//return (now-start)/1000.0;\n\t\treturn now - start;\n\t}", "title": "" }, { "docid": "b7f348cf6055a8050ed65ffa0948d520", "score": "0.6950688", "text": "public long getLastUpdateTime() {\n return -1;\n }", "title": "" }, { "docid": "05dcaa3a7e022a8f8d0a2aeeee94b0c1", "score": "0.69374305", "text": "private static long now() {\n long endNano = System.nanoTime();\n long elapsedTime = (endNano - startNano) / 1000000;\n return startTime + elapsedTime;\n }", "title": "" }, { "docid": "5860e212e91a0ad71d8d82e5e1f9f535", "score": "0.6935685", "text": "public long get_next_poll_time () {\n\n\t\t// It's the time of the next short poll, but at least the current time\n\n\t\treturn Math.max (next_short_poll_time, sg.task_disp.get_time());\n\t}", "title": "" }, { "docid": "f1b2b50b874d140bc5d51ff6918c399e", "score": "0.6932208", "text": "public long elapsedMillis() { return current() - startTime; }", "title": "" }, { "docid": "3aaf596035594f76775519921902ffee", "score": "0.6915832", "text": "@Override\n\tpublic long getTime() {\n\t\treturn (Sys.getTime() * 1000000000) / Sys.getTimerResolution();\n\t}", "title": "" }, { "docid": "511548bc681a7e8e3b7c058dacb92880", "score": "0.69053644", "text": "public long getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "1b0e529eb9d4f5badf30fc2d2a975a9e", "score": "0.68979764", "text": "public long getLastStatusUpdateTimeMillis()\n {\n return lastUpdateTimeMillis;\n }", "title": "" }, { "docid": "cdc0556ee47c45e1a209d42f4a03bdb0", "score": "0.6879435", "text": "public static long nowMillis() {\n\t\treturn System.currentTimeMillis();\n\t}", "title": "" }, { "docid": "481eb6a0b5645fcdcf5d74b5f0117e87", "score": "0.6873925", "text": "public float getModelTime() {\n\t\tlong currentTick = System.currentTimeMillis();\n\t\tfloat t = (currentTick - startTick) / 1000f + t0;\n\t\tt = t % DAY_LEN;\n\t\tt = Math.round(t * 10) / 10;\n\n\t\t// log\n\t\tif (t - lastLog > LOG_BEAT || t < lastLog) {\n\t\t\tserver.log(\"t = \" + t);\n\t\t\tlastLog = t;\n\t\t}\n\t\treturn t;\n\t}", "title": "" }, { "docid": "7bc48d5b1d6b5d81d78289dead707e27", "score": "0.6870375", "text": "public static long nowMillis() {\n return System.currentTimeMillis();\n }", "title": "" }, { "docid": "4aaddf86f7a8d5d50f09d520a0ad8eae", "score": "0.68700653", "text": "public long getTime() {\n\treturn (System.nanoTime() + 500000L)/1000000L;\n }", "title": "" }, { "docid": "f029747290db83f72afcd682ad4e871d", "score": "0.6858484", "text": "public static long getTime() {\n\t\t// we get the \"timer ticks\" from the high resolution timer\n\t\t// multiply by 1000 so our end result is in milliseconds\n\t\t// then divide by the number of ticks in a second giving\n\t\t// us a nice clear time in milliseconds\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\n\t}", "title": "" }, { "docid": "009ece2eae354a051c39e743d1ef9fd6", "score": "0.6855456", "text": "@Override\n\tpublic int getTime() {\n\t\treturn (int)(System.currentTimeMillis() / 1000.0);\n\t}", "title": "" }, { "docid": "11a92870e0f2cd8e3665a521b170e00a", "score": "0.6840941", "text": "public long getDeltaTime() {\n\t\tif (currentFrameAtTime == UNDEFINED || lastFrameAtTime == UNDEFINED) {\n\t\t\treturn 0l;\n\t\t}\n\t\treturn currentFrameAtTime - lastFrameAtTime;\n\t}", "title": "" }, { "docid": "8944e73557294ca3b27b2de5f439edd0", "score": "0.6810111", "text": "private long msSinceMostRecentContestStartOperation() {\n if (contestRunning) {\n TimeZone tz = TimeZone.getTimeZone(\"GMT\");\n GregorianCalendar cal = new GregorianCalendar(tz);\n\n long milliDiff = cal.getTime().getTime() - resumeTime.getTime().getTime();\n return milliDiff;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "86d84f093d91fa693d97a33e0dbd22d5", "score": "0.6809094", "text": "public static long getRunTime(){\n\t\treturn ((System.nanoTime()-startTime)/1000000000);\n\t}", "title": "" }, { "docid": "a539a79e225dc19cda3cbeb44b1de05a", "score": "0.6803517", "text": "private long getDelayBeforeFirstUpdate() {\n Optional<Long> lastTimeOfUpdate =\n CloudSdkServiceUserSettings.getInstance().getLastAutomaticUpdateTimestamp();\n long delayBeforeUpdateMillis = SDK_UPDATE_INTERVAL_MS;\n if (lastTimeOfUpdate.isPresent()) {\n delayBeforeUpdateMillis =\n Math.min(\n SDK_UPDATE_INTERVAL_MS,\n Math.max(0, SDK_UPDATE_INTERVAL_MS - (getClock().millis() - lastTimeOfUpdate.get())));\n }\n\n return delayBeforeUpdateMillis;\n }", "title": "" }, { "docid": "17b41ac1730ee39c3fbb90814a7b2df3", "score": "0.67982024", "text": "int getMillis();", "title": "" }, { "docid": "031bbe8221629c319f8441a4dba294d4", "score": "0.6784902", "text": "public Integer getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "a08975e67deb77af3ddb6d478a8503f7", "score": "0.67716616", "text": "public double getElapsedTime(){\r\n\t\treturn (double)(System.nanoTime()-startedTime)/1000000000.0;\r\n\t}", "title": "" }, { "docid": "015345e7866b1d083ebbac50e7462da1", "score": "0.6761367", "text": "public long getElapsedTime(){\n return System.currentTimeMillis() - start;\n }", "title": "" }, { "docid": "ff7fd39b904cc642cad8c0509d7111ba", "score": "0.6760801", "text": "public double getElapsedTimeMillis() {\n\t\treturn getElapsedTimeNanos() / 1000000.0;\n\t}", "title": "" }, { "docid": "3492243302d5327389d915f69e515303", "score": "0.67581695", "text": "public int getActualPollingTimeMillis()\n\t{\n\t\treturn actualPollingTimeMillis;\n\t}", "title": "" }, { "docid": "faaf9489d95aef6ec16d1077d38b06f8", "score": "0.67570275", "text": "public long getElapsed()\n {\n return System.currentTimeMillis() - _start;\n }", "title": "" }, { "docid": "4a9950a23936788b0e030b40308388c9", "score": "0.67472565", "text": "public Long getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "e6a5c9ab5e94849436d2678d07e39b6a", "score": "0.6734872", "text": "public long nowMilliseconds();", "title": "" }, { "docid": "64b54a380be3dbdbf67c740d4c17d820", "score": "0.6734565", "text": "public long elapsedTime() {\n return now() - startTime;\n }", "title": "" }, { "docid": "09eceec774480cec306cbc301bc4485d", "score": "0.67271084", "text": "public long getActiveTimeMillis() {\n long rTime = lastReturnTime;\n long bTime = lastBorrowTime;\n\n if (rTime > bTime) {\n return rTime - bTime;\n } else {\n return System.currentTimeMillis() - bTime;\n }\n }", "title": "" }, { "docid": "806158aa019c77c991ded06d917fa8a7", "score": "0.67084527", "text": "public Long getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "4628adba5ca591a15e218789c503f067", "score": "0.6708068", "text": "public long getTimeToResult() {\n return (long) Math.round((float) ((System.currentTimeMillis() - this.startLoadTimestamp) / 1000));\n }", "title": "" }, { "docid": "2e1f573087e961b5dbc090152f11268d", "score": "0.6705874", "text": "public int getTime()\n {\n return curTime;\n }", "title": "" }, { "docid": "3df7264e465007071d15431706473587", "score": "0.66977257", "text": "public long get_last_mod_UTC_ms() {\n return last_mod_UTC_ms;\n }", "title": "" }, { "docid": "10f5ee7571e0ba31fa0a1fb29a11f49b", "score": "0.66959035", "text": "private long currentTime() {\n\t\treturn System.nanoTime();\n\t}", "title": "" }, { "docid": "08bf57036d70d3d001267309a149dfca", "score": "0.6693301", "text": "public long getLastUpdate() {\n\t\treturn lastUpdate;\n\t}", "title": "" }, { "docid": "29ea418a9cd87f6f845cc742d635ea14", "score": "0.66825324", "text": "public final long getTime(){\n return dt.getMillis();\n }", "title": "" }, { "docid": "d37e3c7c9167f0b234da79043a367166", "score": "0.66817266", "text": "public long getTimeNanos() {\n\treturn System.nanoTime();\n }", "title": "" }, { "docid": "27a5a77bb9c50fd3549b348567056db1", "score": "0.6678561", "text": "public String getLastUpdateTime() {\n\t\treturn this.lastUpdateTime;\n\t}", "title": "" }, { "docid": "0e9d660bd60c640104560654b9309ac2", "score": "0.6678067", "text": "private long getElapsedTime() {\n\t\treturn System.currentTimeMillis() - startTime;\n\t}", "title": "" }, { "docid": "32df58cb83df28ea1e6975a39de34534", "score": "0.66719836", "text": "public synchronized long time() {\n if (startNanoTime == 0) {\n return 0;\n }\n if (time >= 0) {\n return time;\n }\n return Math.max(0, TimeValue.nsecToMSec(System.nanoTime() - startNanoTime));\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.6669066", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.6669066", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.6669066", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.6669066", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "de7d0ec3eca0a48e657da3fb6d8533b5", "score": "0.66652685", "text": "protected long getCurrentMillis() {\n int day = Integer.parseInt(txtDay.getText().toString());\n int month = monthArrayPointer + 1;\n int year = Integer.parseInt(txtYear.getText().toString());\n return toMillisFromJavaEpoch(year, month, day);\n }", "title": "" }, { "docid": "7ddd1249fc6df1fa7408e76495eda7f3", "score": "0.6662899", "text": "@Override\n public long now() {\n return SystemClock.uptimeMillis();\n }", "title": "" }, { "docid": "066108005eebd0b83625f7eb5768f578", "score": "0.66624886", "text": "public long getRealTime () {\n return (System.currentTimeMillis() - startTime) / ticSize;\n }", "title": "" }, { "docid": "c8cc16221c063eae1c109607eb7fccfa", "score": "0.66583663", "text": "public double timeIncrement()\n\t{\n\t\treturn _dblTimeIncrement;\n\t}", "title": "" }, { "docid": "d6d2e5a2733e21e6d1efdb29b165aba1", "score": "0.66555077", "text": "public long currentTimeMillis() {\n return System.currentTimeMillis();\n }", "title": "" }, { "docid": "a1f974074de87d0098f49d0b30ef9224", "score": "0.665068", "text": "public int get_startTime()\n {\n return (int)(_utcStamp - (System.currentTimeMillis() / 1000L));\n }", "title": "" }, { "docid": "92b72afb3494e5d29f6ec23fc2f30e8a", "score": "0.66500264", "text": "private long timer() {\n\t\treturn System.currentTimeMillis() - startTime;\n\n\t}", "title": "" }, { "docid": "8bf8610c150ed26132131618fef371a2", "score": "0.664816", "text": "public double timeElapsed() {\n return System.currentTimeMillis() - start;\n }", "title": "" }, { "docid": "d385206bd3de1a43b87fc3deba07599a", "score": "0.66401327", "text": "public double getElapsed() {\n\t\tcurrentTime = System.currentTimeMillis();\n\t\telapsedTime = (int) (currentTime - initialTime);\n\t\treturn elapsedTime/1000.0;\n\t}", "title": "" }, { "docid": "f2adb183dab3f39eedb27ecd2c155141", "score": "0.6631951", "text": "public long currentTimeMillis() {\n return System.currentTimeMillis();\n }", "title": "" }, { "docid": "703ec0753a985c57699ba858b886c68f", "score": "0.6631371", "text": "public long elapsedTimeMs() {\n return elapsedTime() / 1000000;\n }", "title": "" }, { "docid": "7026d811e9c97d8bbf7395c0d7095fca", "score": "0.66289777", "text": "int getMillisOfSecond();", "title": "" }, { "docid": "c6ff7524ce75cf58f7b25c5bb285db15", "score": "0.66227496", "text": "public String getUpdateTime() {\n return this.UpdateTime;\n }", "title": "" }, { "docid": "2d2a3c4dbb8851767e1e9b348022e913", "score": "0.6620834", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "4777d2c82104df4280aef1741e2b4e08", "score": "0.6620762", "text": "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "title": "" }, { "docid": "4777d2c82104df4280aef1741e2b4e08", "score": "0.6620762", "text": "public String getUpdatetime() {\n\t\treturn updatetime;\n\t}", "title": "" }, { "docid": "8805f9c838456fbf805eda06f82c2d6b", "score": "0.66140485", "text": "final long now() {\n return System.nanoTime() - NANO_ORIGIN;\n }", "title": "" }, { "docid": "64ea28df7000b0e0d4ccdf2181d56e2e", "score": "0.6610579", "text": "public static float GetCurrentSystemTime() {\n return System.nanoTime() / 1000000000.0f;\n }", "title": "" }, { "docid": "f1a7aa7f5125d60f974a0e1ce5c2ec95", "score": "0.66033745", "text": "final static long now() {\r\n return System.nanoTime() - NANO_ORIGIN;\r\n }", "title": "" }, { "docid": "667417873c85f0de7f159480587ad8e8", "score": "0.6598088", "text": "public synchronized static long getRunTime() {\n return endTime - startTime;\n }", "title": "" }, { "docid": "14cf842c34e83cc1f963bd143a5c8f49", "score": "0.65978944", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "14cf842c34e83cc1f963bd143a5c8f49", "score": "0.65978944", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "ba9631a0e8f3ccba52fd7931cc2bc5e9", "score": "0.65943503", "text": "public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }", "title": "" }, { "docid": "ba9631a0e8f3ccba52fd7931cc2bc5e9", "score": "0.65943503", "text": "public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }", "title": "" }, { "docid": "ba9631a0e8f3ccba52fd7931cc2bc5e9", "score": "0.65943503", "text": "public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }", "title": "" }, { "docid": "1a362e21a423a9c74634b3a76a3556d1", "score": "0.6587352", "text": "public long getElapsedTime() {\n\t\treturn dnf ? -1 : elapsedTime;\n\t}", "title": "" }, { "docid": "33dbca6f9871600fff75cd07311675d2", "score": "0.6583118", "text": "public double getElapsedTime() {\n\t\treturn getElapsedTimeNanos() / 1000000000.0;\n\t}", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.6581732", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.6581732", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.6581732", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.6581732", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "e8a75c441e87b5bfe23c6531a3d643fa", "score": "0.6576166", "text": "long getTotalTime();", "title": "" }, { "docid": "37f9a435ea9089da29658153b684dd4b", "score": "0.65709174", "text": "long getLatestDataTime();", "title": "" }, { "docid": "596fa342267e96e449099406a9af5103", "score": "0.65691817", "text": "public Date getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "596fa342267e96e449099406a9af5103", "score": "0.65691817", "text": "public Date getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "596fa342267e96e449099406a9af5103", "score": "0.65691817", "text": "public Date getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "596fa342267e96e449099406a9af5103", "score": "0.65691817", "text": "public Date getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "596fa342267e96e449099406a9af5103", "score": "0.65691817", "text": "public Date getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "5f58e09de30aed74fdbf3591b467a157", "score": "0.65609014", "text": "public long currentTimeMillis();", "title": "" }, { "docid": "839838cddc087402924caf966d9752a9", "score": "0.6559411", "text": "public int getLastUpdate() {\n return lastUpdate_;\n }", "title": "" }, { "docid": "c5e722e0430b81b822d0353d08935c98", "score": "0.6556181", "text": "public long getElapsedTime() {\n return Math.max(System.currentTimeMillis() - this.startTime, 0L);\n }", "title": "" }, { "docid": "82dd0e391cc9959516cff3a6b42ea57f", "score": "0.6546139", "text": "long getLastRefreshTime();", "title": "" }, { "docid": "d58e0549c7c06e49fe06f0df34b3ce83", "score": "0.65411407", "text": "public long getElapsedTimeNanos() {\n\t\treturn stopTime - startTime;\n\t}", "title": "" }, { "docid": "fdc002ae21b38a08754cad98541f3894", "score": "0.65390265", "text": "public long getMillisCrawling() {\n return daemonTotalRuntime;\n }", "title": "" }, { "docid": "fe3c1a1f03c9003a5cafc45d46011c94", "score": "0.65280724", "text": "public Date getUpdatetime () {\n\t\t\t\treturn updatetime;\n\t\t}", "title": "" }, { "docid": "19f04ecead1d03d3519feaedfb61aaa4", "score": "0.6526195", "text": "public long getElapsed() {\n return Utils.Timers.now() - started;\n }", "title": "" }, { "docid": "97adaf25b08c7033f2c8a1e076e9bc56", "score": "0.6525231", "text": "public long getLastCycleDetectionTimestamp() {\n return mLastCycleDetectionTimestamp;\n }", "title": "" } ]
8b6cc7676968c3e215305d49d7d4e5f9
Converts the activity instance select answer.
[ { "docid": "cb888a7764f140f31c99f15f0f54a022", "score": "0.671106", "text": "private ActivityInstanceSelectAnswer convertActivityInstanceSelectAnswer(Handle handle, Response response, String studyGuid,\n String userGuid, QuestionDto questionDto,\n String guid, String actInstanceGuid, JsonElement value) {\n if (value != null && value.isJsonPrimitive() && value.getAsJsonPrimitive().isString()) {\n String textValue = value.getAsJsonPrimitive().getAsString();\n var jdbiQuestion = new JdbiQuestionCached(handle);\n Set<String> activityCodes = new HashSet<>(jdbiQuestion\n .getActivityCodesByActivityInstanceSelectQuestionId(questionDto.getId()));\n var instanceSummaries = handle.attach(org.broadinstitute.ddp.db.dao.ActivityInstanceDao.class)\n .findSortedInstanceSummaries(userGuid, studyGuid, activityCodes);\n if (instanceSummaries.stream().noneMatch(summary -> summary.getGuid().equals(textValue))) {\n throw ResponseUtil.haltError(response, HttpStatus.SC_NOT_FOUND, new ApiError(ErrorCodes.NOT_FOUND,\n \"Could not find activity instance with guid \" + textValue));\n }\n return new ActivityInstanceSelectAnswer(null, questionDto.getStableId(), guid, textValue, actInstanceGuid);\n } else {\n return null;\n }\n }", "title": "" } ]
[ { "docid": "0c7b52aadd29c5ac8ed0721052c7f447", "score": "0.53055215", "text": "private String getSelectedActivity() {\n int index = atividadesRadioGrp.indexOfChild(findViewById(atividadesRadioGrp.getCheckedRadioButtonId()));\n switch (index) {\n case 0:\n return \"RUNNING\";\n case 1:\n return \"WALKING\";\n case 2:\n return \"GO_DOWNSTAIRS\";\n case 3:\n return \"GO_UPSTAIRS\";\n case 4:\n return \"DRIVING\";\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7c57e7ba8014203a268aab5a2c3ca2bb", "score": "0.5153352", "text": "private ShowTimeVariablePlot2.CalculationHolder getChoice()\n \t{\n \t\tString[] choices = new String[_theOperations.size()];\n \t\tObject[] results = new Object[_theOperations.size()];\n \t\tfor (int i = 0; i < _theOperations.size(); i++)\n \t\t{\n \t\t\tShowTimeVariablePlot2.CalculationHolder thisC = (ShowTimeVariablePlot2.CalculationHolder) _theOperations\n \t\t\t\t\t.elementAt(i);\n \t\t\tchoices[i] = thisC.toString();\n \t\t\tresults[i] = thisC;\n \t\t}\n \n \t\tGetSelection dialog = new GetSelection(\"View time-variable plot\",\n \t\t\t\t\"Please select the attribute to view\", choices, results);\n \n \t\tint selection = dialog.open();\n \t\tShowTimeVariablePlot2.CalculationHolder res;\n \t\tif (selection == 0)\n \t\t{\n \t\t\tres = (ShowTimeVariablePlot2.CalculationHolder) dialog._result;\n \n \t\t\t// right, remember what was selected\n \t\t\t_pastSelections.put(choices[0], new Integer(dialog._resultIndex));\n \n \t\t}\n \t\telse\n \t\t{\n \t\t\tres = null;\n \t\t}\n \t\treturn res;\n \t}", "title": "" }, { "docid": "099cc752bbd3e3471865cf2e128454f3", "score": "0.5130216", "text": "private PicklistAnswer convertPicklistAnswer(String stableId, String guid, String actInstanceGuid, JsonElement value) {\n if (value == null || !value.isJsonArray()) {\n return null;\n }\n try {\n Type selectedOptionListType = new TypeToken<ArrayList<SelectedPicklistOption>>() {\n }.getType();\n List<SelectedPicklistOption> selected = gson.fromJson(value, selectedOptionListType);\n return new PicklistAnswer(null, stableId, guid, selected, actInstanceGuid);\n } catch (JsonSyntaxException e) {\n log.warn(\"Failed to convert submitted answer to a picklist answer\", e);\n return null;\n }\n }", "title": "" }, { "docid": "7ade88579619ad89c25b25eeadabd995", "score": "0.5108677", "text": "@Override\n public String IccPerformSelection() {\n String selectedAID = SELECTED_AID;\n return selectedAID;\n }", "title": "" }, { "docid": "801c74c5ba29b5cf8d80b1e8a7103ee4", "score": "0.48582992", "text": "Agent<T> selectFrom(Content<T> selectBox, String option);", "title": "" }, { "docid": "7682b73f11c08f8a7011a36b9e19e152", "score": "0.4841286", "text": "public T caseIfcStructuralActivityAssignmentSelect(IfcStructuralActivityAssignmentSelect object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e45c76b374219a0be10c9e5f9ccc8ebf", "score": "0.48385125", "text": "selectInformation createselectInformation();", "title": "" }, { "docid": "dc35cdc190d71c3ac53badcf1d5b1a43", "score": "0.48364255", "text": "private void selectedActivity(Activities activity) {\r\n\t\tActivitiesAction activitiesAction = ControladorContexto\r\n\t\t\t\t.getContextBean(ActivitiesAction.class);\r\n\t\tfor (Activities auxActivity : activitiesAction.getListActivities()) {\r\n\t\t\tif (activity.getIdActivity() == auxActivity.getIdActivity()) {\r\n\t\t\t\tauxActivity.setSeleccionado(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2189db30c84cd63cd2d435db3c140f47", "score": "0.4809364", "text": "public void onClickSelect() {\n\t\tIntent intent = new Intent(this, InputTagActivity.class);\n\t\tstartActivity(intent);\n\n\t}", "title": "" }, { "docid": "d72b73c33161232ec8657506388e4d3e", "score": "0.4800334", "text": "private void choiceAnalysis() {\n\n\t\t// TODO Implement choice static analysis\n\n\t}", "title": "" }, { "docid": "6c57d0f9522e49d2b6649fd658437b0d", "score": "0.47673965", "text": "Select select() { return new Select(context); }", "title": "" }, { "docid": "70b1a4918226052d61c9a3da329efdce", "score": "0.47578156", "text": "public String getAnswer(){\n\t\tString type = getType();\n\t\tif(QUESTION_TYPE_FREE_TEXT.equals(type) && answerText != null){\n\t\t\treturn answerText.getText().trim();\n\t\t}else if(QUESTION_TYPE_MULTIPLE_CHOICE.equals(type) && answerGroup != null){\n\t\t\tif(answerGroup.getSelection() != null)\n\t\t\t\treturn answerGroup.getSelection().getActionCommand();\n\t\t}else if(QUESTION_TYPE_POINT_OUT.equals(type)){\n\t\t\treturn (pointObject != null)?pointObject.toString():\"\";\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "69a64d019f4f329bcd2579c89247b347", "score": "0.47555548", "text": "public AnswerSelectedAction(@NotNull CallReviewPresenterImpl callReviewPresenterImpl, CallReviewAnswer callReviewAnswer) {\n super(null, \"answerSelected = \" + callReviewAnswer, 1, null);\n Intrinsics.checkNotNullParameter(callReviewAnswer, \"answer\");\n this.e = callReviewPresenterImpl;\n this.d = callReviewAnswer;\n }", "title": "" }, { "docid": "8dbc2df0abb208ac0bdbc048abd4dc1e", "score": "0.47138277", "text": "public int getSelectedAnswer() {\n return selectedAnswer;\n }", "title": "" }, { "docid": "e815ef0ed1220910225dfef75c79b28e", "score": "0.46996072", "text": "public java.lang.Object getChoiceValue() {\n return this._choiceValue;\n }", "title": "" }, { "docid": "440fd24c174f659fc4dece1e2e8f595b", "score": "0.4694676", "text": "private Answer convertAnswer(Handle handle, Response response, String instanceGuid, String stableId, String guid,\n String studyGuid, String userGuid, QuestionDto questionDto, JsonElement value) {\n switch (questionDto.getType()) {\n case BOOLEAN:\n return convertBoolAnswer(stableId, guid, instanceGuid, value);\n case PICKLIST:\n return convertPicklistAnswer(stableId, guid, instanceGuid, value);\n case MATRIX:\n return convertMatrixAnswer(handle, stableId, guid, instanceGuid, value);\n case TEXT:\n return convertTextAnswer(stableId, guid, instanceGuid, value);\n case ACTIVITY_INSTANCE_SELECT:\n return convertActivityInstanceSelectAnswer(handle, response, studyGuid, userGuid, questionDto, guid, instanceGuid, value);\n case DATE:\n return convertDateAnswer(stableId, guid, instanceGuid, value);\n case FILE:\n return convertFileAnswer(handle, response, stableId, guid, instanceGuid, value);\n case NUMERIC:\n return convertNumericAnswer(handle, (NumericQuestionDto) questionDto, guid, instanceGuid, value);\n case DECIMAL:\n return convertDecimalAnswer(handle, (DecimalQuestionDto) questionDto, guid, instanceGuid, value);\n case AGREEMENT:\n return convertAgreementAnswer(stableId, guid, instanceGuid, value);\n case COMPOSITE:\n return convertCompositeAnswer(handle, response, instanceGuid, studyGuid, userGuid,\n (CompositeQuestionDto) questionDto, guid, value);\n default:\n throw new RuntimeException(\"Unhandled question type \" + questionDto.getType());\n }\n }", "title": "" }, { "docid": "b0a534aaf9bf6853c7c2d14b6a33f98e", "score": "0.4689877", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(buttonIsSelectedPositively)\n\t\t\t\t{\n\t\t\t\t\ttheButton.setTextColor(Color.GREEN);\n\t\t\t\t\tbuttonIsSelectedPositively = false; // upon selection, we set this as false, since the next time they'll select\n\t\t\t\t\t// it, it'll mean it is selected negatively.\n\t\t\t\t\tselectedChoice = theButton.getText().toString() + \", \";\n\t\t\t\t\t//userInputInfo = QuestionnareActivity.userInputInfoTV.getText().toString().concat(selectedChoice);\n\t\t\t\t\t//QuestionnareActivity.userInputInfoTV.setText(userInputInfo);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttheButton.setTextColor(Color.BLACK);\n\t\t\t\t\tbuttonIsSelectedPositively = true;\n\t\t\t\t\t\n\t\t\t\t\t//String newStr = QuestionnareActivity.userInputInfoTV.getText().toString().replace(theButton.getText()+\", \", \"\");\n\t\t\t\t\t//TestFlipper.userInputInfoTV.setText(newStr);\n\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}", "title": "" }, { "docid": "b0fc17792ddbfb1cde044840ee5676a4", "score": "0.46563143", "text": "Activityserve selectOneByExample(ActivityserveExample example);", "title": "" }, { "docid": "099962a44bc998bc2810912e53281213", "score": "0.46195725", "text": "protected synchronized <SC extends SQLightable> void select( Intent sig )\n\t{\n\t\tClass<SC> cls = null ;\n\t\tArrayList<SC> aoResults = null ;\n\t\ttry\n\t\t{\n\t\t\tcls = m_api.getClassFromExtra(sig) ;\n\t\t\tBundle bndlSpec = sig.getBundleExtra( EXTRA_SELECTION_QUERY_SPEC ) ;\n\t\t\tSelectionBuilder q = this.parseSelectionSpec( cls, bndlSpec ) ;\n\t\t\tCursor crs = q.execute() ;\n\t\t\tif( crs.moveToFirst() )\n\t\t\t{\n\t\t\t\taoResults = new ArrayList<>( crs.getCount() ) ;\n\t\t\t\tSQLightable.Reflection<SC> tbl = m_api.reflect(cls) ;\n\t\t\t\twhile( ! crs.isAfterLast() )\n\t\t\t\t{\n\t\t\t\t\taoResults.add( tbl.fromCursor(crs) ) ;\n\t\t\t\t\tcrs.moveToNext() ;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch( IntrospectionException | SchematicException xSchema )\n\t\t{\n\t\t\tLog.e( LOG_TAG, \"Failed to set up selection operation.\", xSchema ) ;\n\t\t\tthis.notifySelectionFailed( null ) ;\n\t\t}\n\t\tcatch( Exception x )\n\t\t{\n\t\t\tLog.e( LOG_TAG, \"Selection failed for unknown cause.\", x ) ;\n\t\t\tthis.notifySelectionFailed(( cls != null ?\n\t\t\t\t\tcls.getCanonicalName() : null )) ;\n\t\t}\n\t\tthis.sendSelectionResults( cls, aoResults ) ;\n\t}", "title": "" }, { "docid": "fd7f86c7541b4259d1c4102bc526f1f4", "score": "0.46160272", "text": "SelectAction createSelectAction();", "title": "" }, { "docid": "ab64a5703db8a3d64b3187a4048e4ef8", "score": "0.45960557", "text": "protected void setSelectedAnswer() {\n try {\n if(radioAnswerGroup.getCheckedRadioButtonId() == -1){\n throw new IllegalStateException();\n }\n int selectedId = radioAnswerGroup.getCheckedRadioButtonId();\n radioAnswerButton = (RadioButton) findViewById(selectedId);\n userAnswer = (String) radioAnswerButton.getText();\n }\n catch(IllegalStateException e){\n }\n\n }", "title": "" }, { "docid": "d49f03d54cf38f3bf6432ccf054f57fa", "score": "0.45894352", "text": "protected void convertInstance(Instance instance) throws Exception\n {\n int index = 0;\n Instance newInstance = new Instance(outputFormatPeek().numAttributes());\n \n for (int i = 0; i < selectedAttributes[0].length; i++)\n {\n newInstance.setValue(index, instance.value(selectedAttributes[0][i]));\n index++;\n }\n\n // set the weight\n newInstance.setWeight(instance.weight());\n push(newInstance);\n }", "title": "" }, { "docid": "f83f5d52fbc4d845690e9e38a1aa3eb0", "score": "0.45741025", "text": "public String getCast() {\n // may have to be asking for a list?\n // send selectedMovie/Show\n\n // TODO: Not yet implemented.\n return null;\n }", "title": "" }, { "docid": "9d5e2e6776d1967f8bf3b34a475b3311", "score": "0.45643994", "text": "public Vote getAnswer() {\n\t\treturn V;\n\t}", "title": "" }, { "docid": "ea7a3e79b99a54c549c36065d336b276", "score": "0.4563486", "text": "abstract public Object getSelection();", "title": "" }, { "docid": "c379c66471e08b3d55d0f05c67f608bc", "score": "0.45506832", "text": "private void choose(Button source) {\r\n String text = source.getText();\r\n answer = Options.fromString(text);\r\n getWindow().close();\r\n }", "title": "" }, { "docid": "097329fd8fcaae6c5889bfc6ae7ba0a9", "score": "0.4542057", "text": "@Override\r\n\tpublic void select() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f1a7a5ef01ebbc4b3e14fbcc054f1354", "score": "0.4536916", "text": "private AgreementAnswer convertAgreementAnswer(String stableId, String guid, String actInstanceGuid, JsonElement value) {\n if (value != null && value.isJsonPrimitive() && value.getAsJsonPrimitive().isBoolean()) {\n return new AgreementAnswer(null, stableId, guid, value.getAsJsonPrimitive().getAsBoolean(), actInstanceGuid);\n }\n return null;\n }", "title": "" }, { "docid": "b064c69c843bd097139a67a40ddb8f9b", "score": "0.4536347", "text": "public DotaGcmessagesServer.ESuspiciousActivity getActivity() {\n DotaGcmessagesServer.ESuspiciousActivity result = DotaGcmessagesServer.ESuspiciousActivity.valueOf(activity_);\n return result == null ? DotaGcmessagesServer.ESuspiciousActivity.k_ESuspiciousActivity_VAC_MultipleInstances : result;\n }", "title": "" }, { "docid": "da4f55a391eb9cf9a0430563a4b6c9d0", "score": "0.45261282", "text": "protected synchronized <SC extends SQLightable> void\n\tsendSelectionResults( Class<SC> cls, List<SC> aoResults )\n\t{ m_ctx.sendBroadcast( this.buildResultBroadcast( cls, aoResults ) ) ; }", "title": "" }, { "docid": "97ef77f5353a2d73e3b011c0dfa73c45", "score": "0.45068732", "text": "@Override\n\tpublic void select() {\n\t\t\n\t}", "title": "" }, { "docid": "97ef77f5353a2d73e3b011c0dfa73c45", "score": "0.45068732", "text": "@Override\n\tpublic void select() {\n\t\t\n\t}", "title": "" }, { "docid": "87aad348982620b96209282334d78e8a", "score": "0.45063925", "text": "public Choice getChoice() {\n return choice;\n }", "title": "" }, { "docid": "58123efa98abc1f374f86e7529ca5ca2", "score": "0.45054695", "text": "private TextAnswer convertTextAnswer(String stableId, String guid, String actInstanceGuid, JsonElement value) {\n if (value != null && value.isJsonPrimitive() && value.getAsJsonPrimitive().isString()) {\n String textValue = value.getAsJsonPrimitive().getAsString();\n return new TextAnswer(null, stableId, guid, textValue, actInstanceGuid);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "50f646276efc3f9eaa2c5471e724a022", "score": "0.45026746", "text": "public T caseIfcActorSelect(IfcActorSelect object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6ab6bf35f04159f7a5988109051a9f8d", "score": "0.4494237", "text": "@Override\n\t\t\t\t\tpublic void onChoiceStarted() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "82a7c86712a0f02a7c55f5e5cb7cba5c", "score": "0.44782194", "text": "public static int getSelectionMethod(){return selectionMethod;}", "title": "" }, { "docid": "62f8f2d6bdadad5709992a67130d362f", "score": "0.4466567", "text": "CaseInstanceQuery completed();", "title": "" }, { "docid": "a30546cd5b7f6c0cb9723f0f96ae73b9", "score": "0.44585568", "text": "public DotaGcmessagesServer.ESuspiciousActivity getActivity() {\n DotaGcmessagesServer.ESuspiciousActivity result = DotaGcmessagesServer.ESuspiciousActivity.valueOf(activity_);\n return result == null ? DotaGcmessagesServer.ESuspiciousActivity.k_ESuspiciousActivity_VAC_MultipleInstances : result;\n }", "title": "" }, { "docid": "14135de245012d8891a5b9c0264a0a90", "score": "0.44492942", "text": "Task getSelectedTask();", "title": "" }, { "docid": "6895de34f2c93215e9ccaaacf2569cc0", "score": "0.44489205", "text": "public void displaySelected(Recipe selected, String fromPlan){\n Intent rbIntent = new Intent(this, rbDisplay.class);\n rbIntent.putExtra(\"RECIPE\", selected);\n rbIntent.putExtra(\"FROMPLAN\", fromPlan);\n startActivityForResult(rbIntent, 1);\n }", "title": "" }, { "docid": "6e367d13ae4f86f09010297b1694f081", "score": "0.44461522", "text": "@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\n\t\t\t\tgetAnswer(button1.getText().toString());\r\n\t\t\t}", "title": "" }, { "docid": "b230d9e3038575386b883087a674dc03", "score": "0.44430542", "text": "private void humanSelected(){\n datasetManager.humanSelected(getAdapterPosition());\n }", "title": "" }, { "docid": "7666cc0818e903467d1aa21ea4d1c0fc", "score": "0.44429582", "text": "OptionsAnswer createOptionsAnswer();", "title": "" }, { "docid": "267d965763e469382238117737a2dc3d", "score": "0.44368413", "text": "@Override\n\t\t\t\t\tpublic void onChoiceEnded() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "28f6e7dadb89829e9437229c84eb1772", "score": "0.4428025", "text": "public void setSelectedAnswer(int selectedAnswer) {\n this.selectedAnswer = selectedAnswer;\n }", "title": "" }, { "docid": "5ba3a46558029e4cddfb86b3a75d671b", "score": "0.44233313", "text": "public String darRespuestaSeleccionada( )\n {\n return respuestaSeleccionada;\n }", "title": "" }, { "docid": "b7a1807c224c7604a6225665ef26ea87", "score": "0.44215235", "text": "public String getSelectedValue() {\n if (results.isEmpty()) {\n return null;\n } else {\n return (String) results.get(0);\n }\n }", "title": "" }, { "docid": "e7fff047178448b0fb3625c078cb8b4a", "score": "0.44176763", "text": "@Override\n public String toString() {\n return answer;\n }", "title": "" }, { "docid": "1017cb0104da08345fd8ceb2fb5299af", "score": "0.44130173", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowChoice();\n\t\t\t}", "title": "" }, { "docid": "876b8c280f4a3cc368ce53585e1505e5", "score": "0.44101307", "text": "protected int entityIntChoicePicker(String prompt) {\n TreeMap<Integer, String> options = getController().getChoiceMap();\n options.put(0, \"Exit this submenu\");\n ChoicePicker entityPicker = new ChoicePicker(prompt, options);\n return entityPicker.run();\n /* Note: choice starts from 1, index start from 0 */\n }", "title": "" }, { "docid": "ccf5af92fcf3f82d91fd16900e2cb6ea", "score": "0.4404601", "text": "public IntereSelectAdapter invoke() {\n return new IntereSelectAdapter(this.f84015a.f84007x);\n }", "title": "" }, { "docid": "0e67ff06b70a372d46a3e31b971551b6", "score": "0.43981907", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tint id = v.getId();\n\t\tSelectionInfo info = textView.getCursorSelection();\n\t\t// 用户选中的文字\n\t\tString selectText = info.getSelectedText().toString();\n\n\t\tswitch (id) {\n\t\tcase R.id.select_menu_copy:// 复制\n\t\t\tclipboard.setPrimaryClip(ClipData.newPlainText(\"selectedText\", selectText));\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.select_menu_dict:// 查询字典\n\t\t\tIntent intent2 = new Intent();\n\t\t\tintent2.setClassName(\"com.stra.stradict\", \"com.stra.stradict.FanchaActivity\");\n\t\t\tintent2.putExtra(\"WordFancha\", selectText);\n\t\t\tcontext.startActivity(intent2);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.select_menu_browser:// 浏览器\n\t\t\tIntent intent = new Intent();\n\t\t\tUri content_url = Uri.parse(\"http://www.baidu.com/s?wd=\" + selectText);\n\t intent.setAction(\"android.intent.action.VIEW\");\n\t intent.setData(content_url);\n\t context.startActivity(intent);\n\t\t\tbreak;\n\t\t}\n\t\ttextView.hideCursor();\n\t}", "title": "" }, { "docid": "9ab3d370bb0a657b53a8076ce477c960", "score": "0.43946844", "text": "public select_result(select_result other) {\r\n if (other.isSetSuccess()) {\r\n java.util.List<com.wenshao.dal.thriftgen.Banner> __this__success = new java.util.ArrayList<com.wenshao.dal.thriftgen.Banner>(other.success.size());\r\n for (com.wenshao.dal.thriftgen.Banner other_element : other.success) {\r\n __this__success.add(new com.wenshao.dal.thriftgen.Banner(other_element));\r\n }\r\n this.success = __this__success;\r\n }\r\n }", "title": "" }, { "docid": "34a56223d026314ee8703b839cdcea51", "score": "0.4382245", "text": "@Override\n\tpublic void select(GAnsGraphElement obj) {\n\t}", "title": "" }, { "docid": "4af44d57bf5a7653ca5332ebede10e52", "score": "0.43785667", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tWriteUtil.write(TVActivity.this, areaId_one, areaId_two,\r\n\t\t\t\t\t\troomId, channelId, TV_Cmd.choose.getVal());\r\n\t\t\t}", "title": "" }, { "docid": "9d6128f956717e713ee80e2b8c632d13", "score": "0.43743858", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(HomeScreenActivity.this, QuestionActivity.class);\n intent.putExtra(\"selectedDuration\", selectedDuration);\n intent.putExtra(\"selectedDifficulty\", selectedDifficulty);\n intent.putExtra(\"selectedCategory\", selectedCategory);\n startActivity(intent);\n }", "title": "" }, { "docid": "d7f97980d74144ed56420b65a93ce2b9", "score": "0.43736306", "text": "private void itemSelect() {\n\t\tSystem.out.println(\"Select an Item using the corresponding Item Number.\");\n\t\tint vendNum = in.nextInt();\n\t\tmachine.select(vendNum);\n\t}", "title": "" }, { "docid": "7d7bbc8398a96853b01675314589dcbd", "score": "0.43711424", "text": "public Object getSelection() {\r\n\t\treturn selection.getData();\r\n\t}", "title": "" }, { "docid": "c7f562f473e1afd8d3fe9af7b371a031", "score": "0.43591714", "text": "private void performInteraction() {\n\t\tVector<Integer> interactionChoiceSetIDList = new Vector<Integer>();\n\t\tinteractionChoiceSetIDList.add(ChoiceSet.DISCOVER.ordinal());\n\t\t\n\t\tString simple = context.getResources().getString(R.string.discover_al_discover_categories);\n\t\tString initialText = context.getResources().getString(R.string.discover_al_discover);\t\t\n\t\t\n\t\tVector<TTSChunk> initChunks = TTSChunkFactory.createSimpleTTSChunks(simple);\n\t\tVector<TTSChunk> timeoutChunks = TTSChunkFactory.createSimpleTTSChunks(\n\t\t\t\t//context.getResources().getString(R.string.time_out));\n\t\t\t\tcontext.getResources().getString(R.string.discover_al_time_out_help_text)) ; \n\t\t\n\t\tALUtil.performInteractionChoiceSet(initChunks, initialText, interactionChoiceSetIDList, timeoutChunks,\n\t\t\t\tgetArguments().getBoolean(BundleKeys.MANUAL_IO_ONLY));\n\t}", "title": "" }, { "docid": "bc80cc40d71fb6f489c3bfc2e927c89a", "score": "0.4357406", "text": "@Override\n public void onClick(View view) {\n long[] ids = mList.getSelectedEntryIDs();\n\n // Return the result\n Intent result = new Intent();\n result.putExtra(RESULT_SELECTED_AUDIO_RECORDS, ids);\n setResult(Activity.RESULT_OK, result);\n finish();\n }", "title": "" }, { "docid": "e6418a9e60033bcd3dfbcf964f180686", "score": "0.43540666", "text": "@Override\n\tpublic String visit(SelectQuestion sq) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "93b3d45097e8a8486c43713e9ce19b78", "score": "0.43518108", "text": "public static JComboBox getActivityType() {\r\n\t\treturn activityType;\r\n\t}", "title": "" }, { "docid": "2f3a4bcda15b685925d922c372c47c59", "score": "0.43400067", "text": "ActivityTemplate selectOneByExample(ActivityTemplateExample example);", "title": "" }, { "docid": "bf9f51ced5b8a8d8a000ab4ec16ee848", "score": "0.4338586", "text": "public String toSurvey() {\n\t\treturn \"toSurveyMt\";\n\t}", "title": "" }, { "docid": "b8525f3812c64372fa156b2f7faeadb7", "score": "0.43375", "text": "private void setResultForReturn() \n\t{\n\t\tBundle bundle = new Bundle();\n\t\tbundle.putString(\"parseId\", scribeRequest.getObjectId());\n\t\tbundle.putString(\"uuid\", scribeRequest.getString(\"uuid\"));\n\t\tIntent returnIntent = new Intent();\n\t\treturnIntent.putExtras(bundle);\n\t\tgetActivity().setResult(getActivity().RESULT_OK, returnIntent);\n\t}", "title": "" }, { "docid": "d26df98ced81f8ca27d7827b306ccf32", "score": "0.4323463", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t \n\t\t\t\tcurrentButton = btnTermExam;\n\t\t\t\tbtnTermExam.setButtonSelected(true, getResources().getColor(R.color.black), R.drawable.exam_tap);\n\t\t\t\t\n\t\t\t\tupdateButtonUi();\n\t\t\t\t\n\t\t\t\tinitApiCall(\"3\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c799fe9183b392d002ca791c9f31588c", "score": "0.43234408", "text": "public void Ask() {\n \t\tSystem.out.println(\"asking question: \" + this.content);\n \t\tint pickIndex = gui.showQuestion(this);\n \t\tthis.setChosen(this.getAnswers()[pickIndex]);\n \t\tSystem.out.println(\"response: \" + this.getAnswers()[pickIndex]);\n \t\t\n \t}", "title": "" }, { "docid": "548023545f8f17c3ec89933106d587ee", "score": "0.43206355", "text": "public String getSelect()\n {\n return this.select;\n }", "title": "" }, { "docid": "f3697a41ded35cfb8c81e365f63a07c6", "score": "0.43136594", "text": "SingleOptionsAnswer createSingleOptionsAnswer();", "title": "" }, { "docid": "a8d2a499e06e795054cd071e60675d23", "score": "0.43079373", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tmSelect = which;\t\t\t\t\n\t\t\t\tnew_plant_site_id = mapUserSiteNameID.get(seqUserSite[mSelect].toString());\n\t\t\t\tnew_plant_site_name = seqUserSite[mSelect].toString();\n\t\t\t}", "title": "" }, { "docid": "5b1da0dc2ca613c707714d42316a3336", "score": "0.43079245", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\tintent.setClass(SelectDo.this,MovieSoActivity.class);\r\n\t\t\t\tSelectDo.this.startActivity(intent);\r\n\t\t\t}", "title": "" }, { "docid": "cdb27a4743466ce001fe1a73bdbe90fd", "score": "0.43075892", "text": "public void onClickViewAppointmentsOfContact() {\n final Contact selection = inputContact.getValue();\n if (null != selection) {\n final List<Appointment> appointments = Dao.getInstance().getAppointmentsOfContact(selection.getContactId());\n final StringBuilder report = new StringBuilder();\n appointments.forEach(c -> {\n report.append(getUITextResource().getString(\"report.appointment.id\")+\": \"+c.getAppointmentId()).append(\"\\n\");\n report.append(getUITextResource().getString(\"report.appointment.title\")+\": \"+c.getTitle()).append(\"\\n\");\n report.append(getUITextResource().getString(\"report.appointment.description\")+\": \"+c.getDescription()).append(\"\\n\");\n report.append(getUITextResource().getString(\"report.appointment.type\")+\": \"+c.getType()).append(\"\\n\");\n report.append(getUITextResource().getString(\"report.appointment.startdatetime\")+\": \"+convertTZ(c.getStart(),UTC, ZoneId.systemDefault()).format(DATE_TIME_FORMATTER))\n .append(\"\\n\");\n report.append(getUITextResource().getString(\"report.appointment.enddatetime\")+\": \"+convertTZ(c.getEnd(),UTC, ZoneId.systemDefault()).format(DATE_TIME_FORMATTER))\n .append(\"\\n\");\n report.append(getUITextResource().getString(\"report.appointment.customer.id\")+\": \"+c.getCustomerId()).append(\"\\n\");\n report.append(\"====================================================\\n\");\n });\n new GeneratedReportOutputController(report.toString()).show(getWindow());\n }\n }", "title": "" }, { "docid": "f80b1a118f2b962e9d302428aec881a2", "score": "0.42898345", "text": "public String choose() {\n\t\treturn\"\";\n\t}", "title": "" }, { "docid": "e70d3e948862d1705c0eb1d335c57ada", "score": "0.4282081", "text": "public static String getChoice (String answer)\n {\n\t\treturn input(\"Hi \" + answer + \"! Would you like to start a quiz, or quit? (s/q)\");\n\n }", "title": "" }, { "docid": "29a1d4fa8ab7af32bcef86a20a4d5da9", "score": "0.4280583", "text": "public String selectedElection(String selected){\r\n\t\tselectedE = selected;\r\n\t\telection = elections.get(selectedE);\r\n\t\treturn selectedE;\r\n\t}", "title": "" }, { "docid": "d748db17b6ce921e2c21298492d2b77b", "score": "0.42795256", "text": "private Activities extractActivities(final ResultSet rs) throws SQLException {\r\n\t\tActivities activity = new Activities();\r\n\t\tactivity.setId(rs.getLong(Fields.ENTITY_ID));\r\n\t\tactivity.setName(rs.getString(Fields.ACTIVITIES_NAME));\r\n\t\tactivity.setDescription(rs.getString(Fields.ACTIVITIES_DESCRIPTION));\r\n\t\tactivity.setImage(rs.getString(Fields.IMAGE));\r\n\t\treturn activity;\r\n\t}", "title": "" }, { "docid": "e3764705caf917c18393e67d7d331123", "score": "0.42793855", "text": "@Override\n public void onClick(View v) {\n selectedEvent.selectedEvent(events.get(getAdapterPosition()));\n }", "title": "" }, { "docid": "4ebf2709832a2c8a3f1e092471062ce8", "score": "0.4278454", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tLog.d(\"faculty\", selectedfaculty);\n\t\t\t\t\t\t\tLog.d(\"semester\", selectedsemester);\n\t\t\t\t\t\t\tnew SelectDB().execute(selectedfaculty,selectedsemester);\n\t\t\t\t\t\t\tchoose.dismiss();\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "5f9f8bec06bb6fc9b3b1cc59711df169", "score": "0.42750272", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tString accType = EAccType.getAccTypeName(EAccType.CREDIT_CARD);\n\t\t\tString accNum = accSelect.getAccNumValue();\n\t\t\tIntent intent = getIntent();\n\t\t\tintent.putExtra(\"accTypeValue\", accType);\n\t\t\tintent.putExtra(\"accNumValue\", accNum);\n\t\t\tString toClass = intent.getStringExtra(\"toClass\");\n\t\t\tif (toClass.equals(\"AccountCome\")) {\n\t\t\t\tintent.setClass(SelectCreditCard.this, AccountCome.class);\n\t\t\t} else if (toClass.equals(\"AccountInventory\")) {\n\t\t\t\tintent.setClass(SelectCreditCard.this, AccountInventory.class);\n\t\t\t} else {\n\t\t\t\tintent.setClass(SelectCreditCard.this, AccountQueryInfo.class);\n\t\t\t}\n\t\t\tstartActivity(intent);\n\t\t}", "title": "" }, { "docid": "2e33b9c8e0a1b905ef4ddc5ecc5bfa25", "score": "0.42680883", "text": "@Override\n public CharSequence convertResultToString(Object resultValue) {\n if (resultValue instanceof AutocompletePrediction) {\n return ((AutocompletePrediction) resultValue).getFullText(null);\n } else {\n return super.convertResultToString(resultValue);\n }\n }", "title": "" }, { "docid": "95f7622b3a8bea740fad97a2f72b28e8", "score": "0.42673537", "text": "public String dameSeleccion(){\r\n return grupo.getSelection().getActionCommand();\r\n }", "title": "" }, { "docid": "338f6570c7e21e5dcadcba1e68258c26", "score": "0.42668465", "text": "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if (i != 0) {\n\n String selection = ((TextView) view).getText().toString();\n Log.d(getLocalClassName(), \"Selected id: \" + String.valueOf(i));\n Log.d(getLocalClassName(), \"Selected: \" + selection);\n\n Toast.makeText(this, \"You decided: \" + selection, Toast.LENGTH_SHORT).show();\n handleHeroDecision(i);\n }\n }", "title": "" }, { "docid": "98a0aa246985beb42523a6e82e07030e", "score": "0.42643297", "text": "private MatrixAnswer convertMatrixAnswer(Handle handle, String stableId, String guid, String actInstanceGuid,\n JsonElement value) {\n if (value == null || !value.isJsonArray()) {\n return null;\n }\n try {\n Type selectedOptionListType = new TypeToken<ArrayList<SelectedMatrixCell>>() {\n }.getType();\n List<SelectedMatrixCell> selected = gson.fromJson(value, selectedOptionListType);\n List<String> optionStableIds = selected.stream().map(SelectedMatrixCell::getOptionStableId).collect(Collectors.toList());\n var jdbiQuestion = new JdbiQuestionCached(handle);\n var questionId = jdbiQuestion.findIdByStableIdAndInstanceGuid(stableId, actInstanceGuid).orElseThrow();\n Map<String, Long> optionStableIdToGroupId = new HashMap<>();\n Map<Long, MatrixGroupDto> selectedGroupMap = new HashMap<>();\n handle.attach(JdbiMatrixOption.class)\n .findOptions(questionId, optionStableIds, actInstanceGuid)\n .forEach(dto -> optionStableIdToGroupId.put(dto.getStableId(), dto.getGroupId()));\n List<Long> groupIds = new ArrayList<>(optionStableIdToGroupId.values());\n handle.attach(JdbiMatrixGroup.class).findGroupsByIds(questionId, groupIds, actInstanceGuid).forEach(g ->\n selectedGroupMap.put(g.getId(), g));\n selected.forEach(s -> {\n Long groupId = optionStableIdToGroupId.get(s.getOptionStableId());\n if (groupId != null) {\n s.setGroupStableId(selectedGroupMap.get(groupId).getStableId());\n }\n });\n return new MatrixAnswer(null, stableId, guid, selected, actInstanceGuid);\n } catch (JsonSyntaxException e) {\n log.warn(\"Failed to convert submitted answer to a matrix answer\", e);\n return null;\n }\n }", "title": "" }, { "docid": "1a171b3bc05326f7c5d2980a1ce435a7", "score": "0.4260182", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n String item = parent.getItemAtPosition(position).toString();\n\n // create Toast with user selected value\n //Toast.makeText(AddTimeSlotActivity.this, \"Selected Item is: \\t\" + item, Toast.LENGTH_LONG).show();\n\n selectedType = item;\n // set user selected value to the TextView\n //tvDisplay.setText(item);\n\n }", "title": "" }, { "docid": "68b4b488ed21e81bdb7784f7c18822c1", "score": "0.42600045", "text": "public static String selectSpecific(Request request, Response response) {\n String toReturn = \"\";\n\n try {\n PatientMessage message =\n new PatientMessage(Integer.parseInt(request.queryMap().get(\"message_id\").value()));\n Gson gson = new Gson();\n String mySQLtoSHA = AES.decrypt(message.getMessage(), secret);\n message.setMessage(AES.decrypt(mySQLtoSHA, secret));\n toReturn = gson.toJson(message.getMessage());\n\n System.out.println(\"Message has been selected\");\n response.type(\"application/json\");\n response.status(200);\n } catch (Exception ex) {\n System.err.println(ex.toString());\n response.status(400);\n }\n return toReturn;\n }", "title": "" }, { "docid": "20009f5842a1d6e1401ff80c9c58b184", "score": "0.42535517", "text": "private void processSelectedOption(int r11) {\n /*\n r10 = this;\n org.telegram.messenger.MessageObject r0 = r10.selectedObject\n if (r0 != 0) goto L_0x0005\n return\n L_0x0005:\n r1 = 500(0x1f4, float:7.0E-43)\n r2 = 4\n r3 = 3\n r4 = 28\n r5 = 23\n java.lang.String r6 = \"android.permission.WRITE_EXTERNAL_STORAGE\"\n r7 = 0\n r8 = 1\n r9 = 0\n switch(r11) {\n case 3: goto L_0x0399;\n case 4: goto L_0x0334;\n case 5: goto L_0x021f;\n case 6: goto L_0x0194;\n case 7: goto L_0x013d;\n case 8: goto L_0x0015;\n case 9: goto L_0x0125;\n case 10: goto L_0x0099;\n case 11: goto L_0x0088;\n case 12: goto L_0x0015;\n case 13: goto L_0x0015;\n case 14: goto L_0x0015;\n case 15: goto L_0x005a;\n case 16: goto L_0x004f;\n case 17: goto L_0x0017;\n default: goto L_0x0015;\n }\n L_0x0015:\n goto L_0x03a0\n L_0x0017:\n android.content.Intent r0 = new android.content.Intent // Catch:{ Exception -> 0x0049 }\n java.lang.String r2 = \"android.intent.action.DIAL\"\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0049 }\n r3.<init>() // Catch:{ Exception -> 0x0049 }\n java.lang.String r4 = \"tel:\"\n r3.append(r4) // Catch:{ Exception -> 0x0049 }\n org.telegram.messenger.MessageObject r4 = r10.selectedObject // Catch:{ Exception -> 0x0049 }\n org.telegram.tgnet.TLRPC$Message r4 = r4.messageOwner // Catch:{ Exception -> 0x0049 }\n org.telegram.tgnet.TLRPC$MessageMedia r4 = r4.media // Catch:{ Exception -> 0x0049 }\n java.lang.String r4 = r4.phone_number // Catch:{ Exception -> 0x0049 }\n r3.append(r4) // Catch:{ Exception -> 0x0049 }\n java.lang.String r3 = r3.toString() // Catch:{ Exception -> 0x0049 }\n android.net.Uri r3 = android.net.Uri.parse(r3) // Catch:{ Exception -> 0x0049 }\n r0.<init>(r2, r3) // Catch:{ Exception -> 0x0049 }\n r2 = 268435456(0x10000000, float:2.5243549E-29)\n r0.addFlags(r2) // Catch:{ Exception -> 0x0049 }\n android.app.Activity r2 = r10.getParentActivity() // Catch:{ Exception -> 0x0049 }\n r2.startActivityForResult(r0, r1) // Catch:{ Exception -> 0x0049 }\n goto L_0x03a0\n L_0x0049:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x03a0\n L_0x004f:\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n org.telegram.tgnet.TLRPC$MessageMedia r0 = r0.media\n java.lang.String r0 = r0.phone_number\n org.telegram.messenger.AndroidUtilities.addToClipboard(r0)\n goto L_0x03a0\n L_0x005a:\n android.os.Bundle r0 = new android.os.Bundle\n r0.<init>()\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r1 = r1.messageOwner\n org.telegram.tgnet.TLRPC$MessageMedia r1 = r1.media\n long r1 = r1.user_id\n java.lang.String r3 = \"user_id\"\n r0.putLong(r3, r1)\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r1 = r1.messageOwner\n org.telegram.tgnet.TLRPC$MessageMedia r1 = r1.media\n java.lang.String r1 = r1.phone_number\n java.lang.String r2 = \"phone\"\n r0.putString(r2, r1)\n java.lang.String r1 = \"addContact\"\n r0.putBoolean(r1, r8)\n org.telegram.ui.ContactAddActivity r1 = new org.telegram.ui.ContactAddActivity\n r1.<init>(r0)\n r10.presentFragment(r1)\n goto L_0x03a0\n L_0x0088:\n org.telegram.tgnet.TLRPC$Document r0 = r0.getDocument()\n int r1 = r10.currentAccount\n org.telegram.messenger.MessagesController r1 = org.telegram.messenger.MessagesController.getInstance(r1)\n org.telegram.messenger.MessageObject r2 = r10.selectedObject\n r1.saveGif(r2, r0)\n goto L_0x03a0\n L_0x0099:\n int r0 = android.os.Build.VERSION.SDK_INT\n if (r0 < r5) goto L_0x00bb\n if (r0 <= r4) goto L_0x00a3\n boolean r0 = org.telegram.messenger.BuildVars.NO_SCOPED_STORAGE\n if (r0 == 0) goto L_0x00bb\n L_0x00a3:\n android.app.Activity r0 = r10.getParentActivity()\n int r0 = r0.checkSelfPermission(r6)\n if (r0 == 0) goto L_0x00bb\n android.app.Activity r0 = r10.getParentActivity()\n java.lang.String[] r1 = new java.lang.String[r8]\n r1[r7] = r6\n r0.requestPermissions(r1, r2)\n r10.selectedObject = r9\n return\n L_0x00bb:\n org.telegram.messenger.MessageObject r0 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Document r0 = r0.getDocument()\n java.lang.String r0 = org.telegram.messenger.FileLoader.getDocumentFileName(r0)\n boolean r1 = android.text.TextUtils.isEmpty(r0)\n if (r1 == 0) goto L_0x00d1\n org.telegram.messenger.MessageObject r0 = r10.selectedObject\n java.lang.String r0 = r0.getFileName()\n L_0x00d1:\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r1 = r1.messageOwner\n java.lang.String r1 = r1.attachPath\n if (r1 == 0) goto L_0x00eb\n int r2 = r1.length()\n if (r2 <= 0) goto L_0x00eb\n java.io.File r2 = new java.io.File\n r2.<init>(r1)\n boolean r2 = r2.exists()\n if (r2 != 0) goto L_0x00eb\n r1 = r9\n L_0x00eb:\n if (r1 == 0) goto L_0x00f3\n int r2 = r1.length()\n if (r2 != 0) goto L_0x00ff\n L_0x00f3:\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r1 = r1.messageOwner\n java.io.File r1 = org.telegram.messenger.FileLoader.getPathToMessage(r1)\n java.lang.String r1 = r1.toString()\n L_0x00ff:\n android.app.Activity r2 = r10.getParentActivity()\n org.telegram.messenger.MessageObject r4 = r10.selectedObject\n boolean r4 = r4.isMusic()\n if (r4 == 0) goto L_0x010c\n goto L_0x010d\n L_0x010c:\n r3 = 2\n L_0x010d:\n org.telegram.messenger.MessageObject r4 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Document r4 = r4.getDocument()\n if (r4 == 0) goto L_0x011e\n org.telegram.messenger.MessageObject r4 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Document r4 = r4.getDocument()\n java.lang.String r4 = r4.mime_type\n goto L_0x0120\n L_0x011e:\n java.lang.String r4 = \"\"\n L_0x0120:\n org.telegram.messenger.MediaController.saveFile(r1, r2, r3, r0, r4)\n goto L_0x03a0\n L_0x0125:\n org.telegram.ui.Components.StickersAlert r0 = new org.telegram.ui.Components.StickersAlert\n android.app.Activity r2 = r10.getParentActivity()\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$InputStickerSet r4 = r1.getInputStickerSet()\n r5 = 0\n r6 = 0\n r1 = r0\n r3 = r10\n r1.<init>((android.content.Context) r2, (org.telegram.ui.ActionBar.BaseFragment) r3, (org.telegram.tgnet.TLRPC$InputStickerSet) r4, (org.telegram.tgnet.TLRPC$TL_messages_stickerSet) r5, (org.telegram.ui.Components.StickersAlert.StickersAlertDelegate) r6)\n r10.showDialog(r0)\n goto L_0x03a0\n L_0x013d:\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.lang.String r0 = r0.attachPath\n if (r0 == 0) goto L_0x0155\n int r1 = r0.length()\n if (r1 <= 0) goto L_0x0155\n java.io.File r1 = new java.io.File\n r1.<init>(r0)\n boolean r1 = r1.exists()\n if (r1 != 0) goto L_0x0155\n r0 = r9\n L_0x0155:\n if (r0 == 0) goto L_0x015d\n int r1 = r0.length()\n if (r1 != 0) goto L_0x0169\n L_0x015d:\n org.telegram.messenger.MessageObject r0 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToMessage(r0)\n java.lang.String r0 = r0.toString()\n L_0x0169:\n int r1 = android.os.Build.VERSION.SDK_INT\n if (r1 < r5) goto L_0x018b\n if (r1 <= r4) goto L_0x0173\n boolean r1 = org.telegram.messenger.BuildVars.NO_SCOPED_STORAGE\n if (r1 == 0) goto L_0x018b\n L_0x0173:\n android.app.Activity r1 = r10.getParentActivity()\n int r1 = r1.checkSelfPermission(r6)\n if (r1 == 0) goto L_0x018b\n android.app.Activity r0 = r10.getParentActivity()\n java.lang.String[] r1 = new java.lang.String[r8]\n r1[r7] = r6\n r0.requestPermissions(r1, r2)\n r10.selectedObject = r9\n return\n L_0x018b:\n android.app.Activity r1 = r10.getParentActivity()\n org.telegram.messenger.MediaController.saveFile(r0, r1, r7, r9, r9)\n goto L_0x03a0\n L_0x0194:\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.lang.String r0 = r0.attachPath\n if (r0 == 0) goto L_0x01ac\n int r2 = r0.length()\n if (r2 <= 0) goto L_0x01ac\n java.io.File r2 = new java.io.File\n r2.<init>(r0)\n boolean r2 = r2.exists()\n if (r2 != 0) goto L_0x01ac\n r0 = r9\n L_0x01ac:\n if (r0 == 0) goto L_0x01b4\n int r2 = r0.length()\n if (r2 != 0) goto L_0x01c0\n L_0x01b4:\n org.telegram.messenger.MessageObject r0 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToMessage(r0)\n java.lang.String r0 = r0.toString()\n L_0x01c0:\n android.content.Intent r2 = new android.content.Intent\n java.lang.String r3 = \"android.intent.action.SEND\"\n r2.<init>(r3)\n org.telegram.messenger.MessageObject r3 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Document r3 = r3.getDocument()\n java.lang.String r3 = r3.mime_type\n r2.setType(r3)\n int r3 = android.os.Build.VERSION.SDK_INT\n r4 = 24\n java.lang.String r5 = \"android.intent.extra.STREAM\"\n if (r3 < r4) goto L_0x01fd\n android.app.Activity r3 = r10.getParentActivity() // Catch:{ Exception -> 0x01f0 }\n java.lang.String r4 = \"org.telegram.messenger.beta.provider\"\n java.io.File r6 = new java.io.File // Catch:{ Exception -> 0x01f0 }\n r6.<init>(r0) // Catch:{ Exception -> 0x01f0 }\n android.net.Uri r3 = androidx.core.content.FileProvider.getUriForFile(r3, r4, r6) // Catch:{ Exception -> 0x01f0 }\n r2.putExtra(r5, r3) // Catch:{ Exception -> 0x01f0 }\n r2.setFlags(r8) // Catch:{ Exception -> 0x01f0 }\n goto L_0x0209\n L_0x01f0:\n java.io.File r3 = new java.io.File\n r3.<init>(r0)\n android.net.Uri r0 = android.net.Uri.fromFile(r3)\n r2.putExtra(r5, r0)\n goto L_0x0209\n L_0x01fd:\n java.io.File r3 = new java.io.File\n r3.<init>(r0)\n android.net.Uri r0 = android.net.Uri.fromFile(r3)\n r2.putExtra(r5, r0)\n L_0x0209:\n android.app.Activity r0 = r10.getParentActivity()\n r3 = 2131627669(0x7f0e0e95, float:1.8882609E38)\n java.lang.String r4 = \"ShareFile\"\n java.lang.String r3 = org.telegram.messenger.LocaleController.getString(r4, r3)\n android.content.Intent r2 = android.content.Intent.createChooser(r2, r3)\n r0.startActivityForResult(r2, r1)\n goto L_0x03a0\n L_0x021f:\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.lang.String r0 = r0.attachPath\n if (r0 == 0) goto L_0x023d\n int r0 = r0.length()\n if (r0 == 0) goto L_0x023d\n java.io.File r0 = new java.io.File\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r1 = r1.messageOwner\n java.lang.String r1 = r1.attachPath\n r0.<init>(r1)\n boolean r1 = r0.exists()\n if (r1 == 0) goto L_0x023d\n goto L_0x023e\n L_0x023d:\n r0 = r9\n L_0x023e:\n if (r0 != 0) goto L_0x024f\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r1 = r1.messageOwner\n java.io.File r1 = org.telegram.messenger.FileLoader.getPathToMessage(r1)\n boolean r2 = r1.exists()\n if (r2 == 0) goto L_0x024f\n r0 = r1\n L_0x024f:\n if (r0 == 0) goto L_0x03a0\n java.lang.String r1 = r0.getName()\n java.lang.String r1 = r1.toLowerCase()\n java.lang.String r2 = \"attheme\"\n boolean r1 = r1.endsWith(r2)\n r2 = 2131626651(0x7f0e0a9b, float:1.8880544E38)\n java.lang.String r3 = \"OK\"\n r4 = 2131624288(0x7f0e0160, float:1.8875751E38)\n java.lang.String r5 = \"AppName\"\n if (r1 == 0) goto L_0x02ea\n androidx.recyclerview.widget.LinearLayoutManager r1 = r10.chatLayoutManager\n r6 = -1\n if (r1 == 0) goto L_0x029d\n int r1 = r1.findLastVisibleItemPosition()\n androidx.recyclerview.widget.LinearLayoutManager r7 = r10.chatLayoutManager\n int r7 = r7.getItemCount()\n int r7 = r7 - r8\n if (r1 >= r7) goto L_0x029b\n androidx.recyclerview.widget.LinearLayoutManager r1 = r10.chatLayoutManager\n int r1 = r1.findFirstVisibleItemPosition()\n r10.scrollToPositionOnRecreate = r1\n org.telegram.ui.Components.RecyclerListView r7 = r10.chatListView\n androidx.recyclerview.widget.RecyclerView$ViewHolder r1 = r7.findViewHolderForAdapterPosition(r1)\n org.telegram.ui.Components.RecyclerListView$Holder r1 = (org.telegram.ui.Components.RecyclerListView.Holder) r1\n if (r1 == 0) goto L_0x0298\n android.view.View r1 = r1.itemView\n int r1 = r1.getTop()\n r10.scrollToOffsetOnRecreate = r1\n goto L_0x029d\n L_0x0298:\n r10.scrollToPositionOnRecreate = r6\n goto L_0x029d\n L_0x029b:\n r10.scrollToPositionOnRecreate = r6\n L_0x029d:\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n java.lang.String r1 = r1.getDocumentName()\n org.telegram.ui.ActionBar.Theme$ThemeInfo r0 = org.telegram.ui.ActionBar.Theme.applyThemeFile(r0, r1, r9, r8)\n if (r0 == 0) goto L_0x02b3\n org.telegram.ui.ThemePreviewActivity r1 = new org.telegram.ui.ThemePreviewActivity\n r1.<init>(r0)\n r10.presentFragment(r1)\n goto L_0x03a0\n L_0x02b3:\n r10.scrollToPositionOnRecreate = r6\n android.app.Activity r0 = r10.getParentActivity()\n if (r0 != 0) goto L_0x02be\n r10.selectedObject = r9\n return\n L_0x02be:\n org.telegram.ui.ActionBar.AlertDialog$Builder r0 = new org.telegram.ui.ActionBar.AlertDialog$Builder\n android.app.Activity r1 = r10.getParentActivity()\n r0.<init>((android.content.Context) r1)\n java.lang.String r1 = org.telegram.messenger.LocaleController.getString(r5, r4)\n r0.setTitle(r1)\n r1 = 2131625926(0x7f0e07c6, float:1.8879074E38)\n java.lang.String r4 = \"IncorrectTheme\"\n java.lang.String r1 = org.telegram.messenger.LocaleController.getString(r4, r1)\n r0.setMessage(r1)\n java.lang.String r1 = org.telegram.messenger.LocaleController.getString(r3, r2)\n r0.setPositiveButton(r1, r9)\n org.telegram.ui.ActionBar.AlertDialog r0 = r0.create()\n r10.showDialog(r0)\n goto L_0x03a0\n L_0x02ea:\n org.telegram.messenger.LocaleController r1 = org.telegram.messenger.LocaleController.getInstance()\n int r6 = r10.currentAccount\n boolean r0 = r1.applyLanguageFile(r0, r6)\n if (r0 == 0) goto L_0x0300\n org.telegram.ui.LanguageSelectActivity r0 = new org.telegram.ui.LanguageSelectActivity\n r0.<init>()\n r10.presentFragment(r0)\n goto L_0x03a0\n L_0x0300:\n android.app.Activity r0 = r10.getParentActivity()\n if (r0 != 0) goto L_0x0309\n r10.selectedObject = r9\n return\n L_0x0309:\n org.telegram.ui.ActionBar.AlertDialog$Builder r0 = new org.telegram.ui.ActionBar.AlertDialog$Builder\n android.app.Activity r1 = r10.getParentActivity()\n r0.<init>((android.content.Context) r1)\n java.lang.String r1 = org.telegram.messenger.LocaleController.getString(r5, r4)\n r0.setTitle(r1)\n r1 = 2131625925(0x7f0e07c5, float:1.8879072E38)\n java.lang.String r4 = \"IncorrectLocalization\"\n java.lang.String r1 = org.telegram.messenger.LocaleController.getString(r4, r1)\n r0.setMessage(r1)\n java.lang.String r1 = org.telegram.messenger.LocaleController.getString(r3, r2)\n r0.setPositiveButton(r1, r9)\n org.telegram.ui.ActionBar.AlertDialog r0 = r0.create()\n r10.showDialog(r0)\n goto L_0x03a0\n L_0x0334:\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.lang.String r0 = r0.attachPath\n if (r0 == 0) goto L_0x034c\n int r1 = r0.length()\n if (r1 <= 0) goto L_0x034c\n java.io.File r1 = new java.io.File\n r1.<init>(r0)\n boolean r1 = r1.exists()\n if (r1 != 0) goto L_0x034c\n r0 = r9\n L_0x034c:\n if (r0 == 0) goto L_0x0354\n int r1 = r0.length()\n if (r1 != 0) goto L_0x0360\n L_0x0354:\n org.telegram.messenger.MessageObject r0 = r10.selectedObject\n org.telegram.tgnet.TLRPC$Message r0 = r0.messageOwner\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToMessage(r0)\n java.lang.String r0 = r0.toString()\n L_0x0360:\n org.telegram.messenger.MessageObject r1 = r10.selectedObject\n int r1 = r1.type\n if (r1 == r3) goto L_0x0368\n if (r1 != r8) goto L_0x03a0\n L_0x0368:\n int r1 = android.os.Build.VERSION.SDK_INT\n if (r1 < r5) goto L_0x038a\n if (r1 <= r4) goto L_0x0372\n boolean r1 = org.telegram.messenger.BuildVars.NO_SCOPED_STORAGE\n if (r1 == 0) goto L_0x038a\n L_0x0372:\n android.app.Activity r1 = r10.getParentActivity()\n int r1 = r1.checkSelfPermission(r6)\n if (r1 == 0) goto L_0x038a\n android.app.Activity r0 = r10.getParentActivity()\n java.lang.String[] r1 = new java.lang.String[r8]\n r1[r7] = r6\n r0.requestPermissions(r1, r2)\n r10.selectedObject = r9\n return\n L_0x038a:\n android.app.Activity r1 = r10.getParentActivity()\n org.telegram.messenger.MessageObject r2 = r10.selectedObject\n int r2 = r2.type\n if (r2 != r3) goto L_0x0395\n r7 = 1\n L_0x0395:\n org.telegram.messenger.MediaController.saveFile(r0, r1, r7, r9, r9)\n goto L_0x03a0\n L_0x0399:\n java.lang.String r0 = r10.getMessageContent(r0, r7, r8)\n org.telegram.messenger.AndroidUtilities.addToClipboard(r0)\n L_0x03a0:\n r10.selectedObject = r9\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.ChannelAdminLogActivity.processSelectedOption(int):void\");\n }", "title": "" }, { "docid": "8b176e2abd5aa8a8f27316be25137c11", "score": "0.42481074", "text": "private void m12434a(Bundle bundle) {\n this.f8772n.setText((CharSequence) bundle.getStringArrayList(\"results_recognition\").get(0));\n this.aa.performClick();\n }", "title": "" }, { "docid": "16bd6a03944dca07c17ee1f21b5bcce5", "score": "0.42474872", "text": "public String getSelected()\n\n {\n\n return (String)options.get(selected);\n\n }", "title": "" }, { "docid": "53b52630707f6b1a8998e6d21fda630b", "score": "0.4244902", "text": "@Override\n public void onClick(View v) {\n if(activitySpin.getSelectedItem()==null){\n Toast.makeText(getApplicationContext(),\"No Activity Selected\",Toast.LENGTH_LONG).show();\n return;\n }\n if(locationSpin.getSelectedItem()==null){\n Toast.makeText(getApplicationContext(),\"No Location Selected\",Toast.LENGTH_LONG).show();\n return;\n }\n\n karSelected = (KnownActivitiesRecord) activitySpin.getSelectedItem();\n klrSelected = (KnownLocationsRecord) locationSpin.getSelectedItem();\n\n\n ActivityRecord aR = new ActivityRecord(klrSelected.get_id(),karSelected.get_id(),p.getDate(),p.getStartTime(),p.getStopTime());\n\n db.addActivity(aR);\n\n Intent i = new Intent();\n setResult(RESULT_OK,i);\n finish();\n\n }", "title": "" }, { "docid": "47836f9dbeeb516f3d9e4d4dd80d66bd", "score": "0.424256", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n LimiteDeCuadrasOPC = optionsList.get(which);\n\n Log.d(\"currentItem\", LimiteDeCuadrasOPC);\n // Notify the current action\n //Toast.makeText(thisContext,LimiteDeCuadrasOPC, Toast.LENGTH_SHORT).show();\n\n }", "title": "" }, { "docid": "1ca7de7bd10434d5a99ec88f2a5812f6", "score": "0.42372385", "text": "@Override\n public void onClick(View arg0) {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"video/*\");\n\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Video\"), PICK_IMAGE );\n dialog1.dismiss();\n\n }", "title": "" }, { "docid": "89956a69342b1005f20daf446712815d", "score": "0.42355886", "text": "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\r\n\t\t\t\tasty=adtype[arg2].toString();\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "6bd50430515ca20f9dc7643bf641d1da", "score": "0.42336276", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\tif(btnManager.toggleClickedChoiceButton()) {\r\n\t\t\tbtnManager.setAnswer(((Button) v).getText().toString());\r\n\t\t\tv.setVisibility(View.INVISIBLE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "97627a429907b31388f87fe101474574", "score": "0.42329782", "text": "public void select() {\r\n\t\tGUI.selection = this;\r\n\t}", "title": "" }, { "docid": "7f5c5622b226c33c3f49a0670e11125c", "score": "0.42300922", "text": "Aactivity selectByPrimaryKey(Long id);", "title": "" }, { "docid": "d0aa4b1c9e106242351b30966cf904e5", "score": "0.42237154", "text": "List<Activityserve> selectByExample(ActivityserveExample example);", "title": "" }, { "docid": "f53b04b7b4324be13453e38208467a86", "score": "0.4218877", "text": "@Override\n public void onClick(View v) {\n if (existingCaretaker != null) {\n switch (caretakerRecordType) {\n case \"S\":\n case \"US\":\n caretakerRecordType = \"US\";\n mode = \"US\";\n break;\n case \"D\":\n case \"UD\":\n caretakerRecordType = \"UD\";\n mode = \"UD\";\n break;\n }\n }\n\n switch (animalRecordType){\n case \"S\":case \"US\":\n animalRecordType = \"US\";\n mode = \"US\";\n break;\n case\"D\":case\"UD\":\n animalRecordType = \"UD\";\n mode = \"UD\";\n break;\n }\n\n setTitle(\"ANIMAL RECORD\");\n refreshLayout();\n }", "title": "" }, { "docid": "c613df6bc3b90acb77d69bf10dedd8e4", "score": "0.42181036", "text": "public void onClick(View v) {\n final TextView bloodtxt = (TextView) findViewById(R.id.bloodType);\n final ArrayAdapter<String> bloodTypeAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, bloodTypes);\n bloodSelect = new AlertDialog.Builder(MainActivity.this);\n bloodSelect.setTitle(\"Select Blood type: \");\n bloodSelect.setNegativeButton(\n \"cancel\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n bloodSelect.setAdapter(\n bloodTypeAdapter,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n bloodtxt.setText(bloodTypeAdapter.getItem(which));\n }\n });\n bloodSelect.show();\n }", "title": "" }, { "docid": "0ec1ac4ad7ca4189ad78b542164cfc87", "score": "0.42074996", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()){\n\t\tcase R.id.buttonNextQuest:\n\t\t\t\n\t\t\tstrRes[0] = et1.getText().toString();\n\t\t\tstrRes[1] = et2.getText().toString();\n\t\t\tstrRes[2] = et3.getText().toString();\n\t\t\tstrRes[3] = et4.getText().toString();\n\t\t\t\n\t\t\t\n\t\t\tIntent i1 = new Intent(DiagnozInputs.this,SaveResultActivity.class);\n\t\t\ti1.putExtra(\"answers\", answ);\n\t\t\ti1.putExtra(\"inpansw\", strRes);\n\t\t\tstartActivity(i1);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" } ]
c6636f1f437be4b1e2f7ea76114a22e0
Sets the maximum number of digits for xsd:integer validation. To pass validation, a xsd:integer must have this many digits or fewer. Leading zeros are not counted.
[ { "docid": "05870edf73b3bd57c775ea57f0d7a078", "score": "0.5151177", "text": "public void setTotalDigits(final int totalDig) {\n if (totalDig <= 0) {\n throw new IllegalArgumentException(\n \"IntegerValidator: the totalDigits facet must be positive\");\n }\n _totalDigits = totalDig;\n }", "title": "" } ]
[ { "docid": "dd67ca058a9a53f0fd5bb48ac4835d34", "score": "0.73337215", "text": "public void setMaximumIntegerDigits(int maximumIntegerDigits){\n\t\tformat.setMaximumIntegerDigits(maximumIntegerDigits);\n\t}", "title": "" }, { "docid": "49d83e7e18269e49e4b54994f926bc89", "score": "0.6937532", "text": "public int getMaximumIntegerDigits(){\n\t\treturn format.getMaximumIntegerDigits();\n\t}", "title": "" }, { "docid": "bf9b0123388cc622e8765b7db2a9c302", "score": "0.60456616", "text": "public int getMinimumIntegerDigits(){\n\t\treturn format.getMinimumIntegerDigits();\n\t}", "title": "" }, { "docid": "4f34a3d7a467cb1daebad5f85229b1b3", "score": "0.5935949", "text": "public void setMinimumIntegerDigits(int minimumIntegerDigits){\n\t\tformat.setMinimumIntegerDigits(minimumIntegerDigits);\n\t}", "title": "" }, { "docid": "42d5918473b4316e177e6625a8ba039d", "score": "0.59226674", "text": "public void setMaxLength(int maxLength) {\n this.maxLength = maxLength;\n }", "title": "" }, { "docid": "42d5918473b4316e177e6625a8ba039d", "score": "0.59226674", "text": "public void setMaxLength(int maxLength) {\n this.maxLength = maxLength;\n }", "title": "" }, { "docid": "13f10665bfe1269660d053f26c3bf08b", "score": "0.58887106", "text": "public void setMaximalCount(int max) {\n maximalCount = max;\n }", "title": "" }, { "docid": "3ed30dcfd462ac36215c6f3c2f5856e9", "score": "0.58785594", "text": "void xsetMaximumOccurs(org.apache.xmlbeans.XmlPositiveInteger maximumOccurs);", "title": "" }, { "docid": "23ef4f1caccef8af1ae1fb3f145d0092", "score": "0.5870514", "text": "public void setMaxLength(int maxLength) {\r\n\t\t\tthis.maxLength = maxLength;\r\n\t\t}", "title": "" }, { "docid": "5c2154d3b544c9fd7ceadc3737f00dee", "score": "0.58319694", "text": "public void setMax(int max) {\n this.max = max;\n }", "title": "" }, { "docid": "ad07fda412ce5bde65dd58da90bc82f8", "score": "0.57701087", "text": "public void setMaxLength(int maxLength);", "title": "" }, { "docid": "ad07fda412ce5bde65dd58da90bc82f8", "score": "0.57701087", "text": "public void setMaxLength(int maxLength);", "title": "" }, { "docid": "2f365eaf1cd16ab72a16e1b41f9576f1", "score": "0.5718201", "text": "public void setSizeLimit(int value) {\r\n this.sizeLimit = value;\r\n }", "title": "" }, { "docid": "5aca186c5f3df616a11583c5efa8ac7b", "score": "0.5705249", "text": "public void setMaxSize(int maxSize) {\n this.maxSize = maxSize;\n }", "title": "" }, { "docid": "84037099d72d851a6fe923bb3b973f68", "score": "0.5704339", "text": "@Override\r\n\tpublic void setNumberDigits(int arg0) throws NotesApiException {\n\r\n\t}", "title": "" }, { "docid": "e73d518277867fa621645eff4059ea77", "score": "0.5689358", "text": "public LimitLengthDocument(int maxChars) {\n this.maxChars = maxChars;\n }", "title": "" }, { "docid": "12391e0c06b2b7e1a8fbfda414002629", "score": "0.5669909", "text": "void setMaximumOccurs(java.math.BigInteger maximumOccurs);", "title": "" }, { "docid": "f22a862af5fd92863929ff24f964f158", "score": "0.56462944", "text": "public void setMaxInclusive(final int maxValue) {\n _useMax = true;\n _max = maxValue;\n }", "title": "" }, { "docid": "30bcaa535386af4193c9553c3b3da17f", "score": "0.55793947", "text": "public static void setMaxNumIterations(int iterations) {\n if (iterations <= 0) {\n throw new IllegalArgumentException(\"The number of iterations must be > 0, recommended at least 100.\");\n }\n maxNumIterations = iterations;\n }", "title": "" }, { "docid": "c019c461285be6d7cc134df29c911ac2", "score": "0.55695796", "text": "@Override\n public void setMaximumSize(int maxSize) {\n }", "title": "" }, { "docid": "96138a963ea40029d44fa916ee2e1f8a", "score": "0.55645055", "text": "public Builder setMaxAmount(int value) {\n \n maxAmount_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "280d3115519933b88f3bb4a31770b263", "score": "0.55576265", "text": "public void setMaxLength(int maxlength)\n {\n this.maxlength = maxlength;\n }", "title": "" }, { "docid": "e1b9a262cd16628646a0536378301213", "score": "0.5545935", "text": "public void setMaxValue(int max) {\r\n\t\tthis.maxValue = max;\r\n\t}", "title": "" }, { "docid": "3f69614f37d1678e71d30ffcc9c357b1", "score": "0.5537528", "text": "public void setNbmaximum(Number value)\r\n {\r\n setAttributeInternal(NBMAXIMUM, value);\r\n }", "title": "" }, { "docid": "e3ad5d59f47a39e70d5d13c934517b16", "score": "0.55140376", "text": "public void setMaxValue(int value) {\n\t\tthis.maxValue = value;\r\n\t}", "title": "" }, { "docid": "7180a8d06c0976b2a32f56803393e353", "score": "0.5508128", "text": "public void setMaxNumber(BigDecimal maxNumber) {\r\n this.maxNumber = maxNumber;\r\n }", "title": "" }, { "docid": "31f783d2c89c49b6b35f6eab470509a3", "score": "0.5507319", "text": "public void setTextMaxLength(Integer maxLength) {\n textMaxLength = maxLength;\n }", "title": "" }, { "docid": "1d8cd2e9e156d4281087e5bbfaaf48d3", "score": "0.54937094", "text": "@Test\n\tpublic void testValidateIntegerField() {\n\t\tnumberBean.setIntegerField(4);\n\t\tLOGGER.info(\"integer field value -> \" + numberBean.getIntegerField());\n\t\tnumberBean.clearErrors().validate();\n\t\tassertTrue(\"The integer field value should be greater than the minimum\", numberBean.hasError());\n\t\tnumberBean.setIntegerField(6);\n\t\tnumberBean.clearErrors().validate();\n\t\tassertFalse(\"The integer field value is greater than the minimum\", numberBean.hasError());\n\t}", "title": "" }, { "docid": "695e6836c66093839e53c41cc4581c27", "score": "0.5491653", "text": "public boolean setMax(int max) //these \r\n\t{\t\r\n\t\tif(max == 1000)\r\n\t\t{\r\n\t\t\tthis.maximum = max;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "42e6e1757985b0eebc218bbfdd856bc5", "score": "0.5474668", "text": "private void setIterationLimit()\n {\n String temp = null;\n temp = JOptionPane.showInputDialog(this, \"Set Iteration Limit:\",\n \"Iteration Limit\", JOptionPane.PLAIN_MESSAGE);\n\n try\n {\n this.iterationLimit = Integer.parseInt(temp);\n }\n catch(Exception e)\n {\n this.iterationLimit = 0;\n }\n if(this.iterationLimit < 0 || this.iterationLimit > 10000)\n {\n this.iterationLimit = 0;\n }\n }", "title": "" }, { "docid": "647ad927455c5c1cb9f24256dae75cc5", "score": "0.5445568", "text": "public static String formatIntegerDigits(int data, int maxIntegerDigits, int minIntegerDigits) {\n //Instantiate NumberFormat Integer\n NumberFormat numberFormat = NumberFormat.getNumberInstance();\n numberFormat.setMaximumIntegerDigits(maxIntegerDigits);\n numberFormat.setMinimumIntegerDigits(minIntegerDigits);\n\n return (numberFormat.format(data));\n }", "title": "" }, { "docid": "10ddf176ea49c52b1deeea95fb5413e8", "score": "0.54326236", "text": "public void setMax(int max)\n {\n map.put(\"max:\", max);\n }", "title": "" }, { "docid": "812e5028307f6ae471fad69791ce3dd6", "score": "0.5388621", "text": "public Builder setMaxMemberCount(int value) {\n \n maxMemberCount_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "67f513f60a59bf0d31c9e3ac8ade1622", "score": "0.538834", "text": "public void setPeriodMaxAmount(int value) {\n this.periodMaxAmount = value;\n }", "title": "" }, { "docid": "beb4a37f4f413724bf84cc549ac74625", "score": "0.53850156", "text": "public static int getMaxSize(){\n\t\treturn NUM_INTS * 4;\n\t}", "title": "" }, { "docid": "7d39294b851ce5c13e7323ff29ad5aca", "score": "0.53789586", "text": "public void setMaxValue(int maxValue) {\n this.maxValue = maxValue;\n }", "title": "" }, { "docid": "7d39294b851ce5c13e7323ff29ad5aca", "score": "0.53789586", "text": "public void setMaxValue(int maxValue) {\n this.maxValue = maxValue;\n }", "title": "" }, { "docid": "713311fad6c921218c96675a36e95a6c", "score": "0.537556", "text": "public int getMaxLength() {\r\n\t\t\treturn maxLength;\r\n\t\t}", "title": "" }, { "docid": "a716e89115fbf384ad1853a3460c8c88", "score": "0.534832", "text": "public void setMaxNumOfAttendees(int maxNumOfAttendees) {\r\n\t\tthis.maxNumOfAttendees = maxNumOfAttendees;\r\n\t}", "title": "" }, { "docid": "83f4407ccb838dbe02e99d290a5a8aa4", "score": "0.53426933", "text": "public Builder setMax(long value) {\n \n max_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9625ddd106f4cdd773f25fb5972dbb51", "score": "0.5332337", "text": "public void setLimit(int limit)\n {\n if (limit == 0)\n {\n mLimit = Integer.MAX_VALUE;\n }\n else\n {\n mLimit = limit;\n }\n }", "title": "" }, { "docid": "2ef132f5f2c12550d2cacf75aa98eff1", "score": "0.5318044", "text": "public void setI_valueMax(int i_valueMax) {\r\n\t\tthis.i_valueMax = i_valueMax;\r\n\t}", "title": "" }, { "docid": "7231b1cbecbd9643700ba568a27bfdc5", "score": "0.53168494", "text": "public Integer getLimit() {\n return maxLimit;\n }", "title": "" }, { "docid": "c30af8440f122f3304284f80949d32ed", "score": "0.53019667", "text": "public void setMaxValue(int newValue) {\n\n if (newValue < minValue) {\n throw new IllegalArgumentException(\n SensibleContext.getMessage(\"INT_ERR_INVALID_LIMIT\")); //$NON-NLS-1$\n }\n\n int oldValue = maxValue;\n maxValue = newValue;\n\n firePropertyChange(JAVA_BEAN_PROPERTY_MAX_VALUE, oldValue, maxValue);\n\n setValid(number < maxValue);\n }", "title": "" }, { "docid": "326a07fd01b15862dcf6d385d5e744bc", "score": "0.5294531", "text": "public void maxCount(int maxCount) {\n this.maxCount = maxCount;\n }", "title": "" }, { "docid": "69d079a5e17e25077ae3dd30fefd0608", "score": "0.5273438", "text": "public void setMaxlength(int maxlength) {\n this.maxlength = maxlength;\n }", "title": "" }, { "docid": "8f40675c494dc333fd11ba7ce97c4c3b", "score": "0.5260844", "text": "public void setAmountLimit(int value) {\n this.amountLimit = value;\n }", "title": "" }, { "docid": "cbd3cad11dd341a8f1b8a8663da31376", "score": "0.52601206", "text": "public int getMaxLength() {\r\n return maxLength;\r\n }", "title": "" }, { "docid": "54be41143d436eca297b3c6ae8abe5de", "score": "0.5255209", "text": "void setMaxSize(int newMaxSize);", "title": "" }, { "docid": "6bff326924e2b348f8e10a1759cb07f3", "score": "0.52514935", "text": "public int getMaxLength() {\n return maxLength;\n }", "title": "" }, { "docid": "03435c94ef6164575a3ae1da12536369", "score": "0.52500004", "text": "public Builder setMaxConnections(com.google.protobuf.Int64Value value) {\n if (maxConnectionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n maxConnections_ = value;\n onChanged();\n } else {\n maxConnectionsBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "03435c94ef6164575a3ae1da12536369", "score": "0.5248021", "text": "public Builder setMaxConnections(com.google.protobuf.Int64Value value) {\n if (maxConnectionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n maxConnections_ = value;\n onChanged();\n } else {\n maxConnectionsBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "513b3880d11103804df6c6339a20bc69", "score": "0.52188814", "text": "public void setMaxValue(Integer maxValue) {\n\t\tthis.maxValueProperty().setValue(maxValue);\n\t}", "title": "" }, { "docid": "4ff50a747b687c1e39984ed4ce98ce8f", "score": "0.52132237", "text": "public void setDailyMaxAmount(int value) {\n this.dailyMaxAmount = value;\n }", "title": "" }, { "docid": "2b6f23dfa9dbccda32308cc5bf55487e", "score": "0.5200167", "text": "public int maxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "bbe6748d0bec1c7f3f9e6768897a2b68", "score": "0.51896596", "text": "public void setIntMaximumQuantity(java.lang.Long intMaximumQuantity)\n\t{\n\t\tthis.intMaximumQuantity = intMaximumQuantity;\n\t}", "title": "" }, { "docid": "36e61e80706ac60d4d8a6da2fbde8b1a", "score": "0.5187247", "text": "public int getLimite() {\n return limite_;\n }", "title": "" }, { "docid": "55ee930b9d147bb1b3680d3791311441", "score": "0.51797783", "text": "void xsetMaxResults(org.apache.xmlbeans.XmlInt maxResults);", "title": "" }, { "docid": "99a1b09f83c6d83c438c6675438db9a2", "score": "0.5178724", "text": "public static int randomInteger(int max)\n {\n return (int) (Math.random() * (max + 1));\n\n }", "title": "" }, { "docid": "1660d68e0b107c1da01257c04aa4ae4b", "score": "0.5166834", "text": "public void setMaxNumberResponse( int nMaxNumberResponse )\n {\n _nMaxNumberResponse = nMaxNumberResponse;\n }", "title": "" }, { "docid": "1160ae868b7da134360646cc7fb87db5", "score": "0.5159457", "text": "public int getLimite() {\n return limite_;\n }", "title": "" }, { "docid": "b32e15a2d9b6d530f49756656ce21bf3", "score": "0.5156802", "text": "public void setMaxRandomNumber(int maxRandomNumber) {\n this.maxRandomNumber = maxRandomNumber;\n }", "title": "" }, { "docid": "893cdfb00eb5071b79030e69669a45e1", "score": "0.5156481", "text": "public void setMaximum(int maximum) {\r\n JavaScriptObjectHelper.setAttribute(jsObj, \"maximum\", maximum);\r\n }", "title": "" }, { "docid": "6df01ca94914a57c6b4d88289c0f7d53", "score": "0.51534057", "text": "public void setMaxInclusive(final long maxValue) {\n _useMax = true;\n _max = maxValue;\n }", "title": "" }, { "docid": "9f6adfd1739433e509b3d608c4d91db6", "score": "0.5146677", "text": "public void setIntegerValue(final int value) {\n \t\tcheckValue(\"\" + value);\n \t}", "title": "" }, { "docid": "c6a1b92cb47033b9903dff31169726e6", "score": "0.51461375", "text": "public int getMaxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "c6a1b92cb47033b9903dff31169726e6", "score": "0.51461375", "text": "public int getMaxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "13a3224c6723bba365e7319933e389f1", "score": "0.51398677", "text": "org.apache.xmlbeans.XmlPositiveInteger xgetMaximumOccurs();", "title": "" }, { "docid": "1f9b0c764c4fd5b0e2e76ae4bc282385", "score": "0.5137769", "text": "public void setMaximumFractionDigits(int maximumFractionDigitis){\n\t\tformat.setMaximumFractionDigits(maximumFractionDigitis);\n\t}", "title": "" }, { "docid": "b321c8d90cdb11fafa073729e7e48c29", "score": "0.51307416", "text": "public void setExtremeLengthBundleCount(int value) {\n this.extremeLengthBundleCount = value;\n }", "title": "" }, { "docid": "cd73edec1cd1749b42b14108d2c5ac5b", "score": "0.51284647", "text": "public void setExtremeLength(int value) {\n this.extremeLength = value;\n }", "title": "" }, { "docid": "250e64f685b57affa8f917bcad4e9ce9", "score": "0.51269215", "text": "public void xsetMaxResults(org.apache.xmlbeans.XmlInt maxResults)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(MAXRESULTS$36);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(MAXRESULTS$36);\n }\n target.set(maxResults);\n }\n }", "title": "" }, { "docid": "2012775f88fc0f40921660ecedca82ad", "score": "0.51175344", "text": "public void setMax(String max) {\n\t\tthis.max = max;\n\t}", "title": "" }, { "docid": "d377f011727d18a062e8bc8d77bfe681", "score": "0.51130515", "text": "public void setMax(String max) {\n\t\tthis.max=max;\n\t}", "title": "" }, { "docid": "a994f39695b327dd5299c69f9271755c", "score": "0.5107748", "text": "public static boolean integerWidth(MacroProps macroProps, StringBuilder sb) {\n if (macroProps.integerWidth.equals(IntegerWidth.DEFAULT)) {\n return false;\n }\n sb.append(\"integer-width/\");\n BlueprintHelpers.generateIntegerWidthOption(macroProps.integerWidth.minInt, macroProps.integerWidth.maxInt, sb);\n return true;\n }", "title": "" }, { "docid": "8eccc5fb222d1b8257edd66c85a2ba3f", "score": "0.5105923", "text": "public Builder setLimite(int value) {\n bitField0_ |= 0x00000020;\n limite_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7b88e430eb873cf9546d245c06dac9f7", "score": "0.5099209", "text": "public void setNumDigits(int i) {\r\n\t\tnumDigits = i;\r\n\t}", "title": "" }, { "docid": "600f1f64ce68f141375b748192ab27f5", "score": "0.5096512", "text": "public void setMaxX(double maxX) {\r\n this.maxX = maxX;\r\n }", "title": "" }, { "docid": "12042ebb7926615a15d2fcd887d77c98", "score": "0.50924855", "text": "public static void intDataType() {\n int max = Integer.MAX_VALUE;\n int min = Integer.MIN_VALUE;\n\n System.out.println(\"Max int: \" + max);\n System.out.println(\"Min int: \" + min);\n\n // add 1 to max\n max++;\n System.out.println(\"Max Int overflowed: \"+max);\n\n // assign a hex number (0x) to the int\n int num = 0xAFFAA23C;\n System.out.println(\"Num is \" + num);\n\n // assign an octal number (0) to the int\n num = 0721;\n System.out.println(\"Num is \" + num);\n\n // assign a binary number (0b)\n num = 0b0111000110;\n System.out.println(\"Num as Binary: \" + createBinaryString(num));\n }", "title": "" }, { "docid": "f8b35108f0ce6c7cd3bfaaa81b793397", "score": "0.5092079", "text": "public Long getMaxLength() {\n\t\treturn maxLength;\n\t}", "title": "" }, { "docid": "7670fb4c6ad1c12a0189a6061d78e589", "score": "0.5090232", "text": "public void validate(final long value, final ValidationContext context)\n throws ValidationException {\n if (_useFixed && value != _fixed) {\n String err =\n MessageFormat.format(resourceBundle.getString(\"integerValidator.error.not.fixed.value\"),\n new Object[] {\"long\", value, _fixed});\n throw new ValidationException(err);\n }\n\n if (_useMin && value < _min) {\n String err =\n MessageFormat.format(resourceBundle.getString(\"integerValidator.error.less.than.minimum\"),\n new Object[] {\"long\", value, _min});\n throw new ValidationException(err);\n }\n\n if (_useMax && value > _max) {\n String err = MessageFormat.format(\n resourceBundle.getString(\"integerValidator.error.greater.than.maximum\"),\n new Object[] {\"long\", value, _min});\n throw new ValidationException(err);\n }\n\n if (_totalDigits != -1) {\n int length = Long.toString(value).length();\n if (value < 0) {\n length--;\n }\n if (length > _totalDigits) {\n String err =\n MessageFormat.format(resourceBundle.getString(\"integerValidator.error.too.many.digits\"),\n new Object[] {\"long\", value, _totalDigits});\n throw new ValidationException(err);\n }\n }\n\n if (hasPattern()) {\n super.validate(Long.toString(value), context);\n }\n }", "title": "" }, { "docid": "6de63f7d7581077f03e41a49a7a72fe3", "score": "0.5087968", "text": "public Builder setMaxPartsInTotal(com.google.protobuf.Int64Value value) {\n if (maxPartsInTotalBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n maxPartsInTotal_ = value;\n onChanged();\n } else {\n maxPartsInTotalBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "742dfd8369d9e227279adb9f6bce0bcf", "score": "0.5084805", "text": "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "title": "" }, { "docid": "742dfd8369d9e227279adb9f6bce0bcf", "score": "0.5084805", "text": "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "title": "" }, { "docid": "742dfd8369d9e227279adb9f6bce0bcf", "score": "0.5084805", "text": "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "title": "" }, { "docid": "742dfd8369d9e227279adb9f6bce0bcf", "score": "0.5084805", "text": "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "title": "" }, { "docid": "742dfd8369d9e227279adb9f6bce0bcf", "score": "0.5084805", "text": "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "title": "" }, { "docid": "742dfd8369d9e227279adb9f6bce0bcf", "score": "0.5084805", "text": "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "title": "" }, { "docid": "a6a12993118182663dc02152e206ee34", "score": "0.5084691", "text": "public void setMaxFieldSize(int arg0) throws SQLException {\n\n }", "title": "" }, { "docid": "8ecfe48ed7548f18bfb788b2edc4271e", "score": "0.5081489", "text": "public Builder setMaxInboundMessageSize(Integer max) {\n this.maxInboundMessageSize = max;\n return this;\n }", "title": "" }, { "docid": "7c229642ea56d4beedcdd6e7dcef0ac3", "score": "0.5080843", "text": "public void setSizeLimit(int sizeLimit) {\n\t\tthis.sizeLimit = sizeLimit;\n\t}", "title": "" }, { "docid": "b1d89ac5ab8a064cbb6ae7823f4bc1fb", "score": "0.50786215", "text": "public void setMaxTotalSize(int maxTotalSize) {\n\t\tthis.maxTotalSize = maxTotalSize;\n\t}", "title": "" }, { "docid": "1458584498f81fe9daf18735ee54c666", "score": "0.5069218", "text": "public void setMaxIterations(int max_iterations) {\n if (max_iterations < 0) {\n throw new InvalidParameterException(\"max_iterations should be positive!\");\n }\n this.max_iterations = max_iterations;\n }", "title": "" }, { "docid": "fb1e37cc12cc4fa225f33235cf71d547", "score": "0.5065461", "text": "public void setMax(int value) {\r\n\t\tupdateDisable = true;\r\n\t\tmaxSpinner.setValue(new Integer(value));\r\n\t\tupdateDisable = false;\r\n\t}", "title": "" }, { "docid": "4c1ae3b8342bee0e1ae076de3ad2701e", "score": "0.5063265", "text": "public void setMax(int i) {\n super.setMax(i);\n\n if (added) {\n textWidth = Math.max(Integer.toString(min).length(), Integer.toString(max).length());\n }\n }", "title": "" }, { "docid": "f64a5f9a8c542ef167af63612033aabc", "score": "0.5062768", "text": "public void setScaledMaxVal(int val) {\r\n\t\tscaledGauge.setMaxVal(val);\r\n\t}", "title": "" }, { "docid": "0e1a0c34c3a96f0a2e775b59c95a3fc0", "score": "0.5050675", "text": "public void setMaxResults(int maxResults)\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(MAXRESULTS$36);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MAXRESULTS$36);\n }\n target.setIntValue(maxResults);\n }\n }", "title": "" }, { "docid": "9a620836ff36427ee3e2f494654418f9", "score": "0.50494117", "text": "public void setMaxSize() {\r\n\t\tthis.maxSize = list.getArrayList().size() - list.getMaxListSize() + 1;\r\n\t}", "title": "" }, { "docid": "4486f1b6d1f577eded726000fb0d68b9", "score": "0.50485957", "text": "public static int log10(BigInteger input) {\n int digits = 0;\n int bits = input.bitLength();\n while (bits > 4) {\n // 4 > log[2](10) so we should not reduce it too far.\n int reduce = bits / 4;\n // Divide by 10^reduce\n input = input.divide(BigInteger.TEN.pow(reduce));\n // Removed that many decimal digits.\n digits += reduce;\n // Recalculate bitLength\n bits = input.bitLength();\n }\n // Now 4 bits or less - add 1 if necessary.\n if ( input.intValue() > 9 ) {\n digits += 1;\n }\n return digits;\n }", "title": "" }, { "docid": "665bbe4a9008fd5b246a644393530a07", "score": "0.50468314", "text": "@Test\n public void numberRelOfferUpperLimitTest() {\n // TODO: test numberRelOfferUpperLimit\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "01cae5686e1ed81baea26b2a02b14afd", "score": "0.0", "text": "@Override\n\tpublic boolean placeOrder(String ISBN, int amount) {\n\t\tHashMap<String, String> attributes = new HashMap<>();\n\t\tattributes.put(\"ISBN\", ISBN);\n\t\tattributes.put(\"NoOfBooks\", \"\"+amount);\n\t\treturn mySqlConnection.insert_item(ORDERS_TABLE, attributes);\n\t}", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.71166533", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.67354393", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.6735088", "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": "f8d94fd3a365ff0f8b293a42b581cc33", "score": "0.65859365", "text": "@Override\r\n public void caminar() {\r\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.6529823", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b256767990570c27f4f2479e85bd7f03", "score": "0.6498308", "text": "@Override\r\n\tpublic void otkazi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2104f557428f6e269f61b8f05a73cc43", "score": "0.6486669", "text": "@Override\n\tpublic void repare() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64587504", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "0a93ae79a871bc2bb8787223c8b043a4", "score": "0.6412878", "text": "@Override\n\tpublic void interogare() {\n\t\t\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.640647", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e18c1d20c67735ba2db1c70042e02d7", "score": "0.63391787", "text": "@Override\r\n\tpublic void embalar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.6267447", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6238919", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "289f89533edfafac14fcf50ce6d1dcfb", "score": "0.6204259", "text": "@Override\n\t\t\t\t\tpublic void accionSi() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61938816", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "038aba0c2804848e5fbdbafd6a794e97", "score": "0.61907035", "text": "@Override\r\n\tpublic void genererFacture() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.6152791", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062071", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60514194", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60514194", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.6045927", "text": "protected void method_3848() {}", "title": "" }, { "docid": "63d27d2836275ed0fc981c7cfae8e737", "score": "0.60317373", "text": "@Override\n\tprotected void init(){\n\t}", "title": "" }, { "docid": "d49d17272b1c32563649e99191745398", "score": "0.6026966", "text": "@Override\n\tpublic void inchide() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60248846", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021083", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021083", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "85245b1c9026959162e61e0473f9cf29", "score": "0.5963642", "text": "@Override\n\t\t\t\t\tpublic void accionNo() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "f0512ddbeb7af0b9d9405114f8362f5d", "score": "0.59372205", "text": "private void recupererPliPrecedent() {\n\t}", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.5930973", "text": "public void mo19333b() {\n }", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.59256923", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "da5f753a7cd33da8d5581d14337c059f", "score": "0.59108573", "text": "@Override\n\tpublic void tauchen() {\n\t\t\n\t}", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.5901901", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.59017694", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfd10238a4f026fdd414282790c4920f", "score": "0.58985895", "text": "@Override\r\n\t\tprotected void initData() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.58883446", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5887092", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5887092", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5866721", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5859059", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854042", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "c5648e3463d069bbd00252aa57baecf9", "score": "0.58538914", "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.5853552", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5853552", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "2a6c59f221c7c146ab9267197b8cf257", "score": "0.5850816", "text": "@Override\n\tpublic void prnt() {\n\t\t\n\t}", "title": "" }, { "docid": "451aac44b51bc834350309c1b94be619", "score": "0.58490515", "text": "@Override\r\n\tprotected void speichereSonderwuensche() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5836968", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5822147", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.5806665", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58061814", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58061814", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58061814", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5803587", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.58023053", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.5792014", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "3138943fc1f99b10746b6218fb0522fe", "score": "0.57910216", "text": "@Override\n public int order() {\n return 1;\n }", "title": "" }, { "docid": "f93772ae3050679cb5cad45b34d90052", "score": "0.5785919", "text": "public void mo36368c() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4049f356224496e4636627d70f5c0e9a", "score": "0.57680726", "text": "@Override\n\tpublic void generateData() \n\t{\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.575944", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589364", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "3013650e7b02771c88bbeb22d93b2660", "score": "0.57579607", "text": "@Override\r\n public String toString(){\n return null;\r\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5751704", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57419837", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "5485c75c53fb64a169034dd96e00cb59", "score": "0.57358116", "text": "@Override\n public void init() { \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c8c5ebd68bae88ac49f0df82efdf5eac", "score": "0.5722423", "text": "@Override\n\tprotected void body()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5a8ab197ccef743fd48bf5cf5814c8e3", "score": "0.57152635", "text": "public void atacar(){\n\t\t\r\n\t}", "title": "" }, { "docid": "10ec55a5c701bead54e2106675e8d0e2", "score": "0.570505", "text": "@Override\n\tpublic void somma() {\n\t\t\n\t}", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.5703176", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5702263", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "cc445ddeaecb385fbe47df8b7c49ffc4", "score": "0.569983", "text": "@Override\r\n\tpublic void effectuerRemboursement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "57dab2b5051a2a184d855564327c4b1a", "score": "0.5698979", "text": "@Override\n\tpublic void init() \n\t{\n\n\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.56918156", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5691267", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4dff52b2278f26ec5d11e194ed9cf5a6", "score": "0.5689522", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "e77a68a99f5bd2a047671668b77c1854", "score": "0.5682086", "text": "@Override\n public void generate() {\n }", "title": "" }, { "docid": "2a0ef0804fb04e99e4054007df8500da", "score": "0.56785536", "text": "public void mo11098e() {\n }", "title": "" } ]
4fde1363dfcdb36614deab02ae59097b
Nothing to do here
[ { "docid": "83812b56f02075ccc1d6ffa677a0c133", "score": "0.0", "text": "@Override\n\tpublic LazyIRTree visit(syntax.IntArrayType n) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.72942156", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.65970576", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.643678", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.6435486", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.63689286", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6348472", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6348472", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.63416016", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.63415855", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.63415855", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.63415855", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.63415855", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.6316297", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.62747765", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.627128", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6229133", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.6192697", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.61738604", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.61536455", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6062084", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.6033043", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.60231304", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.60147023", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5987151", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.59619266", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5956386", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5936227", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.5932736", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5875413", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "52a71c3a8d6dc0f5cb041fcac892b129", "score": "0.58602595", "text": "@Override\n protected void processLogic() {\n\n }", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5838222", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "7a7954048e65c8aa9ee11a43e0a794c2", "score": "0.58299893", "text": "@Override\n\tpublic void disparar() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.5815397", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "752bfea872adc1769be7408330d12d8b", "score": "0.5809208", "text": "@Override\n\tpublic void arrastrarse() {\n\t\t\n\t}", "title": "" }, { "docid": "faaad9fc9b1bc2cc385a6cf312673185", "score": "0.58079326", "text": "@Override\r\n\tprotected void processLogic() {\n\r\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.58073056", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "92644eaaa7ea7c7b85ad544faee23ced", "score": "0.5805416", "text": "private void bored() {\n\t\t\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.58053535", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.5789471", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "03dc72d8eed3f7eaa7ccd376bfceee7e", "score": "0.57851595", "text": "private void intialize() {\n\t\t}", "title": "" }, { "docid": "a13b3b18f343b7cc400098f8fe8ffc80", "score": "0.57687235", "text": "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "title": "" }, { "docid": "e241b6d06c7e592973c22f997701244f", "score": "0.5746533", "text": "@Override\r\n\tpublic void apply() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57410985", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.5735834", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.57311124", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5715147", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.5710669", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cf0b5a1b503346e3559c2f8a69400439", "score": "0.5703634", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "471669022d13695bb9646a1b6851211f", "score": "0.5700927", "text": "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "title": "" }, { "docid": "af1adf614eadb1a9afa77804d2ed4e42", "score": "0.5699678", "text": "@Override\r\n\tpublic void sub() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.5699523", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "2818be68890cc0639eda1a0b298df4eb", "score": "0.5699322", "text": "private void resConntection() {\n\t\t\n\t}", "title": "" }, { "docid": "3e96e13be516f809ee3d9c051a94c53f", "score": "0.5691984", "text": "protected abstract void mo6283a();", "title": "" }, { "docid": "d8173d7daf5c980a492da0deef036eb8", "score": "0.56850123", "text": "private void customize() {\n\n\t}", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.5671961", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5669103", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.56548905", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "ad4e4eaf54120877db3653e4eb03bf54", "score": "0.564881", "text": "private void init() {\n\n\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.564525", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "f1ef39fc718bf2a95b15ec82dda063ee", "score": "0.56397796", "text": "@Override\n\tpublic void subo() {\n\t\t\n\t}", "title": "" }, { "docid": "faf0058c55116bb45ab2a6bf968ab8c7", "score": "0.563125", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "11764dc94e1a8433313fe605a70d36d6", "score": "0.56293017", "text": "private static void loadData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "025fba7a0946dab896c7563be24142f3", "score": "0.5616999", "text": "protected abstract void mo1584sv();", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56142974", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5612237", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.56109047", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.56109047", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "7394d4352b7994de00e7e7a56caf331c", "score": "0.56109047", "text": "@Override\n public void preprocess() {\n }", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.56073254", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5604951", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.55991316", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8f2adb7cdec5fdcb8ef5d50637d47e23", "score": "0.55953515", "text": "@Override\n public void apply() {\n\n }", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.5591799", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "7800f17307f01c26d71c1bdc9e54ecf4", "score": "0.5588523", "text": "protected ArktweetAnno() {/* intentionally empty block */}", "title": "" }, { "docid": "0cc311102a73c4c8a58164d2689468c0", "score": "0.55809957", "text": "void customize()\t\t\t\t\t{}", "title": "" }, { "docid": "a3e06d5c74833da853c00a033094cb98", "score": "0.5571928", "text": "@Override\n public void cambio() {\n }", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5570984", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5570984", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.55675", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "7970502dfcee4e176d71f2a9a95f293c", "score": "0.5560716", "text": "@Override\r\n\tpublic void process() {\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.55601764", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "1259097158ea169a964acc3d767ee713", "score": "0.5552842", "text": "protected void run() {}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.5550641", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "940d9f351a9f82e1eb0348398fd58e06", "score": "0.55475783", "text": "@Override\n\tprotected void run() {\n\t\t\n\t}", "title": "" }, { "docid": "940d9f351a9f82e1eb0348398fd58e06", "score": "0.55475783", "text": "@Override\n\tprotected void run() {\n\t\t\n\t}", "title": "" }, { "docid": "4ccbf629ba73ea0666541a18d2c6466d", "score": "0.55462664", "text": "public final void mo71574y() {\n }", "title": "" }, { "docid": "7c7fc86288848697fef9838568befab2", "score": "0.554487", "text": "@Override\r\n\tpublic void moe() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ccb5ced64d7489669a4bd2436e1ecb11", "score": "0.5542537", "text": "private void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "066238398d731f05f09f291b57288353", "score": "0.5538022", "text": "@Override\n\tpublic void cacel() {\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5535429", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "faec027452fa6bbf89be42cefab435b7", "score": "0.553334", "text": "@Override\n\tprotected void prepare()\n\t{\n\t}", "title": "" }, { "docid": "bc495b1464768b736330de4f551e8063", "score": "0.5531011", "text": "@Override\r\n\tpublic void prepare() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d2ff754314d05138759ba289988c3d11", "score": "0.5527813", "text": "public void mo6219h() {\n }", "title": "" }, { "docid": "30346479077e58c687cd73022e32dcbb", "score": "0.55222774", "text": "private static void exercice8() {\n\n\t}", "title": "" }, { "docid": "95fad9b7bc3613798290b9dc94b6ce66", "score": "0.55218846", "text": "private Node() {\n\t\t// For ZooDB only\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5519145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5519145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5519145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5519145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5519145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5519145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" } ]
1c21c52be59393cef5dca61def14bec8
repeated .sotero.RECORDS.ROWS rows = 1;
[ { "docid": "f87e3d04779756242a7ddfb98b579d13", "score": "0.0", "text": "public Builder setRows(\n int index, com.sotero.proto.SbTestProtos.RECORDS.ROWS value) {\n if (rowsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowsIsMutable();\n rows_.set(index, value);\n onChanged();\n } else {\n rowsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "fd54d8b1fd5494ac437cdd3c1a2921a0", "score": "0.59348583", "text": "com.sotero.proto.SbTestProtos.RECORDS.ROWS getRows(int index);", "title": "" }, { "docid": "08228a7ab493dfff93c8a6926b5cfb16", "score": "0.541479", "text": "void set(Table table, IntegerVector rows) {\r\n row_list[0] = new IntegerVector(rows);\r\n row_count = rows.size();\r\n }", "title": "" }, { "docid": "1efb6d4211b7b0aca8522dd8393ddf1f", "score": "0.5348574", "text": "public Record next() {\n\t\trecord = factory.newRecord();\n\t\tauthors_260c = new ArrayList<>();\n\t\tCSVRecord csv = iterator.next();\n\t\tcreateLeader();\n\t\tcreateId(csv.get(HEADER_ID));\n\t\tcreate005();\n\t\tcreate008(csv.get(HEADER_ROK_TISK).isEmpty() ? csv.get(HEADER_ROK_EL) : csv.get(HEADER_ROK_TISK),\n\t\t\t\tcsv.get(HEADER_JAZYKY));\n\t\tcreate020(csv.get(HEADER_ISBN_TISK));\n\t\tcreate020(csv.get(HEADER_ISBN_EL));\n\t\tcreate041(csv.get(HEADER_JAZYKY));\n\t\tcreateAuthor(\"100\", csv.get(String.format(HEADER_AUTOR_X, 1)));\n\t\tint i = 2;\n\t\twhile (i <= MAX_AUTHOR) {\n\t\t\tString author = csv.get(String.format(HEADER_AUTOR_X, i));\n\t\t\tif (author.isEmpty()) break;\n\t\t\tcreateAuthor(\"700\", author);\n\t\t\ti++;\n\t\t}\n\t\tcreate245(csv.get(HEADER_NAZEV_ORIG), csv.get(HEADER_PODNAZEV));\n\t\tcreate250(csv.get(HEADER_PORADI_VYDANI));\n\t\tcreate264(csv.get(HEADER_ROK_TISK).isEmpty() ? csv.get(HEADER_ROK_EL) : csv.get(HEADER_ROK_TISK));\n\t\taddDataField(\"336\", ' ', ' ', \"a\", \"text\", \"b\", \"txt\", \"2\", \"rdacontent\");\n\t\taddDataField(\"337\", ' ', ' ', \"a\", csv.get(HEADER_ISBN_TISK).isEmpty() ? \"počítač\" : \"bez média\", \"b\", \"n\", \"2\", \"rdamedia\");\n\t\tcreate490(csv.get(HEADER_EDICE), csv.get(HEADER_CISLO_SVAZKU));\n\t\taddDataField(\"338\", ' ', ' ', \"a\", csv.get(HEADER_ISBN_TISK).isEmpty() ? \"online zdroj\" : \"svazek\", \"b\", \"nc\", \"2\", \"rdacarrier\");\n\t\tif (!csv.get(HEADER_ABSTRAKT).isEmpty()) addDataField(\"520\", ' ', ' ', \"a\", csv.get(HEADER_ABSTRAKT));\n\t\taddDataField(\"590\", ' ', ' ', \"a\", TEXT_500A);\n\t\tif (!csv.get(HEADER_KEYWORDS).isEmpty()) addDataField(\"653\", ' ', ' ', \"a\", csv.get(HEADER_KEYWORDS));\n\t\tcreate650(csv.get(HEADER_OBORY));\n\t\tif (!csv.get(HEADER_ZANR).isEmpty()) addDataField(\"655\", '7', ' ', \"a\", csv.get(HEADER_ZANR));\n\t\tif (!csv.get(HEADER_TYP_PUBLIKACE).isEmpty()) addDataField(\"655\", '7', ' ', \"a\", csv.get(HEADER_TYP_PUBLIKACE));\n\t\tif (!csv.get(HEADER_ODKAZ).isEmpty())\n\t\t\taddDataField(\"856\", '4', '1', \"u\", csv.get(HEADER_ODKAZ),\n\t\t\t\t\t\"y\", EVersionConstants.FULLTEXT_LINK);\n\t\taddDataField(\"710\", ' ', '2', \"a\", \"Masarykova univerzita\", \"7\", \"kn20010709056\", \"4\", \"pbl\");\n\t\treturn RecordUtils.sortFields(record);\n\t}", "title": "" }, { "docid": "d4aa66f409103544590f66ebd9188b12", "score": "0.5329527", "text": "public void setRows(String rows);", "title": "" }, { "docid": "3fb76d7a311eb7c6daa05b7d77e6eb1f", "score": "0.5312329", "text": "void set(Table table, BlockIntegerList rows) {\r\n row_list[0] = new IntegerVector(rows);\r\n row_count = rows.size();\r\n }", "title": "" }, { "docid": "9cd8d396c676bb052606658cc5e80706", "score": "0.5283735", "text": "void set(Table[] tables, IntegerVector[] rows) {\r\n for (int i = 0; i < tables.length; ++i) {\r\n row_list[i] = new IntegerVector(rows[i]);\r\n }\r\n if (rows.length > 0) {\r\n row_count = rows[0].size();\r\n }\r\n }", "title": "" }, { "docid": "097bd6c39717feeed10f95964b5de756", "score": "0.5245761", "text": "void set(Table[] tables, BlockIntegerList[] rows) {\r\n for (int i = 0; i < tables.length; ++i) {\r\n row_list[i] = new IntegerVector(rows[i]);\r\n }\r\n if (rows.length > 0) {\r\n row_count = rows[0].size();\r\n }\r\n }", "title": "" }, { "docid": "de8b801739a0e535c498474a1274615e", "score": "0.52223545", "text": "public void setRows(Integer rows) {\n this.rows = rows;\n }", "title": "" }, { "docid": "de8b801739a0e535c498474a1274615e", "score": "0.52223545", "text": "public void setRows(Integer rows) {\n this.rows = rows;\n }", "title": "" }, { "docid": "2a8bb76c78c8040f929ca5e51924045a", "score": "0.5192224", "text": "public synchronized void increaseNumberOfRecords()\r\n {\r\n this.numberOfRecords_++;\r\n }", "title": "" }, { "docid": "4b429bf5b58f318dab1e3ef07381d4fc", "score": "0.51871836", "text": "io.dstore.engine.procedures.FoModifyMainPostSortCritAd.Response.Row getRow(int index);", "title": "" }, { "docid": "9386e9fe865fa434ee315f8949d0bea7", "score": "0.5165505", "text": "public int getRows(){\r\n \treturn rows;\r\n }", "title": "" }, { "docid": "162d22c61fa1bd50222da89b1d88ea6c", "score": "0.5158998", "text": "java.util.List<com.sotero.proto.SbTestProtos.RECORDS.ROWS> \n getRowsList();", "title": "" }, { "docid": "f9dbc9b4b6f9ae05314f9af48414bc74", "score": "0.51390123", "text": "@Override\r\n\tpublic int numOfRows() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "736e6313eba14df223f17269d994b425", "score": "0.5128925", "text": "int insertSelective(TabCbfp record);", "title": "" }, { "docid": "313315234eeea26f652527749d3433fd", "score": "0.5126871", "text": "OutTableRow nextRow();", "title": "" }, { "docid": "b6ec4fa66493b95222246b1ea6164aa8", "score": "0.5124341", "text": "int insert(SA0160 record);", "title": "" }, { "docid": "85f439204d229ebe346652ce52525bad", "score": "0.5112724", "text": "public void setRows(ArrayList<Row> rows) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3c38ddb9f9280cbf4b74ecba8f05c765", "score": "0.5112362", "text": "com.sotero.proto.SbTestProtos.RECORDS.ROWSOrBuilder getRowsOrBuilder(\n int index);", "title": "" }, { "docid": "8a7434fba4b9d90470e169c195f992c3", "score": "0.5109856", "text": "int insert(TabCbfp record);", "title": "" }, { "docid": "1f4e2858ba449f301027bdc43e1059b4", "score": "0.5102122", "text": "public int numRows(){\n \n return this.rows;\n \n }", "title": "" }, { "docid": "2c4659ea002490662e3f9c578483557d", "score": "0.5098692", "text": "public void doubleTableSize(){\n \tnum=0;\n \tRecord[]T=table;\n \ttable=new Record[T.length*2];\n \tfor(int i=0;i<table.length;i++){\n \t\tif(T[i]!=null){\n \t\t\tinsert(T[i]);//reinsert the record according to the new table length\n \t\t}\n \t}\n }", "title": "" }, { "docid": "b1c9ccfb2a83c286ca5c00303869a41c", "score": "0.50900817", "text": "io.dstore.engine.procedures.OmModifyPredefBillContentAd.Response.Row getRow(int index);", "title": "" }, { "docid": "8a1fe44d3e5130303bb7a118e6558b90", "score": "0.50754225", "text": "public int getExtractedRecordCount();", "title": "" }, { "docid": "afc7a75d7ea9632fb0265e02d2e4cbb1", "score": "0.50684875", "text": "int insertSelective(SA0160 record);", "title": "" }, { "docid": "20ee666951f2fc9c73d86ac31a41a63f", "score": "0.50596184", "text": "public void setEstimatedRowCount(long count, int flag) throws StandardException;", "title": "" }, { "docid": "57febaba0cfe01de8f4eaf7863843c2c", "score": "0.5057311", "text": "int insert(MA0070 record);", "title": "" }, { "docid": "92bb891d6832110626f1ecfa5afa8129", "score": "0.50486773", "text": "public int rows();", "title": "" }, { "docid": "bb060fbe86d82770be8746fdf477133c", "score": "0.501644", "text": "@Override\n public int getAllRecordCount() { // override for java-doc\n return super.getAllRecordCount();\n }", "title": "" }, { "docid": "6fb59f237667e2658108348778a89ef0", "score": "0.5013825", "text": "@Generated(hash = 1310166161)\r\n public synchronized void resetRows() {\r\n rows = null;\r\n }", "title": "" }, { "docid": "b3f542e4b4c0437d4dc4aad6f0dd6079", "score": "0.50107974", "text": "io.dstore.engine.procedures.PmGetPersonBinariesPu.Response.Row getRow(int index);", "title": "" }, { "docid": "48285e1a78fe51f938dca6830529bf01", "score": "0.5008319", "text": "@Test\n\tpublic void spTestLineItem(){\t \n\t ch.epfl.dias.ops.volcano.Scan scan = new ch.epfl.dias.ops.volcano.Scan(rowstoreLineItem);\n\t ch.epfl.dias.ops.volcano.Select sel = new ch.epfl.dias.ops.volcano.Select(scan, BinaryOp.EQ, 0, 3);\n\t ch.epfl.dias.ops.volcano.ProjectAggregate agg = new ch.epfl.dias.ops.volcano.ProjectAggregate(sel, Aggregate.COUNT, DataType.INT, 2);\n\t\n\t\tagg.open();\n\t\t\n\t\t// This query should return only one result\n\t\tDBTuple result = agg.next();\n\t\tint output = result.getFieldAsInt(0);\n\t\tassertTrue(output == 3);\n\t}", "title": "" }, { "docid": "a2c0887b0170e626146c9a2f54658d5a", "score": "0.49906108", "text": "@Override\n\tpublic void setFetchSize(int rows) throws SQLException {\n\t\t\n\t}", "title": "" }, { "docid": "c5808b9fbf52a398828123f6c32c394a", "score": "0.4988173", "text": "int getRows();", "title": "" }, { "docid": "2014fab3749b33164368603b97f78f27", "score": "0.49844566", "text": "@Override\npublic int getLineCount() {\nreturn 0;\n}", "title": "" }, { "docid": "6722dc918a77fbad113288607f6bf686", "score": "0.49839088", "text": "@Override\n public int countFields() {\n return 1;\n }", "title": "" }, { "docid": "8878c283f0658e90ee5713d738dcb46a", "score": "0.49821952", "text": "int insertSelective(MA0070 record);", "title": "" }, { "docid": "aa5590259af5ba317ee17b2d6610ba09", "score": "0.49623778", "text": "io.dstore.engine.procedures.OmGetGroupSurchargesAd.Response.Row getRow(int index);", "title": "" }, { "docid": "a7e81a475d1c8a7f6e53767a3582d95d", "score": "0.496193", "text": "int insertSelective(MA8260 record);", "title": "" }, { "docid": "1beed19b2366e4a509fca5a255b89297", "score": "0.49511653", "text": "public void addRows(int number) {\n // table is already sparse. nothing to do.\n }", "title": "" }, { "docid": "c587c8f5f52f6290b575015e98b5785a", "score": "0.49470332", "text": "public void doFirstRow() {\n\t\t\n\t}", "title": "" }, { "docid": "ea7669795a253a3ab94ef605ec649c50", "score": "0.49463692", "text": "int insert(MA8260 record);", "title": "" }, { "docid": "e38fd67929099a154e5af650c74ba4cc", "score": "0.49197415", "text": "io.dstore.engine.procedures.ImModifyConditionsAd.Response.Row getRow(int index);", "title": "" }, { "docid": "467169432c2383923f972f2e5131ac42", "score": "0.49107078", "text": "public int getFiles() {return rows;}", "title": "" }, { "docid": "d405024300cedbec3073449b6d2c07d7", "score": "0.4909764", "text": "public abstract long getRowCount();", "title": "" }, { "docid": "6106335166596413827c6efc9743f679", "score": "0.49069488", "text": "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "title": "" }, { "docid": "49a6c318a31bd5ea9c6e81cad22142ed", "score": "0.49028006", "text": "int insertSelective(TSbDysbDyxl record);", "title": "" }, { "docid": "5080e90bc52b228fdcff5a963330b106", "score": "0.48989436", "text": "void insert(Mi048 record);", "title": "" }, { "docid": "4e81a1206a0b330ff6b384beb1cd14d6", "score": "0.48923093", "text": "int insertSelective(ResOrgSpe record);", "title": "" }, { "docid": "840a08f976c56f539a112623ab364963", "score": "0.48866114", "text": "void setMaxRecords(int value);", "title": "" }, { "docid": "7d74f9707d7bcf16814355a8c955e690", "score": "0.4885839", "text": "int insert(TParklotFile record);", "title": "" }, { "docid": "5d32d7db0106180a250c481685af2d4e", "score": "0.48794952", "text": "java.util.List<? extends com.sotero.proto.SbTestProtos.RECORDS.ROWSOrBuilder> \n getRowsOrBuilderList();", "title": "" }, { "docid": "11d369c4341d22010b0d3666d8ac3253", "score": "0.48779863", "text": "void setRowNum(int rowNum);", "title": "" }, { "docid": "b74b35d8c152912dff3645bcda4b93f8", "score": "0.48772594", "text": "com.google.privacy.dlp.v2.Table.Row getRows(int index);", "title": "" }, { "docid": "daf2725a5010b6db851f34bed99c8356", "score": "0.48766175", "text": "void insert(Mi008 record);", "title": "" }, { "docid": "bae7758b47413591c2151350c741b1d9", "score": "0.48648018", "text": "public int getRowCount() { return data.size();}", "title": "" }, { "docid": "9b8588f433fc3cfccc67d15a3154b4f3", "score": "0.4860911", "text": "java.util.List<io.dstore.engine.procedures.FoModifyMainPostSortCritAd.Response.Row> \n getRowList();", "title": "" }, { "docid": "06085a001aa4d4dc16058f235d3f9bab", "score": "0.48594075", "text": "public interface IteratorResultSet\n extends Iterator<ArtifactInfo>, Iterable<ArtifactInfo>\n{\n /**\n * Returns the up-to-date number of the actual number of loaded Lucene Documents that were converted into\n * ArtifactInfo object until last next() invocation. Warning: this method will return ALL touched/loaded document\n * count, even those that are filtered out and NOT returned by iterator's next() method!\n * \n * @return total number of processed ArtifactInfos so far\n */\n int getTotalProcessedArtifactInfoCount();\n}", "title": "" }, { "docid": "09297c21186888008886680ac7cb6da2", "score": "0.48490432", "text": "public int rows()\n\t{\n\t\treturn rows;\n\t}", "title": "" }, { "docid": "1a00f619f134cc9ab8cd0a6163435b43", "score": "0.4841992", "text": "int getSerializedRowsCount();", "title": "" }, { "docid": "cde69169921baaf24c3dfaf902b28e64", "score": "0.4836525", "text": "public int getRows() {\n return ROWS;\n }", "title": "" }, { "docid": "ab540667f86a67000d036713f53b3240", "score": "0.4835051", "text": "@Override \n public int getRowCount(){\n return properties.size();\n }", "title": "" }, { "docid": "8aff1ee20700b756f9de37e0809dcc29", "score": "0.48336604", "text": "int insertSelective(InnodbFtIndexCache record);", "title": "" }, { "docid": "000f30558f5ec6709c879992bfa30db2", "score": "0.48319107", "text": "public void setRow(int row)\n\t{ this.row = row; }", "title": "" }, { "docid": "1a07b57106a3a8b904cd793bcb92ce09", "score": "0.48302063", "text": "@Override\n public int getNRows() {\n return this.nrow;\n }", "title": "" }, { "docid": "07e5f3a4b6d412195a4a7ae45cdee396", "score": "0.482123", "text": "int insertSelective(DocService record);", "title": "" }, { "docid": "207c30748ec730cb5d70e95c02635369", "score": "0.48185846", "text": "@Override\n public OneRow readNextObject() throws IOException {\n while (skipHeaderCount > 0) {\n super.readNextObject();\n skipHeaderCount--;\n }\n return super.readNextObject();\n }", "title": "" }, { "docid": "fb8a9c05799f2958935c5925c0b3bdda", "score": "0.4817543", "text": "int insertSelective(ErpDoc record);", "title": "" }, { "docid": "f5d7334b29bcf98127974194e7c07189", "score": "0.48116902", "text": "public int getRowCount();", "title": "" }, { "docid": "f5d7334b29bcf98127974194e7c07189", "score": "0.48116902", "text": "public int getRowCount();", "title": "" }, { "docid": "f5d7334b29bcf98127974194e7c07189", "score": "0.48116902", "text": "public int getRowCount();", "title": "" }, { "docid": "3d48c53197f5f4a2c98a31e742c0e24f", "score": "0.48104402", "text": "public GDataDtoExample limit(Integer rows) {\n this.rows = rows;\n return this;\n }", "title": "" }, { "docid": "6fbc90fbe2c28cd14b2ba74e7d5b6260", "score": "0.48096877", "text": "public int rows() {\n\t\treturn rows;\n\t}", "title": "" }, { "docid": "a25ccf0af1d795f6e7c602b162957cbe", "score": "0.480764", "text": "int getSize(){\n return row.length -1;\n }", "title": "" }, { "docid": "b91a1dc55bb7df197e8e37cf6de78e74", "score": "0.47919807", "text": "@Test\n public void testQueryIdListFromArrayTotalSize() throws Exception {\n DocumentModel doc1 = session.createDocumentModel(\"/\", \"doc1\", \"File\");\n doc1.setPropertyValue(\"dc:subjects\", (Serializable) Arrays.asList(\"a\", \"b\", \"c\"));\n doc1 = session.createDocument(doc1);\n session.save();\n\n String nxql = \"SELECT dc:subjects/* FROM File WHERE ecm:name = 'doc1'\";\n PartialList<Map<String, Serializable>> projection;\n\n int expectedTotal = 3;\n int expectedUnknown = -1;\n int expectedUnknownForDBS = isDBS() && !isDBSMem() ? expectedUnknown : expectedTotal;\n\n // no limit, countUpTo -1 (countTotal true)\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 0, 0, -1);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedTotal, projection.totalSize());\n\n // no limit, countUpTo 0 (countTotal false)\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 0, 0, 0);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedUnknown, projection.totalSize());\n\n // no limit, countUpTo 5\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 0, 0, 5);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedTotal, projection.totalSize());\n\n // no limit, countUpTo 15\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 0, 0, 15);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedTotal, projection.totalSize());\n\n // limit, countUpTo -1 (countTotal true)\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 10, 0, -1);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedUnknownForDBS, projection.totalSize());\n\n // limit, countUpTo 0 (countTotal false)\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 10, 0, 0);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedUnknown, projection.totalSize());\n\n // limit, countUpTo 5\n projection = session.queryProjection(nxql, NXQL.NXQL, false, 10, 0, 5);\n assertEquals(expectedTotal, projection.size());\n assertEquals(expectedUnknownForDBS, projection.totalSize());\n }", "title": "" }, { "docid": "add75725dd79c4f33c40124d6d6e60bb", "score": "0.4789801", "text": "protected abstract int fillRows();", "title": "" }, { "docid": "2119d8ad27c4c694e1d67b94eace80a3", "score": "0.4784229", "text": "@Override\n\tpublic int findRowCounts() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "30a99599a39ae6616dc39689b132ae24", "score": "0.4783124", "text": "public int getRecordCount();", "title": "" }, { "docid": "f83212500d6529361a07f286e948310d", "score": "0.4782271", "text": "int insertSelective(BatchIndex record);", "title": "" }, { "docid": "90fdaa8249264097d8f9bff87175d096", "score": "0.47742474", "text": "int insert(InnodbFtIndexCache record);", "title": "" }, { "docid": "16015537848303567c67c3590b992b50", "score": "0.47713542", "text": "public int getRowsCount();", "title": "" }, { "docid": "a945903b2ac9147876a7bc9f3b2e577f", "score": "0.47677347", "text": "public void setRowCount(long count) {\n this.rowCount = count;\n }", "title": "" }, { "docid": "fb9598ac2fdc69d23be8365ec494abe2", "score": "0.4766694", "text": "int insertSelective(TCpyArrears record);", "title": "" }, { "docid": "38fc006219ee1a5df6244293e7262697", "score": "0.47609827", "text": "int insert(TbCab002d record);", "title": "" }, { "docid": "3b93a98c8839a1bf6e4c3d78d0ebba30", "score": "0.47579148", "text": "@Override\n\tpublic void setRow(byte[] bs, int bs_pos, int row, int length) {\n\t\t\n\t}", "title": "" }, { "docid": "5729d9df9de267c90fd039caf271190b", "score": "0.47565803", "text": "int insert(TCpyArrears record);", "title": "" }, { "docid": "4c01a7b687aa505c580c5bddb6e010d2", "score": "0.47563133", "text": "int insert(TFollow record);", "title": "" }, { "docid": "d594ed195e2fe4d0354a178dcf6e1330", "score": "0.47525337", "text": "protected int getRecordCount() {\n return this.recordCount;\n }", "title": "" }, { "docid": "0b79dc4579bbee07ee3e7e5e2b242264", "score": "0.4752354", "text": "public int getFirstRow()\r\n/* 55: */ {\r\n/* 56:151 */ return this.rowFirst;\r\n/* 57: */ }", "title": "" }, { "docid": "6e0e40b81f81efad20f237b13c4e04d8", "score": "0.47507963", "text": "public int subgrid1_recordcount( )\n {\n pr_default.execute(1);\n GRID1_nRecordCount = H00123_AGRID1_nRecordCount[0] ;\n pr_default.close(1);\n return (int)(GRID1_nRecordCount) ;\n }", "title": "" }, { "docid": "5ef2fc850072f1817c45bf98862580f2", "score": "0.47463718", "text": "public int getNFields() { return 3; }", "title": "" }, { "docid": "a3db00c66618e26faa53f7e35d5d65c5", "score": "0.474163", "text": "@Override\n public int getNoOfRecords() {\n return noOfRecords;\n }", "title": "" }, { "docid": "e79c04fb20f5ad7e4102e27f27f403de", "score": "0.4738091", "text": "public int getNumRows(){\n return row;\n }", "title": "" }, { "docid": "4aaf76fc7b7423c0bdd4ee6ca1fef6e3", "score": "0.47369218", "text": "public int getRows() {\n return rows;\n }", "title": "" }, { "docid": "72f1fefcb22716014b221a665faf74e2", "score": "0.47324678", "text": "int updateByExample(Mi008 record, Mi008Example example);", "title": "" }, { "docid": "4ff0ffe433fa9af8445ddf0c4a3ba657", "score": "0.47297996", "text": "io.dstore.engine.procedures.PmGetPersonTypesAd.Response.Row getRow(int index);", "title": "" }, { "docid": "4237849c7d0e16072c4f225d1c5a5cd5", "score": "0.4729323", "text": "int insert(ResOrgSpe record);", "title": "" }, { "docid": "13d51c789c8a99a3fc2f544c014481b6", "score": "0.4728111", "text": "public abstract int getRowCount();", "title": "" }, { "docid": "9890eb164bc78c1db34ff2f170041eda", "score": "0.47266442", "text": "void insert(Mi602 record);", "title": "" }, { "docid": "510719999130c1760570e42cbfc93b62", "score": "0.4723988", "text": "int insert(SfMajor record);", "title": "" }, { "docid": "d96b29211c01cb175a72b121e192f415", "score": "0.47212622", "text": "public void setRow(int row){\n\t\tthis.row = row ;\n\t}", "title": "" } ]
32ae36af5188f09b75a8dc18e7ce5077
This method was generated by MyBatis Generator. This method sets the value of the database column contest_problem.title
[ { "docid": "69cf26fc2a43a637725ae36c17dcf107", "score": "0.5211305", "text": "public void setTitle(String title) {\n\t\tthis.title = title == null ? null : title.trim();\n\t}", "title": "" } ]
[ { "docid": "2df31107ff6352fd461482e6599131f8", "score": "0.6272087", "text": "void setQuestionTitle(String questionTitle);", "title": "" }, { "docid": "9da7783d1cca54265c059147a06a7dc4", "score": "0.5719424", "text": "public final void setTitle(String title)\n { \n setAttribute(DBCOLATTR_TITLE, title);\n }", "title": "" }, { "docid": "d2b323d35e990e9a1b0121514ec430d1", "score": "0.56605244", "text": "public void setTitle(String title) throws SQLException {\n \t\ttry {\n \t\t\tPreparedStatement ps = con.prepareStatement(\"UPDATE Book SET title=? WHERE callNumber=?\");\n \t\t\tps.setInt(2, this.callNumber);\n \t\t\t\n \t\t\tps.setString(1, title);\n \t\t\t\n \t\t\tps.executeUpdate();\n \t\t\tcon.commit();\n \t\t\tps.close();\n \t\t\t\n \t\t\tthis.title = title;\n \t\t} catch (SQLException sql) {\n \t\t\tSystem.out.println(\"Message: \" + sql.getMessage());\n \t\t\ttry {\n \t\t\t\t// Undo\n \t\t\t\tcon.rollback();\n \t\t\t} catch (SQLException sql2) {\n \t\t\t\tSystem.out.println(\"Message: \" + sql2.getMessage());\n \t\t\t\tSystem.exit(-1);\n \t\t\t}\n \t\t\tthrow sql;\n \t\t}\n \t}", "title": "" }, { "docid": "b270ba0aa3203b423a37c3f7de54268b", "score": "0.56092954", "text": "public void setProject_title(String project_title) {\n\t\tthis.project_title = project_title;\n\t}", "title": "" }, { "docid": "70f779e8e43b8ad27c54911bdaf403fa", "score": "0.55923873", "text": "public Builder setTitle(int title) { \n this.title = (String) context.getText(title); \n return this; \n }", "title": "" }, { "docid": "42d424f522d702eaaea4cfc80951f1d8", "score": "0.5540442", "text": "public Builder setTitle(int title) {\r\n\t\t\tthis.title = (String) context.getText(title);\r\n\t\t\treturn this;\r\n\t\t}", "title": "" }, { "docid": "01c26dbb64fdc2fa36743e23bfcd14ac", "score": "0.5518198", "text": "public void setTitle(String newTitle) {\n this.title = newTitle;\n }", "title": "" }, { "docid": "69a1b274343a6aed1a664d8b784aa9ee", "score": "0.55156285", "text": "public void setTitle(String title){\r\n this.title = title;\r\n }", "title": "" }, { "docid": "56088c8b25c60b36253f96a2e6709a00", "score": "0.54987097", "text": "public void setTitle(String title){\n this.title = title;\n }", "title": "" }, { "docid": "820071bbe6be122c5d58e2a31521a4be", "score": "0.5493811", "text": "@Test\n public void testSetTitle() {\n System.out.println(\"setTitle\");\n String title = \"\";\n NewcourseadminBean instance = new NewcourseadminBean();\n instance.setTitle(title);\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": "2ca0ded56aaa95ba0e9a29f8f62895a1", "score": "0.5489797", "text": "@Column(name=\"title\",length=500)\n @Field\n public String getTitle() {\n return title;\n }", "title": "" }, { "docid": "1c4c25dab2ea3a9cf332a83ecadfca9a", "score": "0.5483578", "text": "public void setTitle(String newTitle) { title = newTitle; }", "title": "" }, { "docid": "2973bd460dbfbdd466e1ddd529a77f2e", "score": "0.5482746", "text": "public void setTitle(String value)\n {\n this.title = value;\n }", "title": "" }, { "docid": "c897c4281b3132b548c9e77631681cd4", "score": "0.54595387", "text": "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "title": "" }, { "docid": "3da7c0bc15014c05344954675a16db5b", "score": "0.54587483", "text": "public void setTitle(String newTitle)\n {\n this.title = newTitle;\n }", "title": "" }, { "docid": "0402355afc842eb6d7a58a7c273f3ecf", "score": "0.5454588", "text": "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "788cf74978a9959de94b6fbc19254c01", "score": "0.54435694", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "dd82952cfbbf0d53b4ce2f73461fa3c2", "score": "0.54431987", "text": "public void setTitle(String title) {this.title = title;}", "title": "" }, { "docid": "a9e863013e110caaf771e82b680a0c57", "score": "0.5441671", "text": "public void setTitle(String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "a9e863013e110caaf771e82b680a0c57", "score": "0.5441671", "text": "public void setTitle(String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "a9e863013e110caaf771e82b680a0c57", "score": "0.5441671", "text": "public void setTitle(String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "a9e863013e110caaf771e82b680a0c57", "score": "0.5441671", "text": "public void setTitle(String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "a9e863013e110caaf771e82b680a0c57", "score": "0.5441671", "text": "public void setTitle(String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "a9e863013e110caaf771e82b680a0c57", "score": "0.5441671", "text": "public void setTitle(String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "e15f919c3cd67b3962f3d62b08dfc5a3", "score": "0.54407334", "text": "public void setTitle(@NotNull String title) {\n this.title = title;\n }", "title": "" }, { "docid": "5a60984d724cb1ac8a196c1360ecd666", "score": "0.54396975", "text": "public void setTitle(String title)\r\n {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "d5975cefe6605cc5c07396b6970c46e4", "score": "0.5434", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "830154da467d200b0396289f12252ec7", "score": "0.5425336", "text": "public void setTitle(String title) {\n\t\tthis.Title = title;\n\t}", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "4f67323b115815aa51fd4b489499cea3", "score": "0.5417133", "text": "public void setTitle(String title) {\n this.title = title;\n }", "title": "" }, { "docid": "60f1561ae660275663b1cb85c4d83719", "score": "0.54081047", "text": "public void setTitle(String title)\n {\n this.title = title;\n }", "title": "" }, { "docid": "26076eff209bfc861b8353e39fca2816", "score": "0.53879136", "text": "public void setQuizTitle(String v) \n {\n \n if (!ObjectUtils.equals(this.quizTitle, v))\n {\n this.quizTitle = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "eb1896cd059a320a590d48248e1e042c", "score": "0.5379667", "text": "public void setTitle(NobilityTitle title) {\r\n\t\tthis.title = title;\r\n\t}", "title": "" }, { "docid": "14116e3c169a2a52023aef2a4559be9b", "score": "0.53580636", "text": "@Test\n\tpublic void testUpdateTitle() throws Exception,ClassNotFoundException, SQLException{\n\t\tDBAccess dba = new DBAccess(\"org.h2.Driver\", \"jdbc:h2:mem:\", \"root\", \"password\");\n\t\tdba.initialize();\n\t\t// criar um utilizador e adicionar o mesmo a BD para pasar o id para o documento\n\t\tUtilizador u = new Utilizador(1,\"Nuno\");\n\t\tu.addUser(dba);\n\t\t\n\t\t// obter uma data para criacao\n\t\tDate dat= new Date(System.currentTimeMillis());\n\t\tlong datelong= dat.getTime();\n\t\t// criar um documento e adiciona o mesmo a BD\n\t\tDocumento d = new Documento(1,\"ola\",\"adeus\", new Timestamp(datelong), 1);\n\t\td.addDoc(dba);\n\t\t// atualizar o titulo de utilizador\n\t\td.updateDocTitle(dba,\"OLA\",1,new Timestamp(datelong));\n\t\t// Obter uma ligacao a BD\n\t\tConnection conn = dba.getConnection();\n\t\tStatement stmt = conn.createStatement();\n\t\t// procurar na BD o titulo do documento correspondente\n\t\tString sqlQuery = \"select title from documentos;\";\n\t\tResultSet rs = stmt.executeQuery(sqlQuery);\n\t\tString x = \"\";\n\t\twhile(rs.next()){\n\t\t\t x = rs.getString(\"title\");\n\t\t}\n\t\t// verificar se o resultado obtido e o esperado\n\t\tassertEquals(x,\"OLA\");\n\t}", "title": "" }, { "docid": "ae7fa4e5ccc168418cb7a0f5a6a4b8e7", "score": "0.5356537", "text": "public void setTitle(String title) {\n //by using this. were avoiding shadowing. this. refers to the field in class\n //not the paramater in the settitle thing this instead of the aTitle we did\n //in the exercise\n this.title = title;\n }", "title": "" }, { "docid": "f931ebb55958fe2206566dc4effed64e", "score": "0.535546", "text": "@Override\n \tpublic void setTitle(String title) {\n \t\tthis.title = title;\n \t}", "title": "" }, { "docid": "920d7a460afe72a76d1a2ea82e8c8667", "score": "0.5350951", "text": "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "title": "" }, { "docid": "23dc2e57500838bef2cc9709284c27cc", "score": "0.53475446", "text": "public void setTitle(String title){this.title = title;}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "44a983785c43636cc55014fb8fe5af96", "score": "0.5334529", "text": "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "742a577b3dcf677a8ef178ab9130c7e2", "score": "0.53215384", "text": "public void setTitle(String title) {\n\t\t\tthis.title = title;\n\t\t}", "title": "" }, { "docid": "e7694c28f7068ea863d3f9e19815319c", "score": "0.531571", "text": "public void setTitle(java.lang.String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "e7694c28f7068ea863d3f9e19815319c", "score": "0.531571", "text": "public void setTitle(java.lang.String title) {\r\n this.title = title;\r\n }", "title": "" }, { "docid": "9341cdc881a7a60ffae187c1ff065d0d", "score": "0.5315646", "text": "public void setAlternativeTitle(String title) {\n this._alternativeTitle = Val.chkStr(title);\n}", "title": "" }, { "docid": "c8267dc6fda77769c499df264d3f126e", "score": "0.5301907", "text": "void setTitle(String title)\n\t{\tthis.title = title;\n\t}", "title": "" }, { "docid": "d0960be9c5b68d8375da5a75d5b1c6d5", "score": "0.52969885", "text": "public void setTitle(String title) {\n\t\tif( title.equals(\"\") ) {\n\t\t\tSystem.out.println(\"Empty value for a title\");\n\t\t\tSystem.exit(0);\n\t\t} else\n\t\t\tthis.title = title;\n\t}", "title": "" }, { "docid": "d06cbdfa117426c2f2e085c1acd85256", "score": "0.52933294", "text": "public void setTitle(String title) {\n _title = title;\n }", "title": "" }, { "docid": "9e987f87d07dbf2e2047a14c8d8bf822", "score": "0.5270794", "text": "public int UpdateBugTitle(String UpdateBug_Title, String Bug_ID)\n{\n int result=0;\n try \n {\n UpdateBugTitle.setString(1, UpdateBug_Title);\n UpdateBugTitle.setString(2, Bug_ID);\n \n result = UpdateBugTitle.executeUpdate();\n } \n\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n \n return result;\n}", "title": "" }, { "docid": "eaf7a21cc4202f4d0e84f0f1dd19d587", "score": "0.5260456", "text": "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "title": "" }, { "docid": "eaf7a21cc4202f4d0e84f0f1dd19d587", "score": "0.5260456", "text": "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "title": "" }, { "docid": "eaf7a21cc4202f4d0e84f0f1dd19d587", "score": "0.5260456", "text": "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "title": "" }, { "docid": "33d39a6624499844f925ba14d74f6d50", "score": "0.5246665", "text": "public void setTitle(java.lang.String title)\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(TITLE$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TITLE$20);\n }\n target.setStringValue(title);\n }\n }", "title": "" }, { "docid": "e7a8bb494a3acc9d3e3db5a18de4e3c6", "score": "0.5245854", "text": "public void setLectTitle(String lectTitle) {\n this.lectTitle = lectTitle;\n }", "title": "" }, { "docid": "5d84ce5bd9db7bc8eb37fe0ac7716383", "score": "0.5237438", "text": "public void setTitle( String title ) {\n \t\tthis.title = title;\n \t}", "title": "" }, { "docid": "9000d999b526ff6b15468f9bb3572e03", "score": "0.52369833", "text": "void setQuestionContent(String questionContent);", "title": "" }, { "docid": "ca326d715f762d33875d0ccb479060b2", "score": "0.5231267", "text": "public void setTitle( String title ) {\r\n\t\tthis.title = title;\r\n\t}", "title": "" }, { "docid": "1a936aa66ee86035381b8cdbd5775b93", "score": "0.52229124", "text": "public void setTitle(java.lang.CharSequence value) {\n this.title = value;\n setDirty(13);\n }", "title": "" }, { "docid": "2f827235328370fa8e08c431cf688662", "score": "0.52092886", "text": "private void setTitle(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n title_ = value;\n }", "title": "" }, { "docid": "ed581271ac70a7cc949fe5b3cac8d1cd", "score": "0.5208877", "text": "public void setTitle(String title) { m_title = title; }", "title": "" }, { "docid": "4e59a5c23775ee8f9cade15e5421e82c", "score": "0.52030957", "text": "public String updateTitle(String title) {\n\n return null; // Change later\n }", "title": "" }, { "docid": "4b5aaad23d95a9ea99aa59dfc74d520b", "score": "0.5196731", "text": "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "title": "" }, { "docid": "4b5aaad23d95a9ea99aa59dfc74d520b", "score": "0.5196731", "text": "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "title": "" }, { "docid": "4b5aaad23d95a9ea99aa59dfc74d520b", "score": "0.5196731", "text": "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "title": "" }, { "docid": "c4897af8c092eb5c8ca6274326fe28c0", "score": "0.51933944", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "25b1bd72ba13ebfbe449e8a510602cef", "score": "0.5183509", "text": "public void setProblem(Problem problem) throws Exception {\n String searchInput;\n result = (ResultController) factory.launch(\"result\");\n result.setText(TheraPc.manager.find(mood.isNegative()).toString());\n WebEngine webEngine = result.web.getEngine();\n if (problem != null) {\n searchInput = mood.getKeyword() + \"+\" + problem.getSearchString();\n webEngine.load(\"https://duckduckgo.com/?q=\" + searchInput);\n } else {\n webEngine.load(\"http://www.google.com\");\n }\n }", "title": "" }, { "docid": "613a37bd2ff8b24cd825abcf802d2285", "score": "0.5172935", "text": "private void setMeetingOverviewTitle()\n\t{\n\t\tConnection tmpCon = DatabaseTodoConnect.openDB();\n\n\t\ttry\n\t\t{\n\t\t\tStatement tmpStmt = tmpCon.createStatement();\n\t\t\tResultSet tmpRst = tmpStmt.executeQuery(\"SELECT * FROM Sitzungsdaten INNER JOIN Sitzungsart ON Sitzungsdaten.SitzungsartID = Sitzungsart.SitzungsartID WHERE Sitzungsdaten.SitzungsdatenID = \" + meetingId);\n\n\t\t\t//properly set meeting date and type\n\t\t\tif (tmpRst.next())\n\t\t\t{\n\t\t\t\tString displayDate = new DateFormater(tmpRst.getDate(\"Datum\")).toString();\n\t\t\t\tString tmpSubject = tmpRst.getString(\"Betreff\");\n\t\t\t\t\n\t\t\t\tif(tmpSubject == null)\n\t\t\t\t{\n\t\t\t\t\ttmpSubject = \"\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttmpSubject = \"'\" + tmpSubject + \"' \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tjLabel1.setText(\"Auswertung von Sitzung \" + tmpSubject + \"vom \" + displayDate + \" - \" + tmpRst.getString(\"Name\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tjLabel1.setText(\"Auswertung von Sitzung\");\n\t\t\t}\n\n\t\t\ttmpRst.close();\n\t\t\ttmpStmt.close();\n\t\t}\n\t\tcatch (SQLException ex)\n\t\t{\n\t\t\tLogger.getLogger(MeetingReportTab.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\tDatabaseTodoConnect.closeDB(tmpCon);\n\t}", "title": "" }, { "docid": "4c45b04713514875a855ff4ee4fddfee", "score": "0.5170486", "text": "public void changeTitle(String title) {\n\t\treview.setTitle(title);\n\t}", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" }, { "docid": "12c6d030321f5dcdc28b660b70546d70", "score": "0.5170063", "text": "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "title": "" } ]
711fc80a55f12be4a22ada6aad54d14c
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
[ { "docid": "60a3481737fef3a456c58b07d3f7f219", "score": "0.7275706", "text": "public boolean hasNext() {\r\n\t\treturn iterator.hasNext();\r\n\t}", "title": "" } ]
[ { "docid": "5919e1dd6b5b8585b9cb2bbd99e44edd", "score": "0.85917455", "text": "@Override\n\tpublic boolean hasMoreElements() {\n\t\treturn (this.iterator.hasNext());\n\t}", "title": "" }, { "docid": "85542407525f5fbba727c5060042f9e2", "score": "0.8565895", "text": "public boolean hasMoreElements()\r\n/* */ {\r\n/* 151 */ if (this.endOfEnumerationReached) {\r\n/* 152 */ return false;\r\n/* */ }\r\n/* */ \r\n/* 155 */ if (this.isGetNextLastResultUpToDate) {\r\n/* 156 */ return true;\r\n/* */ }\r\n/* */ try {\r\n/* 159 */ this.getNextLastResult = getNextElementFromInnerFunctor();\r\n/* 160 */ this.isGetNextLastResultUpToDate = true;\r\n/* 161 */ return true;\r\n/* */ } catch (NoSuchElementException noSuchE) {\r\n/* 163 */ this.endOfEnumerationReached = true; }\r\n/* 164 */ return false;\r\n/* */ }", "title": "" }, { "docid": "27146a6ec9a415a5137d2db530275434", "score": "0.8533617", "text": "public final boolean hasMoreElements(){\n return i.hasNext();\n }", "title": "" }, { "docid": "cc91b9f0a5eef6d53c6c9796ade80396", "score": "0.8504779", "text": "public boolean hasMoreElements() {\n\n return (iterator.hasNext());\n\n }", "title": "" }, { "docid": "20cd9c6890c9105d6cb5461c1fd0e62a", "score": "0.84610736", "text": "public boolean hasNext() { return iterElementCount < elementCount; }", "title": "" }, { "docid": "0d48d5cde36e75667a3d82226bb1fbd1", "score": "0.8333416", "text": "public boolean hasNext() {\n return count < elements.length - 1;\n }", "title": "" }, { "docid": "5c16632765fdfec1d2da55d468ab228e", "score": "0.8053691", "text": "public boolean hasMoreElements() {\n return (this.nextDescriptor != null);\n }", "title": "" }, { "docid": "ecd6d6414b9b86856a51c0ee81c18699", "score": "0.8010911", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (current < size);\n\t\t}", "title": "" }, { "docid": "7a2b7e95855dd48588f530b914c52412", "score": "0.7980964", "text": "public boolean hasNext()\n {\n // counter goes up each time next() is called\n return (counter < size());\n }", "title": "" }, { "docid": "de9fd668496598fd31700fad67edfa17", "score": "0.79749036", "text": "public boolean hasNext()\n {\n return current < items.size();\n }", "title": "" }, { "docid": "482ab5290fef3da9bc4042a2e9cb3fd9", "score": "0.7953505", "text": "public boolean HasMoreElements( )\n\t{\n\t\tif ( numItems == 0 || currentNode.GetNextItem( ) == null )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "dc5cdaec88944b12c379bb42a2231c69", "score": "0.7914447", "text": "public boolean hasNext()\n {\n return count < array.size();\n }", "title": "" }, { "docid": "22a183dcc746891858a4c9e4f2675e33", "score": "0.7891657", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn current < size;\n\t\t}", "title": "" }, { "docid": "ba031894913055944f2991fab819a630", "score": "0.7877861", "text": "public boolean hasNext() { \n return index < count; \n }", "title": "" }, { "docid": "971af7de89b82e0007d0b1b037e6b05b", "score": "0.7876449", "text": "public boolean hasMoreElements() {\n\t // if necessary, prefetch the next matching header,\n\t // and remember it.\n\t if (next_header == null)\n\t\tnext_header = nextMatch();\n\t return next_header != null;\n\t}", "title": "" }, { "docid": "3f27e65b310110256e011e8fcc78495a", "score": "0.78078103", "text": "@Override\n\tpublic boolean hasNext() {\n\t\treturn more;\n\t}", "title": "" }, { "docid": "bfa277433c65e09cf4ba60547cac737e", "score": "0.77969146", "text": "@Override\n public final boolean hasNext() {\n return next != null;\n }", "title": "" }, { "docid": "cda96325ca41daea08f168f6fe468fb8", "score": "0.77951777", "text": "@Override\n\tpublic boolean hasNext() {\n\t\treturn count<items.length;\n\t}", "title": "" }, { "docid": "1745808ea77dbb1f48163349b1d1e873", "score": "0.7784287", "text": "public boolean hasMoreElements() {\n return hasMoreMatches(null);\n }", "title": "" }, { "docid": "158446ea145d657f976ce2f1f2b49566", "score": "0.7732517", "text": "@Override\n @SuppressWarnings(\"squid:S1166\") // Exception is handled\n public boolean hasNext()\n {\n if( isEnd( this.noSuchElementException ) ) {\n return false;\n }\n if( this.noSuchElementException == null ) {\n try {\n this.noSuchElementException = Boolean.FALSE;\n this.nextObject = computeNext();\n }\n catch( final NoSuchElementException e ) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "b19a1b0617657f909a55bd84d0d189ae", "score": "0.7722792", "text": "@Override\n public boolean hasNext() {\n return size() == array.length && itCount < array.length - 1 || itCount < size();\n }", "title": "" }, { "docid": "d7a00be4870f7cc3785365b1e4a31e74", "score": "0.771314", "text": "public boolean hasNext() {\n if (zaehler < items.length) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "c1fbe85759b2a7b4254d2894479d1fea", "score": "0.7706833", "text": "@Override\r\n\t\tpublic boolean hasNext()\r\n\r\n\t\t// --------------------------------------------------------\r\n\t\t// Summary: this is a circular stack. So every node has a next but we\r\n\t\t// want to get this items in the nodes once. So, this method controls\r\n\t\t// this condition and return true if we need to stop. else it returns\r\n\t\t// false.\r\n\t\t// --------------------------------------------------------\r\n\t\t{\n\r\n\t\t\treturn count < num + numberOfitem;\r\n\t\t}", "title": "" }, { "docid": "f0478a3a31d82f9de75c6f81e62b8287", "score": "0.76954824", "text": "public boolean hasNext() {\n\t\treturn this.next != null;\n\t}", "title": "" }, { "docid": "142a2438cd2074a23e5ec1397e6f4c90", "score": "0.7691208", "text": "@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn listSize != 0;\r\n\t\t}", "title": "" }, { "docid": "da41e6d236fd2762c7ee5bb3632cbc84", "score": "0.7689274", "text": "public boolean hasNext() {\n return size != 0;\n }", "title": "" }, { "docid": "13214b61b436185e023aaea21fc7452e", "score": "0.76843166", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn index < size();\n\t\t}", "title": "" }, { "docid": "f16b0ca866919653ad997307d9c76a42", "score": "0.7679615", "text": "public boolean hasNext() {\n\t\t\t\treturn index<size();\n\t\t\t}", "title": "" }, { "docid": "b11a0530b29b78041f445d16f39ab45b", "score": "0.76693577", "text": "public boolean hasNext() {\n\t\treturn (current_index < end_index);\n\t}", "title": "" }, { "docid": "387da8b3eb45bbb138464157da6c2ffd", "score": "0.76690745", "text": "public boolean hasMoreElements() {\r\n\t\treturn hasMoreTokens();\r\n\t}", "title": "" }, { "docid": "68ea15021e5e6f40e7fb015375e1e28c", "score": "0.7660129", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn current < N;\n\t\t}", "title": "" }, { "docid": "a39588cd4b37dade36f5f98b070889b2", "score": "0.7652127", "text": "@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn count < size;//enextNode.next!=null;\n\t\t\t}", "title": "" }, { "docid": "070f45183b5d2b10cd70bc0b930a33b8", "score": "0.762616", "text": "@Override\n public boolean hasNext() {\n return counter < size;\n }", "title": "" }, { "docid": "f993c9de975f2308a3aec960f5a7ea3a", "score": "0.7622164", "text": "public boolean hasNext() {\n return (size - left) != 0;\n }", "title": "" }, { "docid": "fe6e00e7b510f15c352e6d32d1aa3857", "score": "0.76161987", "text": "@Override\n\tpublic boolean hasNext() {\n\t\treturn (next != null) ? true : false;\n\t}", "title": "" }, { "docid": "ea0419f35e0a5d1d7b537dc7b1f7dff0", "score": "0.761121", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (this._next != null);\n\t\t}", "title": "" }, { "docid": "f07331976556a295c84d2f28cc5493da", "score": "0.76095635", "text": "public boolean hasNext() {\n return (current.next != null); \n }", "title": "" }, { "docid": "97848b2476af271fa8d4bd7cf44f2f58", "score": "0.7601457", "text": "public boolean hasNext() {\n return index < dp.size() - 1;\n }", "title": "" }, { "docid": "02fa0ad9e9b024b8d5e7243dc0fd4839", "score": "0.7599369", "text": "public boolean hasNext() {\n return i >= 0;\n }", "title": "" }, { "docid": "4411e8ec0083d1b19cbe7193ed466857", "score": "0.7588246", "text": "public boolean hasMore()\n\t{\n\t\treturn this.first != null;\n\t}", "title": "" }, { "docid": "12ba7781dc823ce1f8b29a42c93e70cb", "score": "0.756511", "text": "@Override\r\n\t\t\t\t\t\t\tpublic boolean hasNext() {\r\n\t\r\n\t\t\t\t\t\t\t\treturn nextItem!= null;\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "74dba04d7ff4133ed9d57d740173bad9", "score": "0.7539829", "text": "public boolean hasMoreElements() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d1b1013ad9640766d7ad7e26afd30019", "score": "0.7535254", "text": "public boolean hasNext() {\n return (current != null);\n }", "title": "" }, { "docid": "3914a7e581fc008d3fc91ec652d866b0", "score": "0.75279975", "text": "@Override\n\t\tpublic boolean hasNext() \n\t\t{\n\t\t\treturn (current != 0);\n\t\t}", "title": "" }, { "docid": "616b4a0f8160983ad0568c1671ff101f", "score": "0.7523308", "text": "public boolean hasNext() {\n\t\t\n\t\tboolean ret;\n\t\t\n\t\tif(this.current.next != this.sentinel) {\n\t\t\tret = true;\n\t\t}else {\n\t\t\tret = false;\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "22ec927fa852c35ceb6fcb04cd6623cd", "score": "0.7515527", "text": "@Override\n public boolean hasNext() {\n\n return size>index;\n // END\n }", "title": "" }, { "docid": "66fb50a55987c17eff8631e967293dd7", "score": "0.7512107", "text": "public boolean hasNext()\n {\n boolean someLeft = false;\n\n checkIterator();\n if (it != null)\n someLeft = it.hasNext();\n\n return someLeft;\n }", "title": "" }, { "docid": "bb9f13a8a4e229efb63bd7f30e437955", "score": "0.7497986", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn next!=last;\n\t\t}", "title": "" }, { "docid": "2cf474e67b424327eccade9faeec5b59", "score": "0.7490197", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn i<N;\n\t\t}", "title": "" }, { "docid": "a68c244abd507cd8de09f9ca507d2629", "score": "0.74812466", "text": "@Override\n\t/**\n\t * If has next element, return true\n\t */\n\tpublic boolean hasNext() {\n\t\treturn pos < aggregate.size() - 1 ? true : false;\n\t}", "title": "" }, { "docid": "97dbc2026fa3e4981e4eca74c6c3f466", "score": "0.7479695", "text": "@Override public boolean hasNext() { return index < len; }", "title": "" }, { "docid": "55b4e357a717191d3b6b93f93804b2bd", "score": "0.7476669", "text": "public boolean hasNext() {\n return (list.isEmpty() ? false : true);\n }", "title": "" }, { "docid": "d0d4addd31966a975f58dcfd9ebbb25d", "score": "0.74656117", "text": "public boolean hasNext()\n {\n return (iterNext != null);\n }", "title": "" }, { "docid": "3a8a6391ca83bdb11a6a60015a41b9c0", "score": "0.74417484", "text": "public boolean hasMore() {\n boolean retVal = false;\n if ((currPos + 1) < stime.size()) {\n retVal = true;\n }\n return retVal;\n }", "title": "" }, { "docid": "e019da32578856655c9ad75265d247fb", "score": "0.74246097", "text": "public boolean hasNext() {\n return !empty;\n }", "title": "" }, { "docid": "db0515429c857ccd5c29cb7e4031bf4c", "score": "0.74236566", "text": "public boolean hasNext() {\n return getPageNo() + 1 < getTotalPage();\n }", "title": "" }, { "docid": "b20e4e7a333e1345c926a3f75e3e94eb", "score": "0.7423362", "text": "public boolean hasNext()\n {\n if(position >= items.length || items[position] == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "title": "" }, { "docid": "54d334a937e058e64802104eda6af436", "score": "0.7421731", "text": "public boolean hasMore() {\n\t\treturn pgen.hasMore();\n\t}", "title": "" }, { "docid": "2e9f043f129010497abc147765863bf4", "score": "0.74181014", "text": "@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn n>0;\n\t\t\t}", "title": "" }, { "docid": "3f76bbfe72448b3dddd1199206bfe4db", "score": "0.74099547", "text": "public boolean hasNext() {\r\n return this.index < pairSize;\r\n }", "title": "" }, { "docid": "42a3f940363a2bd6462e7f45a9cd8c68", "score": "0.7403729", "text": "public boolean hasNext() { return nextNode != null; }", "title": "" }, { "docid": "07e939135c330c56f0ac03bb40d36378", "score": "0.7396288", "text": "public boolean hasMoreElements() {\n while ((entry == null) && (index > 0)) {\n entry = table[--index];\n }\n return entry != null;\n }", "title": "" }, { "docid": "77de44541fde3c90b6ddf63c58c3358d", "score": "0.738944", "text": "public boolean hasNext() {\n\t\treturn hasnext;\n\t}", "title": "" }, { "docid": "9bc9f5fbe7cfe77a866b78b301319c83", "score": "0.7382175", "text": "public boolean hasNext()\n\t{\n\t\treturn(iter.hasNext());\n\t}", "title": "" }, { "docid": "eb46235d66fa4bcab072d45eca8ae443", "score": "0.73712695", "text": "public boolean hasNext() {\r\n\r\n Entry next = next();\r\n nodesLeft--;\r\n\r\n return next != null;\r\n\r\n }", "title": "" }, { "docid": "27dade3b79c85cc5f5980789a09156fb", "score": "0.7367291", "text": "@Override\n public boolean hasNext() {\n return this.counter < block.getInstructions().size();\n }", "title": "" }, { "docid": "a42313080c97187a998598c50daf74bf", "score": "0.7358584", "text": "public boolean hasNext() {\n\t\t\n\t\tif(position>= items.size() || items.get(position) == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "cf2236e02aa9b44ad461a6e8ea7e3ab1", "score": "0.73542035", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\tif (position > CountObjectInArray)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "443d06a098ae09315ce4e9261baa9011", "score": "0.73406523", "text": "@Override\n public boolean hasNext() {\n selectNext();\n\n return nextValue != null;\n }", "title": "" }, { "docid": "eca5015a0b6f9f0dc651aee2d190cb9c", "score": "0.73362494", "text": "public boolean hasNext() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "eca5015a0b6f9f0dc651aee2d190cb9c", "score": "0.73362494", "text": "public boolean hasNext() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "df42ea601b5fdf317af482368eb0f11a", "score": "0.7320331", "text": "@Override\n public boolean hasNext() {\n return n > 0;\n }", "title": "" }, { "docid": "ece5d749f9f03d5ce611163bda5ace6e", "score": "0.7301372", "text": "public boolean hasNext() { return (lista.size() > 0) && (posActual <= lista.size()); }", "title": "" }, { "docid": "afaea3ed9dc71d47322c617f9691711b", "score": "0.7299805", "text": "@Override\n public boolean hasNext() {\n if (!tab[arrayIdx].isEmpty() && listIdx < tab[arrayIdx].size()) {\n return true;\n }\n // if not, check if following tab lists are not empty\n for (int i = arrayIdx + 1; i < size; ++i) {\n if (!tab[i].isEmpty()) {\n return true;\n }\n }\n // if all empty, no next\n return false;\n }", "title": "" }, { "docid": "c5d441f19c8b4f6586741f2f126e4f3f", "score": "0.7299546", "text": "public boolean hasNext() {\n // confirm we still have an item iterator, and that it has data available\n return null != itemIterator && itemIterator.hasNext() ||\n null != subIterator && subIterator.hasNext() ||\n null != iterator && iterator.hasNext();\n }", "title": "" }, { "docid": "298a5045d379b60909454b8cbd676799", "score": "0.7292559", "text": "public boolean hasNext()\r\n { \r\n return iterator.hasNext();\r\n }", "title": "" }, { "docid": "9a62e492a24f28e398f25002e1906cd2", "score": "0.72810996", "text": "public boolean hasNext() {\n return !stillNotVisited.isEmpty();\n }", "title": "" }, { "docid": "fec76b67e3d9056a8e508886f04848d2", "score": "0.7280161", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn current != null;\n\t\t}", "title": "" }, { "docid": "fec76b67e3d9056a8e508886f04848d2", "score": "0.7280161", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn current != null;\n\t\t}", "title": "" }, { "docid": "9c42c236edce4235a4d271b0bf89eafe", "score": "0.7263616", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn current!=null;\n\t\t}", "title": "" }, { "docid": "6894ffe2ef12ff4d7b8fb7b38ee611b9", "score": "0.7260648", "text": "public boolean hasNext() {\r\n if (itr != null) {\r\n return itr.hasNext();\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "36a329a4f386ad3a90e98bf0c34e3826", "score": "0.72552186", "text": "public boolean hasNext(){\r\n if(theList == null)\r\n return false;\r\n return true;\r\n }", "title": "" }, { "docid": "5520bda0c8a322de6793d9a1ac9e753f", "score": "0.72517216", "text": "public boolean hasNext() {\n return this.item.isCons();\n }", "title": "" }, { "docid": "b30eff89774f132856c98c920657f58e", "score": "0.7240385", "text": "public boolean hasNext() {\n if (next == null) {\n try {\n next = HutResultScanner.this.next();\n return next != null;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return true;\n }", "title": "" }, { "docid": "d29926c0bf8cdfd6d8ea8551bf4d6133", "score": "0.72354376", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\tboolean re = ( current != null);\n\t\t\treturn re;\n\t\t}", "title": "" }, { "docid": "dc2b43b62c65009a062809b8b2f6badc", "score": "0.7234155", "text": "public boolean hasNext(){\n\t\t\treturn(pos < enListe.stoerrelse());\n\t\t}", "title": "" }, { "docid": "02eba4540d893358454166ba7e07683c", "score": "0.72315884", "text": "public boolean hasNext()\n {\n return false;\n }", "title": "" }, { "docid": "0394581be9fc84dff3056a8474c04a1d", "score": "0.7230788", "text": "@Override\n public boolean hasNext() {\n return current != null;\n }", "title": "" }, { "docid": "5edeb2ebf7556de6d65590f98444a3ef", "score": "0.7227373", "text": "public boolean hasNext()\n { return false; }", "title": "" }, { "docid": "f44d6b1f42ff25cff365a472cae1b096", "score": "0.72216964", "text": "@Override\n\t\t\t\t\tpublic boolean hasNext() {\n\t\t\t\t\t\treturn (this.idx < DescMap.this.size());\n\t\t\t\t\t}", "title": "" }, { "docid": "8d278ae22544b28ecbdbf2aeab07937b", "score": "0.7215218", "text": "public boolean hasNext(){\r\n\t\treturn list.hasNext();\t\t\r\n\t}", "title": "" }, { "docid": "7965c4938fc7ccb8271d03fa07db0043", "score": "0.72145873", "text": "public boolean hasNext()\n {\n return (this.position != DONE);\n }", "title": "" }, { "docid": "5f9a5051592ae070fd1b8b393fa576b7", "score": "0.72106874", "text": "public boolean isNextItem() {\n return currItem < maxItems;\n }", "title": "" }, { "docid": "bb60d8eb981e46604427185c663c1cfa", "score": "0.72035164", "text": "public boolean hasNext()\n {\n return rest.isNotNull() && ( !skipEmptyTokens || rest.isNotEmpty() );\n }", "title": "" }, { "docid": "664373448a8fdc1f5196e447774ac76b", "score": "0.7203502", "text": "public boolean hasNext() {\r\n\t\tif (token == null && cnt == token.length)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "257fa56b91fdec123a1754f6e1fbd437", "score": "0.7196247", "text": "@Override\r\n public boolean hasNext() {\n return !(lastElement >= numElements || (isColumnFinished() && isRowFinished()));\r\n }", "title": "" }, { "docid": "b2f6893399c151d98eabab5986945668", "score": "0.7185233", "text": "@Override\n\t\t\tpublic synchronized boolean hasNext() {\n\t\t\t\treturn !empty;\n\t\t\t}", "title": "" }, { "docid": "f6b97c9a3f0358961458d38613c43682", "score": "0.71804994", "text": "public boolean hasNext() {\n/* */ boolean currentHasNext;\n/* 542 */ while (!(currentHasNext = ((Iterator)Preconditions.checkNotNull(this.current)).hasNext()) && inputs.hasNext()) {\n/* 543 */ this.current = inputs.next();\n/* */ }\n/* 545 */ return currentHasNext;\n/* */ }", "title": "" }, { "docid": "a6a170a9c7733450cee799873d48f0d2", "score": "0.7176729", "text": "public boolean hasNext()\n\t\t{\n\t\t\treturn permutationNumber < totalPermutations;\n\t\t}", "title": "" }, { "docid": "d6df36c7abd7dc5442cfd61192a6fbdb", "score": "0.71691173", "text": "@Override\n public boolean hasNext() {\n return (nextIndex != back);\n }", "title": "" } ]
103e0762a2f4c672d2c74d7bf8072abe
back button of android
[ { "docid": "3ef2c554e6e88da3ea9c347f11482296", "score": "0.0", "text": "public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n exitByBackKey();\n //moveTaskToBack(false);\n return true;\n }\n return super.onKeyDown(keyCode, event);\n }", "title": "" } ]
[ { "docid": "b0b322c867104db15a15179e1d1b5136", "score": "0.84137654", "text": "void onBackPressed();", "title": "" }, { "docid": "3c23d23e3fa6f38b6147eed85492552e", "score": "0.817257", "text": "@Override\n\tpublic void onBackClick() {\n\t\tfinish();\n\t}", "title": "" }, { "docid": "4f1eac2917b35bbfdd948fc43f5e8de1", "score": "0.8094019", "text": "public void onBackPressed()\n\t\t{\n\t\t}", "title": "" }, { "docid": "22433035c9795b44f36cd564c375e245", "score": "0.80811787", "text": "boolean onBackPressed();", "title": "" }, { "docid": "22433035c9795b44f36cd564c375e245", "score": "0.80811787", "text": "boolean onBackPressed();", "title": "" }, { "docid": "cdbf585f32879b7c8e4ee79788c4b563", "score": "0.80560386", "text": "public void onBackPressed() {\n\t}", "title": "" }, { "docid": "87494f7cdb281b5358e1ede569403630", "score": "0.80557525", "text": "@Override\r\n\t\tpublic void onBackPressed() {\n\t\t \r\n\t\t}", "title": "" }, { "docid": "cb6d53f2537d0763622905177e06fc9e", "score": "0.80108404", "text": "@Override\n public void onBackPressed() {\n \t\n }", "title": "" }, { "docid": "c8676126089bfe5bef9e5d1d6a33203e", "score": "0.79981375", "text": "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "title": "" }, { "docid": "38fa8c04e7ddf524e2a4de214759a8cd", "score": "0.79473734", "text": "@Override\r\n public void onBackPressed() {\n }", "title": "" }, { "docid": "eade052539d3c39c55068f1d36d8a295", "score": "0.7937052", "text": "public void onBackPressed()\n {\n pageToAcInfo();\n }", "title": "" }, { "docid": "3e4e9a8fc266bc9aefdfd988be716a0c", "score": "0.7936262", "text": "@Override\n\tpublic void onBackPressed() {\n\n\t}", "title": "" }, { "docid": "80ca818a982742e498d7cf9ed8019012", "score": "0.7930091", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tif(webview.canGoBack()){\n\t\t\twebview.goBack();\n\t\t}else{\n\t\t\tExit();\n\t\t}\n\t}", "title": "" }, { "docid": "ce33c4595004c6be7cd48bf376a5f707", "score": "0.7924432", "text": "@Override\n public void onBackPressed() {}", "title": "" }, { "docid": "ce33c4595004c6be7cd48bf376a5f707", "score": "0.7924432", "text": "@Override\n public void onBackPressed() {}", "title": "" }, { "docid": "f0bb85f176632da8f8616e36afb4f1c9", "score": "0.79233724", "text": "@Override\n public void onBackPressed() {\n\n }", "title": "" }, { "docid": "f0bb85f176632da8f8616e36afb4f1c9", "score": "0.79233724", "text": "@Override\n public void onBackPressed() {\n\n }", "title": "" }, { "docid": "4b24729fe8da82ea395bd1a22f1c2906", "score": "0.79041976", "text": "public abstract boolean onBackPressed();", "title": "" }, { "docid": "4b24729fe8da82ea395bd1a22f1c2906", "score": "0.79041976", "text": "public abstract boolean onBackPressed();", "title": "" }, { "docid": "cf7394a6542caf6efbda4a08c152c605", "score": "0.7901016", "text": "@Override\n\tpublic void onBackPressed() {\n\t}", "title": "" }, { "docid": "ef91eed28f8c79dee2a475058420ca30", "score": "0.7891426", "text": "@Override\n public void onBackPressed()\n {\n\n }", "title": "" }, { "docid": "ef91eed28f8c79dee2a475058420ca30", "score": "0.7891426", "text": "@Override\n public void onBackPressed()\n {\n\n }", "title": "" }, { "docid": "8f9c0a6e115cc98390137f0f17f58025", "score": "0.7889626", "text": "public void onBackPressed() {\n }", "title": "" }, { "docid": "8f9c0a6e115cc98390137f0f17f58025", "score": "0.7889626", "text": "public void onBackPressed() {\n }", "title": "" }, { "docid": "a7c55e7469a5c980fbf8650adabc5ef6", "score": "0.78810686", "text": "public void onBackPressed() {\n\t backButtonHandler();\n\t return;\n\t }", "title": "" }, { "docid": "89222a634a9cdc9ecee33bebc06c0349", "score": "0.7879149", "text": "@Override\n public void onBackPressed() { finish(); }", "title": "" }, { "docid": "2558d159a16d128c2ea53827018e5814", "score": "0.78703606", "text": "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "title": "" }, { "docid": "2558d159a16d128c2ea53827018e5814", "score": "0.78703606", "text": "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "title": "" }, { "docid": "2b9a66a8e4bb94370bf7c3ebb62ab08c", "score": "0.7867168", "text": "@Override public void onBackPressed(){ \n\t\tmoveTaskToBack(true); \n\t}", "title": "" }, { "docid": "8135d2fd12c0a4ae9c12beadd5122384", "score": "0.78660077", "text": "@Override\n public void onBackPressed() {return;}", "title": "" }, { "docid": "903972a40d5df3cc2d26ec01ca1d3a95", "score": "0.78649163", "text": "@Override\n public void onClick(View view) {\n onBackPressed(); }", "title": "" }, { "docid": "74369e9feab4561fa8b72fa7525f5859", "score": "0.78591704", "text": "private void back() \n\t{\n\t\tbtnBack.setEnabled(false);\n\t\tIntent\tintent=new Intent(TrainingDes.this,Training.class);\n\t\tintent.putExtra(\"backid\", intBackID);\n\t\tstartActivity(intent);\n\t\tTrainingDes.this.finish();\n\t}", "title": "" }, { "docid": "89d6c7d28d2385facc7aeda5ceec3de3", "score": "0.7858512", "text": "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "title": "" }, { "docid": "bfced71d7a3bf7dc5d4a9ff5092f218d", "score": "0.7846193", "text": "@Override\n public void onClick(View view) {\n onBackPressed();\n }", "title": "" }, { "docid": "6ce618c034c45e523d52dc1cdf46fb3c", "score": "0.7841055", "text": "public void pressGoBack() {\n btnGoBack().click();\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "795dac3ec14cd7345f1248daa40d0556", "score": "0.78384775", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "13aced53b38d70555a16275a6441ceae", "score": "0.78191346", "text": "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "title": "" }, { "docid": "0316804c88cb37754bc655dc5c3bc38e", "score": "0.7813183", "text": "@Override\npublic void onBackPressed() {\n}", "title": "" }, { "docid": "717043dfd1fda522b654f50fdcc39588", "score": "0.7811125", "text": "private void configBackButton(){\n Button buttonB = findViewById(R.id.BackButton);\r\n buttonB.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n\r\n finish();\r\n }\r\n });\r\n }", "title": "" }, { "docid": "401eed935f4ee3770eddcec09f2c2416", "score": "0.7810215", "text": "@Override\n public void onBackButtonPressed() {\n winView.navigateToMenu();\n }", "title": "" }, { "docid": "6cee8c31b8a5a7dc65f9591003a56477", "score": "0.7809009", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "title": "" }, { "docid": "3f2744d4536c81f888d14252d7d11f5d", "score": "0.78058517", "text": "@Override\n public void onBackPressed()\n {\n }", "title": "" }, { "docid": "bb3c441c0ed35c56faf6510e4ac2444c", "score": "0.78023255", "text": "@Override\n public void onBackPressed() {\n Intent a = new Intent(Intent.ACTION_MAIN);\n a.addCategory(Intent.CATEGORY_HOME);\n a.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n a.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(a);\n\n }", "title": "" }, { "docid": "708401da0fc98c400dcf9176a0e5e034", "score": "0.7790981", "text": "@Override\n public void onClick(View v) {\n onBackPressed();\n\n }", "title": "" }, { "docid": "9fdedce520c07cc48abd0a6b4fa3ed6a", "score": "0.7789382", "text": "@Override\n public void onBackPressed() {\n Intent Home = new Intent();\n Home.setAction(Intent.ACTION_MAIN);\n Home.addCategory(Intent.CATEGORY_HOME);\n startActivity(Home);\n }", "title": "" }, { "docid": "cd7f1d9e3f3f674e8a86042bda057bbf", "score": "0.7788968", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tmIsBackButtonPressed = true;\n\t\tsuper.onBackPressed();\n\n\t}", "title": "" }, { "docid": "069d39be2757354090bf230ad2165f61", "score": "0.77887064", "text": "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "title": "" }, { "docid": "439716b2d5128268b4720d53ae62d98c", "score": "0.77803755", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "title": "" }, { "docid": "1ac6b5380575fe4d2f9861e1d3febee4", "score": "0.7773086", "text": "private void back()\n {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "81ec9a10217766642815eda77d3ca1f9", "score": "0.77701783", "text": "@Override\r\n\tpublic void onBackPressed() {\n\t return;\r\n\t}", "title": "" }, { "docid": "00b34e67b2d0a09f8b116ee2cbfd59c5", "score": "0.77641946", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "00b34e67b2d0a09f8b116ee2cbfd59c5", "score": "0.77641946", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "00b34e67b2d0a09f8b116ee2cbfd59c5", "score": "0.77641946", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "00b34e67b2d0a09f8b116ee2cbfd59c5", "score": "0.77641946", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "00b34e67b2d0a09f8b116ee2cbfd59c5", "score": "0.77641946", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "00b34e67b2d0a09f8b116ee2cbfd59c5", "score": "0.77641946", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "3652639d4d19eee1c3d8f98316d184b0", "score": "0.7763535", "text": "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n if(wv1.canGoBack()) {\n wv1.goBack();\n } else {\n // Let the system handle the back button\n super.onBackPressed();\n }\n }", "title": "" }, { "docid": "19033e67998ca1864dddf5014a76b371", "score": "0.7762741", "text": "public void backbutton() {\n Intent backbutton = new Intent(this, MainActivity.class);\n backbutton.setClass(this, MainActivity.class);\n startActivity(backbutton);\n\n }", "title": "" }, { "docid": "d25a4863d2783b22043fa8df7bf31ddc", "score": "0.77623427", "text": "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "title": "" }, { "docid": "2fed00850bb02c23628d55b542c86554", "score": "0.77607214", "text": "public void goBack(View v) { //is called by onClick function of Back Button in activity_help_window.xml\n super.onBackPressed();\n }", "title": "" }, { "docid": "e5fb4c32c49d39c27e2f393054eb131e", "score": "0.7760234", "text": "@Override\r\n public void onBackPressed() {\r\n Intent intent = new Intent(Intent.ACTION_MAIN);\r\n intent.addCategory(Intent.CATEGORY_HOME);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "513101ead9ae8e242dd05f32c1384c2d", "score": "0.7756244", "text": "@Override\n public void onBackPressed(){\n }", "title": "" }, { "docid": "ea39adc9fb4444fe222d25693e54a2c7", "score": "0.77554834", "text": "@Override\n public void onBackPressed() { return; }", "title": "" }, { "docid": "762a1a2711b3d9a3e5b22ffa9668b094", "score": "0.7753666", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tthis.setResultBack();\n\t\tsuper.onBackPressed();\n\t}", "title": "" }, { "docid": "e930500c909d250bb1ad62c77719ba16", "score": "0.775186", "text": "@Override\r\n public void onBackPressed() {\r\n Intent intent = new Intent(this, homePage.class);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "38e8c2a5ca6a2f636dd236ab248813cd", "score": "0.7750301", "text": "@Override\n public void onBackPressed(){\n Intent a = new Intent(Intent.ACTION_MAIN);\n a.addCategory(Intent.CATEGORY_HOME);\n a.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(a);\n }", "title": "" }, { "docid": "ac8266ada8c261b75fe5ae630b67e598", "score": "0.7747815", "text": "@Override\n public void onBackPressed() {\n }", "title": "" }, { "docid": "64928f179d5e5ffd5a3d8dbeb0297d26", "score": "0.7747646", "text": "void showBackButton();", "title": "" }, { "docid": "051e4ed5b81baf1731dc19da168a91d1", "score": "0.77438486", "text": "public void backBtn(View view) {\n finish();\n }", "title": "" }, { "docid": "d31485f374ec81d0d65301afa2a85fc8", "score": "0.77434003", "text": "@Override\r\n\tpublic void onBackPressed(){\r\n\t Log.i(TAG,\"onBackPressed Entering.\");\r\n\t super.onBackPressed();\r\n\t launchPreviousScreen();\r\n\t Log.i(TAG,\"onBackPressed Exiting.\");\r\n\t}", "title": "" }, { "docid": "d31485f374ec81d0d65301afa2a85fc8", "score": "0.77434003", "text": "@Override\r\n\tpublic void onBackPressed(){\r\n\t Log.i(TAG,\"onBackPressed Entering.\");\r\n\t super.onBackPressed();\r\n\t launchPreviousScreen();\r\n\t Log.i(TAG,\"onBackPressed Exiting.\");\r\n\t}", "title": "" }, { "docid": "78858e0f68891ee0842e54b8d8857f8a", "score": "0.77424675", "text": "@Override\n public void onClick(View view)\n {\n onBackPressed();\n }", "title": "" }, { "docid": "f4a08c6be869226a34796d8b650e5144", "score": "0.7739661", "text": "@Override\n\tpublic void backButton() {\n\n\t}", "title": "" }, { "docid": "29a30f1244561a78fbb5e394b6e1a0ef", "score": "0.77389467", "text": "@Override\n public void onBackPressed() {\n mIsBackButtonPressed = true;\n super.onBackPressed();\n\n }", "title": "" }, { "docid": "1f75b5d812b60a77ea9057a474bdfc5b", "score": "0.7732559", "text": "@Override\n public void onBackPressed() {\n\n bckpress();\n }", "title": "" }, { "docid": "ccae9e61fd02b738e8bbe5c2a0916397", "score": "0.77137154", "text": "@Override\n public void onClick(View v) {\n onBackPressed();\n finish();\n }", "title": "" }, { "docid": "99ff3aa7c9af99c3a87632c910edf2fc", "score": "0.77099216", "text": "@Override\n public void onBackPressed() {\n backButtonHandler();\n return;\n }", "title": "" } ]
b473a0325df2105e966c88a94b6bbbfe
/ Metodos para tratamento de eventos e de tela em geral. Evite mudar.
[ { "docid": "8d7d86214500ca6224badbb67dd78b75", "score": "0.0", "text": "public AgendasBean getAgendasBean() {\n if (agendasBean == null) {\n agendasBean = findBean(\"agendasBean\");\n }\n return agendasBean;\n }", "title": "" } ]
[ { "docid": "d28f2a24cda2bfc3d415447fd243697f", "score": "0.65757746", "text": "private void crearEventoAyuda() {\n\t}", "title": "" }, { "docid": "13c920c273bd02b32f1b29aaadb90e4d", "score": "0.6021942", "text": "public static void main(String[] args) {\n \tTavolo tav1 = new Tavolo(\"bellaNapoli\",\"tav1\",4);\n \tTavolo tav2 = new Tavolo(\"bellaNapoli\",\"tav2\",6);\n \tTavolo tav3 = new Tavolo(\"bellaNapoli\",\"tav3\",8);\n \t\n \tArrayList <Tavolo> listaTavoli = new ArrayList <Tavolo>();\n \tlistaTavoli.add(tav1);\n \tlistaTavoli.add(tav2);\n \tlistaTavoli.add(tav3);\n\n \tGregorianCalendar orarioapertura = new GregorianCalendar();\n orarioapertura.add(GregorianCalendar.HOUR,9);\n GregorianCalendar chiusura = new GregorianCalendar();\n chiusura.add(GregorianCalendar.HOUR,18);\n GregorianCalendar orarioEvento = new GregorianCalendar();\n orarioEvento.add(GregorianCalendar.HOUR, 12);\n orarioEvento.add(GregorianCalendar.MINUTE, 30);\n GregorianCalendar giornoChiusura= new GregorianCalendar();\n giornoChiusura.add(GregorianCalendar.DAY_OF_WEEK, Calendar.MONDAY);\n /*\n i locali chiudono tutti il lunedì (questa è l'intenzione)\n link per vedere che il giorno di chiusura lunedì ha costante 2\n https://docs.oracle.com/javase/7/docs/api/constant-values.html#java.util.Calendar.MONDAY\n */\n //\n //chiusura.add(GregorianCalendar.DAY_OF_WEEK,2);\n GestoreLocale daMimmo = new GestoreLocale(\"da Giulio\",20,orarioapertura, chiusura, giornoChiusura);\n GestoreLocale bellaNapoli = new GestoreLocale(\"Bella Napoli\", 30, orarioapertura, chiusura, giornoChiusura);\n daMimmo.aggiungiTavoli(listaTavoli);\n bellaNapoli.aggiungiTavoli(listaTavoli);\n\n GestoreEvento e = new GestoreEvento(\"Matrimonio\", orarioEvento, bellaNapoli, 40);\n\n GestoreEvento k = new GestoreEvento(\"Battesimo\", orarioEvento, bellaNapoli, 50);\n\n\n System.out.println(bellaNapoli.stampaNomeEventi());\n }", "title": "" }, { "docid": "8ddc074799f48f169841c3524b8856d5", "score": "0.592321", "text": "@Override\n public void processEvent(DataEvent event) {\n DataBank recBankEB = null;\n DataBank recEvenEB = null;\n DataBank recDeteEB = null;\n if(event.hasBank(\"REC::Particle\")) recBankEB = event.getBank(\"REC::Particle\");\n if(event.hasBank(\"REC::Event\")) recEvenEB = event.getBank(\"REC::Event\");\n if(event.hasBank(\"REC::Cherenkov\")) recDeteEB = event.getBank(\"REC::Cherenkov\");\n if(event.hasBank(\"HTCC::rec\")==true){\n\t DataBank bank = event.getBank(\"HTCC::rec\");\n\t int rows = bank.rows();\n\t for(int loop = 0; loop < rows; loop++){\n float nphe = bank.getFloat(\"nphe\", loop);\n int nhits = bank.getShort(\"nhits\", loop);\n if(nhits==0) bank.show();\n float phi = bank.getFloat(\"phi\", loop);\n float theta = bank.getFloat(\"theta\", loop);\n this.getDataGroup().getItem(1).getH1F(\"hi_nphe\").fill(nphe*1.0);\n this.getDataGroup().getItem(1).getH1F(\"hi_nhits\").fill(nhits*1.0);\n this.getDataGroup().getItem(1).getH2F(\"hi_nphe_phi\").fill(nphe*1.0,Math.toDegrees(phi));\n this.getDataGroup().getItem(1).getH2F(\"hi_nphe_theta\").fill(nphe*1.0,Math.toDegrees(theta));\n }\n }\n if(recBankEB!=null && recDeteEB!=null && recEvenEB!=null) {\n double startTime = recEvenEB.getFloat(\"startTime\", 0);\n int nrows = recBankEB.rows();\n for(int loop = 0; loop < nrows; loop++){\n int pidCode = 0;\n if(recBankEB.getInt(\"pid\", loop)!=0) pidCode = recBankEB.getInt(\"pid\", loop);\n else if(recBankEB.getByte(\"charge\", loop)==-1) pidCode = -211;\n else if(recBankEB.getByte(\"charge\", loop)==1) pidCode = 211;\n else pidCode = 22;\n Particle recParticle = new Particle(\n pidCode,\n recBankEB.getFloat(\"px\", loop),\n recBankEB.getFloat(\"py\", loop),\n recBankEB.getFloat(\"pz\", loop),\n recBankEB.getFloat(\"vx\", loop),\n recBankEB.getFloat(\"vy\", loop),\n recBankEB.getFloat(\"vz\", loop));\n for(int j=0; j<recDeteEB.rows(); j++) {\n if(recDeteEB.getShort(\"pindex\",j)==loop && recDeteEB.getByte(\"detector\",j)==DetectorType.HTCC.getDetectorId()) {\n float x = recDeteEB.getFloat(\"x\", j);\n float y = recDeteEB.getFloat(\"y\", j);\n float z = recDeteEB.getFloat(\"z\", j);\n double phi = Math.toDegrees(Math.atan2(y, x));\n double theta = Math.toDegrees(Math.acos(z/Math.sqrt(x*x+y*y+z*z)));\n this.getDataGroup().getItem(2).getH1F(\"hi_nphe_all\").fill(recDeteEB.getFloat(\"nphe\", j)*1.0);\n if(recParticle.pid()==11) {\n this.getDataGroup().getItem(2).getH1F(\"hi_nphe_ele\").fill(recDeteEB.getFloat(\"nphe\", j)*1.0);\n this.getDataGroup().getItem(2).getH1F(\"hi_time\").fill(recDeteEB.getFloat(\"time\", j)-recDeteEB.getFloat(\"path\", j)/29.97-startTime);\n }\n this.getDataGroup().getItem(2).getH2F(\"hi_phi_TBT\").fill(Math.toDegrees(recParticle.phi()),phi);\n this.getDataGroup().getItem(2).getH2F(\"hi_theta_TBT\").fill(Math.toDegrees(recParticle.theta()),theta);\n }\n }\n }\n } \n }", "title": "" }, { "docid": "05742d57f3b3b527fe6e4a2959a12703", "score": "0.58612686", "text": "public static Evento e6(){\n return new Evento(\n tabTitles[2],\n \"Estreno y pintacaras de Buscando a Dory\",\n \"Ahora que sabes hablar balleno, ¡sólo falta el maquillaje! \\uD83D\\uDE0F \\uD83D\\uDC1F\\uD83D\\uDC19\\n\" +\n \"\\n\" +\n \"¡Hoy miércoles tenemos talleres pintacaras de \\u202A#\\u200EBuscandoADory\\u202C! ¡Consulta los horarios de tu Cinesa! \\uD83D\\uDC47\\n\" +\n \"\\n\" +\n \"- Parc Vallés: de 17:30 a 19:30h\\n\" +\n \"- Diagonal: de 17:30 a 19:30h\\n\" +\n \"- Diagonal Mar: de 17:30 a 19:30h\\n\" +\n \"- Nassica: de 17:30 a 19:30h\\n\" +\n \"- Las Rozas: de 17:30 a 19:30h\\n\" +\n \"- Méndez Álvaro: de 17:30 a 19:30h\\n\" +\n \"- Puerto Venecia: de 17:30h a 19:30h\\n\" +\n \"- Max Ocio: de 17:30h a 19:30h\",\n \"24/06/2016\",\n \"\",\n \"https://scontent-mad1-1.xx.fbcdn.net/v/t1.0-9/13512064_1299814030047216_7003343745632244248_n.jpg\",\n \"Cinesa, Marineda City\"\n );\n }", "title": "" }, { "docid": "020208f144f14d1523050c415edf091c", "score": "0.58016694", "text": "public void alberoDatiModAz(AlberoDatiModEve unEvento) {\n }", "title": "" }, { "docid": "00b828b1b3c423be335dcd608932f811", "score": "0.5798102", "text": "public static Evento e2(){\n return new Evento(\n tabTitles[1],\n \"Siniestro Total+Os Diplomáticos de Monte Alto+Bastards\",\n \"La noche de San Xoán es una noche especial, de conjuros y deseos pero también de música. Los coruñeses podrán bailar a ritmo de Rock And Roll a la orilla del mar con la legendaria banda Siniestro Total, los punk rockeros Bastards y la mítica banda coruñesa Os Diplomáticos de Montealto.\\n\" +\n \"\\n\" +\n \"23:00 - 00:00 Bastards\\n\" +\n \"00:15 - 01:15 Os Diplomáticos de Monte Alto\\n\" +\n \"01:30 - 02:45 Siniestro Total\\n\" +\n \"\\n\" +\n \"Entrada gratuita\",\n \"23/06/2016\",\n \"Gratis\",\n \"https://scontent-mad1-1.xx.fbcdn.net/t31.0-8/13323651_1208731279177116_1229166753372031349_o.jpg\",\n \"Playa Riazor\"\n );\n }", "title": "" }, { "docid": "8dbccfd6e0e3cee936defb8d39668469", "score": "0.57954603", "text": "void aggiungiEvento();", "title": "" }, { "docid": "3924903b5364c29d3e9a673861f3f46f", "score": "0.5776954", "text": "public void ConfiguracionPropiedadesEventosMasivos(){}", "title": "" }, { "docid": "70cdec994e84d13cb0c59b94879eb06b", "score": "0.5767318", "text": "public static Evento e4(){\n return new Evento(\n tabTitles[1],\n \"Jay · Dois · The Vog ✿ Ilustrados por Bea Lema · A. Gaudino\",\n \"O colectivo artístico Seara Records leva varios anos axitando o panorama, tanto dende Vigo como dende o resto das cidades onde van plantando as súas sementes. Autoedición, organización de concertos, exposicións, festivais, vídeo... Na súa faceta como selo discográfico contan entre outras con figuras tan puxantes como o punk-psicodelia-arrasador de Jay, o pop magnífico de Dois ou o dark-synth-punk de The Vog. Este sábado teremos a ocasión de disfrutar destas tres bandas nun marco irrepetible: coa súa música ilustrada en directo por Bea Lema e Alejandro Gaudino, nun dos concertos ilustrados coorganizado por Autobán. Unha combinación de cinco estrelas adicada ós paladares máis exquisitos!\\n\" +\n \"\\n\" +\n \"JAY: https://jayvigo.bandcamp.com/\\n\" +\n \"DOIS: http://doisdois.bandcamp.com/\\n\" +\n \"THE VOG: https://thevog.bandcamp.com/\\n\" +\n \"\\n\" +\n \"BEA LEMA: http://bealema.tumblr.com/\\n\" +\n \"GAUDINO: http://elgaudo.tumblr.com/\",\n \"23/07/2016\",\n \"\",\n \"https://scontent-mad1-1.xx.fbcdn.net/t31.0-8/13458496_1759339874345868_5193493549181947642_o.jpg\",\n \"Nave 1839\"\n );\n }", "title": "" }, { "docid": "953cbcfd5f917a83020779ea2e67771b", "score": "0.5757989", "text": "public static Evento e1(){\n return new Evento(\n tabTitles[1],\n \"Día de la Música\",\n \"Este año Mardi Gras participa en el Día de la Música por primera vez. Una serie de salas de toda España programamos música gratis en el entorno del día 21 de junio. Tendremos a Tu Otra Bonita y alguna sorpresa el miércoles 22 a las 21:30. Será una gran fiesta a la que te invitamos a sumarte. Suenan de vicio!\\n\" +\n \"\\u202A#\\u200EDíadelamúsica\\u202C \\u202A#\\u200EConciertos\\u202C \\u202A#\\u200ECoruña\\u202C \\u202A#\\u200EGratis\\u202C Tu Otra Bonita.\\n\" +\n \"https://www.youtube.com/watch?v=w5zZv1v_Jr0\",\n \"21/06/2016\",\n \"Gratis\",\n \"https://scontent-mad1-1.xx.fbcdn.net/v/t1.0-9/13413130_1253473308004098_8645344622323927323_n.png?oh=a0c806b86726dcf898df626a550b761e&oe=57F8DCC2\",\n \"Sala Mardigrass\"\n );\n }", "title": "" }, { "docid": "adddc7e4a5bc25a318c73cb301b64ab2", "score": "0.5749117", "text": "abstract public void procesarEvento();", "title": "" }, { "docid": "dee26575be8150c8f71e53935c810af8", "score": "0.57268566", "text": "@Override\n\tprotected void mapearTitulo(AtributoEventoMemoria att) {\n\t\t\n\t}", "title": "" }, { "docid": "7a3e9b8dff7d25a1d026eab5ed9dc88a", "score": "0.5680521", "text": "public void tratarEventoRecebido (CommunicationEvent ie) {\r\n String strCommand = ie.getCommand();\r\n if (strCommand.equals(DiagnosticEvent.SEND_RESULT)) {\r\n enviarEvento(new DiagnosticEvent(this, arquivoModel.getListaSessaoAsString()));\r\n return;\r\n }\r\n\r\n if (ie instanceof IgrafClosingEvent) {\r\n if (solicitaGravacao())\r\n System.exit(0); // must be application\r\n }\r\n else\r\n if (ie instanceof LoadingIGrafEvent) { // could be 'LoadingAppletEvent'\r\n LoadingIGrafEvent lae = (LoadingIGrafEvent) ie;\r\n if (lae.getDados() != null)\r\n arquivoModel.refazSessao(lae.getDados());\r\n }\r\n else\r\n if (strCommand.equals(JanelaHistoricoEvent.REDRAW_ALL))\r\n arquivoModel.restabelerSessao();\r\n else\r\n if (strCommand.equals(JanelaHistoricoEvent.STEP_REDRAW))\r\n arquivoModel.proximaAcao();\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuNovo\"))) {\r\n if (solicitaGravacao()) { // abort 'new' only if user chose option 'Cancel'\r\n IgrafMenuGraficoEvent imge = new IgrafMenuGraficoEvent(this, ResourceReader.msg(\"msgMenuGrfNovaSes\"));\r\n enviarEvento(imge);\r\n resetArquivo();\r\n }\r\n }\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuAbra\"))) { // Open\r\n if (solicitaGravacao()) // abort 'load' only if user chose option 'Cancel'\r\n arq.loadFile(); \r\n }\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuGrave\"))) { // Save\r\n // Behave as: 'save as', used in all (nom HTML) register option (including exercise)\r\n arquivoModel.sessionChanged(!arq.gravarGrafico()); // igraf.moduloArquivo.Arquivo arq\r\n }\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuComo\"))) { // Save as\r\n //TODO: desativado!\r\n //T System.out.println(IGCLASSPATH + \"arqMenuComo\");\r\n arquivoModel.sessionChanged(!arq.gravarComo(\"arquivo\")); // File\r\n System.err.println(IGraf.debugErrorMsg(IGCLASSPATH) + \"Error? This option is supossed to be disabled! \" + ResourceReader.msg(\"arqMenuComo\"));\r\n }\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuHTML\"))) // Export to HTML page\r\n arq.gerarHTML();\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuExerc\"))) { // Save as exercise\r\n System.err.println(IGraf.debugErrorMsg(IGCLASSPATH) + \"Error? This option is supossed to be disabled! arqMenuExerc=\" + ResourceReader.msg(\"arqMenuExerc\"));\r\n //arq.gerarHTML();\r\n }\r\n else\r\n if (strCommand.equals(ResourceReader.msg(\"arqMenuImprima\"))) // Print\r\n ; //arq.gerarHTML();\r\n else\r\n // exibe a janela do histórico\r\n if (strCommand.equals(IgrafSessaoEvent.REVIEW_SESSION_DATA)) {\r\n arquivoModel.carregarListaAcao(); \r\n }\r\n else\r\n if (strCommand.equals(IgrafSessaoEvent.UPDATE_SESSION_DATA)) {\r\n IgrafSessaoEvent ise = (IgrafSessaoEvent)ie;\r\n arquivoModel.insereSessao(ise.getSessao()); \r\n }\r\n // copiar imagem e exportar como JPG são tratados na classe igraf.moduloCentral.visao.TabbedViewer\r\n }", "title": "" }, { "docid": "3879b7fa050bee53c940a8663f8b8a68", "score": "0.5679319", "text": "public static Evento e5(){\n return new Evento(\n tabTitles[2],\n \"Cinema e muller\",\n \"Xisela Franco e Beli Martínez encabezan o proxecto “Cinema e muller” lanzado pola Deputación de Pontevedra coa vontade de visibilizar as creadoras do audiovisual. Unha iniciativa que inclúe varias accións: o mapeo de mulleres realizadoras vinculadas á provincia, a organización de charlas sobre cinema e xénero, unha mostra de cinema galego e a elaboración e estrea dunha película colaborativa realizada por dez cineastas: Eva Calvar, Olaia Sendón, Claudia Brenlla, Sonia Méndez, Andrea Zapata-Girau, Lara Bacelo, Begoña M. Santiago, Carme Nogueira, Diana Toucedo e Carla Andrade.\\n\" +\n \"\\n\" +\n \"Nesta presentación do proxecto participan Margarita Ledo, Xiana Gómez-Díaz, Xisela Franco, Beli Martínez, Diana Toucedo, Jaione Camborda e Carla Andrade, nun debate moderado por Ángel Suanzes, seguido da proxección da peza Visións.\\n\" +\n \"\\n\" +\n \"Visións. Creadoras de Cinema\\n\" +\n \"Film colectivo, 2016, vídeo, 72 min.\\n\" +\n \"Sala (S8) PALEXCO – 4/06. 16 h.\\n\" +\n \"Máis información: http://goo.gl/rgueTf\",\n \"04/07/2016\",\n \"Gratis\",\n \"https://scontent-mad1-1.xx.fbcdn.net/v/t1.0-9/13245246_1146655775378454_7961682736623781013_n.jpg\",\n \"Sala Municipal De Exposiciones Palexco\"\n );\n }", "title": "" }, { "docid": "fe03e897607aebe53b543d6f0e788bf2", "score": "0.56392604", "text": "public static void main(String[] args) {\n\n Contrato c1 = new Contrato(Calendar.getInstance(), \"Mauricio\", TipoContrato.NOVO);\n Historico h1 = new Historico();\n h1.adiciona(c1.salvaEstado());\n\n System.out.println(c1.getTipo());\n c1.avanca();\n h1.adiciona(c1.salvaEstado());\n\n System.out.println(c1.getTipo());\n c1.avanca();\n h1.adiciona(c1.salvaEstado());\n\n System.out.println(c1.getTipo());\n c1.avanca();\n h1.adiciona(c1.salvaEstado());\n\n System.out.println(c1.getTipo());\n c1.avanca();\n h1.adiciona(c1.salvaEstado());\n\n Estado e0= h1.pega(0);\n System.out.println(e0.getEstado().getTipo());\n\n Estado e1 = h1.pega(1);\n System.out.println(e1.getEstado().getTipo());\n\n Estado e2 = h1.pega(2);\n System.out.println(e2.getEstado().getTipo());\n\n Estado e3 = h1.pega(3);\n System.out.println(e3.getEstado().getTipo());\n\n\n }", "title": "" }, { "docid": "db180bde5a43a178b7ad8dc5b383854e", "score": "0.5627863", "text": "protected void eventoStampa() {\n try { // prova ad eseguire il codice\n this.stampaDialogo();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "title": "" }, { "docid": "156758956f3062ba10196a4ef31cb2b9", "score": "0.56182283", "text": "@Override\r\n public <T extends Evento> int guardarEventos(T... eventos) {\n return 0;\r\n }", "title": "" }, { "docid": "8b4228ca73e4c3d6f2b1b5bbb28a0648", "score": "0.5592989", "text": "@Override\n\tpublic void Process() {\n\t\tthis.avion.getTaxiWayOut().setState(etat.active);\n\t\t\n\t\t// event liberation des entit�es\n\t\tthis.motor.getListEvent().add(new LiberationTaxiWayOutEvent(this.SimulationDate(),\n\t\t\t\t\t\t\t\tthis.motor));\n\t\t\n\t\t// Calcul de l'offset\n\t\tlong tempsatt = (long)globalVariables.takeOffTime[0];\n\t\tLogicalDuration offset = LogicalDuration.ofMinutes(tempsatt);\n\t\t\n\t\t// Event Destruction avion \n\t\tthis.motor.getListEvent().add(new FinDecollageEvent(this.SimulationDate().add(offset),\n\t\t\t\tthis.motor, piste,this.avion));\n\n\t\t//Logger\t\n\t\tthis.motor.ecritureLoggerEvenement(\"Décollage\",this.avion.getIdentifier());\n\t\t\n\t}", "title": "" }, { "docid": "049a363c7e362fcee5d7182cc6e084f8", "score": "0.5565088", "text": "private void createEvents() {\n\r\n\t}", "title": "" }, { "docid": "f7d820657aabc4932c56c25f69d5cbaa", "score": "0.55568576", "text": "public void pipeMsgEvent(PipeMsgEvent event) {\r\n\r\n //recuperation du message venant d'arriver et de son type\r\n Message message = event.getMessage();\r\n String type = message.getMessageElement(\"Type\").toString();\r\n\r\n //il s'agit d'un message texte provenant de la partie \"chat\"\r\n if (type.equals(\"MESSAGE\")) {\r\n monPair.afficheMessage(message.getMessageElement(\"Auteur\").toString() + \": \" + message.getMessageElement(\"Texte\").toString());\r\n }\r\n //c'est un message de demande de la liste de documents (appui sur bouton \"chercher\")\r\n if (type.equals(\"DEMANDE_LISTE_DOCUMENTS\")) {\r\n monPair.afficheMessage(\"Demande de liste de doc de :\" + message.getMessageElement(\"Auteur\").toString());\r\n monPair.repondreListe(message.getMessageElement(\"Auteur\").toString());\r\n }\r\n //c'est un message contenant la liste des documents d'un pair\r\n if (type.equals(\"ENVOI_LISTE\")) {\r\n monPair.afficheMessage(\"Reception liste de \" + message.getMessageElement(\"Auteur\").toString());\r\n monPair.messageListeRecu(message.getMessageElement(\"Auteur\").toString(),message.getMessageElement(\"Liste\").toString());\r\n \r\n }\r\n //message de demande d'un document particulier (appui sur bouton \"afficher\")\r\n if (type.equals(\"DEMANDE_DOC\")) {\r\n monPair.traiterDemandeDocument(message.getMessageElement(\"Auteur\").toString(),message.getMessageElement(\"NomDocument\").toString());\r\n }\r\n //reception d'un message contenant un document suite a une demande du pair\r\n if (type.equals(\"ENVOI_DOC\")) {\r\n monPair.receptionDocument(message.getMessageElement(\"Auteur\").toString(),message.getMessageElement(\"Contenu\").toString());\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "001b6b5199322c8c737aa6191b41a0f0", "score": "0.5549085", "text": "public void preencheEventos(String filename) throws IOException {\n\n // Eliminar os dados que possam estar na lista de eventos\n this.eventos.clear();\n\n List<String> linhas = Reader.read_lines(filename);\n\n int i = 1;\n // Iterar pelas varias linhas e adicionar os respetivos campos\n for (String linha : linhas){\n // Fazer parse ao varios campos de cada linha\n String[] campos = linha.split(\";\");\n // <ident>;<msgpast>;<msgpres>;<msgfut>;data;hora;datadel;horadel\n String ident = campos[0].replace(\"\\\"\",\"\");\n String msgpast = campos[1].replace(\"\\\"\",\"\");\n String msgpres = campos[2].replace(\"\\\"\",\"\");\n String msgfut = campos[3].replace(\"\\\"\",\"\");\n LocalDate data = LocalDate.parse(campos[4]);\n LocalTime hora = LocalTime.parse(campos[5]);\n LocalDate datadel = LocalDate.parse(campos[6]);\n LocalTime horadel = LocalTime.parse(campos[7]);\n Event evento = new Event(i,ident,msgpast,msgpres,msgfut,data,hora,datadel,horadel);\n this.eventos.add(evento);\n i++;\n }\n }", "title": "" }, { "docid": "be0f7b325de7333b92f4a1eaa930e3c5", "score": "0.55484515", "text": "public void ConfigEventos_Recargos(){}", "title": "" }, { "docid": "3974386a5683a024e81099f267c2f5cc", "score": "0.55292606", "text": "public Evento getEventos() {\r\n\t\treturn eventos;\r\n\t}", "title": "" }, { "docid": "09b8bb246fdcfd612200863797d0c547", "score": "0.54991263", "text": "private void setEtiquetas()\n\t{\n\t\tsetTitulo(Mensajes.get(\"XConsignacion\"));\n\t\tButton btn = (Button) findViewById(R.id.btnContinuar);\n\t\tbtn.setText(Mensajes.get(\"XContinuar\"));\n\t\tbtn.setOnClickListener(mContinuar);\n\t\tmTexto = (TextView) findViewById(R.id.lblCliente);\n\t\tcliente = (Cliente) Sesion.get(Campo.ClienteActual);\n\t\tmTexto.setText(cliente.Clave + \" - \" + cliente.RazonSocial);\n\t\tmTexto = (TextView) findViewById(R.id.lblRuta);\n\t\tmTexto.setText(Mensajes.get(\"XRuta\") + \": \" + ((Ruta) Sesion.get(Campo.RutaActual)).Descripcion);\n\t\tmTexto = (TextView) findViewById(R.id.lblDia);\n\t\tmTexto.setText(Mensajes.get(\"XDiaTrabajo\") + \": \" + ((Dia) Sesion.get(Campo.DiaActual)).DiaClave);\n\t}", "title": "" }, { "docid": "1a3be25291abd30b2a42faf7128789d8", "score": "0.54916507", "text": "private void enviarventas(int id) {\n\t\ttry {\n\t\t\tArrayList<sale> sales;\n\t\t\tsales = bbdd.getSales(id);\n\t\t\tout.writeObject(sales);\n\t\t\tSystem.out.println(\"ventas enviados\");\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": "f6983abbfeed37ee2becc724b1aafea8", "score": "0.54682076", "text": "public void emitirParticipaciones() {\n\n //en esta funcion, la empresa indica que quiere crear un nuevo lote de participaciones\n //cuando lo hace, tendrán que añadirse las participaciones a su cartera de participaciones\n //esta cartera puede tener participacioens de otras empresas asi que debemos identificar\n //la tabla de esta empresa en su cartera y sumarlas ahi, es decir no creamos un objeto participaciones\n //cada vez que se añaden, si no que se suman a esa tabla que tiene como PK a esta empresa, y como PKp a esta empresa de nuevo\n if (!numeroParticipacionesTextBox.validateInput()) {\n if (numeroParticipacionesTextBox.getText().isEmpty()) {\n FachadaGUI.muestraExcepcion(\"El número de participaciones no se ha introducido!\", DialogoInfo.NivelDeAdvertencia.ADVERTENCIA);\n } else {\n FachadaGUI.muestraExcepcion(\"El número de participaciones no es correcto!\", DialogoInfo.NivelDeAdvertencia.ADVERTENCIA);\n }\n return;\n }\n\n int cantidad = Integer.parseInt(numeroParticipacionesTextBox.getText());\n if (cantidad == 0) {\n return;\n }\n\n fa.emitirParticipaciones(e, cantidad); //hay que meter las participaciones con el precio a la tabla de oferta venta para que ya se genere automatico\n this.actualizarDatos();\n }", "title": "" }, { "docid": "a779c8fa003525e9f8fe87b3f0e33d7d", "score": "0.5430626", "text": "@Override\n\tprotected void mapearFechaCreacion(AtributoEventoMemoria att) {\n\t\t\n\t}", "title": "" }, { "docid": "963f36f7c22c8e50c61d1491c913c853", "score": "0.54146844", "text": "@Override\n\tprotected void mapearPonderacion(AtributoEventoMemoria att) {\n\t\t\n\t}", "title": "" }, { "docid": "6f057e6b5bf7173ef51cdf4ea388d156", "score": "0.5414058", "text": "@Override\n\tpublic List<Detalle_venta> readAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "24241a70592a7a8fa529c457614469f3", "score": "0.539371", "text": "public static List<Event> getEventData() {\n List<Event> eventData = new ArrayList<>();\n for (int i = 0; i < 12; i++) {\n eventData.add(\n new Event(\"Event\", \"136 102nd\", \"This is a family event\")\n );\n }\n\n return eventData;\n }", "title": "" }, { "docid": "8d378ddd5f8dd2ed5410e6b9e8990ad3", "score": "0.5388634", "text": "public List<Event> readAll(){\n\t\t try {\n\t\t\t // create a bufferedReader to read line from \n\t\t \tjava.io.FileReader fileReader = new java.io.FileReader(this.fileName); \n\t\t \tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\t String line; \n\t\t\t \n\t\t\t /* for each event, read the next line of the file, while \n\t\t\t * there is another line of text: */\n\t\t\t while( ( line = bufferedReader.readLine() ) != null ) {\n\t\t\t \t\n\t\t\t \t// ignore lines that start with '*'\n\t\t\t \tif(line.startsWith(\"*\")){\n\t\t\t \t\tcontinue;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \tEvent ev = new Event();\n\t\t\t \t\n\t\t\t \t// set prio \n\t\t\t\t\tev.setPriority(Integer.parseInt(line));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set year\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setYear(Integer.parseInt(line));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set month\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setMonth(Integer.parseInt(line));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set day\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setDay(Integer.parseInt(line));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set startTime\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.getStartTime().setHours(Integer.parseInt(line.substring(0,2)));\n\t\t\t\t\tev.getStartTime().setMins(Integer.parseInt(line.substring(2,4)));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set endTime\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.getEndTime().setHours(Integer.parseInt(line.substring(0,2)));\n\t\t\t\t\tev.getEndTime().setMins(Integer.parseInt(line.substring(2,4)));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set color\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setColor(line);\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set title\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setTitle(line);\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set description\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setDescription(line);\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set location\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setLoaction(line);\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set isAllDay\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.setIsAllDay(Boolean.parseBoolean(line));\n\t\n\t\t\t\t\t// repeat options\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set isRepeatedWeekly\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.getRepeatController().setIsRepeatedWeekly(Boolean.parseBoolean(line));\n\t\n\t\t\t\t\t// read next line and set isRepeatedMonthly\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.getRepeatController().setIsRepeatedMonthly(Boolean.parseBoolean(line));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set isRepeatedYearly\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tev.getRepeatController().setIsRepeatedYearly(Boolean.parseBoolean(line));\n\t\t\t\t\t\n\t\t\t\t\t// read next line and set isRepeatedDaily[i] if i is contained by line\t\n\t\t\t\t\tline = bufferedReader.readLine();\n\t\t\t\t\tfor(int i = 0; i < 7; i++){\n\t\t\t\t\t\tif(line.contains(\"\" + i)){\n\t\t\t\t\t\t\tev.getRepeatController().setIsRepeatedDaily(i, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// add event to the list \n\t\t\t\t\tfileEvents.add(ev);\n\t\t\t\t\t\n\t\t\t }\n\t\t \t\n\t\t \tfileReader.close();\n\t\n\t\t } \n\t\t catch (Exception ex) {\n\t\t\t System.err.println(ex );\n\t\t }\n\t\t\n\t\treturn fileEvents;\n\t\t\n\t}", "title": "" }, { "docid": "d58aa1aba302dfa2dc63a49387e844e7", "score": "0.5381284", "text": "private void formataInformacoesNaTela() {\n\t\tTypeface fontNegrito = Typeface.createFromAsset(this.getAssets(),\n\t\t\t\tConfiguracaoFontCaminho.FONT_SENSATION_NEGRITO);\n\t\tTypeface fontNormal = Typeface.createFromAsset(this.getAssets(),\n\t\t\t\tConfiguracaoFontCaminho.FONT_SENSATION_REGULAR);\n\n\t\t// Essa classe é chamada quando um objeto está ligado a um editável,\n\t\t// seus métodos serão chamados quando o texto for alterado.\n\t\tTextWatcher textWatcher = new TextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t}\n\n\t\t\t// Este método é chamado para informar que, em algum lugar dentro s\n\t\t\t// , o texto foi alterado\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tligaLimpaErros(s);\n\t\t\t}\n\t\t};\n\n\t\tedtTextNomeEmpresa = (EditText) findViewById(R.id.editTextNomeEmpresa);\n\t\tedtTextNomeEmpresa.addTextChangedListener(textWatcher);\n\n\t\tedtTextFoneEmpresa = (EditText) findViewById(R.id.editTextTelefoneEmpresa);\n\t\tedtTextNomeFuncionario = (EditText) findViewById(R.id.editTextNomeFuncionario);\n\t\tedtTextComentariosObservacoes = (EditText) findViewById(R.id.editTextComentario);\n\n\t\tTextView textoIntroducao = (TextView) findViewById(R.id.textViewIntroducao);\n\t\tTextView textoPergunta = (TextView) findViewById(R.id.textViewPergunta);\n\t\tTextView textoNomeEmpresa = (TextView) findViewById(R.id.textViewNomeEmpresa);\n\t\tTextView textoFoneEmpresa = (TextView) findViewById(R.id.textViewFoneEmpresa);\n\t\tTextView textoNomeFuncionario = (TextView) findViewById(R.id.textViewNomeFuncionario);\n\t\tTextView textoComentarios = (TextView) findViewById(R.id.textViewComentario);\n\n\t\tcomRespostaSim = (CheckBox) findViewById(R.id.comRespostaSim);\n\t\tcomRespostaNao = (CheckBox) findViewById(R.id.comRespostaNao);\n\n\t\tbotaoEnviar = (ImageButton) findViewById(R.id.btEnviar);\n\t\tbotaoCancelar = (ImageButton) findViewById(R.id.btCancelar);\n\n\t\ttextoIntroducao.setTypeface(fontNegrito);\n\t\ttextoPergunta.setTypeface(fontNormal);\n\t\ttextoNomeEmpresa.setTypeface(fontNormal);\n\t\ttextoFoneEmpresa.setTypeface(fontNormal);\n\t\ttextoNomeFuncionario.setTypeface(fontNormal);\n\t\ttextoComentarios.setTypeface(fontNormal);\n\n\t\tcomRespostaSim.setTypeface(fontNormal);\n\t\tcomRespostaNao.setTypeface(fontNormal);\n\n\t\tMaskEditTextChangedListener maskFone = new MaskEditTextChangedListener(\"(##)#####-####\", edtTextFoneEmpresa);\n\t\tedtTextFoneEmpresa.addTextChangedListener(maskFone);\n\t\tscroll = (ScrollView) findViewById(R.id.ScrollView01sugerir);\n\n\t\tedtTextComentariosObservacoes.setOnFocusChangeListener(new OnFocusChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tscroll.post(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tscroll.scrollTo( botaoCancelar.getLeft() , botaoCancelar.getRight());\n\t\t\t\t\t\t//scroll.fullScroll(View.FOCUS_DOWN);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\t\n\t\tedtTextComentariosObservacoes.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tscroll.post(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tscroll.scrollTo( botaoCancelar.getLeft() , botaoCancelar.getRight());\n\t\t\t\t\t\t//scroll.fullScroll(View.FOCUS_DOWN);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\n\t}", "title": "" }, { "docid": "935f1e7ba7e42535aa8e48cb398cc1e2", "score": "0.53795767", "text": "public void initializeDB() {\n\n\t\tdb.getTransaction().begin();\n\t\ttry {\n\t\t\tLocale.setDefault(new Locale(c.getLocale()));\n\t\t\tCalendar today = Calendar.getInstance();\n\n\t\t\tint month = today.get(Calendar.MONTH);\n\t\t\tmonth += 1;\n\t\t\tint year = today.get(Calendar.YEAR);\n\t\t\tif (month == 12) {\n\t\t\t\tmonth = 0;\n\t\t\t\tyear += 1;\n\t\t\t}\n\n\t\t\tEvent ev1 = new Event(1, \"Atlético-Athletic\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev2 = new Event(2, \"Eibar-Barcelona\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev3 = new Event(3, \"Getafe-Celta\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev4 = new Event(4, \"Alavés-Deportivo\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev5 = new Event(5, \"Español-Villareal\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev6 = new Event(6, \"Las Palmas-Sevilla\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev7 = new Event(7, \"Malaga-Valencia\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev8 = new Event(8, \"Girona-Leganés\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev9 = new Event(9, \"Real Sociedad-Levante\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev10 = new Event(10, \"Betis-Real Madrid\", UtilDate.newDate(year, month, 17), \"Soccer\", \"La Liga\");\n\n\t\t\tEvent ev11 = new Event(11, \"Atletico-Athletic\", UtilDate.newDate(year, month, 1), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev12 = new Event(12, \"Eibar-Barcelona\", UtilDate.newDate(year, month, 1), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev13 = new Event(13, \"Getafe-Celta\", UtilDate.newDate(year, month, 1), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev14 = new Event(14, \"Alavés-Deportivo\", UtilDate.newDate(year, month, 1), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev15 = new Event(15, \"Español-Villareal\", UtilDate.newDate(year, month, 1), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev16 = new Event(16, \"Las Palmas-Sevilla\", UtilDate.newDate(year, month, 1), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev111 = new Event(11, \"Atletico-Athletic\", UtilDate.newDate(2021, 2, 2), \"Soccer\", \"La Liga\"); // probatarako\n\n\t\t\tEvent ev17 = new Event(17, \"Málaga-Valencia\", UtilDate.newDate(year, month + 1, 28), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev18 = new Event(18, \"Girona-Leganés\", UtilDate.newDate(year, month + 1, 28), \"Soccer\", \"La Liga\");\n\t\t\tEvent ev19 = new Event(19, \"Real Sociedad-Levante\", UtilDate.newDate(year, month + 1, 28), \"Soccer\",\n\t\t\t\t\t\"La Liga\");\n\t\t\tEvent ev20 = new Event(20, \"Betis-Real Madrid\", UtilDate.newDate(year, month + 1, 28), \"Soccer\", \"La Liga\");\n\n\t\t\tAdmin ad = new Admin(\"Admin\", \"Admin\");\n\t\t\tLangilea l = new Langilea(\"Langilea\", \"Langilea\");\n\t\t\tBezero b1 = new Bezero(\"Bezero1\", \"Bezero1\", \"W\", \"E\", \"111\", UtilDate.newDate(2000, 1, 1), 2, \"w@m\");\n\t\t\tb1.addDirua(30);\n\t\t\tb1.addMugimendua(30, ResourceBundle.getBundle(\"Etiquetas\").getString(\"DiruaSartu\"), true);\n\t\t\tb1.restDirua(5);\n\t\t\tb1.addMugimendua(-5,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Apustua\"),false);\n\t\t\tb1.addDirua(7);\n\t\t\tb1.addMugimendua(7,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Win\"),false);\n\t\t\tb1.restDirua(3);\n\t\t\tb1.addMugimendua(-3,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Apustua\"),false);\n\t\t\tb1.addDirua(10);\n\t\t\tb1.addMugimendua(10,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Win\"),false);\n\t\t\tBezero b2 = new Bezero(\"Bezero2\", \"Bezero2\", \"W\", \"E\", \"111\", UtilDate.newDate(2000, 1, 1), 2, \"w@m\");\n\t\t\tBezero b3 = new Bezero(\"Bezero3\", \"Bezero3\", \"W\", \"E\", \"111\", UtilDate.newDate(2000, 1, 1), 2, \"w@m\");\n\t\t\tb3.setKopiatu(true);\n\t\t\tb3.addDirua(5);\n\t\t\tb3.addMugimendua(5, ResourceBundle.getBundle(\"Etiquetas\").getString(\"DiruaSartu\"), true);\n\t\t\tb3.restDirua(3);\n\t\t\tb3.addMugimendua(-3,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Apustua\"),false);\n\t\t\tBezero b4 = new Bezero(\"Bezero4\", \"Bezero4\", \"W\", \"E\", \"111\", UtilDate.newDate(2000, 1, 1), 2, \"w@m\");\n\t\t\tBezero b5 = new Bezero(\"Bezero5\", \"Bezero5\", \"W\", \"E\", \"111\", UtilDate.newDate(2000, 1, 1), 2, \"w@m\");\n\t\t\tBezero b6 = new Bezero(\"Bezero6\", \"Bezero6\", \"W\", \"E\", \"111\", UtilDate.newDate(2000, 1, 1), 2, \"w@m\");\n\t\t\tb6.setKopiatu(true);\n\t\t\tb6.addDirua(30);\n\t\t\tb6.addMugimendua(30, ResourceBundle.getBundle(\"Etiquetas\").getString(\"DiruaSartu\"), true);\n\t\t\tb6.restDirua(10);\n\t\t\tb6.addMugimendua(-10,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Apustua\"),false);\n\t\t\tb6.addDirua(20);\n\t\t\tb6.addMugimendua(20,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Win\"),false);\n\t\t\tb6.restDirua(7);\n\t\t\tb6.addMugimendua(-7,ResourceBundle.getBundle(\"Etiquetas\").getString(\"Apustua\"),false);\n\t\t\t\n\t\t\tQuestion q1;\n\t\t\tQuestion q2;\n\t\t\tQuestion q3;\n\t\t\tQuestion q4;\n\t\t\tQuestion q5;\n\t\t\tQuestion q6;\n\n\t\t\t// Pronostikoa p1;\n\t\t\t// Pronostikoa p2;\n\t\t\tPronostikoa p3;\n\t\t\tPronostikoa p4;\n\n\t\t\tif (Locale.getDefault().equals(new Locale(\"es\"))) {\n\t\t\t\tq1 = ev1.addQuestion(\"¿Quién ganará el partido?\", 1);\n\t\t\t\tq2 = ev1.addQuestion(\"¿Quién meterá el primer gol?\", 2);\n\t\t\t\tq3 = ev11.addQuestion(\"¿Quién ganará el partido?\", 1);\n\t\t\t\tq4 = ev11.addQuestion(\"¿Cuántos goles se marcarán?\", 2);\n\t\t\t\tq5 = ev17.addQuestion(\"¿Quién ganará el partido?\", 1);\n\t\t\t\tq6 = ev17.addQuestion(\"¿Habrá goles en la primera parte?\", 2);\n\t\t\t} else if (Locale.getDefault().equals(new Locale(\"en\"))) {\n\t\t\t\tq1 = ev1.addQuestion(\"Who will win the match?\", 1);\n\t\t\t\tq2 = ev1.addQuestion(\"Who will score first?\", 2);\n\t\t\t\tq3 = ev11.addQuestion(\"Who will win the match?\", 1);\n\t\t\t\tq4 = ev11.addQuestion(\"How many goals will be scored in the match?\", 2);\n\t\t\t\tq5 = ev17.addQuestion(\"Who will win the match?\", 1);\n\t\t\t\tq6 = ev17.addQuestion(\"Will there be goals in the first half?\", 2);\n\t\t\t} else {\n\t\t\t\tq1 = ev1.addQuestion(\"Zeinek irabaziko du partidua?\", 1);\n\t\t\t\tq2 = ev1.addQuestion(\"Zeinek sartuko du lehenengo gola?\", 2);\n\t\t\t\tq3 = ev11.addQuestion(\"Zeinek irabaziko du partidua?\", 1);\n\t\t\t\tq4 = ev11.addQuestion(\"Zenbat gol sartuko dira?\", 2);\n\t\t\t\tq5 = ev17.addQuestion(\"Zeinek irabaziko du partidua?\", 1);\n\t\t\t\tq6 = ev17.addQuestion(\"Golak sartuko dira lehenengo zatian?\", 2);\n\n\t\t\t}\n\t\t\tQuestion q7 = ev111.addQuestion(\"Zeinek irabaziko du partidua?\", 1);\n\t\t\tp3 = q7.addPronostikoa(\"Atletico\", 2);\n\t\t\tp4 = q7.addPronostikoa(\"Athletic\", 4);\n\t\t\tPronostikoa p5= q1.addPronostikoa(\"Atletico\", (float)1.2);\n\t\t\tPronostikoa p6= q1.addPronostikoa(\"Athletic\", 2);\n\t\t\tPronostikoa p7= q2.addPronostikoa(\"Atletico\", (float)1.5);\n\t\t\tPronostikoa p8= q2.addPronostikoa(\"Athletic\", 2);\n\n\t\t\tb1.addDirua(10);\n\t\t\tb1.addMugimendua(10, ResourceBundle.getBundle(\"Etiquetas\").getString(\"DiruaSartu\"), true);\n\t\t\tb2.addDirua(10);\n\t\t\tb2.addMugimendua(10, ResourceBundle.getBundle(\"Etiquetas\").getString(\"DiruaSartu\"), true);\n\t\t\t\n\t\t\tKodea k1 = b1.addUnekoKodea();\n\t\t\tk1.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k1);\n\t\t\tKodea k2 = b1.addUnekoKodea();\n\t\t\tk2.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k2);\n\t\t\tKodea k3 = b1.addUnekoKodea();\n\t\t\tk3.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k3);\n\t\t\tKodea k4 = b1.addUnekoKodea();\n\t\t\tk4.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k4);\n\t\t\tKodea k5 = b1.addUnekoKodea();\n\t\t\tk5.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k5);\n\t\t\tKodea k6 = b1.addUnekoKodea();\n\t\t\tk6.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k6);\n\t\t\tKodea k7 = b1.addUnekoKodea();\n\t\t\tk7.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k7);\n\t\t\tKodea k8 = b1.addUnekoKodea();\n\t\t\tk8.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k8);\n\t\t\tKodea k9 = b1.addUnekoKodea();\n\t\t\tk9.setUsed(true);\n\t\t\tb1.addAurrekoKodea(k9);\n\t\t\tb1.setUnekoKodea(null);\n\t\t\t\n\n\t\t\tdb.persist(k1);\n\t\t\tdb.persist(k2);\n\t\t\tdb.persist(k3);\n\t\t\tdb.persist(k4);\n\t\t\tdb.persist(k5);\n\t\t\tdb.persist(k6);\n\t\t\tdb.persist(k7);\n\t\t\tdb.persist(k8);\n\t\t\tdb.persist(k9);\n\t\t\t\n\t\t\tdb.persist(p3);\n\t\t\tdb.persist(p4);\n\n\t\t\tdb.persist(q1);\n\t\t\tdb.persist(q2);\n\t\t\tdb.persist(q3);\n\t\t\tdb.persist(q4);\n\t\t\tdb.persist(q5);\n\t\t\tdb.persist(q6);\n\t\t\tdb.persist(q7);\n\n\t\t\tdb.persist(ev1);\n\t\t\tdb.persist(ev2);\n\t\t\tdb.persist(ev3);\n\t\t\tdb.persist(ev4);\n\t\t\tdb.persist(ev5);\n\t\t\tdb.persist(ev6);\n\t\t\tdb.persist(ev7);\n\t\t\tdb.persist(ev8);\n\t\t\tdb.persist(ev9);\n\t\t\tdb.persist(ev10);\n\t\t\tdb.persist(ev11);\n\t\t\tdb.persist(ev111); ///\n\t\t\tdb.persist(ev12);\n\t\t\tdb.persist(ev13);\n\t\t\tdb.persist(ev14);\n\t\t\tdb.persist(ev15);\n\t\t\tdb.persist(ev16);\n\t\t\tdb.persist(ev17);\n\t\t\tdb.persist(ev18);\n\t\t\tdb.persist(ev19);\n\t\t\tdb.persist(ev20);\n\n\t\t\tdb.persist(ad);\n\t\t\tdb.persist(l);\n\t\t\tdb.persist(b1);\n\t\t\tdb.persist(b2);\n\t\t\tdb.persist(b3);\n\t\t\tdb.persist(b4);\n\t\t\tdb.persist(b5);\n\t\t\tdb.persist(b6);\n\t\t\tdb.persist(p5);\n\t\t\tdb.persist(p6);\n\t\t\tdb.persist(p7);\n\t\t\tdb.persist(p8);\n\n\t\t\tdb.getTransaction().commit();\n\t\t\tSystem.out.println(\"Db initialized\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8d8dbb64dabce1df12e7fa0f780296a0", "score": "0.53772837", "text": "@Override\n\tprotected void mapearFecha(AtributoEventoMemoria att) {\n\t\t\n\t}", "title": "" }, { "docid": "f9cee3b8230e576da86e82d217a0ce44", "score": "0.5377082", "text": "private static void loadEventsMeta() {\n\t\tif (MainUtilities.isFileInDirectory(extracted, \"events.info\")) {\n\t\t\ttry {\n\t\t\t\tScanner s = new Scanner(new File(extracted.getAbsolutePath() + File.separator + \"events.info\"));\n\t\t\t\tint amt = s.nextInt();\n\t\t\t\ts.nextLine();\n\t\t\t\tfor (int i = 0; i < amt; i++) {\n\t\t\t\t\tString desc = s.nextLine();\n\t\t\t\t\tString[] parts = desc.split(\":\");\n\t\t\t\t\tTileEvent evt = new TileEvent();\n\t\t\t\t\tevt.setEventType(TileEvent.TileEventType.valueOf(parts[0]));\n\t\t\t\t\tint x = Integer.parseInt(parts[1]);\n\t\t\t\t\tint y = Integer.parseInt(parts[2]);\n\t\t\t\t\tString tilesheet = parts[3];\n\t\t\t\t\tmap.setInUseTilesheet(tilesheet);\n\t\t\t\t\tTile t = map.getTileAtPosition(x, y);\n\t\t\t\t\tevt.setAffectedTile(t);\n\t\t\t\t\tString entityType = parts[4];\n\t\t\t\t\tevt.setEntityType(entityType);\n\t\t\t\t\tString method = parts[5];\n\t\t\t\t\tevt.setMethod(method);\n\t\t\t\t\tmap.addTileEvent(evt);\n\t\t\t\t}\n\t\t\t\ts.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tthrow new MapException(\"Could not load events.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f813ed95c5f9b76dcacee6d9725ed774", "score": "0.536817", "text": "public abstract void ultimoRecord(ActionEvent unEvento, Azione unAzione);", "title": "" }, { "docid": "a0ef7f51da5b1d14581419a2414f0fbb", "score": "0.53640795", "text": "@Override\n\tprotected void mapearPais(AtributoEventoMemoria att) {\n\t\t\n\t}", "title": "" }, { "docid": "e147d28a4c38372d342eec24b217b590", "score": "0.5326439", "text": "public interface Event extends Parcelable {\n\n\tpublic long getType();\n\tpublic int getColor();\n\tpublic String getSymbol();\n\tpublic DateTime getDate();\n\n\t// Duration in hours\n\tpublic float getDuration();\n\n\tpublic void setDate(DateTime date);\n}", "title": "" }, { "docid": "2393a3359ff3dd7159851434a11ac879", "score": "0.5325254", "text": "public void gestionarTrabajador(){\n detenerTimerIteracion();\n verificarDirectorio();\n// miVentanaPrincipal.MensajeLog(\"Se ha iniciado el Servicio\");\n /*PRIMERO GESTIONO LOS CARGOS*/\n miVentanaPrincipal.MensajeLog(miLogica.validarEliminacion(MENSAJES.PROCESO_CARGO),MENSAJES.PROCESO_CARGO);\n miVentanaPrincipal.MensajeLog(miLogica.validarIngreso(MENSAJES.PROCESO_CARGO),MENSAJES.PROCESO_CARGO);\n\n /*SEGUNDO GESTIONO LOS BANCOS*/\n miVentanaPrincipal.MensajeLog(miLogica.validarEliminacion(MENSAJES.PROCESO_BANCO),MENSAJES.PROCESO_BANCO);\n miVentanaPrincipal.MensajeLog(miLogica.validarIngreso(MENSAJES.PROCESO_BANCO),MENSAJES.PROCESO_BANCO); \n /*\n ABAJO VALIDO LA CREACION DEL ARCHIVO\n */\n miVentanaPrincipal.MensajeLog(miLogica.validarCreacionArchivo(MENSAJES.PROCESO_TRABAJADOR,'&'),MENSAJES.PROCESO_TRABAJADOR);\n /*\n ABAJO VALIDO LA CREACION DEL ARCHIVO\n */\n miVentanaPrincipal.MensajeLog(miLogica.validarCreacionArchivo(MENSAJES.PROCESO_AREATRABAJO,'&'),MENSAJES.PROCESO_AREATRABAJO); \n miVentanaPrincipal.MensajeLog(miLogica.validarEliminacion(MENSAJES.PROCESO_AREATRABAJO),MENSAJES.PROCESO_AREATRABAJO);\n miVentanaPrincipal.MensajeLog(miLogica.validarIngresoArchivo(MENSAJES.PROCESO_AREATRABAJO),MENSAJES.PROCESO_AREATRABAJO);\n //\n miVentanaPrincipal.MensajeLog(miLogica.validarEliminacion(MENSAJES.PROCESO_TRABAJADOR),MENSAJES.PROCESO_TRABAJADOR);\n miVentanaPrincipal.MensajeLog(miLogica.validarIngresoArchivo(MENSAJES.PROCESO_TRABAJADOR),MENSAJES.PROCESO_TRABAJADOR);\n miVentanaPrincipal.MensajeLog(\"\\n\",false);\n //inicio el timer con el tiempo de intervalo de trabajador pero al llegar a trabajador el ciclo comeinza nuevamente, por lo que debo agregar los 120 minutos mas el tiempo agregado con la primera iteracion; el proceso de variables\n //en el segundo parametro agrego 0 ya que el ciclo comienza nuevamente, si agrego un valor se resta con el tiempo del ciclo actual \n int tiempo = (LogicaProcesos.TIEMPO_AGREGADO_INTERVALO_VARIABLES_ERROR_MYSQL_MIN == 0)? LogicaProcesos.TIEMPO_AGREGADO_INTERVALO_VARIABLES_MIN : LogicaProcesos.TIEMPO_AGREGADO_INTERVALO_VARIABLES_ERROR_MYSQL_MIN;\n //Vuelvo a establecer el valor en 0 para que solo ocurra una vez \n LogicaProcesos.TIEMPO_AGREGADO_INTERVALO_VARIABLES_ERROR_MYSQL_MIN = 0;\n iniciarTimerIteracion(120+tiempo, 0);\n }", "title": "" }, { "docid": "990083a980686d4145e1cad7a072c9ab", "score": "0.5320072", "text": "public Tragamoneda(){\n this.rueda1=0;\n this.rueda2=0;\n this.rueda3=0;\n this.apuesta=0;\n this.tiempo= LocalTime.now();\n }", "title": "" }, { "docid": "5064e2e5e2b62ad2dd9cd2a9cf5b32e5", "score": "0.531744", "text": "public void setVenda(Vendas pagamento, float SubTotalGeral, Fluxo f, Adcionais add) {\n for(int i=1;i<4;i++){\n if(i==1){\n v.setModoPagamento1(pagamento.getModoPagamento1());\n v.setRecebido1(pagamento.getRecebido1());\n v.setTroco(pagamento.getTroco());}\n if(i==2){\n v.setModoPagamento2(pagamento.getModoPagamento2());\n v.setRecebido2(pagamento.getRecebido2());\n v.setTroco(pagamento.getTroco());}\n if(i==3){\n v.setModoPagamento3(pagamento.getModoPagamento3());\n v.setRecebido3(pagamento.getRecebido3());\n v.setTroco(pagamento.getTroco());}\n }\n \n \n if(pagou == true){\n \n TotalGeral = TotalGeral + SubTotalGeral;\n \n // JOptionPane.showMessageDialog(null,\"Valor da Venda em setVenda:\"+SubTotalGeral);\n String Fluxo = f.getFluxoCaixa();\n Float fluxofloat = Float.parseFloat(Fluxo);\n fluxo.setFluxoCaixa(String.valueOf(fluxofloat + SubTotalGeral));\n fluxo.setAberturaData(f.getAberturaData());\n // JOptionPane.showMessageDialog(null,\"ValorFluxo em setVenda:\"+fluxo.getFluxoCaixa());\n \n \n TotalFinal = SubTotalGeral;\n AdicionaisCompra = add;\n SalvaValorVenda(v, SubTotalGeral, fluxo, add);\n \n }\n \n }", "title": "" }, { "docid": "144e4825c3b960733378b3c92f1994a6", "score": "0.53131497", "text": "public void metAJour(Evenement evn);", "title": "" }, { "docid": "a16813caa85593a76f79d569b32f9849", "score": "0.53085333", "text": "private void GravarAtendimento() {\n Atende atende = new Atende();\n atende.setData(jXDData.getDate());\n //atendeManager.create(atende);\n \n Paciente paciente = listaPaciente.get(jComboBox1.getSelectedIndex()); //Paciente selecionado\n Medico medico = listaMedico.get(jComboBox2.getSelectedIndex()); //Medico selectionado\n \n Atendimento atendimento = new Atendimento();\n atendimento.setListaSolicitacao(listaSolicitas);\n //antendiAtendimentoManager.create(atendimento);\n \n Prontuario prontuario = new Prontuario();\n prontuario.setDataInicio(jXDData1.getDate());\n prontuario.setListaAnamnese(listaAnmAnamneses);\n prontuario.setListaSolicita(listaSolicitas);\n prontuarioManager.create(prontuario);\n \n \n\n }", "title": "" }, { "docid": "da55cb93323e9d817271c5a8264c7076", "score": "0.5306897", "text": "ING getPreTmms();", "title": "" }, { "docid": "cb2845933e455a143f464472c2701373", "score": "0.5306552", "text": "private void getEvents(Document data) {\n if (data != null) {\n Element root = data.getDocumentElement();\n Node channel = root.getChildNodes().item(0);\n NodeList items = channel.getChildNodes();\n for (int i = 0; i < items.getLength(); i++) {\n Node currentChild = items.item(i);\n if (currentChild.getNodeName().equalsIgnoreCase(\"item\")) {\n NodeList itemChildren = currentChild.getChildNodes();\n Event event = new Event();\n\n // Add the event only if these two booleans are true when the event is done\n // being parsed.\n boolean inDateRange = true;\n boolean hasKeywords = false;\n List<String> keywords = bundle.getStringArrayList(\"keywords\");\n if (keywords.size() == 0) {\n hasKeywords = true;\n }\n\n // Create an empty words array [\"0\",\"0\",\"0\"] that corresponds to which\n // keywords are found in the event. [\"1\",\"1\",\"1\"] means that all keywords\n // are found.\n List<String> words = new ArrayList<String>(keywords.size());\n for (String val: keywords) words.add(new String(val));\n for (int l = 0; l < words.size(); l++) {\n words.set(l, \"0\");\n }\n\n for (int j = 0; j < itemChildren.getLength(); j++) {\n Node current = itemChildren.item(j);\n switch (current.getNodeName()) {\n case \"title\":\n for (String val: getWordList(current.getTextContent())) {\n for (int k = 0; k < keywords.size(); k++) {\n if (val.equals(keywords.get(k))) {\n words.set(k, \"1\");\n }\n }\n }\n String detritus = current.getTextContent().substring(0, 4);\n if (detritus.equals(\"\\\"Det\")) {\n inDateRange = false;\n }\n event.setTitle(current.getTextContent());\n break;\n case \"pubDate\":\n Calendar start = new GregorianCalendar();\n Calendar end = new GregorianCalendar();\n Calendar eventDate = new GregorianCalendar();\n String startDate = bundle.getString(\"startDate\");\n String endDate = bundle.getString(\"endDate\");\n if (startDate.length() != 0) {\n int startMonth = Integer.parseInt(startDate.substring(0, 2));\n int startDay = Integer.parseInt(startDate.substring(3, 5));\n int startYear = Integer.parseInt(startDate.substring(6, 10));\n start.set(startYear, startMonth, startDay);\n }\n if (endDate.length() != 0) {\n int endMonth = Integer.parseInt(endDate.substring(0, 2));\n int endDay = Integer.parseInt(endDate.substring(3, 5));\n int endYear = Integer.parseInt(endDate.substring(6, 10));\n end.set(endYear, endMonth, endDay);\n }\n\n // Retrieve the day, month, year, and time of the event, and compare\n // it to the time filter set by the user.\n int day = Integer.parseInt(current.getTextContent().substring(5, 7));\n int month = getMonthNumber(current.getTextContent().substring(8, 11));\n int year = Integer.parseInt(current.getTextContent().substring(12, 16));\n eventDate.set(year, month, day);\n if ((startDate.length() != 0) && eventDate.before(start) ||\n (endDate.length() != 0) && eventDate.after(end))\n {\n inDateRange = false;\n event.setTime(current.getTextContent());\n }\n break;\n case \"description\":\n for (String val : getWordList(current.getTextContent())) {\n for (int k = 0; k < keywords.size(); k++) {\n if (val.equals(keywords.get(k))) {\n words.set(k, \"1\");\n }\n }\n }\n event.setDescription(current.getTextContent());\n break;\n }\n }\n for (String val : words) {\n if (val.equals(\"0\")) {\n hasKeywords = false;\n break;\n }\n hasKeywords = true;\n }\n if (inDateRange && hasKeywords) {\n events.add(event);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "6907bd20b746a09e69c6c15ec0e43a7f", "score": "0.53014493", "text": "public void FazerInventario(CalendarDate data) {\n\t\t// declare quantidade : Integer, contagem : Contagem, produtos_simples :\n\t\t// Set(Produto), invent : Inventario;\n\t\t// invent := new Inventario; invent.init(data);\n\t\t// produtos_simples := self.empregadores->collect($e : Restaurante |\n\t\t// $e.produtos)->asSet;\n\t\t// for ps in produtos_simples do quantidade :=\n\t\t// produtos_simples->select(p : Produto | (p.nome =\n\t\t// ps.nome))->collect($e : Produto | $e.quantidade)->sum;\n\t\t// contagem := new Contagem; contagem.existencias := quantidade; insert\n\t\t// (contagem,ps.oclAsType(ProdutoSimples)) into Contagem_ProdutoSimples;\n\t\t// insert (invent,contagem) into Inventario_Contagem end\n\t\tInteger quantidade = 0;\n\t\tContagem contagem = new Contagem();\n\t\tInventario invent = new Inventario();\n\t\tinvent.setData(data);\n\t\tRestaurante r = empregadores().iterator().next();\n\t\tinvent.setRestaurante(r);\n\t\t\n\t\tSet<Produto> produtos_simples = r.produtos();\n\n\t\tfor (Produto produto : produtos_simples) {\n\t\t\tquantidade += produto.quantidade();\n\t\t\tcontagem.setExistencias(quantidade);\n\t\t\tDatabase.insert(contagem, produto);\n\t\t\tDatabase.insert(invent, contagem);\n\t\t}\n\t}", "title": "" }, { "docid": "dc0a0c105dbcf2a22a48c19de272d174", "score": "0.52941203", "text": "public GIVE_ATTEDENCE() {\n initComponents();\n date();\n time();\n date1();\n table();\n \n }", "title": "" }, { "docid": "8c6636d81f3fde08c0141415d40cd0d2", "score": "0.5278667", "text": "public static Evento e3(){\n return new Evento(\n tabTitles[1],\n \"Sister Cookie + May Thai & Los Torino Rockets\",\n \"El Beasto Bookings & Crapula Club presentan en concierto\\n\" +\n \"\\n\" +\n \"SISTER COOKIE\\n\" +\n \"+ MAY-THAI & LOS TORINO ROCKETS\\n\" +\n \"\\n\" +\n \"SALA: MARDI GRAS\\n\" +\n \"FECHA: VIERNES 24 JUNIO 2016\\n\" +\n \"HORA: 22:00 h\\n\" +\n \"PRECIO ENTRADAS: 13/16 €\\n\" +\n \"VENTA ANTICIPADA: DISCOS PORTOBELLO, UMMAGUMMA, BRISTOL BAR\\n\" +\n \"VENTA ON-LINE:\\n\" +\n \"TICKETEA: https://www.ticketea.com/entradas-concierto-sister-cookie-en-a-coruna/\\n\" +\n \"ENTRADIUM: http://entradium.com/entradas/sister-cookie-en-a-coruna\\n\" +\n \"WEB MARDI GRAS: http://www.salamardigras.com/newmardi/entradas/\\n\" +\n \"\\n\" +\n \"---------------------------------------------\\n\" +\n \"\\n\" +\n \"Web SISTER COOKIE: http://www.sistercookie.co.uk/\\n\" +\n \"Web MAY THAI & LOS TORINO ROCKETS: https://www.facebook.com/MayThaiyLosTorinoRockets/\\n\" +\n \"\\n\" +\n \"Videos SISTER COOKIE: https://www.youtube.com/user/SISTERCOOKIEroots\\n\" +\n \"Video MAY THAI & LOS TORINO ROCKETS: https://youtu.be/lY_0LdnMXRY\\n\" +\n \"\\n\" +\n \"---------------------------------------------\\n\" +\n \"\\n\" +\n \"Toda la info: http://elbeasto.com/bookings/Conciertos/SisterCookie.html\\n\" +\n \"\\n\" +\n \"---------------------------------------------\\n\" +\n \"\\n\" +\n \"\\n\" +\n \"SISTER COOKIE\\n\" +\n \"\\n\" +\n \"La nueva Diva del Rhythm&Blues y Early Soul!!\\n\" +\n \"\\n\" +\n \"Desde muy joven se dedicó a aprender a cantar y a tocar el piano. No dejó de mejorar, y así, siendo aún una adolescente, empezó a patearse garitos de cualquier tamaño por su ciudad, Londres, convirtiéndose en una habitual de la escena retro y vintage londinense, actuando regularmente en sitios de destacable prestigio como Lady Luck Club, Jukebox Jam o Shore Leave.\\n\" +\n \"\\n\" +\n \"Después de un parón de 5 años por motivos personales, volvió a la música a finales de 2012. Desde entonces ha girado por Europa, pudiendo destacarse espectaculares actuaciones en salvajes y maravillosos festivales como Lâche Pas La Patate, el Funtastic Dracula Carnival, Screamin’ Festival,... acompañada de grandes grupos como Ray Collins Hot Club, Mambo Jambo, Soulful Orchestra, etc.\\n\" +\n \"\\n\" +\n \"En 2015, escenarios de festivales en Italia, Suecia, España o Francia disfrutaron de su impresionante voz. Para mediados de 2015, publica un nuevo Ep con 2temazos, con MFC Chicken debanda, que hacen bailar a todoel mundo con unas mínimasganas de fiesta, y para lasegunda mitad del año publicanuevo LP, grabado con subanda londinense. Y lo mejorde todo es que ella y la bandase mueren de ganas de presentarlo sobre los escenarios, para hacernos disfrutar a los amantes de la mejor música negra!\\n\" +\n \"\\n\" +\n \"MAY-THAI & LOS TORINO ROCKETS\\n\" +\n \"\\n\" +\n \"May Thai Y Los Torino Rockets se ha instalado en el ambiente musical de A coruña como un referente de banda de Swing y Rythm&Blues. Desde su variado repertorio que abarca desde Ruth Brown, Janis Martin o Louis Prima, hasta su puesta en escena garantizan un espectáculo infalible y digno de ver.\\n\" +\n \"\\n\" +\n \"\\n\" +\n \"\\n\" +\n \"\\n\" +\n \"\\n\" +\n \"El Beasto Bookings · P.O. Box 2023 · 15080 A Coruña · Spain\\n\" +\n \"Tel./Ph. 626809625 · 881885328 . www.elbeasto.com/bookings\",\n \"24/06/2016\",\n \"13/16€\",\n \"https://scontent-mad1-1.xx.fbcdn.net/t31.0-8/13403955_1736836666591702_3736102947197916446_o.jpg\",\n \"Sala MardiGrass\"\n );\n }", "title": "" }, { "docid": "901a6701dc72865a630c8b5d6e659bf7", "score": "0.5277042", "text": "public static Evento e7(){\n return new Evento(\n tabTitles[3],\n \"Sueños y Zapatos, Cía de danza-teatro en integración 5s\",\n \"A compañía 5s inclúe a persoas con e sen discapacidade. Nesta ocasión presenta 'Sueños y Zapatos', un espectáculo que fala dos soños que cada un de nós construímos vistos dende un zapato qeu conta a historia. Unha visión de nós mesmos e dos demais. Unha necesidade do home de comunicarse e de buscar refuxio nos outros.\",\n \"01/07/2016\",\n \"10€\",\n \"https://scontent-mad1-1.xx.fbcdn.net/v/t1.0-9/13516731_1136098943117997_2938104578970750162_n.jpg\",\n \"Teatro Colón\"\n );\n }", "title": "" }, { "docid": "742a53881e2e11dfefd1c6f88d96dcf2", "score": "0.52760464", "text": "public event(){\n this.head = null;\n this.location = null;\n this.timeDate = new int[5];\n for (int i = 0; i < 5; ++i){\n this.timeDate[i] = 0;\n }\n }", "title": "" }, { "docid": "ce510991c5aa26977ee3f8b552772619", "score": "0.52627796", "text": "@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tif (eventType.contains(\"Move\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tEventMove eventMove = EventMove.parseFrom(data);\n\t\t\t\t\t\tSystem.out.println(eventMove.getPartID() + \" \" + eventMove.getNewLoc());\n\t\t\t\t\t\tcursorLocs.put(eventMove.getPartID(), eventMove.getNewLoc());\n\t\t\t\t\t\tetm.allEvents.add(new Event(subId, eventType, \"\", (int)eventMove.getNewLoc(), false, false));\n\t\t\t\t\t}\n\t\t\t\t\telse if(eventType.contains(\"Add\"))\n\t\t\t\t\t{\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tEventAdd eventAdd = EventAdd.parseFrom(data);\n\t\t\t\t\t\t\tLog.d(Tag, \"id: \" + eventAdd.getPartID());\n\t\t\t\t\t\t\tLog.d(Tag, \"loc: \" + cursorLocs.get(eventAdd.getPartID()).toString());\n\t\t\t\t\t\t\tLog.d(Tag, \"char: \" + eventAdd.getChar());\n\t\t\t\t\t\t\tint appendPos = cursorLocs.get(eventAdd.getPartID()).intValue();\n\t\t\t\t\t\t\tetm.isAction = true;\n\t\t\t\t\t\t\tif(appendPos >= etm.getText().length())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.d(Tag, \"Adding to end\");\n\t\t\t\t\t\t\t\tetm.getText().append(eventAdd.getChar());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tetm.getText().insert(appendPos, eventAdd.getChar());\n\t\t\t\t\t\t\tLog.d(Tag, \"Is \" + eventAdd.getPartID() + \" = \" + participantID);\n\t\t\t\t\t\t\tif(eventAdd.getPartID() != participantID)\n\t\t\t\t\t\t\t\tetm.history.adjustIndexes(appendPos, true);\n\t\t\t\t\t\t\tetm.isAction = false;\n\t\t\t\t\t\t\t//Toast.makeText(getBaseContext(), \"Add \" + eventAdd.getChar() + \" \" + appendPos, //Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tLog.i(Tag, etm.history.strMerge());\n\t\t\t\t\t\t\t//fix cursor locs\n\t\t\t\t\t\t\tappendPos(appendPos, true);\n\t\t\t\t\t\t\tetm.allEvents.add(new Event(subId, eventType, eventAdd.getChar(), appendPos, false, false));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Exception e) {e.printStackTrace();}\n\t\t\t\t\t}\n\t\t\t\t\telse if(eventType.contains(\"Delete\"))\n\t\t\t\t\t{\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tEventDel eventDel = EventDel.parseFrom(data);\n\t\t\t\t\t\t\tint appendPos = cursorLocs.get(eventDel.getPartID()).intValue();\n\t\t\t\t\t\t\tetm.isAction = true;\n\t\t\t\t\t\t\tString deleted = String.valueOf(etm.getText().charAt(appendPos-1));\n\t\t\t\t\t\t\tLog.d(Tag, \"Pos: \" + appendPos);\n\t\t\t\t\t\t\tetm.getText().delete(appendPos-1, appendPos);\n\t\t\t\t\t\t\tLog.d(Tag, \"blah\");\n\t\t\t\t\t\t\tif(!(eventDel.getPartID() == participantID))\n\t\t\t\t\t\t\t\tetm.history.adjustIndexes(appendPos, false);\n\t\t\t\t\t\t\tetm.isAction = false;\n\t\t\t\t\t\t\tLog.i(Tag, etm.history.strMerge());\n\t\t\t\t\t\t\t//fix cursor locs\n\t\t\t\t\t\t\tappendPos(appendPos, false);\n\t\t\t\t\t\t\tetm.allEvents.add(new Event(subId, eventType, deleted, appendPos, false, false));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Exception e) {e.printStackTrace();}\n\t\t\t\t\t}\n\t\t\t\t\telse if(eventType.contains(\"Join\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tEventJoin eventJoin = EventJoin.parseFrom(data);\n\t\t\t\t\t\t//start everyone at 0\n\t\t\t\t\t\tcursorLocs.put(eventJoin.getPartID(), (long) 0);\n\t\t\t\t\t\tLog.e(Tag, \"Cursor Loc: \" + eventJoin.getPartID() + \" \" + cursorLocs.get(eventJoin.getPartID()));\n\t\t\t\t\t\tetm.allEvents.add(new Event(subId, eventType, \"\", -1, false, false));\n\t\t\t\t\t\tLog.i(Tag, \"added to allEvents\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(eventType.contains(\"Leave\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tEventLeave eventLeave = EventLeave.parseFrom(data);\n\t\t\t\t\t\tcursorLocs.remove(eventLeave.getPartID());\n\t\t\t\t\t\tetm.allEvents.add(new Event(subId, eventType, \"\", -1, false, false));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tLog.d(Tag, \"Invalid event Type: \" + eventType);\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\t//myClient.resumeEvents();\n\t\t\t}", "title": "" }, { "docid": "4730eee8e4ba8bf5e996bac373c783f9", "score": "0.525426", "text": "public void formEventoOcorrido(FormEvent e) {\n\t\t\t\tString nome = e.getName();\n\t\t\t\tString occupation = e.getOccupation();\n\t\t\t\tint ageCategory = e.getAgeCategory();\n\t\t\t\tString empCat = e.getEmpCat();\n\t\t\t\tString gen = e.getGen();\n\t\t\t\t\n\t\t\t\tSystem.out.println(gen);\n\t\t\t\tString txt = String.format(\"%s : %s : %d : %s%n\",\n\t\t\t\t\t\tnome, occupation, ageCategory, empCat);\n\t\t\t\t\n\t\t\t\tpainel.adicionarTexto(txt);\n\t\t\t}", "title": "" }, { "docid": "d78f7688dd7b6cd127160ab6861e202c", "score": "0.52492416", "text": "public void clicSurBoutonGauche()\n// le clic dans la ZML exécutera le code de clic de ce bouton\n// A Faire : Ajoutez le code sur le clic de ce bouton\n// Info(\"clic sur \"+MoiMême..Nom)\n{\nsuper.clicSurBoutonGauche();\n\n// ouvre(Liste_Event,id)\nWDAPIFenetre.ouvre(GWDPGruppeto.getInstance().mWD_Liste_Event,new WDObjet[] {vWD_id} );\n\n}", "title": "" }, { "docid": "b928ce81b263f49358d87478adab278d", "score": "0.5241907", "text": "public void mostrarHistorialPedidos() {\n\t\tfor (Pedido daux : listapedidos) {\r\n\t\t\tSystem.out.println(daux.getnMesa() + \" - \" + daux.getnOrden());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "67e877d35c6e2ee74bc280fb241ac731", "score": "0.5239795", "text": "private void ophalenLesInfo(Conversation conversation) {\n\t Calendar lEersteLesDatum = Calendar.getInstance();\n\t Calendar lLaatsteLesDatum = Calendar.getInstance();\n\t lEersteLesDatum.add(Calendar.MONTH, -1);\n\t lLaatsteLesDatum.add(Calendar.MONTH, 1);\n\t\t\n\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t//Deze volgorde mag niet worden gewijzigd i.v.m. JS. (Hier mag dus ook geen andere JSON voor komen.)\n\t\tlJsonObjectBuilder \n\t\t\t.add(\"eerste_lesdatum\", PrIS.calToStandaardDatumString(lEersteLesDatum))\n\t\t\t.add(\"laatste_lesdatum\", PrIS.calToStandaardDatumString(lLaatsteLesDatum));\n\n\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\n\t\tconversation.sendJSONMessage(lJsonOut);\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\t}\n }", "title": "" }, { "docid": "0b9f2b20cf5f50d0002e1177e6ec9e33", "score": "0.52350837", "text": "@Override\n\tpublic List<Event> getData() throws GenericException {\n\t\treturn EventsData.getInstance().getEvents(); //events;\n\t}", "title": "" }, { "docid": "334e5069865315546841f70e6480aacb", "score": "0.5234259", "text": "@Override\n public void asegurarPuertas() {\n }", "title": "" }, { "docid": "6437aa97487c579d4f4fa16bf6d861ee", "score": "0.5231102", "text": "@Override\r\n\tpublic JSONArray getMovimientoTimestamp(Properties ctx, String trxName,\r\n\t\t\tint mClientID, int idLocal, int idCaja, String fchTicket, int idEMpresa) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b37bc1deb390c99ddf762f88a7bebd03", "score": "0.52273697", "text": "@Override\n\tpublic void doOnReceive(AbstractEvent event) {\t\t\n\t\tSystem.out.println(\"In IP von DR!!!!\");\n\t\t//Chunker Objekt von Token abfangen\n\t\tArrayList<Object> chunkslist = (ArrayList<Object>)\tEventUtils.findPropertyByKey(event, \"Chunks\").getValue();\n\t\tChunker chunkerObject = new Chunker();\n\t\tchunkerObject.parseArrayList(chunkslist);\n\t\t//System.out.println(chunkerObject);\n\t\t// Alle chunks auslesen, die übergeben sind\n\t\tArrayList<String> list = chunkerObject.readChunks();\n\t\t// Chunk in der Ontologie durchsuchen\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tString jsonFile = getSemantic(list.get(i)); \n\t\t\tchunkerObject.addSemanticToChunk(list.get(i), jsonFile);\n\t\t}\n\t\tfor (int i = 0; i < chunkerObject.size(); i++) {\n\t\t\tchunkerObject.getSemanticAt(i);\t\n\t\t}\n\t\t\n\t\t\n\t\t// Pushen eines Events\n\t\tAbstractEvent feedbackEvent = eventFactory.createEvent(\"AtomicEvent\");\n\t\tfeedbackEvent.setType(\"FeedbackEvent\");\n\t\t// Eigenschaften von Token wieder hinzufügen\n\t\tfeedbackEvent.add(event.getPropertyByKey(\"UserID\"));\n\t\tSystem.out.println(\"userid: \" + event.getPropertyByKey(\"UserID\").getValue());\n\t\tfeedbackEvent.add(event.getPropertyByKey(\"SessionID\"));\n\t\tSystem.out.println(\"SessionID: \" + event.getPropertyByKey(\"SessionID\").getValue());\n\t\t//feedbackEvent.add(event.getPropertyByKey(\"SentenceID\"));\n\t\t//Unsere Semantic übergeben\n\t\tfeedbackEvent.add(new Property<ArrayList<Object>>(\"Chunks\", chunkerObject.returnList()));\n\t\t//System.out.println(\"Chunkerlist: \" + chunkerObject.returnList());\n\t\t\n\t\t\n\t\ttry {\n\t\t\t//Neue FeedbackEvent\n\t\t\t//System.out.println(\"Das wird gesendet vom SemantikAgent: \");\n\t\t\tthis.getAgent().send(feedbackEvent, \"SemanticChunks\");\n\t\t\t\n\t\t} catch (NoValidEventException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NoValidTargetTopicException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4de11df7e6e7da7d05409a5ba61d2402", "score": "0.5214912", "text": "@Override\n protected void prepareEvent(Event baseEvent) {\n if (baseEvent != null) {\n // add anc date obs and last\n List<Object> list = new ArrayList<>();\n list.add(new SimpleDateFormat(\"dd-MM-yyyy\", Locale.getDefault()).format(new Date()));\n baseEvent.addObs(new Obs(\"concept\", \"text\", \"home_visit_date\", \"\",\n list, new ArrayList<>(), null, \"home_visit_date\"));\n }\n }", "title": "" }, { "docid": "6f5c499039998f228fddf242fc0cccc4", "score": "0.5210904", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void uploadFile(FileUploadEvent event) throws Exception {\n\t\tCalendar fechaV= Calendar.getInstance();\n\t\tfechaV.setTime(fechaVencimientoCargue);\n\t\t\ttry {\t\t\t\n\t\t\t\tif (!validarFecha(fechaV)){\n\t\t\t\tString nombreFormato=\"\";\n\t\t\t\tfor (Formatos f : arrFormatos) {\n\t\t\t\t\tif (f.getForCodigo()==formatoSeleccionado.intValue()){\n\t\t\t\t\t\tnombreFormato=f.getForNombre();\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\tarchivosCargados = null;\n\t\t\t\tSystem.out.println(\"Entra en evento file upload\");\n\t\t\t\tSystem.out.println(\"Entidad Seleccionada \" + entidadSeleccionada);\n\t\t\t\tSystem.out.println(\"Formato Seleccionado \" + formatoSeleccionado);\n\t\t\t\tUploadedFile archivo = event.getFile();\n\t\t\t\tString nombreReal = archivo.getFileName();\n\t\t\t\tString[] composicion = nombreReal.split(\"\\\\.\");\n\t\t\t\tString extension = composicion[composicion.length - 1];\n\t\t\t\tRegistroCargueFormato registroCargueFormato = new RegistroCargueFormato();\n\t\t\t\tCortesFormato objCortesFormato = new CortesFormato();\n\t\t\t\tDate fechaRegistroCargue = new Date(System.currentTimeMillis());\n\t\n\t\t\t\tString nombreArchivo = FilenameUtils.removeExtension(archivo.getFileName()) + \"-\" + System.currentTimeMillis() + \".\" + extension;\n\t\n\t\t\t\tArchivo archivoCargado = new Archivo();\n\t\t\t\tarchivoCargado.setNombre(nombreArchivo);\n\t\t\t\tarchivoCargado.setExtension(extension);\n\t\n\t\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\t\tcalendar.setTimeInMillis(System.currentTimeMillis());\n\t\t\t\tarchivoCargado.setFechaHoraCargue(calendar.getTime());\n\t\n\t\t\t\tarchivosCargados = new ArrayList<Archivo>();\n\t\t\t\tarchivosCargados.add(archivoCargado);\n\t\n\t\t\t\tInputStream is = archivo.getInputstream();\n\t\t\t\tsetTmpFile(nombreArchivo);\n\t\t\t\tFileOutputStream fos = new FileOutputStream(new File(getTmpFile()));\n\t\n\t\t\t\tint read = 0;\n\t\t\t\tbyte[] bytes = new byte[1024];\n\t\n\t\t\t\twhile ((read = is.read(bytes)) != -1) {\n\t\t\t\t\tfos.write(bytes, 0, read);\n\t\t\t\t}\n\t\n\t\t\t\tis.close();\n\t\t\t\tfos.flush();\n\t\t\t\tfos.close();\n\t\t\t\t\t\n\t\t\t\tformato = (Formatos) serviceDao.getGenericCommonDao().read(Formatos.class, formatoSeleccionado);\t\t\t\n\t\t\t\tentidad = (Entidades) serviceDao.getGenericCommonDao().read(\n\t\t\t\t\t\tEntidades.class, entidadSeleccionada);\n\t\t\t\tif (null != entidad) {\n\t\n\t\t\t\t\tif (null != formato) {\t\t\t\t\t\n\t\n\t\t\t\t\t\t\tList<DetallesFormato> detallesFormatos = serviceDao.getDetallesFormatoDao().obtenerDetallesFormatoPorFormato(\n\t\t\t\t\t\t\t\t\tformatoSeleccionado);\n\t\n\t\t\t\t\t\t\tList<TiposDato> tiposDatos = (List<TiposDato>) serviceDao.getGenericCommonDao().loadAll(TiposDato.class);\n\t\t\t\t\t\t\tList<FormatosTiposDato> formatosTiposDatos = (List<FormatosTiposDato>) serviceDao.getGenericCommonDao().loadAll(\n\t\t\t\t\t\t\t\t\tFormatosTiposDato.class);\n\t\n\t\t\t\t\t\t\tthis.erroresCargue = null;\n\t\t\t\t\t\t\tCargueArchivoExcel cargue=null;\n\t\t\t\t\t\t\tformato.setCorteAsignado(idFechaCorteSeleccionada);\n\t\t\t\t\t\t\tif (\"xlsx\".equalsIgnoreCase(archivosCargados.get(0).getExtension()) || \"xls\".equalsIgnoreCase(archivosCargados.get(0).getExtension())) {\n\t\t\t\t\t\t\t\tcargue = new CargueArchivoExcel(serviceDao, formato, entidad, detallesFormatos, tiposDatos, formatosTiposDatos);\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcargue.cargar(archivosCargados, nombreFormato);\n\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\tint registros=registrarDatos();\n\t\n\t\t\t\t\t\t\tif (this.erroresCargue == null || this.erroresCargue.size() == 0) {\n\t\n\t\t\t\t\t\t\t\tobjCortesFormato = (CortesFormato) serviceDao.getGenericCommonDao().read(CortesFormato.class, idFechaCorteSeleccionada);\n\t\t\t\t\t\t\t\tregistroCargueFormato.setEntidades(entidad);\n\t\t\t\t\t\t\t\tregistroCargueFormato.setFormatos(formato);\n\t\t\t\t\t\t\t\tregistroCargueFormato.setCortesFormato(objCortesFormato);\n\t\t\t\t\t\t\t\tregistroCargueFormato.setRcfFecha(fechaRegistroCargue);\n\t\t\t\t\t\t\t\tregistroCargueFormato.setUsuario(UserDetailsUtils.usuarioLogged());\n\t\t\t\t\t\t\t\tserviceDao.getGenericCommonDao().create(RegistroCargueFormato.class, registroCargueFormato);\n\t\n\t\t\t\t\t\t\t\tArchivoSGC archivoSGC = new ArchivoSGC();\n\t\t\t\t\t\t\t\tarchivoSGC.setEntidades((Entidades) serviceDao.getGenericCommonDao().read(Entidades.class, entidadSeleccionada));\n\t\t\t\t\t\t\t\tarchivoSGC.setFormatos((Formatos) serviceDao.getGenericCommonDao().read(Formatos.class, formatoSeleccionado));\n\t\t\t\t\t\t\t\tarchivoSGC.setNombre(nombreArchivo);\n\t\t\t\t\t\t\t\tarchivoSGC.setContentType(archivo.getContentType());\n\t\t\t\t\t\t\t\tarchivoSGC.setTamano(archivo.getSize());\n\t\t\t\t\t\t\t\tarchivoSGC.setFechaRegistro(new Date(System.currentTimeMillis()));\n\t\t\t\t\t\t\t\tarchivoSGC.setPeriodo(objCortesFormato.getFcrPeriodo());\n\t\t\t\t\t\t\t\tarchivoSGC.setAno(objCortesFormato.getAno());\n\t\t\t\t\t\t\t\trepoServicio.guardarArchivo(archivo.getInputstream(), archivoSGC);\n\t\n\t\t\t\t\t\t\t\tFacesUtils.addFacesMessage(\"Archivo cargado con éxito. Total registros: \"+registros, FacesMessage.SEVERITY_INFO);\n\t\t\t\t\t\t\t\tlistaFormatos = new ArrayList<SelectItem>();\n\t\t\t\t\t\t\t\tcargarFormatos();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tentidadSeleccionada = null;\n\t\t\t\t\t\t\t\tcargarEntidades();\n\t\t\t\t\t\t\t\tformatoSeleccionado = null;\n\t\t\t\t\t\t\t\tentidad = null;\n\t\t\t\t\t\t\t\tformato = null;\n\t\t\t\t\t\t\t\tfechaCorte = null;\n\t\t\t\t\t\t\t\tregistroCargueFormato = new RegistroCargueFormato();\n\t\t\t\t\t\t\t\tobjCortesFormato = new CortesFormato();\n\t\n\t\t\t\t\t\t\t} else {\n\t\n\t\t\t\t\t\t\t\tFacesUtils.addFacesMessage(\"Se presentaron errores durante el cargue del archivo\", FacesMessage.SEVERITY_ERROR);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\n\t\t\t\t\t\tFacesUtils.addFacesMessage(\"El campo Formato es obligatorio\", FacesMessage.SEVERITY_ERROR);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\n\t\t\t\t\tFacesUtils.addFacesMessage(\"El campo Entidad es obligatorio\", FacesMessage.SEVERITY_ERROR);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSimpleDateFormat fechaFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\tFacesUtils.addFacesMessage(\"No es posible realizar el cargue. La fecha actual es mayor a la fecha de vencimiento: \"+fechaFormat.format(fechaVencimientoCargue), FacesMessage.SEVERITY_ERROR);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tFacesUtils.addFacesMessage(\"Se ha presentado un fallo inesperado durante el cargue de archivos. Detalles: \" + e.getMessage(),\n\t\t\t\t\tFacesMessage.SEVERITY_ERROR);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "dd27f3670fbc0fddd6de2d8431675377", "score": "0.5204607", "text": "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.es.davinciti.liferay.model.LineaGasto\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<LineaGasto>> listenersList = new ArrayList<ModelListener<LineaGasto>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<LineaGasto>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\n\t\tlineaGastoToNotaGastoTableMapper = TableMapperFactory.getTableMapper(\"CMES_Notas_Lineas\",\n\t\t\t\t\"lineagastoId\", \"notagastoId\", this, notaGastoPersistence);\n\n\t\tlineaGastoToLineaGastoPayModeTableMapper = TableMapperFactory.getTableMapper(\"CMES_Lineas_PayModes\",\n\t\t\t\t\"lineagastoId\", \"paymodeId\", this, lineaGastoPayModePersistence);\n\n\t\tlineaGastoToCurrencyTableMapper = TableMapperFactory.getTableMapper(\"CMES_Lineas_Currencies\",\n\t\t\t\t\"lineagastoId\", \"currencyId\", this, currencyPersistence);\n\n\t\tlineaGastoToLineaGastoFamiliaTableMapper = TableMapperFactory.getTableMapper(\"CMES_Lineas_Familias\",\n\t\t\t\t\"lineagastoId\", \"familiaId\", this, lineaGastoFamiliaPersistence);\n\n\t\tlineaGastoToLineaGastoCategoriaTableMapper = TableMapperFactory.getTableMapper(\"CMES_Lineas_Categorias\",\n\t\t\t\t\"lineagastoId\", \"categoriaId\", this,\n\t\t\t\tlineaGastoCategoriaPersistence);\n\n\t\tlineaGastoToLineaGastoClienteTableMapper = TableMapperFactory.getTableMapper(\"CMES_Lineas_Clientes\",\n\t\t\t\t\"lineagastoId\", \"clienteId\", this, lineaGastoClientePersistence);\n\n\t\tlineaGastoToLineaGastoProyectoTableMapper = TableMapperFactory.getTableMapper(\"CMES_Lineas_Proyectos\",\n\t\t\t\t\"lineagastoId\", \"proyectoId\", this,\n\t\t\t\tlineaGastoProyectoPersistence);\n\t}", "title": "" }, { "docid": "2ac5209600e05ba828e28a29422bb441", "score": "0.5198815", "text": "Transacao getTransacao();", "title": "" }, { "docid": "afe85a4c6466d4dc78165bb6c10d093f", "score": "0.51911914", "text": "public void agregarEventos(){\r\n\r\n\r\n\t\t\ttDescripcion.addVerifyListener(getConvertirMayusculaLetras());\r\n\r\n\t\t\ttDescripcion.addKeyListener(new KeyAdapter() {\r\n\t\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\r\n\t\t\t\t\tif (e.character == SWT.CR)\r\n\r\n\t\t\t\t\t\tadicionarActualizarFilaTabla();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\r\n\r\n\t\t\t//Se agregar eventos a los botones\r\n\t\t\tbAceptar.addSelectionListener(this);\r\n\t\t\tbCancelar.addSelectionListener(this);\r\n\r\n\r\n\t\t}", "title": "" }, { "docid": "9bb11e40decdb23a2a31f19ff92b1d37", "score": "0.51863337", "text": "public void gerenciaProcesso(){\n ManipularArquivo maniPu = new ManipularArquivo(); \n String[] detalheSetor;\n\n //Percorre a linha lida setor por setor. Setor é devidido pelo \"|\"\n for (int i = 0 ; i < this.operacao.length; i++) {\n if(i >= 2){ // Esta validando se o setor é posterior ou igual ao segundo \n\n detalheSetor = this.operacao[i].split(\",\");\n \n if(this.operacao[i].contains(\"sw\")){// Verifica se no setor tem SW\n String acao = detalheSetor[0];\n String escrita = detalheSetor[1];\n long posicao = Long.parseLong(detalheSetor[2]);\n \n posicao = posicao + this.inicioMemoriaAlocada;\n \n if((posicao >= this.inicioMemoriaAlocada) && //Verifica se a interação do processo esta dentro da memoria que foi alocada para ele.\n (posicao <= (this.fimMemoriaAlocada))){\n maniPu.salvarDadosLog(2, \"Processo \"+this.id+\" escreveu \"+escrita+\n \" na posição \"+posicao);\n }else{\n maniPu.salvarDadosLog(2, \"Processo \"+this.id+\" encerrado devido acesso indevido de memória. \"\n + \"Tentou acessar posição \"+posicao);\n finalizaProcesso();\n break;\n }\n\n }else if(this.operacao[i].contains(\"lw\")){// Verifica se no setor tem LW\n long posicao = Long.parseLong(detalheSetor[1]);\n \n posicao = posicao + this.inicioMemoriaAlocada;\n \n if((posicao >= this.inicioMemoriaAlocada) && //Verifica se a interação do processo esta dentro da memoria que foi alocada para ele.\n (posicao <= (this.fimMemoriaAlocada))){\n maniPu.salvarDadosLog(2, \"Processo \"+this.id+\" leu na posição \"+posicao);\n }else{\n maniPu.salvarDadosLog(2, \"Processo \"+this.id+\" encerrado devido acesso indevido de memória. \"\n + \"Tentou acessar posição \"+posicao);\n finalizaProcesso();\n break;\n }\n\n }else if(this.operacao[i].contains(\"-\")){// Verifica se no setor tem -\n\n }else if(this.operacao[i].contains(\"ES\")){// Verifica se no setor tem ES\n maniPu.salvarDadosLog(2, \"Processo \"+this.id+\" irá interagir com um ES.\");\n /**\n * Quando encontrar um ES precisa coloca o processo no fim da file e\n * esse processo e ir para o outro. Não sei oq fazer ao certo.\n * Esse processo voltará a ser processado? <---------\n */\n break;\n }\n // Verifica se o setor + 1 é igual ao tamanho da linha lida, se for finaliza o processo\n if((i+1) == this.operacao.length){\n finalizaProcesso();\n maniPu.salvarDadosLog(2, \"Processo \"+this.id+\" encerrado.\");\n }\n }\n }\n }", "title": "" }, { "docid": "02da5fe588f2c35802e9c50cbebb29a5", "score": "0.5181074", "text": "public GeneraCalendario getGeneraCalendario(){\r\n return localGeneraCalendario;\r\n }", "title": "" }, { "docid": "7467c6a5df53ce7a05eb0d62f4ff6c9a", "score": "0.5177102", "text": "private void createEvents() //property of Trish Cornez\n\t{\n\t\tbtnAdd.addActionListener(new ActionListener() { \n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tKhareedari(); //actual method for adding items\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "d31f15a752b76498c131add069e7b277", "score": "0.51721996", "text": "public void initializeDB(){\n/*\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Datuak sartzen ...\");\n\t\t\t\n\t\t Calendar today = Calendar.getInstance();\n\t\t \n\t\t int month=today.get(Calendar.MONTH);\n\t\t month+=1;\n\t\t int year=today.get(Calendar.YEAR);\n\t\t if (month==12) { month=0; year+=1;} \n\t \n\t\t\tEvent ev1=new Event(1, \"Atlético-Athletic\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev2=new Event(2, \"Eibar-Barcelona\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev3=new Event(3, \"Getafe-Celta\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev4=new Event(4, \"Alavés-Deportivo\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev5=new Event(5, \"Español-Villareal\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev6=new Event(6, \"Las Palmas-Sevilla\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev7=new Event(7, \"Malaga-Valencia\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev8=new Event(8, \"Girona-Leganés\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev9=new Event(9, \"Real Sociedad-Levante\", UtilDate.newDate(year,month,17));\n\t\t\tEvent ev10=new Event(10, \"Betis-Real Madrid\", UtilDate.newDate(year,month,17));\n\n\t\t\tEvent ev11=new Event(11, \"Atletico-Athletic\", UtilDate.newDate(year,month,1));\n\t\t\tEvent ev12=new Event(12, \"Eibar-Barcelona\", UtilDate.newDate(year,month,1));\n\t\t\tEvent ev13=new Event(13, \"Getafe-Celta\", UtilDate.newDate(year,month,1));\n\t\t\tEvent ev14=new Event(14, \"Alavés-Deportivo\", UtilDate.newDate(year,month,1));\n\t\t\tEvent ev15=new Event(15, \"Español-Villareal\", UtilDate.newDate(year,month,1));\n\t\t\tEvent ev16=new Event(16, \"Las Palmas-Sevilla\", UtilDate.newDate(year,month,1));\n\t\t\t\n\n\t\t\tEvent ev17=new Event(17, \"Málaga-Valencia\", UtilDate.newDate(year,month,28));\n\t\t\tEvent ev18=new Event(18, \"Girona-Leganés\", UtilDate.newDate(year,month,28));\n\t\t\tEvent ev19=new Event(19, \"Real Sociedad-Levante\", UtilDate.newDate(year,month,28));\n\t\t\tEvent ev20=new Event(20, \"Betis-Real Madrid\", UtilDate.newDate(year,month,28));\n\t\t\t\n\t\t\tQuestion q1;\n\t\t\tQuestion q2;\n\t\t\tQuestion q3;\n\t\t\tQuestion q4;\n\t\t\tQuestion q5;\n\t\t\tQuestion q6;\n\t\t\t\t\t\n\t\t\tif (Locale.getDefault().equals(new Locale(\"es\"))) {\n\t\t\t\tq1=ev1.addQuestion(\"¿Quién ganará el partido?\",1);\n\t\t\t\tq2=ev1.addQuestion(\"¿Quién meterá el primer gol?\",2);\n\t\t\t\tq3=ev11.addQuestion(\"¿Quién ganará el partido?\",1);\n\t\t\t\tq4=ev11.addQuestion(\"¿Cuántos goles se marcarán?\",2);\n\t\t\t\tq5=ev17.addQuestion(\"¿Quién ganará el partido?\",1);\n\t\t\t\tq6=ev17.addQuestion(\"¿Habrá goles en la primera parte?\",2);\n\t\t\t}\n\t\t\telse if (Locale.getDefault().equals(new Locale(\"en\"))) {\n\t\t\t\tq1=ev1.addQuestion(\"Who will win the match?\",1);\n\t\t\t\tq2=ev1.addQuestion(\"Who will score first?\",2);\n\t\t\t\tq3=ev11.addQuestion(\"Who will win the match?\",1);\n\t\t\t\tq4=ev11.addQuestion(\"How many goals will be scored in the match?\",2);\n\t\t\t\tq5=ev17.addQuestion(\"Who will win the match?\",1);\n\t\t\t\tq6=ev17.addQuestion(\"Will there be goals in the first half?\",2);\n\t\t\t}\t\t\t\n\t\t\telse {\n\t\t\t\tq1=ev1.addQuestion(\"Zeinek irabaziko du partidua?\",1);\n\t\t\t\tq2=ev1.addQuestion(\"Zeinek sartuko du lehenengo gola?\",2);\n\t\t\t\tq3=ev11.addQuestion(\"Zeinek irabaziko du partidua?\",1);\n\t\t\t\tq4=ev11.addQuestion(\"Zenbat gol sartuko dira?\",2);\n\t\t\t\tq5=ev17.addQuestion(\"Zeinek irabaziko du partidua?\",1);\n\t\t\t\tq6=ev17.addQuestion(\"Golak sartuko dira lehenengo zatian?\",2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsartuDB(q1);\n\t\t\tsartuDB(q2);\n\t\t\tsartuDB(q3);\n\t\t\tsartuDB(q4);\n\t\t\tsartuDB(q5);\n\t\t\tsartuDB(q6);\n\t\t\t\n\t\t\t\n\t\t\tsartuDB(ev1);\t\n\t\t\tsartuDB(ev2);\n\t\t\tsartuDB(ev3);\n\t\t\tsartuDB(ev4);\n\t\t\tsartuDB(ev5);\n\t\t\tsartuDB(ev6);\n\t\t\tsartuDB(ev7);\n\t\t\tsartuDB(ev8);\n\t\t\tsartuDB(ev9);\n\t\t\tsartuDB(ev10);\n\t\t\tsartuDB(ev11);\n\t\t\tsartuDB(ev12);\n\t\t\tsartuDB(ev13);\n\t\t\tsartuDB(ev14);\n\t\t\tsartuDB(ev15);\n\t\t\tsartuDB(ev16);\n\t\t\tsartuDB(ev17);\n\t\t\tsartuDB(ev18);\n\t\t\tsartuDB(ev19);\n\t\t\tsartuDB(ev20);\n\t\n\t\t\tSystem.out.println(\"Db initialized\");\n\t\t\t\n\t\t}\n\t\tcatch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t*/\n\t}", "title": "" }, { "docid": "cff0a12ac84439dd64b16572302c92ff", "score": "0.51642954", "text": "private String genEvent(String type,String group, String service, String hostname, String metric, String status, String monHost, Date ts, String prevStatus, Date prevTs) throws ParseException{\n\t\tString tsStr = toZulu(ts);\n\t\tString dt = tsStr.split(\"T\")[0].replaceAll(\"-\", \"\");\n\t\tString tsProc = toZulu(new Date());\n\t\tStatusEvent evnt = new StatusEvent(this.report,type,dt,group,service,hostname,metric,status,monHost,toZulu(ts),tsProc,prevStatus,toZulu(prevTs));\n\t Gson gson = new Gson();\n\t\treturn gson.toJson(evnt);\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.51555073", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.5145791", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "38442d41bed994779f7a6a166f4f2514", "score": "0.5139638", "text": "public static GeneraCalendario parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n GeneraCalendario object =\r\n new GeneraCalendario();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"generaCalendario\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GeneraCalendario)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"entrada\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n object.setEntrada(null);\r\n reader.next();\r\n \r\n reader.next();\r\n \r\n }else{\r\n \r\n object.setEntrada(Entrada.Factory.parse(reader));\r\n \r\n reader.next();\r\n }\r\n } // End of if for expected property start element\r\n \r\n else{\r\n // A start element we are not expecting indicates an invalid parameter was passed\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "title": "" }, { "docid": "754e54aed66de934bbb78cea1c9cda99", "score": "0.5136082", "text": "@Override\r\n public <T extends Evento> T borrarEvento(T evento) {\n return null;\r\n }", "title": "" }, { "docid": "c50b501cfdaaf88a4e6b1faf3dda3362", "score": "0.5135011", "text": "private Map initEventData() {\n Map<String, String> eventData = new HashMap<String, String>();\n return eventData;\n }", "title": "" }, { "docid": "c7c0d11b2b5840efb1765c73c87cab16", "score": "0.5134267", "text": "void annullaEvento(final int idEvento);", "title": "" }, { "docid": "6881435ccd707bd559165c8b31c691a5", "score": "0.5128608", "text": "@Override\n\tpublic void comer() {\n\t\tthis.tamagotchi.setEstado(new Feliz(tamagotchi));\n\t}", "title": "" }, { "docid": "d3849a02267b0932e2c80dc2f2059316", "score": "0.5120347", "text": "@Override\n public void onTangoEvent(TangoEvent event) {\n }", "title": "" }, { "docid": "0937b58a81f515510161119ef16233d8", "score": "0.5117668", "text": "public AkkEvent[] updateEvents();", "title": "" }, { "docid": "cf50704ceda3ce157d38a08e46d52b61", "score": "0.5115714", "text": "@Override\n\tpublic String getTareas() {\n\t\treturn \"Gestionar la agenda de los jefes\";\n\t}", "title": "" }, { "docid": "3187bc8ab24c9e93e6a44402005e907d", "score": "0.5111521", "text": "@objid (\"0ee43784-a04c-4aa3-8d41-63c6b94e85f4\")\npublic interface EchecsEventListener extends EventListener {\n /**\n * Action à déclencher lors d'un évènement promotion\n * @param coup\tCoup de type promotion\n */\n @objid (\"ebaf6b68-ee82-43b8-870b-40acaff9cce8\")\n void promotion(Coup coup);\n\n /**\n * Action à déclencher lors d'un évènement déplacement\n */\n @objid (\"aaa8f97c-b0b2-4237-a501-410815058d9d\")\n void pieceDeplacee();\n\n /**\n * Action à déclencher lors d'un évènement déplacement illégal\n */\n @objid (\"373d5e2e-39a5-4af8-b0aa-d7560fceada4\")\n void deplacementIllegal();\n\n /**\n * Action à déclencher lors d'un évènement mat\n */\n @objid (\"8a03f472-5c9b-41a6-8b9c-a729cc7bda67\")\n void echecMat(Couleur couleur);\n\n /**\n * Action à déclencher lors d'un évènement nulle\n */\n @objid (\"585b8330-05b6-43db-ad31-f665674e4a66\")\n void nulle(Couleur couleur);\n\n /**\n * Action à déclencher lors d'un évènement échec\n */\n @objid (\"568237ba-ca55-4cea-ab09-37ebbf6deae5\")\n void echec(Couleur couleur);\n\n /**\n * Action à déclencher lors d'un évènement tic chrono\n */\n @objid (\"36d98109-8ff9-438e-82cb-fb9983eed71c\")\n void ticChrono(Joueur joueur);\n\n /**\n * Action à déclencher lors d'un évènement perd au temps\n */\n @objid (\"a9ae28e1-edd0-45f6-9daa-ffb07cac5129\")\n void perdTemps(Couleur couleur);\n\n}", "title": "" }, { "docid": "1d3717b95a4fb7f0db27beb671538832", "score": "0.5111356", "text": "public void generateTours()\n {\n\n // read the party size data\n String partySizeFile = Util.getStringValueFromPropertyMap(rbMap,\n \"specialEvent.partySize.file\");\n String directory = Util.getStringValueFromPropertyMap(rbMap, \"Project.Directory\");\n partySizeFile = directory + partySizeFile;\n partySizeData = readFile(partySizeFile);\n\n // read the income data\n String incomeFile = Util.getStringValueFromPropertyMap(rbMap, \"specialEvent.income.file\");\n incomeFile = directory + incomeFile;\n incomeData = readFile(incomeFile);\n\n ArrayList<SpecialEventTour> eventTourList = new ArrayList<SpecialEventTour>();\n\n int eventTours = 0;\n for (int i = 1; i <= eventData.getRowCount(); ++i)\n {\n\n int eventMgra = (int) eventData.getValueAt(i, \"MGRA\");\n int attendance = (int) eventData.getValueAt(i, \"Attendance\");\n String eventType = eventData.getStringValueAt(i, \"EventType\");\n int startPeriod = (int) eventData.getValueAt(i, \"StartPeriod\");\n int endPeriod = (int) eventData.getValueAt(i, \"EndPeriod\");\n\n // generate tours for the event\n for (int j = 0; j < attendance; ++j)\n {\n\n ++eventTours;\n\n long randomSeed = getRandomSeed(eventTours);\n SpecialEventTour tour = new SpecialEventTour(randomSeed);\n tour.setID(eventTours);\n tour.setEventNumber((byte) i);\n tour.setDestinationMGRA(eventMgra);\n tour.setDepartTime(startPeriod);\n tour.setArriveTime(endPeriod);\n tour.setEventType(eventType);\n\n // choose income and party size for the tour\n int income = chooseIncome(randomGenerator.nextDouble(), eventType);\n int partySize = choosePartySize(randomGenerator.nextDouble(), eventType);\n\n tour.setIncome(income);\n tour.setPartySize(partySize);\n\n eventTourList.add(tour);\n }\n }\n\n // convert the ArrayList to an array\n tours = new SpecialEventTour[eventTourList.size()];\n for (int i = 0; i < tours.length; ++i)\n tours[i] = eventTourList.get(i);\n\n }", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.5107536", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "c8def2c165d59e0565bf470bc5aa4dbd", "score": "0.51046294", "text": "@Override\n\tpublic void addEvents() {\n\n\t}", "title": "" }, { "docid": "41192d1b92bd3fb47aeaddeac6b236b5", "score": "0.51036054", "text": "public void gerarExcecao() throws UmaUnicaException{\n\t\tthrow new UmaUnicaException();\n\t}", "title": "" }, { "docid": "e03ce3fbe4007ade7f79a2a52e2a9e8c", "score": "0.50960916", "text": "public String getDados (){\n\t\tString dados = \"\";\n\n\t\tdados = dados.concat(Genericas.tempoEmHoras(horarioInicio));\n\t\tdados = dados.concat(\" \" + nome + \" \" + duracao + \"min\");\n\t\t\n\t\treturn dados;\n\t}", "title": "" }, { "docid": "dcb2a3cb9c0d55bdaa6a18f9c2be949b", "score": "0.50960445", "text": "private void buscaNovosAlunos() {\r\n String versao = preferences.getVersao();\r\n Call<AlunoSync> call = new RetrofitInit().getAlunoService().readNovo(versao);\r\n call.enqueue(buscaAlunosCallback());\r\n }", "title": "" }, { "docid": "817eeecffafa8611298672d5d476272e", "score": "0.50874996", "text": "public FO5_PendaftaranEvent() {\n initComponents();\n init_ErrorReport_Dao();\n\n init_Kategori_Dao();\n init_TableKategori();\n loadDaftarKategori();\n\n init_Ruangan_Dao();\n init_TableRuangan();\n loadDaftarRuangan();\n\n init_EventOrganizer_Dao();\n init_TableEo();\n loadDaftarEo();\n\n init_Peralatan_Dao();\n init_TablePeralatan();\n loadDaftarPeralatan();\n\n init_TableTambahPeralatan();\n\n initModelAwal();\n\n init_Event_Dao();\n init_KD_Event();\n init_KD_Tambah_Alat();\n }", "title": "" }, { "docid": "89c409cbb536d52de9d8d0188f76c441", "score": "0.5086134", "text": "public List<XMLEvent> aggregateEventList() {\n LinkedList<XMLEvent> aggregatedFocusList= new LinkedList<XMLEvent>();\n Stack<XMLEvent> aggregatedInsertEventsStack = new Stack();\n Stack<XMLEvent> aggregatedEmbedEventsStack = new Stack();\n ArrayList<XMLEvent> aggregatedEventList = new ArrayList<XMLEvent>(eventList.size());\n\n for(XMLEvent xmlEvent: this.loadEmbedEventList){\n aggregatedEventList.add(xmlEvent);\n }\n \n this.loadEmbedEventList.clear();\n\n for(int i =0;i< eventList.size(); i++) {\n XercesXMLEvent xmlEvent = (XercesXMLEvent) eventList.get(i);\n\n XercesXMLEvent xmlEventToAdd = new XercesXMLEvent();\n // Map PROTOTYPE_CLONED event to betterform-insert-repeatitem or betterform-insert-itemset event\n // and copy event properties to new created XMLEvent\n if(xmlEvent.getType().equals(BetterFormEventNames.PROTOTYPE_CLONED)){\n if(xmlEvent.getContextInfo(\"targetName\").equals(XFormsConstants.ITEMSET)){\n xmlEventToAdd.initXMLEvent(\"betterform-insert-itemset\", xmlEvent.getBubbles(), xmlEvent.getCancelable(), xmlEvent.getContextInfo());\n }else{\n xmlEventToAdd.initXMLEvent(\"betterform-insert-repeatitem\", xmlEvent.getBubbles(), xmlEvent.getCancelable(), xmlEvent.getContextInfo());\n }\n xmlEventToAdd.target = xmlEvent.target;\n xmlEvent.addProperty(\"generatedIds\", new HashMap());\n aggregatedEventList.add(xmlEventToAdd);\n // push XMLEvent to Stack for further processing\n aggregatedInsertEventsStack.push(xmlEventToAdd);\n\n }\n // add all generated ids to surrounding betterform-insert-repeatitem or betterform-insert-itemset event\n else if (xmlEvent.getType().equals(BetterFormEventNames.ID_GENERATED) && aggregatedInsertEventsStack.size() >0) {\n XMLEvent aggregatingInsertEvent = aggregatedInsertEventsStack.peek();\n ((HashMap)aggregatingInsertEvent.getContextInfo(\"generatedIds\")).put(xmlEvent.getContextInfo(\"originalId\"), xmlEvent.getContextInfo(\"targetId\"));\n }\n // add insert position to surrounding betterform-insert-repeatitem or betterform-insert-itemset event\n else if(xmlEvent.getType().equals(BetterFormEventNames.ITEM_INSERTED)){\n XMLEvent tmpEvent = aggregatedInsertEventsStack.pop();\n tmpEvent.addProperty(\"position\", xmlEvent.getContextInfo(\"position\"));\n tmpEvent.addProperty(\"label\", xmlEvent.getContextInfo(\"label\"));\n tmpEvent.addProperty(\"value\", xmlEvent.getContextInfo(\"value\"));\n\n }\n else if(xmlEvent.getType().equals(BetterFormEventNames.EMBED)){\n aggregatedEventList.add(xmlEvent);\n aggregatedEmbedEventsStack.push(xmlEvent);\n }\n else if(xmlEvent.getType().equals(BetterFormEventNames.EMBED_DONE)){\n aggregatedEmbedEventsStack.pop().addProperty(\"targetElement\", xmlEvent.getContextInfo(\"targetElement\"));\n aggregatedEventList.add(xmlEvent);\n }\n else if(xmlEvent.getType().equals(XFormsEventNames.FOCUS)){\n aggregatedFocusList.push(xmlEvent);\n }\n /* else if(xmlEvent.getType().equals(BetterFormEventNames.INDEX_CHANGED)){\n aggregatedFocusList.push(xmlEvent);\n }*/\n // all other events within eventList are simply copied to the new eventlist\n else {\n aggregatedEventList.add(xmlEvent);\n }\n }\n\n while (!aggregatedFocusList.isEmpty()) {\n aggregatedEventList.add(aggregatedFocusList.pollLast());\n }\n return aggregatedEventList;\n }", "title": "" }, { "docid": "8d0c48473d7be835386924ac93c030c4", "score": "0.5085402", "text": "public void seleccionFechaFallecimiento(SelectEvent event) {\n try {\n /*System.out.println(madre.getFechaNacimMad().toString() + \" ********************************\");\n DateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date fecha = formatter.parse(madre.getFechaNacimMad().toString());\n madre.setFechaNacimMad(fecha);\n System.out.println(\"fecha:\" + madre.getFechaNacimMad());\n //Calculo de la edad.*/\n Calendar fechaNacimiento = Calendar.getInstance();\n fechaNacimiento.setTime(current.getFechaNacimientoFal());\n Calendar fechaFallecimiento = Calendar.getInstance();\n fechaFallecimiento.setTime(current.getFechaFallecimientoFal());\n int año = fechaFallecimiento.get(Calendar.YEAR) - fechaNacimiento.get(Calendar.YEAR);\n int mes = fechaFallecimiento.get(Calendar.MONTH) - fechaNacimiento.get(Calendar.MONTH);\n int dia = fechaFallecimiento.get(Calendar.DATE) - fechaNacimiento.get(Calendar.DATE);\n if (mes < 0 || (mes == 0 && dia < 0)) {\n año--;\n }\n short edad = (short) año;\n current.setEdadFal(edad);\n /*sabeLeer = null;\n nivelInstr = null;\n getMadre().setFkIdNivelInstr(null);*/\n } catch (Exception e) {\n e.printStackTrace();\n JsfUtil.displayMessage(\"No se pudo calcular la edad del fallecido\", JsfUtil.INFO_MESSAGE);\n RequestContext.getCurrentInstance().update(\"form_cont:contTab:mssgsBusquedaDF\");\n }\n }", "title": "" }, { "docid": "d2d3b5a6d95b230bd1f1336d1d73d585", "score": "0.5076268", "text": "public void mostrar_info_tienda(Tienda t){\r\n String[] info = t.get_info_tienda();\r\n System.out.println(\"-- Informacion de la tienda --\");\r\n for(int k = 0; k<info.length ;k++){\r\n System.out.println(info[k]);\r\n }\r\n}", "title": "" }, { "docid": "743e8d2f6ec83bdfe076c74f194ad982", "score": "0.50657654", "text": "public String toString(){\n\t\tString tostring = \"\";\n\t\t\n\t\t//Definisco il treno:\n\t\ttostring = tostring + \"Treno: \" + this.categoria + this.numeroTreno + \" \";\n\t\t//Proveniente da:\n\t\ttostring = tostring + \"proveniente da: \" + this.origine + \" \";\n\t\t//Diretto a:\n\t\ttostring = tostring + \"e diretto a: \" + this.destinazione + \" \\n\";\n\t\t//Se il treno non e' ancora partito, lo indico, altrimenti riporto l'ultimo rilevamento:\n\t\tif(this.nonPartito==true){\n\t\t\ttostring = tostring + \"Attenzione: il treno non e' ancora partito! \\n\";\n\t\t}\n\t\t//Se il treno e' partito, ma ancora non si ha un orario di ultimo rilevamento:\n\t\tif(this.nonPartito==false && (this.oraUltimoRilevamento == null)){\n\t\t\ttostring = tostring + \"Ultimo rilevamento non ancora disponibile\\n\";\n\t\t} else {\n\t\t//Se il treno e' partito e si ha un orario di ultimo rilevamento:\n\t\t\ttostring = tostring + \"Ultimo rilevamento a : \" + this.stazioneUltimoRilevamento + \n\t\t\t\t\t\t \" alle ore: \" + EpochConverter(this.oraUltimoRilevamento) + \" \\n\\n\";\n\t\t\t//Comportamento del treno:\n\t\t\tif(getRitardo()<0) tostring = tostring + \"Il treno è in anticipo di \" + getRitardo() + \" minuti\\n\";\n\t\t\tif(getRitardo()==0) tostring = tostring + \"Il treno è puntuale\\n\";\n\t\t\tif(getRitardo()>0) tostring = tostring + \"Il treno è in ritardo di \" + getRitardo() + \" minuti\\n\";\t\t\t \n\t\t}\n\t\t//Lascio una riga vuota:\n\t\ttostring = tostring + \"\\n\";\n\t\t\n\t\t//Se l'ultimo rilevamento e' maggiore a 10 minuti rispetto all'orario attuale,\n\t\t//espongo il problema con un messaggio ed evito di stampare dati erronei sulle prossime\n\t\t//stazioni in cui effettuare fermata:\n\t\tLong ora = System.currentTimeMillis();\n\t\tif(getOraUltimoRilevamento() != null){\n\t\tLong urpiu10 = Long.decode(getOraUltimoRilevamento()) + 10 * 60 * 1000;\n\t\t\n\t\t//System.out.println(\"Ora sono le: \" + EpochConverter(ora.toString()));\n\t\t//System.out.println(\"Ultimo rilevamento + 10 minuti vale: \" + EpochConverter(urpiu10.toString()));\n\t\t\n\t\tif(getStazioneUltimoRilevamento().equals(getDestinazione())){\n\t\t\ttostring = tostring + \"Il treno è arrivato a destinazione\";\n\t\t\treturn tostring;\n\t\t}\n\t\t\n\t\tif(urpiu10 <= ora){\n\t\t\t\n\t\t\ttostring = tostring + \" I dati circa questo treno non sono aggiornati poiche' l'ultimo \"\n\t\t\t\t\t+ \"passaggio rilevato risale a più di dieci minuti fa\";\n\t\t\treturn tostring;\n\t\t}\n\t\t} else {\n\t\t\t\n\t\t\ttostring = tostring + \"Informazione circa l'ultimo rilevamento non valida\\n\";\n\t\t}\n\t\t\t\n\t\tLinkedList<Fermata> prossime = getFermateAggiornate();\n\t\t//Se il treno non ha fermate intermedie, la lista prossima e' vuota: aggiungo quindi un messaggio\n\t\t//informativo; altrimenti stampo le informazioni circa le fermate mancanti:\n\t\tif(prossime.isEmpty()==true){\n\t\t\ttostring = tostring + \" Non sono previste fermate intermedie prima della destinazione. \\n\";\n\t\t}\n\t\t\n\t\ttostring = tostring + \"Mancano \" + prossime.size() + \" fermate all'arrivo a destinazione. \\n\";\n\t\tif(prossime.isEmpty()==false){\n\t\t\ttostring = tostring + \"Prossime Fermate: \\n\";\n\t\t\twhile(prossime.isEmpty()==false){\n\t\t\t\tFermata f = prossime.getFirst();\n\t\t\t\ttostring = tostring + f.toString();\n\t\t\t\t//Lascio una riga vuota ogni fermata letta:\n\t\t\t\ttostring = tostring + \"\\n\";\n\t\t\t\tprossime.removeFirst();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn tostring;\n\t\t\n\t}", "title": "" }, { "docid": "ccd64915cecd5d6fdf51dc3763f1930b", "score": "0.5064412", "text": "@Override\n\tpublic void aggiornaMappa()\n\t{\n\t\tScenarioDiGioco scenario = this.getScenario();\n\t\tStampante stampante = this.inizializzaStampante();\n\t\tCoordinate base = this.getCoordinateNordOvest();\n\t\tList<EntryTessera> listaTessere = scenario.getEntryList(base,\n\t\t\t\tbase.getCoordinateA(this.getCoordinateRelativeSE()));\n\t\tstampante.addListTessera(listaTessere);\n\t\tString mappa = stampante.toString();\n\t\tthis.out.print(mappa);\n\t\tthis.out.flush();\n\n\t}", "title": "" }, { "docid": "ce33bb18b16cf15b10963beaca66b99b", "score": "0.5053069", "text": "public void iniciarBotoes() {\n\t\tJBEventoSalvar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEvento evento = new Evento();\n\n\t\t\t\tevento.setNome(JTXEventoNome.getText());\n\t\t\t\tevento.setId(JTXEventoID.getText());\n\t\t\t\tevento.setArea(JTXEventoArea.getText());\n\t\t\t\tevento.setContato(JTXEventoContato.getText());\n\t\t\t\tevento.setRepeticao((int) JSPEventoRepeticoes.getValue());\n\n\t\t\t\tDate inicio = (Date) JSPEventoInicio.getValue();\n\t\t\t\tDate fim = (Date) JSPEventoFim.getValue();\n\n\t\t\t\tevento.setInicio(inicio.getTime());\n\t\t\t\tevento.setFim(fim.getTime());\n\n\t\t\t\ttry {\n\n\t\t\t\t\tBotaoSalvarEvento banco = new BotaoSalvarEvento(evento);\n\t\t\t\t\tjp.precionarControle(banco);\n\n\t\t\t\t\tdispose();\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Cadastrado Com Sucesso!\");\n\n\t\t\t\t} catch (RoomsAllocationException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tJBEventoCancelar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "813b2a9daf92894dc2121e2a5a0360fd", "score": "0.5048742", "text": "private List<Event[]> unitProcess(NodeContent[] contentList){\n\t\tList<Event[]> rawEventSequence = new ArrayList<Event[]>();\n\t\tfor(NodeContent node:contentList){\n\t\t\tList<Event> block = new ArrayList<Event>();\n\t\t\tList<Event> summaryEventSequence = node.summary.summaryReference.getEventSequence();\n\t\t\tif(summaryEventSequence != null && summaryEventSequence.size() > 0){\n\t\t\t\t//concolic generated\n\t\t\t\tEvent trigger = summaryEventSequence.get(summaryEventSequence.size()-1);\n\t\t\t\trawEventSequence.add(block.toArray(new Event[]{trigger}));\n\t\t\t}else{ \n\t\t\t\t//Symbolic generated\n\t\t\t\tEvent[] triggers = methodEventMap.get(node.summary.methodSignature);\n\t\t\t\tif(triggers==null || triggers.length == 0){\n\t\t\t\t\tSystem.out.println(\"\\tcannot find event for \"+node.summary.methodSignature);\n\t\t\t\t\treturn new ArrayList<Event[]>(); // broken\n\t\t\t\t}\n\t\t\t\trawEventSequence.add(triggers);\n\t\t\t}\n\t\t}\n\t\treturn rawEventSequence;\n\t}", "title": "" }, { "docid": "73ed722f5c54f0983f9a0a7af69a1bf2", "score": "0.5033552", "text": "public void traduccioOberta();", "title": "" }, { "docid": "642fb69a2197376a0c7e39912c5871ab", "score": "0.50334203", "text": "public ArrayList<event> getEvents() {\n Events.add(new event(R.drawable.nublar_incident, 1992,\n App.getContext().getResources().getString(R.string.Isla_Nublar_Incident),\n App.getContext().getResources().getString(R.string.Robert_Muldoon),\n App.getContext().getResources().getString(R.string.Isla_N_Containment_Pen),\n App.getContext().getResources().getString(R.string.Jurassic_Park),\n App.getContext().getResources().getString(R.string.Incident_Nublar_Details)));\n Events.add(new event(R.drawable.park_incident, 1993,\n App.getContext().getResources().getString(R.string.T_Rex_Incident),\n App.getContext().getResources().getString(R.string.Grant_Murphy_Malcolm),\n App.getContext().getResources().getString(R.string.Isla_N_Rex_Paddock),\n App.getContext().getResources().getString(R.string.Jurassic_Park),\n App.getContext().getResources().getString(R.string.Incident_Rex_Paddock_Details)));\n Events.add(new event(R.drawable.nedry_incident, 1993,\n App.getContext().getResources().getString(R.string.Dilop_Incident),\n App.getContext().getResources().getString(R.string.Dennis_Nedry),\n App.getContext().getResources().getString(R.string.Isla_N_Access_Rd),\n App.getContext().getResources().getString(R.string.Jurassic_Park),\n App.getContext().getResources().getString(R.string.Incident_Diloph_Details)));\n Events.add(new event(R.drawable.bowman_incident, 1996,\n App.getContext().getResources().getString(R.string.Compy_Incident),\n App.getContext().getResources().getString(R.string.Bowman_Family),\n App.getContext().getResources().getString(R.string.Isla_N_Coast),\n App.getContext().getResources().getString(R.string.The_Lost_World),\n App.getContext().getResources().getString(R.string.Incident_Compy_Details)));\n Events.add(new event(R.drawable.rescue_incident, 1997,\n App.getContext().getResources().getString(R.string.Sorna_Rescue_Incident),\n App.getContext().getResources().getString(R.string.Malcolm_Harding_Carr_Owen),\n App.getContext().getResources().getString(R.string.Isla_S),\n App.getContext().getResources().getString(R.string.The_Lost_World),\n App.getContext().getResources().getString(R.string.Incident_Rescue_Sorna)));\n Events.add(new event(R.drawable.hunt_incident, 1997,\n App.getContext().getResources().getString(R.string.Rex_Capture_Incident),\n App.getContext().getResources().getString(R.string.Ludlow_Tembo_Malcolm),\n App.getContext().getResources().getString(R.string.Isla_S_Central),\n App.getContext().getResources().getString(R.string.The_Lost_World),\n App.getContext().getResources().getString(R.string.Incident_Rex_Capture_Details)));\n Events.add(new event(R.drawable.sandiego_incident, 1997,\n App.getContext().getResources().getString(R.string.San_Diego_Incident),\n App.getContext().getResources().getString(R.string.Malcolm_Harding),\n App.getContext().getResources().getString(R.string.San_Diego_California),\n App.getContext().getResources().getString(R.string.The_Lost_World),\n App.getContext().getResources().getString(R.string.Incident_San_Diego_Details)));\n Events.add(new event(R.drawable.dinobreed_incident, 1997,\n App.getContext().getResources().getString(R.string.New_Species_Incident),\n App.getContext().getResources().getString(R.string.Unnamed_InGen),\n App.getContext().getResources().getString(R.string.Isla_S),\n App.getContext().getResources().getString(R.string.Jurassic_Three),\n App.getContext().getResources().getString(R.string.Incident_New_Species)));\n Events.add(new event(R.drawable.worldplan_incident, 1998,\n App.getContext().getResources().getString(R.string.JW_Planning_Incident),\n App.getContext().getResources().getString(R.string.Simon_Masrani),\n App.getContext().getResources().getString(R.string.Masrani_Global),\n App.getContext().getResources().getString(R.string.Jurassic_World),\n App.getContext().getResources().getString(R.string.Incident_World_Planning)));\n Events.add(new event(R.drawable.kirby_incident, 2001,\n App.getContext().getResources().getString(R.string.E_Kirby_Rescue_Incident),\n App.getContext().getResources().getString(R.string.Grant_EKirby_PKirby),\n App.getContext().getResources().getString(R.string.Isla_S),\n App.getContext().getResources().getString(R.string.Jurassic_Three),\n App.getContext().getResources().getString(R.string.Incident_Rescue_Kirby_Details)));\n Events.add(new event(R.drawable.raptor_incident, 2001,\n App.getContext().getResources().getString(R.string.Raptor_incident),\n App.getContext().getResources().getString(R.string.Grant_Brennan),\n App.getContext().getResources().getString(R.string.Isla_S),\n App.getContext().getResources().getString(R.string.Jurassic_Three),\n App.getContext().getResources().getString(R.string.Incident_Raptor_Hunt_Details)));\n Events.add(new event(R.drawable.masrani_incident, 2004,\n App.getContext().getResources().getString(R.string.World_New_Dino_Incident),\n App.getContext().getResources().getString(R.string.Dr_Henry_Wu),\n App.getContext().getResources().getString(R.string.Isla_N),\n App.getContext().getResources().getString(R.string.Jurassic_World),\n App.getContext().getResources().getString(R.string.Incident_New_Dino_Details)));\n Events.add(new event(R.drawable.irex_incident, 2009,\n App.getContext().getResources().getString(R.string.Hybrid_Incident),\n App.getContext().getResources().getString(R.string.Dr_Henry_Wu),\n App.getContext().getResources().getString(R.string.Isla_N),\n App.getContext().getResources().getString(R.string.Jurassic_World),\n App.getContext().getResources().getString(R.string.Incident_Hybrid_Details)));\n Events.add(new event(R.drawable.world_incident, 1997,\n App.getContext().getResources().getString(R.string.Jurassic_World_Incident),\n App.getContext().getResources().getString(R.string.Grady_Dearing),\n App.getContext().getResources().getString(R.string.Isla_N),\n App.getContext().getResources().getString(R.string.Jurassic_World),\n App.getContext().getResources().getString(R.string.Incident_World_Details)));\n return Events;\n }", "title": "" }, { "docid": "be13f6195b0c3910d57563fb7aa5126c", "score": "0.5033282", "text": "Event(String id, String des, String pers, int Lat, int Long, String Cont, String Cit, String EventType, int yr){}", "title": "" }, { "docid": "999f3bf8b5472ec10367548efe4850ac", "score": "0.5031911", "text": "void processEvent(BinauralCochleaEvent e){\r\n lastTimesMap[e.y][e.x]=e.timestamp; // this is cochlea event time\r\n int n=chip.getSizeX();\r\n if(e.getEar()==BinauralCochleaEvent.Ear.RIGHT){ // right cochlea, iterate over left taps\r\n for(int i=0;i<n;i++){\r\n int dt=e.timestamp-lastTimesMap[1][i]; // dt is diff between this event and previous left tap\r\n if(dt<0) reset();\r\n float cval=corrValue(dt);\r\n float oldcval=mapOutput[i][e.x];\r\n float updatedcval=getDecayedValue(oldcval,e.timestamp-lastMapUpdateTime[i][e.x]);\r\n float newval=updatedcval+cval;\r\n mapOutput[i][e.x]=newval;\r\n lastMapUpdateTime[i][e.x]=e.timestamp;\r\n updateMaxMin(newval);\r\n }\r\n }else{ // left, iterate right taps\r\n for(int i=0;i<n;i++){\r\n int dt=e.timestamp-lastTimesMap[0][i];\r\n if(dt<0) reset();\r\n float cval=corrValue(dt);\r\n float oldcval=mapOutput[e.x][i];\r\n float updatedcval=getDecayedValue(oldcval,e.timestamp-lastMapUpdateTime[e.x][i]);\r\n float newval=updatedcval+cval;\r\n mapOutput[e.x][i]=newval;\r\n lastMapUpdateTime[e.x][i]=e.timestamp;\r\n updateMaxMin(newval);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "cf68dfc158343526e051bb64c1c6a804", "score": "0.50308603", "text": "public abstract void aggiungiRecord(ActionEvent unEvento, Azione unAzione);", "title": "" }, { "docid": "087d8f1969faa21f6247025aedc8b4be", "score": "0.50174874", "text": "@Override\n\tpublic void faseRondas() {\n\t\t\n\t}", "title": "" }, { "docid": "6496e9cb177528ee92b81641ef40c2ff", "score": "0.5017265", "text": "@Override\n protected void eventoUscitaCampoModificato(Campo campo) {\n /* variabili e costanti locali di lavoro */\n Date dataIni;\n Date dataEnd;\n int delta;\n int codPeriodo;\n String messaggio;\n Date data;\n\n try { // prova ad eseguire il codice\n\n /* se modifico la data arrivo regola la data partenza da default (se non è già presente) */\n if (this.isCampo(campo, Cam.arrivoPrevisto)) {\n dataEnd = this.getData(Cam.partenzaPrevista.get());\n if (Lib.Data.isVuota(dataEnd)) {\n delta = PrenotazionePref.Prenotazione.soggiorno.intero();\n dataIni = Libreria.getDate(campo.getValore());\n dataEnd = Lib.Data.add(dataIni, delta);\n this.setValore(Cam.partenzaPrevista.get(), dataEnd);\n }// fine del blocco if\n }// fine del blocco if\n\n /**\n * Se modifico data inizio, data fine o camera controlla la disponibilità.\n * se non disponibile visualizza un messaggio ma non ripristina il valore del campo.\n * Il valore non viene ripristinato perché il dato potrebbe non essere definitivo\n * (la occupazione è data da arrivo-partenza-camera e l'utente non ha finito di inserirli)\n * perciò devo lasciare la possibilità all'utente di completare le modifiche.\n * La disponibilità viene comunque controllata ad uscita scheda, dove è\n * obbligatorio che la camera sia disponibile per poter confermare.\n */\n if (this.isCampo(campo, Cam.arrivoPrevisto, Cam.partenzaPrevista, Cam.camera)) {\n if (!this.isPeriodoValido()) {\n codPeriodo = this.getCodPeriodoSovrapposto();\n messaggio = PeriodoLogica.getMessaggioOccupato(codPeriodo);\n new MessaggioAvviso(\"Periodo non disponibile\\n\" + messaggio);\n campo.setValore(campo.getCampoDati().getBackup());\n }// fine del blocco if\n }// fine del blocco if\n\n\n /* se modifico data di arrivo, la data di partenza o il numero di persone\n * ed esistono già degli addebiti previsti, avvisa, chiede conferma e li modifica */\n if (this.isCampo(\n campo,\n Cam.arrivoPrevisto,\n Cam.partenzaPrevista,\n Cam.adulti,\n Cam.bambini)) {\n\n if (this.isEsistonoAddebiti()) {\n\n String testo = \"\";\n\n if ((this.isCampo(campo, Cam.arrivoPrevisto)) || (this.isCampo(\n campo, Cam.partenzaPrevista))) {\n testo = \"Il periodo di soggiorno\";\n }// fine del blocco if\n\n if ((this.isCampo(campo, Cam.adulti)) || (this.isCampo(campo, Cam.bambini))) {\n testo = \"Il numero di persone\";\n }// fine del blocco if\n\n MessaggioDialogo dialogo = new MessaggioDialogo(\n \"Attenzione! \"\n + testo\n + \" è stato modificato.\\nModifico anche gli addebiti?\");\n if (dialogo.isConfermato()) {\n this.syncAddebiti();\n }// fine del blocco if\n }// fine del blocco if\n\n// this.checkAddebiti(\"pippo\");\n }// fine del blocco if\n\n /* se modifico la data di arrivo, invoca il controllo cambi in arrivo */\n if (this.isCampo(campo, Cam.arrivoPrevisto)) {\n data = this.getData(Cam.arrivoPrevisto.get());\n this.checkCambi(true, data);\n }// fine del blocco if\n\n /* se modifico la data di partenza, invoca il controllo cambi in partenza */\n if (this.isCampo(campo, Cam.partenzaPrevista)) {\n data = this.getData(Cam.partenzaPrevista.get());\n this.checkCambi(false, data);\n }// fine del blocco if\n\n /**\n * se modifico le note preparazione chiede se memorizzarle\n * nel cliente per le prenotazioni successive\n */\n if (this.isCampo(campo, Cam.noteprep)) {\n this.notePrepModificate();\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" } ]
f5fbc8d352dae44d8b6f75ac90697b0a
Calculate Refrigerant and Air Conditioning Emissions.
[ { "docid": "b1ef36726cea84ec1f48519da08e4c63", "score": "0.57418376", "text": "public JSONObject calculateScope1RefrigerantAC(String blId, int calcYear, String scenarioId,\n int sourceId, JobStatus status) {\n JSONObject jsonExpression = new JSONObject();\n String tableName = \"gb_fp_s1_refrig_ac\";\n Clause[] inputClauses = getInputClausesForTable(\"gb_fp_setup\", blId, calcYear, scenarioId,\n 0, null);\n DataRecord recSetup = getRecordFromTable(\"gb_fp_setup\", Restrictions.and(inputClauses),\n false);\n // setup record is not found we must stop execution\n if (recSetup == null) {\n String message = this.gbConstants\n .getLocalizedString(this.gbConstants.SETUP_RECORD_NOT_FOUND);\n message = message.replace(\"{0}\", blId);\n message = message.replace(\"{1}\", String.valueOf(calcYear));\n message = message.replace(\"{2}\", scenarioId);\n jsonExpression.put(\"message\", message);\n return jsonExpression;\n }\n inputClauses = getInputClausesForTable(tableName, blId, calcYear, scenarioId, sourceId,\n null);\n List<DataRecord> refrigerantAcSources = getRecordsFromTable(tableName,\n Restrictions.and(inputClauses), true);\n int counter = 0;\n int totalSources = refrigerantAcSources.size();\n status.setMessage(this.gbConstants\n .getLocalizedString(this.gbConstants.CALCULATING_EMISSIONS));\n status.setTotalNumber(totalSources);\n status.setCurrentNumber(counter);\n \n Iterator<DataRecord> it_sources = refrigerantAcSources.iterator();\n while (it_sources.hasNext()) {\n DataRecord recSource = it_sources.next();\n /*\n * Get GWp of Refrigerant\n */\n Restriction tmpRestr = Restrictions.and(\n Restrictions.eq(\"gb_fp_gwp_data\", \"version_type\",\n recSetup.getValue(\"gb_fp_setup.gwp_version_type\")),\n Restrictions.eq(\"gb_fp_gwp_data\", \"version_name\",\n recSetup.getValue(\"gb_fp_setup.gwp_version\")),\n Restrictions.eq(\"gb_fp_gwp_data\", \"gas_ref_name\",\n recSource.getValue(\"gb_fp_s1_refrig_ac.refrigerant_type\")));\n \n Double gwpRefrig = (Double) getFactorFromTable(\"gb_fp_gwp_data\", \"gwp\", tmpRestr, null);\n if (gwpRefrig == null) {\n jsonExpression.put(\"message\", this.gbConstants\n .getLocalizedString(this.gbConstants.notLocalizedFactorNotFoundMsg));\n gwpRefrig = Double.valueOf(0);\n }\n /*\n * Get Refrigerant charge and annual leakage rate\n */\n\n Double refrigCharge = null;\n Double annualLeakRate = null;\n Double kgCo2 = null;\n tmpRestr = Restrictions.and(\n Restrictions.eq(\"gb_fp_refrig_data\", \"version_type\",\n recSetup.getValue(\"gb_fp_setup.refrig_version_type\")),\n Restrictions.eq(\"gb_fp_refrig_data\", \"version_name\",\n recSetup.getValue(\"gb_fp_setup.refrig_version\")),\n Restrictions.eq(\"gb_fp_refrig_data\", \"refrig_ac_type\",\n recSource.getValue(\"gb_fp_s1_refrig_ac.refrig_ac_type\")));\n String[] tmpFields = { \"charge\", \"operation_emiss\" };\n \n DataRecord tmpRec = getFactorsFromTable(\"gb_fp_refrig_data\", tmpFields, tmpRestr, null);\n if (tmpRec != null) {\n if (StringUtil.notNullOrEmpty(tmpRec.getValue(\"gb_fp_refrig_data.charge\"))) {\n refrigCharge = tmpRec.getDouble(\"gb_fp_refrig_data.charge\");\n }\n if (StringUtil.notNullOrEmpty(tmpRec.getValue(\"gb_fp_refrig_data.operation_emiss\"))) {\n annualLeakRate = tmpRec.getDouble(\"gb_fp_refrig_data.operation_emiss\") / 100;\n }\n }\n if (refrigCharge == null || annualLeakRate == null) {\n jsonExpression.put(\"message\", this.gbConstants\n .getLocalizedString(this.gbConstants.notLocalizedFactorNotFoundMsg));\n } else {\n kgCo2 = recSource.getInt(\"gb_fp_s1_refrig_ac.refrig_ac_count\") * gwpRefrig\n * refrigCharge * annualLeakRate;\n \n }\n if (kgCo2 != null) {\n // update into databse\n recSource.setValue(\"gb_fp_s1_refrig_ac.kg_co2\", kgCo2);\n this.emisScopeDataSource.saveRecord(recSource);\n }\n if (sourceId > 0) {\n jsonExpression.put(\"gwp_refrig\", gwpRefrig);\n jsonExpression.put(\"refrig_charge\", refrigCharge);\n jsonExpression.put(\"annual_leak_rate\", annualLeakRate);\n jsonExpression.put(\"kg_CO2\", kgCo2);\n }\n \n status.setCurrentNumber(++counter);\n }\n return jsonExpression;\n }", "title": "" } ]
[ { "docid": "848b7f3b3ca4b08c4cc268d4f6f48c0a", "score": "0.5711565", "text": "public void calcReinforcementArmies() {\n Integer newArmies = this.numOfTerritories() / 3;\n armies += newArmies + continentArmyReward;\n\n System.out.printf(\"\\nPlayer %d received %d armies. (%d from territories, %d from continent).\",\n this.getPlayerId(), armies, newArmies, continentArmyReward);\n }", "title": "" }, { "docid": "77971f54832fc5800f5953d576736b2c", "score": "0.5486038", "text": "double calRemunerate() {\n\t\treturn salaryBusiness * rate;\n\t}", "title": "" }, { "docid": "c888b0a05b3fe4c10107555a6c413555", "score": "0.5482333", "text": "private float calculateAllowable(int days, float airfare, float carRentalFees, float personalMiles, float eventFees) {\n\n float allowable = 0.0f;\n\n allowable += 40 * days; // For meals\n allowable += airfare; // For airfare expenses\n allowable += carRentalFees; // For car rental expenses\n allowable += eventFees; // For event expenses\n\n // Add the parking fees, or the maximum allowable if exceeded...\n allowable += 10 * days;\n\n // Add the lodging charges, or the maximum allowable if exceeded...\n allowable += 95 * days;\n\n // Add the taxi fees, or the maximum allowable if exceeded...\n allowable += 20 * days;\n\n // Add the miles driven, or the maximum allowable if exceeded...\n allowable += .27 * personalMiles;\n\n return allowable;\n\n }", "title": "" }, { "docid": "9e3f6e59af10facf2cae3b1214cb53d9", "score": "0.5420604", "text": "public double calcEFC() {\r\n double eFC;\r\n if(this.isDependent){\r\n eFC = this.studentIncome + this.parentIncome;\r\n }\r\n else {\r\n eFC = this.studentIncome;\r\n }\r\n return eFC;\r\n }", "title": "" }, { "docid": "f879bc7064348fb124cf82c8b6a42a39", "score": "0.5351897", "text": "public void processRentalAgreement() {\n\n this.setDueDate(this.calculateDueDate(this.getRentalDays(), this.getCheckoutDate()));\n this.setChargeDays(this.calculateChargeDays(this.getCheckoutDate(), this.getDueDate(), this.toolType));\n this.setPreDiscountCharge(this.calculatePreDiscountCharge(this.getChargeDays(), this.getDailyRentalCharge()));\n this.setDiscountAmount(this.calculateDiscountAmount(this.getPreDiscountCharge(),this.getDiscountPercent()));\n this.setFinalCharge(this.calculateFinalCharge(this.getPreDiscountCharge(), this.getDiscountAmount()));\n\n }", "title": "" }, { "docid": "aa79f8d3fcdf578b6292907e40fb914f", "score": "0.5349255", "text": "public double getWaterRadialConductance(){\n\t\t \t \n\t\tdouble cond = 0.0; \n\t\t\n\t\t// If the root is an axe\n\t\tif(type == 10 || type == 20 || type == 30){\n\t\t\t \n\t\t\tfloat d1 = 12 / axialGrowthRate;\n\t\t\tfloat d2 = 20 / axialGrowthRate;\n\t\t\tfloat d3 = 45 / axialGrowthRate;\n\t\t\tfloat d4 = 60 / axialGrowthRate;\n\t\t\t \n\t\t\tif(thermalAge <= d1) cond = 2.0e-7;\n\t\t\telse if (thermalAge>d1 && thermalAge<=d2) cond = (-0.17 * (thermalAge * axialGrowthRate) + 4.3) * 1e-7;\n\t\t\telse if (thermalAge>d2 && thermalAge<=d3) cond = 0.8e-7;\n\t\t\telse if (thermalAge>d3 && thermalAge<=d4) cond = (-0.04 * (thermalAge * axialGrowthRate) + 2.6)* 1e-7;\n\t\t\telse cond=0.2e-7;\n//\t\t\tcond=0.2e-7;\n\t\t}\n\t\t \n\t\t// If the root is a branch\n\t\telse {\n\t\t\tdouble age = getAge() / 24;\t \n\n\t\t\tfloat d1 = 10;\n\t\t\tfloat d2 = 16;\n\t\t\t \n\t\t\tif(age <= d1) cond = 2.0e-7;\n\t\t\telse if (age>d1 && age<=d2) cond = (-0.3 * age + 5) * 1e-7;\n\t\t\telse cond=0.2e-7;\n//\t\t\tcond=0.2e-7;\n\t\t}\n\t\t \t\t \n\t\t// If the segment is in the air, its resistance is too big to uptake or lose water\n\t\tif(node.z > 0) cond = Util.epsilonDouble;\n\t\t \n\t\treturn cond * getAQPCondEffect() * getABACondEffect() * parms.radMod;\n\t}", "title": "" }, { "docid": "ab9d766ae9ce19cfca1adf7deb34e328", "score": "0.5334346", "text": "public double calcularEnergiaReal() {\n\n double inteligencia = 1 * this.movRealizado.getPoder().getInteligencia();\n double velocidad = 0.75 * this.movRealizado.getPoder().getVelocidad();\n double habilidad = 0.25 * this.movRealizado.getPoder().getHabilidad();\n double fuerza = 0.2 * this.movRealizado.getPoder().getFuerza();\n\n return this.getEnergia() + (inteligencia * this.getEnergia() + velocidad * this.getEnergia() + habilidad * this.getEnergia() + fuerza * this.getEnergia()) / 10;\n\n }", "title": "" }, { "docid": "0733dc87203f6fd701cce2c0541f5502", "score": "0.5243927", "text": "private static void irrTestPartnerOwners() {\n double[] investmentNumbers = new double[2];\n investmentNumbers[0] = -40000.0;\n investmentNumbers[1] = 57500.0;\n\n\n System.out.println(Irr.irr(investmentNumbers));\n }", "title": "" }, { "docid": "37967661a7ae2fe31487e6eb1479c29d", "score": "0.5183105", "text": "float getArrearsInterest();", "title": "" }, { "docid": "d75a0e05c48cc69c84d80cbef7e63ece", "score": "0.5182434", "text": "public double calcFederalAidAmount() {\r\n double federalAidAmount;\r\n double grantAward = calcFederalGrant();\r\n double staffordLoan = calcStaffordLoan();\r\n double workStudy = calcWorkStudy();\r\n if (isFederalAidEligible()) {\r\n federalAidAmount = grantAward + staffordLoan + workStudy;\r\n }\r\n else {\r\n return 0;\r\n }\r\n return federalAidAmount;\r\n }", "title": "" }, { "docid": "461fddf0d719180fae26fdd53c0e03a8", "score": "0.51785123", "text": "public JSONObject calculateScope1CompanyOwnedAircraft(String blId, int calcYear,\n String scenarioId, int sourceId, JobStatus status) {\n JSONObject jsonExpression = new JSONObject();\n String tableName = \"gb_fp_s1_co_airc\";\n Clause[] inputClauses = getInputClausesForTable(\"gb_fp_setup\", blId, calcYear, scenarioId,\n 0, null);\n DataRecord recSetup = getRecordFromTable(\"gb_fp_setup\", Restrictions.and(inputClauses),\n false);\n // setup record is not found we must stop execution\n if (recSetup == null) {\n String message = this.gbConstants\n .getLocalizedString(this.gbConstants.SETUP_RECORD_NOT_FOUND);\n message = message.replace(\"{0}\", blId);\n message = message.replace(\"{1}\", String.valueOf(calcYear));\n message = message.replace(\"{2}\", scenarioId);\n jsonExpression.put(\"message\", message);\n return jsonExpression;\n }\n inputClauses = getInputClausesForTable(tableName, blId, calcYear, scenarioId, sourceId,\n null);\n List<DataRecord> companyAircraftSources = getRecordsFromTable(tableName,\n Restrictions.and(inputClauses), true);\n int counter = 0;\n int totalSources = companyAircraftSources.size();\n status.setMessage(this.gbConstants\n .getLocalizedString(this.gbConstants.CALCULATING_EMISSIONS));\n status.setTotalNumber(totalSources);\n status.setCurrentNumber(counter);\n \n Iterator<DataRecord> it_sources = companyAircraftSources.iterator();\n while (it_sources.hasNext()) {\n DataRecord recSource = it_sources.next();\n /*\n * Get average fuel consumption and fuel data\n */\n Double avgFuel = null;\n String fuelBaseCode = null;\n String fuelMode = null;\n String fuelName = null;\n String[] tmpFields = { \"avg_fuel\", \"fuel_base_code\", \"fuel_mode\", \"fuel_name\" };\n Restriction tmpRestr = Restrictions.and(\n Restrictions.eq(\"gb_fp_airc_data\", \"version_type\",\n recSetup.getValue(\"gb_fp_setup.airc_version_type\")),\n Restrictions.eq(\"gb_fp_airc_data\", \"version_name\",\n recSetup.getValue(\"gb_fp_setup.airc_version\")),\n Restrictions.eq(\"gb_fp_airc_data\", \"aircraft_type\",\n recSource.getValue(\"gb_fp_s1_co_airc.aircraft_type\")));\n \n DataRecord tmpRec = getFactorsFromTable(\"gb_fp_airc_data\", tmpFields, tmpRestr, null);\n if (tmpRec != null) {\n if (StringUtil.notNullOrEmpty(tmpRec.getValue(\"gb_fp_airc_data.avg_fuel\"))) {\n avgFuel = tmpRec.getDouble(\"gb_fp_airc_data.avg_fuel\");\n }\n if (StringUtil.notNullOrEmpty(tmpRec.getValue(\"gb_fp_airc_data.fuel_base_code\"))) {\n fuelBaseCode = tmpRec.getString(\"gb_fp_airc_data.fuel_base_code\");\n }\n if (StringUtil.notNullOrEmpty(tmpRec.getValue(\"gb_fp_airc_data.fuel_mode\"))) {\n fuelMode = tmpRec.getString(\"gb_fp_airc_data.fuel_mode\");\n }\n if (StringUtil.notNullOrEmpty(tmpRec.getValue(\"gb_fp_airc_data.fuel_name\"))) {\n fuelName = tmpRec.getString(\"gb_fp_airc_data.fuel_name\");\n }\n }\n if (avgFuel == null) {\n jsonExpression.put(\"message\", this.gbConstants\n .getLocalizedString(this.gbConstants.notLocalizedFactorNotFoundMsg));\n avgFuel = Double.valueOf(0);\n }\n /*\n * Get fuel density\n */\n inputClauses = new Clause[5];\n inputClauses[0] = Restrictions.eq(\"gb_fp_fuel_dens_data\", \"version_type\",\n recSetup.getValue(\"gb_fp_setup.fuel_dens_version_type\"));\n inputClauses[1] = Restrictions.eq(\"gb_fp_fuel_dens_data\", \"version_name\",\n recSetup.getValue(\"gb_fp_setup.fuel_dens_version\"));\n inputClauses[2] = Restrictions.eq(\"gb_fp_fuel_dens_data\", \"fuel_base_code\",\n fuelBaseCode);\n inputClauses[3] = Restrictions.eq(\"gb_fp_fuel_dens_data\", \"fuel_mode\", fuelMode);\n inputClauses[4] = Restrictions.eq(\"gb_fp_fuel_dens_data\", \"fuel_name\", fuelName);\n \n Double fuelDensity = (Double) getFactorFromTable(\"gb_fp_fuel_dens_data\",\n \"fuel_density\", Restrictions.and(inputClauses), null);\n if (fuelDensity == null) {\n jsonExpression.put(\"message\", this.gbConstants\n .getLocalizedString(this.gbConstants.notLocalizedFactorNotFoundMsg));\n fuelDensity = Double.valueOf(0);\n }\n /*\n * Get heat content\n */\n inputClauses = new Clause[5];\n inputClauses[0] = Restrictions.eq(\"gb_fp_heat_data\", \"version_type\",\n recSetup.getValue(\"gb_fp_setup.heat_version_type\"));\n inputClauses[1] = Restrictions.eq(\"gb_fp_heat_data\", \"version_name\",\n recSetup.getValue(\"gb_fp_setup.heat_version\"));\n inputClauses[2] = Restrictions.eq(\"gb_fp_heat_data\", \"fuel_base_code\", fuelBaseCode);\n inputClauses[3] = Restrictions.eq(\"gb_fp_heat_data\", \"fuel_mode\", fuelMode);\n inputClauses[4] = Restrictions.eq(\"gb_fp_heat_data\", \"fuel_name\", fuelName);\n \n Double heatContent = (Double) getFactorFromTable(\"gb_fp_heat_data\", \"conv_gcv\",\n Restrictions.and(inputClauses), null);\n if (heatContent == null) {\n jsonExpression.put(\"message\", this.gbConstants\n .getLocalizedString(this.gbConstants.notLocalizedFactorNotFoundMsg));\n heatContent = Double.valueOf(0);\n }\n /*\n * Average fuel consumed cubic meter per hour\n */\n Double avgFuelM3h = avgFuel * GbConstants.gal_m3;\n /*\n * Fuel heat content\n */\n Double fuelHeatContent = heatContent * GbConstants.mj_gj;\n /*\n * Fuel consumed\n */\n Double fuelConsumedHour = avgFuel * GbConstants.gal_m3 * fuelDensity * heatContent\n * GbConstants.mj_gj;\n \n /*\n * Carbon content\n */\n inputClauses = new Clause[5];\n inputClauses[0] = Restrictions.eq(\"gb_fp_carbon_data\", \"version_type\",\n recSetup.getValue(\"gb_fp_setup.carbon_version_type\"));\n inputClauses[1] = Restrictions.eq(\"gb_fp_carbon_data\", \"version_name\",\n recSetup.getValue(\"gb_fp_setup.carbon_version\"));\n inputClauses[2] = Restrictions.eq(\"gb_fp_carbon_data\", \"fuel_base_code\", fuelBaseCode);\n inputClauses[3] = Restrictions.eq(\"gb_fp_carbon_data\", \"fuel_mode\", fuelMode);\n inputClauses[4] = Restrictions.eq(\"gb_fp_carbon_data\", \"fuel_name\", fuelName);\n \n Double carbonFact = (Double) getFactorFromTable(\"gb_fp_carbon_data\", \"content\",\n Restrictions.and(inputClauses), null);\n if (carbonFact == null) {\n jsonExpression.put(\"message\", this.gbConstants\n .getLocalizedString(this.gbConstants.notLocalizedFactorNotFoundMsg));\n carbonFact = Double.valueOf(0);\n }\n /*\n * CCO2\n */\n Double cCo2 = GbConstants.c_co2;\n /*\n * Total Emissions\n */\n Double kgCo2 = recSource.getDouble(\"gb_fp_s1_co_airc.hours\") * fuelConsumedHour\n * carbonFact * cCo2;\n // update into database\n recSource.setValue(\"gb_fp_s1_co_airc.kg_co2\", kgCo2);\n this.emisScopeDataSource.saveRecord(recSource);\n if (sourceId > 0) {\n jsonExpression.put(\"fuel_consumed_hour\", fuelConsumedHour);\n jsonExpression.put(\"heat_content\", fuelHeatContent);\n jsonExpression.put(\"avg_fuel_consumed\", avgFuelM3h);\n jsonExpression.put(\"fuel_density\", fuelDensity);\n jsonExpression.put(\"carbon_fact\", carbonFact);\n jsonExpression.put(\"c_CO2\", cCo2);\n jsonExpression.put(\"kg_CO2\", kgCo2);\n \n }\n status.setCurrentNumber(++counter);\n }\n return jsonExpression;\n }", "title": "" }, { "docid": "1a1d24294b06ee8b133178e7bc3f0cce", "score": "0.51415294", "text": "double getImpactResistance();", "title": "" }, { "docid": "087dc40e5bd18fc363d6fad961f86a43", "score": "0.5137606", "text": "protected void calculateDependentCareDeductionForAU(Fce fce) throws SQLException {\r\n long idFceEligibility = fceEligibilityDB.getIdFceEligibility();\r\n // Calculating Dependent Care Deduction for the AU\r\n List<FceExpendituresDB> expenditures = IncomeHelper.findFceExpenditures(connection, idFceEligibility);\r\n\r\n // sum expenditures for both child and disabled Adult\r\n double amtDependentCareDeduc = 0.0;\r\n for (Iterator<FceExpendituresDB> expendituresIterator = expenditures.iterator(); expendituresIterator.hasNext();) {\r\n FceExpendituresDB fceExpendituresDB = expendituresIterator.next();\r\n long idPersonCareReceive = fceExpendituresDB.getIdPersonCareReceive();\r\n FcePersonDB fcePersonDB = fce.retrieveFcePersonByIdPerson(idPersonCareReceive);\r\n long age = fcePersonDB.getNbrAge();\r\n double amtPdMonthly = fceExpendituresDB.getAmtPdMonthly();\r\n if (age < MIN_AGE_MONTHLY_DEDUC) {\r\n if(amtPdMonthly > AMT_MONTHLY_PAID_200){\r\n amtPdMonthly = AMT_MONTHLY_PAID_200;\r\n }\r\n }else if(age >= MIN_AGE_MONTHLY_DEDUC){\r\n if(amtPdMonthly > AMT_MONTHLY_PAID_175){\r\n amtPdMonthly = AMT_MONTHLY_PAID_175;\r\n }\r\n }\r\n amtDependentCareDeduc += amtPdMonthly;\r\n }\r\n\r\n if(fceEligibilityDB.getAmtGrossEarnedCrtfdGrp() <= 0 ){\r\n fceEligibilityDB.setAmtDependentCareDeduc(0) ;\r\n }else{\r\n fceEligibilityDB.setAmtDependentCareDeduc(amtDependentCareDeduc) ;\r\n }\r\n fce.saveFceEligibility(fceEligibilityDB);\r\n }", "title": "" }, { "docid": "78e8412d7c24fdf64f200f7acc26169d", "score": "0.50815773", "text": "private static float calculerLeRabais() {\n float rabais;\n Inscription inscription = Inscription.getInstance();\n if(inscription.getListePersonnes().size() >= 15 && inscription.getListePersonnes().size() <= 30)\n rabais = 10;\n else if(inscription.getListePersonnes().size() >= 31)\n rabais = 15;\n else\n rabais = 0;\n return rabais;\n }", "title": "" }, { "docid": "4b53d35b38ea5edaf09c0bb3ab59ee15", "score": "0.50592875", "text": "public int calculateIncome() {\n\t\tint costOfRoomService = roomService*super.getTotalRentalDays();\r\n\t\treturn (super.getDailyRate()*super.getTotalRentalDays()+taxRate+costOfRoomService);\r\n\t}", "title": "" }, { "docid": "55189d5d670976665d86a19792191d62", "score": "0.50512534", "text": "@Override\n\tpublic double commissionCalculator() {\n\t\treturn (this.getValue() * ResidentialProperty.R_COMMISSION);\n\t}", "title": "" }, { "docid": "ad1a88483b1220fc81475a5bedf6dda3", "score": "0.50498533", "text": "static void calc ( double p, double r, int d)throws Exception{\n if (p < InvalidPrincipalException.MIN_PRINCIPAL || p > InvalidPrincipalException.MAX_PRINCIPAL)\n throw new InvalidPrincipalException();\n\n if (r < Invalid_RateofInterestException.MIN_RATE || r > Invalid_RateofInterestException.MAX_RATE)\n throw new Invalid_RateofInterestException ();\n\n if (d < Invalid_DurationException.MIN_DURATION || d > Invalid_DurationException.MAX_DURATION)\n throw new Invalid_DurationException();\n\n double interest = p * r / 100 / 12 * d;\n System.out.println(\"Interest : \"+interest);\n }", "title": "" }, { "docid": "6da46bf839c9491111fe2f5abe71ea62", "score": "0.5045992", "text": "double getTotal_expected_repayment_derived();", "title": "" }, { "docid": "78437552cb99d583753585fa736b0885", "score": "0.5020423", "text": "public double calcFederalGrant() {\r\n double eFC = calcEFC();\r\n double grantAward = 0;\r\n if (this.classStanding == null) {\r\n return 0;\r\n }\r\n String classStandingLower = this.classStanding.toLowerCase();\r\n if (!classStandingLower.equals(\"undergraduate\") || !classStandingLower.equals(\"undergraduate\")) {\r\n return 0;\r\n }\r\n if (eFC >= 0.00 && eFC <= 50000.00) {\r\n if (classStandingLower.equals(\"undergraduate\")) {\r\n if (this.creditHours < 9) {\r\n grantAward = 2500;\r\n } else if (this.creditHours >= 9) {\r\n grantAward = 5775;\r\n }\r\n }\r\n }\r\n return grantAward;\r\n }", "title": "" }, { "docid": "d284566025af90261d4b7eddff726fae", "score": "0.49927977", "text": "public double getFilamentRetractAccl() {\n return filamentRetractAccl;\n }", "title": "" }, { "docid": "9501fcaa01a6749541fcaf59b892560d", "score": "0.49927163", "text": "private static void irrTest1() {\n double[] investmentNumbers = new double[11];\n investmentNumbers[0] = -10000000.0;\n investmentNumbers[1] = 550000.0;\n investmentNumbers[2] = 566500.0;\n investmentNumbers[3] = 583495.0;\n investmentNumbers[4] = 601000.0;\n investmentNumbers[5] = 619030.0;\n investmentNumbers[6] = 637601.0;\n investmentNumbers[7] = 656729.0;\n investmentNumbers[8] = 676431.0;\n investmentNumbers[9] = 696724.0;\n investmentNumbers[10] = 18717625.0;\n\n System.out.println(Irr.irr(investmentNumbers));\n\n /*\n Using interface should return same result\n */\n Calculator c = new CalcIRR();\n System.out.println(\"This should be the same as above number \" +\n c.calc(investmentNumbers));\n\n }", "title": "" }, { "docid": "a401ceeada4c83c591fc87ed6df09db9", "score": "0.49881592", "text": "private void calculateFoodStamps() {\n\t\tboolean passedGrossIncomeTest = checkTotalGrossIncome();\r\n\t\tif (!isAged || !isDisabled) {\r\n // if gross income test fails, kick out\r\n\t\t\tif (!passedGrossIncomeTest) return;\r\n\t\t}\r\n\t\t\r\n\t\t// those eligible for Benefits bank and also aged or disabled don't do net income test\r\n\t\tboolean noNeedToCheckNetIncome = (totalGrossIncome <= Integer.parseInt(GROSS_INCOME_200[AGSize - 1]) && (isAged || isDisabled));\r\n\t\tboolean passedNetIncome = checkNetIncome();\r\n\r\n\t\tif (!noNeedToCheckNetIncome) {\r\n\t\t\tif (!passedNetIncome) return;\r\n\t\t}\r\n\r\n /* \tOAC 5101:4-4-27\r\n\t\t*\t(c) If the assistance group is subject to the net income standard, compare\r\n\t\t*\tthe assistance group's net monthly income to the maximum net monthly income\r\n\t\t*\tstandard. If the assistance group's net income is greater than the net\r\n\t\t*\tmonthly income standard, the assistance group is ineligible. If the\r\n\t\t*\tassistance group's net income is equal to or less than the net monthly income\r\n\t\t*\tstandard, the assistance group is eligible. Multiply the net monthly income by\r\n\t\t*\tthirty per cent.\r\n\t\t*\t(d) Round the product up to the next whole dollar if it ends in one cent\r\n\t\t*\tthrough ninety-nine cents\r\n\t\t*/\r\n\r\n finalNetIncome = Math.max(0, finalNetIncome);\r\n\r\n int benefitAmount = Integer.parseInt(FA_ALLOTMENT[AGSize - 1]) - (int)Math.ceil(finalNetIncome * 0.3);\r\n\r\n\t\t/* \tOAC 5101:4-4-27\r\n\t\t*\t(f) If the benefit is for a one or two person assistance group and the\r\n\t\t*\tcomputation results in a benefit of less than the minimum benefit\r\n\t\t*\tallotment, round up to the minimum benefit amount. */\r\n\r\n if (isDisabled || isAged || AGSize <= 3) benefitAmount = Math.max(benefitAmount, Integer.parseInt(MINNIMUM_MONTHLY_ALLOTMENT));\r\n dialogResults = \"Eligible for food stamps in the amount of $\" + benefitAmount + \" per month\";\r\n dialogTitle = \"Eligible\";\r\n\t}", "title": "" }, { "docid": "77669a13ad672d749a1a975f6c5d99b3", "score": "0.49872267", "text": "private float CalcuCalorias()\n {\n float CaloriasPorProteina = GramosProteinas*4;\n float CaloriasPorGrasa = Grasas*9;\n float CaloriasTotales = CaloriasPorProteina + CaloriasPorGrasa;\n return CaloriasTotales;\n }", "title": "" }, { "docid": "d45711f815c4d09b460dffd3678cb93e", "score": "0.498616", "text": "public void calculate() {\n if (HP <= 0) {\n gameEnd();\n }\n calculate_movement();\n if (!calculate_abilities()){\n calculate_missileShooting();}\n calculate_upgrades();\n calculate_powerPool();\n }", "title": "" }, { "docid": "51394fa2f9a0838c3abfc0132fbb1a88", "score": "0.49767852", "text": "private static void calculatePay()\n {\n regularPay = regularHours * payRate;\n overtimePay = overtimeHours * (payRate + (payRate / 2.0F));\n grossPay = regularPay + overtimePay;\n\n // Only calculate retirement plan deductions if applicable.\n if (retirementPlanActive)\n {\n float retirementCost = (grossPay * 0.03F);\n totalDeductions += retirementCost;\n itemizedDeductions += \"Retirement Plan: (\" + formatPrice(retirementCost) + \")\";\n }\n netPay = (regularPay + overtimePay) - totalDeductions;\n }", "title": "" }, { "docid": "9b2be9ab8b6aa4c040e0df0392e16a98", "score": "0.49725652", "text": "public abstract float calcolaRisultato();", "title": "" }, { "docid": "14a9b4691c99f914fd083dae2d75b54f", "score": "0.49683973", "text": "private double getCal(List<Map<String, Object>> unemploymentInsurance) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "90bb032778f63914126cd6da6561c8b1", "score": "0.4964974", "text": "public double calcRhombicity() {\n return calcSRhombic() / calcSAxial();\n }", "title": "" }, { "docid": "a12daaaee92e80b3cb2e0e510d3a1314", "score": "0.4964477", "text": "public double getWaterAxialConductance() {\n\t\t \n\t\tdouble age = getAge() / 24;\t \n\t\tdouble cond = 0.0; \n\t\t \n\t\t// If the root is an axe\n\t\tif(type == 10 || type == 20 || type == 30){\n\t\t\t \n\t\t\tfloat d1 = 12 / axialGrowthRate; \n\t\t\tfloat d2 = 35 / axialGrowthRate;\n\t\t\tfloat d3 = 50 / axialGrowthRate;\n\t\t\t \t\t \n\t\t\tif(thermalAge<=d1) cond = Util.epsilonDouble; // 0\n \t\t\telse if (thermalAge>d1 && thermalAge<=d2) cond = (0.0147 * (thermalAge * axialGrowthRate) - 0.0146) * 1e-9;\n\t\t\telse if (thermalAge>d2 && thermalAge<=d3) cond = (0.3 * (thermalAge * axialGrowthRate) - 10) * 1e-9;\n\t\t\telse cond =5e-9;\n//\t\t\tcond = 1e-9;\n\t\t}\n\t\t \n\t\t// If the root is a branch\n\t\telse {\n\t\t\tfloat d1 = 10; \n\t\t\tfloat d2 = 13;\n\t\t\tfloat d3 = 20;\n\t\t\tfloat d4 = 25;\n\t\t\t \n\t\t\tif(age<=d1) cond = Util.epsilonDouble; // 0\n\t\t\telse if (age>d1 && age<=d2) cond = (0.267 * age - 2.67) * 1e-12; //(0.0667 * age - 0.0666) * 1e-12; \n\t\t\telse if (age>d2 && age<=d3) cond = 0.8e-12;\n\t\t\telse if (age>d3 && age<=d4) cond = (0.24 * age - 4) * 1e-12;\n\t\t\telse cond = 2e-12;\n\t\t\t//cond = 1e-12;\n\t\t}\t \n\t\t \t\t\n\t\treturn cond * getCavitationEffect() * parms.axMod;\n\t}", "title": "" }, { "docid": "789049c68043f41c360869241701ac59", "score": "0.4959825", "text": "private double evaluateElasticBehaviour(int time) {\n\t\tdouble myDemand;\n\t\tint timeSinceSigValid = time - this.predictionValidTime;\n\n\t\t// As a basic strategy only the base (non-displaceable) demand is\n\t\t// elastic\n\n\t\t/*\n\t\t * double [] avgDemands7Days =\n\t\t * {0.500677033,0.407725724,0.370908322,0.35877468\n\t\t * ,0.347866658,0.324998379\n\t\t * ,0.343484827,0.308885358,0.298035432,0.27947423\n\t\t * ,0.280343265,0.289909821\n\t\t * ,0.303676612,0.333950661,0.426824179,0.616930198\n\t\t * ,0.630372238,0.589740306\n\t\t * ,0.53584991,0.589862047,0.621102996,0.621623774\n\t\t * ,0.727205077,0.845539884\n\t\t * ,0.959784962,0.931100067,0.864783952,0.773823124\n\t\t * ,0.835309411,0.635960097\n\t\t * ,0.663524804,0.781160132,0.8361668,1.010964822\n\t\t * ,1.306060966,1.31329955,\n\t\t * 1.245892295,0.996678877,0.990747587,0.946006202\n\t\t * ,0.944353378,0.954267895\n\t\t * ,0.909130777,0.792284367,0.751724127,0.660532121\n\t\t * ,0.637187946,0.557241803};\n\t\t * \n\t\t * double [] avgDemands;\n\t\t * \n\t\t * \n\t\t * if (mainContext.getDayCount() <\n\t\t * Consts.AGGREGATOR_PROFILE_BUILDING_PERIODE) myDemand =\n\t\t * baseDemandProfile[time % baseDemandProfile.length]; else if\n\t\t * (mainContext.getDayCount() >\n\t\t * Consts.AGGREGATOR_PROFILE_BUILDING_PERIODE &&\n\t\t * mainContext.getDayCount()<\n\t\t * Consts.AGGREGATOR_PROFILE_BUILDING_PERIODE+\n\t\t * Consts.AGGREGATOR_TRAINING_PERIODE) myDemand = avgDemands7Days[time %\n\t\t * avgDemands7Days.length]; else myDemand = baseDemandProfile[time %\n\t\t * baseDemandProfile.length];\n\t\t */\n\n\t\tmyDemand = this.arr_otherDemandProfile[time\n\t\t\t\t% this.arr_otherDemandProfile.length];\n\t\t// if (myDemand <0)\n\t\tif (this.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"*myDemand: \" + myDemand);\n\t\t}\n\n\t\t// Adapt behaviour somewhat. Note that this does not enforce total\n\t\t// demand the same over a day.\n\t\t// Note, we can only moderate based on cost signal\n\t\t// if we receive it (i.e. if we have smart meter)\n\t\t// TODO: may have to refine this - do we differentiate smart meter and\n\t\t// smart display - i.e. whether receive only or Tx/Rx\n\n\t\tif (this.hasSmartMeter && this.getPredictedCostSignalLength() > 0) {\n\t\t\tdouble predictedCostSignal = this.getPredictedCostSignal()[timeSinceSigValid\n\t\t\t\t\t% this.getPredictedCostSignalLength()];\n\n\t\t\t// if (mainContext.getDayCount() >\n\t\t\t// Consts.AGGREGATOR_PROFILE_BUILDING_PERIODE +\n\t\t\t// Consts.AGGREGATOR_PROFILE_BUILDING_PERIODE+\n\t\t\t// Consts.AGGREGATOR_TRAINING_PERIODE)\n\t\t\t// predictedCostNow = predictedCostNow *1000;\n\n\t\t\tdouble myE = this.dailyElasticity[time\n\t\t\t\t\t% this.mainContext.ticksPerDay];\n\t\t\t// double eChange =\n\t\t\t// mainContext.hhProsumerElasticityTest.nextDouble();\n\t\t\t// if ( this.mainContext.logger.isTraceEnabled()) {\n\t\t\t// this.mainContext.logger.trace(\"eChange: \"+ eChange);\n\t\t\t// }\n\t\t\t// myE = myE + eChange;\n\t\t\t// myDemand = myDemand * (1 - ((predictedCostNow /\n\t\t\t// Consts.NORMALIZING_MAX_COST) * dailyElasticity[time %\n\t\t\t// this.mainContext.ticksPerDay]));\n\n\t\t\tdouble initialDemand = myDemand;\n\t\t\tmyDemand = myDemand\n\t\t\t\t\t* (1 - ((predictedCostSignal / Consts.NORMALIZING_MAX_COST) * myE));\n\n\t\t\tif (myDemand < 0) {\n\t\t\t\t/*\n\t\t\t\t * this.mainContext.logger.debug(\"=================time: \"+this.\n\t\t\t\t * timeOfDay+ \", id: \"+this.agentID + \", occ: \"+ if ( *\n\t\t\t\t * this.numOccupants); this.mainContext.logger.isDebugEnabled())\n\t\t\t\t * { this.numOccupants); this.mainContext.logger.debug(\"pos: \"+\n\t\t\t\t * time % arr_otherDemandProfile.length); }\n\t\t\t\t * \n\t\t\t\t * if ( * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(\"myElast: \"+ myE); } if ( *\n\t\t\t\t * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(\"costSig: \"+\n\t\t\t\t * predictedCostSignal); } if ( *\n\t\t\t\t * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(\"myDemand (before): \"+\n\t\t\t\t * initialDemand); } if ( *\n\t\t\t\t * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(\"myDemand (befor2): \"+\n\t\t\t\t * arr_otherDemandProfile[time %\n\t\t\t\t * arr_otherDemandProfile.length]); }\n\t\t\t\t * this.mainContext.logger.debug(\"myDemand (after ): \"+myDemand\n\t\t\t\t * +\", costSignal:\"+predictedCostSignal); if ( *\n\t\t\t\t * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(); } if ( *\n\t\t\t\t * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(\"myDemand (all): \"+\n\t\t\t\t * Arrays.toString(arr_otherDemandProfile)); }\n\t\t\t\t * \n\t\t\t\t * if ( * this.mainContext.logger.isDebugEnabled()) {\n\t\t\t\t * this.mainContext.logger.debug(\"====================== \"); }\n\t\t\t\t */\n\t\t\t}\n\n\t\t\tif (this.mainContext.logger.isDebugEnabled() && mainContext.isBeginningOfDay()) {\n\t\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t\t.debug(\"============================\");\n\t\t\t\t\tthis.mainContext.logger.debug(\"dailyDemand: \"\n\t\t\t\t\t\t\t+ Arrays.toString(this.arr_otherDemandProfile));\n\t\t\t\t\tthis.mainContext.logger.debug(\"dailyElasticity: \"\n\t\t\t\t\t\t\t+ Arrays.toString(this.dailyElasticity));\n\t\t\t\t\tthis.mainContext.logger.debug(\"predictedCostSignal: \"\n\t\t\t\t\t\t\t+ Arrays.toString(this.getPredictedCostSignal()));\n\t\t\t\t\tthis.mainContext.logger.debug(\"predictedCostSignal: \"\n\t\t\t\t\t\t\t+ predictedCostSignal);\n\t\t\t\t\tthis.mainContext.logger.debug(\"predictedCostNow * myE: \"\n\t\t\t\t\t\t\t+ predictedCostSignal * myE);\n\t\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t\t.debug(\"dailyElasticity[time % this.mainContext.ticksPerDay]: \"\n\t\t\t\t\t\t\t\t\t+ this.dailyElasticity[time\n\t\t\t\t\t\t\t\t\t\t\t% this.mainContext.ticksPerDay]);\n\t\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t\t.debug(\"HouseholdProsumer:: Based on predicted cost = \"\n\t\t\t\t\t\t\t\t\t+ predictedCostSignal\n\t\t\t\t\t\t\t\t\t+ \" demand set to \"\n\t\t\t\t\t\t\t\t\t+ (1 - ((predictedCostSignal / Consts.NORMALIZING_MAX_COST) * this.dailyElasticity[time\n\t\t\t\t\t\t\t\t\t\t\t% this.mainContext.ticksPerDay]))\n\t\t\t\t\t\t\t\t\t+ \" of initial \");\n\t\t\t}\n\t\t}\n\n\t\treturn myDemand;\n\t}", "title": "" }, { "docid": "da62575b6e0c78c01622575041360c3c", "score": "0.4956072", "text": "private double calculateReock(Set<District> districts){\n return 0.0;\n }", "title": "" }, { "docid": "792cd3048d8bda29c9dbbd9d59d257d0", "score": "0.49480304", "text": "private void rerunAccrualForNotEligibleForAccrualChanges(String earnCode, LocalDate asOfDate, LocalDate startDate, LocalDate endDate) {\r\n\t\tEarnCode ec = HrServiceLocator.getEarnCodeService().getEarnCode(earnCode, asOfDate);\r\n\t\tif(ec != null && ec.getEligibleForAccrual().equals(\"N\")) {\r\n\t\t\tif(startDate != null && endDate != null) {\r\n\t\t\t\t// since we are only recalculating accrual for this pay period, we use \"false\" to not record the accrual run data\r\n\t\t\t\tLmServiceLocator.getLeaveAccrualService().runAccrual(HrContext.getTargetPrincipalId(), startDate.toDateTimeAtStartOfDay(), endDate.toDateTimeAtStartOfDay(), false);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "abaa5086f51e4d14764f3c2c92432b7b", "score": "0.49313107", "text": "public void repaymentSchedule(float emi, float loanAmount, float rateofInterest, float tenure, float NoofInstallments) {\n\tSystem.out.println(\"******The Repayment Schedule for the entire loan period************\");\r\n\tint j;\r\n\tfloat outstandingPrincipal[] = new float[100];\r\n\tfloat principalComponent[] = new float[100];\r\n\tfloat interestRate[] = new float[100];\r\n\toutstandingPrincipal[1] = loanAmount;\r\n\t//System.out.println(\"#.no\\tOutstandingPrinciple\\tInterest\\t\" + \"Principal\\t\" + \"EMI\");\r\n\tfor (j = 1; j <= NoofInstallments; j++) {\r\n\t\tinterestRate[j] = (outstandingPrincipal[j] * (rateofInterest / (NoofInstallments * 100)));\r\n\t\tprincipalComponent[j] = emi - interestRate[j];\r\n\t\toutstandingPrincipal[j + 1] = outstandingPrincipal[j] - principalComponent[j];\r\n//\t\tSystem.out.println(j + \"\\t\" + Math.round(outstandingPrincipal[j] * 100) / 100 + \"\\t\\t\\t\"\r\n//\t\t\t\t+ Math.round(interestRate[j] * 100) / 100 + \"\\t\\t\" + Math.round(principalComponent[j] * 100) / 100\r\n//\t\t\t\t+ \"\\t\\t\" + Math.round(emi * 100) / 100);\r\n\t}\r\n}", "title": "" }, { "docid": "c15a5e7231bca5b52b9da792fcbb5a12", "score": "0.4921951", "text": "public MinguoEra getEra() {\n/* 241 */ return (getProlepticYear() >= 1) ? MinguoEra.ROC : MinguoEra.BEFORE_ROC;\n/* */ }", "title": "" }, { "docid": "8714c1549f59ce7fbc8613c4deafe908", "score": "0.4919237", "text": "private static AlgorithmAnalysis calculateFlightAnalysis(FlightSimulation flight, REGIME regime,\n Amount<Length> airportAltitude, Amount<Length> segmentDistance) {\n\n // Fuel Consumption\n Amount<Mass> consumption = Amount.valueOf(0, SI.KILOGRAM);\n\n // Atributes from flight\n double cruiseAltitude = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getCruiseAltitude().doubleValue(SI.METER);\n Amount e = flight.getFlightInfo().getAircraft().getAircraftModel().getE();\n Amount<Force> thrust_0 = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getThrustFunction().getThrust0();\n Amount<Force> thrustMaxSpeed = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getThrustFunction().getThrustMaxSpeed();\n Amount<Velocity> maxSpeed = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getThrustFunction().getMaxSpeed();\n int numMotors = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getNumberOfMotors();\n Amount tsfc = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getTsfc();\n Amount<Mass> mass = flight.getEffectiveCargo().plus(flight.getEffectiveFuel()).plus(flight.getFlightInfo().getAircraft().getAircraftModel().getEmptyWeight());\n\n // Intialized variables to calculate during iteration\n int lapsedTime = 0;\n double startingAltitude = (regime == REGIME.CLIMB) ? airportAltitude.doubleValue(SI.METER) : cruiseAltitude;\n Amount<Mass> fuelBurn = Amount.valueOf(0, SI.KILOGRAM);\n Amount<Length> distance = Amount.valueOf(0, SI.METER);\n Amount<Force> lambda = getLambda(thrust_0, thrustMaxSpeed, maxSpeed);\n Amount<Velocity> climbRate = Amount.valueOf(Double.POSITIVE_INFINITY, SI.METERS_PER_SECOND);\n // Unintialized variables to calculate during iteration\n Amount<Length> altitude;\n Amount<VolumetricDensity> airDensity;\n Amount<Velocity> ias;\n Amount<Velocity> mTrue;\n Amount<Velocity> tas;\n Amount<Force> drag;\n Amount<Force> thrust;\n Amount<Force> totalThrust;\n Amount<Angle> climbAngle;\n Amount<Length> stepDistance;\n Amount<Pressure> pressure;\n Amount<Temperature> temperature;\n\n boolean stopCriteria = true;\n while (stopCriteria) {\n\n // Variables to calculate during iteration\n altitude = Amount.valueOf(startingAltitude, SI.METER);\n mass = getNewMass(mass, fuelBurn);\n pressure = getPressure(altitude);\n temperature = getTemperature(altitude);\n airDensity = getAirDensity(pressure, temperature);\n if (!regime.equals(REGIME.CRUISE)) {\n ias = getIAS(flight, altitude, regime);\n mTrue = getMachTrue(ias, airDensity);\n } else {\n mTrue = flight.getFlightInfo().getAircraft().getAircraftModel().getMotorization().getCruiseSpeed();\n }\n tas = calculateTAS(altitude, mTrue);\n drag = getDragForce(flight, altitude, mass, e, mTrue);\n double landingFactor = (regime == REGIME.LANDING) ? 0.1 : 1;\n thrust = (regime == REGIME.CRUISE) ? Amount.valueOf(0, SI.NEWTON)\n : getThrust(flight, lambda, mTrue, airDensity).times(landingFactor);\n totalThrust = (regime == REGIME.CRUISE) ? drag : getTotalThrust(thrust, numMotors);\n fuelBurn = getFuelBurnCalculation(totalThrust, Amount.valueOf(TIMESTEP, SI.SECOND), tsfc);\n climbRate = getRateOfClimb(totalThrust, drag, tas, mass);\n climbAngle = getClimbingAngle(climbRate, tas);\n stepDistance = getTimeStepDistance(tas, climbAngle, Amount.valueOf(TIMESTEP, SI.SECOND));\n distance = getCumulativeDistance(distance, stepDistance);\n consumption = consumption.plus(fuelBurn);\n startingAltitude = getCumulativeAltitude(altitude, climbRate, Amount.valueOf(TIMESTEP, SI.SECOND)).doubleValue(SI.METER);\n lapsedTime += TIMESTEP;\n\n switch (regime) {\n case CLIMB:\n stopCriteria = (startingAltitude < cruiseAltitude) && (climbRate.isGreaterThan(MIN_CLIMB_RATE));\n break;\n case LANDING:\n stopCriteria = startingAltitude > airportAltitude.doubleValue(SI.METER);\n break;\n default:\n // CRUISE\n stopCriteria = (distance.isLessThan(segmentDistance));\n break;\n }\n }\n\n return new AlgorithmAnalysis(distance, Amount.valueOf(lapsedTime, SI.SECOND), consumption);\n }", "title": "" }, { "docid": "bf4c4033bbd48059b3f3c285acbd4463", "score": "0.491782", "text": "public double getAire() {\n\t\tdouble p = getPerimetre()/2;\n\t\tdouble s = Math.sqrt(p*(p-this.coteAB)*(p-this.coteAC)*(p-this.coteBC));\n\t\treturn s;\n\t}", "title": "" }, { "docid": "4434464b120e49f32291efe52b57e649", "score": "0.4916379", "text": "Aircraft getResult();", "title": "" }, { "docid": "441d866dc6d8cc15ec84a2dbac538b87", "score": "0.49136198", "text": "private void agilityEffects(){\n\t\t//primary\n\t\tthis.addModifier(new Modifier(\"Agility\",this.agility/10),\"Speed\");//TODO square root here\n\n\t\tthis.addModifier(new Modifier(\"Agility\",this.agility*1.1f),\"PhysicalAttackSuccess\");\n\t\tthis.addModifier(new Modifier(\"Agility\",this.agility),\"PhysicalDefenseSuccess\");\n\t\tthis.addModifier(new Modifier(\"Agility\",this.agility/10),\"PhysicalAttackSuccessVariance\");\n\t\t//secondary\n\t\tthis.addModifier(new Modifier(\"Agility\",this.agility/3),\"Dmg\");\n\t\tthis.addModifier(new Modifier(\"Agility\",(float) (this.agility*0.3)),\"PierceDmg\");\n\t\tthis.addModifier(new Modifier(\"Agility\",(float) (this.agility/50)),\"range\");//TODO square root here\n\t}", "title": "" }, { "docid": "db64cb47fdd80a9d061314b219ace98c", "score": "0.49017704", "text": "public double getCharge(){\n double total = 0;\n\n // Sum over all contributing activations and their respective charges\n for(int i = 0; i < actStep.length; i++){\n if(actStep[i] != -1){\n total += charge.get(e.getStep() - actStep[i]) * actCharge[i];\n }\n }\n return total;\n }", "title": "" }, { "docid": "6dcca57f0bdb0df1e7ae2e08ebd29b75", "score": "0.49000412", "text": "private double evaluateElasticBehaviour(int time)\n\t{\n\t\tif (Consts.DEBUG) System.out.println(\"HHProsumer:: evaluateElasticBehaviour --- time: \"+time);\n\t\tdouble myDemand;\n\t\tint timeSinceSigValid = time - predictionValidTime;\n\t\tif (Consts.DEBUG) System.out.println(\" predictionValidTime: \"+predictionValidTime);\n\t\tif (Consts.DEBUG) System.out.println(\" predictionValidTime: \"+predictionValidTime);\n\t\tif (Consts.DEBUG) System.out.println(\" timeSinceSigValid: \"+timeSinceSigValid);\n\n\t\t//As a basic strategy only the base (non-displaceable) demand is\n\t\t//elastic\n\t\tmyDemand = arr_otherDemandProfile[time % arr_otherDemandProfile.length];\n\t\tdouble initialDemand = myDemand;\n\t\t\n\t\t//if (Consts.DEBUG) System.out.println(\" hasSmartMeter: \"+hasSmartMeter);\n\t\t//if (Consts.DEBUG) System.out.println(\" getPredictedCostSignalLength: \"+getPredictedCostSignalLength());\n\t\tif (Consts.DEBUG) System.out.println(\" PredictedCostSignal (cost Sig): \"+Arrays.toString(getPredictedCostSignal()));\n\t\t//if (Consts.DEBUG) System.out.println(\" dailyEalsticity : \"+Arrays.toString(dailyElasticity));\n\n\n\t\t// Adapt behaviour somewhat. Note that this does not enforce total demand the same over a day.\n\t\t// Note, we can only moderate based on cost signal\n\t\t// if we receive it (i.e. if we have smart meter)\n\t\t// TODO: may have to refine this - do we differentiate smart meter and smart display - i.e. whether receive only or Tx/Rx\n\t\t\n\t\t//if(hasSmartMeter && getPredictedCostSignalLength() > 0)\n\t\tif(getPredictedCostSignalLength() > 0)\n\t\t{\n\t\t\tif (Consts.DEBUG) System.out.println(\" timeSinceSigValid % getPredictedCostSignalLength()): \"+timeSinceSigValid % getPredictedCostSignalLength());\n\t\t\tdouble predictedCostNow = getPredictedCostSignal()[timeSinceSigValid % getPredictedCostSignalLength()];\n\t\t\tif (predictedCostNow == 1)\n\t\t\t\tif (Consts.DEBUG) System.out.println(\" ******** predictedCost is ONE ****** \");\n\t\t\tif (Consts.DEBUG) System.out.println(\" predictedCost (cost Signal): \"+predictedCostNow);\n\t\t\tif (Consts.DEBUG) System.out.println(\" dailyElasticity : \"+dailyElasticity[time % this.mainContext.ticksPerDay]);\n\n\t\t\tmyDemand = myDemand * (1 - ((predictedCostNow / Consts.NORMALIZING_MAX_COST) * dailyElasticity[time % this.mainContext.ticksPerDay]));\n\t\t\tif (Consts.DEBUG)\n\t\t\t{\n\t\t\t\tif (Consts.DEBUG) System.out.println(\" initialDemand: \"+initialDemand);\n\t\t\t\tif (Consts.DEBUG) System.out.println(\" demand multiplier \" + (1 - ((predictedCostNow / Consts.NORMALIZING_MAX_COST) * dailyElasticity[time % this.mainContext.ticksPerDay])) );\n\t\t\t\tif (Consts.DEBUG) System.out.println(\" set finalDemand: \" + myDemand);\n\t\t\t}\n\t\t}\n\n\t\treturn myDemand;\n\t}", "title": "" }, { "docid": "6f0e1169b6d731b5e495c18d65f58bdb", "score": "0.48959437", "text": "@Override\n\tpublic double getRenewalAgentCommission() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "56a05914fc1808ac5e98c3f37144173c", "score": "0.48834598", "text": "@Override\n public void calculaIr() {\n contaIr = salarioBruto - descontoInss - (189.59 * dependentes.size());\n if (contaIr <= 1903.98) {\n salarioLiquido = salarioBruto - descontoInss;\n } else if (contaIr >= 1903.99 && contaIr <= 2826.65) {\n descontoIR = contaIr * 0.075 - 142.80;\n salarioLiquido = salarioBruto - descontoIR - descontoInss;\n } else if (contaIr >= 2826.66 && contaIr <= 3751.05) {\n descontoIR = contaIr * 0.15 - 354.80;\n salarioLiquido = salarioBruto - descontoIR - descontoInss;\n } else if (contaIr >= 3751.06 && contaIr <= 4664.68) {\n descontoIR = contaIr * 0.225 - 636.13;\n salarioLiquido = salarioBruto - descontoIR - descontoInss;\n } else {\n descontoIR = contaIr * 0.275 - 869.36;\n salarioLiquido = salarioBruto - descontoIR - descontoInss;\n }\n }", "title": "" }, { "docid": "f01facf14ab6a0dd9d62120eaf021dd3", "score": "0.4874769", "text": "private double getElevatorRevs() {\n\t\treturn elevatorMaster.getSelectedSensorPosition(pidIdx) / quadConversionFactor;\n\t}", "title": "" }, { "docid": "1a959c87afb1b501e1db473140b16a39", "score": "0.48694018", "text": "@Execute\n\tpublic void process() throws Exception {\n\t\tDateTime date = formatter.parseDateTime(currentDate);\n\n\t\t// calculating the sun vector\n\t\tdouble sunVector[] = calcSunVector(latitude, getHourAngle(date,latitude));\n\n\t\t// E0 is the correction factor related to Earth’s orbit eccentricity computed according to Spencer (1971):\n\t\tdouble E0=computeE0(date);\n\t\t\n\t\t// compute the direct radiation\n\t\tdirectRadiation=(hour > (sunrise) && hour < (sunset))?\n\t\t\t\tcalcDirectRadiation(sunVector, E0):0;\n\t\t\t\t\n\t\t// compute the diffuse radiation\n\t\tdiffuseRadiation=(hour > (sunrise) && hour < (sunset))?\n\t\t\t\tcalcDiffuseRadiation(sunVector, E0):0;\n\t\t\t\n\t\t// compute the raidationat the top of the atmosphere\n\t\ttopAtmposphere=(hour > (sunrise) && hour < (sunset))?\n\t\t\t\tcalcTopAtmosphere(E0, sunVector[2]):0;\n\t\t\t\t\t\t\n}", "title": "" }, { "docid": "515c53000119793e0807966c36ef161a", "score": "0.48660547", "text": "public double calculateFees() {\n return (calculateCheckFees() + calculateBalanceFee() + getMonthlyCharge());\n }", "title": "" }, { "docid": "971c603046e205e34503c5c995b45e3d", "score": "0.4861264", "text": "void recalculateGear();", "title": "" }, { "docid": "993a91c95296e576b4805d6da05bf499", "score": "0.4860889", "text": "@Override\n\tpublic double mortgageCalculator() {\n\t\treturn ((this.getValue() + (this.getValue() * ResidentialProperty.R_MORTGAGE))/30);\n\t}", "title": "" }, { "docid": "093c935cf193a49a3f6390e502b1e055", "score": "0.4856957", "text": "double getTotal_repayment_derived();", "title": "" }, { "docid": "6a94a0d9eb1b48e8833e153d9153210c", "score": "0.48563236", "text": "public double calculaRaiz() {\n\t\tdouble raizCuadrada = 0d;\n\t\tdouble numeroMenor = (this.num1 != devolverMayor()) ? this.num1 : this.num2;\n\t\tnumeroMenor = Math.abs(numeroMenor);\n\t\traizCuadrada = Math.sqrt(numeroMenor);\n\t\treturn raizCuadrada;\n\t}", "title": "" }, { "docid": "7dd6d2d3b79a1c6ea66dbabaa4edcc87", "score": "0.4851287", "text": "double getFee_charges_repaid_derived();", "title": "" }, { "docid": "7c0a52a48e87260604fa4c508c502670", "score": "0.48493886", "text": "public static void AssertValidations(PartnerConnection connection, String RenewalOpptyId, String AccountId) throws Exception {\n\n String OPSO_ListQuery = \"SELECT sfbase__PriorAnnualOrderValue__c FROM sfbase__OpportunityProductSummary__c WHERE sfbase__Opportunity__c = '\" + RenewalOpptyId + \"' and sfbase__PriorAnnualOrderValue__c != 0.0\";\n LOG.info(\"OPSO query\" + OPSO_ListQuery);\n SObject[] OPSO_ListQuerySObject = ApiUtilities.executeQuery(connection, OPSO_ListQuery);\n String sfbase__ForecastedAnnualOrderValue__c=(String) OPSO_ListQuerySObject[0].getField(\"sfbase__ForecastedAnnualOrderValue__c\");\n String sfbase__ForecastedChangeInACV__c =(String) OPSO_ListQuerySObject[0].getField(\"sfbase__ForecastedChangeInACV__c\");\n\n String RenewalOpptyIdquery = \"SELECT sfbase__ForecastedAnnualOrderValue__c,sfbase__ForecastedOTV__c,sfbase__ForecastedTotalOrderValue__c,sfbase__PriorMonthlyOrderValue__c,sfbase__PriorOTV__c,sfbase__PriorTotalOrderValue__c FROM sfbase__OpportunityProductSummary__c where sfbase__Opportunity__c = '\" + RenewalOpptyId + \"' and sfbase__PriorAnnualOrderValue__c != 0.0\";\n SObject[] RenewalOpptyIdSObject = ApiUtilities.executeQuery(connection, RenewalOpptyIdquery);\n RenewalOpptyId = (String) RenewalOpptyIdSObject[0].getField(\"sfbase__ForecastedAnnualOrderValue__c\");\n String ForecastedOTV = (String) RenewalOpptyIdSObject[0].getField(\"sfbase__ForecastedOTV__c\");\n //String ForecastedTotalOrderValue = (String) RenewalOpptyIdSObject[0].getField(\"sfbase__ForecastedTotalOrderValue__c\");\n //String PriorMonthlyOrderValue = (String) RenewalOpptyIdSObject[0].getField(\"sfbase__PriorMonthlyOrderValue__c\");\n //String PriorOTV = (String) RenewalOpptyIdSObject[0].getField(\"sfbase__PriorOTV__c\");\n //String PriorTotalOrderValue = (String) RenewalOpptyIdSObject[0].getField(\"sfbase__PriorTotalOrderValue__c\");\n\n String OrderIdQuery = \"SELECT sfbase__OrderLifeTimeValue__c,TotalAmount FROM Order where AccountId='\" + AccountId + \"'\";\n SObject[] OrderIdQuerySObject = ApiUtilities.executeQuery(connection, OrderIdQuery);\n String OrderIdValue = (String) OrderIdQuerySObject[0].getField(\"sfbase__OrderLifeTimeValue__c\");\n //String TotalAmount = (String) OrderIdQuerySObject[0].getField(\"TotalAmount\");\n LOG.info(OrderIdValue);\n\n LOG.info(\"Asserting Opso Validations\");\n LOG.info(\"RenewalOpptyId : \" + RenewalOpptyId);\n LOG.info(\"ForecastedOTV : \" + ForecastedOTV);\n LOG.info(\"ForecastedTotalOrderValue : \" + sfbase__ForecastedChangeInACV__c);\n LOG.info(\"ForecastedTotalOrderValue : \" + sfbase__ForecastedAnnualOrderValue__c);\n }", "title": "" }, { "docid": "7e3f7cd823488cadd2f145be547519f4", "score": "0.48459032", "text": "private void formula() {\n System.out.println(\"Enter r1 and r1\");\n int r1 = handler.getInt();\n int r2 = handler.getInt();\n calculator.testEquation(r1, r2, dimension);\n }", "title": "" }, { "docid": "38784322724b7363cfd083d924857868", "score": "0.4837692", "text": "double getArrearstolerance_amount();", "title": "" }, { "docid": "2f3511b10e9062262728f516343dfabc", "score": "0.48348296", "text": "@Override\n\t void CalculateEffectiveNotional()\n\t{\n\t\t//example is currently only in one time bucket\n\t\t\n\t\teffectiveNotional = Math.abs(supervisoryDelta * adjustedNotional * minimumTimeRiskHorizon);\n\t\t\n\t}", "title": "" }, { "docid": "253b2fc5cd334d049a329176dd7e6c56", "score": "0.48326823", "text": "public double calculateEfficiency() {\n\t\tif (atom.getProton() == atom.getNeutron()) {\n\t\t\treturn (1-atom.calculateEfficiency()*Zeta_efficiency_boost);\n\t\t} else {\n\t\t\treturn atom.calculateEfficiency();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "705583b6ccb64efc86fd880caa8fe013", "score": "0.48270947", "text": "public double calculate() {\n\t\treturn area*1800;\n\t}", "title": "" }, { "docid": "a06f48f4a031b0f84d72c63aec4918d0", "score": "0.48113468", "text": "protected static double[] calculateExposures(int payerReceiverFlag, JSONArray fixlegamount, JSONArray fltlegamount)\n throws JSONException {\n\n /* TODO: ASSUMPTION - We assume fixed and float payments of the same frequency\n * A payment is the next value of the amount in the floating leg minus the amount in the fixed leg\n * for a payer swap (if receiver swap then reverse). For example:\n * Assume four fixed leg payments as [0985.83, 0985.83, 1018.33, 0985.83]\n * Assume four float leg payments as [0101.11, 1162.66, 1205.57, 1622.08]\n * Assume payer receiver flag is 1 (i.e payer swap), then the payment will be\n * [-884.72, 176.82, 187.24, 636.25]\n */\n List<Double> payments = new ArrayList<>();\n for (int i = 0; i < fixlegamount.length(); i++) {\n payments.add(payerReceiverFlag * (fltlegamount.getDouble(i) - fixlegamount.getDouble(i)));\n }\n\n /* Sum the payments as the date advances (across the swap legs).\n * SUM [-884.72, 176.82, 187.24, 636.25] = 115.59\n * SUM [176.82, 187.24, 636.25] = 1000.31\n * SUM [187.24, 636.25] = 823.49\n * SUM [636.25] = 636.25\n * Add a final value of zero at the end (since the payment becomes zero beyond settlement)\n */\n double[] sumpayments = new double[payments.size() + 1];\n double total = 0.0;\n for (int i = payments.size(); i > 0; i--) {\n total += payments.get(i - 1);\n sumpayments[i - 1] = total;\n }\n sumpayments[payments.size()] = 0.0;\n\n /* If we are out of the money - exposure would be negative, so take max of value or zero\n */\n sumpayments[payments.size()] = 0.0;\n for (int i = 0; i < sumpayments.length; i++) {\n sumpayments[i] = Math.max(sumpayments[i], 0.0);\n }\n\n /* The final exposures is determined by taking half the amounts from each legs\n * 1st exposure = 0.5 * 0115.59 + 0.5 * 1000.31 = 557.95\n * 2nd exposure = 0.5 * 1000.31 + 0.5 * 0823.49 = 911.90\n * 3rd exposure = 0.5 * 0823.49 + 0.5 * 0636.25 = 729.87\n * 4th exposure = 0.5 * 0636.25 + 0.5 * 0000.00 = 318.13\n */\n double[] exposures = new double[sumpayments.length - 1];\n for (int i = 1; i < sumpayments.length; i++) {\n exposures[i - 1] = (sumpayments[i] + sumpayments[i - 1]) * HALF;\n }\n\n return exposures;\n }", "title": "" }, { "docid": "350ad0fbfbad143276da87fc25a135da", "score": "0.48110265", "text": "public void calculateRadiosities() {\n for (int i = 0; i < Window.faces.size(); i++) {\n Window.radiosities.set(i, Window.faces.get(i).getEmission()); //set radiosity to 1,1,1 if light, otherwise 0\n for (int j = 0; j < Window.faces.size(); j++) {\n\n float r1 = Window.faces.get(i).getReflectance()[0] * Window.formFactors[j][i] * Window.radiosities.get(j)[0];\n float g1 = Window.faces.get(i).getReflectance()[1] * Window.formFactors[j][i] * Window.radiosities.get(j)[1];\n float b1 = Window.faces.get(i).getReflectance()[2] * Window.formFactors[j][i] * Window.radiosities.get(j)[2];\n\n float r2 = r1 + Window.radiosities.get(i)[0];\n float g2 = g1 + Window.radiosities.get(i)[1];\n float b2 = b1 + Window.radiosities.get(i)[2];\n\n Window.faces.get(i).setExitance(new float[]{r2 * 50, g2 * 50, b2 * 50});\n Window.radiosities.set(i, new float[]{r2, g2, b2});\n }\n }\n }", "title": "" }, { "docid": "91d8c8563f95b655d4edc5b6074232e5", "score": "0.48084402", "text": "double getPenalty_charges_repaid_derived();", "title": "" }, { "docid": "1e406381dd680da5649bb500f9805056", "score": "0.48046142", "text": "private double calcDirectRadiation( double[] sunVector,double E0) throws IOException {\n\n\t// zenith angle\n\tdouble zenith = Math.acos(sunVector[2]);\n\n\t//mr [–] relative optical air mass:\n\tdouble mr = 1.0 / (sunVector[2] + 0.15 * Math.pow( (93.885 - (zenith * (180 / (2*Math.PI)))), (-1.253)));\n\n\n\t// local atmospheric pressure\n\tdouble pressure = ATM * Math.exp(-0.0001184 * z);\n\n\t// relative air mass\n\tma = mr * pressure / ATM;\n\n\t// The transmittance functions for Rayleigh scattering\n\ttau_r = Math.exp((-.09030 * Math.pow(ma, 0.84))\n\t\t\t* (1.0 + ma - Math.pow(ma, 1.01)));\n\n\t//transform the temperature in Kelvin\n\ttemperature = temperature + 273.0;\n\n\t// evaluate the saturated valor pressure\n\tdouble saturatedVaporPressure = Math.exp(26.23 - 5416.0 / temperature );\n\n\t// the precipitable water in cm calculated according to Prata (1996)\n\tdouble w = 0.493 * (humidity / 100) * saturatedVaporPressure / temperature ;\n\n\t// Transmittance by water vapour\n\ttau_w = 1.0 - 2.4959 * w * mr / (Math.pow(1.0 + 79.034 * w * mr, 0.6828) + 6.385 * w * mr);\n\n\t// The transmittance by ozone \n\ttau_o = 1.0 - ((0.1611 * pCmO3 * mr * Math.pow(1.0 + 139.48 * pCmO3 * mr,-0.3035)) \n\t\t\t- (0.002715 * pCmO3 * mr / (1.0 + 0.044 * pCmO3 * mr + 0.0003 * Math.pow(pCmO3 * mr, 2))));\n\n\t// Transmittance by uniformly mixed gases\n\ttau_g = Math.exp(-0.0127 * Math.pow(ma, 0.26));\n\n\n\t// The transmittance by aerosols\n\ttau_a = Math.pow((0.97 - 1.265 * Math.pow(pVisibility,(-0.66))), Math.pow(ma, 0.9));\n\n\t// correction factor [m] for increased trasmittance with elevation z[m] according to Corripio (2002)\n\tdouble beta_s = (z <= 3000)?2.2 * Math.pow(10, -5) * z:2.2 * Math.pow(10, -5) * 3000;\n\n\n\t// Direct radiation under cloudless sky incident on arbitrary tilted\n\t// surfaces \n\tIn=0.9571*SOLARCTE*E0*(tau_r * tau_o * tau_g * tau_w * tau_a + beta_s);\n\n\tdouble S_incident=In* sunVector[2] * skyviewFactor;\n\t\n\tS_incident=(S_incident>3000)?Double.NaN:S_incident;\n\tS_incident=(S_incident<=0)?Double.NaN:S_incident;\n\n\treturn S_incident;\n}", "title": "" }, { "docid": "82c2e48cadb15a7ebb9ba870f3f083bf", "score": "0.48019743", "text": "double[] value(int age, int ia, int ie, int iq, int iCS, int in,\n int T, int na, int ne, int nq, int nCS, int nn,\n double[] agrid, double[] egrid, Matrix P, double[] qgrid, double[] lgrid, double[] mgrid, double[] ngrid,\n double[][][][][][] V, double alpha, double beta, double w, double r, double pH, double mu, int N){\n\n double expected;\n double utility;\n double consumption;\n double bequest;\n double VV = pow(-10, 5);\n double CC = 0;\n double QQ = 0;\n double BB = 0;\n\n // problem for households in the terminal period of life (choose risk-free assets to maximize bequest)\n if (age == T - 1){\n double mortgage_payment = mgrid[iCS] * lgrid[iCS] * pH * qgrid[iq] / (1 - pow(1 + mgrid[iCS], - N));\n // balance and ltv in the next period (p = prime) i.e. the period after death when their assets will be liquidated for the bequest\n double balancep = lgrid[iCS] * pH * qgrid[iq] * (pow(1 + mgrid[iCS], N) - pow(1 + mgrid[iCS], ngrid[in])) / (pow(1 + mgrid[iCS], N) - 1);\n double ltvp = balancep / (pH * mu * qgrid[iq]);\n\n for (int iap = 0; iap < na; iap++){\n expected = 0;\n consumption = (1 + r) * agrid[ia] + w * exp(egrid[ie]) - agrid[iap] - mortgage_payment;\n bequest = agrid[iap] + (pH * mu * qgrid[iq]) * (1 - ltvp);\n\n utility = (1 - alpha) * log(consumption) + alpha * log(qgrid[iq]) + beta * log(bequest);\n\n if (consumption <= 0){utility = pow(-10, 5);}\n if (utility >= VV){\n VV = utility;\n CC = consumption;\n BB = bequest;\n }\n }\n }\n\n double VV_C = pow(-10, 5); //value from staying *C*urrent\n double CC_C = 0;\n double VV_R = pow(-10, 5); //value from *R*efinancing\n double CC_R = 0;\n double VV_S = pow(-10, 5); // value from *S*elling\n double CC_S = 0;\n double QQ_S = 0;\n\n // problems for households in ther interim periods of life (current, refi, buy/sell)\n if (age < T - 1 && age >= 1){\n double mortgage_payment = mgrid[iCS] * lgrid[iCS] * pH * qgrid[iq] / (1 - pow(1 + mgrid[iCS], - N));\n double current_balance = lgrid[iCS] * pH * qgrid[iq] * (pow(1 + mgrid[iCS], N) - pow(1 + mgrid[iCS], ngrid[in])) / (pow(1 + mgrid[iCS], N) - 1);\n double current_ltv = current_balance / (pH * qgrid[iq]);\n\n for (int iap = 0; iap < na; iap++){\n //--------------STAY CURRENT: START--------------------//\n expected = 0;\n for (int iep = 0; iep < ne; iep++){\n expected = expected + P.get(ie, iep) * V[age + 1][iap][iep][iq][iCS][in + 1];\n }\n\n consumption = (1 + r) * agrid[ia] + w * exp(egrid[ie]) - mortgage_payment - agrid[iap];\n utility = (1 - alpha) * log(consumption) + alpha * log(qgrid[iq]) + beta * expected;\n if (consumption <= 0){utility = pow(-10, 5);}\n if (utility >= VV_C){\n VV_C = utility;\n CC_C = consumption;\n }\n //-----------------STAY CURRENT: END--------------------//\n\n //-----------------REFINANCE / BUY-SELL: START---------------------//\n for (int iCSp = 0; iCSp < nCS; iCSp++){\n expected = 0;\n //------------------REFINANCE: START---------------------------//\n for (int iep = 0; iep < ne; iep++){\n expected = expected + P.get(ie, iep) * V[age + 1][iap][iep][iq][iCSp][1];\n }\n mortgage_payment = mgrid[iCSp] * lgrid[iCSp] * pH * qgrid[iq] / (1 - pow(1 + mgrid[iCSp], - N));\n consumption = (1 + r) * agrid[ia] + w * exp(egrid[ie]) + (lgrid[iCSp] - current_ltv) * pH * qgrid[iq] - agrid[iap] - mortgage_payment;\n utility = (1 - alpha) * log(consumption) + alpha * log(qgrid[iq]) + beta * expected;\n if (consumption <= 0){utility = pow(-10, 5);}\n if (utility >= VV_R){\n VV_R = utility;\n CC_R = consumption;\n }\n //--------------------REFINANCE: END-----------------------------//\n\n\n for (int iqp = 0; iqp < nq; iqp++){\n //--------------------BUY/SELL: START----------------------------//\n expected = 0;\n for (int iep = 0; iep < ne; iep++){\n expected = expected + P.get(ie, iep) * V[age + 1][iap][iep][iqp][iCSp][1];\n }\n mortgage_payment = mgrid[iCSp] * lgrid[iCSp] * pH * qgrid[iqp] / (1 - pow(1 + mgrid[iCSp], - N));\n consumption = (1 + r) * agrid[ia] + w * exp(egrid[ie]) + (1 - current_ltv) * pH * qgrid[iq] - (1 - lgrid[iCSp]) * pH * qgrid[iqp] - agrid[iap] - mortgage_payment;\n utility = (1 - alpha) * log(consumption) + alpha * log(qgrid[iqp]) + beta * expected;\n if (consumption <= 0){utility = pow(-10, 5);}\n if (utility >= VV_S){\n VV_S = utility;\n CC_S = consumption;\n QQ_S = qgrid[iqp];\n }\n //--------------------BUY/SELL: END----------------------------//\n }\n }\n //-----------------REFINANCE / BUY-SELL: END---------------------//\n }\n\n // now find the option that provides maximum value (and corresponding policy function like consumption and quantity of housing owned)\n VV = max(VV_C, max(VV_R, VV_S));\n if (VV == VV_C){\n CC = CC_C;\n QQ = qgrid[iq];\n }else if (VV == VV_R){\n CC = CC_R;\n QQ = qgrid[iq];\n }else if (VV == VV_S){\n CC = CC_S;\n QQ = QQ_S;\n }\n\n }\n\n\n double[] output = new double[3];\n output[0] = VV;\n output[1] = CC;\n output[2] = QQ;\n return output;\n }", "title": "" }, { "docid": "20cbc6a8b296cb2e5ac0932ac1f6f341", "score": "0.47878134", "text": "private void determineLocalizationAngles() {\n\n\t\twhile (leftMotor.isMoving() && rightMotor.isMoving()) {\n\t\t\t// fetching the values from the color sensor\n\t\t\tcolorSensorValue.fetchSample(colorSensorData, 0);\n\n\t\t\t// getting the value returned from the sensor, and multiply it by\n\t\t\t// 1000 to scale\n\t\t\tfloat value = colorSensorData[0] * 1000;\n\n\t\t\t// computing the derivative at each point\n\t\t\tfloat diff = value - oldValue;\n\n\t\t\t// storing the current value, to be able to get the derivative on\n\t\t\t// the next iteration\n\t\t\toldValue = value;\n\n\t\t\tif (diff < derivativeThreshold && filterCounter == 0) {\n\t\t\t\tSound.beep();\n\t\t\t\tfilterCounter++;\n\t\t\t\tlineCounter++;\n\n\t\t\t\tif (lineCounter == 1) {\n\t\t\t\t\txminus = odometer.getTheta();\n\n\t\t\t\t} else if (lineCounter == 2) {\n\t\t\t\t\typlus = odometer.getTheta();\n\n\t\t\t\t} else if (lineCounter == 3) {\n\t\t\t\t\txplus = odometer.getTheta();\n\n\t\t\t\t} else if (lineCounter == 4) {\n\t\t\t\t\tyminus = odometer.getTheta();\n\n\t\t\t\t}\n\t\t\t} else if (diff < derivativeThreshold && filterCounter > 0) {\n\t\t\t\tfilterCounter++;\n\t\t\t} else if (diff > derivativeThreshold) {\n\t\t\t\tfilterCounter = 0;\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "086489abbc95069f0b3071ea0cf1f3d4", "score": "0.47805414", "text": "private double computeAngleFeedbackHip()\n {\n double hipAngleDifference = computeAngleDifferenceInPlane(desiredGroundReaction, groundReaction, hipAxis);\n return hipAngleController.compute(hipAngleDifference, 0.0, 0.0, 0.0, dt);\n }", "title": "" }, { "docid": "e95c3b71004d1921f504c6fd66ffe6d6", "score": "0.4764264", "text": "float Depredar(Especie e2)\n {\n if (this.getFlagsSimbiosis(e2)) {\n return (float) ((float) (e2.alimDadoB) * (float) (e2.crecB) / 100 / this.alimRequerido);\n }\n /*\n System.out.println(nombre+\" a \"+e2.nombre);\n System.out.println(\"Bono por tamano:\"+this.getVariacionTamano(e2));\n System.out.println(\"Bono por combate:\"+(this.combate + this.caza ));\n System.out.println(\"Penal por defensa:\"+(e2.combate + e2.defensa));\n System.out.println(\"Otros:\"+(this.getFlagsBonoCaza(e2)));\n */\n if (this.getFlagsDepredar(e2) && (this.getVariacionTamano(e2) + this.combate - e2.combate + this.caza - e2.defensa + this.getFlagsBonoCaza(e2)) > 0) {\n return (float) (-this.alimRequerido) / (float) (e2.alimDado);\n }\n return 0;\n }", "title": "" }, { "docid": "b10a54822e17a7351cc5a2ea93965a00", "score": "0.47636893", "text": "public RoomReportData futureReprot(Date date) {\n RoomReportData result = new RoomReportData();\n List<Room> roomList = roomDao.getAllRoom();\n for (Room room : roomList) {\n for (Reservation r : room.getReservationList()) {\n RESERVATION_STATUS status = r.getStatus();\n if ((status == RESERVATION_STATUS.RESERVED || status == RESERVATION_STATUS.CHECKED_IN)\n && (date.getTime() >= r.getCheckinDate().getTime() && date.getTime() < r.getCheckoutDate().getTime())) {\n result.setNumOfReserved(result.getNumOfReserved() + 1);\n }\n }\n }\n result.setNumOfVacant(roomList.size() - result.getNumOfReserved());\n return result;\n }", "title": "" }, { "docid": "f9b85074ec7f44dc96d7b89d31414761", "score": "0.47626752", "text": "int getCureDifficuty();", "title": "" }, { "docid": "9bf769bcaefb18cc91f5246f6dd7ae69", "score": "0.47590247", "text": "public int computeCost()\n {\n int cost = 0;\n for(int typeIndex = 0; typeIndex < numberOfVacationsPerType.length; typeIndex++)\n for(int vacationIndex = 0; vacationIndex < numberOfVacationsPerType[typeIndex].length; vacationIndex++)\n {\n cost += numberOfVacationsPerType[typeIndex][vacationIndex] * data.vacationTypes[typeIndex].cost;\n }\n return cost;\n }", "title": "" }, { "docid": "288de36e264775ff75468ced3217d20a", "score": "0.47580227", "text": "public int calculateEffort()\n\t{\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d16b9d696fb537d7f3846d69fcdf0b45", "score": "0.4749002", "text": "@Override\n public void checkRule(ReimbursementApp app) throws TRAPException\n {\n Double mileageTotal = 0.0;\n for (TransportationExpense expense : app.getTransportationExpenseList())\n {\n Integer milesTraveled = expense.getTransportationMilesTraveled();\n if (expense.getTransportationType() == TransportationTypeEnum.CAR)\n {\n // Make sure it isn't a rental car\n String rental = expense.getTransportationRental();\n if (rental != null && rental.compareToIgnoreCase(TRAPConstants.STR_YES) == 0)\n {\n if (milesTraveled != null)\n {\n log.error(\"Mileage claimed on rental car not allowed:\\n{}\", expense);\n throw new BusinessLogicException(\n \"Mileage cannot be claimed on a rental car expense\");\n }\n \n continue;\n }\n \n // Make sure there are miles claimed since we are dealing with a personal car\n // expense\n if (milesTraveled == null)\n {\n log.error(\"Missing miles traveled on car expense:\\n{}\", expense);\n throw new BusinessLogicException(\n \"Missing miles traveled for car transportation expense\");\n }\n \n if (milesTraveled < 0)\n {\n log.error(\"Negative value for miles traveled:\\n{}\", expense);\n throw new InputValidationException(\n \"Miles traveled must be positive for transportation expense\");\n }\n \n // Otherwise we can charge it\n Double reimbursementAmount = mileageRate * milesTraveled;\n log.info(\"Granting mileage reimbursement for ${}. miles = {}\", reimbursementAmount,\n milesTraveled);\n expense.setReimbursementAmount(reimbursementAmount);\n app.addToReimbursementTotal(reimbursementAmount);\n \n mileageTotal += reimbursementAmount;\n }\n else if (milesTraveled != null)\n {\n throw new BusinessLogicException(\n \"Mileage claimed for non car transportation expense\");\n }\n }\n \n log.info(\"Added ${} in mileage expenses to total\", mileageTotal);\n }", "title": "" }, { "docid": "4c215fb62b7587d0f8a291a0079a4d3d", "score": "0.47441712", "text": "double getTotal_recovered_derived();", "title": "" }, { "docid": "a6eee50995512c58a73783d6d7eaa71a", "score": "0.473246", "text": "private int processShifts(int ryear) {\n int leapG = leapYearCalculator.leapYears(ryear + START_YEAR);\n int leapR = leapYearCalculator.leapRepublicanYears(ryear);\n return leapG - leapR;\n }", "title": "" }, { "docid": "5ae005adf0fff4990413af921548a137", "score": "0.47298473", "text": "double getTotal_charges_due_at_disbursement_derived();", "title": "" }, { "docid": "31cdea4e60ae9b0d414c15b67c4771df", "score": "0.47257057", "text": "private void calcularInventario() {\n int numMercaderias = 0;\n int numExistencias = 0;\n double costos = 0;\n for (Mercaderia mercaderia : mercaderias) {\n numMercaderias++;\n numExistencias += mercaderia.getExistencias();\n costos += mercaderia.getPrecioCompra();\n }\n String msg = \"\";\n msg += \"Mercaderias: \" + numMercaderias + \"\\n\";\n msg += \"Existencias: \" + numExistencias + \"\\n\";\n msg += \"Valor: $\" + costos;\n mostrarInfo(msg);\n }", "title": "" }, { "docid": "516f5cd43b462f3e7a60869221e1d233", "score": "0.4722205", "text": "double getSolarTransmittance();", "title": "" }, { "docid": "b3734fda80e9702362762e54d395dad5", "score": "0.47216558", "text": "public void calcReachingFactor()\n {\n \n\n List<ABObject> allBlocks = vision.getVisionRealShape().findObjects();\n if(pigs != null)\n allBlocks.addAll(pigs);\n if(air_blocks != null)\n allBlocks.addAll(air_blocks);\n\n for(ABObject obj: allBlocks)\n {\n if (obj.type != ABType.Air) {\n double factor = 1;\n has_any_block_come = false;\n TrajectoryPlanner trajectory = new TrajectoryPlanner();\n ArrayList<Point> release_points = trajectory.estimateLaunchPoint(sling_shot,new Point((int) obj.getX(), (int) obj.getY()));\n\n for(Point p:release_points)\n {\n List<ABObject> trajectoryBlocks = getAllBlocks();\n if (air_blocks != null) {\n trajectoryBlocks.addAll(air_blocks);\n }\n List<ABObject> removedBlocks = new LinkedList<ABObject>();\n trajectory.setTrajectory(sling_shot, p);\n ArrayList<Point> trajectory_points = trajectory._trajectory;\n for(Point t:trajectory_points)\n {\n int flag=0;\n for(int i=0;i<hills.size();i++)\n {\n Poly h = (Poly) hills.get(i);\n if(h.polygon.contains(t) && t.getX()<=obj.getX())\n {\n flag=1;\n factor=Double.MIN_VALUE;\n break;\n }\n }\n\n if(flag==1)\n break;\n int length = 0;\n for(int i = 0; i < trajectoryBlocks.size(); i++)\n {\n if(trajectoryBlocks.get(i) != obj && trajectoryBlocks.get(i).getX() <= obj.getX() && trajectoryBlocks.get(i).contains(t))\n {\n ABObject block = trajectoryBlocks.get(i);\n if(block.angle > 0.785)\n length += block.width;\n else\n length += block.height;\n if(current_bird == ABType.RedBird)\n factor+=assignDensity(block, 20, 10, 30, 5, 2, 20)*length/10.0;\n else if (current_bird == ABType.BlueBird)\n factor += assignDensity(block, 20, 10, 30, 5, 2, 20)*length/10.0;\n else if (current_bird == ABType.YellowBird)\n factor += assignDensity(block, 10, 20, 30, 5, 2, 10)*length/10.0;\n else if (current_bird == ABType.WhiteBird)\n factor += assignDensity(block, 30, 20, 10, 5, 2, 10)*length/10.0;\n else //for Black Bird\n factor+=assignDensity(block, 10, 20, 10, 5,2,5)*length/10.0;\n\n trajectoryBlocks.remove(block);\n i--;\n removedBlocks.add(block);\n }\n }\n }\n trajectoryBlocks.addAll(removedBlocks);\n double k = 100000.0;\n double length = 0;\n if (obj.angle > 0.785)\n length = obj.width;\n else\n length = obj.height;\n if(current_bird == ABType.RedBird)\n factor += assignDensity(obj, 20, 15, 40, 10, 5, 10)*length;\n else if (current_bird == ABType.YellowBird)\n factor += assignDensity(obj, 15, 15, 40, 10, 5, 10)*length;\n else if (current_bird == ABType.BlueBird)\n factor += assignDensity(obj, 20, 15, 40, 10, 5, 10)*length;\n else if (current_bird == ABType.BlackBird)\n factor += assignDensity(obj, 15, 15, 15, 10, 5, 5)*length;\n else if (current_bird == ABType.WhiteBird)\n factor += assignDensity(obj, 15, 15, 15, 10, 5, 5)*length;\n obj.penetrationFactor[release_points.indexOf(p)] = k/factor;\n // obj.penetrationFactor = factor;\n }\n if(release_points.size() < 2)\n obj.penetrationFactor[1] = obj.penetrationFactor[0];\n }\n }\n\n double max_0 = Double.MIN_VALUE;\n double max_1 = Double.MIN_VALUE;\n\n for (ABObject obj: allBlocks) {\n if (obj.type != ABType.Air) {\n if (obj.penetrationFactor[0] > max_0)\n max_0 = obj.penetrationFactor[0];\n if (obj.penetrationFactor[1] > max_1)\n max_1 = obj.penetrationFactor[1];\n }\n }\n\n for (ABObject obj: allBlocks ) {\n obj.penetrationFactor[0] = 100*obj.penetrationFactor[0]/max_0;\n obj.penetrationFactor[1] = 100*obj.penetrationFactor[1]/max_1;\n }\n }", "title": "" }, { "docid": "b028dbd8235f919349d56eb7eb5bbf14", "score": "0.4718646", "text": "public double calcWorkStudy() {\r\n double eFC = calcEFC();\r\n double workStudy;\r\n\r\n if (eFC >= 0.00 && eFC <= 30000.00) {\r\n workStudy = 1500.00;\r\n }\r\n else if (eFC >= 30000.01 && eFC <= 40000.00) {\r\n workStudy = 1000.00;\r\n }\r\n else if (eFC >= 40000.01 && eFC <= 50000.00) {\r\n workStudy = 500.00;\r\n }\r\n else if (eFC > 50000.00) {\r\n workStudy = 0.00;\r\n }\r\n else {\r\n return 0.00;\r\n }\r\n return workStudy;\r\n }", "title": "" }, { "docid": "955596c96d5ea2b400d72a61c3f21935", "score": "0.4717908", "text": "@Override\n public void hireConsultants() {\n if (missingSrAgents > getGlobals().allowedMissedContracts\n || missingJrAgents > getGlobals().allowedMissedContracts) {\n if (missingSrAgents > 5 && getGlobals().srEmploymentMean > new Random().nextDouble()) {\n for (int i = 0; i < (Math.ceil(missingSrAgents * 0.25)); i++) {\n spawnSrConsultant();\n }\n missingSrAgents = 0;\n getGlobals().hasHiredConsultants = true;\n }\n if (missingJrAgents > 5 && getGlobals().jrEmploymentMean > new Random().nextDouble()) {\n for (int i = 0; i < (Math.ceil(missingJrAgents * 0.50)); i++) {\n spawnJrConsultant();\n }\n missingJrAgents = 0;\n getGlobals().hasHiredConsultants = true;\n }\n }\n }", "title": "" }, { "docid": "ccfa633c5738de784d6d6f747c6d6f56", "score": "0.47110397", "text": "@Override\n public BendableScore calculateScore() {\n final int brokenReq1and2and3Count = this.capacityTracker.getOverusedCapacity();\n final int brokenReq7Count = this.precedenceRelationsTracker.getBrokenPrecedenceRelationsMeasure();\n // now assemble the constraints\n final int hard = brokenReq1and2and3Count + brokenReq7Count;\n final int medium = this.projectPropertiesTracker.getTotalProjectDelay();\n final int soft = this.projectPropertiesTracker.getTotalMakespan();\n return BendableScore.valueOf(new int[]{-hard}, new int[]{-medium, -soft});\n }", "title": "" }, { "docid": "45d5b478de8ba2dfb9b3497d15975aa6", "score": "0.47064394", "text": "private double computeScheduleToughnessByOPR(int teamNo) {\n if (OPRs == null)\n return 1.0;\n\n double alliesOPRs = 0;\n double opponentsOPRs = 0;\n\n try {\n for (MatchSchedule.Match match : matchSchedule.filterByTeam(teamNo).getMatches()) {\n // am I blue or red?\n if (match.getBlue1() == teamNo || match.getBlue2() == teamNo || match.getBlue3() == teamNo) {\n if (match.getBlue1() != teamNo)\n alliesOPRs += OPRs.get(match.getBlue1());\n\n if (match.getBlue2() != teamNo)\n alliesOPRs += OPRs.get(match.getBlue2());\n\n if (match.getBlue3() != teamNo)\n alliesOPRs += OPRs.get(match.getBlue3());\n\n opponentsOPRs += OPRs.get(match.getRed1());\n opponentsOPRs += OPRs.get(match.getRed2());\n opponentsOPRs += OPRs.get(match.getRed3());\n } else {\n if (match.getRed1() != teamNo)\n alliesOPRs += OPRs.get(match.getRed1());\n\n if (match.getRed2() != teamNo)\n alliesOPRs += OPRs.get(match.getRed2());\n\n if (match.getRed3() != teamNo)\n alliesOPRs += OPRs.get(match.getRed3());\n\n opponentsOPRs += OPRs.get(match.getBlue1());\n opponentsOPRs += OPRs.get(match.getBlue2());\n opponentsOPRs += OPRs.get(match.getBlue3());\n }\n }\n } catch (NullPointerException e) {\n //nothing\n }\n if (alliesOPRs == 0 || opponentsOPRs == 0)\n return 1.0;\n\n return (opponentsOPRs * 2) / (alliesOPRs * 3);\n }", "title": "" }, { "docid": "51508a3877d703486e340e7157f9b436", "score": "0.4705368", "text": "@Override\r\n\tpublic double earnings() {\n\t\treturn monthlySalary*workingDay/totalDays;\r\n\t}", "title": "" }, { "docid": "68bc96b8d272f41b1f6da865f173f59e", "score": "0.4704372", "text": "private double returnRepsGivenCalories(double calories, int pos_1){\n if (calories == 0)\n return 0;\n\n\n instaActivity currentActivity = myActivities.get(pos_1);\n\n if (currentActivity.isReps())\n {\n\n //then we need to convert the reps\n\n double weight = getWeight();\n\n int rate = currentActivity.getRepsRate();\n\n\n\n\n double result = (double) (( ((double)calories - (weight - 150.0 ) * 0.09036) )/(double)100) * rate ;\n\n if (result>0)\n return result ;\n\n else\n return 0;\n\n\n }else //duration\n\n {\n\n double weight = getWeight();\n\n int rate = currentActivity.getDurationRate();\n\n\n double result = (double) (( ((double)calories - (weight - 150.0 ) * 0.09036) )/(double)100) * rate ;\n\n if (result>0)\n return result ;\n\n else\n return 0;\n\n\n\n }\n\n\n\n\n }", "title": "" }, { "docid": "b5bcb0d610618f99ce53bcf00da823c4", "score": "0.47017848", "text": "protected abstract void computeForces();", "title": "" }, { "docid": "2bc55c459d6a7ebba43eb2ff1d715d4d", "score": "0.46991298", "text": "public int calculateExpansionsRemaining(long timeDeadline)\n \t{\n \t\tlong timeRemaining = timeDeadline - System.nanoTime();\n \t\tfloat averageInterval = mapInfo.calculateAvgExpansionInterval();\n \t\tfloat averageRate = 1 / averageInterval;\n \n \t\tint exp = (int) (timeRemaining * averageRate);\n \n \t\tTrace.print(\"Calculating expansions remaining:\" +\n \t\t\t\t\"\\nexpansions remaining: \" + exp +\n \t\t\t\t\"\\naverage expansion rate: \" + averageRate);\n \n \t\treturn exp;\n \t}", "title": "" }, { "docid": "a7ebd265d528c7812f18457919533a6a", "score": "0.4698839", "text": "public abstract int calcularEnergiaTotal();", "title": "" }, { "docid": "4770ac009f42b6032cb0db85b2fd0704", "score": "0.4692369", "text": "private static double equation(Agent one, Agent two, double cash, double wheat, int time, double alpha){\n\t\t//Agent one's potential new utility\n\t\tdouble part11 = one.findUtility(one.getCash()-Math.pow(one.getDelta(), time-1)*cash, one.getWheat()+Math.pow(one.getDelta(), time-1)*wheat - alpha*cost*(wheat/cash));\n\t\t//The change in utility for agent one\n\t\tdouble part12 = part11 - one.getUtility();\n\n\t\t//Agent two's potential new utility\n\t\tdouble part21 = two.findUtility(two.getCash()+Math.pow(two.getDelta(), time-1)*cash - (1-alpha)*cost, two.getWheat()-Math.pow(two.getDelta(), time-1)*wheat);\n\t\t//The change in utility for agent two\n\t\tdouble part22 = part21 - two.getUtility();\n\n\t\t//multiply the change in utility for both parties\n\t\treturn part12*part22;\n\t}", "title": "" }, { "docid": "d64c28cfa19d0a74b33ed8ad2496c553", "score": "0.4691261", "text": "public double envoyerProductionGlobale() throws Exception {\n\t\t//premier return utilise pour l'etape 1\n\t\t//return unite_production.values().stream().mapToDouble(i -> i).sum();\n\t\treturn production_globale;\n\t}", "title": "" }, { "docid": "1af0ce346513a14eb9c192ea75caeab6", "score": "0.4690995", "text": "public abstract double getCommission();", "title": "" }, { "docid": "9527b97ce7fa2d4413f634b0737dfb99", "score": "0.46894538", "text": "public double getCreditosEscolhidos() {\n pessoa = docente;\n //List<Disponibilidade> quad = disponibilidadeFacade.findByDocenteQuad(pessoa, quadrimestre);\n List<Disp> quad = dispFacade.findByDocenteQuad(pessoa, quadrimestre);\n //Busca de oferta de disciplinas no quadrimestre\n List<OfertaDisciplina> oferta = turmasFacade.findAllQuad(quadrimestre);\n //For para listar apenas as disciplinas planejadas pelo docente\n List<OfertaDisciplina> planejados = new ArrayList<>();\n long id_o = 0;\n long id_d = 0;\n for(OfertaDisciplina o : oferta){\n /*for(Disponibilidade d : quad){\n id_o = o.getID();\n id_d = d.getOfertaDisciplina().getID();\n if(id_o == id_d){\n planejados.add(o);\n }\n }*/\n for(Disp d : quad){\n id_o = o.getID();\n id_d = d.getOfertaDisciplina().getID();\n if(id_o == id_d){\n planejados.add(o);\n }\n }\n }\n //Contagem de créditos\n int creditos=0;\n for(OfertaDisciplina o : planejados){\n /*for(Disponibilidade d : quad){\n id_o = o.getID();\n id_d = d.getOfertaDisciplina().getID();\n if(id_o == id_d){\n if(d.getTp().equals(\"Teoria\")){\n creditos += o.getT();\n }\n else if(d.getTp().equals(\"Pratica\")){\n creditos += o.getP();\n }\n else{\n creditos += o.getP() + o.getT();\n }\n }\n }*/\n for(Disp d : quad){\n id_o = o.getID();\n id_d = d.getOfertaDisciplina().getID();\n if(id_o == id_d){\n if(d.getTp().equals(\"Teoria\")){\n creditos += o.getT();\n }\n else if(d.getTp().equals(\"Pratica\")){\n creditos += o.getP();\n }\n else{\n creditos += o.getP() + o.getT();\n }\n }\n }\n }\n int total = creditos;\n \n return creditosEscolhidos = total;\n }", "title": "" }, { "docid": "6ad65ed58da6b333f9c6695c5da099c6", "score": "0.46891853", "text": "private double equation3Estimation(RecordStats r, int currentTime, int endTime) {\r\n\t\r\n\t\treturn (ALFA * ( Math.pow( (1 - ALFA) , (endTime - currentTime) ) )) + r.getCurrentEstimation();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f3c7623307b3a9563558afe48db31c1f", "score": "0.46886352", "text": "Double calculateReward(int jobCode);", "title": "" }, { "docid": "784882caa304d41bcb9fe0a692b47ccb", "score": "0.46857148", "text": "public int getVacancies() {\n return Integer.parseInt(capacity) - Integer.parseInt(occupancy);\n }", "title": "" }, { "docid": "ce8b35d38f9161a4e143cdc7697998de", "score": "0.4679382", "text": "double getFee_charges_writtenoff_derived();", "title": "" }, { "docid": "832270f4c6f817528f1cf9ca89c405a4", "score": "0.4678245", "text": "public double calc(double r) {\r\n double a = -2;\r\n double ex = Math.exp(a * r);\r\n return 4. * ex * (r * r / a - 2. * r / (a * a)) + (ex - 1) * 8. / (a * a * a);\r\n }", "title": "" }, { "docid": "84828eb7f0f997c713fdc54b4bc66b38", "score": "0.46692276", "text": "public double calculerVersement() {\n\n double versement = 0;\n if ( getDuree() > 0 && getInteret() > 0 && getMontant() > 0){\n double tauxMois = getInteret() / 100 / 12;\n versement = (getMontant() * tauxMois)/(1- Math.pow((1 + tauxMois),-getDuree()));\n }\n\n return versement;\n }", "title": "" }, { "docid": "1c5351ff8975882801b6dd9be079dc01", "score": "0.46691984", "text": "public void receiveAnnualReturns(HouseholdReturnsMessage hhRM){\n\t\tthis.ovicaprid_fodder_yield = hhRM.getOCReturns();\n\t\tthis.avg_fodder_return = hhRM.getOCReturnArea();\n\t\tthis.farmsOwned = hhRM.getFarms();\n\t\tFarmData fd = this.farmsOwned.get(0);\n\t\t// new FarmData((int)avg_wheat_return, (int)avg_barley_return, wheat_yield, barley_yield);\n\t\t//(final int x, final int y, final double foodProductionRate, final double variable\n\t\tthis.wheat_expectation = fd.getX();\n\t\tthis.barley_expectation = fd.getY();\n\t\tthis.wheat_yield = fd.getFoodProductionRate();\n\t\tthis.barley_yield = fd.getVariable();\n\t\t\t\t\n\t}", "title": "" }, { "docid": "2f577710ac13138cee04fc4c5338a168", "score": "0.46678236", "text": "private int calculateShelterDeduction() {\r\n\r\n\t\tint utility = calculateUtilityAllowance();\r\n int shelterExpenses = utility + rent + propertyInsurance + propertyTaxes;\r\n\r\n\r\n shelterExpenses -= (finalNetIncome / 2);\r\n shelterExpenses = Math.max(0, shelterExpenses);\r\n\r\n if (!isAged) {\r\n shelterExpenses = Math.min(shelterExpenses, Integer.parseInt(LIMIT_ON_SHELTER_DEDUCTION));\r\n }\r\n\t\tLog.d(\"Shelter Expense: \", Integer.toString(shelterExpenses));\r\n\r\n return shelterExpenses;\r\n\t}", "title": "" }, { "docid": "4230af743c6d84613dc4270ea0c98f52", "score": "0.4667143", "text": "private double calcDiffuseRadiation(double [] sunVector,double E0){\n\n\t//single-scattering albedo fraction of incident energy scattered to total attenuation by aerosol\n\tdouble omega0 = 0.9;\n\n\t//trasmittance of direct radiation due to aerosol absorbance \n\tdouble tau_aa = 1.0 - (1.0 - omega0)* (1.0 - ma + Math.pow(ma, 1.06)) * (1 - tau_a);\n\t// ////////////////////////////////////////////////////\n\n\t// Rayleigh scattered diffunce irradiance\n\tdouble I_dr = 0.79 * E0*SOLARCTE* sunVector[2] * (1.0 - tau_r)* (tau_o * tau_g * tau_w * tau_aa) * 0.5/ (1.0 - ma + Math.pow(ma, 1.02));\n\n\t// The aerosol-scattered diffuse irradiance \n\tdouble FC = 0.74;\n\tdouble I_da = 0.79 * E0*SOLARCTE* sunVector[2] * (tau_o * tau_g * tau_w * tau_aa) * FC\n\t\t\t* (1.0 - (tau_a / tau_aa)) / ((1 - ma + Math.pow(ma, 1.02)));\n\n\t// The atmospheric albedo is computed as\n\tdouble alpha_a = 0.0685 + (1.0 - FC) * (1.0 - (tau_a / tau_aa));\n\n\t// the diffuse irradiance from multiple reflection between the earth and the atmosphere\n\tdouble I_dm = (In*sunVector[2]+ I_dr + I_da) * alpha_a * pAlphag / (1.0 - pAlphag * alpha_a);\n\n\tdouble diffuse = (I_dr + I_da + I_dm)* skyviewFactor;\n\t\n\tdiffuse= (diffuse>3000)?Double.NaN:diffuse;\n\tdiffuse=(diffuse<0)?Double.NaN:diffuse;\n\t\n\treturn diffuse;\n\n}", "title": "" }, { "docid": "7697daf114c95c5288517b7c9e336d39", "score": "0.46666667", "text": "double getTotal_expected_costofloan_derived();", "title": "" }, { "docid": "3788414269c2241e25b4bdcc394e113f", "score": "0.46660796", "text": "public void annualRaises(){\n for(int i = 0; i < currentEmployees; i++){\n employees[i].annualRaise();\n }\n }", "title": "" }, { "docid": "b6e97281abfc19fac42edb2545420e35", "score": "0.466277", "text": "private static void variablesChallenge() {\n\t\tDeveloper d1 = new Developer(\"Juan\");\n\t\tDeveloper d2 = new Developer(\"Alberto\");\n\t\tDeveloper d3 = new Developer(\"Antonio\");\n\t\tDeveloper d4 = new Developer(\"Iván\");\n\n\t\t// Se comprueba que el número de la variable estática que contabiliza el número total de empleados es el mismo para el desarrollador 1 y el desarrollador 4: 4\n\t\tSystem.out.println(\"Numero total empleados: \" + d1.numCurrentEmployee);\n\t\tSystem.out.println(\"Numero total empleados: \" + d4.numCurrentEmployee);\n\n\t\t// Se obtienen los id de los empleados, al tener que ser el id: numero de empleados + 1, no tenemos nunca el id 1\n\t\tSystem.out.println(\"ID empleado 1: \" + d1.getIdEmployee());\n\t\tSystem.out.println(\"ID empleado 2: \" + d2.getIdEmployee());\n\t\tSystem.out.println(\"ID empleado 3: \" + d3.getIdEmployee());\n\t\tSystem.out.println(\"ID empleado 4: \" + d4.getIdEmployee());\n\n\t\t// Se restan 2 días de las vacaciones del empleado 2\n\t\td2.goOnVacations(2);\n\n\t\t// Se consultan los días de vacaciones de los que dispone cada empleado\n\t\tSystem.out.println(\"Numero de dias de vacaciones del empleado con ID \" + d1.getIdEmployee() + \": \" + d1.getVacationDays());\n\t\tSystem.out.println(\"Numero de dias de vacaciones del empleado con ID \" + d2.getIdEmployee() + \": \" + d2.getVacationDays());\n\t\tSystem.out.println(\"Numero de dias de vacaciones del empleado con ID \" + d3.getIdEmployee() + \": \" + d3.getVacationDays());\n\t\tSystem.out.println(\"Numero de dias de vacaciones del empleado con ID \" + d4.getIdEmployee() + \": \" + d4.getVacationDays());\n\t}", "title": "" } ]
3b9fc7ec8c65a672de19239942808ba7
removeIcon gets the coordinates of the button pressed an distinguishes whether it is the original button or the move button
[ { "docid": "f85f5711ee7a502595a1f27711961b9a", "score": "0.0", "text": "public void actionPerformed(ActionEvent e){\r\n for (int i = 0; i < 8; i++) {\r\n for (int j = 0; j < 8; j++) {\r\n if(buttonArray[i][j] == e.getSource()){ \r\n if (clickCounter % 2 == 0){\r\n xCorChoice = i;\r\n yCorChoice = j;\r\n clickCounter += 1;\r\n }else{\r\n xCorMove = i;\r\n yCorMove = j;\r\n clickCounter += 1;\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" } ]
[ { "docid": "7f076b91a1aa94832cc39c032c48c1ec", "score": "0.6785002", "text": "private void removeButton() {\n\t\tremove(infoButton);\n\t\tremove(infoLabel);\n\t}", "title": "" }, { "docid": "fb2991d9e4b2d442f9332c78a33720be", "score": "0.6545484", "text": "public void removeIcon(JButton[][] c, int x, int y){\r\n c[x][y].setIcon(null);\r\n }", "title": "" }, { "docid": "99633a9ddb6a483877893ffcae98f9eb", "score": "0.649498", "text": "public void removePokemon() {\n\t\tpokeButton.setIcon(null);\n\t\tpokeButton = null;\n\t}", "title": "" }, { "docid": "ea19cfe4fb6ee84025be884dac436bb4", "score": "0.6333819", "text": "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\tif (!e.isConsumed() && iconRectangle.contains(e.getX(), e.getY())) {\r\n\t\t\t\t\t\tfinal int index = tabbedPane.getSelectedIndex();\r\n\t\t\t\t\t\ttabbedPane.remove(index);\r\n\t\t\t\t\t\te.consume();\r\n\t\t\t\t\t\ttabbedPane.removeMouseListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "15f0eb3c0293b9be4fe55171c86a9d5f", "score": "0.6319928", "text": "private void rightButtonClicked() {\n if (mMapEditorTestScreen.getCurrentlySelectedIcon() != null) {\n mMapEditorTestScreen.setCurrentlySelectedIcon(null);\n } else {\n //check collision with drawn area icons and remove them\n Iterator<Icon> iterator = mMapEditorTestScreen.getMapDrawnIcons().iterator();\n while (iterator.hasNext()) {\n Icon next = iterator.next();\n if (IntersectionUtils.inBounds(next.getBoundingArea(), mMapEditorTestScreen.getCursorWorldCoords())) {\n iterator.remove();\n return;\n }\n }\n }\n }", "title": "" }, { "docid": "d50f8c57f782267046fa63bcf06e28d4", "score": "0.6266511", "text": "@Override\r\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tint action = event.getAction();\r\n\t\t\t\tRect rect = new Rect();\r\n\t\t\t\tbtndel.getGlobalVisibleRect(rect);\r\n\t\t\t\tif (action == MotionEvent.ACTION_DOWN)\r\n\t\t\t\t\tbtndel.setImageResource(R.drawable.delete_);\r\n\t\t\t\telse if (action == MotionEvent.ACTION_MOVE)\r\n\t\t\t\t\tif(rect.contains((int)event.getX(), (int)event.getY()))\r\n\t\t\t\t\t\tbtndel.setImageResource(R.drawable.delete_);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tbtndel.setImageResource(R.drawable.delete);\r\n\t\t\t\telse if (action == MotionEvent.ACTION_UP ||\r\n\t\t\t\t\t\taction == MotionEvent.ACTION_CANCEL ||\r\n\t\t\t\t\t\taction == MotionEvent.ACTION_OUTSIDE)\r\n\t\t\t\t\tbtndel.setImageResource(R.drawable.delete);\r\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "48b32526ba0de0b50055fa2d9a45a664", "score": "0.62176216", "text": "public void removeButton(CardBoardButton.BUTTONTYPE btn)\n {\n // IF the btn is equaled to the unpause button THEN\n if (btn == CardBoardButton.BUTTONTYPE.UNPAUSE)\n {\n // SET isPaused to false\n isPaused = false;\n isShowingExplanation = false; \n }\n // ELSE if the btn is equaled to the welcome button THEN\n else if (btn == CardBoardButton.BUTTONTYPE.WELCOME)\n {\n // SET isWeclome to false\n isWelcome = false;\n state.processAction(GameState.ACTION.NEW_SOLITAIRE_GAME);\n repaintTimer.start();\n\n }\n repaint();\n }", "title": "" }, { "docid": "af107efbca08b460781567a7b703f735", "score": "0.6147921", "text": "public void onRemoveIcon(int i, String str) {\n if (this.mCurrentSlots.contains(str)) {\n super.onRemoveIcon(getRealViewIndex(str), str);\n this.mCurrentSlots.remove(str);\n }\n }", "title": "" }, { "docid": "ee0f28fafc8c3eecff700fd2fecf5f7b", "score": "0.61380196", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t\tPoint point = root.frameToMapPoint(e.getPoint());\r\n\t\tswitch(e.getButton()){\r\n\t\tcase MouseEvent.BUTTON1:\r\n\t\t\troot.saveCur();\r\n\t\t\tbreak;\r\n\t\tcase MouseEvent.BUTTON3:\r\n\t\t\troot.deleteItemAt(point);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tbutton = 0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "06cfeff9f40b4b84ecf1a62271f102ad", "score": "0.61290926", "text": "public void onRemoveIcon(int i, String str) {\n this.mGroup.removeViewAt(i);\n }", "title": "" }, { "docid": "f8c3706ad6949b78470cc2b090d3ecf6", "score": "0.59859025", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btn){//e.getsource()返回事件源对象。\r\n\t\t\tp1.remove(p3);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1b9dafa2539fe3306b425ab75903fdcb", "score": "0.58776534", "text": "public void remove(){\n this.x().set(-1); this.y().set(-1);\n }", "title": "" }, { "docid": "c05529f80e6350cd44639762123a806c", "score": "0.5849191", "text": "public static void shoot(JButton btn, int index){\n\n if(index==0){\n initTarget();\n initEnableBtn();\n }\n\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(enBtn.contains(index)) {\n getCoordinate(index);\n if (arr[i][j] != 0) {\n btn.setIcon(getRed());\n target.remove(Integer.valueOf(arr[i][j]));\n enBtn.remove(Integer.valueOf(index));\n System.out.println(target);\n } else {\n btn.setIcon(getDot());\n }\n Test.rePaint(target);\n }\n if (target.isEmpty()) {\n System.out.println(\"Win!\"); //think make better end of the game\n }\n }\n });\n }", "title": "" }, { "docid": "3cc7e10989ff8ee6d56ddc8dbefc8713", "score": "0.58452225", "text": "public boolean removeElement(GUIElementInterface e);", "title": "" }, { "docid": "1df7cb539bebf932ecab71643ada7986", "score": "0.58284193", "text": "private void btnEliminarRegistroMouseClicked(java.awt.event.MouseEvent evt) {\n }", "title": "" }, { "docid": "260666f264e668deb92f4e86903bf2d1", "score": "0.5805342", "text": "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif(e.getSource().equals(jlAddIcon)) {\n\t\t\tjlAddIcon.setIcon(add_small);\n\t\t}\n\t\telse if(e.getSource().equals(jlSubIcon)) {\n\t\t\tjlSubIcon.setIcon(sub_small);\n\t\t}\n\t}", "title": "" }, { "docid": "8abeec312d797349159d1549cd1ac26e", "score": "0.578793", "text": "@Override\n public void onClick(View v) {\n if (v.equals(buttonDelete)) {\n removeAt(getLayoutPosition());\n }\n }", "title": "" }, { "docid": "4ebbb2923e967e2c8fabadaf73f9e4c7", "score": "0.57860225", "text": "public void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\t\t\tint removeIndex = markers.size() - 1;\n \t\t\t\t\t\t\t\tMarker removeMarker = markers.get(removeIndex); // get the marker\n \t\t\t\t\t\t\t\tremoveMarker.remove(); // remove the marker\n \t\t\t\t\t\t\t\tmarkers.remove(removeIndex); // remove the index\n \t\t\t\t\t\t\t}", "title": "" }, { "docid": "4f5d926ee1904eafee78e0e34ff4b93a", "score": "0.57499135", "text": "@Override\n public void removeClicked(int position) {\n myRef.child(notes.get(position).getKey()).removeValue();\n }", "title": "" }, { "docid": "012f0ffc4038c6dfcaf07f4ddcd3ce81", "score": "0.57488775", "text": "public static void QuitarCarta(MouseEvent e)\n {\n ((JLabel)e.getSource()).setVisible(false);\n ((JLabel)e.getSource()).getParent().remove((JLabel)e.getSource()); \n }", "title": "" }, { "docid": "bb0e7515503b078d70a81035bb3c658b", "score": "0.5742682", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tremoveButton_actionPerformed(e);\n\t\t\t}", "title": "" }, { "docid": "bf19b94b8d0aba1889be3707ced70f50", "score": "0.57397693", "text": "@Override\r\n\tpublic void onRemoveButtionClicked(ClickEvent event) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9edc8cd4fa52d50c518db36fc6f94e5d", "score": "0.57368106", "text": "public void removeShape(String aMouseEvent) {\n\t\tm_shapes.remove(aMouseEvent);\n\n\t\tif ((pSelected != null) && pSelected.equals(aMouseEvent)) {\n\t\t\tpSelected = null;\n\t\t}\n\n\t\tfor (int i = 0; i < pToolbar.getComponentCount(); i++) {\n\t\t\tJButton sb = (JButton) pToolbar.getComponent(i);\n\t\t\tif (sb.getActionCommand().equals(aMouseEvent)) {\n\t\t\t\tpToolbar.remove(i);\n\t\t\t\tpToolbar.invalidate();\n\t\t\t\tvalidate();\n\t\t\t\trepaint();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ((pSelected == null) && (pToolbar.getComponentCount() > 0)) {\n\t\t\t((JButton) pToolbar.getComponent(0)).doClick();\n\t\t}\n\t}", "title": "" }, { "docid": "e5559b936274f3cb65108191257552f8", "score": "0.5718255", "text": "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tif(e.getSource().equals(jlAddIcon)) {\n\t\t\tjlAddIcon.setIcon(add_big);\n\t\t}\n\t\telse if(e.getSource().equals(jlSubIcon)) {\n\t\t\tjlSubIcon.setIcon(sub_big);\n\t\t}\n\t}", "title": "" }, { "docid": "c96d3beaeb339ca5b73e90b3e973596f", "score": "0.5710376", "text": "private void removeConfirm() {\n confirmRemove = new JButton(\"Confirm\");\n confirmRemove.setFont(btnFont);\n confirmRemove.setPreferredSize(buttonDimension);\n confirmRemove.addActionListener(this);\n }", "title": "" }, { "docid": "ea1ec21db2d439bcfc292a1b40f1617a", "score": "0.5678491", "text": "@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\ttuichuButton.setIcon(tuichuIcon);\n\t\t\t\t}", "title": "" }, { "docid": "85577b55387fa393f6eab12528b5fb88", "score": "0.56498593", "text": "public void buttonNotClicked() {\r\n mouseClicked = false;\r\n }", "title": "" }, { "docid": "d55d74940761f79a4123c323037cc2d1", "score": "0.56416047", "text": "public void removePiece() {\n board.getPane().getChildren().remove(pieceImage);\n isCaptured = true;\n board.getBoardArray()[getCurrentRow()][getCurrentColumn()] = null;\n\n }", "title": "" }, { "docid": "7637317d19c787f7827296e686451029", "score": "0.5614237", "text": "@Override\n public void OnDeleteBtnClick(int pos) {\n }", "title": "" }, { "docid": "6dc33a043935352eb1b974194a8c50a9", "score": "0.55790156", "text": "public void actionPerformed(ActionEvent e)\n {\n if (!end_game) return;\n Object zrodlo = e.getSource();\n NowyButon button = (NowyButon) zrodlo;\n int position = button.getPosition_button();\n if (position + 1 == red_index)\n {\n if ((position + 1 != 4) && (position + 1 != 8) && (position + 1 != 12))\n {\n set_button(position);\n }\n } else if (position - 1 == red_index)\n {\n if ((position - 1 != 3) && (position - 1 != 7) && (position - 1 != 11))\n set_button(position);\n } else if (position + 4 == red_index)\n {\n set_button(position);\n } else if (position - 4 == red_index)\n {\n set_button(position);\n }\n check_result();\n }", "title": "" }, { "docid": "56c4be658c46caf5ed50f029a0ead1cb", "score": "0.5568541", "text": "@Override\r\n public void actionPerformed(ActionEvent ae) {\r\n buttons[currentIndex].setIcon(cardBack);\r\n buttons[oddClickIndex].setIcon(cardBack);\r\n myTimer.stop();\r\n }", "title": "" }, { "docid": "f72b309a9c31a2be64c02a2451b58ee1", "score": "0.5554859", "text": "public void removeImage()\r\n {\r\n menuItemNode.removeChildNodeOnLooseIDMatch(\"default*\");\r\n // ugly :/\r\n menuItem.setIcon(null);\r\n\r\n }", "title": "" }, { "docid": "3159abebfb2945209a1aefb787344fbc", "score": "0.55536634", "text": "public void remove() {\n\t\tplayer.removeNiguiri(this);\n\t\tmoveTimer.finish();\n\t\tsprite.remove();\n\t\tscreen.removeNiguiri(this);\n\t\t\n\t\tpowerBar.remove();\n\t\tinfoBar.remove();\n\t}", "title": "" }, { "docid": "0ccd21f19ce8e09d2c1ce1b392093677", "score": "0.55478454", "text": "private void delete(){\n pieces.setOnMouseClicked(e -> {\n if (e.getButton() == MouseButton.PRIMARY){\n double posX = e.getX() - 90;\n double posY = e.getY() - 165;\n if( posX / PIECE_WIDTH < 10 && posY / PIECE_WIDTH < 5){\n String a = FitGame.findPieceSpotOnBoard(tempGame,(int) posY / PIECE_WIDTH,(int) posX / PIECE_WIDTH);\n if( a != null ){\n if(!Game.contains(a)){\n tempGame = FitGame.sortDelete(tempGame, a);\n assert tempGame != null;\n makePiece(tempGame);\n }\n }\n }\n }\n });\n }", "title": "" }, { "docid": "a22b874251940f180f81b41d1abf821e", "score": "0.5543046", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (popupWindow.isShowing()) {\n\t\t\t\t\tpopupWindow.dismiss();\n\t\t\t\t}\n\t\t\t\tif (fromOrTo == 0) {\n\t\t\t\t\t// from\n\t\t\t\t\tleftRemoveAnimation(view, position);\n\t\t\t\t} else if (fromOrTo == 1) {\n\t\t\t\t\t// to\n\t\t\t\t\trightRemoveAnimation(view, position);\n\t\t\t\t}\n\n\t\t\t\t// list.remove(position);\n\t\t\t\t// notifyDataSetChanged();\n\t\t\t}", "title": "" }, { "docid": "b9e76cd7d7231b3eae36c73fd0805da5", "score": "0.5532384", "text": "public int getButtonCoordMoveX(){\r\n if (clickCounter % 2 == 0)\r\n return xCorMove;\r\n else\r\n return 8;\r\n }", "title": "" }, { "docid": "5adc7f363f53bb31899bcc6dd57acc0d", "score": "0.5518344", "text": "private void addButtonIcon(Icon icon) {\n\t\tJButton btn = new JButton(icon);\n\t\tbtn.setPreferredSize(new Dimension(BTN_SIZE, BTN_SIZE));\n\t\tbtn.setBackground(Color.WHITE);\n\t\t\n\t\tbtn.setActionCommand(icon.toString());\n\t\tbtn.addActionListener(e -> fireActionListener(e));\n\t\t\n\t\t\n\t\tbtn.addMouseListener(new java.awt.event.MouseAdapter() {\n\n\t\t\tpublic void mouseEntered(java.awt.event.MouseEvent evt) {\n\t\t\t\tif(ClientModel.isTrash(btn.getActionCommand()) || ClientModel.isSave(btn.getActionCommand()))\n\t\t\t\t\tbtn.setBorder(new LineBorder(Color.BLUE, 2));\n\t\t }\n\n\t\t public void mouseExited(java.awt.event.MouseEvent evt) {\n\t\t \tif(ClientModel.isTrash(btn.getActionCommand()) || ClientModel.isSave(btn.getActionCommand()))\n\t\t \t\tbtn.setBorder(new LineBorder(UIManager.getColor(\"control\")));\n\t\t }\n\t\t \n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\t\t\t\n\t\t\t\tbtnIconList.forEach((btn) -> {\n\t\t \t\tbtn.setBorder(new LineBorder(UIManager.getColor(\"control\")));\n\t\t \t});\n\t\t\t\tbtn.setBorder(new LineBorder(Color.BLUE, 2));\n\t\t }\n\t\t});\n\t\t\n\t\tif(ClientModel.isDimension1(btn.getActionCommand()))\n\t\t\tbtn.setBorder(new LineBorder(Color.BLUE, 2));\n\t\t\n\t\tbtnIconList.add(btn);\n\t\tthis.add(btn);\n\t}", "title": "" }, { "docid": "11d4affaa0fd0c6c4933854978460a56", "score": "0.55175924", "text": "@Override\n public void editGGraph(JButton pressed) {\n gui.penultimatePressed = null;//penultimate is reset as only should be used by add edge\n Vertex vertex = gui.buttonVertexBiMap.get(pressed);\n Collection<Edge> edges = gui.graph.getEdgesContainingVertex(vertex);\n\n for (Edge edge : edges) {\n Arrow arrowToBeRemoved = gui.arrowEdgeBiMap.inverse().get(edge);\n if (arrowToBeRemoved!=null){\n gui.contentPane.remove(arrowToBeRemoved);\n gui.arrowEdgeBiMap.remove(arrowToBeRemoved);\n gui.arrowEdgeBiMap.inverse().remove(edge);\n }\n }\n\n gui.graph.removeVertex(vertex);\n gui.graph.removeEdges(edges);\n\n gui.buttonVertexBiMap.remove(pressed);\n gui.contentPane.remove(pressed);\n\n gui.contentPane.revalidate();\n gui.contentPane.repaint();\n }", "title": "" }, { "docid": "26f62aa67da3060b0b23cfe175231a1b", "score": "0.55133307", "text": "private void closeAndRemove() {\n \n \n _closeAndRemove = true;\n _okSelected = false;\n this.setVisible(false);\n \n \n }", "title": "" }, { "docid": "5c6b34a898cc9c4bf68eb7fca02bb3e4", "score": "0.55111295", "text": "public void remove() {\n GroupCallPip groupCallPip = instance;\n if (groupCallPip != null) {\n this.removed = true;\n forceRemoved = true;\n this.button.removed = true;\n groupCallPip.showAlert(false);\n float measuredWidth = ((float) this.windowLayoutParams.x) + (((float) this.windowView.getMeasuredWidth()) / 2.0f);\n float measuredHeight = ((float) this.windowLayoutParams.y) + (((float) this.windowView.getMeasuredHeight()) / 2.0f);\n float measuredWidth2 = ((((float) this.windowLeft) - this.windowOffsetLeft) + (((float) this.windowRemoveTooltipView.getMeasuredWidth()) / 2.0f)) - measuredWidth;\n float measuredHeight2 = ((((float) this.windowTop) - this.windowOffsetTop) + (((float) this.windowRemoveTooltipView.getMeasuredHeight()) / 2.0f)) - measuredHeight;\n GroupCallPip groupCallPip2 = instance;\n WindowManager windowManager2 = groupCallPip2.windowManager;\n FrameLayout frameLayout = groupCallPip2.windowView;\n FrameLayout frameLayout2 = groupCallPip2.windowRemoveTooltipView;\n FrameLayout frameLayout3 = groupCallPip2.windowRemoveTooltipOverlayView;\n FrameLayout frameLayout4 = groupCallPip2.alertContainer;\n onDestroy();\n instance = null;\n AnimatorSet animatorSet = new AnimatorSet();\n long j = 0;\n if (this.deleteIcon.getCurrentFrame() < 33) {\n j = (long) (((1.0f - (((float) this.deleteIcon.getCurrentFrame()) / 33.0f)) * ((float) this.deleteIcon.getDuration())) / 2.0f);\n }\n int i = this.windowLayoutParams.x;\n ValueAnimator ofFloat = ValueAnimator.ofFloat(new float[]{(float) i, ((float) i) + measuredWidth2});\n ofFloat.addUpdateListener(this.updateXlistener);\n ValueAnimator duration = ofFloat.setDuration(250);\n CubicBezierInterpolator cubicBezierInterpolator = CubicBezierInterpolator.DEFAULT;\n duration.setInterpolator(cubicBezierInterpolator);\n animatorSet.playTogether(new Animator[]{ofFloat});\n int i2 = this.windowLayoutParams.y;\n ValueAnimator ofFloat2 = ValueAnimator.ofFloat(new float[]{(float) i2, (((float) i2) + measuredHeight2) - ((float) AndroidUtilities.dp(30.0f)), ((float) this.windowLayoutParams.y) + measuredHeight2});\n ofFloat2.addUpdateListener(this.updateYlistener);\n ofFloat2.setDuration(250).setInterpolator(cubicBezierInterpolator);\n animatorSet.playTogether(new Animator[]{ofFloat2});\n animatorSet.playTogether(new Animator[]{ObjectAnimator.ofFloat(frameLayout, View.SCALE_X, new float[]{frameLayout.getScaleX(), 0.1f}).setDuration(180)});\n animatorSet.playTogether(new Animator[]{ObjectAnimator.ofFloat(frameLayout, View.SCALE_Y, new float[]{frameLayout.getScaleY(), 0.1f}).setDuration(180)});\n ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(frameLayout, View.ALPHA, new float[]{1.0f, 0.0f});\n float f = (float) 350;\n ofFloat3.setStartDelay((long) (0.7f * f));\n ofFloat3.setDuration((long) (f * 0.3f));\n animatorSet.playTogether(new Animator[]{ofFloat3});\n AndroidUtilities.runOnUIThread(GroupCallPip$$ExternalSyntheticLambda3.INSTANCE, 370);\n long j2 = 350 + j + 180;\n ObjectAnimator ofFloat4 = ObjectAnimator.ofFloat(this.removeTooltipView, View.SCALE_X, new float[]{1.0f, 1.05f});\n ofFloat4.setDuration(j2);\n CubicBezierInterpolator cubicBezierInterpolator2 = CubicBezierInterpolator.EASE_BOTH;\n ofFloat4.setInterpolator(cubicBezierInterpolator2);\n animatorSet.playTogether(new Animator[]{ofFloat4});\n ObjectAnimator ofFloat5 = ObjectAnimator.ofFloat(this.removeTooltipView, View.SCALE_Y, new float[]{1.0f, 1.05f});\n ofFloat5.setDuration(j2);\n ofFloat5.setInterpolator(cubicBezierInterpolator2);\n animatorSet.playTogether(new Animator[]{ofFloat5});\n ObjectAnimator ofFloat6 = ObjectAnimator.ofFloat(this.removeTooltipView, View.SCALE_X, new float[]{1.0f, 0.3f});\n ofFloat6.setStartDelay(j2);\n ofFloat6.setDuration(350);\n CubicBezierInterpolator cubicBezierInterpolator3 = CubicBezierInterpolator.EASE_OUT_QUINT;\n ofFloat6.setInterpolator(cubicBezierInterpolator3);\n animatorSet.playTogether(new Animator[]{ofFloat6});\n ObjectAnimator ofFloat7 = ObjectAnimator.ofFloat(this.removeTooltipView, View.SCALE_Y, new float[]{1.0f, 0.3f});\n ofFloat7.setStartDelay(j2);\n ofFloat7.setDuration(350);\n ofFloat7.setInterpolator(cubicBezierInterpolator3);\n animatorSet.playTogether(new Animator[]{ofFloat7});\n ObjectAnimator ofFloat8 = ObjectAnimator.ofFloat(this.removeTooltipView, View.TRANSLATION_Y, new float[]{0.0f, (float) AndroidUtilities.dp(60.0f)});\n ofFloat8.setStartDelay(j2);\n ofFloat8.setDuration(350);\n ofFloat8.setInterpolator(cubicBezierInterpolator3);\n animatorSet.playTogether(new Animator[]{ofFloat8});\n ObjectAnimator ofFloat9 = ObjectAnimator.ofFloat(this.removeTooltipView, View.ALPHA, new float[]{1.0f, 0.0f});\n ofFloat9.setStartDelay(j2);\n ofFloat9.setDuration(350);\n ofFloat9.setInterpolator(cubicBezierInterpolator3);\n animatorSet.playTogether(new Animator[]{ofFloat9});\n final FrameLayout frameLayout5 = frameLayout;\n final FrameLayout frameLayout6 = frameLayout2;\n final WindowManager windowManager3 = windowManager2;\n final FrameLayout frameLayout7 = frameLayout3;\n final FrameLayout frameLayout8 = frameLayout4;\n animatorSet.addListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animator) {\n NotificationCenter.getInstance(GroupCallPip.this.currentAccount).doOnIdle(new GroupCallPip$9$$ExternalSyntheticLambda0(frameLayout5, frameLayout6, windowManager3, frameLayout7, frameLayout8));\n }\n\n /* access modifiers changed from: private */\n public static /* synthetic */ void lambda$onAnimationEnd$0(View view, View view2, WindowManager windowManager, View view3, View view4) {\n view.setVisibility(8);\n view2.setVisibility(8);\n windowManager.removeView(view);\n windowManager.removeView(view2);\n windowManager.removeView(view3);\n windowManager.removeView(view4);\n }\n });\n animatorSet.start();\n this.deleteIcon.setCustomEndFrame(66);\n this.iconView.stopAnimation();\n this.iconView.playAnimation();\n }\n }", "title": "" }, { "docid": "e43567c0893682d50591ecbfd7c4e54c", "score": "0.5506737", "text": "boolean removeDraggable(GLElement element);", "title": "" }, { "docid": "30155e8139c4b46888b679ac0f3e2535", "score": "0.55010056", "text": "public void remove(Player player, Move move){\n\n //Get the corresponding player position.\n int[] loc = player == Player.X? locX : locO;\n\n //Set the board for the new location as unused.\n setBoard(false, loc[0], loc[1]);\n\n //Set the player's position to the new position.\n loc[0] = move.row;\n loc[1] = move.col;\n \n }", "title": "" }, { "docid": "a14f84e9d983022bf16d81e74ee2abf1", "score": "0.54798174", "text": "public final void nonMove(){\n BasicInternalFrameUI frame = ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI());\n for(MouseListener listener: frame.getNorthPane().getMouseListeners())\n {\n frame.getNorthPane().removeMouseListener(listener);\n }\n }", "title": "" }, { "docid": "383e80eee3a770a6bbc29b47a41dfdfb", "score": "0.54751796", "text": "public void clearButton() {\n\t\tArrayList<ItemSelectionMenuPanelButton> buttons = view.getButtons();\n\t\tint size = buttons.size();\n\t\tif(view.getPage() == 1) {\n\t\t\tfor(int i = 0; i < (size / 2); i++) {\n\t\t\t\tItemSelectionMenuPanelButton button = (ItemSelectionMenuPanelButton)view.getButtons().get(i);\n\t\t\t\tif(button.getBounds().getX() == view.getLocationXCoord() &&\n\t\t\t\t\t\tbutton.getBounds().getY() == view.getLocationYCoord()) {\n\t\t\t\t\t//clear button info\n\t\t\t\t\tbutton.setText(\"\");\n\t\t\t\t\tbutton.setButtonIcon(\"empty_img.png\"); //set empty icon \n\t\t\t\t\tbutton.setButtonGap(0);\n\t\t\t\t\tbutton.revalidate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//search the second half of the buttons arrayList\n\t\t\tfor(int i = 25; i < size; i++) {\n\t\t\t\tItemSelectionMenuPanelButton button = (ItemSelectionMenuPanelButton)view.getButtons().get(i);\n\t\t\t\tif(button.getBounds().getX() == view.getLocationXCoord() &&\n\t\t\t\t\t\tbutton.getBounds().getY() == view.getLocationYCoord()) {\n\t\t\t\t\t//clear button info\n\t\t\t\t\tbutton.setText(\"\");\n\t\t\t\t\tbutton.setButtonIcon(\"empty_img.png\"); //set empty icon\n\t\t\t\t\tbutton.setButtonGap(0);\n\t\t\t\t\tbutton.revalidate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0b8e6123283dee2c3c525d0d13c9f15f", "score": "0.54648656", "text": "private JButton getRemoveButton() {\n if (removeButton == null) {\n removeButton = new JButton();\n removeButton.setText(\"remove\");\n removeButton.setPreferredSize(new Dimension(80, 18));\n removeButton.addActionListener(this);\n }\n return removeButton;\n }", "title": "" }, { "docid": "4721406a4909e893a81c576a412e6cb0", "score": "0.54557216", "text": "private void createDeleteButton() {\n final BufferedImage img;\n try {\n img = ImageIO.read(new File(\".\\\\icon\\\\delete.png\"));\n } catch (IOException e) {\n JOptionPane.showMessageDialog(this, e);\n return;\n }\n ImageIcon deleteIcon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n final JButton deleteButton = new JButton(deleteIcon);\n deleteButton.setToolTipText(\"Delete a word\");\n deleteButton.setBounds(1110, 450, 50, 50);\n deleteButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n String target = Filename.getText();\n if (target.isEmpty()) {\n JOptionPane.showMessageDialog(getParent(), \"Please choose a word from list\");\n return;\n }\n if (!DM.dictionaryLookup(dictionary, target)) {\n JOptionPane.showMessageDialog(getParent(), \"Not found!\");\n return;\n }\n int output = JOptionPane.showConfirmDialog(getParent(), \"Are you sure?\", \"Confirmation\",\n JOptionPane.YES_NO_OPTION);\n if (output == JOptionPane.YES_OPTION) {\n DM.deleteWord(dictionary, target);\n JOptionPane.showMessageDialog(getParent(), \"Deleted successfully\");\n }\n }\n });\n this.add(deleteButton);\n }", "title": "" }, { "docid": "9027530c4974504cd7b5f6523fb80e66", "score": "0.545453", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblEliminar = new javax.swing.JLabel();\n txtEliminar = new javax.swing.JTextField();\n btnEliminar = new javax.swing.JButton();\n\n lblEliminar.setText(\"Cuidad a eliminar\");\n\n btnEliminar.setText(\"ELIMINAR\");\n btnEliminar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n btnEliminarMousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(98, 98, 98)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(btnEliminar)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblEliminar)\n .addGap(38, 38, 38)\n .addComponent(txtEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(114, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(109, 109, 109)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblEliminar)\n .addComponent(txtEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(btnEliminar)\n .addContainerGap(131, Short.MAX_VALUE))\n );\n }", "title": "" }, { "docid": "7eb146f8e8b1229464f553d6f26efc4a", "score": "0.54493386", "text": "@Override\r\n public void removeButtonListener(int index) {\r\n if (index >= this.buttonNumber || index < 0) {\r\n throw new IllegalArgumentException(\"Invalid index.\");\r\n }\r\n try {\r\n buttonList[index].removeAllListeners();\r\n } catch (UnsatisfiedLinkError e) {\r\n }\r\n }", "title": "" }, { "docid": "f0dc548d8fdcfb61e856d56f31f594f5", "score": "0.5427716", "text": "@Override\n public boolean touchUp(int screenX, int screenY, int pointer, int button) {\n screenX += player.location.x - (mapSize.gridWidth >> 1);\n screenY += player.location.y - (mapSize.gridHeight >> 1);\n if (screenX < 0 || screenY < 0 || screenX >= map.width || screenY >= map.height) {\n return false;\n }\n switch (button) {\n case Input.Buttons.LEFT:\n if (awaitedMoves.isEmpty()) {\n if (toCursor.isEmpty()) {\n cursor = Coord.get(screenX, screenY);\n toCursor = toPlayerDijkstra.findPathPreScanned(cursor);\n if (!toCursor.isEmpty()) {\n toCursor = toCursor.subList(1, toCursor.size()); // Remove cell you're in from list\n }\n }\n awaitedMoves.addAll(toCursor);\n }\n break;\n case Input.Buttons.RIGHT:\n contextHandler.tileContents(Coord.get(screenX, screenY), map.contents[screenX][screenY]);\n break;\n }\n return false;\n }", "title": "" }, { "docid": "d62831dc6ca528b6306556311580f0cd", "score": "0.5411447", "text": "@Override\n\tpublic void actionPerformed(ActionEvent event) {\n\n\t\tif (event.getSource() == setButton){\n\t\t\tif(ai){\n\t\t\t\tthis.remove(setButton);\t\n\t\t\t\trepaint();\n\t\t\t\tsetUp=false;\n\t\t\t}\n\t\t\telse{\n\t\t\tif (playerTurn == 1) {\n\t\t\t\tsetUp = false;\n\t\t\t\tthis.remove(setButton);\n\n\t\t\t}\n\t\t\tplayerTurn *= -1;\n\t\t\tfor (Tile[] nextRow : board)\n\t\t\t\tfor (Tile nextTile : nextRow) {\n\t\t\t\t\tif (!nextTile.tile.isEmpty()) {\n\t\t\t\t\t\tif (nextTile.getPiece().owner != playerTurn)\n\t\t\t\t\t\t\tnextTile.getPiece().flip();\n\t\t\t\t\t}\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7e6b6f7b4e31327d2430f4c2573400c5", "score": "0.54086274", "text": "private void swapButtonText(ActionEvent event) {\r\n Coordinate emptyButtonCoordinate = getEmptyButtonCoordinate();\r\n Coordinate currButtonCoordinate = getCurrentButtonCoordinate(event);\r\n if(!emptyButtonCoordinate.compareCoordinates(currButtonCoordinate)) {\r\n String currButtonText = getButtonTextFromGridCoordinate(currButtonCoordinate);\r\n int currButtonVal = Integer.parseInt(currButtonText);\r\n if(this.myBoard.checkIfPieceCanMove(currButtonVal)) {\r\n this.myBoard.swapPieceInBoard(currButtonVal);\r\n setButtonTextInGridAtCoordinate(emptyButtonCoordinate, currButtonText);\r\n setButtonTextInGridAtCoordinate(currButtonCoordinate, \"\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7ecaa7c7fec8dde82b84ed45f1c6d658", "score": "0.53855634", "text": "@Override\r\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tif(arg0.getKeyCode() == KeyEvent.VK_DELETE){\r\n\t\t\timageView.remove(this);\r\n\t\t\timageView.repaint();\r\n\t\t\tcarnet.removeElement(this,identificador);\r\n\t\t\timageView.repaint();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0b531b2883f499ef5b3ec90c2682ebe7", "score": "0.5384044", "text": "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tif(e.getSource().equals(btnRunning)) {\n\t\t\tbtnRunning.setIcon(home_big);\n\t\t\tif(!btnRunning.isChoose()) {\n\t\t\t\tbtnRunning.setBackground(new Color(229, 243, 251));\n\t\t\t}\n\t\t}\n\t\telse if(e.getSource().equals(btnMachine)) {\n\t\t\tbtnMachine.setIcon(machine_big);\n\t\t\tif(!btnMachine.isChoose()) {\n\t\t\t\tbtnMachine.setBackground(new Color(229, 243, 251));\n\t\t\t}\n\t\t}\n\t\telse if(e.getSource().equals(btnAssist)) {\n\t\t\tbtnAssist.setIcon(assist_big);\n\t\t\tif(!btnAssist.isChoose()) {\n\t\t\t\tbtnAssist.setBackground(new Color(229, 243, 251));\n\t\t\t}\n\t\t}\n\t\telse if(e.getSource().equals(jlLogout)) {\n\t\t\tjlLogout.setIcon(logout_big);\n\t\t}\n\t}", "title": "" }, { "docid": "5e750bd48eb5890db8858ba7728b62c7", "score": "0.53801346", "text": "public void onButtonTwo(){\r\n mainController.removeTileTab();\r\n }", "title": "" }, { "docid": "ec4752c159f674b7ce43fe3b190b1e67", "score": "0.537691", "text": "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t\tPoint point = root.frameToMapPoint(e.getPoint());\r\n\t\tswitch(button){\r\n\t\tcase MouseEvent.BUTTON1:\r\n\t\t\troot.setCurObject(pressed, point);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "56698e0fd0670407f7fcbf79d81c067a", "score": "0.5371303", "text": "public void removeTileListener()\n\t{\n\t\tremoveMouseListener(tileListener);\n\t}", "title": "" }, { "docid": "483f3561420c291944d51acd300deaf2", "score": "0.5367269", "text": "public void undo() {\n if(canvas.getMarkers().isEmpty()) {\n //Error: No marker to delete\n MonologFX dialog = new MonologFX(MonologFX.Type.ERROR);\n dialog.setTitle(\"Nothing to delete\");\n dialog.setMessage(\"This video frame does not have any points to delete\");\n dialog.setModal(true);\n dialog.showDialog();\n }\n else {\n //Ask for confirmation\n MonologFX dialog = new MonologFX(MonologFX.Type.QUESTION);\n \n MonologFXButton okButton = new MonologFXButton();\n okButton.setType(MonologFXButton.Type.OK);\n okButton.setLabel(\"OK\");\n okButton.setDefaultButton(true);\n dialog.addButton(okButton);\n \n MonologFXButton cancelButton = new MonologFXButton();\n cancelButton.setType(MonologFXButton.Type.CANCEL);\n cancelButton.setLabel(\"Cancel\");\n cancelButton.setCancelButton(true);\n dialog.addButton(cancelButton);\n \n dialog.setTitle(\"Confirm delete\");\n dialog.setMessage(\"Delete the most recently entered point from this frame?\");\n \n MonologFXButton.Type result = dialog.showDialog();\n \n if(result == MonologFXButton.Type.OK) {\n //Remove the last item in the list\n canvas.getMarkers().remove(canvas.getMarkers().size() - 1 );\n canvas.repaint();\n }\n \n }\n }", "title": "" }, { "docid": "3ed838f46ed2f9fd25e32cfacbeb591e", "score": "0.5366365", "text": "public int removeIcon(org.netbeans.modules.j2ee.dd.api.common.Icon valueInterface) {\n\t\tIcon value = (Icon) valueInterface;\n\t\treturn this.removeValue(ICON, value);\n\t}", "title": "" }, { "docid": "90e1d6e096939663598e503068645886", "score": "0.5357783", "text": "@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tzuixiaohuaButton.setIcon(zuixiaohuaIcon);\n\t\t\t\t}", "title": "" }, { "docid": "b6c57243a9a28d2392d12ab89762ece8", "score": "0.5357633", "text": "@FXML\n public void xServantClicked() {\n removeResource(Resource.SERVANT,xServant,chosenResources,coinImage,shieldImage,servantImage,rockImage);\n }", "title": "" }, { "docid": "47446564d6cd312b6c23aff1523e8f42", "score": "0.5356175", "text": "public void handleClickedPos (int x, int y) {\n mMainController.logToChat(\"You clicked (\" + x + \", \" + y + \")\", false);\n switchButtonGridEnableStatus(false);\n }", "title": "" }, { "docid": "9c4e91dc6f699a2e6fa8e21763881d46", "score": "0.5352703", "text": "protected abstract void cancelMoveAction();", "title": "" }, { "docid": "48e9e7d68e98b403d10fc0eb388b7ab6", "score": "0.53475046", "text": "public void mouseDragged ( MouseEvent event ) {\n\ticonLabel.setLocation( event.getX(), \n\t\t\t event.getY() );\n }", "title": "" }, { "docid": "73f257b526da500bcd1d430a642ad44f", "score": "0.53417337", "text": "public void mouseClicked(MouseEvent event){\n\t\t\tcurrent=find(event.getPoint());\n\t\t\tif (current!=null&&event.getClickCount()>=2) {\n\t\t\t\tremove (current);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8838fa8a2fc0574c3a211b5bcd324f0a", "score": "0.533881", "text": "@Override\r\n public void mouseReleased(MouseEvent e) {\r\n //releasing button 1\r\n if (e.getButton() == MouseEvent.BUTTON1) {\r\n lclick = false;\r\n }\r\n }", "title": "" }, { "docid": "67b9c350994ff6f81e023f41c18f48fa", "score": "0.53380245", "text": "public void remove() {\n this.setDoubled(null);\n this.setHasEaten(false);\n this.setLocation(-1);\n }", "title": "" }, { "docid": "e900f0d3ee9475fa6bdce9447b5fa01e", "score": "0.53342175", "text": "public void ClearPosition(Coordinates coords)\n {\n buttonArray[coords.getRow()][coords.getCol()].setText(\"\");\n }", "title": "" }, { "docid": "35e4deb0330a506d4d88bf85667dd913", "score": "0.5319783", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tint index = imageTags.getSelectedIndex();\n\t\t\t\timageForEditing.removeTag(imageTagsListModel.remove(index));\n\t\t\t\t\n\t\t\t\t//Disables the removeTagButton when there are no elements in the JList model\n\t\t\t\tint size = imageTagsListModel.getSize();\n\t\t\t\tif (size == 0) {\n\t\t\t\t\tbtnRemove.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t//Gets the previous index to prevent out of bounds index\n\t\t\t\telse {\n\t\t\t\t\tif (index==imageTagsListModel.getSize()){\n\t\t\t\t\t\tindex--;\n\t\t\t\t\t}\n\t\t\t\t\t//Sets cursor/selected tag to at the previous index of the removed tag\n\t\t\t\t\timageTags.setSelectedIndex(index);\n\t\t\t\t\timageTags.ensureIndexIsVisible(index);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "52f69259e9e691bca4c0d52e1f15f212", "score": "0.531935", "text": "public boolean getMouseButtonDown(int button) { return false; }", "title": "" }, { "docid": "4990c7748657b2ed07554d7d79ea8779", "score": "0.531369", "text": "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\ttuichuButton.setIcon(tuichuIcon2);\n\t\t\t\t}", "title": "" }, { "docid": "98b7340f82e1a5160eae429ec9487d71", "score": "0.52890253", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tint[] xy = grid.getGridPosition(e.getX(), e.getY());\n\t\t\t\tint x = xy[0];\n\t\t\t\tint y = xy[1];\n\t\t\t\tint[] max = model.getDim();\n\t\t\t\t// Ignore clicks outside the board.\n\t\t\t\tif (x < 0 || x >= max[0] || y < 0 || y >= max[1]) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Stops if someone win the game\n\t\t\t\tif (model.isWinner(model.getcurPlayer())) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (model.getTurn() == Turn.MOVE_PLAYER) {\n\t\t\t\t\tif(model.move(x, y)) {\n\t\t\t\t\t\tlblInfo.setText(\"Remove one tile\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlblInfo.setText(\"You can only move to active tiles\");\n\t\t\t\t\t}\n\t\t\t\t}else { \n\t\t\t\t\tif (model.removeTile(x, y)) {\t\n\t\t\t\t\t\tmodel.setNextPlayer();\n\t\t\t\t\t\twhile(model.hasLost(model.getcurPlayer())) {\n\t\t\t\t\t\t\tlblInfo.setText(model.getcurPlayer().getName() + \" has lost :(, this is so sad\");\n\t\t\t\t\t\t\tmodel.setNextPlayer();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (model.isWinner(model.getcurPlayer())) {\n\t\t\t\t\t\t\tSystem.out.printf(\"%s is the winner!!\", model.getcurPlayer().getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlblInfo.setText(model.getcurPlayer().getName() + \"'s turn.\");\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlblInfo.setText(\"That is not a valid tile you donkey.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "ec03fba7d9a4efa5369dd0502003d1e4", "score": "0.52882236", "text": "@Override\n\tpublic boolean remove(Widget w) {\n\t\treturn cardAction.remove(w);\n\t}", "title": "" }, { "docid": "ad90f05374849aa191783eaede02e0d1", "score": "0.52861536", "text": "public void removeAdapterBtn(AdapterController controller){\n view.removeAdapterBtn(controller);\n }", "title": "" }, { "docid": "06e53616c0a96008a53692fbcf7ab81f", "score": "0.5284364", "text": "private void cancelPressEvent() {\n\t\tmHandler.removeMessages(LONG_PRESS);\n\t\t//Reset the scale\n\t\tsetImageMatrix(mIdentity);\n\t\t//Reset the pressed state\n\t\tsetBackgroundColor(Color.WHITE);\n\t}", "title": "" }, { "docid": "b1b83503b9aad6fdee8cc820ee429d83", "score": "0.5283325", "text": "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (x_dialogueImage > 272) {\r\n\t\t\t\tx_dialogueImage -= 48;\r\n\t\t\t\ty_dialogueImage -= 16;\r\n\t\t\t} else {\r\n\t\t\t\tdialogueMoveLeft.stop();\r\n\t\t\t\tnameRun.start();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "485508d11549f388ebb27247007140d3", "score": "0.52798456", "text": "@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tTipped.getInstance().tipdb.deleteShift(idToRemove);\n \t\t\t\t\tshiftAdapter.changeCursor(Tipped.getInstance().tipdb.getAllShifts());\n \t\t\t\t\tshiftAdapter.notifyDataSetChanged();\n \t\t\t\t}", "title": "" }, { "docid": "8668236e6d2de9ff44adcb6069b0ccab", "score": "0.5279378", "text": "private void btnEliminarRegistroActionPerformed(java.awt.event.ActionEvent evt) {\n System.out.println(\"Presionaste el botón Eliminar Registro\");\n \n }", "title": "" }, { "docid": "d590fa3083240009348c912542d03b25", "score": "0.52669907", "text": "private void unFocusedButton(int i) {\n\t\t\tboutonOption[i].setBackground(foregroundColor);\n\t\t\tboutonOption[i].setForeground(backgroundColor);\n\t\t}", "title": "" }, { "docid": "8c924ef136d67cf1c621e4d9adac6a6e", "score": "0.52648777", "text": "private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {\n Object[] selected = trialList.getSelectedValues();\r\n TrialMarker mark = null;\r\n for (int i = 0; i < selected.length; i++) {\r\n mark = (TrialMarker) selected[i];\r\n trialSet.removeElement(selected[i]);\r\n intervalMarkerManager.removeIntervalMarker(mark.getIntervalMarker());\r\n }\r\n }", "title": "" }, { "docid": "505bbebf2288a1d5258785c8728bd89f", "score": "0.5254309", "text": "public void actionPerformed(final ActionEvent theEvent) {\n theCenterPanel.remove(theLabel);\r\n setMinimumSize(getPreferredSize());\r\n pack();\r\n repaint();\r\n disableButtons();\r\n }", "title": "" }, { "docid": "9ce9835e96c9df1998bab7685b934d45", "score": "0.5243421", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n int[] rows = imgTable.getSelectedRows();\n if (rows.length > 0) {\n for (int i = rows.length-1; i >= 0; i--) {\n imageTM.removeRow(rows[i]);\n sourceImages.remove(rows[i]);\n sourceKeys.remove(rows[i]);\n imageRemoveB.setBackground(null);\n }\n }\n else {\n System.out.println(\"No row selected for removal in Image JTable.\");\n imageRemoveB.setBackground(Color.RED);\n }\n }", "title": "" }, { "docid": "af432c9901e5206fd8620cb7b4f295c0", "score": "0.5231911", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tthis.removeAll();\n\t\t棋子颜色 = 1;\n\t\tadd(button);\n\t\tbutton.setBounds(10, 5, 60, 26);\n\t\tadd(text_1);\n\t\ttext_1.setBounds(90, 5, 90, 24);\n\t\ttext_2.setText(\"\");\n\t\ttext_1.setText(\"请黑棋下子\");\n\t\tadd(text_2);\n\t\ttext_2.setBounds(290, 5, 90, 24);\n\t\t\n\t}", "title": "" }, { "docid": "904246425da23393e0c5841220a75e61", "score": "0.52298397", "text": "@FXML\n public void xCoinClicked() {\n removeResource(Resource.COIN,xCoin,chosenResources,coinImage,shieldImage,servantImage,rockImage);\n }", "title": "" }, { "docid": "2ade68270fea20d31bb63a54195e9b6f", "score": "0.5229518", "text": "@Override\n\t\tpublic void remove() {\n\t\t\tHexBoard.this.remove(currentTile);\n\t\t}", "title": "" }, { "docid": "ef24292f90eacdcc38fe9e6159038bd2", "score": "0.52261543", "text": "public void removeImgae() {\n\t\trightpanel01.removeAll();\r\n\r\n\t}", "title": "" }, { "docid": "c4787d89d5e1223985e811238055b9f7", "score": "0.5223389", "text": "protected void emptyIcon() {\r\n\t\ttextField.setLeftWidget(null);\r\n\t}", "title": "" }, { "docid": "26dfb81887bb30ad585a12fc00b274dd", "score": "0.52157485", "text": "public void removeMouseListeners();", "title": "" }, { "docid": "63cb82ba2747ce01b801eaa96053e0d3", "score": "0.52139026", "text": "void remove() {\n y = -2;\n }", "title": "" }, { "docid": "a03af0147d70e47973118529a6ef540e", "score": "0.52127576", "text": "@Override\n\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer,\n\t\t\tint button) {\n\t\tc.remove();\n\t\tClasePrincipal.contC++;\n\t\treturn super.touchDown(event, x, y, pointer, button);\n\t}", "title": "" }, { "docid": "66a64bdb781a512278b08e6c27ead4a6", "score": "0.52066624", "text": "public void undo(){\n\t\t\n\t\tif((caroMovesHist.getSizeX()>=1)||(caroMovesHist.getSizeY()>=1)){\n\t\t\tcaroMovesHist.removePosition();\n\t\t\t\n\t\t\tfloat caroNewX = caroMovesHist.getxPos().get(caroMovesHist.getSizeX()-1);\n\t\t\tfloat caroNewY = caroMovesHist.getyPos().get(caroMovesHist.getSizeY()-1);\n\t\t\t\n\t\t\tif(!World.isBlocked(caroNewX, caroNewY)){\n\t\t\t\tsetX(caroMovesHist.getxPos().get(caroMovesHist.getSizeX()-1));\n\t\t\t\tsetY(caroMovesHist.getyPos().get(caroMovesHist.getSizeY()-1));\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "559193e018381f8c7fe731cd3cb2b7a6", "score": "0.5205881", "text": "public void setRemoveButtonText(String text) {\n //removeButtonText = text;\n removeElement.setText(text);\n }", "title": "" }, { "docid": "f707dda6cb09be4d7a362ca6bacab9c3", "score": "0.5204592", "text": "void removeBrick(double xPos, double yPos);", "title": "" }, { "docid": "ee3e25c683da29fd754fce42a73d95b7", "score": "0.52037144", "text": "public void actionPerformed(ActionEvent event)\r\n {\n xClicked.setVisible(false);\r\n yClicked.setVisible(false);\r\n // handle event\r\n if ( event.getSource() == xButton )\r\n xButtonClick();\r\n else if ( event.getSource() == yButton )\r\n yButtonClick();\r\n else if ( event.getSource() == exitButton )\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "dd01efbfc6cd139cb356f7b6e1cd2f77", "score": "0.5203231", "text": "private void pixelButtonClicked(PixelButton pbSource){\n //highlight the new current pixel so the user knows which they are editing\n currentPixel.setBorder(BorderFactory.createLineBorder(Color.GRAY));\n currentPixel.setText(\"\");\n pbSource.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n pbSource.setText(\"O\");\n\n //the current pixel gets the pixelButton at x, y\n currentPixel = getButtonAt(pbSource.get_x_dim(), pbSource.get_y_dim());\n //System.out.println(pbSource.get_x_dim() + \", \" + pbSource.get_y_dim());\n\n //change the font color for visibility\n adjustButtonHighlight(currentPixel.getBackground(), currentPixel);\n\n //change the rows and cols of the grid at the current pixel\n if(pickPixel == true){\n fillGridDialogue();\n }\n }", "title": "" }, { "docid": "5cec8e96e10076a21a69b3a9efc26928", "score": "0.5196457", "text": "public void addOnClickEventMoveButton(Node node){\n node.setOnMouseClicked(event->{\n if(!isOperationSet() || !currentOperation.equals(Operation.MOVE))\n {\n setOperation(Operation.MOVE);\n }\n refreshButtons();\n });\n }", "title": "" }, { "docid": "d264e182e29daf9eb91c85c86c970804", "score": "0.519611", "text": "public void deleteBIndSavePressed()\r\n {\r\n this._has_bIndSavePressed= false;\r\n }", "title": "" }, { "docid": "8f4fd9ab6617a374fa0a3e9624020bcf", "score": "0.51926225", "text": "public void mouseMoved(MouseEvent e){ \r\n //Highlights the buttons as passed over by mouse\r\n if(menu.contains(e.getX(), e.getY()))\r\n menu.c = Color.WHITE;\r\n else\r\n menu.c = Color.ORANGE;\r\n }", "title": "" }, { "docid": "c9c2d4282e75eec0587cc31db2badb8f", "score": "0.5191565", "text": "@Override \r\n \t\t\tpublic void mouseReleased( MouseEvent e )\r\n \t\t\t{\n \t\t\t\tif ( !e.isConsumed() && mPosition.contains( e.getX(), e.getY() ) )\r\n \t\t\t\t{\r\n \t\t\t\t\tfinal int index = mTabbedPane.getSelectedIndex();\r\n \t\t\t\t\tmTabbedPane.remove( index );\r\n \t\t\t\t\te.consume();\r\n \t\t\t\t}\r\n \t\t\t}", "title": "" }, { "docid": "2823eb96073be1a7f2b7da820fcdc7c3", "score": "0.5190319", "text": "void click(int x, int y) {\n boolean isSafeToMove = false;\n if (emptyX == x - 1 && emptyY == y) isSafeToMove = true;\n if (emptyX == x + 1 && emptyY == y) isSafeToMove = true;\n if (emptyX == x && emptyY == y - 1) isSafeToMove = true;\n if (emptyX == x && emptyY == y + 1) isSafeToMove = true;\n if (!isSafeToMove) return;\n\n // button is safe to move, so lets move it\n Button clickedButton = getButtonFromGrid(x, y);\n Button emptyButton = getButtonFromGrid(emptyX, emptyY);\n emptyButton.setText(clickedButton.getText());\n clickedButton.setText(\"\");\n\n // update position of the empty space\n emptyX = x;\n emptyY = y;\n\n if (!isScrambling && checkIfCompleted()) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ny information till dej\");\n alert.setContentText(\"Grattis, du vann!\");\n alert.showAndWait();\n }\n }", "title": "" }, { "docid": "664c7c77290f04b9521f6299884e477f", "score": "0.5189388", "text": "public myJButton(String icon)\n {\n super();\n this.setIcon(new ImageIcon(icon));\n this.setBorderPainted(false);\n this.setContentAreaFilled(false);\n }", "title": "" }, { "docid": "883d6b15cfca7cc73b7ba80ae695d759", "score": "0.5189072", "text": "private void imageMoveDown1() {\n drawingPad.getImagePool().moveLower(iInfoForPopup.getId());\n drawingPad.repaint();\n }", "title": "" } ]
703b7801296ebff8f4e4b672e26dc56e
Returns a new object of class 'Quality Risk'.
[ { "docid": "2119c2ab5a903d5305cdd465724b519f", "score": "0.8137929", "text": "QualityRisk createQualityRisk();", "title": "" } ]
[ { "docid": "b1c82d0651184d9932193720807e1de8", "score": "0.7463711", "text": "QualityScenario createQualityScenario();", "title": "" }, { "docid": "c59a680b39495996bdb26f8e52eeada7", "score": "0.67484975", "text": "public float getQuality();", "title": "" }, { "docid": "00875b711aef53f6ecfef5b01b01368f", "score": "0.6465951", "text": "@Deprecated\r\n\tpublic QualityValue(){\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "421bc63c5efd6b3ab99d9d23544bc7fd", "score": "0.645186", "text": "java.lang.String getQuality();", "title": "" }, { "docid": "b13ca2b2ddc8c271739de76d021b38d1", "score": "0.63135135", "text": "public double getQuality() {\n return quality;\n }", "title": "" }, { "docid": "afed50e7e4fe425f79f206036ea33528", "score": "0.6217935", "text": "Quality getQ();", "title": "" }, { "docid": "b6b84bc96c870db78735c8e7a76efd8b", "score": "0.6204349", "text": "public void setQuality(float quality);", "title": "" }, { "docid": "dc12b2ce92dd818ba742549207d1611c", "score": "0.6167612", "text": "public int getQuality() {\n return quality;\n }", "title": "" }, { "docid": "dc12b2ce92dd818ba742549207d1611c", "score": "0.6167612", "text": "public int getQuality() {\n return quality;\n }", "title": "" }, { "docid": "dc12b2ce92dd818ba742549207d1611c", "score": "0.6167612", "text": "public int getQuality() {\n return quality;\n }", "title": "" }, { "docid": "23b13f3b1bf95e00490757d897489462", "score": "0.6078996", "text": "public void setQuality(int value) {\n this.quality = value;\n }", "title": "" }, { "docid": "8cc38279bd72081e45cc5066e3c70647", "score": "0.601049", "text": "public Builder setQuality(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n quality_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "85734c9ce6b0cd9f1bcc624f1ac6ec2c", "score": "0.59999007", "text": "public QualityAttributeModel(FirstClassModel parent) {\n\t\tsuper(ElementType.QUALITY_ATTRIBUTE, parent);\n\t}", "title": "" }, { "docid": "a1542cd1d55c5f4e234d981397106227", "score": "0.59421915", "text": "public void setQuality(int quality) {\n this.quality = quality;\n }", "title": "" }, { "docid": "a1542cd1d55c5f4e234d981397106227", "score": "0.59421915", "text": "public void setQuality(int quality) {\n this.quality = quality;\n }", "title": "" }, { "docid": "180cbdfc42c11176639d3f5e97a227e9", "score": "0.5905169", "text": "public void setQuality(Integer quality) {\n this.quality = quality;\n }", "title": "" }, { "docid": "bbdb347680bc14d3063906d45d4a2429", "score": "0.58186865", "text": "public Builder setQualityBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n quality_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1986f232596a3565f4263446f378a1e7", "score": "0.58133787", "text": "public DriftCheckModelQuality getModelQuality() {\n return this.modelQuality;\n }", "title": "" }, { "docid": "71393d03f8cd14d3a39d26a702328f96", "score": "0.5812194", "text": "public Builder clearQuality() {\n bitField0_ = (bitField0_ & ~0x00004000);\n quality_ = getDefaultInstance().getQuality();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "557bdc77aec29f067bfa41459f20f1a5", "score": "0.580637", "text": "@Test\n\tpublic void testQualityWithSellInUnder0QualityUnder50Brie() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -1, 40));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has increased by 2\n\t\tassertEquals(\"Quality with sellIn under 0 brie\", 42, quality);\n\t}", "title": "" }, { "docid": "8db708ea2d5ea08570a7d239539b4361", "score": "0.57835156", "text": "@Test\n\tpublic void testQualityUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Conjured Mana Cake\", 1, -1));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality under 0 Conjured Mana Cake\", -1, quality);\n\t}", "title": "" }, { "docid": "cc36962942aa066a3f6f8b14ccc38e19", "score": "0.5778734", "text": "@Test\n\tpublic void testQualityOf50() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", 1, 49));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has increased by one\n\t\tassertEquals(\"Quality with quality under 0 Concert passes\", 50, quality);\n\t}", "title": "" }, { "docid": "5554b577cd7e07d89b7219f984362bb4", "score": "0.5768481", "text": "@Test\n void maxQuality() {\n Item[] items = new Item[]{\n new Item(\"Aged Brie\", 10, 50),\n new Item(\"Backstage passes to a TAFKAL80ETC concert\", 5, 49),\n new Item(\"Aged Brie\", 10, 40)\n };\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n for (Item item : app.items) {\n assertTrue(50 >= item.quality, \"Quality shouldn't overtake its max capacity\");\n }\n }", "title": "" }, { "docid": "fb47388964b9b7d78e1deb61c9e941db", "score": "0.5723043", "text": "@Test\n void negativeQuality() {\n Item[] items = new Item[]{new Item(\"noValue\", 2, 0)};\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n assertEquals(0, app.items[0].quality, \"Quality shouldn't drop below 0\");\n }", "title": "" }, { "docid": "ae10538c0011eb8d6be98c35841c2dbd", "score": "0.571094", "text": "@Test\n\tpublic void testQuality1SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Sulfuras, Hand of Ragnaros\", -11, 1));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Sulfuras\", 1, quality);\n\t}", "title": "" }, { "docid": "35f6bedb22bafde943d7bc212fee7952", "score": "0.5709554", "text": "public com.google.protobuf.ByteString\n getQualityBytes() {\n java.lang.Object ref = quality_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n quality_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "807efe5bbfdb59ffc612ec6c496384fc", "score": "0.5705303", "text": "@Test\n\tpublic void testQualityOver50SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -11, 51));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Brie\", 51, quality);\n\t}", "title": "" }, { "docid": "a8642eb7edfba831cc91d36493d2659a", "score": "0.5677103", "text": "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased to 0\n\t\tassertEquals(\"Quality with sellIn under 0 concert passes\", 0, quality);\n\t}", "title": "" }, { "docid": "1bac3800ec04628e8781cedfa4bc6267", "score": "0.56715447", "text": "public com.google.protobuf.ByteString\n getQualityBytes() {\n java.lang.Object ref = quality_;\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 quality_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0fd0a9ca5619e9cdbd646dee6418899e", "score": "0.56578356", "text": "@Test\n\tpublic void testQualityWithSellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Conjured Mana Cake\", -1, 6));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by two\n\t\tassertEquals(\"Quality with sellIn under 0 Conjured Mana Cake\", 4, quality);\n\t}", "title": "" }, { "docid": "671c4a8ca59a9579e2f2a6514968f03e", "score": "0.56351656", "text": "public CancerRisk() { this(\"None\", 1.0); }", "title": "" }, { "docid": "d181add76d9c4fd39bff7725ed074d83", "score": "0.56261027", "text": "java.lang.String getQualityMax();", "title": "" }, { "docid": "de0efc8eaa9a480416421891654d9e46", "score": "0.5624904", "text": "private String getQuality()\n {\n \n if(high.isSelected())\n {\n return \"High\";\n }\n else if(medium.isSelected())\n {\n return \"Medium\";\n }\n else if(mild.isSelected())\n {\n return \"Mild\";\n }\n else\n {\n \n return null;\n }\n }", "title": "" }, { "docid": "726afefab6bfae7a2e08aaa6d6b32525", "score": "0.5616799", "text": "com.google.protobuf.ByteString\n getQualityBytes();", "title": "" }, { "docid": "42b26e2ddb84d45a6c298838d48f95aa", "score": "0.56105655", "text": "public PQR() {}", "title": "" }, { "docid": "470a5a7518bc265b8d1a535ea551832d", "score": "0.5549092", "text": "public Builder setQuality(int percent) {\n if (percent > 0 || percent < 100) {\n this.quality = percent;\n }\n return this;\n }", "title": "" }, { "docid": "8f11d337c284b2b94ea322815f6e4290", "score": "0.5547174", "text": "@Test\n\tpublic void testQuality0SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Sulfuras, Hand of Ragnaros\", -11, 0));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Sulfuras\", 0, quality);\n\t}", "title": "" }, { "docid": "cfd70afbbe769ca2ba5a1a76f7f9c8bb", "score": "0.5524365", "text": "BasicScalingType createBasicScalingType();", "title": "" }, { "docid": "7b5378497fcb6691caae7e1e5d12bceb", "score": "0.550623", "text": "public double[] getQualityScores() {\n return null;\n }", "title": "" }, { "docid": "7b5378497fcb6691caae7e1e5d12bceb", "score": "0.550623", "text": "public double[] getQualityScores() {\n return null;\n }", "title": "" }, { "docid": "d39eef3e2a359bdc5bcadd4af7c8b24e", "score": "0.5505581", "text": "public Collection getQualityResults()\r\n {\r\n return mQualityResults;\r\n }", "title": "" }, { "docid": "0bb6c35f29e5fe7f3e3845b4e1694c72", "score": "0.5502418", "text": "boolean hasQuality();", "title": "" }, { "docid": "0bb6c35f29e5fe7f3e3845b4e1694c72", "score": "0.5502418", "text": "boolean hasQuality();", "title": "" }, { "docid": "398e12516742fac69c864acd7d86474d", "score": "0.54725367", "text": "int getImageQualityPref();", "title": "" }, { "docid": "2e1892a6abd51dca71aec5922703c665", "score": "0.5467886", "text": "public QualityAttributeModel(QualityAttributeModel other, FirstClassModel parent) {\n\t\tsuper(other, parent);\n\t\tcopyCollectionAtTheEndOfCopy(other.getSupports(), supports);\n\t}", "title": "" }, { "docid": "abc8e809624d922ebd14644bc2d3b6e1", "score": "0.5462891", "text": "public java.lang.String getQuality() {\n java.lang.Object ref = quality_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n quality_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "78fc6432b4e85d716980a90f8bdea390", "score": "0.5454525", "text": "public QualityGridBO getQualityGrid()\r\n {\r\n return mQualityGrid;\r\n }", "title": "" }, { "docid": "182e0bd1d71b5b849430d3c4387bf4cf", "score": "0.5419067", "text": "public String getQuality()\n\t{\n\t\treturn quality.getText();\n\t}", "title": "" }, { "docid": "d68666d12d3e6d7f781da172cba55ce3", "score": "0.5417992", "text": "public java.lang.String getQuality() {\n java.lang.Object ref = quality_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n quality_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "e7f3dd3243e9bf06829e5fcfe02eab6c", "score": "0.53864384", "text": "UsabilityRequirement createUsabilityRequirement();", "title": "" }, { "docid": "4643e266daee39bcb5314d77f8f1162d", "score": "0.53734386", "text": "QualityControl getQualityControl(CallPeer peer);", "title": "" }, { "docid": "ecc063b5782abb3a3817f50f6f5ef3e5", "score": "0.53014916", "text": "public DriftCheckModelDataQuality getModelDataQuality() {\n return this.modelDataQuality;\n }", "title": "" }, { "docid": "7c3354769e37fd42a8c3446f4f313ceb", "score": "0.52882904", "text": "public RiskType getRiskType() {\n return riskType;\n }", "title": "" }, { "docid": "fbd8a07c2492b8c15bb15c22c89ff81e", "score": "0.5283278", "text": "public String getHistologicalQuality()\r\n \t{\r\n \t\treturn histologicalQuality;\r\n \t}", "title": "" }, { "docid": "b3e897953540852bbf2b83b44ca57952", "score": "0.526883", "text": "public interface Size extends Quality {\n\n /**\n * Returns the size of an shape in terms of width.\n */\n double getWidth();\n\n /**\n * Returns the size of an shape in terms of height.\n */\n double getHeight();\n\n}", "title": "" }, { "docid": "dcc012244b76766d3375decc957571b8", "score": "0.5264046", "text": "@Test\n\tpublic void testConsertPassQuality() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", 10, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has increased by two (perhaps should be one)\n\t\tassertEquals(\"Quality consert backstage passes\", 22, quality);\n\t}", "title": "" }, { "docid": "7c5692d19282a96f138cb2c5ef6b933b", "score": "0.52560526", "text": "public int getQuality()\n {\n int sleeplatencyScore = getSleepLatencyScore();\n int sleepDurationScore = getSleepDurationScore();\n int sleepEfficiencyScore= getSleepEfficiencyScore();\n int sleepDeepsleepRatioScore = getDeepSleepRatioScore();\n int nightTimeWakeScore = getNightTimeAwakeningScore();\n int sum = sleeplatencyScore + sleepDurationScore+ sleepEfficiencyScore+ sleepDeepsleepRatioScore+ nightTimeWakeScore;\n sum = sum *4;\n return sum;\n }", "title": "" }, { "docid": "44c2848dc196c0efcbce04cd9bb4ea4a", "score": "0.5248564", "text": "private GATKRead addBaseQuality(final GATKRead read) {\n\n // convert to a flow base read\n final FlowBasedReadUtils.ReadGroupInfo rgInfo = FlowBasedReadUtils.getReadGroupInfo(getHeaderForReads(), read);\n final FlowBasedRead fbRead = new FlowBasedRead(read, rgInfo.flowOrder, rgInfo.maxClass, fbargs);\n final int flowOrderLength = calcFlowOrderLength(rgInfo.flowOrder);\n\n // generate base quality\n final double[] baseErrorProb = generateBaseErrorProbability(fbRead, flowOrderLength);\n final byte[] phred = convertErrorProbToPhred(baseErrorProb);\n\n // install in read\n if ( !replaceQualityMode ) {\n read.setAttribute(BASE_QUALITY_ATTRIBUTE_NAME, convertPhredToString(phred));\n } else {\n read.setAttribute(OLD_QUALITY_ATTRIBUTE_NAME, convertPhredToString(read.getBaseQualitiesNoCopy()));\n read.setBaseQualities(phred);\n }\n\n // return reused read\n return read;\n }", "title": "" }, { "docid": "b3d35238c897ef0ee77853f3cf2a91c7", "score": "0.51846266", "text": "public static ItemQuality getItemValue(ItemStack stack){\n\t\tswitch(stack.getType()){\n\t\t\tcase LEATHER_HELMET :\n\t\t\tcase LEATHER_CHESTPLATE :\n\t\t\tcase LEATHER_LEGGINGS :\n\t\t\tcase LEATHER_BOOTS : return ItemQuality.Leather;\n\t\t\t\n\t\t\tcase CHAINMAIL_HELMET :\n\t\t\tcase CHAINMAIL_CHESTPLATE :\n\t\t\tcase CHAINMAIL_LEGGINGS :\n\t\t\tcase CHAINMAIL_BOOTS : return ItemQuality.Chain;\n\t\t\t\n\t\t\tcase IRON_HELMET :\n\t\t\tcase IRON_CHESTPLATE :\n\t\t\tcase IRON_LEGGINGS :\n\t\t\tcase IRON_BOOTS : return ItemQuality.Iron;\n\t\t\t\n\t\t\tcase DIAMOND_HELMET :\n\t\t\tcase DIAMOND_CHESTPLATE :\n\t\t\tcase DIAMOND_LEGGINGS :\n\t\t\tcase DIAMOND_BOOTS : return ItemQuality.Diamond;\n\t\t\t\n\t\t\tcase GOLD_HELMET :\n\t\t\tcase GOLD_CHESTPLATE :\n\t\t\tcase GOLD_LEGGINGS :\n\t\t\tcase GOLD_BOOTS : return ItemQuality.Gold;\n\t\t\n\t\t\tdefault: return ItemQuality.None;\n\t\t}\n\t}", "title": "" }, { "docid": "0b8f9426433a95d9dae2b04bf6d585dc", "score": "0.51786655", "text": "public Scale(Scale newScale){\n \tsuper(newScale);\n }", "title": "" }, { "docid": "8a4c97b7302bfaa72b1b0c903290e176", "score": "0.5142294", "text": "public ProductionPower(){\n this(0, new NumberOfResources(), new NumberOfResources(), 0, 0);\n }", "title": "" }, { "docid": "9246a7a1a7ca984874fdce7d489e113f", "score": "0.514065", "text": "public Builder clearQualityMax() {\n bitField0_ = (bitField0_ & ~0x00008000);\n qualityMax_ = getDefaultInstance().getQualityMax();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "91f19eeaff086e4223a4322229cfd850", "score": "0.51254416", "text": "boolean hasQualityMax();", "title": "" }, { "docid": "708d3c648e467a489bf13eb2b4a2afdf", "score": "0.51241547", "text": "org.hl7.fhir.Ratio addNewValueRatio();", "title": "" }, { "docid": "3af1f4d77351658e0160a924fb64cf4c", "score": "0.5122229", "text": "public Shortsword(Quality quality){\n\t\tsuper(\"Shortsword\", quality, Type.ONE_HANDED, 1);\n\t}", "title": "" }, { "docid": "93f42f5afc01b458e848beac14b3fdc1", "score": "0.5115127", "text": "@Test\n\tpublic void testConsertPassQualityWithSellInUnder6() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", 5, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has increased by three (perhaps should be one)\n\t\tassertEquals(\"Quality with sellIn under 6 consert backstage passes\", 23, quality);\n\t}", "title": "" }, { "docid": "aefdf511a19759f32959f358ec36d74b", "score": "0.50888646", "text": "Quantity createQuantity();", "title": "" }, { "docid": "b8811d6f6aa173a5fe9eae3d8894a461", "score": "0.5072059", "text": "Quantifier createQuantifier();", "title": "" }, { "docid": "08efe5cf6b76cc285493ec7332705274", "score": "0.50594485", "text": "public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}", "title": "" }, { "docid": "2a4084cce8a89e1071b3973a6a96e87c", "score": "0.5057533", "text": "public CQLQualityDataSetDTO getCqlQualityDataSetDTO() {\r\n return cqlQualityDataSetDTO;\r\n }", "title": "" }, { "docid": "5bfa13de26131ab25e227c9adfeb0761", "score": "0.50485337", "text": "ManualScalingType createManualScalingType();", "title": "" }, { "docid": "5ab1207b381729b850941ceae2f955b9", "score": "0.5040668", "text": "public Prize createPrize(Prize prize) throws ContestManagementException {\n return null;\r\n }", "title": "" }, { "docid": "5ab1207b381729b850941ceae2f955b9", "score": "0.5040668", "text": "public Prize createPrize(Prize prize) throws ContestManagementException {\n return null;\r\n }", "title": "" }, { "docid": "4e3f2d715c7cab9ececec97ed306d569", "score": "0.50297076", "text": "RiskReductionthroughFunctionalityRestrictionFactory getRiskReductionthroughFunctionalityRestrictionFactory();", "title": "" }, { "docid": "08acca371f9b9ea05f621aaadb19428a", "score": "0.502643", "text": "public Builder setQualityMax(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n qualityMax_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "408e7e6699ee3a2a7449fe18e53b8c51", "score": "0.50207096", "text": "@Test\n void sellingDatePast() {\n int originalQuality = 10;\n Item[] items = new Item[]{\n new Item(\"single\", 5, originalQuality),\n new Item(\"double\", -1, originalQuality)\n };\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n assertEquals(\"single\", app.items[0].name);\n assertTrue(originalQuality > app.items[0].quality, \"Quality should've dropped\");\n assertEquals(originalQuality - 1, app.items[0].quality, \"Quality should've dropped regularly\");\n\n assertEquals(\"double\", app.items[1].name);\n assertTrue(originalQuality > app.items[1].quality, \"Quality should've dropped\");\n assertEquals(originalQuality - 2, app.items[1].quality, \"Quality should've dropped twice as much\");\n }", "title": "" }, { "docid": "85a67cb493f83e8369213e83a634b079", "score": "0.50201344", "text": "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Quality p, A arg)\n {\n\n p.logical_.accept(new LogicalVisitor<R,A>(), arg);\n\n return null;\n }", "title": "" }, { "docid": "1605a8798150a395d9284da9ffdf2b45", "score": "0.50162876", "text": "@Test\n public void test_constructor_1(){\n \tSystem.out.println(\"Testing MeasuredRatioModel's MeasuredRatioModel(String Name,BigDecimal value,String uncertaintyType,BigDecimal oneSigma,boolean FracCorr,boolean OxideCorr)\"); \n //Tests if default values are correct\n MeasuredRatioModel instance=new MeasuredRatioModel(\"r207_339\",new BigDecimal(\"-12.34567890\"),\"PCT\",new BigDecimal(\".9876543210\"),false,true); \n String expResult=\"r207_339\";\n String result=instance.getName();\n assertEquals(expResult,result);\n expResult=\"PCT\";\n result=instance.getUncertaintyType();\n assertEquals(expResult,result);\n BigDecimal expectedResult=new BigDecimal(\"-12.34567890\");\n BigDecimal actualResult=instance.getValue();\n assertEquals(expectedResult,actualResult);\n actualResult=instance.getOneSigma();\n expectedResult=new BigDecimal(\".9876543210\");\n assertEquals(expectedResult,actualResult);\n assertEquals(false,instance.isFracCorr()); \n assertEquals(true,instance.isOxideCorr()); \n }", "title": "" }, { "docid": "d5fa40b1295c2aa6b13ea60e401b1f11", "score": "0.500006", "text": "public static BUR getInstance()\r\n {\r\n return new BUR(\r\n \"Base Class Usage Ratio\",\r\n \"The number of inheritance-specific members used by the measured class divided by the total number of inheritance-specific members from the base class.\",\r\n \"BUR\");\r\n }", "title": "" }, { "docid": "ee932a36454aece8ed220d2f4f73d0d3", "score": "0.49997967", "text": "public Rarity getRarity()\r\n {\r\n\treturn rare;\r\n }", "title": "" }, { "docid": "57cb9c6077e8c2eb1b7392682049ead8", "score": "0.49978024", "text": "public VideoQuality getVideoQuality() {\n\t\treturn mQuality;\n\t}", "title": "" }, { "docid": "e2dca825c4e292c78357df8a232a1cd5", "score": "0.49902377", "text": "public interface ScalingUtils$StatefulScaleType {\n Object m21594a();\n}", "title": "" }, { "docid": "b4b93a2a229a2c66f5bca475d4467685", "score": "0.49840388", "text": "public interface RiskSource {\n void newIncoming(double incoming);\n\n double getLeverage();\n\n double getCurrentRiskAvailable();\n}", "title": "" }, { "docid": "f981df12f977c6cf3ecaeae27d972a4b", "score": "0.49776006", "text": "ScaleType getScale();", "title": "" }, { "docid": "79e642f99ea25b73f144f877033d2a36", "score": "0.49601957", "text": "public int get_quality() {\n return (int)getUIntBEElement(offsetBits_quality(), 16);\n }", "title": "" }, { "docid": "34bd842bb1bcb6b1a14d54addbb9a5e9", "score": "0.49399567", "text": "public Saving typeOfInterestScale(String typeOfInterestScale) {\n this.typeOfInterestScale = typeOfInterestScale;\n return this;\n }", "title": "" }, { "docid": "b3f2a95ac42ffa33be60180085216d83", "score": "0.4936129", "text": "public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }", "title": "" }, { "docid": "d4a739052b6a950aeb5a4d1373a64273", "score": "0.4933242", "text": "com.google.protobuf.ByteString\n getQualityMaxBytes();", "title": "" }, { "docid": "3c5e45e31198d2ab8e5a03b39ae014a1", "score": "0.49280784", "text": "public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }", "title": "" }, { "docid": "3a5f78b0e9b19a9722570b1cd24fca15", "score": "0.49269077", "text": "public void setSrcQualityRating(String value) {\r\n setAttributeInternal(SRCQUALITYRATING, value);\r\n }", "title": "" }, { "docid": "844ef7ca5c55e39592996501f311eb9a", "score": "0.49256197", "text": "public void setModelQuality(DriftCheckModelQuality modelQuality) {\n this.modelQuality = modelQuality;\n }", "title": "" }, { "docid": "b5f9b9533fccee480818a50e4b430177", "score": "0.4921398", "text": "public final EObject entryRuleQualityRisk() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleQualityRisk = null;\n\n\n try {\n // InternalNgt.g:1040:52: (iv_ruleQualityRisk= ruleQualityRisk EOF )\n // InternalNgt.g:1041:2: iv_ruleQualityRisk= ruleQualityRisk EOF\n {\n newCompositeNode(grammarAccess.getQualityRiskRule()); \n pushFollow(FOLLOW_1);\n iv_ruleQualityRisk=ruleQualityRisk();\n\n state._fsp--;\n\n current =iv_ruleQualityRisk; \n match(input,EOF,FOLLOW_2); \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": "8e289a5479fc9360c85501c0d82ff613", "score": "0.4921132", "text": "int getRatioQuantity();", "title": "" }, { "docid": "6f50041622225e43175ba8d159f1518e", "score": "0.4899959", "text": "public int getQos() {\n return qos;\n }", "title": "" }, { "docid": "df19f5e4c27770e50cbfa9216a23302a", "score": "0.48955524", "text": "public interface Quality_requirements_metamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tQuality_requirements_metamodelFactory eINSTANCE = quality_requirements_metamodel.impl.Quality_requirements_metamodelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Quality Scenario</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Quality Scenario</em>'.\n\t * @generated\n\t */\n\tQualityScenario createQualityScenario();\n\n\t/**\n\t * Returns a new object of class '<em>Architecture</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Architecture</em>'.\n\t * @generated\n\t */\n\tArchitecture createArchitecture();\n\n\t/**\n\t * Returns a new object of class '<em>Dashboard</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dashboard</em>'.\n\t * @generated\n\t */\n\tDashboard createDashboard();\n\n\t/**\n\t * Returns a new object of class '<em>Stimulus</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stimulus</em>'.\n\t * @generated\n\t */\n\tStimulus createStimulus();\n\n\t/**\n\t * Returns a new object of class '<em>Response Metric</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Response Metric</em>'.\n\t * @generated\n\t */\n\tResponseMetric createResponseMetric();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tQuality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();\n\n}", "title": "" }, { "docid": "c1ed6791fda985d3646bfd980dfad986", "score": "0.48940042", "text": "MetricModel createMetricModel();", "title": "" }, { "docid": "e0a7983d32065230d77457b5b60dad02", "score": "0.4886139", "text": "public String getSrcQualityRating() {\r\n return (String) getAttributeInternal(SRCQUALITYRATING);\r\n }", "title": "" }, { "docid": "d343463e03887f1604f156dbc2bc1019", "score": "0.48660317", "text": "public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}", "title": "" }, { "docid": "d176053e3e0664ac77031b653ef6fefe", "score": "0.48424533", "text": "private ProfitPerTariffType ()\n {\n super();\n }", "title": "" }, { "docid": "1baec3d9215c68176eec2e4db70e7cd3", "score": "0.4837667", "text": "private void increaseQualityByOne(Item item) {\n item.quality = item.quality + 1;\n }", "title": "" } ]
ce2d0632200d895f6b8292808de4ddd5
Makes the device discover all discoverable bluetooth devices in range.
[ { "docid": "daf0453490ce00805bbf558c9acd2546", "score": "0.67963177", "text": "public void discover() {\n if (btAdapter.isDiscovering()) {\n btAdapter.cancelDiscovery();\n checkBtPermissions();\n btAdapter.startDiscovery();\n Toast.makeText(this.context,\"Starting discovery.\", Toast.LENGTH_LONG).show();\n IntentFilter discoverDevice = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.context.registerReceiver(broadcastReceiver, discoverDevice);\n } else {\n checkBtPermissions();\n btAdapter.startDiscovery();\n Toast.makeText(this.context,\"Starting discovery.\", Toast.LENGTH_LONG).show();\n IntentFilter discoverDevice = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.context.registerReceiver(broadcastReceiver, discoverDevice);\n }\n }", "title": "" } ]
[ { "docid": "ba622e5572adeb7380d8406ea775d03c", "score": "0.68517274", "text": "private void discoverDevices(){\n //Make sure Bluetooth is initiated.\n if(initiateBt()) {\n discovered_devices.clear();\n discovered_devices_string.clear();\n bluetoothService.start_discovery();\n\n //Create an intentfilter to show new discovered bluetoothdevices\n IntentFilter discoverDevicesIntent = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n getActivity().registerReceiver(mBroadcastReceiver1, discoverDevicesIntent);\n }\n }", "title": "" }, { "docid": "1342d11da5fc7372a3964abe36983f8c", "score": "0.68202746", "text": "public void discover() {\n mBluetoothAdapter.cancelDiscovery();\n\n //check bluetooth state is STATE_ON else wait\n //TODO sort out how to wait properly\n if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) {\n if (mBluetoothAdapter.startDiscovery()) {\n Toast.makeText(getApplicationContext(), R.string.discovery_started, Toast.LENGTH_LONG).show();\n }\n }\n }", "title": "" }, { "docid": "6d4225e4abec78a884c0d83a9f751ef4", "score": "0.6764776", "text": "private void discover() {\n if (mBTAdapter.isDiscovering()) {\n mBTAdapter.cancelDiscovery();\n Toast.makeText(getApplicationContext(), \"Discovery stopped\", Toast.LENGTH_SHORT).show();\n } else {\n if (mBTAdapter.isEnabled()) {\n mBTArrayAdapter.clear(); // clear items\n mBTAdapter.startDiscovery();\n Toast.makeText(getApplicationContext(), \"Discovery started\", Toast.LENGTH_SHORT).show();\n registerReceiver(blReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n } else {\n Toast.makeText(getApplicationContext(), \"Please switch on the bluetooth first\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "69e83f701b51bc58e9a6dd779dcf9fd0", "score": "0.67350966", "text": "private void discover(){\n if(mBTAdapter.isDiscovering()){\n mBTAdapter.cancelDiscovery();\n Toast.makeText(getApplicationContext(),getString(R.string.DisStop),Toast.LENGTH_SHORT).show();\n }\n else{\n if(mBTAdapter.isEnabled()) {\n mBTArrayAdapter.clear(); // clear items\n mBTAdapter.startDiscovery();\n Toast.makeText(getApplicationContext(), getString(R.string.DisStart), Toast.LENGTH_SHORT).show();\n registerReceiver(blReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n }\n else{\n Toast.makeText(getApplicationContext(), getString(R.string.BTnotOn), Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "9fc098f719a4528e0a9a9cdc3e4b9c1a", "score": "0.6697597", "text": "private void discover() {\n if (mBluetoothAdapter.isDiscovering())\n mBluetoothAdapter.cancelDiscovery();\n // now start scanning for new devices. The broadcast receiver\n // we wrote earlier will be called each time we discover a new device\n // don't make this call if you only want to show paired devices\n mBluetoothAdapter.startDiscovery();\n }", "title": "" }, { "docid": "c83b6c3ae0a4f1e1fb60336e211dd0f4", "score": "0.6574018", "text": "private void makeDiscoverable() {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }", "title": "" }, { "docid": "54145c4cec4586dcfd9bb132ab0a2730", "score": "0.65338737", "text": "private void discoveryBluetooth() {\n mArrayAdapter.clear();\n btDeviceList.clear();\n\n // Aqui implementamos el BrodcastReceiver\n this.discoveryMonitor = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n\n if (BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())) {\n Log.d(TAG, \"Discovery started...\");\n } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals((intent.getAction()))) {\n Log.d(TAG, \"Discovery complete.\");\n } else if (BluetoothDevice.ACTION_FOUND.equals(intent.getAction())) {\n\n //Añadimos el dispositivo encontrado al adaptador del ListView\n String remoteName = intent.getStringExtra(BluetoothDevice.EXTRA_NAME);\n\n // Recuperamos el dispositivo detectado y lo guardamos en el array de dispositivos.\n if (remoteName.startsWith(\"Flex\")) {\n mArrayAdapter.add(remoteName);\n Log.d(TAG, \"Dispositivo detectado :\" + remoteName);\n BluetoothDevice removeDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n btDeviceList.add(removeDevice);\n }\n }\n }\n };\n\n\n // TODO: Iniciamos la busqueda de dispositvos bluetooth.\n // Este metodo es muy lento y consumo mucha bateria\n // en otros capitulos veremos como usar otra tecnica.\n mBluetoothAdapter.startDiscovery();\n\n }", "title": "" }, { "docid": "2fd4c9ebcbb8cadf61d8a7bd3f8adda5", "score": "0.63141215", "text": "public void doDiscoverDevices() throws BluetoothStateException {\r\n Log.debug(\"Starting Bluetooth device discovery\");\r\n\r\n // create/get a local device and discovery agent\r\n LocalDevice localDevice = LocalDevice.getLocalDevice();\r\n discoveryAgent = localDevice.getDiscoveryAgent();\r\n\r\n // place the device in inquiry mode\r\n discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);\r\n }", "title": "" }, { "docid": "391c78822550e8475379f227a288ab9a", "score": "0.6252273", "text": "private void doDiscovery()\n\t{\n\t\tif (mBtAdapter.isDiscovering())\n\t\t{\n\t\t\tmBtAdapter.cancelDiscovery();\n\t\t}\n\t\thasDevices = false;\n\t\tif(!mBtAdapter.isEnabled())\n\t\t\tmBtAdapter.enable();\n\t\t// Request discover from BluetoothAdapter \n\t\tnew Thread(enableBTAdapterThd).start();\n\t\tmyToast = Toast.makeText(mContext, R.string.searching_bt, Toast.LENGTH_LONG);\n\t\tmyToast.show();\n\t\t \n\t}", "title": "" }, { "docid": "acf2a0342d6e6e76037885cbf9ec4053", "score": "0.62162805", "text": "private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }\n }", "title": "" }, { "docid": "acf2a0342d6e6e76037885cbf9ec4053", "score": "0.62162805", "text": "private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }\n }", "title": "" }, { "docid": "eeacbcc0bcec39c571a078a974c80519", "score": "0.6192311", "text": "private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n context.startActivity(discoverableIntent);\n }\n }", "title": "" }, { "docid": "670ae72f7065faeecbb4f24a0d35e20d", "score": "0.6189777", "text": "public void discoverDevices() throws IOException {\n LocalDevice localDevice = LocalDevice.getLocalDevice();\n System.out.println(\"Address: \"+localDevice.getBluetoothAddress());\n System.out.println(\"Name: \"+localDevice.getFriendlyName());\n \n //find devices\n DiscoveryAgent agent = localDevice.getDiscoveryAgent();\n \n System.out.println(\"Starting device inquiry...\");\n agent.startInquiry(DiscoveryAgent.GIAC, listener);\n \n try {\n synchronized(lock){\n lock.wait();\n }\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n \n System.out.println(\"Device Inquiry Completed. \");\n \n //print all devices in vecDevices\n// if(TopologyManager.INSTANCE.getBTDevicesFromCache().size() <= 0){\n// System.out.println(\"No Devices Found .\");\n// } else{\n// //print bluetooth device addresses and names in the format [ No. address (name) ]\n// System.out.println(\"Bluetooth Devices: \");\n// int i = 0;\n// for (RemoteDevice device : TopologyManager.INSTANCE.getBTDevicesFromCache()) {\n// System.out.println(++i + \". \"+device.getBluetoothAddress()+\" (\"+device.getFriendlyName(true)+\")\");\n// }\n// }\n }", "title": "" }, { "docid": "25143ed187021260b6ac10894a2e148f", "score": "0.6115277", "text": "private void doDiscovery() {\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }", "title": "" }, { "docid": "0cd97c37288a8638ddacab0c55fed727", "score": "0.6097042", "text": "private void doDiscovery() {\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }", "title": "" }, { "docid": "56979f341d1e83304ee14f2e92c3bc55", "score": "0.6095244", "text": "public void setupBLE(){\n\n ScanFilter beaconFilter = new ScanFilter.Builder()\n .setManufacturerData(Constants.UCLA_manID, Constants.UCLA_manufac_data, Constants.Beacon_Mask)\n .build();\n\n filters = new ArrayList<ScanFilter>();\n filters.add(beaconFilter);\n\n settings = new ScanSettings.Builder()\n .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)\n .build();\n\n mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner();\n\n /* - 10% Duty Cycle - T = 2 second */\n // DutyCycle(200,1800);\nstartBLEscan();\n // DutyCycle(2000,0);\n /* - 30% Duty Cycle - T = 2 second */\n // DutyCycle(600,1400);\n\n}", "title": "" }, { "docid": "c00cbaf60e6cbd5d3546208c50a76bf8", "score": "0.60097826", "text": "private void doDiscovery() {\n\n // Indicate scanning in the title\n setProgressBarIndeterminateVisibility(true);\n\n // If we&#39;re already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }", "title": "" }, { "docid": "e9b44a68519121816dfedb26b79a6f1e", "score": "0.5980799", "text": "private void startDiscovery() {\n // Initialize new device list\n this.mNewDevicesArrayAdapter.clear();\n this.mNewDevicesArrayAdapter.notifyDataSetChanged();\n\n // Indicate scanning in the title\n this.setProgressBarIndeterminateVisibility(true);\n this.setTitle(R.string.scanning);\n\n // Hide scan button until discovery is done\n Button scanButton = (Button) findViewById(R.id.button_scan);\n scanButton.setVisibility(View.GONE);\n\n // Request discover from BluetoothAdapter\n this.mBluetoothAdapter.startDiscovery();\n }", "title": "" }, { "docid": "c868155aae518dae5814d2939e055a87", "score": "0.59277934", "text": "private void setupBluetooth(){\r\n\t\tBluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\r\n\t\tif(adapter != null && adapter.isEnabled()){\r\n\t\t\t\r\n\t\t\tLog.d(TAG, \"bluetooth enabled, starting discovery\");\r\n\t\t\tif(adapter.isDiscovering()){\r\n\t\t\t\tadapter.cancelDiscovery();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tadapter.startDiscovery();\r\n\r\n\t Intent intent = new Intent(this, RemoteControlActivity.class);\r\n\t intent.putExtra(EXTRA_CONNECTION_TYPE, EXTRA_BLUETOOTH);\r\n\t startActivityForResult(intent, 0);\r\n\t\t\t\r\n\t\t} else if(adapter != null && !adapter.isEnabled()){\r\n\t\t\t\r\n\t\t\tstartActivityForResult(new Intent(\r\n\t\t\t\t\tBluetoothAdapter.ACTION_REQUEST_ENABLE),BLUETOOTH_CODE);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tinform(\"no bluetooth found on this device\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d1edbaff00ab0651e254a700dcc90eaa", "score": "0.59080607", "text": "private void startScan() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n List<ScanFilter> scanFilters = new ArrayList<ScanFilter>(1);\n try {\n Timber.d(\"UUID \" + UUIDUtils.getServiceUUID());\n ScanFilter filter = new ScanFilter.Builder().setServiceUuid(\n UUIDUtils.getParcelServiceUUID()).build();\n scanFilters.add(filter);\n } catch (NullPointerException e) { /*if setBleUUIDs has not been called, UUID in preferences may be null and in that case,\n * this throws an exception specifying that setBleUUIDs has to be called */\n /* throw new IllegalArgumentException(\"\\\"Communicator may not have been initialized with UUIDS.\\n\"\n + \"Call ICommunicator.setBleUUIDs(String serviceUUID,String notifyUUID,String readWriteUUID)\");*/\n e.printStackTrace();\n Timber.d(\"UUIDs are null so scanning for any devices \" + (mBluetoothAdapter == null));\n mBluetoothAdapter.getBluetoothLeScanner().startScan(mBluetoothScanCallback);\n }\n ScanSettings scanSettings = new ScanSettings.Builder().setScanMode(\n ScanSettings.SCAN_MODE_BALANCED).build();\n try {\n mBluetoothAdapter.getBluetoothLeScanner().startScan(scanFilters, scanSettings, mBluetoothScanCallback);\n } catch (NullPointerException e) {\n mConnectionListener.onRequestEnableBluetooth();\n }\n\n\n } else { // for devices running android lower than Lollipop\n try {\n mBluetoothAdapter.startLeScan(mBluetoothScanCallback);\n } catch (NullPointerException e) {\n Timber.d(\"BluetoothAdapter is null\");\n mConnectionListener.onRequestEnableBluetooth();\n }\n }\n Timber.d(\"scan started\");\n isScanning = true;\n }", "title": "" }, { "docid": "2f57a2b150960316d057a7ef98fc4faa", "score": "0.5867418", "text": "@Override\n public void run() {\n try {\n BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n for (String macAddress : MAC_ADDRESSES) {\n BluetoothDevice bluetoothDevice = bluetoothAdapter.getRemoteDevice(macAddress);\n BluetoothSocket bluetoothSocket = bluetoothDevice.createInsecureRfcommSocketToServiceRecord(uuid);\n bluetoothSocket.connect();\n sockets.add(bluetoothSocket);\n Log.d(TAG, \"Connected to glove: \" + macAddress);\n }\n sendMessage(MSG_BLUETOOTH_CONNECTED);\n } catch (Exception e) {\n Log.e(TAG, \"Unable to connect to glove\", e);\n sendMessage(MSG_BLUETOOTH_FAILED);\n }\n //*/\n }", "title": "" }, { "docid": "26fa7a5c1b064f4446b102902c16ce97", "score": "0.5856818", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n if (liteBluetooth == null) {\n liteBluetooth = new LiteBluetooth(this);\n }\n\n final BluetoothAdapter.LeScanCallback callback = new BluetoothAdapter.LeScanCallback() {\n @Override\n public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) {\n\n }\n };\n liteBluetooth.startScan(callback);\n HandlerUtil.runOnUiThreadDelay(new Runnable() {\n @Override\n public void run() {\n liteBluetooth.stopScan(callback);\n }\n }, 30000);\n\n liteBluetooth.startScan(new PeriodScanCallback(30000) {\n @Override\n public void onScanTimeout() {\n\n }\n\n @Override\n public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) {\n\n }\n });\n\n liteBluetooth.startScan(new PeriodMacScanCallback(\"00:00:00:AA:AA:AA\", 30000) {\n @Override\n public void onDeviceFound(BluetoothDevice device, int rssi, byte[] scanRecord) {\n\n }\n\n @Override\n public void onScanTimeout() {\n\n }\n });\n\n ConnectListener connectListener = new ConnectListener() {\n\n @Override\n public void onStateChanged(ConnectState state) {\n\n }\n\n @Override\n public void onFailed(ConnectError error) {\n\n }\n\n @Override\n public void onServicesDiscovered(BluetoothGatt gatt) {\n bluetoothHelper = new BluetoothHelper(bluetoothGatt);\n }\n\n @Override\n public void onCharacteristicWrite(BluetoothGatt gatt,\n BluetoothGattCharacteristic characteristic,\n int status) {\n\n }\n\n @Override\n public void onCharacteristicChanged(BluetoothGatt gatt,\n BluetoothGattCharacteristic characteristic) {\n\n }\n };\n // mac和服务uuid纯属测试,测试时请替换真实参数。\n liteBluetooth.connect(\"00:00:00:AA:AA:AA\", false, connectListener);\n\n\n }", "title": "" }, { "docid": "4370f5ac6865144c8f727dc04f4f1da0", "score": "0.58539754", "text": "public void discoverable(String name) {\n if (btAdapter != null) {\n checkBtPermissions();\n btAdapter.setName(name);\n Intent discover = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discover.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n this.activity.startActivity(discover);\n Toast.makeText(this.context, \"Device is discoverable.\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this.context, \"Had an error here.\", Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "663a86fe926fcc0794dc5720d42ce717", "score": "0.58345693", "text": "private void init() {\n BluetoothManager manager = (BluetoothManager) getApplicationContext().getSystemService(\n Context.BLUETOOTH_SERVICE);\n btAdapter = manager.getAdapter();\n Random random = new Random();\n byte[] dname = new byte[6];\n random.nextBytes(dname);\n btAdapter.setName(new String(dname));\n if (btAdapter == null) {\n showFinishingAlertDialog(\"Bluetooth Error\", \"Bluetooth not detected on device\");\n } else if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n this.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BLUETOOTH);\n } else if (!btAdapter.isMultipleAdvertisementSupported()) {\n showFinishingAlertDialog(\"Not supported\", \"BLE advertising not supported on this device\");\n } else {\n if (Build.VERSION.SDK_INT >= 21) {\n bluetoothLeScanner = btAdapter.getBluetoothLeScanner();\n settings = new ScanSettings.Builder()\n .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)\n .build();\n filters = new ArrayList<ScanFilter>();\n //filters.add(new ScanFilter.Builder().setServiceUuid(SERVICE_UUID,MASK).build());\n byte[] test = new byte[24];\n byte[] mask = new byte [24];\n for (int i = 0; i < 24; i++){\n test[i] = (byte)1;\n mask[i] = (byte)0;\n }\n filters.add(new ScanFilter.Builder().setServiceData(SERVICE_UUID,test,mask).build());\n }\n adv = btAdapter.getBluetoothLeAdvertiser();\n advertiseCallback = createAdvertiseCallback();\n Random rd = new Random();\n id = new byte[10];\n rd.nextBytes(id);\n byte z = (byte)0;\n for (int i = 0; i < 10; i++){\n zero[i] = z;\n }\n buildUi();\n }\n }", "title": "" }, { "docid": "8f56901da621a5f2cf8c8cab140ebc36", "score": "0.5787901", "text": "public BeaconScan(){\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (mBluetoothAdapter!= null && !mBluetoothAdapter.isEnabled())\n mBluetoothAdapter.enable();\n\n\n }", "title": "" }, { "docid": "db2e501286f404ab0fd0f848de2b9d3b", "score": "0.57757384", "text": "private void bindDeviceService() {\n if (!deviceServiceBound) {\n if (DEBUG) {\n Log.d(TAG, \"Binding device service\");\n\n }\n // MAKE US DISCOVERABLE\n Intent discoverableIntent = new\n Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 0);\n startActivityForResult(discoverableIntent, REQUEST_ENABLE_DISCOVERY);\n }\n }", "title": "" }, { "docid": "3248c4424350428a112a8b88872935ba", "score": "0.5764336", "text": "public void onDiscovery(List<BluetoothDevice> discoveredDevices, HashMap<BluetoothDevice, List<UUID>> discoveredServices);", "title": "" }, { "docid": "f997ec25e384a9667b7de4fde3bc0c53", "score": "0.5698118", "text": "private void setUpBluetooth() {\n final BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (!mBluetoothAdapter.isEnabled()) { //Ask to enable bluetooth if it's not\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() < 1) {\n /*myText.setText(\"No Devices\");\n setContentView(myText);*/\n return;\n }\n BluetoothDevice clicker = null;\n for (BluetoothDevice bd : pairedDevices) { //Check list of devices for the clicker\n if (bd.getBluetoothClass().getMajorDeviceClass() == BluetoothClass.Device.Major.PERIPHERAL\n && bd.getName().equals(\"POP Multimedia\"))\n clicker = bd;\n }\n mBluetoothAdapter.cancelDiscovery();\n }", "title": "" }, { "docid": "11f0d83f09d7a65e55ee048a7a68367b", "score": "0.5683877", "text": "void findBT() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n /*\n if (mBluetoothAdapter == null) {\n myLabel.setText(\"No bluetooth adapter available\");\n }\n */\n assert mBluetoothAdapter != null;\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBluetooth, 0);\n }\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().equals(\"Glucometer\")) {\n mmDevice = device;\n break;\n }\n }\n }\n // myLabel.setText(\"Bluetooth Device Found\");\n }", "title": "" }, { "docid": "7ae61bdff706916ae2f0b6d4c2473e8b", "score": "0.56555444", "text": "public void doDiscovery(View _view)\n\t{\n\t\tif(DEBUG) Log.d(TAG, \"doDiscovery()\");\n\n\t\tb_device_list_scan.setText(\"Cancel scanning\");\n\t\t\n\t\t// Prevent phones without Bluetooth from using this application\n\t\tif(!checkBlueToothState( ))\n\t\t{\n\t\t\tfinish( );\n\t\t\treturn;\n\t\t}\n\n\t\t// Indicate scanning in the title\n\t\tsetProgressBarIndeterminateVisibility(true);\n\t\tsetTitle(R.string.scanning);\n\n\t\t// If we're already discovering, stop it\n\t\tif(mBtAdapter.isDiscovering( ))\n\t\t{\n\t\t\tmBtAdapter.cancelDiscovery( );\n\t\t\t// Reset the button\n\t\t\tb_device_list_scan.setText(R.string.button_scan);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Turn on sub-title for new devices\n\t\t\tfindViewById(R.id.device_list_tv_new_devices).setVisibility(View.VISIBLE);\n\n\t\t\tdevPairedList.clear( );\n\t\t\tdevPairedListAdapter.notifyDataSetChanged( );\n\n\t\t\t// Show already paired devices in the upper list\n\t\t\tSet<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices( );\n\t\t\tif(pairedDevices.size( ) > 0)\n\t\t\t{\n\t\t\t\tfindViewById(R.id.device_list_tv_paired_devices).setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : pairedDevices)\n\t\t\t\t{\n\t\t\t\t\tdevPairedList.add(new SHDevice(device.getName( ), device.getAddress( )));\n\t\t\t\t}\n\t\t\t\t// Tell the list adapter that its data has changed so it would\n\t\t\t\t// update itself\n\t\t\t\tdevPairedListAdapter.notifyDataSetChanged( );\n\t\t\t}\n\n\t\t\tdevAvailableList.clear( );\n\t\t\tdevAvailableListAdapter.notifyDataSetChanged( );\n\n\t\t\t// Request discover from BluetoothAdapter\n\t\t\tmBtAdapter.startDiscovery( );\n\t\t}\n\t}", "title": "" }, { "docid": "760a3a263271a779108be39c1c5bd266", "score": "0.5653813", "text": "public void btnDiscover(View view) {\r\n Log.d(TAG, \"btnDiscover: Looking for unpaired devices.\");\r\n\r\n if(mBluetoothAdapter.isDiscovering()){\r\n mBluetoothAdapter.cancelDiscovery();\r\n Log.d(TAG, \"btnDiscover: Canceling discovery.\");\r\n\r\n //check BT permissions in manifest\r\n checkBTPermissions();\r\n mBluetoothAdapter.startDiscovery();\r\n }\r\n if(!mBluetoothAdapter.isDiscovering()){\r\n\r\n //check BT permissions in manifest\r\n checkBTPermissions();\r\n mBluetoothAdapter.startDiscovery();\r\n }\r\n }", "title": "" }, { "docid": "9adb5e9f0ac8f54435509f97d8549c5d", "score": "0.56294686", "text": "private void initData() {\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.registerReceiver(mReceiver, filter);\n\n // Register for broadcasts when discovery has finished\n filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n this.registerReceiver(mReceiver, filter);\n mBtAdapter=BluetoothAdapter.getDefaultAdapter();\n\n\n adapter.register(BleDevice.class, new BleDeviceAdapter());\n rcOldblue.setLayoutManager(new LinearLayoutManager(this));\n rcOldblue.setAdapter(adapter);\n adapter.setItems(items);\n\n Set<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices();\n // If there are paired devices, add each one to the ArrayAdapter\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n items.add(new BleDevice(device));\n }\n adapter.notifyDataSetChanged();\n }\n }", "title": "" }, { "docid": "2c63be72368e8812914b32872d888f35", "score": "0.5617506", "text": "@Override\r\n\tpublic void doBluetoothConnection() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e21f633f2062aaea01f36a953d55b039", "score": "0.55742866", "text": "private void getBluetoothAdapterAndLeScanner() {\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBTA = bluetoothManager.getAdapter();\n\n mScanning = false;\n }", "title": "" }, { "docid": "8d2a9bba12c2ad296d70b28b6a52debb", "score": "0.55623007", "text": "public void startDiscovery() {\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n \n mLoadingLinearLayout.setVisibility(View.VISIBLE);\n\t\tmConnectionFoundImageView.setVisibility(View.VISIBLE);\n\t\tmEmptyTextView.setVisibility(View.GONE);\n\t}", "title": "" }, { "docid": "5ed3cdc21129b00aa826a4d2f548a15f", "score": "0.5557979", "text": "@Override\n public void onBeaconServiceConnect() {\n try {\n beaconManager.removeAllRangeNotifiers();\n beaconManager.addRangeNotifier(beaconCB);\n beaconManager.startRangingBeaconsInRegion(new Region(targetUUID, Identifier.parse(targetUUID), null, null));\n beaconManager.startRangingBeaconsInRegion(new Region(gateUUID, Identifier.parse(gateUUID),null,null));\n }\n catch (Exception e){\n e.printStackTrace();\n stop();\n }\n }", "title": "" }, { "docid": "afcfbad81c0b9d5c5419c613ce596570", "score": "0.5550748", "text": "public void startScanning() {\n if (!this.bluetoothAdapter.isEnabled()) {\n startActivityForResult(new Intent(\"android.bluetooth.adapter.action.REQUEST_ENABLE\"), 1);\n }\n this.leDeviceListAdapter = new LeDeviceListAdapter();\n setListAdapter(this.leDeviceListAdapter);\n if ((VERSION.SDK_INT >= 23 ? ContextCompat.checkSelfPermission(this, \"android.permission.ACCESS_COARSE_LOCATION\") : 0) == 0) {\n scanLeDevice(true);\n } else {\n askForLocationPermission();\n }\n }", "title": "" }, { "docid": "cf4751e8f8f63831bbd1089ce5f9595f", "score": "0.5537034", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if(BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())){\n text3.setText(\"Discovering...\");\n }\n\n //Broadcast Action: Remote device discovered.\n //Sent when a remote device is found during discovery.\n if(BluetoothDevice.ACTION_FOUND.equals(intent.getAction())){\n //Retrieve extended data from the intent\n // Get the BluetoothDevice object from the Intent\n BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n if (btList.indexOf(device.getName() + \"\\n\" + device.getAddress()) == -1) {\n // Add the name and address to an array adapter to\n // show in a ListView\n btList.add(device.getName() + \"\\n\" + device.getAddress());\n devices.add(device);\n }\n }\n\n\n // finish the discovery\n if(BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(intent.getAction())){\n text3.setText(\"Discovery finished!\");\n // set the click event to list items\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n try {\n Method method = devices.get(i).getClass().getMethod(\"createBond\", (Class[]) null);\n method.invoke(devices.get(i), (Object[]) null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }\n\n // Broadcast Action: Indicates a change in the bond state of a remote device.\n // For example, if a device is bonded (paired).\n if(BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(intent.getAction())){\n BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n final int state = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.ERROR);\n final int prevState = intent.getIntExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.ERROR);\n\n // BOND_BONDED:\n if (state == BluetoothDevice.BOND_BONDED && prevState == BluetoothDevice.BOND_BONDING) {\n Toast.makeText(getApplicationContext(),\"Paired\",Toast.LENGTH_SHORT).show();\n ConnectThread ct = new ConnectThread(device);\n ct.start();\n\n } else if (state == BluetoothDevice.BOND_NONE && prevState == BluetoothDevice.BOND_BONDED){\n Toast.makeText(getApplicationContext(),\"UnPaired\",Toast.LENGTH_SHORT).show();\n\n }\n\n }\n\n listView.setAdapter(new ArrayAdapter<>(getApplicationContext(),\n R.layout.text_view, R.id.text2, btList));\n }", "title": "" }, { "docid": "e21864257dc0d04337581de297845a58", "score": "0.55330116", "text": "private static Set<BluetoothDevice> getBondedDevices (BluetoothAdapter adapter) {\n Set<BluetoothDevice> results = adapter.getBondedDevices();\n if (results == null) {\n results = new HashSet<BluetoothDevice>();\n }\n return results;\n }", "title": "" }, { "docid": "db26d8cecfa33ae0c52cffd759f05952", "score": "0.55220026", "text": "public void discoverServices() {\n if (Preconditions.checkNotNull(mBluetoothGatt)) {\n mBluetoothGatt.discoverServices();\n }\n }", "title": "" }, { "docid": "549f67da1ef5adbbaa036aeb2b32d78d", "score": "0.55126166", "text": "public List<BluetoothDeviceSummary> getBondedDevices() {\n // TODO: add support for multiple simultaneous devices (for now the last one is returned)\n List<BluetoothDeviceSummary> bleDevices = new ArrayList<>();\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(OsswService.this);\n String address = sharedPref.getString(LAST_WATCH_ADDRESS, \"\");\n if (address.isEmpty())\n return bleDevices;\n// String sync = bleService.isConnected() ?\n// getString(R.string.connected) : getString(R.string.disconnected);\n BluetoothDeviceSummary bd = new BluetoothDeviceSummary(\n bleService.getBluetoothDevice().getName(), address, /*sync,*/ 0);\n bleDevices.add(bd);\n return bleDevices;\n }", "title": "" }, { "docid": "703d2d83f6f1bfcc83d105d29d8ea542", "score": "0.5512095", "text": "private void init() {\n _bdList = new ArrayList<>();\n IntentFilter discoveryFilter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.registerReceiver(mReceiver, discoveryFilter);\n IntentFilter foundFilter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n this.registerReceiver(mReceiver, foundFilter);\n mBtAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> bdPairs = mBtAdapter.getBondedDevices();\n for (BluetoothDevice bd : bdPairs) {\n _bdList.add(bd);\n }\n adAdapter = new DeviceAdapter(BlueRatio.this, _bdList);\n lv.setAdapter(adAdapter);\n lv.setFastScrollEnabled(true);\n }", "title": "" }, { "docid": "78a25cf7ff6dddc9904b3c04d0fd5c7c", "score": "0.55070233", "text": "public void onDiscoveryFinished(List<BluetoothDevice> discoveredDevices, HashMap<BluetoothDevice, List<UUID>> discoveredServices);", "title": "" }, { "docid": "4dc0d4d4b794971c5eb7225ee54a2806", "score": "0.5475481", "text": "public void btnEnableDisable_Discoverable(View view) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n\n IntentFilter intentFilter = new IntentFilter(mBluetoothAdapter.ACTION_SCAN_MODE_CHANGED);\n registerReceiver(mBroadcastReceiver2,intentFilter);\n\n }", "title": "" }, { "docid": "94f94e4fca06f0e96d3ef20cef7e4584", "score": "0.5467897", "text": "private void updatePairedDevices() {\n\n BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if(bluetoothAdapter == null){\n //no bluetooth available\n reportStatus(R.string.state_bt_not_available);\n } else {\n //get currently paired devices\n //TODO apply filtering ?\n final ArrayList<BluetoothDevice> pairedDevices = BluetoothUtil.getPairedDevices(WMC_DEVICE_PREFIX);\n\n if (pairedDevices != null && pairedDevices.size() > 0) {\n\n getBluetoothDeviceAdapter().clear();\n getBluetoothDeviceAdapter().addAll(pairedDevices);\n getBluetoothDeviceAdapter().setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n deviceSpinner.setAdapter(getBluetoothDeviceAdapter());\n\n //as in the windows application (Form1.cs line 241) we assume the first of the available devices as being currently selected\n selectedDevice = pairedDevices.get(0);\n\n } else {\n reportStatus(R.string.state_bt_none_available);\n }\n }\n }", "title": "" }, { "docid": "5dcb682a7c2c35f6ed3a53465c719528", "score": "0.5451324", "text": "public void discoverBridge() {\n Log.w(\"@DISCOVERBRIDGE\",\"DISCOVER BRIDGE\");\n mBridgeScannerSubscription = RelayrSdk.getRelayrBleSdk()\n .scan(Arrays.asList(BleDeviceType.WunderbarBRIDG))\n .filter(new Func1<List<BleDevice>, Boolean>() {\n @Override\n public Boolean call(List<BleDevice> bleDevices) {\n for (BleDevice device: bleDevices)\n if (device.getMode() == BleDeviceMode.DIRECT_CONNECTION) {\n // We can stop scanning, since we've found a sensora\n Log.w(\"Found Bridge in DC\", \"\" + device.getAddress());\n foundBridge = true;\n return true;\n }\n mBridgeStartedScanning = false;\n return false;\n }\n })\n .map(new Func1<List<BleDevice>, BleDevice>() {\n @Override\n public BleDevice call(List<BleDevice> bleDevices) {\n for (BleDevice device : bleDevices) {\n if (device.getMode() == BleDeviceMode.DIRECT_CONNECTION)\n return device;\n }\n mBridgeStartedScanning = false;\n return null; // will never happen since it's been filtered out before\n }\n })\n .take(1)\n .subscribeOn(AndroidSchedulers.mainThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<BleDevice>() {\n @Override\n public void onCompleted() {\n mBridgeStartedScanning = false;\n }\n\n @Override\n public void onError(Throwable e) {\n mBridgeStartedScanning = false;\n e.printStackTrace();\n mColorError.setText(R.string.sensor_discovery_error);\n }\n\n @Override\n public void onNext(BleDevice device) {\n // mColorOutput.setText(\"\" + device.getName());\n// if (device.getAddress() == \"C2:A5:6E:8B:68:40\") {\n //Log.w(\"ON NEXT DEVICE\", \"\");\n // mDirectConnectionService.writeDownChannel(new byte[] {0x01,0x03});\n mBridgeDevice = device;\n Log.w(\"Bridge\",\"Found Bridge Device, subscribe on next\");\n //return;\n //}\n }\n });\n }", "title": "" }, { "docid": "a5b4c37ca629edff4656bcea3cad0b41", "score": "0.5439656", "text": "public interface DeviceScanner {\n\n /**\n * Since Bluetooth scanning is asynchronous, the user of this interface must specify\n * a callback for processing a new device.\n */\n interface Callback {\n /**\n * This callback will be called once per device detected\n * @param deviceName the name of the device\n * @param deviceAddress the address of the device\n * @param rssi the rssi value detected at *scan time*. This might not be needed, but\n * it might be useful for selecting the correct device\n */\n void onDeviceFound(String deviceName, String deviceAddress, int rssi);\n }\n\n /**\n * Set a callback that is c\n * @param callback the callback for processing each device found\n */\n void setCallback(Callback callback);\n\n /**\n * For scanning for only registered devices, pass in a list of addresses that are\n * valid. This way, we only invoke the callback for devices we intend to connect to.\n * @param allowedAddresses A list of MAC addresses that are registered to be used\n * for lap counting. Only scan results that are in this list\n * trigger the callback\n */\n void setAddressWhitelist(List<String> allowedAddresses);\n\n /**\n * Call this to start a scan.\n */\n void startScan();\n\n /**\n * Stop the current scan\n */\n void stopScan();\n}", "title": "" }, { "docid": "fc6695ec2e1882679a24de2ed139a650", "score": "0.5419506", "text": "public void ScanBleDev(View view) {\n //clear the list\n BTArrayAdapter.clear();\n\n if(!stBtAdapter.isEnabled())\n {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivity(enableBtIntent);\n }\n\n //start the scan process\n if (stBtAdapter != null) {\n stBtAdapter.startLeScan(mLeScanCallback);\n }\n }", "title": "" }, { "docid": "f81f86a7b31d067617e6a0cf087f9d35", "score": "0.54118997", "text": "private void doDiscovery() {\n\t\tsetProgressBarIndeterminateVisibility(true);\n\t\tsetTitle(\"scanning\");\n\t\tfindViewById(R.id.textView2).setVisibility(View.VISIBLE);\n\t\tif(mBtAdapter.isDiscovering())\n\t\t{\n\t\t\tmBtAdapter.cancelDiscovery();\n\t\t}\n\t\tmBtAdapter.startDiscovery();\n\t}", "title": "" }, { "docid": "c751431a3cfff52a905b169fcf0fc461", "score": "0.5398753", "text": "public BluetoothAdapter DeviceScanActivity_ini () {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\r\n Toast.makeText(this, com.example.android.bluetoothlegatt.R.string.ble_not_supported, Toast.LENGTH_SHORT).show();\r\n return null;\r\n }\r\n\r\n final BluetoothManager bluetoothManager =\r\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\r\n mBluetoothAdapter = bluetoothManager.getAdapter();\r\n\r\n if (!mBluetoothAdapter.isEnabled()) {\r\n if (!mBluetoothAdapter.isEnabled()) {\r\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n }\r\n }\r\n\r\n // Initializes list view adapter.\r\n refreshLeDeviceList();\r\n return mBluetoothAdapter;\r\n }", "title": "" }, { "docid": "7a8485871db438ab6384ce625639cef7", "score": "0.5394711", "text": "private void BLE_management()\n {\n // Use this check to determine whether BLE is supported on the device. Then you can\n // selectively disable BLE-related features.\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this,\"BLE NOT SUPPORTED\", Toast.LENGTH_SHORT).show();\n finish();\n }\n // Initializes a Bluetooth adapter. For API level 18 and above, get a reference to\n // BluetoothAdapter through BluetoothManager.\n bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n\n // Checks if Bluetooth is supported on the device.\n if (mBluetoothAdapter == null) {\n Toast.makeText(this, \"Bluetooth Not Supported\", Toast.LENGTH_SHORT).show();\n finish();\n return;\n }\n }", "title": "" }, { "docid": "61fa8ae700ee301d1220406e0e551f01", "score": "0.53514993", "text": "public void discoverCandidates() {\n }", "title": "" }, { "docid": "72883daeedc6524665c257b1c1f9bd13", "score": "0.5349351", "text": "void onDeviceFound(BluetoothDevice device);", "title": "" }, { "docid": "23be4f972c4e3a337c386465c7174243", "score": "0.5336874", "text": "@Override public void onLeScan(BluetoothDevice arg0, int arg1, byte[] arg2) {\n if (!mMacSet.contains(arg0.getAddress())) {//避免一次搜索, 同一个设备多次回调\n LogUtils.d(\"bleManager\", \"found device :\" + arg0.getAddress() + \" \" +arg0.getName() );\n mMacSet.add(arg0.getAddress());\n foundDevice(arg0, arg1);\n }\n }", "title": "" }, { "docid": "d6a9f016e38549215c597e78c5e93e32", "score": "0.5333768", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == ClientActivity.RESULT_OK && requestCode == REQUEST_ENABLE_BT) {\n toastBluetoothMessage(\"Enable Bluetooth Successfully!\");\n final ListView devicesListView = (ListView) findViewById(R.id.listview);\n final List<String> deviceDetails = new ArrayList<String>();\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if(pairedDevices.size() > 0) {\n\n for(BluetoothDevice device : pairedDevices) {\n deviceDetails.add(device.getName() + \"\\n\" + device.getAddress());\n if(device.getName().equalsIgnoreCase(\"DELL-LATITUDE\")){\n requiredMacAddress = device.getAddress();\n }\n }\n }\n else {\n toastBluetoothMessage(\"size not greater than 0\"); // for debugging remove it later\n }\n final ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1, deviceDetails);\n devicesListView.setAdapter(adapter);\n\n //broadcast receiver part not working\n // Register the BroadcastReceiver\n// IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n// registerReceiver(mReceiver, filter); // Don't forget to unregister during onDestroy\n\n // this part works\n// Intent discoverableIntent = new\n// Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n// discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n// startActivity(discoverableIntent);\n\n ConnectThread connectionObject = new ConnectThread(mBluetoothAdapter.getRemoteDevice(requiredMacAddress));\n connectionObject.run();\n }\n // this part not being executed\n if(resultCode == ClientActivity.RESULT_OK && requestCode == 300){\n toastBluetoothMessage(\"Enabled phone discovery!\");\n }\n }", "title": "" }, { "docid": "fbc4ad7bccbfcb97ea2d4d2b177109a9", "score": "0.53171533", "text": "public synchronized void startScan() {\n if(mScanCb != null){return;}\n\n final Handler h = new Handler();\n mBtnScan.setEnabled(false);\n updateScanningButton(false);\n // Prune disconnected meters\n List<MooshimeterDevice> remove = new ArrayList<MooshimeterDevice>();\n for(MooshimeterDevice m : mMeterDict.values()) {\n if( m.isDisconnected() ) {\n remove.add(m);\n }\n }\n for(MooshimeterDevice m : remove) {\n for(int i = 0; i < mDeviceScrollView.getChildCount(); i++) {\n ViewGroup vg = (ViewGroup) mDeviceScrollView.getChildAt(i);\n if(vg.getTag() == m) {\n mDeviceScrollView.removeView(vg);\n break;\n }\n }\n mMeterDict.remove(m.getAddress());\n }\n refreshAllMeterTiles();\n\n final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n mScanCb = new MainScanCallback();\n\n if( !bluetoothAdapter.startLeScan(mScanCb) ) {\n // Starting the scan failed!\n Log.e(TAG,\"Failed to start BLE Scan\");\n setError(\"Failed to start scan\");\n }\n h.postDelayed(new Runnable() {\n @Override\n public void run() {\n stopScan();\n }\n }, 5000);\n }", "title": "" }, { "docid": "0d238617c116dc2f0444e3b9c9e92541", "score": "0.531287", "text": "private void discoverWithZebraSDK(final PluginCall call){\n class BTDiscoveryHandler implements DiscoveryHandler {\n List<JSObject> printers = new LinkedList<JSObject>();\n PluginCall call;\n\n public BTDiscoveryHandler(PluginCall call) { this.call = call; }\n\n public void discoveryError(String message)\n {\n call.error(message);\n }\n\n public void discoveryFinished()\n {\n JSObject ret = new JSObject();\n ret.put(\"printers\", printers);\n call.success(ret);\n }\n\n @Override\n public void foundPrinter(DiscoveredPrinter printer){\n DiscoveredPrinterBluetooth pr = (DiscoveredPrinterBluetooth) printer;\n try\n {\n Map<String,String> map = pr.getDiscoveryDataMap();\n\n for (String settingsKey : map.keySet()) {\n System.out.println(\"Key: \" + settingsKey + \" Value: \" + printer.getDiscoveryDataMap().get(settingsKey));\n }\n\n String name = pr.friendlyName;\n String mac = pr.address;\n JSObject p = new JSObject();\n p.put(\"name\",name);\n p.put(\"address\", mac);\n for (String settingsKey : map.keySet()) {\n System.out.println(\"Key: \" + settingsKey + \" Value: \" + map.get(settingsKey));\n p.put(settingsKey,map.get(settingsKey));\n }\n printers.add(p);\n } catch (Exception e) {\n Log.v(\"EMO\", \"Discovery Error - Error...\", e);\n }\n }\n }\n\n final Context context = this.getContext();\n new Thread(new Runnable() {\n\n public void run() {\n try {\n BluetoothDiscoverer.findPrinters(context, new BTDiscoveryHandler(call));\n } catch (Exception e) {\n call.error(e.getMessage());\n }\n }\n }).start();\n }", "title": "" }, { "docid": "52db9b161a53960bf03a9020af553b16", "score": "0.5310386", "text": "private void startScan(){\n setProgressBarIndeterminateVisibility(true);\n if(!mBluetoothAdapter.startDiscovery()){\n txtView.setText(\"Erro ao iniciar a busca.\");\n setProgressBarIndeterminateVisibility(false);\n }\n }", "title": "" }, { "docid": "b5955136650fb7eb3fc8d747f482f80d", "score": "0.52943575", "text": "private void playSearch() {\n IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n context.registerReceiver(mReceiver, filter);\n // Register for broadcasts when discovery has finished\n filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n context.registerReceiver(mReceiver, filter);\n // 开始扫描设备\n mBluetoothAdapter.startDiscovery();\n }", "title": "" }, { "docid": "4db55ffe5f2e3ba8b5e6c4cbadf4e332", "score": "0.52877396", "text": "public void startListening(){\n beaconManager.connect(new BeaconManager.ServiceReadyCallback() {\n @Override\n public void onServiceReady() {\n try {\n beaconManager.startRanging(ALL_ESTIMOTE_BEACONS);\n } catch (RemoteException e) {\n Log.e(TAG, \"Cannot start ranging\", e);\n }\n }\n });\n }", "title": "" }, { "docid": "12c87453b11b5b7d8d5711e905fee488", "score": "0.52558273", "text": "private void configureBluetooth() {\n\t\tbluetooth = BluetoothAdapter.getDefaultAdapter();\n\t}", "title": "" }, { "docid": "cd0792b1fc328459efbf97b3467f3778", "score": "0.52317685", "text": "public void startScanning(final ScanResultsConsumer scan_results_consumer, long stop_after_ms) {\n //check if I'm not already scanning\n if (scanning) {\n Log.d(Constants.TAG, \"Already scanning so ignoring startScanning request\");\n return;\n }\n if (scanner == null) {\n //create a scanner if I don't have one(??)\n scanner = bluetooth_adapter.getBluetoothLeScanner();\n Log.d(Constants.TAG, \"Created BluetoothScanner object\");\n }\n //start a countdown to stop the scan\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {if (scanning) {\n Log.d(Constants.TAG, \"Stopping scanning\");\n scanner.stopScan(scan_callback);\n setScanning(false);\n } }\n\n //input - number of milisecond before scanning stops\n }, stop_after_ms);\n this.scan_results_consumer = scan_results_consumer;\n Log.d(Constants.TAG,\"Scanning\");\n //list of filters\n List<ScanFilter> filters;\n filters = new ArrayList<ScanFilter>();\n //filter uuid\n// Filters and Settings\n //ScanFilter filter = new ScanFilter.Builder().setServiceUuid(ParcelUuid.fromString(monitored_device)).build();\n //filters.add(filter);\n // Scanning Started\n //low latency = get packages quickly !! not battery optimized\n ScanSettings settings = new ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build();\n setScanning(true);\n //start scanning\n scanner.startScan(filters, settings, scan_callback);\n }", "title": "" }, { "docid": "1246d8a23da724b4a1344fbdcf5b7bb3", "score": "0.5230538", "text": "public void scanLeDevice(final boolean enable) {\n if (enable) {\n // Stops scanning after a pre-defined scan period.\n mHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n mScanning = false;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n mScanner.stopScan(scanCallback);\n } else {\n mBluetoothAdapter.stopLeScan(mLeScanCallback);\n }\n if (bleLisenter != null) {\n bleLisenter.onStop();\n }\n }\n }, BleConfig.SCAN_PERIOD);\n\n mScanning = true;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n\n scanCallback = new ScanCallback() {\n @Override\n public void onScanResult(int callbackType, ScanResult result) {\n super.onScanResult(callbackType, result);\n Log.e(\"扫描onScanResult\", \"callbackType++\" + callbackType + \"++result++\" + result);\n BluetoothDevice device = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n device = result.getDevice();\n\n if (!contains(device)) {\n T bleDevice = (T) new BleDevice(device);\n if (bleLisenter != null) {\n bleLisenter.onLeScan(bleDevice, result.getRssi(), result.getScanRecord().getBytes());\n }\n mScanDevices.add(bleDevice);\n String name = bleDevice.getmBleName();\n if (BleConfig.AUTO_CONNECT) {\n if (!TextUtils.isEmpty(name) && name.startsWith(BleConfig.LENOVOASSISTANT)) {\n scanLeDevice(false);\n connect(bleDevice.getBleAddress());\n }\n }\n }\n\n }\n\n\n }\n\n @Override\n public void onBatchScanResults(List<ScanResult> results) {\n super.onBatchScanResults(results);\n Log.e(\"扫描onBatchScanResults\", \"List<ScanResult>++\" + results.size());\n }\n\n @Override\n public void onScanFailed(int errorCode) {\n super.onScanFailed(errorCode);\n Log.e(\"扫描onScanFailed\", \"errorCode++\" + errorCode);\n }\n };\n\n List<ScanFilter> scanFilters = new ArrayList<>();\n ScanFilter scanFilter = new ScanFilter.Builder().setDeviceName(\"Lnv_200007_8cb9\").build();\n scanFilters.add(scanFilter);\n// mScanner.startScan(scanCallback);\n mScanner.startScan(scanFilters, new ScanSettings.Builder().build(), scanCallback);\n } else {\n mBluetoothAdapter.startLeScan(mLeScanCallback);\n }\n if (bleLisenter != null) {\n bleLisenter.onStart();\n }\n } else {\n mScanning = false;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n mScanner.stopScan(scanCallback);\n } else {\n mBluetoothAdapter.stopLeScan(mLeScanCallback);\n }\n if (bleLisenter != null) {\n bleLisenter.onStop();\n }\n }\n }", "title": "" }, { "docid": "be3a47993ea62f67317964b9fedd65b2", "score": "0.52298707", "text": "private void scanLeDevice() {\n new Thread() {\n\n @Override\n public void run() {\n mBluetoothAdapter.startLeScan(mLeScanCallback);\n\n try {\n Thread.sleep(SCAN_PERIOD);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n mBluetoothAdapter.stopLeScan(mLeScanCallback);\n }\n }.start();\n }", "title": "" }, { "docid": "33a616189e83897857e544535ae6f3a2", "score": "0.52248967", "text": "public void discover();", "title": "" }, { "docid": "aba3defb4960c17e438f37b3123d7912", "score": "0.5224725", "text": "@Override\n public void onBeaconServiceConnect() {\n Log.i(TAG, \"onBeaconServiceConnect\");\n sendBroadcast(BEACON_SERVICE_CONNECT_BROADCAST, null);\n\n setBackgroundScanningSpeeds(BETWEEN_SCAN_PERIOD, SCAN_PERIOD);\n }", "title": "" }, { "docid": "21bc67bbc64dd890d4ca8ac05e1ab54a", "score": "0.52163744", "text": "private void prepareDiscoveryUI() {\n // Initialize array adapters. One for already paired devices and\n // one for newly discovered devices\n this.mBoundDevicesArrayAdapter = new ArrayAdapter<>(this, R.layout\n .template_listview_item_device);\n this.mNewDevicesArrayAdapter = new ArrayAdapter<>(this, R.layout\n .template_listview_item_device);\n\n // Find and set up the ListView for paired devices\n ListView pairedListView = (ListView) findViewById(R.id.paired_devices);\n pairedListView.setAdapter(this.mBoundDevicesArrayAdapter);\n pairedListView.setOnItemClickListener(mPairedDeviceListOnClickListener);\n\n // Find and set up the ListView for newly discovered devices\n ListView newDevicesListView = (ListView) findViewById(R.id.new_devices);\n newDevicesListView.setAdapter(mNewDevicesArrayAdapter);\n newDevicesListView.setOnItemClickListener(mNewDeviceListOnClickListener);\n\n // Register for broadcasts when a device is discovered\n IntentFilter filter = new IntentFilter();\n filter.addAction(BluetoothDevice.ACTION_FOUND);\n filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n this.mBluetoothDeviceDiscoveryReceiver = new BluetoothDeviceDiscoveryReceiver();\n this.registerReceiver(this.mBluetoothDeviceDiscoveryReceiver, filter);\n\n // Get a set of currently paired devices\n Set<BluetoothDevice> pairedDevices = this.mBluetoothAdapter.getBondedDevices();\n\n // If there are paired devices, add each one to the ArrayAdapter\n if (pairedDevices.size() > 0) {\n findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);\n for (BluetoothDevice device : pairedDevices) {\n this.mBoundDevicesArrayAdapter.add(device.getAddress() + \"\\n\" + device.getName());\n }\n } else {\n String noDevices = getResources().getText(R.string.none_paired).toString();\n this.mBoundDevicesArrayAdapter.add(noDevices);\n }\n\n // Turn on sub-titles\n findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);\n findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n Button scanButton = (Button) findViewById(R.id.button_scan);\n scanButton.setOnClickListener(this.mScanButtonOnClickListener);\n\n // If we're already discovering, stop it\n if (this.mBluetoothAdapter.isDiscovering()) {\n this.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n this.startDiscovery();\n }", "title": "" }, { "docid": "484c3f21b9c57f179b248ab059e25de5", "score": "0.52098876", "text": "public void scan(CallbackContext callbackContext){\n mBtAdapter = BluetoothAdapter.getDefaultAdapter();\n mPairedDevices = new JSONArray();\n\n // Get a set of currently paired devices\n Set<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices();\n\n // If there are paired devices, add each one to the ArrayAdapter\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n JSONObject d = new JSONObject();\n\n try{\n d.put(\"name\", device.getName());\n d.put(\"address\", device.getAddress());\n mPairedDevices.put(d);\n } catch (Exception ex) {\n //cry\n }\n }\n } else {\n callbackContext.error(\"No paired devices\");\n }\n\n\n JSONObject json = new JSONObject();\n try {\n json.put(\"devices\", mPairedDevices);\n callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, json));\n } catch (Exception ex){\n callbackContext.error(\"Json error...\");\n }\n }", "title": "" }, { "docid": "2c1b83c1087d78f292cff22d4b0f60cb", "score": "0.5208462", "text": "private void checkBTStatusAndStartRanging() {\n if (!_beaconManager.hasBluetooth()) {\n\n Toast.makeText(this, getString(R.string.error_bluetooth_le_unsupported), Toast.LENGTH_LONG).show();\n\n } else if (!_beaconManager.isBluetoothEnabled()) {\n\n // If Bluetooth is not enabled, let user enable it.\n Toast.makeText(this, getString(R.string.error_bluetooth_not_enabled), Toast.LENGTH_LONG).show();\n\n } else {\n\n connectToService();\n }\n }", "title": "" }, { "docid": "7e37f00cc7546e18c6539136b38657a5", "score": "0.52009445", "text": "private void fillBtDevicesList(BluetoothAdapter bt_adapter) {\n Set<BluetoothDevice> pairedDevices = bt_adapter.getBondedDevices();\n // If there are paired devices\n if (pairedDevices.size() > 0) {\n // Loop through paired devices\n for (BluetoothDevice device : pairedDevices) {\n // Add the name and address to an array adapter to show in a ListView\n myArrayAdapter.add( new BtDeviceDesc(device, true));\n }\n }\n }", "title": "" }, { "docid": "0c25cdb2da716c7fd0e070947dc68b69", "score": "0.5198993", "text": "@Override\n public void run() {\n if (rssi<-65){\n return;\n }\n if (!peripheralMap.containsKey(bluetoothDevice.getAddress())){\n CadencePeripheral peripheral=new CadencePeripheral(bluetoothDevice);\n peripheral.setRssi(rssi);\n peripheralMap.put(bluetoothDevice.getAddress(),peripheral);\n EventBus.getDefault().post(CenterEvent.newEvent());\n }else{\n CadencePeripheral peripheral=peripheralMap.get(bluetoothDevice.getAddress());\n peripheral.setRssi(rssi);\n EventBus.getDefault().post(CenterEvent.rssiEvent(peripheral));\n }\n }", "title": "" }, { "docid": "6f22f7fb99072c2fbe1594ed9606078c", "score": "0.5196814", "text": "@Override\n public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) {\n throw new UnsupportedOperationException(\n \"LE Audio Broadcasts are not connection-oriented.\");\n }", "title": "" }, { "docid": "bef5a4ef9a187e6ff1c67ff488d2c32e", "score": "0.5192741", "text": "public List<DiscoveredBluetoothDevice> getDiscoveredBluetoothDevices()\n\t{\n\t\treturn new ArrayList<>(mDevices);\n\t}", "title": "" }, { "docid": "5e1945af5a9506ec83c371c64d36c56e", "score": "0.5191198", "text": "public String[][] discoverNearbyDeviceNamesAndAddresses ()\r\n \tthrows IOException, SecurityException\r\n {\r\n\t\t// Start discovering devices.\r\n\t\tdoDiscoverDevices();\r\n\t\t\r\n\t\twhile ( getDeviceDiscoveryResult() == BluetoothDeviceDiscovery.INQUIRY_IN_PROGRESS )\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tThread.sleep( 20 );\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e)\r\n\t\t\t{\r\n\t\t\t\t// This thread is being killed, just exit.\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Did it fail?\r\n\t\tif ( getDeviceDiscoveryResult() != BluetoothDeviceDiscovery.INQUIRY_COMPLETED )\r\n\t\t{\r\n\t\t\tthrow new IOException(\"Search for Bluetooth devices failed (code \" + getDeviceDiscoveryResult() + \").\");\r\n\t\t}\r\n\t\t\r\n\t\t// Create a list of the discovered devices.\r\n\t\tVector discoveredDevices = getDiscoveredDevices();\r\n\t\tEnumeration devices = discoveredDevices.elements();\r\n\t\tString[][] ret = new String[discoveredDevices.size()][2];\r\n\t\t\r\n\t\tfor ( int i = 0; devices.hasMoreElements(); i++ )\r\n\t\t{\r\n\t\t\tRemoteDevice device = (RemoteDevice)devices.nextElement();\r\n\r\n\t\t\t// Discover the Bluetooth URL.\r\n\t\t\tString address = device.getBluetoothAddress();\r\n\r\n\t\t\t// Discover the name as will be shown to the user.\r\n\t\t\tString name = null;\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tname = device.getFriendlyName( false );\r\n\t\t\t}\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t\tLog.debug(\"Could not get friendly name for device \" + address, e);\r\n\t\t\t}\r\n\r\n\t\t\tif ( name == null )\r\n\t\t\t{\r\n\t\t\t\tname = address;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Record this device.\r\n\t\t\tString[] val = new String[] { name, address };\r\n\t\t\tret[i] = val;\r\n\t\t}\r\n\t\t\r\n\t\treturn ret;\r\n }", "title": "" }, { "docid": "6ac19611d8f3986a80274ea7d0af03c8", "score": "0.51868105", "text": "public void discoverPeers() {\n\t\tmManager.discoverPeers(mChannel, new WifiP2pManager.ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess() {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(int reason) {\n\t\t\t\tLog.d(TAG, \"Discover peer failure. Reason: \" + reason);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "fb9431b5269bc23e2962cafd45683a7a", "score": "0.51787853", "text": "public boolean scanForNewDevices();", "title": "" }, { "docid": "c65135267a3dd7a4376a08f78720db06", "score": "0.517798", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n btnScanDevice = (Button) findViewById(R.id.btnScan);\n\n progressBar = (ProgressBar) findViewById(R.id.progressBar);\n bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n 100);\n }\n\n\n listDevicesFound = (ListView) findViewById(R.id.listDevices);\n btArrayAdapter = new ArrayAdapter<String>(MainActivity.this, android.R.layout.simple_list_item_1);\n listDevicesFound.setAdapter(btArrayAdapter);\n\n CheckBlueToothState();\n\n btnScanDevice.setOnClickListener(btnScanDeviceOnClickListener);\n\n registerReceiver(ActionFoundReceiver,\n new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\n }", "title": "" }, { "docid": "10da96643984d96d7582d1b681233e0d", "score": "0.51752245", "text": "@Override\n public void onClick(View arg0) {\n btArrayAdapter.clear();\n bluetoothAdapter.startDiscovery();\n progressBar.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "965dc977d7e9f66d7df5e02e89eb2231", "score": "0.51715004", "text": "public void doDiscoverService(RemoteDevice remote)\r\n throws BluetoothStateException {\r\n //\r\n // this large array of integer values will tell JABWT to query\r\n // for all known attributes\r\n // see https://www.bluetooth.org/foundry/assignnumb/document/service_discovery\r\n // section 4.5 for meaning of these IDs\r\n //\r\n // note: you don't have to retrieve all attribute everytime. in fact, you\r\n // can put null for attr and retrieve just the default values. that probably\r\n // good enough for most cases. we list all attributes for demo purpose\r\n //\r\n // note: For Nokia 6230, there is a limit (13) of number of attribute to retrieve\r\n // and this large array will cause error. If you are using Nokia 6230, you should\r\n // reduce this array to 13 elements. Just pick any 13 of them and make sure you pick\r\n // 0x0001 (ServiceClassID) so we can display the profiel name\r\n\r\n /* int[] attr = new int[]{0x0000, 0x0001, 0x0002, 0x0003, 0x0004,\r\n 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D,\r\n 0x0100, 0x0101, 0x0102, 0x0200, 0x0201,\r\n 0x0301, 0x0302, 0x0303, 0x0304, 0x0305, 0x0306, 0x0307, 0x0308, 0x0309,\r\n 0x030A, 0x030B, 0x030C, 0x030D, 0x030E, 0x0310, 0x0311, 0x0312, 0x0313 };\r\n */\r\n int[] attr = new int[] {\r\n 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007,\r\n 0x0008, 0x0009, 0x000A, 0x000B, 0x000C\r\n };\r\n\r\n //\r\n // search for L2CAP services, most services based on L2CAP\r\n //\r\n // note: Rococo simulator required a new instance of Listener for\r\n // every search. not sure if this is also the case in real devices\r\n discoveryAgent.searchServices(attr, // attributes to retrieve from remote device\r\n new UUID[] { new UUID(0x0100) }, // search criteria, 0x0100 = L2CAP\r\n remote, this); // direct discovery response to Listener object\r\n }", "title": "" }, { "docid": "ae4a373cc1b09a27148d2185601f027f", "score": "0.5154757", "text": "public void bluetoothPrint() {\n\t\ttry {\n\t\t\tmBluetoothDeviceDialog = new BluetoothDeviceDialog(this);\n\t \tmBluetoothDeviceDialog.show();\n\t \tmDeviceList = mBluetoothDeviceDialog.getListView();\n\t mDeviceList.setOnItemClickListener(itemClickListener);\n\t mBTService = new BlueToothService(this, handler);\n\t mNewDevicesArrayAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1);\n\t if (!mBTService.IsOpen()) {\n\t\t\t\tmBTService.OpenDevice();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (mBTService.GetScanState() == BlueToothService.STATE_SCANING)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tmNewDevicesArrayAdapter.clear();\n\t\t\tdevices = mBTService.GetBondedDevice();\n\n\t\t\tif (devices.size() > 0) {\n\n\t\t\t\tfor (BluetoothDevice device : devices) {\n\t\t\t\t\tmNewDevicesArrayAdapter.add(device.getName() + \"\\n\"\n\t\t\t\t\t\t\t+ device.getAddress());\n\t\t\t\t}\n\t\t\t}\n\t\t\tmDeviceList.setAdapter(mNewDevicesArrayAdapter);\n\t\t\tmBTService.setOnReceive(new OnReceiveDataHandleEvent() {\n\n\t\t\t\tpublic void OnReceive(BluetoothDevice device) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif (device != null) {\n\t\t\t\t\t\tmNewDevicesArrayAdapter.add(device.getName() + \"\\n\"\n\t\t\t\t\t\t\t\t+ device.getAddress());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.what = 1;\n\t\t\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmBTService.ScanDevice();\n\t\t\t\t}\n\t\t\t}.start();\n\t\t} catch (NullPointerException e) {\n\t\t\t// TODO: handle exception\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "bdf867489b581afaf806ff5b8e41e670", "score": "0.515413", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.devicelist);\n\t\tsetResult(Activity.RESULT_CANCELED);\n\t\tButton scanbutton=(Button)findViewById(R.id.button_scan);\n\t\tscanbutton.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdoDiscovery();\n\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tmPairedDevicesArrayAdapter=new ArrayAdapter<String>(this , R.layout.devicename);\n\t\tmNewDevicesArrayAdapter=new ArrayAdapter<String>(this, R.layout.devicename);\n\t\tListView pairedlistview=(ListView)findViewById(R.id.listView1);\n\t\tpairedlistview.setAdapter(mPairedDevicesArrayAdapter);\n\t\tpairedlistview.setOnItemClickListener(mDeviceClickListener);\n\t\t\n\t\tListView newdevicelistview=(ListView)findViewById(R.id.listView2);\n\t\tnewdevicelistview.setAdapter(mNewDevicesArrayAdapter);\n\t\tnewdevicelistview.setOnItemClickListener(mDeviceClickListener);\n\t\tIntentFilter filter=new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tthis.registerReceiver(mReceiver, filter);\n\t\tfilter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n this.registerReceiver(mReceiver, filter);\n mBtAdapter=BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice>PairedDevices=mBtAdapter.getBondedDevices();\n if(PairedDevices.size()>0)\n {\n \tfindViewById(R.id.textView1).setVisibility(View.VISIBLE);\n \tfor (BluetoothDevice device : PairedDevices) {\n mPairedDevicesArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n }\n } else {\n String noDevices = getResources().getText(R.string.none_paired).toString();\n mPairedDevicesArrayAdapter.add(noDevices);\n }\n \n }", "title": "" }, { "docid": "79e697325d66e48e9441275d82b2aaac", "score": "0.5150795", "text": "@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmBluetoothAdapter.startLeScan(mLeScanCallback);\n\t\t\t}", "title": "" }, { "docid": "874c44b7d3002546756f899499c6c2f1", "score": "0.5148296", "text": "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tbtAdapter.stopLeScan(mLeScanCallback);\r\n\t\t\t\t\t\tbtnScan.setEnabled(true);\r\n\t\t\t\t\t\tbtnScan.setText(getString(R.string.search_ble));\r\n\t\t\t\t\t\tbtnScan.setBackgroundResource(R.drawable.selector_btn_cyan_to_light);\t\t\t\t\t\r\n\t\t\t\t\t\t//对rssi进行排序后再显示\r\n\t\t\t\t\t\tCollections.sort(devices, new Comparator<HashMap<String, Object>>() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic int compare(HashMap<String, Object> device1, HashMap<String, Object> device2) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tint rssi1=(Integer)device1.get(\"rssi\");\r\n\t\t\t\t\t\t\t\tint rssi2=(Integer)device2.get(\"rssi\");\r\n\t\t\t\t\t\t\t\treturn rssi2-rssi1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tadapter.notifyDataSetChanged();\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(devices.size()>0){\r\n\t\t\t\t\t\t\tlvLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbluetoothIcon.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\t}", "title": "" }, { "docid": "3de6fd6e428283cbcc876a1ca4eb4ef2", "score": "0.5130094", "text": "@Override public void run() {\n if (mBluetoothAdapter != null && !mBluetoothAdapter.isEnabled()) {\n mBluetoothAdapter.enable();\n }\n if (mBluetoothAdapter != null && mBluetoothAdapter.isEnabled()) {\n mBluetoothAdapter.startLeScan(scanCallBack);\n }\n try {\n Thread.sleep(AppConstants.scan_time);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (mBluetoothAdapter != null) {\n mBluetoothAdapter.stopLeScan(scanCallBack);\n }\n RxBus.get().post(ConnectAction.ACTION_DEVICE_SCAN_FINISH);\n }\n }", "title": "" }, { "docid": "6ce9b8f0dba5b0804018f56742b271cd", "score": "0.51293236", "text": "private void requestUpdateProducts() {\n\n int size = ProductManager.getInstance().getSize();\n\n for (int i = 0; i < size; i++) {\n ProductInfo productInfo = ProductManager.getInstance().getProduct(i);\n if(productInfo.bluetoothDevice == null) {\n productInfo.bluetoothDevice = BleManager.getInstance().connect(productInfo.address);\n }\n }\n\n for (int i = 0; i < size; i++) {\n ProductInfo productInfo = ProductManager.getInstance().getProduct(i);\n requestMustHaveData(productInfo, true);\n }\n\n\n updateListView();\n }", "title": "" }, { "docid": "a21efbf1c8e259f232a0c6666649336d", "score": "0.5123151", "text": "private void onBluetooth() {\n if (!bluetoothAdapter.isEnabled()) {\n bluetoothAdapter.enable();\n }\n }", "title": "" }, { "docid": "3e18f39e20c566baf86f0ef7e894614f", "score": "0.51194817", "text": "private void getPairedDevices() {\n pairedDevices = myAdapter.getBondedDevices();\n ArrayList list = new ArrayList(); //locally keep paired device list\n\n if (pairedDevices.size() > 0) {\n //if device has paired devices this for each loop will get device name and deviceAddress of each device\n for (BluetoothDevice bt : pairedDevices) {\n list.add(bt.getName() + \"\\n\" + bt.getAddress());\n }\n }\n\n // if there is no paired devices app will display a toast\n else {\n Toast.makeText(getApplicationContext(), \"No Paired Bluetooth Devices Found.\", Toast.LENGTH_LONG).show();\n }\n\n final ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, list);\n deviceList.setAdapter(adapter);\n // if user clicks on item from paired device list\n deviceList.setOnItemClickListener(deviceClickListener);\n\n }", "title": "" }, { "docid": "d9b5082c745988fddbb48158e2991c94", "score": "0.5094927", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action)) {\n BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n btArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n Log.e(\"Detected Device\", \"onReceive: \" + device.getName());\n btArrayAdapter.notifyDataSetChanged();\n progressBar.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "21dd9d0735d3cfe34f1e49cd12148c02", "score": "0.50887525", "text": "private void checkBTAvailability() {\n bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (bluetoothAdapter == null) {\n Toast.makeText(this, getResources().getString(R.string.btNotAvailable), Toast.LENGTH_SHORT).show();\n }\n else {\n if (!bluetoothAdapter.isEnabled()) {\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BLUETOOTH);\n } else {\n communicationController = new BTCommunicationController(this, BTHandler);\n startReceivingMode();\n }\n }\n\n }", "title": "" }, { "docid": "0d150716364a4a85a49a29b5971607f8", "score": "0.5087046", "text": "interface IDeviceScanner {\n\n int SCAN_PERIOD = 5000;\n\n void getHeartRateDevice(Callback callback);\n\n interface Callback {\n void onBluetoothNotSupported();\n\n void onDeviceFound(BluetoothDevice device);\n\n void onNoDeviceFound();\n\n void onBluetoothDisabled();\n\n void onBusy();\n }\n}", "title": "" }, { "docid": "8c1cdf2aa55daca5dd80daf51254bb5c", "score": "0.50813293", "text": "@Override\n\tpublic void onBeaconServiceConnect() {\n\t\n\t\t\n\t\tbeaconManager.setRangeNotifier(new RangeNotifier() {\n\t\t\t@Override\n\t\t\tpublic void didRangeBeaconsInRegion(Collection<Beacon> beacons,\n\t\t\t\t\tRegion region) {\n\t\t\t\tif (beacons.size() > 0) {\n\t\t\t\t\tLog.i(TAG_SEARCHING_ACTIVITY_LOG, \"Found \" + beacons.size()\n\t\t\t\t\t\t\t+ \"beacons\");\n\t\t\t\t\tfor (Iterator<Beacon> bIterator = beacons.iterator(); bIterator\n\t\t\t\t\t\t\t.hasNext();) {\n\t\t\t\t\t\tfinal Beacon beacon = bIterator.next();\n\t\t\t\t\t\tif (isGimbalTag(beacon)) {\n\t\t\t\t\t\t\tfinal String key = new StringBuilder()\n\t\t\t\t\t\t\t\t\t.append(beacon.getId1())\n\t\t\t\t\t\t\t\t\t.append(beacon.getId2())\n\t\t\t\t\t\t\t\t\t.append(beacon.getId3()).toString();\n\t\t\t\t\t\t\tdiscoveredBeaconMap.put(key, beacon);\n\t\t\t\t\t\t\tif(key.substring(0,3).equals(\"001\")){ // Filter out the Student Beacons from the Beacons present in Marcus \n\t\t\t\t\t\t\t\tsortedBeaconmap.put(key,beacon.getRssi()); // All the beacon values are stored in HashMap which is used later for sorting.\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\tupdateDiscoveredList();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttry {\n\t\t\tbeaconManager.startRangingBeaconsInRegion(new Region(\n\t\t\t\t\t\"myRangingUniqueId\", null, null, null));\n\t\t} catch (RemoteException e) {\n\t\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "e010d3a178d2c404500d42f1293198c5", "score": "0.506971", "text": "@Override\n public void onBeaconServiceConnect() {\n beaconManager.addMonitorNotifier(new MonitorNotifier() {\n\n @Override\n public void didEnterRegion(org.altbeacon.beacon.Region region) {\n try {\n Log.i(TAG, \"didEnterRegion\");\n beaconManager.startRangingBeaconsInRegion(region);\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void didExitRegion(org.altbeacon.beacon.Region region) {\n try {\n Log.i(TAG, \"didExitRegion\");\n beaconManager.stopRangingBeaconsInRegion(region);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void didDetermineStateForRegion(int state, org.altbeacon.beacon.Region region) {\n Log.i(TAG, \"I have just switched from seeing/not seeing beacons: \"+state);\n }\n });\n\n beaconManager.addRangeNotifier(new RangeNotifier() {\n @Override\n public void didRangeBeaconsInRegion(Collection<Beacon> beacons, Region region) {\n for(Beacon oneBeacon : beacons) {\n Log.i(TAG, \"distance: \" + oneBeacon.getDistance() + \" id: \" + oneBeacon.getId1() + \"/\" + oneBeacon.getId2() + \"/\" + oneBeacon.getId3());\n if(oneBeacon.getId1().toString().equals(\"b5b182c7-eab1-4988-aa99-b5c1517008d9\")) {\n uuid1 = oneBeacon.getId1().toString();\n distance1 = oneBeacon.getDistance();\n rssi1 = oneBeacon.getRssi();\n\n }\n else if(oneBeacon.getId1().toString().equals(\"b5b182c7-eab1-4988-aa99-b5c1517008d8\")){\n uuid2 = oneBeacon.getId1().toString();\n distance2 = oneBeacon.getDistance();\n rssi2 = oneBeacon.getRssi();\n }\n else if(oneBeacon.getId1().toString().equals(\"da2bfb06-7cf3-5b40-be96-8f1ec8891ce8\")){\n uuid3 = oneBeacon.getId1().toString();\n distance3 = oneBeacon.getDistance();\n rssi3 = oneBeacon.getRssi();\n }\n else {\n uuid4 = oneBeacon.getId1().toString();\n distance4 = oneBeacon.getDistance();\n rssi4 = oneBeacon.getRssi();\n }\n\n }\n }\n });\n try {\n beaconManager.startMonitoringBeaconsInRegion(region1);\n beaconManager.startMonitoringBeaconsInRegion(region2);\n beaconManager.startMonitoringBeaconsInRegion(region3);\n beaconManager.startMonitoringBeaconsInRegion(region4);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "c4f818e95e7fbfb74cc7d4690e4f9323", "score": "0.5049912", "text": "public void discoverColorSensor() {\n mColorScannerSubscription = RelayrSdk.getRelayrBleSdk()\n .scan(Arrays.asList(BleDeviceType.WunderbarLIGHT))\n .filter(new Func1<List<BleDevice>, Boolean>() {\n @Override\n public Boolean call(List<BleDevice> bleDevices) {\n for (BleDevice device: bleDevices)\n if (device.getMode() == BleDeviceMode.DIRECT_CONNECTION) {\n // We can stop scanning, since we've found a sensora\n Log.w(\"Found Color in DC\", \"\" + device.getAddress());\n foundColor = true;\n return true;\n }\n mColorStartedScanning = false;\n return false;\n }\n })\n .map(new Func1<List<BleDevice>, BleDevice>() {\n @Override\n public BleDevice call(List<BleDevice> bleDevices) {\n for (BleDevice device : bleDevices) {\n if (device.getMode() == BleDeviceMode.DIRECT_CONNECTION) //&& device.getAddress().equals(\"D0:15:51:6C:E8:D3\"))\n return device;\n }\n mColorStartedScanning = false;\n return null; // will never happen since it's been filtered out before\n }\n })\n .take(1)\n .subscribeOn(AndroidSchedulers.mainThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<BleDevice>() {\n @Override\n public void onCompleted() {\n mColorStartedScanning = false;\n }\n\n @Override\n public void onError(Throwable e) {\n mColorStartedScanning = false;\n e.printStackTrace();\n mColorError.setText(R.string.sensor_discovery_error);\n }\n\n @Override\n public void onNext(BleDevice device) {\n // mColorOutput.setText(\"\" + device.getName());\n// if (device.getAddress() == \"C2:A5:6E:8B:68:40\") {\n //Log.w(\"ON NEXT DEVICE\", \"\");\n // mDirectConnectionService.writeDownChannel(new byte[] {0x01,0x03});\n subscribeForColorUpdates(device);\n Log.w(\"On NExt Color Device\",\"Subscribing\");\n //}\n }\n });\n }", "title": "" }, { "docid": "499d9fc258535ba6e122cc14755594ec", "score": "0.5044903", "text": "private void preDiscovery(){\r\n manager.clearServiceRequests( channel, new WifiP2pManager.ActionListener() {\r\n @Override\r\n public void onSuccess() {\r\n discoverPeers();\r\n }\r\n\r\n @Override\r\n public void onFailure(int reason) {\r\n // TODO: add some failure mechanism\r\n }\r\n });\r\n }", "title": "" }, { "docid": "b9a3c308f992ce46cf28c5b198794a0d", "score": "0.50428504", "text": "public BleScanner(Context context) {this.context = context;\n //I use bluetooth manager to get BT adapter\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n bluetooth_adapter = bluetoothManager.getAdapter();\n\n// check bluetooth is available and on\n if (bluetooth_adapter == null || !bluetooth_adapter.isEnabled()) {\n Log.d(Constants.TAG, \"Bluetooth is NOT switched on\");\n Intent enableBtIntent = new Intent( BluetoothAdapter.ACTION_REQUEST_ENABLE);\n enableBtIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(enableBtIntent);\n }\n\n Log.d(Constants.TAG, \"Bluetooth is switched on\");\n }", "title": "" }, { "docid": "04037716de61ca1cdcc2f384a5c9ed7c", "score": "0.50349826", "text": "private void initializeBluetooth() {\n adapter = BluetoothAdapter.getDefaultAdapter();\n\n if (adapter == null) {\n Utility.showMsg(getString(R.string.device_BTB_unsupport));\n return;\n }\n\n thInitializeBluetooth = new Thread(new Runnable() {\n public void run() {\n try {\n if (!adapter.isEnabled()) {\n Intent turnOn = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(turnOn, REQUEST_ENABLE_BT);\n return;\n }\n CanMessages.deviceAddress = Utility.MACAddress;\n objHutchConnect.serialNo = Utility.IMEI;\n objHutchConnect.macAddress = Utility.MACAddress;\n\n Thread.sleep(3000);\n\n objHutchConnect.connect(Utility.MACAddress);\n\n onAlertWarning();\n\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n });\n thInitializeBluetooth.setName(\"thInitializeBluetooth\");\n thInitializeBluetooth.start();\n\n }", "title": "" }, { "docid": "a10f1471ba0150c6dd8313524263cf37", "score": "0.50321364", "text": "@Override\n public void onNext(BluetoothGattCharacteristic bluetoothGattCharacteristic) {\n }", "title": "" }, { "docid": "68336022334a29ed3c68ffb14aa16729", "score": "0.5028187", "text": "@Override\n public void blePeripheralFound(BluetoothDeviceWrapper device, int rssi, byte[] record) {\n if ((null != device.getgBeacon()) || (null != device.getiBeacon()) || (null != device.getAltBeacon())) {\n if ((weakReference.get()!=null)&&(weakReference.get().getDeviceQueue().size() < 350)) {\n weakReference.get().getDeviceQueue().offer(device);\n }\n }\n }", "title": "" }, { "docid": "34aba1dcab384c1996983859b0294fff", "score": "0.50133324", "text": "private void getPariedDevices(CallbackContext callbackContext) {\n this.mBtAdapter = BluetoothAdapter.getDefaultAdapter();\n // Get a set of currently paired devices\n Set<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices();\n // If there are paired devices, add each one to the ArrayAdapter\n JSONObject ret = new JSONObject();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n try{\n ret.put(device.getName(), device.getAddress());\n } catch (JSONException e) {\n continue;\n }\n }\n }\n callbackContext.success(ret);\n }", "title": "" }, { "docid": "3f4dbc4f7c35fb79d9cb86e389773121", "score": "0.50121295", "text": "public void connect_device (View v) {\r\n Intent serviceIntent = new Intent(this, BLEservice.class);\r\n serviceIntent.putExtra(\"BLDevice\", mDevices.valueAt(0) );\r\n startService(serviceIntent);\r\n doBindService();\r\n DeviceSelection.setText(\"Bluetooth Device Connected\");\r\n DeviceDescription.setTextColor(Color.parseColor(\"#0000ff\"));\r\n DeviceSelection.setTextColor(Color.parseColor(\"#0000ff\"));\r\n\r\n\r\n\r\n LinearLayout devices_drop = (LinearLayout) findViewById(R.id.device_select_drop);\r\n devices_drop.setBackgroundColor(Color.parseColor(\"#65b2da\"));\r\n\r\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\r\n toolbar.setBackgroundColor(Color.parseColor(\"#65b2da\"));\r\n\r\n\r\n\r\n startTestThread();\r\n\r\n\r\n\r\n\r\n }", "title": "" } ]
b1d7805be7c831d4ab01a25ebe8fb258
optional string work_item_id = 1;
[ { "docid": "4e3caece4a9a4c4cbbf349160cc2baad", "score": "0.56790483", "text": "public Builder setWorkItemIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n workItemId_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "d7c2aa2570901b36b172710cd60d67b9", "score": "0.69825864", "text": "java.lang.String getWorkItemId();", "title": "" }, { "docid": "d7c2aa2570901b36b172710cd60d67b9", "score": "0.69819397", "text": "java.lang.String getWorkItemId();", "title": "" }, { "docid": "1ff7b57a29686449a897df715386833b", "score": "0.6477812", "text": "public Builder setWorkItemId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n workItemId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1ff7b57a29686449a897df715386833b", "score": "0.6477443", "text": "public Builder setWorkItemId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n workItemId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6f36500b43adfd66f37ef2d5f2153826", "score": "0.647087", "text": "@java.lang.Override\n public java.lang.String getWorkItemId() {\n java.lang.Object ref = workItemId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n workItemId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "6f36500b43adfd66f37ef2d5f2153826", "score": "0.6470674", "text": "@java.lang.Override\n public java.lang.String getWorkItemId() {\n java.lang.Object ref = workItemId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n workItemId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "28ea39d37426bd1142ba2b44d4d48064", "score": "0.63997257", "text": "public void injestNewSubmission(WorkItem item) {\r\n Connection c = null;\r\n // Get the Amazon RDS credentials from AWS Secrets Manager.\r\n Gson gson = new Gson();\r\n User user = gson.fromJson(String.valueOf(getSecretValues()), User.class);\r\n try {\r\n c = ConnectionHelper.getConnection(user.getHost(), user.getUsername(), user.getPassword());\r\n PreparedStatement ps;\r\n\r\n // Convert rev to int.\r\n String name = item.getName();\r\n String guide = item.getGuide();\r\n String description = item.getDescription();\r\n String status = item.getStatus();\r\n\r\n // Generate the work item ID.\r\n UUID uuid = UUID.randomUUID();\r\n String workId = uuid.toString();\r\n\r\n // Date conversion.\r\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\r\n LocalDateTime now = LocalDateTime.now();\r\n String sDate1 = dtf.format(now);\r\n Date date1 = new SimpleDateFormat(\"yyyy/MM/dd\").parse(sDate1);\r\n java.sql.Date sqlDate = new java.sql.Date( date1.getTime());\r\n\r\n // Inject an item into the system.\r\n String insert = \"INSERT INTO work (idwork, username,date,description, guide, status, archive) VALUES(?,?, ?,?,?,?,?);\";\r\n assert c != null;\r\n ps = c.prepareStatement(insert);\r\n ps.setString(1, workId);\r\n ps.setString(2, name);\r\n ps.setDate(3, sqlDate);\r\n ps.setString(4, description);\r\n ps.setString(5, guide );\r\n ps.setString(6, status );\r\n ps.setBoolean(7, false);\r\n ps.execute();\r\n\r\n } catch (SQLException | ParseException e) {\r\n e.printStackTrace();\r\n } finally {\r\n ConnectionHelper.close(c);\r\n }\r\n }", "title": "" }, { "docid": "3905bffce408ccd34389a22229ca4b11", "score": "0.636785", "text": "public java.lang.String getWorkItemId() {\n java.lang.Object ref = workItemId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n workItemId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "3905bffce408ccd34389a22229ca4b11", "score": "0.63667595", "text": "public java.lang.String getWorkItemId() {\n java.lang.Object ref = workItemId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n workItemId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "dae4e67c88b0114eb55e0e7c1f426979", "score": "0.6349", "text": "io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem getWorkitem();", "title": "" }, { "docid": "f77f1afd3ace7386ac392f0c28f3b258", "score": "0.6239795", "text": "public int getIdWork() {\n\treturn idWork;\n}", "title": "" }, { "docid": "d87eeeed7edcdfa7cf73b1f1e460c1c7", "score": "0.6155604", "text": "io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItem getWorkitem();", "title": "" }, { "docid": "0376ec7f04871647052a8438cce212f5", "score": "0.6138264", "text": "public void setWorkint(String workint) {\n this.workint = workint == null ? null : workint.trim();\n }", "title": "" }, { "docid": "dc132052398dc67951556528908f1473", "score": "0.60687643", "text": "io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItemOrBuilder getWorkitemOrBuilder();", "title": "" }, { "docid": "8bc80576fb86eb480a1adf8948524c55", "score": "0.59757704", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getWorkItemIdBytes() {\n java.lang.Object ref = workItemId_;\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 workItemId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "8bc80576fb86eb480a1adf8948524c55", "score": "0.5975551", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getWorkItemIdBytes() {\n java.lang.Object ref = workItemId_;\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 workItemId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "4a789b91c50aedcbdd4c5a520b1dae01", "score": "0.59096277", "text": "public String getWorkint() {\n return workint;\n }", "title": "" }, { "docid": "36f62308bef1c0f94f0def3da78efdad", "score": "0.59072345", "text": "public com.google.protobuf.ByteString\n getWorkItemIdBytes() {\n java.lang.Object ref = workItemId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n workItemId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "36f62308bef1c0f94f0def3da78efdad", "score": "0.5905778", "text": "public com.google.protobuf.ByteString\n getWorkItemIdBytes() {\n java.lang.Object ref = workItemId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n workItemId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a2175c764678c02f59ff130844a9e1c1", "score": "0.5886277", "text": "public void setIdWork(int newIdWork) {\n\tidWork = newIdWork;\n}", "title": "" }, { "docid": "6424afdd0cf1c4a3399bad00f50719b8", "score": "0.5874059", "text": "io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItemOrBuilder getWorkitemOrBuilder();", "title": "" }, { "docid": "91b36bea7a9d2834db080bdfa58cd5ad", "score": "0.57614034", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Type of Work Item\")\n\n public String getWorkItemType() {\n return workItemType;\n }", "title": "" }, { "docid": "d0dbfce0025861c6c22c23c7a40666c8", "score": "0.57593346", "text": "public int getWorkflow_ID() \n{\nInteger ii = (Integer)get_Value(\"Workflow_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "ab19653e5f35c5ebadd1d4b350665f34", "score": "0.57561314", "text": "Object getId(ITEM item);", "title": "" }, { "docid": "5b16954fa59e6eefe7cd9dc7b550c176", "score": "0.5749839", "text": "public String getItemSQL(String id ) {\r\n\r\n RdsDataClient dataClient = getClient();\r\n\r\n // Define a list in which all work items are stored.\r\n String sqlStatement = \"\";\r\n String status=\"\" ;\r\n String description=\"\";\r\n\r\n try {\r\n\r\n //Specify the SQL statement to query data.\r\n sqlStatement = \"Select description, status FROM work where idwork ='\" +id + \"' \";\r\n ExecuteStatementRequest sqlRequest = ExecuteStatementRequest.builder()\r\n .secretArn(secretArn)\r\n .sql(sqlStatement)\r\n .database(\"jobs\")\r\n .resourceArn(resourceArn)\r\n .build();\r\n\r\n ExecuteStatementResponse response = dataClient.executeStatement(sqlRequest);\r\n List<List<Field>> dataList = response.records();\r\n int index = 0 ;\r\n // Get the records.\r\n for (List list: dataList) {\r\n\r\n for (Object myField : list) {\r\n\r\n Field field = (Field) myField;\r\n String value = field.stringValue();\r\n\r\n if (index == 0)\r\n description = (value);\r\n\r\n else if (index == 1)\r\n status = value;\r\n // Increment the index.\r\n index++;\r\n }\r\n }\r\n return convertToString(toXmlItem(id,description,status));\r\n\r\n } catch (RdsDataException e) {\r\n e.printStackTrace();\r\n } finally {\r\n //ConnectionHelper.close(c);\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "0dde7ad5ebd8740891777bf6082fedf9", "score": "0.5682729", "text": "com.google.protobuf.ByteString\n getWorkItemIdBytes();", "title": "" }, { "docid": "0dde7ad5ebd8740891777bf6082fedf9", "score": "0.568124", "text": "com.google.protobuf.ByteString\n getWorkItemIdBytes();", "title": "" }, { "docid": "181a3d3965c5d1fe92cf83b83eb71533", "score": "0.5678586", "text": "public String saveIssueItem(Date issue_date,String homeid,String issue_to,List issue_from,String issue_remarks,List<String> item_issued_list,Map<String,String> issued_item_qty,Map<String,String> issued_item_remarks,String userId);", "title": "" }, { "docid": "e84f2e77e7789adc6bbcc1cfc5116f9c", "score": "0.563872", "text": "public Long getReqId()\n/* */ {\n/* 69 */ return this.reqId;\n/* */ }", "title": "" }, { "docid": "f0ef31274f91589d041db0e51290e599", "score": "0.5638305", "text": "public void setWorkItem(NbaDst workItem) {\n\t\tthis.workItem = workItem;\n\t}", "title": "" }, { "docid": "87f62d590bf20c9a192a3a9a0d9db0d7", "score": "0.5606492", "text": "public void setIditem(Long iditem)\n\t{\n\t\tthis.iditem = iditem;\n\t}", "title": "" }, { "docid": "e27d135c94280d4a5b27c24571a3f56a", "score": "0.55560625", "text": "public String saveDietIssueItems(Date dietIssueDate,String homeid,int srchild,int jrchild,List<String> itemNumlist,String userId,List actItems);", "title": "" }, { "docid": "4c3d5dfe80cdfe6609ae140768ad3157", "score": "0.5555968", "text": "void addWork(Work work){\n\t\twork.setId(getNextWId());\n\t\t_works.add(work);\n\t}", "title": "" }, { "docid": "20be7094130bbf1ad9d7c72269826a38", "score": "0.5543769", "text": "boolean hasWorkItemId();", "title": "" }, { "docid": "20be7094130bbf1ad9d7c72269826a38", "score": "0.5543769", "text": "boolean hasWorkItemId();", "title": "" }, { "docid": "22299872214a409b96c48d4f41445414", "score": "0.55041766", "text": "public Long getCateg_file_()\n{\nreturn getInputDataItemId(\"categ_file_\");\n}", "title": "" }, { "docid": "e767253a83f8f11b173dfdeed0dd2f39", "score": "0.5484642", "text": "public int getItemid()\r\n/* 55: */ {\r\n/* 56:53 */ return this.itemid;\r\n/* 57: */ }", "title": "" }, { "docid": "e9654ea069e813a15b90e659ca301e23", "score": "0.54786384", "text": "public void setReqId(Long reqId)\n/* */ {\n/* 78 */ this.reqId = reqId;\n/* */ }", "title": "" }, { "docid": "898e6303957a07de2ca8830bfc885751", "score": "0.5465717", "text": "public Long getIditem()\n\t{\n\t\treturn iditem;\n\t}", "title": "" }, { "docid": "be8d4f6373d31ac32a68c5edf081e881", "score": "0.5465631", "text": "private void setItemID(String itemID)\n {\n requestURL += itemID;\n }", "title": "" }, { "docid": "6a31416c7e991d26df13383402bd63f3", "score": "0.54444104", "text": "public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {\n\t\tfinal Map<String, Object> resultMap = new ConcurrentHashMap<String, Object>();\n\t\tMap<TaskSummary, Map<String, Object>> taskAskMap = new ConcurrentHashMap<TaskSummary, Map<String, Object>>();\n\n\t\t/* items used to save the extracted input parameters from the custom task */\n\t\tMap<String, Object> items = workItem.getParameters();\n\n\t\tGennyToken userToken = (GennyToken) items.get(\"userToken\");\n\t\tGennyToken serviceToken = (GennyToken) items.get(\"serviceToken\");\n\n\t\tBaseEntityUtils beUtils = new BaseEntityUtils(serviceToken);\n\t\tOutputParam output = (OutputParam) items.get(\"output\");\n\n\t\tString callingWorkflow = (String) items.get(\"callingWorkflow\");\n\t\tif (StringUtils.isBlank(callingWorkflow)) {\n\t\t\tcallingWorkflow = \"\";\n\t\t}\n\n\t\t// Extract all the current questions from all the users Tasks\n\t\tList<Status> statuses = new CopyOnWriteArrayList<Status>();\n\t\tstatuses.add(Status.Ready);\n\t\t// statuses.add(Status.Completed);\n\t\t// statuses.add(Status.Created);\n\t\t// statuses.add(Status.Error);\n\t\t// statuses.add(Status.Exited);\n\t\tstatuses.add(Status.InProgress);\n\t\t// statuses.add(Status.Obsolete);\n\t\tstatuses.add(Status.Reserved);\n\t\t// statuses.add(Status.Suspended);\n\n\t\tString realm = userToken.getRealm();\n\t\tString userCode = userToken.getUserCode();\n\t\tList<TaskSummary> tasks = taskService.getTasksOwnedByStatus(realm + \"+\" + userCode, statuses, null);\n\n\t\tif (tasks.isEmpty()) {\n\t\t\tresultMap.put(\"output\", output); // if no tasks then ensure output passed in is passed through\n\t\t} else {\n\t\t\tfor (TaskSummary taskSummary : tasks) { // need to sort by prioritise\n\n\t\t\t\tTask task = taskService.getTaskById(taskSummary.getId());\n\t\t\t\tlog.info(callingWorkflow + \" Pending Task for \" + userToken.getUserCode() + \" = \" + task.getFormName());\n\t\t\t\tString formName = task.getFormName();\n\t\t\t\tLong docId = task.getTaskData().getDocumentContentId();\n\t\t\t\tContent c = taskService.getContentById(docId);\n\t\t\t\tif (c == null) {\n\t\t\t\t\tlog.error(\"*************** Task content is NULL *********** ABORTING\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tHashMap<String, Object> taskAsks2 = (HashMap<String, Object>) ContentMarshallerHelper\n\t\t\t\t\t\t.unmarshall(c.getContent(), null);\n\t\t\t\tConcurrentHashMap<String,Object> taskAsks = new ConcurrentHashMap<String,Object>(taskAsks2);\n\t\t\t\tMap<String,String> attributeTargetCodeMap = new ConcurrentHashMap<String,String>();\n\t\t\t\tfor (String key : taskAsks.keySet()) {\n\n\t\t\t\t\tif (taskAsks.get(key) instanceof String) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tTaskAsk taskAsk = (TaskAsk) taskAsks.get(key);\n\t\t\t\t\tattributeTargetCodeMap.put(taskAsk.getAsk().getAttributeCode(),taskAsk.getAsk().getTargetCode());\n\t\t\t\t}\n\t\t\t\toutput = new OutputParam();\n\t\t\t\toutput.setTypeOfResult(\"FORMCODE\");\n\t\t\t\toutput.setResultCode(formName);\n\t\t\t\toutput.setTargetCode(\"FRM_CONTENT\");\n\t\t\t\toutput.setAttributeTargetCodeMap( attributeTargetCodeMap);\n\t\t\t\tresultMap.put(\"output\", output);\n\t\t\t}\n\t\t\tif (resultMap.get(\"output\")==null) {\n\t\t\t\tresultMap.put(\"output\", output); // TODO, ugly\n\t\t\t}\n\n\t\t}\n\n\t\t// notify manager that work item has been completed\n\t\ttry {\n\t\t\tmanager.completeWorkItem(workItem.getId(), resultMap);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "bfa50cc449fdc89d40294e336c9c4fa5", "score": "0.5436517", "text": "public abstract CustomTask getCustomTask(WorkItem workItem);", "title": "" }, { "docid": "4bd20c33f8abfcbdacfe369309372cb4", "score": "0.54161114", "text": "public String getWorkoutName(){ return workoutName; }", "title": "" }, { "docid": "d2f7d95dc5dd7e2250ed9a38ab28839e", "score": "0.54152244", "text": "public int getAD_Workflow_ID() \n{\nInteger ii = (Integer)get_Value(\"AD_Workflow_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "090f3b64f97216de296acf8f2f155498", "score": "0.5408852", "text": "@java.lang.Override\n public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem getWorkitem() {\n return workitem_ == null ? io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem.getDefaultInstance() : workitem_;\n }", "title": "" }, { "docid": "dd893990a4f4fe7b2e89505ad887ba9c", "score": "0.5371205", "text": "public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem getWorkitem() {\n if (workitemBuilder_ == null) {\n return workitem_ == null ? io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem.getDefaultInstance() : workitem_;\n } else {\n return workitemBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "d30e6fef2f3681907742c30538430304", "score": "0.5368773", "text": "public String getWorkPost() {\n return workPost;\n }", "title": "" }, { "docid": "096f08162990187393684123faafd41a", "score": "0.53472674", "text": "public void setIdRequisicao(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localIdRequisicaoTracker = true;\n } else {\n localIdRequisicaoTracker = false;\n \n }\n \n this.localIdRequisicao=param;\n \n\n }", "title": "" }, { "docid": "b3ac9407fa2fb9e052a78e9a867aeca2", "score": "0.5332463", "text": "public void setWorkDateID(java.lang.String _workDateID)\n {\n workDateID = _workDateID;\n }", "title": "" }, { "docid": "cd3750419b102b5a3011c34cca161559", "score": "0.5315837", "text": "public int getWorkerId()\n {\n return id;\n }", "title": "" }, { "docid": "2de98c018316cc3a20e34377899087b0", "score": "0.53139174", "text": "public abstract String getReqId();", "title": "" }, { "docid": "698933007ff36fc8ae04ab055a17f3a1", "score": "0.53109926", "text": "public String getPieceworkId() {\n return pieceworkId;\n }", "title": "" }, { "docid": "cc1bb26a2aad641690dec4b7f86b6743", "score": "0.53028524", "text": "@java.lang.Override\n public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItemOrBuilder getWorkitemOrBuilder() {\n return workitem_ == null ? io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem.getDefaultInstance() : workitem_;\n }", "title": "" }, { "docid": "d97c62354d420f3877fda0b724dba32e", "score": "0.5302566", "text": "@Override\n\tpublic void setItemId(String item) {\n\t\tthis.id = Integer.parseInt(item);\n\t}", "title": "" }, { "docid": "73160a1ff5909546429396e6eb6feed1", "score": "0.5294976", "text": "@Override\r\n\tpublic void saveItem(int id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "eb7d94a5a85acdb47767c3c9f5b37518", "score": "0.5281471", "text": "int getParcelitemid();", "title": "" }, { "docid": "eb7d94a5a85acdb47767c3c9f5b37518", "score": "0.5281471", "text": "int getParcelitemid();", "title": "" }, { "docid": "15ba974610428a5a7d9ccce962a448ef", "score": "0.5277391", "text": "java.lang.String getNoteId();", "title": "" }, { "docid": "cf2d56da9b3eca857cd10c3054dc8401", "score": "0.5272903", "text": "public void setAD_Workflow_ID (int AD_Workflow_ID)\n{\nset_ValueNoCheck (\"AD_Workflow_ID\", new Integer(AD_Workflow_ID));\n}", "title": "" }, { "docid": "9d8b226562f7dd37c74140cf1368dc3f", "score": "0.52715296", "text": "public java.lang.String getWorkDateID()\n {\n return workDateID;\n }", "title": "" }, { "docid": "a8a42170c3c62179c5b6ab8e0b7e5958", "score": "0.5264903", "text": "public Long getWeights_file_()\n{\nreturn getInputDataItemId(\"weights_file_\");\n}", "title": "" }, { "docid": "05380c32d37c6a0f4b7385a183d6f9be", "score": "0.5254133", "text": "public void setWorkPost(String workPost) {\n this.workPost = workPost;\n }", "title": "" }, { "docid": "6dbac3f35ff6721785905539b07fcc67", "score": "0.5240142", "text": "@java.lang.Override\n public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItem getWorkitem() {\n return workitem_ == null ? io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItem.getDefaultInstance() : workitem_;\n }", "title": "" }, { "docid": "97941f1eb005d860309d1665c0ff915e", "score": "0.5233525", "text": "String getTaskWorkDef();", "title": "" }, { "docid": "6097cfc0616485632753f8537d13c568", "score": "0.52327335", "text": "public void setWorkflow_ID (int Workflow_ID)\n{\nif (Workflow_ID <= 0) set_Value (\"Workflow_ID\", null);\n else \nset_Value (\"Workflow_ID\", new Integer(Workflow_ID));\n}", "title": "" }, { "docid": "ae8d3857fbd62bc5397bf1f38b4c78c2", "score": "0.5228199", "text": "String getTaskID();", "title": "" }, { "docid": "0e42f37476ab2a7591f7867c8030381e", "score": "0.52253515", "text": "public String getItemId() {\n return itemId;\n }", "title": "" }, { "docid": "dcf519b37f7c2bb361f1cafaa255cc40", "score": "0.5216571", "text": "public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItemOrBuilder getWorkitemOrBuilder() {\n if (workitemBuilder_ != null) {\n return workitemBuilder_.getMessageOrBuilder();\n } else {\n return workitem_ == null ?\n io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.WorkItem.getDefaultInstance() : workitem_;\n }\n }", "title": "" }, { "docid": "c9e344c8b621ecde7206188834180f79", "score": "0.52096426", "text": "public void setIdItem(long value) {\n this.idItem = value;\n }", "title": "" }, { "docid": "e5f40d45185af249d9de06434646c68d", "score": "0.5207835", "text": "public void setWork(String work) {\n this.work = work == null ? null : work.trim();\n }", "title": "" }, { "docid": "05887ae4710cd2ae48603f4426c37cc2", "score": "0.52053565", "text": "public void setItemid(int itemid)\r\n/* 60: */ {\r\n/* 61:57 */ this.itemid = itemid;\r\n/* 62: */ }", "title": "" }, { "docid": "6e4161a6299325e2f3fc7851d83d1798", "score": "0.5202829", "text": "@Override\n\tpublic int getId() {\n\t\treturn 2;\n\t}", "title": "" }, { "docid": "e53dc0693e295a951638e89350eff6dc", "score": "0.5200531", "text": "public void setItemId(long itemId);", "title": "" }, { "docid": "41c8fe5514158707e3b48f63f33963a8", "score": "0.51919377", "text": "public long getID() {\n return jobID;\n }", "title": "" }, { "docid": "00de590ca999ed4014b50a926d91e53f", "score": "0.5174366", "text": "public String getWork() {\n return work;\n }", "title": "" }, { "docid": "89e530a463d93bccfa87f28e87a4340f", "score": "0.5172428", "text": "protected Workitem() {\n /* intentionally empty block */}", "title": "" }, { "docid": "700f708ee05deea2f84a1571258cc59b", "score": "0.5171737", "text": "public Workout(int idWorkout) {\n this.idWorkout = idWorkout;\n }", "title": "" }, { "docid": "5e89a6131574d16f088b4b196f50370d", "score": "0.51689816", "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 = false;\n \n }\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "337a7229f0abf77b4dd9f8bb38cd32b7", "score": "0.5161892", "text": "public void setIdInstrucao(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localIdInstrucaoTracker = true;\n } else {\n localIdInstrucaoTracker = false;\n \n }\n \n this.localIdInstrucao=param;\n \n\n }", "title": "" }, { "docid": "4fc2ed683a543ecc9f2f2340cfd16715", "score": "0.51618683", "text": "public int getM_Warehouse_ID();", "title": "" }, { "docid": "958cd18487def1e41b70e43cd70cd8e6", "score": "0.51549244", "text": "public ItemId() {\r\n\t}", "title": "" }, { "docid": "81f749d3adc6df7642d407836e884a52", "score": "0.51528984", "text": "public void setItem(String item) {\r\n this.item = item;\r\n }", "title": "" }, { "docid": "51e035d3744805bfbc2b07b74a145b47", "score": "0.5146721", "text": "String getReturnItemResponseId();", "title": "" }, { "docid": "6edb41c6f84c3fab85b25b309404653f", "score": "0.51250595", "text": "public void saveItem(Item item){\n }", "title": "" }, { "docid": "20e6aed9b392e2930f25db8a1b69dbf0", "score": "0.51187116", "text": "int getBusinessID(int id);", "title": "" }, { "docid": "712f9d455eccd4a4059509ac150dd153", "score": "0.5116904", "text": "public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItem getWorkitem() {\n if (workitemBuilder_ == null) {\n return workitem_ == null ? io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItem.getDefaultInstance() : workitem_;\n } else {\n return workitemBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "7441ce888265f9befb5d4ea7bb614779", "score": "0.51050866", "text": "public String saveTailoringIssue(Date issueDate,String homeid,String letterno,String tailAddress,List<String> itemNumList,Map<String,String> itemQuanList,Map<String,String> itemRemList,String userId);", "title": "" }, { "docid": "457fe8d602dfc0351926031b6a27ae5c", "score": "0.5104145", "text": "long getQualifyingQuestionId();", "title": "" }, { "docid": "60caac8697748065d1ec905095cfeaba", "score": "0.51014507", "text": "public String getId()\n/* */ {\n/* 151 */ return this.id;\n/* */ }", "title": "" }, { "docid": "6a7ead640763b2c6ed63a256448eb8f1", "score": "0.50982046", "text": "public String getItemID() {\n return itemID;\n }", "title": "" }, { "docid": "cb1febcf0d176e4140788a5969f9825c", "score": "0.5097375", "text": "long getWorkerId();", "title": "" }, { "docid": "3e3196ee24af100d801ec27033f720a3", "score": "0.5095442", "text": "@Override\n\tpublic String getJobId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "50b7d71a56296282881626ede95d8581", "score": "0.5091474", "text": "public boolean hasWorkItemId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "50b7d71a56296282881626ede95d8581", "score": "0.5091409", "text": "public boolean hasWorkItemId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "db8536275561323fce7110ae4f505bd8", "score": "0.5090016", "text": "@java.lang.Override\n public io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItemOrBuilder getWorkitemOrBuilder() {\n return workitem_ == null ? io.automatiko.engine.workflow.marshalling.impl.AutomatikoMessages.HumanTaskWorkItem.getDefaultInstance() : workitem_;\n }", "title": "" }, { "docid": "895becef9800e83b5c2ae426e7c981e2", "score": "0.5087358", "text": "public void setId(String value)\n/* */ {\n/* 163 */ this.id = value;\n/* */ }", "title": "" }, { "docid": "e3466bf745cfae8671092afe8c581b1f", "score": "0.50832564", "text": "public void setWorkflowID(String space, String project, String experiment, String wfID) {\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"identifier\", \"/\" + space + \"/\" + project + \"/\" + experiment);\n Map<String, Object> properties = new HashMap<String, Object>();\n properties.put(\"Q_WF_ID\", wfID);\n params.put(\"properties\", properties);\n openbis.ingest(\"DSS1\", \"notify-user\", params);\n }", "title": "" }, { "docid": "0554342782e185e96c0894e803ebc4d4", "score": "0.50801444", "text": "public void setId(String id)\n/* */ {\n/* 58 */ this.id = id;\n/* */ }", "title": "" }, { "docid": "f9ef477d25f875b1ae53fad4249cebea", "score": "0.5078025", "text": "public ItemId(String str) {\r\n\t\tfromString(str);\r\n\t}", "title": "" } ]
2c2f6b4b7a9639fc766af0fedb92d208
end of main method Private method to write the response from the input stream to a file in local directory.
[ { "docid": "16fbc7900baac3b1aadf7cf6c28a6529", "score": "0.6375076", "text": "private static void fileWriter(String strResponse , String responseMessagePath, boolean isUTF8Support) {\n\n\t\tDateFormat today = new SimpleDateFormat(\"yyyy_MM_dd_hh_mm_ss_SSS\");\n\n\t\t//String path = responseMessagePath;\n\t\t//String responseFileName = \"Dhawal.xml\";\n\t\tString responseFileName = checkForRootElement(strResponse, isUTF8Support)+\"_\"+today.format(new java.util.Date());\n\n\t\tString ufn = responseMessagePath + responseFileName;\n\t\tFile resFile = new File(ufn+\".xml\");\n\t\t \n\t\tint i=0;\n\t\ttry {\n\t\t\t//create file and if it already exits\n\t\t\t//if file exist add counter to it\n\t\t\twhile(!resFile.createNewFile()){\n\t\t\t\tresFile = new File(ufn + \"_\" + (++i) +\".xml\");\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tWriter out = null;\n\t\t\tif(isUTF8Support) {\n\t\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(resFile), \"UTF8\"));\n\t\t\t} else {\n\t\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(resFile)));\n\t\t\t}\n\t\t\t\n \t\ttry {\n \t\t out.write(strResponse);\n \t\t} finally {\n \t\t out.close();\n \t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tlogger.info(\"Response received and saved successfully at :\" + responseMessagePath +\"\");\n\t\t\tlogger.info(\"The file name is :\" + resFile.getName());\n\t\t\tSystem.out.println(\"\\n Response received and saved successfully at :\" + responseMessagePath +\"\\n\");\n\t\t\tSystem.out.println(\"The file name is :\" + resFile.getName());\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "c4e961868977d4c3e83343c5afcaa072", "score": "0.67254514", "text": "private static void handleResponse(HttpResponse response, String outputFile)\n\t{\n\t try\n\t {\n\t byte data[] = new byte[BUFFER_SIZE];\n InputStream entityStream = response.getEntity().getContent();\n //Header header = response.getFirstHeader(\"Content-Disposition\");\n\n //String absPath = System.getProperty(\"user.dir\");\n \n //absPath = absPath.replaceAll(\"/bin\", \"/webapps\");\n \n \n File file = new File(outputFile);\n if (!file.exists())\n {\n File path = file.getParentFile();\n if ((path != null) && (!path.exists()))\n {\n path.mkdirs();\n }\n \n //LogUtil.severe(\"File does not exist: \" + file.getAbsolutePath()); \n //return;\n }\n \n FileOutputStream fs = new FileOutputStream(file.getAbsolutePath());\n for (;;) {\n int bytesRead = entityStream.read(data);\n if (bytesRead == -1) { // success, end of stream already reached\n break;\n }\n fs.write(data, 0, bytesRead);\n }\n fs.close();\n LogUtil.info(\"Torrent downloading succeed: \" + file.getAbsolutePath());\n\t }\n\t catch(Exception e)\n\t {\n\t LogUtil.printStackTrace(e);\n\t }\n }", "title": "" }, { "docid": "bca81f140091e32128daa3720db603a7", "score": "0.6428189", "text": "private void handleConnection(BufferedReader input, DataOutputStream output)\n\t{\n String path = new String(); \n String file = new String(); \n String request = new String();\n String response = new String();\n Scanner sc = new Scanner(System.in);\n\n try {\n //type of request:\n //GET /index.html HTTP/1.0\n //output.writeBytes(\"response message: \");\n\t\n System.out.println(\"\\n please enter the request (format is GET /index.html HTTP/1.0) :\"); \n request = sc.nextLine();\n ArrayList<String> res = new ArrayList<String>();\n \n\n if (request.startsWith(\"GET\")) \n {\n \n try\n {\n \t //get the html string and concatenate with the current path\n String pattern1 = \"GET /\";\n String pattern2 = \" HTTP\";\n String regexString = Pattern.quote(pattern1)+ \"(.*?)\" +Pattern.quote(pattern2);\n Pattern p = Pattern.compile(regexString);\n \t\tMatcher matcher1 = p.matcher(request);\n \t\t\n \t\twhile (matcher1.find())\n \t\t{\n \t\tfile = matcher1.group(1);\n \t\t}\n \t\tpath = file;\n }\n catch (Exception e)\n {\n \t System.out.println(\"Fail to parse the request\");\n }\n \n System.out.println(\"\\nClient requested :\" + new File(path).getAbsolutePath() + \"\\n\"); \n \n //try to get the content of the file\n try {\n \t File f = new File(path);\n \t if (f.isFile())\n \t {\n \t\t //System.out.println(\"file is found, opening file\");\n \t\t res = constructResponseMessage(file);\n \t\t \n \t\t //print out header of response message\n \t\t //output.writeBytes(\"response message: \");\n \t\t //output.writeBytes(\"\\r\\n\");\n \t\t \n \t\t for (String s: res)\n \t\t {\n \t\t System.out.println(s);\n \t\t //output.writeBytes(s);\n \t\t //output.writeBytes(\"\\r\\n\");\n \t\t }\n \t\t //open the file\n \t\t BufferedReader br = new BufferedReader( new FileReader(path));\n \t\t String line = null;\n \t\t while ((line = br.readLine()) != null)\n \t\t {\n \t\t\t //System.out.println(line);\n \t\t\t output.writeBytes(line);\n \t\t\t output.writeBytes(\"\\r\\n\"); \n \t\t }\n \t\t br.close();\n \t }\n\n //if the file can't be opened send a 404\n \telse \n \t{\n //System.out.println(\"404 File is not found\");\n \t\tresponse = \"<!DOCTYPE html> \" +\n \t\t\t\t\"<html> \" +\n \t\t\t\t\"<body> \" +\n \t\t\t\t\"<h1>404: File Not Found</h1>\"\n \t\t+\"</body>\"\n \t\t+\"</html>\" + \"\\r\\n\";\n output.writeBytes(response);\n output.writeBytes(\"\\r\\n\");\n \t} //close the stream\n //output.close();\n //System.exit(1);\n }\n catch (Exception e2) {};\n \n }\n\n //request does not contain \"GET\"\n else if (!request.startsWith(\"GET\"))\n {\n \t \n \tSystem.out.println(\"501 Bad Request\");\n \tresponse = \"<!DOCTYPE html> \" +\n \t\t\t\t\"<html> \" +\n \t\t\t\t\"<body> \" +\n \t\t\t\t\"<h1>501: Bad Request</h1>\"\n \t\t+\"</body>\"\n \t\t+\"</html>\" + \"\\r\\n\";\n output.writeBytes(response);\n output.writeBytes(\"\\r\\n\");\n }\n\n \n\n\n }\n catch (Exception ie) {\n \tSystem.out.println(\"I/O Error Request\" + ie);\n } //catch block\n\n \n try \n {\n //close open handles\n output.close();\n //sc.close();\n //System.exit(1);\n }\n catch (Exception e) {\n }\n\t}", "title": "" }, { "docid": "18c97955bc2cf1281d7a64d5df665a93", "score": "0.6197444", "text": "@Override\n public void run() {\n String pathName = fileBytesResponse.getString(\"pathName\");\n String encodedBytes = fileBytesResponse.getString(\"content\");\n ByteBuffer bytes = ByteBuffer.wrap(Base64.getDecoder().decode(encodedBytes));\n long position = fileBytesResponse.getLong(\"position\");\n boolean status = fileBytesResponse.getBoolean(\"status\");\n\n // Status is false. So something must have happened reading the file. So we need\n // to request for the file again\n// if (!status) {\n// Document fileDescriptor = (Document) fileBytesResponse.get(\"fileDescriptor\");\n// sendMessage(Messages.genFileBytesRequest(fileDescriptor, pathName, position));\n// return;\n// }\n\n // Safe file name so can write successfully\n if (fileSystemManager.isSafePathName(pathName)) {\n try {\n fileSystemManager.writeFile(pathName, bytes, position);\n fileSystemManager.checkWriteComplete(pathName);\n }\n // Cannot write the bytes so request again.\n catch (IOException e) {\n Document fileDescriptor = (Document) fileBytesResponse.get(\"fileDescriptor\");\n sendMessage(Messages.genFileBytesRequest(fileDescriptor, pathName, position));\n }\n // Ignore this exception\n catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }\n // Unsafe path name so don't do anything\n else {\n log.severe(\"WARNING: trying to write to an unsafe path\");\n }\n }", "title": "" }, { "docid": "0164bae152f4eb0ea7fd14802576059b", "score": "0.6180321", "text": "private static void writetoFile(BufferedReader reader, String statusCode) throws IOException {\n\n\t\tSystem.out.println(\"=============================================================================>>\");\n\n\t\tFileWriter fileWriter = new FileWriter(request.getFileWritePath(), true);\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n\t\tPrintWriter printWriter = new PrintWriter(bufferedWriter);\n\t\tString line;\n\t\tif (request.isVerbosePreset()) {\n\t\t\tprintWriter.println(\"=============================================================================>>\");\n\t\t\tprintWriter.println(statusCode);\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tprintWriter.println(line);\n\t\t\t\tif (line.equals(RIGHT_BRACKET)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {\n\t\t\tprintWriter.println(\"=============================================================================>>\");\n\t\t\tboolean isJson = false;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tif (line.trim().equals(LEFT_BRACKET))\n\t\t\t\t\tisJson = true;\n\t\t\t\tif (isJson) {\n\t\t\t\t\tprintWriter.println(line);\n\t\t\t\t\tif (line.equals(RIGHT_BRACKET)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"Response has been successfully written in ==> \" + request.getFileWritePath() + \" File path\");\n\n\t\tprintWriter.flush();\n\t\tprintWriter.close();\n\n\t}", "title": "" }, { "docid": "276e8dd3a64990d538353d81e40009c6", "score": "0.61394286", "text": "public void putFile(BufferedReader fileInput,\n OutputStreamWriter osw,\n int contentLength,\n String pathname) throws Exception{\n BufferedWriter fileWriter = null;\n try {\n String response;\n\n File f = new File(pathname);\n if (f != null && f.isFile() && !f.exists()) {\n response = \"HTTP/1.0 201 Created\\n\\n\";\n } else {\n response = \"HTTP/1.0 200 OK\\n\\n\";\n }\n\n fileWriter = new BufferedWriter(new FileWriter(f));\n String line = null;\n while((line = fileInput.readLine()) != null && !line.isEmpty()){\n fileWriter.write(line);\n }\n\n osw.write(response);\n }\n catch (Exception e) {\n osw.write (\"HTTP/1.0 400 Bad Request\\n\\n\");\n return;\n } finally {\n fileWriter.close();\n }\n }", "title": "" }, { "docid": "f9e2e3b7fb22a8ea8a549713530681f8", "score": "0.6105154", "text": "protected String parseResponse(InputStream input)\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (Compare.equals(getFilename(), \"\", Comparison.Equal))\n\t\t\t\tsetFilename(getDefaultFilename());\n\n\t\t\tif (Compare.equals(getFolder(), \"\", Comparison.Equal))\n\t\t\t\tsetFolder(getDefaultFolder());\n\n\t\t\tfile = new File(getFolder() + getFilename());\n\t\t\tFileUtils.copyInputStreamToFile(input, file);\n\t\t\treturn _SUCCESS;\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\treturn _FAILURE;\n\t\t}\n\t}", "title": "" }, { "docid": "d2103a205147013aa60ea9b050777db2", "score": "0.5964195", "text": "public static void outputFile(HttpServletResponse resp, File file,\n String name, String type) throws IOException {\n resp.reset();\n resp.setBufferSize(DEFAULT_BUFFER_SIZE);\n resp.setContentType(type);\n resp.setHeader(\"Content-Length\", String.valueOf(file.length()));\n resp.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + name +\"\\\"\");\n // Prepare streams.\n BufferedInputStream input = null;\n BufferedOutputStream output = null;\n try {\n // Open streams.\n input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);\n output = new BufferedOutputStream(resp.getOutputStream(), DEFAULT_BUFFER_SIZE);\n\n // Write file contents to response.\n byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n output.close(); output = null;\n input.close(); input = null;\n } finally {\n closeQuietly(output);\n closeQuietly(input);\n }\n }", "title": "" }, { "docid": "fead5bd0119bc6a85b0f58bb33862bf0", "score": "0.5950256", "text": "public void downloadFile(HttpServletResponse response, String contentType, String fileName, InputStream input);", "title": "" }, { "docid": "b883d0ab5cbdd706d554e99c6015f2f7", "score": "0.593664", "text": "@Override\n\tpublic void service(byte[] buffer, OutputStream out) throws Exception {\n\t\tString request=new String(buffer);\n\t\tString headrequest=request.substring(request.indexOf(\"\\r\\n\")+2, request.indexOf(\"\\r\\n\\r\\n\"));\n\t\tBufferedReader br=new BufferedReader(new StringReader(headrequest));\n\t\tString data=null;\n\t\tString boundary=null;\n\t\twhile((data=br.readLine())!=null){\n\t\t\tif(data.indexOf(\"Content-Type\")!=-1){\n\t\t\t\tboundary=data.substring(data.indexOf(\"boundary=\")+9, data.length())+\"\\r\\n\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(boundary==null){\n\t\t\tout.write(\"HTTP/1.1 200 OK\\r\\n\".getBytes());\n\t\t\tout.write(\"Content-Type:text/html\\r\\n\\r\\n\".getBytes());\n\t\t\tout.write(\"Upload failed\".getBytes());\n\t\t\treturn;\n\t\t}\n\t\tint index1=request.indexOf(boundary);\n\t\tint index2=request.indexOf(boundary, index1+boundary.length());\n\t\tint index3=request.indexOf(boundary, index2+boundary.length());\n\t\tint beforefile=request.indexOf(\"\\r\\n\\r\\n\",index2)+3;\n\t\tint afterfile=index3-4;\n\t\tint line1=request.indexOf(\"\\r\\n\",index2+boundary.length());\n\t\tString filepart=request.substring(index2+boundary.length(),line1);\n\t\tString name=filepart.substring(filepart.lastIndexOf(\"\\\\\")+1, filepart.length()-1);\n\t\tint len1=request.substring(0, beforefile+1).getBytes().length;\n\t\tint len2=request.substring(afterfile,request.length()).getBytes().length;\n\t\tint filelen=request.length()-len1-len2;\n\t\tFileOutputStream f=new FileOutputStream(\"D:\\\\a\");\n\t\tf.write(buffer,len1,filelen);\n\t\tf.close();\n\t\t\n\t\tout.write(\"HTTP1/1 200 ok\\r\\n\".getBytes());\n\t\tout.write(\"Content_type:text/html\\r\\n\\r\\n\".getBytes());\n\t\tout.write(\"<html><head><title>who is the bitch? </title></head><body>\".getBytes());\n\t\tout.write(new String(\"<h1>Uploading is finished.<br></h1>\").getBytes());\n\t\tout.write(new String(\"<h1>Filename:\"+name+\"<br></h1>\").getBytes());\n\t\tout.write(new String(\"<h1>Filelength\"+filelen+\"<br></h1></body></html>\").getBytes());\n\t\t\n}", "title": "" }, { "docid": "1f1a3246f2be657806a486d9577a711f", "score": "0.5914214", "text": "private void readHttpWriteFile(String urlString, String nameFileOutput) {\n int i = 0;\n try {\n FileOutputStream fos = openFileOutput(nameFileOutput, Context.MODE_PRIVATE);\n //fos.write(test_string.getBytes());\n // Petició HTTP\n // Prepare a request object\n URL url = new URL(urlString);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setRequestProperty(\"User-Agent\", \"\");\n connection.setRequestMethod(\"GET\");\n connection.setDoInput(true);\n connection.connect();\n // If the response does not enclose an entity, there is no need\n // to worry about connection release\n if (connection != null) {\n // Read Stream\n InputStream inputStream = connection.getInputStream();\n // agafar els bytes del InputStream i escriure'ls al fitxer\n i = 5;\n byte[] buf = new byte[512];\n int size;\n while ((size = inputStream.read(buf)) != -1) {\n fos.write(buf, 0, size);\n }\n // tanquem la petició http\n inputStream.close();\n }\n // tanquem el fitxer al que estem escrivint\n fos.close();\n Toast.makeText(getApplicationContext(), \"Audio file is written to \"\n + nameFileOutput, Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n System.out.println(\"Ex: \" + i + e.toString());\n }\n }", "title": "" }, { "docid": "9b8dee6bb4a3db53013d2e0c9eec8c16", "score": "0.58809733", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n final String path = request.getParameter(\"destination\");\n final Part filePart = request.getPart(\"file\");\n final String fullFileName = getFileName(filePart);\n String fileName = fullFileName.substring(0, fullFileName.indexOf('.'));\n final String extension = fullFileName.substring(fullFileName.indexOf('.')+1);\n\n System.out.println(\"fullFileName:\" + fullFileName);\n System.out.println(\"fileName:\" + fileName);\n System.out.println(\"extension:\" + extension);\n OutputStream out = null;\n InputStream filecontent = null;\n InputStream is = null;\n OutputStream responseOut = null;\n // final PrintWriter writer = response.getWriter();\n\n try {\n String newFileName = \"\";\n File newFile = null;\n filecontent = filePart.getInputStream();\n if (extension.equalsIgnoreCase(\"xml\")) {\n newFileName = path + File.separator\n + fileName + \".txt\";\n newFile = new File(newFileName);\n out = new FileOutputStream(newFile);\n PersonStorage ps = readFromXML(filecontent);\n writeToJson(ps, out);\n }\n\n if (newFile != null) {\n System.out.println(\"New File : \" +newFile.getAbsolutePath());\n responseOut = response.getOutputStream();\n is = new FileInputStream(newFile);\n int read = 0;\n final byte[] bytes = new byte[1024];\n\n while ((read = is.read(bytes)) != -1) {\n System.out.println(\"Read is\");\n responseOut.write(bytes, 0, read);\n }\n System.out.println(\"getMimeType \" + getMimeType(newFile.getName()));\n response.setContentType(getMimeType(newFile.getName()));\n response.setHeader(\"Content-Disposition\",\n \"attachment;filename=\\\"\" + newFile.getName() + \"\\\"\");\n }\n // writer.println(\"New file \" + newFileName + \" created at \" + path);\n\n } catch (FileNotFoundException fne) {\n /* writer.println(\"You either did not specify a file to upload or are \"\n + \"trying to upload a file to a protected or nonexistent \"\n + \"location.\");\n writer.println(\"<br/> ERROR: \" + fne.getMessage());*/\n fne.printStackTrace();\n\n\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n finally {\n if (out != null) {\n out.close();\n }\n if (filecontent != null) {\n filecontent.close();\n }\n /* if (writer != null) {\n writer.close();\n }*/\n if (responseOut != null){\n responseOut.close();\n }\n }\n\n\n }", "title": "" }, { "docid": "c4618b07f79e7db7e040718096344cc1", "score": "0.5854937", "text": "@Override\n \tpublic void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {\n \t\tLOGGER.info(\"Writing read document contents response.\");\n \t\t\n \t\t// Creates the writer that will write the response, success or fail.\n \t\tOutputStream os;\n \t\ttry {\n \t\t\tos = getOutputStream(httpRequest, httpResponse);\n \t\t}\n \t\tcatch(IOException e) {\n \t\t\tLOGGER.error(\"Unable to create writer object. Aborting.\", e);\n \t\t\treturn;\n \t\t}\n \t\t\n \t\t// Sets the HTTP headers to disable caching\n \t\texpireResponse(httpResponse);\n \t\t\n \t\t// If the request hasn't failed, attempt to write the file to the\n \t\t// output stream. \n \t\tif(! isFailed()) {\n \t\t\ttry {\n \t\t\t\t// Set the type and force the browser to download it as the \n \t\t\t\t// last step before beginning to stream the response.\n \t\t\t\thttpResponse.setContentType(\"ohmage/document\");\n \t\t\t\thttpResponse.setHeader(\"Content-Disposition\", \"attachment; filename=\" + documentName);\n \t\t\t\t\n \t\t\t\t// If available, set the token.\n \t\t\t\tif(getUser() != null) {\n \t\t\t\t\tfinal String token = getUser().getToken(); \n \t\t\t\t\tif(token != null) {\n \t\t\t\t\t\tCookieUtils.setCookieValue(httpResponse, InputKeys.AUTH_TOKEN, token, (int) (UserBin.getTokenRemainingLifetimeInMillis(token) / MILLIS_IN_A_SECOND));\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Set the output stream to the response.\n \t\t\t\tDataOutputStream dos = new DataOutputStream(os);\n \t\t\t\t\n \t\t\t\t// Read the file in chunks and write it to the output stream.\n \t\t\t\tbyte[] bytes = new byte[CHUNK_SIZE];\n\t\t\t\tint currRead;\n\t\t\t\twhile((currRead = contentsStream.read(bytes)) != -1) {\n \t\t\t\t\tdos.write(bytes, 0, currRead);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Close the document's InputStream.\n \t\t\t\tcontentsStream.close();\n \t\t\t\t\n \t\t\t\t// Flush and close the data output stream to which we were \n \t\t\t\t// writing.\n \t\t\t\tdos.flush();\n \t\t\t\tdos.close();\n \t\t\t\t\n \t\t\t\t// Flush and close the output stream that was used to generate\n \t\t\t\t// the data output stream.\n \t\t\t\tos.flush();\n \t\t\t\tos.close();\n \t\t\t}\n \t\t\t// If the error occurred while reading from the input stream or\n \t\t\t// writing to the output stream, abort the whole operation and\n \t\t\t// return an error.\n \t\t\tcatch(IOException e) {\n \t\t\t\tLOGGER.error(\"The contents of the file could not be read or written to the response.\", e);\n \t\t\t\tsetFailed();\n \t\t\t}\n \t\t}\n \t\t\n \t\t// If the request ever failed, write an error message.\n \t\tif(isFailed()) {\n \t\t\thttpResponse.setContentType(\"text/html\");\n\t\t\tWriter writer = new BufferedWriter(new OutputStreamWriter(os));\n \t\t\t\n \t\t\t// Write the error response.\n \t\t\ttry {\n \t\t\t\twriter.write(getFailureMessage()); \n \t\t\t}\n \t\t\tcatch(IOException e) {\n \t\t\t\tLOGGER.error(\"Unable to write failed response message. Aborting.\", e);\n \t\t\t}\n \t\t\t\n \t\t\t// Flush it and close.\n \t\t\ttry {\n \t\t\t\twriter.flush();\n \t\t\t\twriter.close();\n \t\t\t}\n \t\t\tcatch(IOException e) {\n \t\t\t\tLOGGER.error(\"Unable to flush or close the writer.\", e);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "8fba1f47b2a50666482518442a97d96d", "score": "0.5845407", "text": "private void writeContent(OutputStream os, File request) throws Exception\n{\n\t// sets date format\n\tDate d = new Date();\n\tDateFormat df = DateFormat.getDateTimeInstance();\n\tdf.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\n\t// writes file if it exists and replaces tags for <cs371date> and <cs371server>\n\tif ( request.exists() ) {\n\t\tScanner scan = new Scanner(request);\n\t\twhile ( scan.hasNext() ) {\n\t\t\tos.write(scan.nextLine().replace(\"<cs371date>\", (df.format(d)) ).replace(\"<cs371server>\", \"Jeffrey's Java Server\" ).getBytes() );\n\t\t}\n\t}\n \n}", "title": "" }, { "docid": "f97f19ed6430aec00f90c3f7793271ec", "score": "0.58379656", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n String fileName = request.getParameter(\"filename\");\n try (PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), \"UTF-8\"), true)) {\n String filePath = getServletContext().getRealPath(\"/upload/\" + fileName);\n File downloadFile = new File(filePath);\n \n FileInputStream fileInStream = new FileInputStream(downloadFile);\n \n String mimeType = getServletContext().getMimeType(filePath);\n if(mimeType == null) {\n mimeType = \"application/pdf\";\n }\n response.setContentType(mimeType);\n response.setContentLength((int) downloadFile.length());\n \n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\", URLEncoder.encode(downloadFile.getName().substring(downloadFile.getName().indexOf('_') + 1), \"UTF-8\"));\n //System.out.println(headerValue);\n response.setHeader(headerKey, headerValue);\n \n OutputStream outStream = response.getOutputStream();\n \n byte[] buffer = new byte[4096];\n int bytesRead = -1;\n\n while ((bytesRead = fileInStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n\n fileInStream.close();\n outStream.close();\n }\n }", "title": "" }, { "docid": "f7405d2bbacecf3c235473728ca9622c", "score": "0.5810365", "text": "public void fileResultOut();", "title": "" }, { "docid": "f53c957517822f7c48b0d47746517b7b", "score": "0.5784877", "text": "private void writeContent(OutputStream os, String path) throws Exception\n {\n \n File noice = new File(path);\n \n if(noice.exists() && !noice.isDirectory()){\n FileInputStream myStream = new FileInputStream(path);\n BufferedReader r = new BufferedReader(new InputStreamReader(myStream));\n \n \n if(format.startsWith(\"image/\"))\n \n Files.copy(noice.toPath(), os);\n \n \n \n else{\n \n String myFile;\n\n //Reading file\n while ((myFile = r.readLine()) != null){\n \n //Check for <cs371date> tag and replace\n if(myFile.toLowerCase().contains((\"<cs371date>\").toLowerCase()) == true){\n \n Date myDate = new Date();\n String s = myFile.replaceAll(\"<cs371date>\", myDate.toString());\n \n os.write(s.getBytes());\n os.write(\"<r>\".getBytes());\n }\n \n \n //Check for <cs371server> tag & replace\n if(myFile.toLowerCase().contains((\"<cs371server>\").toLowerCase()) == true){\n \n String serverID = \"Kousei Richeson's Server\";\n String s = myFile.replaceAll(\"<cs371server>\", serverID);\n os.write(s.getBytes());\n os.write(\"<r>\".getBytes());\n }\n \n \n os.write(myFile.getBytes());\n }\n \n r.close();\n }\n }\n \n \n \n else{\n os.write(\"<h3>Error: 404 not Found</h3>\".getBytes());\n }\n \n \n \n \n \n \n // os.write(\"<html><head></head><body>\\n\".getBytes());\n // os.write(\"<h3>My web server works!</h3>\\n\".getBytes());\n // os.write(\"</body></html>\\n\".getBytes());\n }", "title": "" }, { "docid": "1a53dcf0c233716705ac6fc71c38cfe7", "score": "0.568743", "text": "private static void writeStreamToFile(File target, InputStream in)\r\n {\r\n try\r\n {\r\n byte[] byteArray = streamToByteArray(in);\r\n FileOutputStream fileOutputStream = new FileOutputStream(target);\r\n fileOutputStream.write(byteArray);\r\n fileOutputStream.flush();\r\n fileOutputStream.close();\r\n }\r\n catch (IOException e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }", "title": "" }, { "docid": "8f4b13ae52e6a5c12b891847d198826e", "score": "0.5666525", "text": "public abstract OutputStream getOutputStream(Resource file);", "title": "" }, { "docid": "2188de605e6d4e4529177d985100961f", "score": "0.56321645", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) { \r\n \r\n int num = 0;\r\n\r\n String username = request.getParameter(\"username\").toString();\r\n String password = request.getParameter(\"password\").toString();\r\n num++;\r\n \r\n FileWriter writer = new FileWriter(\"C:/xyz.txt\", true);\r\n BufferedWriter logfile = new BufferedWriter(writer);\r\n logfile.write(\"your text\");\r\n logfile.close();\r\n \r\n \r\n }\r\n }", "title": "" }, { "docid": "0826536391e15f73ca3fc43b2cf0f255", "score": "0.5620755", "text": "public void run() {\n\t\tBufferedInputStream inStream = null;\n\t\tOutputStream outStream = null;\n\t\tHttpResponse response = new HttpResponse();\n\t\ttry {\n\t\t\t//Get the socket streams\n\t\t\tinStream = new BufferedInputStream(socket.getInputStream());\n\t\t\toutStream = socket.getOutputStream();\n\n\t\t\t//Create a file and a stream to receive the object\n\t\t\tFile file = File.createTempFile(\"HR-\",\".md\",dir);\n\t\t\tBufferedOutputStream outFile =\n\t\t\t\tnew BufferedOutputStream(\n\t\t\t\t\tnew FileOutputStream(file));\n\n\t\t\t//Get the headers\n\t\t\tHashtable<String,String> headers = getHeaders(inStream);\n\t\t\tString contentLength = headers.get(\"content-length\");\n\n\t\t\tint count = 0;\n\t\t\ttry { count = Integer.parseInt(contentLength); }\n\t\t\tcatch (Exception ignore) { }\n\n\t\t\t//Write the input into the file\n\t\t\tint n;\n\t\t\tint len = 4096;\n\t\t\tbyte[] buf = new byte[len];\n\t\t\twhile ((count > 0) && ((n=inStream.read(buf,0,len)) != -1)) {\n\t\t\t\toutFile.write(buf,0,n);\n\t\t\t\tcount -= n;\n\t\t\t}\n\n\t\t\tif (count != 0)\n\t\t\t\tthrow new Exception(\"Error: input stream reading complete; count = \"+count);\n\n\t\t\toutFile.flush();\n\t\t\toutFile.close();\n\n\t\t\t//Send a success response and close the streams\n\t\t\tresponse.write(\"OK\");\n\t\t\tresponse.send(outStream);\n\t\t\toutStream.flush();\n\t\t\toutStream.close();\n\t\t\tinStream.close();\n\n\t\t\t//Send an event to any listeners\n\t\t\tsendHttpFileEvent(this, HttpFileEvent.RECEIVED, file, null);\n\t\t}\n\n\t\tcatch (Exception ex) {\n\t\t\tsendHttpFileEvent(this, HttpFileEvent.ERROR, null,\n\t\t\t\t\"HttpReceiver: An error occurred while receiving a file.\");\n\t\t\tif (outStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tresponse.write(\"Unable to receive the object.\");\n\t\t\t\t\tresponse.send(outStream);\n\t\t\t\t\toutStream.flush();\n\t\t\t\t\toutStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ignore) { }\n\t\t\t}\n\t\t}\n\t\ttry { socket.close(); }\n\t\tcatch (Exception ignore) { }\n\t}", "title": "" }, { "docid": "346e3429f117225c6a2e794e802f9e4b", "score": "0.5617835", "text": "long write(FileContent output) throws IOException;", "title": "" }, { "docid": "f92cf06517963714ac3ec5b9ec1f7b12", "score": "0.55901515", "text": "@Override\n public final void writeResponse(ChannelHandlerContext ctx, HttpResponseStatus status, byte[] buf, String fileType, String streamId) {\n writeResponse(ctx, status, buf, fileType, streamId, true);\n }", "title": "" }, { "docid": "6af60aebb080fe8867ba8a400dd5105d", "score": "0.5589167", "text": "public response() {\n\t\tFile file = new File(path + fileName);//Request stores the FileName into Global variable fileName\n\t\t//System.out.println(\"Response Filename\" + file);\n\t\ttry{\n\n\t\t\t\tFileInputStream fis = new FileInputStream(file); //Sending the File to FileInputStream to start reading\n\n\t\t\t\tint end;\n\t\t\t\twhile( true ) {\n\t\t\t\t\tend = fis.read(); // read single line from the file\n\t\t\t\t\tif (end != -1){ // If not the end of file\n\t\t\t\t\t\tresponse += (char) end; //Appending the File content to respmnse variable\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak; // If we reach the end of file\n\t\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t//System.out.println(\"HTML Content\"+response);\n\t\t}\n\t\tcatch(FileNotFoundException e){\n\t\t\tresponseHeader = responseHeader.replace(\"200\", \"404\");//File Not Found Status Code\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tresponseHeader = responseHeader.replace(\"200\", \"500\");//Server Error\n\t\t}\n\t}", "title": "" }, { "docid": "314eae98daf03f2a605d31b5cc3f4c02", "score": "0.55754155", "text": "private void doOutput(DataOutputStream dataOutputStream) throws IOException {\n// dataOutputStream.writeBytes(Title);\n// dataOutputStream.writeBytes(LINE_END);\n\n// dataOutputStream.writeBytes(TWO_HYPHENS + BOUNDARY + LINE_END);\n// dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"description\\\"\" + LINE_END);\n// dataOutputStream.writeBytes(LINE_END);\n// dataOutputStream.writeBytes(Description);\n// dataOutputStream.writeBytes(LINE_END);\n\n dataOutputStream.writeBytes(TWO_HYPHENS + BOUNDARY + LINE_END);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"file\\\";filename=\\\"\" + mFileName + \"\\\"\" + LINE_END);\n dataOutputStream.writeBytes(LINE_END);\n\n// Log.v(TAG, \"Headers are written\");\n\n // create a buffer of maximum size\n int bytesAvailable = mFileInputStream.available();\n\n int maxBufferSize = 1024;\n int bufferSize = Math.min(bytesAvailable, maxBufferSize);\n byte[] buffer = new byte[bufferSize];\n\n // read file and write it into form...\n int bytesRead = mFileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0) {\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = mFileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = mFileInputStream.read(buffer, 0, bufferSize);\n }\n dataOutputStream.writeBytes(LINE_END);\n dataOutputStream.writeBytes(TWO_HYPHENS + BOUNDARY + TWO_HYPHENS + LINE_END);\n\n dataOutputStream.flush();\n }", "title": "" }, { "docid": "48b2fb44b6e2ace021bf3110124b2963", "score": "0.5559247", "text": "public static File writeInputFile(InputStream inputStream, String extension) {\n logger.debug(\">> set origin document for stateless service'...\");\n\n File originFile = null;\n OutputStream out = null;\n try {\n originFile = IOUtilities.newTempFile(\"origin\", extension);\n\n out = new FileOutputStream(originFile);\n\n byte buf[] = new byte[1024];\n int len;\n while ((len = inputStream.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n } catch (IOException e) {\n logger.error(\n \"An internal error occurs, while writing to disk (file to write '\"\n + originFile + \"').\", e);\n originFile = null;\n } finally {\n try {\n if (out != null) {\n out.close();\n }\n inputStream.close();\n } catch (IOException e) {\n logger.error(\"An internal error occurs, while writing to disk (file to write '\"\n + originFile + \"').\", e);\n originFile = null;\n }\n }\n return originFile;\n }", "title": "" }, { "docid": "1f7dcda8d9ab4932ab018ba1e1306128", "score": "0.5549717", "text": "FileObject toRealFile(FileObject output) throws ImpossibleOnRemoteFileException;", "title": "" }, { "docid": "cf1faaea68f244f6ef22e5f33fbf2ff1", "score": "0.5548884", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=utf-8\");\r\n String filePath = request.getParameter(\"path\");\r\n if(null == filePath || filePath.equals(\"\")) {\r\n response.getWriter().print(\"file not found\");\r\n return;\r\n }\r\n String fileName = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\r\n String sourcePath = SysConfig.getValue(\"SOURCE_PATH\", \"C:/upload\") + filePath;\r\n File f = new File(sourcePath);\r\n if (f.exists()) {\r\n FileInputStream filein = new FileInputStream(f);\r\n byte[] b = new byte[1024];\r\n try {\r\n int len = filein.read(b);\r\n if (fileName != null) {\r\n fileName = new String(fileName.getBytes(), \"ISO8859-1\");\r\n if (fileName != \"\") {\r\n response.addHeader(\"Content-Disposition\", \"attachment;filename=\" + fileName);\r\n }\r\n }\r\n while (len > 0) {\r\n response.getOutputStream().write(b, 0, len);\r\n len = filein.read(b);\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getStackTrace() + e.getMessage());\r\n } finally {\r\n response.getOutputStream().flush();\r\n response.getOutputStream().close();\r\n filein.close();\r\n }\r\n }else {\r\n response.getWriter().print(\"Download failed.The file is corrupt or has been deleted.\");\r\n }\r\n }", "title": "" }, { "docid": "291640fd7b8816916b8ca6b1e035e333", "score": "0.5540397", "text": "private String convertResponseToString(InputStream input) throws IOException {\n int bytesRead, totalRead = 0;\n byte[] buffer = new byte[1024];\n\n // for data from the server\n BufferedInputStream bufferedInStream = new BufferedInputStream(input);\n // to collect data in our output stream\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n DataOutputStream writer = new DataOutputStream(byteArrayOutputStream);\n\n // read the stream until end\n while ((bytesRead = bufferedInStream.read(buffer)) != -1) {\n writer.write(buffer);\n totalRead += bytesRead;\n }\n writer.flush();\n Log.d(\"hello\", \"Bytes read: \" + totalRead\n + \"(-1 means end of reader so max of)\");\n\n return new String(byteArrayOutputStream.toString());\n\n }", "title": "" }, { "docid": "e95fed359aec8520ee81bc920287f665", "score": "0.55390644", "text": "public InputStream finish() {\n // The line below appears in the original version but it is added to the class file and addFilePart() already adds a new line\n // writer.append(LINE_FEED).flush();\n writer.append(\"--\").append(boundary).append(\"--\").append(LINE_FEED);\n writer.flush();\n writer.close();\n\n // checks server's status code first\n try {\n final int status = connection.getResponseCode();\n if (status == HttpURLConnection.HTTP_OK) {\n return connection.getInputStream();\n } else {\n throw new IOException(\"Server returned non-OK status: \" + status);\n }\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }", "title": "" }, { "docid": "29af9d44bdf5b610b7d3b0d2b8a57c74", "score": "0.55359334", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n Part filePart = request.getPart(\"cpp\"); // Retrieves <input type=\"file\" name=\"file\">\n String filename = getFileName(filePart);\n byte bytes[] = new byte[1024 * 4];\n String path = request.getParameter(\"path\");\n String username = request.getParameter(\"uname\");\n\n if (!filename.isEmpty()) {\n FileOutputStream output = new FileOutputStream(path + \"avatar/\" + username + \".jpg\");\n try {\n InputStream input = filePart.getInputStream();\n try {\n while (true) {\n int count = input.read(bytes);\n if (count == -1)\n break;\n output.write(bytes, 0, count);\n }\n } finally {\n input.close();\n }\n } finally {\n output.close();\n }\n }\n } finally { \n out.close();\n }\n }", "title": "" }, { "docid": "9c41bbe8f5438d5d7eaff2b11bc048f9", "score": "0.55220366", "text": "public static void outputFile(HttpExchange he, byte[] buffer, OutputStream os, File file) throws FileNotFoundException {\r\n\t\tFileInputStream fs = new FileInputStream(file);\r\n\t\ttry {\r\n\t\t\tint count;\r\n\t while ((count = fs.read(buffer)) > 0) {\r\n\t os.write(buffer,0,count);\r\n\t }\r\n\t\t} catch (Exception e) {\r\n\t\t\t//ignore\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tfs.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "45b48011adf64f63275e2a2b0107e927", "score": "0.55205256", "text": "protected void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException\n {\n try\n {\n if(request.getQueryString() != null) // GET file.\n {\n java.lang.String[] parameters = request.getQueryString().split(java.util.regex.Pattern.quote(AND));\n java.lang.String file = \"\";\n java.lang.String type = BIN;\n for(java.lang.String iteratorParameter : parameters)\n {\n java.lang.String[] keyValues = iteratorParameter.split(java.util.regex.Pattern.quote(EQUALS));\n if(keyValues[0].equals(FILE))\n {\n file = java.net.URLDecoder.decode(keyValues[1], URL_ENCODING);\n }\n else if(keyValues[0].equals(TYPE))\n {\n type = keyValues[1];\n }\n }\n if(type.equals(TEXT))\n {\n java.lang.String line;\n java.io.BufferedReader fileReader = new java.io.BufferedReader(new java.io.InputStreamReader(request.getInputStream(), elv.util.Util.FILE_ENCODING));\n java.io.PrintWriter fileWriter = new java.io.PrintWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(file), elv.util.Util.FILE_ENCODING));\n while((line = fileReader.readLine()) != null)\n {\n fileWriter.println(line);\n }\n fileWriter.close();\n fileReader.close();\n }\n else if(type.equals(BIN))\n {\n java.io.InputStream inputStream = request.getInputStream();\n java.io.OutputStream outputStream = new java.io.FileOutputStream(file);\n int count;\n byte[] buffer = new byte[elv.util.Util.BUFFER_SIZE];\n while((count = inputStream.read(buffer, 0, elv.util.Util.BUFFER_SIZE)) != -1)\n {\n outputStream.write(buffer, 0, count);\n }\n outputStream.close();\n inputStream.close();\n }\n // Write nothing to the response.\n java.io.ObjectOutputStream outputStream = new java.io.ObjectOutputStream(response.getOutputStream());\n outputStream.writeObject(null);\n outputStream.close();\n }\n }\n catch(java.lang.Exception exc)\n {\n java.io.ObjectOutputStream outputStream = new java.io.ObjectOutputStream(response.getOutputStream());\n outputStream.writeObject(exc);\n outputStream.close();\n }\n }", "title": "" }, { "docid": "5a789633a5829ad23ad51cb658ba14d0", "score": "0.5513091", "text": "private void appendFile(HttpServletResponse response, String filename) {\n\t\t// Displaying home interface\n\t\tFile index = new File(filename);\n\t\tFileInputStream fileInput = null;\n\t\ttry {\n\t\t\tfileInput = new FileInputStream(index);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint content;\n\t\ttry {\n\t\t\twhile ((content = fileInput.read()) != -1) {\n\t\t\t\tresponse.getOutputStream().write(content);\n\t\t\t}\n\t\t\tfileInput.close(); // Closing the file stream\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "ff1337f91777d8ff0901946234d698dc", "score": "0.54889023", "text": "private File saveRdataFile () {\n LOG.info(\"RDATAFileReader: Saving Rdata File from Input Stream\");\n \n if (mInStream == null) {\n LOG.info(\"RDATAFileReader: No input stream was specified. Not writing file and returning NULL\");\n return null;\n }\n \n byte [] buffer = new byte [1024];\n int bytesRead = 0;\n RFileOutputStream outStream = null;\n RConnection rServerConnection = null;\n \n try {\n LOG.info(\"RDATAFileReader: Opening R connection\");\n rServerConnection = new RConnection(RSERVE_HOST, RSERVE_PORT);\n \n LOG.info(\"RDATAFileReader: Logging into R connection\");\n rServerConnection.login(RSERVE_USER, RSERVE_PASSWORD);\n \n LOG.info(\"RDATAFileReader: Attempting to create file\");\n outStream = rServerConnection.createFile(mDataFile.getAbsolutePath());\n \n LOG.info(String.format(\"RDATAFileReader: File created on server at %s\", mDataFile.getAbsolutePath()));\n }\n catch (IOException ex) {\n LOG.warning(\"RDATAFileReader: Could not create file on R Server\");\n }\n catch (RserveException ex) {\n LOG.warning(\"RDATAFileReader: Could not connect to R Server\");\n }\n \n /*\n * Read stream and write to destination file\n */\n try {\n // Read from local file and write to rserver 1kb at a time\n while (mInStream.read(buffer) != -1) {\n outStream.write(buffer);\n bytesRead++;\n }\n }\n catch (IOException ex) {\n LOG.warning(\"RDATAFileReader: Could not write to file\");\n LOG.info(String.format(\"Error message: %s\", ex.getMessage()));\n }\n catch (NullPointerException ex) {\n LOG.warning(\"RDATAFileReader: Data file has not been specified\");\n }\n \n // Closing R server connection\n if (rServerConnection != null) {\n LOG.info(\"RDATAFileReader: Closing R server connection\");\n rServerConnection.close();\n }\n \n return mDataFile;\n }", "title": "" }, { "docid": "bee7361f08d0db7b2c6c76a7fa17716a", "score": "0.54839754", "text": "@GetMapping(\"/downloadFileFor\")\n public void downloadFileFor(HttpServletResponse response) {\n String path = \"F:\\\\pic\\\\Kk.java\";\n\n File file = new File(path);\n\n response.setCharacterEncoding(\"UTF-8\");\n String name = file.getName();\n try {\n name = URLEncoder.encode(name, \"UTF-8\");\n response.setHeader(\"Content-Disposition\", \"attachment;filename=\" + name);\n System.out.println(name);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n response.setContentType(\"text/html;charset=utf-8\");\n\n try {\n FileInputStream fileInputStream = new FileInputStream(path);\n try {\n OutputStream outputStream = response.getOutputStream();\n byte[] b = new byte[1024];\n int len = 0;\n while ((len = fileInputStream.read(b)) != -1) {\n outputStream.write(b, 0, len);\n }\n outputStream.flush();\n outputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "72398e469863e5b1ef6eb264fb2cea11", "score": "0.5481448", "text": "public abstract String outputToFile();", "title": "" }, { "docid": "31d7ee39bc920b792d1cc1f8df5f9911", "score": "0.5460959", "text": "@PostMapping(value = \"/write\", consumes = MediaType.APPLICATION_OCTET_STREAM_VALUE)\n public ResponseEntity<String> stream(@RequestHeader MultiValueMap<String, String> headers,\n HttpServletRequest request) {\n return processRequest(headers, request);\n }", "title": "" }, { "docid": "396462242cfdaa29f624d6c341121f50", "score": "0.5449329", "text": "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\tif(file.isDirectory()){\n\t\t\t\t\tout.write(new byte[]{(byte)0});//0 directory 1 file 2 data\n\t\t\t\t\tint fNLength = fileName.getBytes().length;\n\t\t\t\t\tout.write(intToBytes(fNLength));\n\t\t\t\t\tout.write(fileName.getBytes());\n\t\t\t\t\tout.flush();\n\t\t\t\t\tout.close();\n\t\t\t\t\tsocket.close();\n\t\t\t\t}else{\n\t\t\t\t\tout.write(new byte[]{(byte)1});\n\t\t\t\t\tint fNLength = fileName.getBytes().length;\n\t\t\t\t\tout.write(intToBytes(fNLength));\n\t\t\t\t\tout.write(fileName.getBytes());\n\t\t\t\t\tout.flush();\n\t\t\t\t\tout.write(new byte[]{(byte)2});\n\t\t\t\t\tlong fileLength = file.length();\n\t\t\t\t\tout.write(longToBytes(fileLength));\n\t\t\t\t\tout.flush();\n\t\t\t\t\tin = new FileInputStream(file);\n\t\t\t\t\tint length = 0;\n\t\t\t\t\twhile((length = in.read(buff)) != -1){\n\t\t\t\t\t\tout.write(buff, 0, length);\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\tsocket.close();\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\ttry {\n\t\t\t\t\tif(out != null)out.close();\n\t\t\t\t\tif(in != null)in.close();\n\t\t\t\t\tif(socket != null)socket.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "195b8072554f9907712325eb611611fb", "score": "0.5448015", "text": "private void readInputStreamAndDownload(String outputFile, BufferedInputStream in) {\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream(outputFile);\r\n\t\t\tBufferedOutputStream bout = new BufferedOutputStream(fos,1024);\r\n\t\t\tbyte[] data = new byte[1024];\r\n\t\t\tint x=0;\r\n\t\t\twhile((x=in.read(data,0,1024))>=0){\r\n\t\t\t\tbout.write(data,0,x);\r\n\t\t\t}\r\n\t\t\tbout.close();\r\n\t\t} catch (Exception e){\r\n\t\t\t//System.out.println(e.getMessage());\r\n\t\t} finally {\t\r\n\t\t\ttry {\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t//System.out.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\" ++ Downloaded: \"+outputFile);\r\n\t}", "title": "" }, { "docid": "0145c20c89ff6217170627ab1c26c270", "score": "0.54375756", "text": "private static void postResponseToFile(String urlString) {\n Function<String, HttpResponse<Path>> postResponseToFileFunction = null; // ###Implement me###\n\n // todo Implement a function that takes the body from the previous response and prints if status == 200\n // Otherwise, just print the status.\n Consumer<HttpResponse<Path>> responseConsumer = null; // ###Implement me###\n\n responseConsumer.accept(postResponseToFileFunction.apply(urlString));\n }", "title": "" }, { "docid": "30d9ede8b35ba81c720595a4c85406dc", "score": "0.5436918", "text": "private static void handleOutput(HttpExchange exchange, String output) throws IOException {\n OutputStream outputStream = exchange.getResponseBody();\n try(OutputStreamWriter writer = new OutputStreamWriter(outputStream)) {\n writer.write(output);\n }\n }", "title": "" }, { "docid": "037b069cc9dbf01225d170b2694e7374", "score": "0.5427496", "text": "OutputStream out();", "title": "" }, { "docid": "0af17215571b1bfc8f8ba2dfab079adc", "score": "0.5423897", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Give the full path to the input File: \");\n String inputFilePath = scanner.nextLine();\n // our outputFile path\n System.out.print(\"Give the full path to the response File: \");\n String outputFilePath = scanner.nextLine();\n // where we want to upload\n System.out.print(\"Give the full path to the remote response File: \");\n String remoteFullFilePath = scanner.nextLine();\n\n scanner.close();\n\n OwnConnection ownConnection = new OwnConnection();\n\n InputFileReader reader = new InputFileReader(inputFilePath, ownConnection.getDBConnection());\n\n List<Response> output = reader.generateResponses();\n\n ownConnection.close();\n\n OutputFileWriter writer = new OutputFileWriter(output, outputFilePath);\n\n writer.writeFile();\n\n FtpUploader uploader = new FtpUploader(outputFilePath, remoteFullFilePath);\n\n uploader.upload();\n\n }", "title": "" }, { "docid": "592c2d860df9238846482edac22016d1", "score": "0.53898585", "text": "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tString filename=TextUtil.httpToUTF8(request.getParameter(\"filename\"));\n\t\tString dir=request.getParameter(\"dir\");\n response.setContentType(getServletContext().getMimeType(filename)); \n response.setHeader(\"contentType\", \"text/html; charset=utf-8\");\n response.setHeader(\"Content-Disposition\",\"attachment;filename=\"+filename); \n\t\t\n \tString fullFileName = request.getSession().getServletContext().getRealPath(\"/save/\"+dir+\"/\"+filename);\n InputStream in = new FileInputStream(fullFileName); \n OutputStream out = response.getOutputStream();\n \n int b;\n try {\n \twhile((b=in.read())!= -1) \n { \n out.write(b);\n } \n in.close(); \n out.close(); \n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "4230c372946c75d1f5f05f8e4078c89a", "score": "0.53844583", "text": "void storePublishedFileInfo(String response)\n {\n try {\n System.out.println(\"\\nEntered StorePublishedFileInfo\");\n StringTokenizer st = new StringTokenizer(response, \":\");\n String type = st.nextToken();\n String fileName = st.nextToken();\n String fileSize = st.nextToken();\n String abstractOfFile = st.nextToken();\n //System.out.println(\"extracted msgs\");\n byte[] digest = new byte[1024];\n for(int i = 0; i < 1024 ; i++)\n {\n digest[i] = (byte) in.read();\n System.out.print(digest[i]);\n }\n System.out.println(\"\\ndigest extracted\");\n //Time to insert into the database\n Properties vals = new Properties();\n vals.put(\"name\", fileName);\n vals.put(\"size\",fileSize);\n vals.put(\"fileabstract\",abstractOfFile);\n vals.put(\"digest\",digest.toString());\n vals.put(\"ip\",s.getInetAddress().getHostAddress());\n DBOperations.insertIntoFiles(vals,IPClient.con,digest);\n System.out.println(\"Inserted successfully\");\n }catch (IOException ex) {\n System.out.println(\" Exception in storePublishedFileInfo :\" + ex.getMessage());\n Logger.getLogger(ProcessRequest.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "title": "" }, { "docid": "548a6b8a7c93a6d9692caf95ad3a3bbd", "score": "0.5347405", "text": "public void createResultFile() {\r\n try {\r\n file = new RandomAccessFile(new File(\"test.save\"), \"rw\");\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File was not created!\");\r\n }\r\n }", "title": "" }, { "docid": "532f9dc7e438c79c9d97094ce56048e6", "score": "0.53458333", "text": "private void doWork() {\n\t\ttry {\n\t\t\t\n\t\t\tPrintWriter writer = new PrintWriter(\n\t\t\t\t\t\t\tnew BufferedOutputStream(socket.getOutputStream()));\n\t\t\tBufferedReader reader= new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(socket.getInputStream()));\n\t\t\t\n\t\t\t//out(reader);\n\t\t\t// Read the first line and determine whether it's a POST or GET\n\t\t\tString line= reader.readLine();\n\t\t\treq = getRequestType(line);\n\t\t\t\n\t\t\t// Still from the first line, read the file requested. \n\t\t\tclazz = getRequestedClass(line);\n\t\t\t\n\t\t\t// Still from the first line, read the GET parameters (if any)\n\t\t\tmethodAndParameters=getGetParameters(line);\n\t\t\t\n\t\t\t// Read the (general) request parameters and put them in the Map\n\t\t\theaderData=getheaderData(reader);\n\t\t\t\n\t\t\t// We gathered the basic information (GET parameters will be added later)\n\t\t\t// Read the requested file and put it in a StringBuffer for further processing\n\t\t\t//String file = readRequestedFile(path);\n\t\t\t\n\t\t\t// Now process the buffer. Search through it and replace all custom tags\n\t\t\tString file=replaceCustomTags(clazz);\n\t\t\t\n\t\t\t// Prepend the HTTP header\n\t\t\tString ans=prependHTTPHeader(file);\n\t\t\t\n\t\t\t// Write the answer to the client\n\t\t\twriteAnswer(writer,ans);\n\t\t\tString lol=\"\";\n//\t\t\tfor(lol=reader.readLine();;lol=reader.readLine()){\n//\t\t\t\tout(lol);\n//\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Implement error handling\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "ebaa0f485830183c0c26f7fad81b0139", "score": "0.53431004", "text": "public OutputStream getOutputStream() throws IOException {\r\n // NOTE: don't use VFS output stream - it uses Buffer and doesn't work under JBX\r\n //return VFS.getOutputStream( url );\r\n\r\n try {\r\n saveBuffers();\r\n } catch (IOException ignore) {\r\n }\r\n\r\n OutputStream outputStream = null;\r\n try {\r\n outputStream = url.getFilesystem().getOutputStream(url);\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n\r\n// outputStream = VFS.getOutputStream(url);\r\n }\r\n\r\n//System.err.println(\"outputStream: \" + outputStream);\r\n return outputStream;\r\n }", "title": "" }, { "docid": "53ed15baf096f1b9eeecbe818fc0aaac", "score": "0.5340688", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String filePath = request.getPathInfo();\n String filename = request.getParameter( \"filename\" );\n if( filePath == null && filename != null ) filePath = \"/\" + filename;\n if( filename == null ) filename = filePath;\n if( filename != null ) filename = (new File(filename)).getName();\n \n if( filePath != null ) {\n InputStream in = null;\n OutputStream out = null;\n try {\n in = getServletContext().getResourceAsStream(basePath + filePath);\n if( in != null ) {\n out = new BufferedOutputStream( response.getOutputStream() );\n in = new BufferedInputStream( in );\n String contentType = \"application/unknow\";\n System.out.println( \"contentType: \" + contentType );\n response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + filename + \"\\\"\");\n int c; while( ( c=in.read() ) != -1 ) out.write( c );\n return;\n }\n } finally {\n if( in != null ) try { in.close(); } catch( Exception e ) {}\n if( out != null ) try { out.close(); } catch( Exception e ) {}\n }\n }\n response.sendError( HttpServletResponse.SC_NOT_FOUND );\n }", "title": "" }, { "docid": "de9f6893c618bad963ff426477b9a610", "score": "0.5335431", "text": "private synchronized void writeOut(){\n //first, make sure our temp directory exists\n new File(tempFileDirectory).mkdirs();\n\n\n XMLOutputter out = new XMLOutputter();\n Document doc = new Document();\n Date d = new Date();\n String newFileName = tempFileDirectory + \"valsToSend\"\n + Long.toString(d.getTime()) + \".xml\";\n\n \n doc.addContent(docRoot);\n docRoot = new Element(DOCUMENT_ROOT_TAG);\n valCount = 0;\n\n try{\n java.io.FileWriter writer = new java.io.FileWriter(newFileName);\n out.output(doc, writer);\n writer.flush();\n writer.close();\n\n }catch(java.io.IOException e){\n e.printStackTrace();\n }\n raiseEvent(events.newFile);\n }", "title": "" }, { "docid": "77363a343ff43553485fb11c1dcc4eb6", "score": "0.53344226", "text": "@Override\n public void onResponse(byte[] response) {\n try {\n\n if (response!=null) {\n llforinfo.setVisibility(View.GONE);\n int count=0;\n getDataFolder(MainActivity.this);\n FileOutputStream output = new FileOutputStream(new File(getDataFolder(MainActivity.this),\n filenames+\".mp3\")\n );\n output.write(response);\n output.flush();\n output.close();\n savaBookLocalymp3(filenames +\n \".mp3\", getDataFolder(MainActivity.this)+\"/\"+\n filenames + \".mp3\",count2);\n// Toast.makeText(MainActivity.this, \"Download complete.\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n Log.e(\"KEY_ERROR\", \"UNABLE TO DOWNLOAD FILE \"+e);\n llforinfo.setVisibility(View.GONE);\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "06742acc7d2ada6dc300a05fb097f332", "score": "0.53249717", "text": "private void saveFile(InputStream uploadedInputStream, String serverLocation) {\n\n\t\t\n\t\tSystem.out.println(\"cccccccccccccccccccc\");\n\t\t\n\t\ttry {\n\t\t\tOutputStream outpuStream = new FileOutputStream(new File(serverLocation));\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"dddddddddddddddddddd\");\n\t\t\t\n\t\t\tint read = 0;\n\t\t\tbyte[] bytes = new byte[1024];\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"eeeeeeeeeeeeeeeee\");\n\n\t\t\toutpuStream = new FileOutputStream(new File(serverLocation));\n\t\t\twhile ((read = uploadedInputStream.read(bytes)) != -1) {\n\t\t\t\toutpuStream.write(bytes, 0, read);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"ffffffffffffffffffff\");\n\t\t\t\n\t\t\toutpuStream.flush();\n\t\t\toutpuStream.close();\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "32f39add6dab7c78d67396677728eb9f", "score": "0.53185517", "text": "private void sendWADOFile( HttpServletResponse response, WADOResponseObject respObject ) {\n\t\ttry {\n\t\t\tInputStream stream = respObject.getStream();\n\t\t\tif ( stream != null ) {\n\t\t\t\tresponse.setContentType( respObject.getContentType() );\n\t\t\t\t\n\t\t\t\tOutputStream out = response.getOutputStream();\n\t\t\t\tInputStream in;\n\t\t\t\tif ( stream instanceof BufferedInputStream ) {\n\t\t\t\t\tin = stream;\n\t\t\t\t} else {\n\t\t\t\t\tin = new BufferedInputStream( stream, BUF_LEN );\n\t\t\t\t}\n\t\t\t\tbyte[] buf = new byte[BUF_LEN];\n\t\t\t\ttry {\n\t\t\t\t\tint len = in.read( buf );\n\t\t\t\t\twhile ( len > 0 ) {\n\t\t\t\t\t\tout.write( buf, 0, len );\n\t\t\t\t\t\tlen = in.read( buf );\n\t\t\t\t\t}\n\t\t\t\t} catch ( Exception e ) {\n\t\t\t\t\tdelegate.getLogger().error(\"Exception while writing WADO file to client! reason:\"+e.getMessage(), e );\n\t\t\t\t} finally {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception x ) {\n\t\t\tx.printStackTrace();\n\t\t\tsendError(\tresponse, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, x.getMessage() );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "00cba1f9f1137c696d455bc66542c83e", "score": "0.53169775", "text": "OutputStream openStream() throws IOException;", "title": "" }, { "docid": "dd6c4b734042ecdbcbbfbfdc3d19712b", "score": "0.5300254", "text": "public void displayFile(String fileName, PrintStream out, String contentType) {\n\t\ttry {\n if (fileName.indexOf(\"/\") == 0) {\n \tfileName = fileName.substring(1);\n }\n \n InputStream file = new FileInputStream(fileName);\n File f1 = new File(fileName);\n \n long contentLength = f1.length();\n\n //prints the header for the file being served.\n out.print(\"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Length: \" + contentLength\n + \"\\r\\nContent-Type: \" + contentType + \"\\r\\n\\r\\n\");\n\n //message on server console to let the server user know what the client is accessing\n System.out.println(\"\\nServer sending:\\ncontentType: \" + contentType + \"\\nfilename: \" + fileName + \"\\n\");\n\n\n //writes the file to a buffer to write to the client.\n byte[] fileBytes = new byte[10000]; // array of bytes to hold the file. 10000 bytes can hold a little less than 10KB\n\t int numberOfBytes = file.read(fileBytes); // get number of bytes\n\t out.write(fileBytes, 0, numberOfBytes); // write all the bytes\n\t System.out.write(fileBytes, 0, numberOfBytes); // write all the bytes\n\t \n\t out.flush(); // flush\n\t file.close(); // close\n } catch (IOException x) {\n System.out.println(x);\n }\n\t\t\t\t \n}", "title": "" }, { "docid": "24feecc76dc48251f4f691e62833aa7d", "score": "0.52993965", "text": "public HttpURLConnection getOutputStream(String file, long length) {\n//\t\tURL url = new URL(\"http://www.domain.com/webems/upload.do\");\n//\t\t// create a boundary string\n//\t\tString boundary = MultiPartFormOutputStream.createBoundary();\n//\t\tURLConnection urlConn = MultiPartFormOutputStream.createConnection(url);\n//\t\turlConn.setRequestProperty(\"Accept\", \"*/*\");\n//\t\turlConn.setRequestProperty(\"Content-Type\", \n//\t\t\tMultiPartFormOutputStream.getContentType(boundary));\n//\t\t// set some other request headers...\n//\t\turlConn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n//\t\turlConn.setRequestProperty(\"Cache-Control\", \"no-cache\");\n//\t\t// no need to connect cuz getOutputStream() does it\n//\t\tMultiPartFormOutputStream out = \n//\t\t\tnew MultiPartFormOutputStream(urlConn.getOutputStream(), boundary);\n//\t\t// write a text field element\n//\t\tout.writeField(\"myText\", \"text field text\");\n//\t\t// upload a file\n//\t\tout.writeFile(\"myFile\", \"text/plain\", new File(\"C:\\\\test.txt\"));\n//\t\t// can also write bytes directly\n//\t\t//out.writeFile(\"myFile\", \"text/plain\", \"C:\\\\test.txt\", \n////\t\t\t\"This is some file text.\".getBytes(\"ASCII\"));\n//\t\tout.close();\n//\t\t// read response from server\n//\t\tBufferedReader in = new BufferedReader(\n//\t\t\tnew InputStreamReader(urlConn.getInputStream()));\n//\t\tString line = \"\";\n//\t\twhile((line = in.readLine()) != null) {\n//\t\t\t System.out.println(line);\n//\t\t}\n//\t\tin.close();\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bac1a47f0312ea573e84ceefad404c10", "score": "0.5297032", "text": "public static void storeJsonStreamToFile(Object data) {\n\t\t//the converted JSon stream\n\t\tString result = convertJavaClassToJsonStream(data);\n\t\t// the file path\n\t\tString filePath = \"f:\\\\CrawlerResult\\\\githubInfo.json\";\n\t\tBufferedReader reader = null;\n\t\tBufferedWriter writer = null;\n\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tif (!file.getParentFile().exists())\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\treader = new BufferedReader(new StringReader(result));\n\t\t\twriter = new BufferedWriter(new FileWriter(file));\n\t\t\tchar[] buf = new char[1024];\n\t\t\tint len;\n\t\t\twhile ((len = reader.read(buf)) != -1) {\n\t\t\t\twriter.write(buf, 0, len);\n\t\t\t}\n\t\t\twriter.flush();\n\t\t\treader.close();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (reader != null) {\n\t\t\t\ttry {\n\t\t\t\t\treader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (writer != null) {\n\t\t\t\ttry {\n\t\t\t\t\twriter.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "e05f75b421f1438a2d50e3947b462249", "score": "0.52661234", "text": "public boolean writeStringToFile(String output, String filename);", "title": "" }, { "docid": "92393043515cd42f8257f7052b7dc43a", "score": "0.5258944", "text": "@Override\n public void onResponse(byte[] response) {\n try {\n\n if (response!=null) {\n llforinfo.setVisibility(View.GONE);\n int count=0;\n getDataFolder(MainActivity.this);\n FileOutputStream output = new FileOutputStream(new File(getDataFolder(MainActivity.this),\n filenames+\".pdf\"));\n output.write(response);\n output.flush();\n output.close();\n savaBookLocaly(filenames, getDataFolder(MainActivity.this)+\"/\" + filenames + \".pdf\");\n// Toast.makeText(MainActivity.this, \"Download complete.\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n Log.e(\"KEY_ERROR\", \"UNABLE TO DOWNLOAD FILE \"+e);\n llforinfo.setVisibility(View.GONE);\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5fa68480a80f69ba9fc4b66b60cf4b8e", "score": "0.5252107", "text": "private void writeHTTPHeader(OutputStream os, String contentType, String path) throws Exception\n {\n \n \n Date d = new Date();\n DateFormat df = DateFormat.getDateTimeInstance();\n df.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n //Checking if file exists write request as okay\n File f = new File(path);\n \n if(f.exists() && !f.isDirectory()){\n os.write(\"HTTP/1.1 200 OK\\n\".getBytes());\n }\n else {\n os.write(\"HTTP/1.1 404 not found\\n\".getBytes());\n }\n \n os.write(\"Date: \".getBytes());\n os.write((df.format(d)).getBytes());\n os.write(\"\\n\".getBytes());\n os.write(\"Server: Kousei's very own server\\n\".getBytes());\n os.write(\"Connection: close\\n\".getBytes());\n os.write(\"Content-Type: \".getBytes());\n os.write(contentType.getBytes());\n os.write(\"\\n\\n\".getBytes()); // HTTP header ends with 2 newlines\n \n \n \n return;\n }", "title": "" }, { "docid": "c8e3f4281f99f5835e64766b994e083b", "score": "0.5250351", "text": "private void download(String fp,Boolean toServer ) throws IOException {\n\n String filePath=filesDirectory+fp;\n\n LockRegistry.INSTANCE.acquire(filePath, LockRegistry.LockType.READ); //lock file to read\n byte[] fileBytes= MethodHelper.readFileBytes(filePath);\n LockRegistry.INSTANCE.release(filePath, LockRegistry.LockType.READ); //release the file lock\n byte[] fileEnc;\n IvParameterSpec iv= Crypto.generateIV();\n if (toServer){\n fileEnc= Message.createEnFileToServer(sessionKey,iv,fileBytes);\n }\n else {\n fileEnc= Message.createEncFile(Constants.AES_CBC,sessionKey,hmacPassword,iv,fileBytes);\n }\n\n int dataLength=fileEnc.length;\n int count=0;\n byte[] fileChunk;\n while(count!=dataLength){\n int size = 1024*1024;\n if(dataLength - count >= size){count += size;}\n else{size = (int)(dataLength - count); count = dataLength;}\n fileChunk = new byte[size];\n System.arraycopy(fileEnc,(count-size),fileChunk,0,size);\n outputStream.write(fileChunk);\n }\n }", "title": "" }, { "docid": "86dea22455f62935041ea2f041810d11", "score": "0.5234482", "text": "@Override\n public final void writeResponse(ChannelHandlerContext ctx, HttpResponseStatus status, byte[] buf, String fileType, String streamId, boolean cache) {\n \n ByteBuf content = ctx.alloc().buffer(buf.length);\n content.writeBytes(buf);\n FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, status, content);\n\n HttpUtil.setContentLength(response, response.content().readableBytes());\n \n // In case of SPDY protocol used.\n if (spdyId!=null) {\n response.headers().set(SPDY_STREAM_ID, spdyId);\n response.headers().set(SPDY_STREAM_PRIO, 0);\n response.headers().set(HttpHeaderNames.SERVER, \"PiDome integrated 0.2 SPDY\");\n } else {\n response.headers().set(HttpHeaderNames.SERVER, \"PiDome integrated 0.2 HTTP1.1\");\n }\n\n response.headers().set(HttpHeaderNames.CONTENT_TYPE, HttpRequestHandler.getContentTypeHeader(fileType));\n response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN, \"http\" + ((ssl == true) ? \"s\" : \"\") + \"://\" + plainIp + ((port != 80) ? \":\" + port : \"\"));\n response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_CREDENTIALS, \"true\");\n\n if (cache == true) {\n DateTime dt = new DateTime();\n HttpHeaderDateFormat dateFormat = HttpHeaderDateFormat.get();\n response.headers().set(HttpHeaderNames.CACHE_CONTROL, \"public, max-age=3153600\");\n response.headers().set(HttpHeaderNames.EXPIRES, dateFormat.format(dt.plusMonths(12).toDate()));\n } else {\n response.headers().set(HttpHeaderNames.CACHE_CONTROL, \"no-cache, must-revalidate\");\n response.headers().set(HttpHeaderNames.EXPIRES, \"Sat, 26 Jul 1997 05:00:00 GMT\");\n }\n\n if (keepAlive) {\n // Add keep alive header as per:\n // - http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01.html#Connection\n response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE);\n\n ctx.write(response);\n } else {\n // If keep-alive is off, close the connection once the content is fully written.\n ctx.write(Unpooled.EMPTY_BUFFER).addListener(ChannelFutureListener.CLOSE);\n }\n }", "title": "" }, { "docid": "1589303a45bd85c9f97d7b3df7415010", "score": "0.5229047", "text": "public int writerroute(String url){\n FileWriter fw;\r\n try {\r\n fw = new FileWriter(\"src/Route/Route.txt\");\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n bw.write(url);\r\n bw.close();\r\n return 0;\r\n } catch (IOException ex) {\r\n Logger.getLogger(Filereaderwriter.class.getName()).log(Level.SEVERE, null, ex);\r\n return -1;\r\n }\r\n }", "title": "" }, { "docid": "cc4ed86af2ca3c0b90e8163ff7e76229", "score": "0.5227647", "text": "public static void download (String url, File output, File tmpDir ){\n InputStream is = null;\n OutputStream os = null;\n File tmp = null;\n try{\n tmp = File.createTempFile(\"download\",\".tmp\",tmpDir);\n is = new URL(url).openStream();\n os = new BufferedOutputStream(new FileOutputStream(tmp));\n copyStream(is,os);\n tmp.renameTo(output);\n System.out.println( output.getName());\n tmp = null;\n }catch (IOException e){\n throw new RuntimeException(e);\n } finally {\n if(tmp !=null){\n try{ tmp.delete();tmp = null;}catch (Exception ignore){;}\n }\n if(is !=null){\n try { is.close();is = null;}catch (Exception ignore){;}\n }\n if(os !=null){\n try { os.close();os = null;}catch (Exception ignore){;}\n }\n }\n\n }", "title": "" }, { "docid": "ce2a975d00330b4e038311232a46be75", "score": "0.52236223", "text": "private void writeImage( OutputStream os, File request ) throws Exception {\n\t\n\tif ( request.exists() ) \n\t\tos.write(Files.readAllBytes(request.toPath()));\n}", "title": "" }, { "docid": "732457dfcc54da45131192c70287c72e", "score": "0.5214155", "text": "@Then(\"^It should generate a flat file with the test result$\")\n\tpublic void generate_file_with_the_test_result() {\n\t\tPrintWriter writer;\n\t\ttry {\n\t\t\tString basePath = new File(\"\").getAbsolutePath();\n\t\t\tString path = new File(\"TestResult.txt\").getAbsolutePath();\n\n\t\t\twriter = new PrintWriter(path, \"UTF-8\");\n\t\t\twriter.println(result);\n\t\t\twriter.close();\n\t\t\tSystem.out.println(result);\n\t\t\tSystem.out.println(\"Test Result File generaged: \" + path);\n\t\t} catch (FileNotFoundException | UnsupportedEncodingException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "92d66c7b2ad4b60108d0ef85aa6290b1", "score": "0.5202513", "text": "private void writeFile(String fileName, String output) throws Exception {\r\n BufferedWriter outputWriter = new BufferedWriter(new FileWriter(fileName));\r\n outputWriter.write(output);\r\n outputWriter.close();\r\n }", "title": "" }, { "docid": "6ee0acfbeebeb0d981448ad6ef0d09bf", "score": "0.5171772", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n response.setContentType(\"text/html;charset=UTF-8\");\n String action = request.getParameter(\"action\");\n StressMeasurementService service = new StressMeasurementService();\n\n if (action.equalsIgnoreCase(\"download\")) {\n\n Integer smId = Integer.parseInt(request.getParameter(\"smId\"));\n StressMeasurement stressMeasurement = service.getStressMeasurementById(smId);\n String mimeType = stressMeasurement.getFileUploadedType();\n String file_uploaded = \"\";\n\n if (mimeType.contains(\"pdf\")) {\n \n file_uploaded = \"Supporting_File\" + smId + \".pdf\";\n }\n if (mimeType.contains(\"png\")) {\n \n file_uploaded = \"Supporting_File\" + smId + \".png\";\n }\n if (mimeType.contains(\"jpg\") || mimeType.contains(\"jpeg\")) {\n \n file_uploaded = \"Supporting_File\" + smId + \".jpg\";\n }\n if (mimeType.contains(\"gif\")) {\n \n file_uploaded = \"Supporting_File\" + smId + \".gif\";\n }\n if (mimeType.contains(\"spreadsheet\") || mimeType.contains(\"sheet\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".xlsx\";\n }\n if (mimeType.contains(\"ms-excel\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".xls\";\n }\n if (mimeType.contains(\"wordprocessingml\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".docx\";\n }\n if (mimeType.contains(\"msword\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".doc\";\n }\n\n if (mimeType.contains(\"presentationml\") || mimeType.contains(\"presentation\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".pptx\";\n }\n if (mimeType.contains(\"ms-powerpoint\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".ppt\";\n }\n\n if (mimeType.contains(\"csv\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".csv\";\n }\n\n response.setContentType(mimeType);\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + file_uploaded + \"\\\"\");\n\n ServletOutputStream sos;\n sos = response.getOutputStream();\n\n sos.write(stressMeasurement.getFileUploaded());\n sos.flush();\n sos.close();\n }\n if (action.equalsIgnoreCase(\"ad_download\")) {\n\n Integer smId = Integer.parseInt(request.getParameter(\"smId\"));\n StressMeasurement stressMeasurement = service.getStressMeasurementById(smId);\n String mimeType = stressMeasurement.getFileUploadedType();\n String file_uploaded = \"\";\n\n if (mimeType.contains(\"pdf\")) {\n file_uploaded = \"Supporting_File\" + smId + \".pdf\";\n\n }\n if (mimeType.contains(\"png\")) {\n file_uploaded = \"Supporting_File\" + smId + \".png\";\n\n }\n if (mimeType.contains(\"jpg\") || mimeType.contains(\"jpeg\")) {\n file_uploaded = \"Supporting_File\" + smId + \".jpg\";\n\n }\n if (mimeType.contains(\"gif\")) {\n file_uploaded = \"Supporting_File\" + smId + \".gif\";\n\n }\n if (mimeType.contains(\"spreadsheet\") || mimeType.contains(\"sheet\")) {\n file_uploaded = \"Supporting_File\" + smId + \".xlsx\";\n }\n if (mimeType.contains(\"ms-excel\")) {\n file_uploaded = \"Supporting_File\" + smId + \".xls\";\n }\n if (mimeType.contains(\"wordprocessingml\")) {\n file_uploaded = \"Supporting_File\" + smId + \".docx\";\n }\n if (mimeType.contains(\"msword\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".doc\";\n }\n\n if (mimeType.contains(\"presentationml\") || mimeType.contains(\"presentation\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".pptx\";\n }\n if (mimeType.contains(\"ms-powerpoint\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".ppt\";\n }\n\n if (mimeType.contains(\"csv\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".csv\";\n }\n\n response.setContentType(mimeType);\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + file_uploaded + \"\\\"\");\n\n ServletOutputStream sos;\n sos = response.getOutputStream();\n\n sos.write(stressMeasurement.getFileUploaded());\n sos.flush();\n sos.close();\n }\n if (action.equalsIgnoreCase(\"us_download\")) {\n\n Integer smId = Integer.parseInt(request.getParameter(\"smId\"));\n StressMeasurement stressMeasurement = service.getStressMeasurementById(smId);\n String mimeType = stressMeasurement.getFileUploadedType();\n String file_uploaded = \"\";\n\n if (mimeType.contains(\"pdf\")) {\n file_uploaded = \"Supporting_File\" + smId + \".pdf\";\n\n }\n if (mimeType.contains(\"png\")) {\n file_uploaded = \"Supporting_File\" + smId + \".png\";\n\n }\n if (mimeType.contains(\"jpg\") || mimeType.contains(\"jpeg\")) {\n file_uploaded = \"Supporting_File\" + smId + \".jpg\";\n\n }\n if (mimeType.contains(\"gif\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".gif\";\n\n }\n if (mimeType.contains(\"spreadsheet\") || mimeType.contains(\"sheet\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".xlsx\";\n }\n if (mimeType.contains(\"ms-excel\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".xls\";\n }\n if (mimeType.contains(\"wordprocessingml\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".docx\";\n }\n if (mimeType.contains(\"msword\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".doc\";\n }\n\n if (mimeType.contains(\"presentationml\") || mimeType.contains(\"presentation\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".pptx\";\n }\n if (mimeType.contains(\"ms-powerpoint\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".ppt\";\n }\n\n if (mimeType.contains(\"csv\")) {\n\n file_uploaded = \"Supporting_File\" + smId + \".csv\";\n }\n\n response.setContentType(mimeType);\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + file_uploaded + \"\\\"\");\n\n ServletOutputStream sos;\n sos = response.getOutputStream();\n\n sos.write(stressMeasurement.getFileUploaded());\n sos.flush();\n sos.close();\n }\n }", "title": "" }, { "docid": "f225e136705496910dc1a94a2737a185", "score": "0.5170908", "text": "public void run() {\n\t\tStringBuilder dataReceivedFromClient = new StringBuilder();\n\t\tCheckFiles checkFile = new CheckFiles();\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tinput = socket.getInputStream();\n\t\t\tint length = input.read(buf);\n\t\t\tString receivedMessage = new String(buf);\n\t\t\tdataReceivedFromClient.append(receivedMessage);\n\n\t\t\t//\t\t\t request header\n\t\t\t//\t\t\t System.out.println(receivedMessage);\n\n\t\t\tString[] clientRequest = receivedMessage.split(\" \");\n\t\t\tString path = clientRequest[1];\n\t\t\tString clientFileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t\tString contentType = \"\";\n\t\t\tif(clientFileName.contains(\".\")) {\n\t\t\t\tpath = path.substring(0,path.lastIndexOf(clientFileName));\n\t\t\t\tcontentType = clientFileName.substring(clientFileName.lastIndexOf(\".\")+1);\n\t\t\t\tif(contentType.equals(\"png\"))\n\t\t\t\t\tcontentType = \"image/png\";\n\t\t\t\telse\n\t\t\t\t\tcontentType = \"text/html\";\n\t\t\t}\n\n\t\t\tSystem.out.println(path);\n\n\t\t\t// when client request a directory with or without \"/\" at the end.\n\t\t\tif(checkFile.isDirectory(clientFileName)) {\n\t\t\t\tString fileIndex;\n\t\t\t\tfileIndex = checkFile.directoryHasIndex(root+path);\n\t\t\t\tif(fileIndex != null)\n\t\t\t\t{\n\t\t\t\t\tfile = new File(root+path+fileIndex);\n\t\t\t\t\tresponseHeader = new ResponseHeader(\n\t\t\t\t\t\t\t\"HTTP/1.1 200 OK\\n\", \"Date:\"+date+\"\\n\", \"Content-Type: text/html\\r\\n\\r\\n\");\n\t\t\t\t}\n\t\t\t\t// otherwise there is no index file for the requested directory.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfile = new File(root+\"/fileNotFound.html\");\n\t\t\t\t\tresponseHeader = new ResponseHeader(\n\t\t\t\t\t\t\t\"HTTP/1.1 404 Not Found\\n\", \"Date:\"+date+\"\\n\", \"Content-Type:text/html\\r\\n\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// when client request a file \n\t\t\telse if(checkFile.fileExistsOnServer(root+path, clientFileName)) {\n\t\t\t\tfile = new File(root+path+clientFileName);\n\t\t\t\tresponseHeader = new ResponseHeader(\n\t\t\t\t\t\t\"HTTP/1.1 200 OK\\n\", \"Date:\"+date+\"\\n\", \"Content-Type: \"+contentType+ \"\\r\\n\\r\\n\");\n\t\t\t}\n\n\t\t\t// file is not exists status code 404. (File not Found)\n\t\t\telse if(!checkFile.fileExistsOnServer(root+path, clientFileName)) {\n\t\t\t\tfile = new File(root+\"/fileNotFound.html\");\n\t\t\t\tresponseHeader = new ResponseHeader(\n\t\t\t\t\t\t\"HTTP/1.1 404 Not Found\\n\", \"Date:\"+date+\"\\n\", \"Content-Type: text/html\\r\\n\\r\\n\");\n\t\t\t}\n\n\t\t\t// just to demonstrate status code 403. (Forbidden access)\n\t\t\tif(path.equals(\"/Forbidden\")) {\n\t\t\t\tfile = new File(root+\"/ForbiddenAccess.html\");\n\t\t\t\tresponseHeader = new ResponseHeader(\n\t\t\t\t\t\t\"HTTP/1.1 403 Forbidden \\n\", \"Date:\"+date+\"\\n\", \"Content-Type:text/html\\r\\n\\r\\n\");\n\t\t\t}\n\n\t\t\t// just to demonstrate status code 302. (redirect)\n\t\t\tif(path.equals(\"/Page1/red\")) {\n\t\t\t\tfile = new File(root+\"/redirect.html\");\n\t\t\t\tresponseHeader = new ResponseHeader(\"HTTP/1.1 302 Found\\n\", \n\t\t\t\t\t\t\"Date:\"+date+\"\\n\",\n\t\t\t\t\t\t\"Content-Type: text/html \\n\",\n\t\t\t\t\t\t\"Location: /redirect.html \\r\\n\\r\\n\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t// to demonstrate status code 500 (Server side exception)\n\t\t\tif(path.equals(\"/ServerException\")) {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new IOException();\n\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\tfile = new File(root+\"/ServerException.html\");\n\t\t\t\t\tresponseHeader = new ResponseHeader(\n\t\t\t\t\t\t\t\"HTTP/1.1 500 Internal Server Error \\n\", \"Date:\"+date+\"\\n\", \"Content-Type:text/html\\r\\n\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tOutputStream output = null;\n\t\t\toutput = socket.getOutputStream();\n\n\t\t\tFileInputStream fis =null;\n\t\t\tBufferedInputStream bis =null;\n\t\t\t//\t\t\t\t\n\t\t\tbyte [] mybytearray = new byte [(int)file.length()];\n\t\t\tfis = new FileInputStream(file);\n\t\t\tbis = new BufferedInputStream(fis);\n\t\t\tbis.read(mybytearray,0,mybytearray.length);\n\n\n\t\t\tSystem.out.println(responseHeader.toString());\n\t\t\toutput.write(responseHeader.toString().getBytes());\n\t\t\toutput.write(mybytearray);\n\n\t\t\tbis.close();\n\t\t\tinput.close();\n\t\t\toutput.close();\n\t\t\tsocket.close();\n\n\t\t}\n\n\t\tcatch(Exception e) {\n\t\t\t// an error from the server.\n\t\t\tSystem.out.println(e.getStackTrace());\n\t\t}\n\t}", "title": "" }, { "docid": "178b7fed6712abd9e2cfa32b2e0c6f66", "score": "0.5166147", "text": "private void writeToFile(InputStream uploadedInputStream, String uploadedFileLocation) throws IOException {\n int read;\n final int BUFFER_LENGTH = 1024;\n final byte[] buffer = new byte[BUFFER_LENGTH];\n OutputStream out = new FileOutputStream(new File(uploadedFileLocation));\n while ((read = uploadedInputStream.read(buffer)) != -1) {\n out.write(buffer, 0, read);\n }\n out.flush();\n out.close();\n }", "title": "" }, { "docid": "8eb57cec8e18916c1dbbe1ccc04acf74", "score": "0.51639813", "text": "protected OutputStream openOutput()\n {\n try\n {\n if( getType() == null)\n {\n throw new IllegalStateException( String.format( \"Unknown type for %s\", this));\n }\n\n URL location = getLocation();\n \n OutputStream outputStream =\n location == null?\n System.out :\n\n \"file\".equals( location.getProtocol())?\n (outputStream_ = new FileOutputStream( location.getPath())) :\n\n null;\n\n return\n Optional.ofNullable( outputStream)\n .orElseThrow( () -> new IllegalStateException( String.format( \"Can't write to URL=%s\", location)));\n }\n catch( Exception e)\n {\n throw new IllegalStateException( String.format( \"Can't write %s\", this), e);\n }\n }", "title": "" }, { "docid": "3f1d32f1f93e5972678bb161cbf49078", "score": "0.51618093", "text": "@Override\n public void onResponse(Call call, Response response) throws IOException {\n String dstPath = getCacheDir().toString();\n ZipEntry zipEntry = null;\n ZipInputStream zipInputStream = new ZipInputStream(response.body().byteStream());\n while ((zipEntry = zipInputStream.getNextEntry()) != null){\n String entryName = zipEntry.getName();\n if (zipEntry.isDirectory()){\n entryName = entryName.substring(0, entryName.length() -1);\n File folder = new File(dstPath + File.separator + entryName);\n folder.mkdirs();\n }else {\n String fileName = dstPath + File.separator + entryName;\n Log.e(\"zipperDown\", fileName);\n File file = new File(fileName);\n file.createNewFile();\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n byte[] buffer = new byte[1024];\n int n = 0;\n while ((n = zipInputStream.read(buffer, 0 , 1024)) != -1){\n fileOutputStream.write(buffer, 0 , n);\n }\n fileOutputStream.flush();\n fileOutputStream.close();\n }\n }\n zipInputStream.close();\n }", "title": "" }, { "docid": "a8e4dcb472f5a4120de679ec801f8c1f", "score": "0.5153546", "text": "public void mo1105a(C0297e call, ad response) {\n Exception e;\n Throwable th;\n InputStream is = null;\n byte[] buf = new byte[2048];\n FileOutputStream fileOutputStream = null;\n try {\n is = response.m906h().m408d();\n File file = new File(destFileDir, this.f7814d.m9003b(url));\n if (!file.exists()) {\n file.createNewFile();\n }\n C2372c.m9030c(\"cacheFile = \" + file.getAbsolutePath());\n FileOutputStream fos = new FileOutputStream(file);\n while (true) {\n try {\n int len = is.read(buf);\n if (len == -1) {\n break;\n }\n fos.write(buf, 0, len);\n } catch (IOException e2) {\n e = e2;\n fileOutputStream = fos;\n } catch (Throwable th2) {\n th = th2;\n fileOutputStream = fos;\n }\n }\n fos.flush();\n C2358a httpResult = new C2358a();\n httpResult.m8966b(file.getAbsolutePath());\n this.f7814d.m8990a(httpResult, callback);\n if (is != null) {\n try {\n is.close();\n } catch (IOException e3) {\n e3.printStackTrace();\n }\n }\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e32) {\n e32.printStackTrace();\n }\n }\n response.close();\n fileOutputStream = fos;\n } catch (IOException e4) {\n e = e4;\n try {\n e.printStackTrace();\n this.f7814d.m8993a(e, callback);\n if (is != null) {\n try {\n is.close();\n } catch (IOException e322) {\n e322.printStackTrace();\n }\n }\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e3222) {\n e3222.printStackTrace();\n }\n }\n response.close();\n } catch (Throwable th3) {\n th = th3;\n if (is != null) {\n try {\n is.close();\n } catch (IOException e32222) {\n e32222.printStackTrace();\n }\n }\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e322222) {\n e322222.printStackTrace();\n }\n }\n response.close();\n throw th;\n }\n }\n }", "title": "" }, { "docid": "c65bbb28795cfaea8eb4f982b123556a", "score": "0.51500356", "text": "@RequestMapping(value = \"/api/v1/bulkupload/sample/download\", method = RequestMethod.GET, produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)\n\tpublic void getSampleBulkUploadFile(HttpServletResponse response) throws PurpleException, IOException {\n\t\tInputStream fileStream = resourceloader.getResource(sampleBulkuploadFile).getInputStream();\n\t\tresponse.setContentType(\"text/csv\");\n\t\tresponse.setHeader(\"Content-Disposition\",\n\t\t\t\tString.format(\"attachment; filename=\\\"%s\\\"\", \"sample-user-upload.csv\"));\n\t\tIOUtils.copy(fileStream, response.getOutputStream());\n\t\tresponse.flushBuffer();\n\n\t}", "title": "" }, { "docid": "fb634fe56f83642e9af89ce7b22bc310", "score": "0.51468015", "text": "public void downloadFile() throws IOException {\r\n\r\n String fileName;\r\n fileName = datain.readUTF();\r\n File downloadFile = new File(fileName);\r\n //System.out.println(fileName);\r\n boolean fileExists = true;\r\n try {\r\n\r\n FileInputStream fis = new FileInputStream(downloadFile);\r\n if(downloadFile.length() > 0) {\r\n dataout.writeUTF(\"Found\");\r\n System.out.println(fileName+\" is found and is not empty.\");\r\n }\r\n else {\r\n \tfileExists=false;\r\n \tdataout.writeUTF(\"Empty\");\r\n \tSystem.out.println(\"File is empty and prevented download operation.\");\r\n }\r\n System.out.println(fileName + \" is found.\");\r\n } catch (Exception e) {\r\n fileExists = false;\r\n \tdataout.writeUTF(\"Not Found\");\r\n System.out.println(\"The file \" + fileName + \" is not present in the current working directory.\");\r\n }\r\n if (fileExists) {\r\n System.out.println(\"FILE DOWNLOADING>...\");\r\n byte byteParse[] = new byte[1000];\r\n int byteRead;\r\n FileInputStream fis = new FileInputStream(downloadFile);\r\n int length=(int)downloadFile.length();\r\n dataout.writeUTF(String.valueOf(length));\r\n do {\r\n byteRead = fis.read(byteParse);\r\n if (byteRead != -1) {\r\n dataout.write(byteParse, 0, byteRead);\r\n }\r\n } while (byteRead != -1);\r\n fis.close();\r\n System.out.println(\"File downloaded successfully\");\r\n } \r\n }", "title": "" }, { "docid": "3ba5bf482e404da364790061117c4ca8", "score": "0.5141937", "text": "public void writeOutput(String output){\n\t\t// get the name of the file\n\t\tString Filename = inputFile.getName();\n\t\t// get position of the beginning of the extension of the file name\n\t\tint i = Filename.lastIndexOf(\".txt\");\n\t\t// create file name of the output file that will be written to\n\t\tString outputFileName = Filename.substring(0,i) + \"_out.txt\";\n\t\t// instantiate a DataOutputStream object to write output to content\n\t\t// or catch IOException and print error message\n\t\ttry{\n\t\t\t//FileOutputStream output = new FileOutputStream(outputFileName);\n\t\t\tDataOutputStream dataOutput = new DataOutputStream(new FileOutputStream(outputFileName));\n\t\t\tdataOutput.writeBytes(output);\n\t\t\tdataOutput.close();\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "d4fb084a3609be55344c20d5e26d8aba", "score": "0.51396126", "text": "static void inputOutputStreamReaderWriter() {\n //FileReader();\n //FileWriter();\n }", "title": "" }, { "docid": "e3a14478972311cee3852543a21ad775", "score": "0.51275575", "text": "@Description(\"Path of the file to write to\")\n @Validation.Required\n String getOutput();", "title": "" }, { "docid": "27c888ee7780ae38444b2a1c8e0a5c0f", "score": "0.5127024", "text": "private String streamToTempFile(InputStream in, String filename, Path libDir) throws IOException {\n String[] fnParts = filename.split(\"\\\\.\");\n String suffix = \"\";\n if(fnParts.length > 1) {\n suffix = \".\" + fnParts[fnParts.length - 1];\n }\n\n File libFile = new File(libDir.toAbsolutePath() + File.separator + filename);\n try (\n final FileOutputStream fos = new FileOutputStream(libFile);\n final OutputStream out = new BufferedOutputStream(fos);\n ) {\n int len = 0;\n byte[] buffer = new byte[8192];\n while ((len = in.read(buffer)) > -1)\n out.write(buffer, 0, len);\n }\n\n libFile.deleteOnExit();\n return libFile.getAbsolutePath();\n }", "title": "" }, { "docid": "3fba0ac0acd366ea9cb28fb911083e8b", "score": "0.51265424", "text": "@Override\n protected OutputStream getStream() throws IOException {\n return outputStream;\n }", "title": "" }, { "docid": "7b8efce3c84a737a449d197bc26b7687", "score": "0.51238126", "text": "private static final void write(InputStream in, OutputStream out) throws IOException{\n byte[] buffer = new byte[BUFFER];\n int count = 0;\n\n do {\n out.write(buffer, 0, count);\n count = in.read(buffer, 0, buffer.length);\n } while (count != -1);\n }", "title": "" }, { "docid": "018ea88eb5668bed2d5fb4f9fb3f3e1c", "score": "0.5123294", "text": "@Override\n public void writeToStream( final OutputStream outputStream, final SftpFilename file ) throws IOException {\n final InputStream inputStream;\n try {\n inputStream = remoteClient.downloadRemoteFile( file.getRemoteFullPath() );\n } catch (RuntimeException e) {\n throw e;\n } catch (Exception e) {\n throw new IllegalStateException(e);\n }\n try {\n ConvertUtil.copyLargeWithLoggingProgress( inputStream, outputStream );\n } finally {\n inputStream.close(); \n }\n }", "title": "" }, { "docid": "b8e1150b9354731b256d69fb05e7252a", "score": "0.5115948", "text": "private void printToFile() {\r\n\t\tPrintWriter outputStream = null;\r\n\t\ttry {\r\n\t\t\toutputStream = new PrintWriter(new FileOutputStream(outputFileName + \".in\"));\r\n\t\t\t//for each element, prints it to the file on a new line\r\n\t\t\tfor (String line : output) outputStream.write(line + \"\\r\\n\");\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Could not write to file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t//writes Q to end the operation test then closes the stream\r\n\t\toutputStream.write(\"Q\");\r\n\t\toutputStream.close();\r\n\t}", "title": "" }, { "docid": "90fa5e83f97bac221e8f8a59ddd441d1", "score": "0.51133984", "text": "public void WritetoFile(String input)throws IOException {\n Host h = new Host();\n String pStr = String.valueOf(pvalue); \n String gStr = String.valueOf(gvalue);\n String pw = h.HashedPassword(\"123456\");\n \n String output = pStr + \",\" + gStr + \",\" + pw; \n FileWriter writefile = new FileWriter(\"Alice.txt\",true);\n \n writefile.write( output + System.lineSeparator());\n writefile.close();\n }", "title": "" }, { "docid": "52b82fd24b62359e49090fe26cce3ee7", "score": "0.5112264", "text": "public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\n int status = this.validateInputQuery(req);\n if (status != 0) {\n res.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n return;\n }\n SQLInterface sql = new SQLInterface();\n status = this.processInputQuery(sql, req);\n if (status != 0) {\n res.setStatus(HttpServletResponse.SC_NOT_FOUND);\n return;\n }\n\n int idx = 0;\n\n while (idx<sql.rowCount()){\n DomainObject d1 = sql.getRow(idx++);\n String dir = d1.get(\"path_root\");\n String image = d1.get(\"path\");\n\n if (dir.trim() == null) {\n int fileOffset = image.lastIndexOf(\"/\");\n dir = image.substring(1,fileOffset);\n image = image.substring(fileOffset,image.length()); \n }\n\n if (dir.trim().compareToIgnoreCase(\"MESA_STORAGE\") == 0) {\n dir = storagePath;\n }\n\n String type = d1.get(\"doc_type\");\n String contentType = \"<NULL>\";\n\n contentType = \"text/xml\";\n\n System.out.println(\"content type: \" + contentType);\n System.out.println(\"Dir name: \" + dir.trim());\n System.out.println(\"File name:\" + image.trim());\n\n\n File file = new File(dir.trim(),image.trim());\n res.setContentLength ((int)file.length());\n res.setHeader (\"Cache-Control\", \"no-cache\");\n res.setContentType(contentType);\n OutputStream outStream = res.getOutputStream();\n\n FileInputStream inStream = new FileInputStream(file);\n byte[] buffer = new byte[8192];\n\n int bytesWritten = 0;\n while (true) {\n int n = inStream.read(buffer);\n if (n<0) break;\n outStream.write(buffer, 0, n);\n\tbytesWritten += n;\n\tSystem.out.println (\" After write, n = \" + n);\n\tSystem.out.println (\" Bytes written = \" + bytesWritten);\n } \n inStream.close();\n outStream.flush();\n System.out.println(\"Bytes written to xfer file: \" + bytesWritten);\n System.out.println(\"File length: \" + (int)file.length());\n break;\n }\n/* res.setStatus(HttpServletResponse.SC_NOT_ACCEPTABLE);*/\n res.setStatus(HttpServletResponse.SC_OK);\n }", "title": "" }, { "docid": "f576233854d4cd112317dede117f94ae", "score": "0.5111228", "text": "protected File createOutputFile(String name) throws IOException\r\n {\r\n // Replaces all punctuation and white spaces by '_'\r\n name = name.replaceAll(\"[\\\\p{Punct}\\\\p{Blank}]+\", \"_\");\r\n String fileName = name + \".html\";\r\n\r\n File dir = new File(HTML_OUTPUT_FOLDER);\r\n File file = new File(HTML_OUTPUT_FOLDER + FileUtil.getSeparator() + fileName);\r\n\r\n dir.mkdir();\r\n file.createNewFile();\r\n\r\n return file;\r\n }", "title": "" }, { "docid": "c166b7574800ce9f4b63bd5975760f01", "score": "0.5108994", "text": "static OutputStream output(String filename, OutputStream stdout) throws IOException {\n if (filename.equals(\"-\"))\n return new BufferedOutputStream(stdout);\n else if (filename.startsWith(\"hdfs://\")) {\n FileSystem fs = FileSystem.get(URI.create(filename), new Configuration());\n return new BufferedOutputStream(fs.create(new Path(filename)));\n } else {\n return new BufferedOutputStream(new FileOutputStream(new File(filename)));\n }\n }", "title": "" }, { "docid": "97386119ed1f28c377937cc2bf1aa93a", "score": "0.5108852", "text": "public void sendAnswer(InputStream in, String mimeType, int responseCode)\n {\n BufferedOutputStream out = null;\n\n try\n {\n out = new BufferedOutputStream(req.getSocket().getOutputStream());\n\n // Erzeuge den Reponse-Header:\n StringBuffer header = new StringBuffer();\n int contentLength = in.available();\n\n createHeader(header, responseCode, mimeType, contentLength);\n out.write(header.toString().getBytes());\n\n if(!\"HEAD\".equals(req.getHTTPMethod()))\n {\n byte[] dataBody = new byte[1024];\n int read;\n\n while((read = in.read(dataBody)) != -1)\n {\n out.write(dataBody, 0, read);\n }\n }\n\n // und Ausgabe in die Zugriffs-Log-Datei\n /*\n * req.log.info(req.socket.getInetAddress().getCanonicalHostName() + \" : \" +\n * req.getHTTPMethod() + \" \" + req.requestedFile + \" \" +\n * req.httpVersion + \" \" + ResponseCodes[responseCode] + \" \" +\n * contentLength);\n */\n }\n catch(Exception e)\n {\n throw new RuntimeException(\"HTTPResponse.sendAnswer: Failed to send answer: \" + e);\n }\n finally\n {\n try\n {\n if(out != null)\n {\n out.close();\n }\n\n out = null;\n }\n catch(IOException ioe)\n {\n throw new RuntimeException(\"HTTPResponse.sendAnswer: Failed to close outputstream.\", ioe);\n }\n }\n }", "title": "" }, { "docid": "24358a214bd0415c502a437d101570aa", "score": "0.5105913", "text": "public void uploadFile() throws IOException {\r\n StringBuffer clientStatusFound = new StringBuffer(\"Found\");\r\n StringBuffer clientStatusEmpty = new StringBuffer(\"Empty\");\r\n StringBuffer clientStatusNotFound = new StringBuffer(\"Not Found\");\r\n\r\n String status = datain.readUTF();\r\n\r\n try {\r\n if (status.contentEquals(clientStatusFound)) {\r\n String fileName = datain.readUTF();\r\n System.out.print(\"Uploading filename is: \" + fileName + \"\\n\");\r\n File recieveFile = new File(presentWorkingDir()+File.separator+fileName);\r\n FileOutputStream fout = new FileOutputStream(recieveFile);\r\n if (recieveFile.exists()) {\r\n\r\n byte byteParse[] = new byte[1000];\r\n System.out.println(\"FILE UPLOADING>...\");\r\n int byteRead;\r\n int dataLength=0;\r\n int length = Integer.parseInt(datain.readUTF());\r\n do {\r\n byteRead = datain.read(byteParse);\r\n dataLength +=byteRead;\r\n //System.out.println(byteRead);\r\n if(dataLength == length) {\r\n \tbreak;\r\n }\r\n if (byteRead != -1) {\r\n fout.write(byteParse, 0, byteRead);\r\n }\r\n } while (byteRead != -1);\r\n fout.close();\r\n System.out.println(\"File uploaded successfully.\");\r\n }\r\n } else if (status.contentEquals(clientStatusNotFound)) {\r\n System.out.println(\"The file is not found on the client side directory.\");\r\n }\r\n else if(status.contentEquals(clientStatusEmpty)) {\r\n \tSystem.out.println(\"The file is empty and prevented upload operation.\");\r\n }\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Exception occurred in uploadFile method\");\r\n e.printStackTrace();\r\n }\r\n\r\n }", "title": "" }, { "docid": "d85e7a883732b559123e4b1d237509b1", "score": "0.5104083", "text": "public String makeRequest(String input) { \n return dataAccess.readFile(input); \n }", "title": "" }, { "docid": "4e989aa9f63df7bb477efc98f469341e", "score": "0.51028913", "text": "private static void write_result_to_outputfile(String output_text, String output_path) {\n\t\ttry {\n\t\t\t\tFile file = new File(output_path);\n\n\t\t\t\tif (!file.exists()) {\t// create a file if it doesn't exist\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t}\n\n\t\t\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile(),true);\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\tbw.write(output_text);\n\t\t\t\tbw.close();\n\n\t\t\t\tSystem.out.println(\"Final Result written to output file.. Done!!\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "6005b48868c9dbaa9b6695caece9f16d", "score": "0.5084846", "text": "protected void processRequest(final HttpServletRequest request, final HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n logger.info(\"client requesting....\");\n \n final AsyncContext ac = request.startAsync();\n ac.setTimeout(0);\n\n ac.addListener(new AsyncListener() {\n @Override\n public void onComplete(AsyncEvent event) throws IOException {\n System.out.println(\"On complete\");\n\n //ac.complete();\n logger.info(\"now completed async process\");\n }\n\n @Override\n public void onTimeout(AsyncEvent event) throws IOException {\n System.out.println(\"On timeout\");\n ac.complete();\n }\n\n @Override\n public void onError(AsyncEvent event) throws IOException {\n System.out.println(\"On error\");\n ac.complete();\n }\n\n @Override\n public void onStartAsync(AsyncEvent event) throws IOException {\n System.out.println(\"On start async\");\n }\n });\n\n ac.start(new Runnable() {\n\n @Override\n public void run() {\n System.out.println(\"Async task: \" + Thread.currentThread().getName());\n try {\n //for (Part part : ((HttpServletRequest) ac.getRequest()).getParts()) {\n System.out.println(\"File received\"); // You Should write\n // file here\n // like\n // part.write(\"fileName\");\n //}\n Thread.sleep(6L);\n logger.info(\"after sleeping!!\");\n } catch (InterruptedException e1) {\n e1.getMessage();\n }\n\n ac.complete();\n /*\n PrintWriter pw = null;\n try {\n pw = ac.getResponse().getWriter();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n pw.write(\"end\");\n pw.close();*/\n }\n\n });\n \n\n }", "title": "" }, { "docid": "b30a896df47cf2a37446ee064af2a603", "score": "0.50830775", "text": "public void handle(HttpExchange t) throws IOException {\n Headers h = t.getResponseHeaders();\n h.add(\"Content-Type\", \"application/pdf\");\n\n // a PDF (you provide your own!)\n File file = new File (\"c:/temp/doc.pdf\");\n byte [] bytearray = new byte [(int)file.length()];\n FileInputStream fis = new FileInputStream(file);\n BufferedInputStream bis = new BufferedInputStream(fis);\n bis.read(bytearray, 0, bytearray.length);\n\n // ok, we are ready to send the response.\n t.sendResponseHeaders(200, file.length());\n OutputStream os = t.getResponseBody();\n os.write(bytearray,0,bytearray.length);\n os.close();\n }", "title": "" }, { "docid": "95d65cbcf406c2d746a1b813a32e293c", "score": "0.5074274", "text": "public void downloadFile(String fileURL, String saveDir)\n throws IOException {\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n \n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n \n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n \n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n \n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n \n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n \n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n \n outputStream.close();\n inputStream.close();\n \n System.out.println(\"File downloaded\");\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n }", "title": "" }, { "docid": "a4d4f66d4061b549576312e366a5d762", "score": "0.50732756", "text": "private void writeToFile(InputStream uploadedInputStream, String filePath) throws Exception {\r\n\t\tOutputStream out = new FileOutputStream(new File(filePaths + \"/\" + filePath));\r\n\t\tint read = 0;\r\n\t\tbyte[] bytes = new byte[1024];\r\n\r\n\t\tout = new FileOutputStream(new File(filePaths + \"/\" + filePath));\r\n\t\twhile ((read = uploadedInputStream.read(bytes)) != -1) {\r\n\t\t\tout.write(bytes, 0, read);\r\n\t\t}\r\n\r\n\t\tout.flush();\r\n\t\tout.close();\r\n\t}", "title": "" }, { "docid": "9aea7ee9da36453c76436364868d913f", "score": "0.50670654", "text": "private void writeFile(File file, FormDownloaderListener stateListener, InputStream inputStream)\n throws IOException, TaskCancelledException, URISyntaxException, Exception {\n\n File tempFile = File.createTempFile(file.getName(), TEMP_DOWNLOAD_EXTENSION,\n new File(new StoragePathProvider().getDirPath(StorageSubdirectory.CACHE)));\n\n // WiFi network connections can be renegotiated during a large form download sequence.\n // This will cause intermittent download failures. Silently retry once after each\n // failure. Only if there are two consecutive failures do we abort.\n boolean success = false;\n int attemptCount = 0;\n final int MAX_ATTEMPT_COUNT = 2;\n while (!success && ++attemptCount <= MAX_ATTEMPT_COUNT) {\n if (stateListener != null && stateListener.isTaskCanceled()) {\n throw new TaskCancelledException(tempFile);\n }\n\n // write connection to file\n InputStream is = null;\n OutputStream os = null;\n\n try {\n is = inputStream;\n os = new FileOutputStream(tempFile);\n\n byte[] buf = new byte[4096];\n int len;\n while ((len = is.read(buf)) > 0 && (stateListener == null || !stateListener.isTaskCanceled())) {\n os.write(buf, 0, len);\n }\n os.flush();\n success = true;\n\n } catch (Exception e) {\n Timber.e(e.toString());\n // silently retry unless this is the last attempt,\n // in which case we rethrow the exception.\n\n FileUtils.deleteAndReport(tempFile);\n\n if (attemptCount == MAX_ATTEMPT_COUNT) {\n throw e;\n }\n } finally {\n if (os != null) {\n try {\n os.close();\n } catch (Exception e) {\n Timber.e(e);\n }\n }\n if (is != null) {\n try {\n // ensure stream is consumed...\n final long count = 1024L;\n while (is.skip(count) == count) {\n // skipping to the end of the http entity\n }\n } catch (Exception e) {\n // no-op\n }\n try {\n is.close();\n } catch (Exception e) {\n Timber.e(e);\n }\n }\n }\n\n if (stateListener != null && stateListener.isTaskCanceled()) {\n FileUtils.deleteAndReport(tempFile);\n throw new TaskCancelledException(tempFile);\n }\n }\n\n Timber.d(\"Completed downloading of %s. It will be moved to the proper path...\",\n tempFile.getAbsolutePath());\n\n FileUtils.deleteAndReport(file);\n\n String errorMessage = FileUtils.copyFile(tempFile, file);\n\n if (file.exists()) {\n Timber.w(\"Copied %s over %s\", tempFile.getAbsolutePath(), file.getAbsolutePath());\n FileUtils.deleteAndReport(tempFile);\n } else {\n String msg = TranslationHandler.getString(Collect.getInstance(), R.string.fs_file_copy_error,\n tempFile.getAbsolutePath(), file.getAbsolutePath(), errorMessage);\n Timber.w(msg);\n throw new RuntimeException(msg);\n }\n }", "title": "" }, { "docid": "646b236a485eaf303d4d26819e2ad745", "score": "0.506081", "text": "static public void read(InputStream in) throws IOException {\n\t\tint responseCode;\r\n\t\tString responseMessage=\"\";\r\n\t\tMap<String, String> header = new HashMap<String, String>();\r\n\r\n\t\t// first line contains 'method url version'\r\n\t\tString [] commands = readLine(in).split(\" \");\r\n\t\tif ( commands.length >= 3 ) {\r\n//\t\t\thttp = commands[0];\r\n\t\t\tresponseCode = Integer.parseInt(commands[1]);\r\n\t\t\tfor (int i = 2; i < commands.length; i++) {\r\n\t\t\t\tresponseMessage += commands[i] + \" \";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tString line = readLine(in);\r\n\t\twhile (line != null && line.length()>0) {\r\n\t\t\tint indexOf = line.indexOf(':');\r\n\t\t\tif ( indexOf >=0 ) {\r\n\t\t\t\theader.put(line.substring(0, indexOf), line.substring(indexOf+1));\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(line);\r\n\t\t\t}\r\n\t\t\tline = readLine(in);\r\n\t\t}\r\n\t\tString location = header.get(\"Location\");\r\n\t\tif (responseCode == 201) {\r\n\t\t\tSystem.out.println(\"File has been upload: \" + responseMessage);\r\n\t\t\tSystem.out.println(\"Location: \" + location);\r\n\t\t} else {\r\n\t\t\tSystem.err.println(\"Response code: \" + responseCode);\r\n\t\t\tSystem.err.println(\"Error when upload file: \" + responseMessage);\r\n\t\t\tSystem.err.println(\"Location: \" + location);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "881e5f5115c8d1b0b7ebad0dd310dd24", "score": "0.5054895", "text": "OutputStream openStream(String name) throws Exception;", "title": "" }, { "docid": "ece208564926746003ad950f68887487", "score": "0.50533175", "text": "protected void onFirstWrite() throws IOException {\n OutputStream responseStream = flushHeaders(outMessage);\n if (null != responseStream) {\n wrappedStream = responseStream;\n } \n }", "title": "" }, { "docid": "05f249636a4afeec4d84cb14709db0be", "score": "0.5047471", "text": "@Override\r\n\tpublic void write() {\n\t\ttry (\r\n\t\t\tFileOutputStream fos = new FileOutputStream (new File (\"C:/test/FileLogger.txt\")))\r\n\t\t{\r\n\t\t\tfos.write(\"!!FileLogger!!\".getBytes());\r\n\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": "" } ]
fe93d9e73ad5a64d51ab2efc0f3e6245
Start and complete 'Find Your Happy Place' activity of level 3 of 'Manage Your weight' game plan
[ { "docid": "d2ba14273c512382f9c2e416c9ce99d5", "score": "0.6536439", "text": "public void startAndCompleteFindYourHappyPlaceActivity(String activityName,int count){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" } ]
[ { "docid": "d8f77b66f263a86e5cd0cbfb6403cf0a", "score": "0.66643554", "text": "public void startAndCompleteFindYourHappyPlaceActivityOfMasterStress(String activityName, int count){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tcompletePictureThisActivityOfLevel3(2);\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "303fc20e2768d655d6f645b53d88ffd6", "score": "0.6345211", "text": "public void startAndCompleteGoalsActivityOfManageYourWeightplan(int count){\n\t\tclickOnNextBtnOfActivity(count);\n\t\tenterCurrentWeight();\n\t\tselectWeightLossPercentage();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "290aff4d74a09f34d7e86ce2d6c356c8", "score": "0.6329084", "text": "public void startAndCompleteYourWhyActivity(){\n\t\tSeleniumUtil.sleep(3);\n\t\tstartYourWhyActivityOfLevel2();\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tclickOnActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "31b28616253f38d6dff3075e581dd3da", "score": "0.6255338", "text": "private void setupGoal() {\n\t\tif (cave.getUnknownRooms().size() > 0 && cave.getUnknownRooms().stream().anyMatch(r -> PathFinder.isRoomReachable(r, cave.getCurrentPosition(), cave))) {\n\t\t\tif (loggingEnabled) {\n\t\t\t\tSystem.out.println(\"Exploring unknown rooms\");\n\t\t\t}\n\t\t\tgoal = new ExploreUnknown(cave);\n\t\t} else if (cave.getBreezyRooms().size() > 3 || cave.getStinkyRooms().size() > 1) {\n\t\t\tif (loggingEnabled) {\n\t\t\t\tSystem.out.println(\"Exploring danger\");\n\t\t\t}\n\t\t\tgoal = new ExploreDanger(cave);\n\t\t} else if (cave.getStinkyRooms().size() == 1) {\n\t\t\tif (loggingEnabled) {\n\t\t\t\tSystem.out.println(\"Hunting for Wumpus\");\n\t\t\t}\n\t\t\tgoal = new HuntWumpus(cave);\n\t\t}\n\t}", "title": "" }, { "docid": "0fa07c0b3bd0901aafed22411722f3dc", "score": "0.61479", "text": "public void startAndCompleteSmokingandYouOfQuitSmoking(String activityName){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tfillingMealPlanningDetailsInLevel2();\n\t\tclickOnActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "248030df24a2cea23fa7839835209c57", "score": "0.6136888", "text": "public void startAndCompleteGoalsActivityOfMasterStressPlan(){\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tclickOnActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "5a248fec1c9e8eeb63d17a666f2b174c", "score": "0.6076288", "text": "public void gameStart() {\n\n\t\t\n\n\t\tPlayers playing;\n\t\tboolean playFlag = true;\n\t\tint playOption = 99;\n\n\t\tint turnCount = 0; // track if one turn is complete or not\n\t\t\n\t\tboolean exchangeRun = false; // exchange option didn't run yet\n\t\tboolean dedicationRun = false; // dedication option didn't run yet\n\n\t\twhile (playFlag) {\n\n\t\t\tif (turnCount == gameObj.getPlayersList().length) {\n\t\t\t\t\n\t\t\t\tint tileHoldCount = 0;\n\t\t\t\t\n\t\t\t\t// if draw stack is empty\n\t\t\t\tif (NHonorPointsGamePlay.checkDrawStackSize(gameObj)) {\n\t\t\t\t\t\n\t\t\t\t\t//check if tiles in hand of each player is empty or not\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < gameObj.getPlayersList().length; i++) {\n\t\t\t\t\t\tPlayers player = gameObj.getPlayersList()[i];\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"tiles \"+player.getCurrentLakeTilesHold().size());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(player.getCurrentLakeTilesHold().isEmpty()){\n\t\t\t\t\t\t\ttileHoldCount = tileHoldCount+1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(tileHoldCount == gameObj.getPlayersList().length){\n\t\t\t\t\tplayFlag = false;\n\t\t\t\t\ttileHoldCount = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t// ask to save and exit the game.\n\t\t\t\tsuper.saveAndExitGame(gameController);\n\n\t\t\t\tturnCount = 0;\n\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t// get current player of the game.\n\t\t\tplaying = gameObj.getPlayerCurrentTurn();\n\t\t\t\n\t\t\tSystem.out.println(\"--------- Player \" + playing.getPlayerNumber()\n\t\t\t\t\t+ \" turn ---------\");\n\t\t\t\n\t\t\t//display player status before placing lake tile.\n\t\t\tnew LanternGameView().displayPlayerStatus(playing);\n\t\t\t\n\t\t\tString opt = this.genValidation(gameObj, playing);\n\t\t\t\n\t\t\twhile (!opt.contains(\"lakeTile\")) {\n\t\t\t\topt = playing.getStrategy().makeAMove(gameObj, playing, opt);\n\t\t\t\t\n\t\t\t\tif(playing.getTotalPoints() >= gamePoint){\n\t\t\t\t\tplayFlag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"playing score : \"+playing.getTotalPoints());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(playFlag == false){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//display player status\n\t\t\tnew LanternGameView().displayPlayerStatus(playing);\n\t\t\t//displayPlayerStatus(playing);\t\t\t\t\n\n\t\t\tSystem.out.println(\"Lake Tile placed on the game board.\");\t\t\t\t\n\t\t\t\n\t\t\t// lake tiles that are already placed on the board.\n\t\t\tnew LanternGameView().displayLakeTileBoard(gameObj);\n\t\t\t//displayLakeTileBoard(gameObj);\n\t\t\t\n\t\t\t// update current player of game to next player\n\t\t\tplaying = updateCurrentPlayer(gameObj, playing);\n\n\t\t\tgameObj.setPlayerCurrentTurn(playing);\n\t\t\t\n\t\t\t// exchange option will run after player change.\n\t\t\texchangeRun = false; \n\t\t\tdedicationRun = false;\n\n\t\t\tturnCount += 1;\n\n\t\t\tSystem.out.println(); // for space\n\n\t\t}\n\n\t\tPlayers[] gamePlayers = gameObj.getPlayersList();\n\t\t\n\t\t// Display players score\n\t\tnew LanternGameView().displayPlayersScore(gamePlayers);\n\t\t//displayPlayersScore(gamePlayers);\n\n\t\t// validate who are the winners\n\t\tVector<Players> winnerPlayers = validateWinner(gamePlayers);\n\n\t\t// Display winner\n\t\tnew LanternGameView().displayWinner(winnerPlayers);\n\n\t}", "title": "" }, { "docid": "da32a5085b41c7d0e315a328698bcb96", "score": "0.6025351", "text": "public void executeDecision() {\n // Plays the sound that indicates the player pressed a button.\n storage.sounds.get(\"click3\").play(1.0f);\n switch (cursorPos) {\n case 0:\n newGame();\n break;\n case 1:\n loadGame();\n break;\n case 2:\n quitGame();\n break;\n }\n // Stops the title screen music.\n storage.music.get(\"titlescreenmusic\").stop();\n storage.music.get(\"titlescreenmusicloop\").stop();\n }", "title": "" }, { "docid": "00a569c58ec06a5965c22e84993e3283", "score": "0.6004452", "text": "public void startAndCompleteYourWhyWeightActivity(String activityName){\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tclickOnActivitySubmitBtn();\n\t\tclickOnContinueBtn();\n\t}", "title": "" }, { "docid": "f300584c7f911ec6d5fcecdf0cbe366e", "score": "0.5999347", "text": "public void startAndCompleteGoalsActivityOfGetMovingPlan(){\n\t\tclickGetStartedOrNextLevelBtn();\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tclickLevelSubmitBtn();\n\t}", "title": "" }, { "docid": "6a02c2b1330eeb868ccff25e76e11bf4", "score": "0.5960291", "text": "private void cs3() {\n\t\t Player local = ctx.players.local();\n\t\tfinal String[] t = {\"Yes\"};\n\t\t\n\t\tif(init!=null){\n\t\tif(spokeToBody){\n\t\t\tif(!Method.isInCombat()){\n\t\t\t\tMethod.npcInteract(16721, \"Attack\");\n\t\t\t}else Method.fightNPC(16721);\n\t\t}else if(ctx.widgets.component(1184,1).valid() && ctx.widgets.component(1184,1).component(13).text().contains(\"There are\")\n\t\t\t\t|| local.inCombat()){\n\t\t\tMethod.pressContinue();\n\t\t\tspokeToBody = true;\n\t\t}else\n\t\tif(new Tile(init.x()-12, init.y()+23,0).distanceTo(local.tile())<6){\n\t\t\tif(!Method.findOption(t)){\n\t\t\t\tif(!Method.isChatting(\"Spirit of Body\")){\n\t\t\t\t\tMethod.speakTo(16717, \"Spirit of Body\");\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(!local.inMotion())\n\t\t\tMethod.clickOnMap(new Tile(init.x()-12, init.y()+23,0));\n\t\t}\n\t\t}else { for(GameObject o : ctx.objects.select().id(74990).nearest().first()){\n\t\t\tif(o.tile().distanceTo(local.tile())<20){\n\t\t\t\tMethod.sleep(2000);\n\t\t\t\tinit = ctx.players.local().tile();\n\t\t\t}\n\t\t}\n\t\tif(new Tile(3258,3483,0).distanceTo(local.tile())<8){\n\t\t\tfor(GameObject door : ctx.objects.select().id(15536).nearest().first()){\n\t\t\t\tif(!TrapDoor.contains(door.tile())){\n\t\t\t\t\tMethod.interactO(82059, \"Climb\", \"Trapdoor\");\n\t\t\t\t}else Method.interactO(15536, \"Open\", \"Door\");\n\t\t\t}\n\t\t\tif(ctx.objects.select().id(15536).nearest().first().isEmpty())\n\t\t\tMethod.interactO(82059, \"Climb\", \"Trapdoor\");\n\t\t}else if(new Tile(3250,3478,0).distanceTo(local.tile())<20){\n\t\t\tMethod.clickOnMap(new Tile(3250,3478,0));\n\t\t\tMethod.sleep(1200);\n\t\t}else cs0();//Get into position\n\t\t}\n\t}", "title": "" }, { "docid": "ed8168ecd6ae3116ff7dc33577d451c4", "score": "0.5950555", "text": "private void performFind()\r\n {\r\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\r\n ArrayList<NPC> npcs = new ArrayList<NPC>();\r\n int levelMin = -1;\r\n String lmin = levelMinText.getText();\r\n if (!lmin.equals(\"\"))\r\n levelMin = Integer.parseInt(lmin);\r\n int levelMax = -1;\r\n String lmax = levelMaxText.getText();\r\n if (!lmax.equals(\"\"))\r\n levelMax = Integer.parseInt(lmax);\r\n String role = (String) roleBox.getSelectedItem();\r\n if (role.equals(\"\"))\r\n role = \"null\";\r\n String type = (String) typeBox.getSelectedItem();\r\n if (type.equals(\"\"))\r\n type = \"null\";\r\n // Wizards uses integers to represent their books so we have to parse\r\n // ALL of them from text into their correct number\r\n String source = (String) sourceBox.getSelectedItem();\r\n if (source.equals(\"\"))\r\n source = \"null\";\r\n else if (source.equals(\"Dark Sun Campaign Setting\"))\r\n source = \"203\";\r\n else if (source.equals(\"Monster Manual\"))\r\n source = \"2\";\r\n else if (source.equals(\"Monster Manual 2\"))\r\n source = \"18\";\r\n else if (source.equals(\"Monster Manual 3\"))\r\n source = \"201\";\r\n else if (source.equals(\"Dark Sun Creature Catalog\"))\r\n source = \"202\";\r\n npcs = (ArrayList<NPC>) CompendiumSearcher.getNPCs(nameText.getText(),\r\n levelMin, levelMax, role, type, source);\r\n npcList.setListData(npcs.toArray());\r\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n buildButton.setEnabled(false);\r\n }", "title": "" }, { "docid": "7174168b05691f63528982bbd8c4586d", "score": "0.5925869", "text": "private void cs4() {\n\t\tfinal String opt[] = {\"Yes\", \"I seek\", \"A sword that\", \"A powerful demon\",\"Delrith.\",\"Gideon\",\"Bach\"};\n\t\t Player local = ctx.players.local();\n\t\t\n\t\t//SceneObject door = SceneEntities.getNearest(15536);\n\t\tif(init!=null){\n\t\t\tif(new Tile(init.x()+13,init.y()+24,0).distanceTo(local.tile())<7){\n\t\t\t\tif(!Method.findOption(opt)){\n\t\t\t\t\tif(!Method.isChatting(\"Spirit of the Mind\")){\n\t\t\t\t\t\tMethod.speakTo(16718, \"Spirit of the Mind\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else Method.clickOnMap(new Tile(init.x()+13,init.y()+24,0));\n\t\t}else {\n\t\t\tfor(GameObject o : ctx.objects.select().id(74990).nearest().first()){\n\t\t\tif(o.tile().distanceTo(local.tile())<20){\n\t\t\t\tMethod.sleep(2000);\n\t\t\t\tinit = ctx.players.local().tile();\n\t\t\t}\n\t\t}//Climb down the trapdoor near the position of Grufeld Bach\n\t\tif(new Tile(3250,3478,0).distanceTo(local.tile())<8){//tile by the trapdoor\n\t\t\t\t\tMethod.interactO(82059, \"Climb\", \"Trapdoor\");\n\t\t}else cs0();//Get into position\n\t}\n\t\t\n\t}", "title": "" }, { "docid": "6c8e1dcfaadc04a5317d43b6f1647727", "score": "0.58925265", "text": "private void findRequiredActions(){\r\n\t\t\r\n\t\t// If Screen turn-out is 50% BELOW target figures\r\n\t\t\t\t// Make more screenings\r\n\t\t\t\t// Move to smaller screens\r\n\t\t\t\t// Mark for promotion\r\n\t\t\r\n\t\t// If Screen turn-out is 25% BELOW target figures\r\n\t\t\t\t// Make more screenings\r\n\t\t\t\t// Move to smaller screens\r\n\t\t\r\n\t\t// If Screen turn-out is ON TARGET\r\n\t\t\t\t// Put your feet up and have a beer\r\n\t\t\r\n\t\t// If Screen turn-out is 25% ABOVE target figures\r\n\t\t\t\t// More Screenings\r\n\t\t\t\t// Move to LARGER screens\r\n\t\t\r\n\t\t// If Screen turn-out is 50% ABOVE target figures\r\n\t\t\t\t// More Screenings\r\n\t\t\t\t// Move to LARGER screens\r\n\t}", "title": "" }, { "docid": "b35f6e3997c6bd0bcbe01cc59b016146", "score": "0.58813214", "text": "private void analyzeGame(){\n\t\tboard.validSetup();\n\t\tUI.setState(view.UserInterface.Status.CONTINUE);\n\t\tGM.update();\n\t}", "title": "" }, { "docid": "d11694149248f9b8916ff25c1a094320", "score": "0.58734345", "text": "public void startAndCompleteExerciseAndCaloriesActivity(int count){\n\t\tclickOnNextBtnOfActivity(count);\n\t\tcompletePanel2OfExerciseAndCaloriesActivity();\n\t\tclickOnNextArrowIcon();\n\t\tclickOnCompleteButton();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "b5a89add87ea3a07fa3c07afa0dde314", "score": "0.5816856", "text": "public void startGame() {\n\t\tSystem.out.println(\n\t\t\t\t\"Welcome to Dungeons And Dragons 5th Edition Battle Tracker\\nCurrently it tracks health throughout every encounter\");\n\t\tSystem.out.println(\n\t\t\t\t\"Begin adding monsters and players to the encounter to start the journey!\\nLook at the help box on the right to get started!\");\n\t\tSystem.out.println(\"******************************************************************************\");\n\t\tSystem.out.println(\"When you are complete with adding all the players and monsters, use the setup command to get started\");\n\n\t\tString temp;\n\t\tString temp2;\n\t\tint temp3;\n\t\tint temp4;\n//\t\taddPlayer(\"DOn\", \"BARD\");\n//\t\taddPlayer(\"Lez\", \"BARD\");\n//\t\taddMonster(\"a\", \"UNDEAD\", -10, 20);\n//\t\taddMonster(\"b\", \"UNDEAD\", -10, 20);\n//\t\tnext();\n//\t\taddMonster(\"c\", \"UNDEAD\", -10, 20);\n//\t\tnext();\n\n\t\twhile (true) {\n\t\t\tcommand = sc.nextLine();\n\n\t\t\tswitch (command.toLowerCase()) {\n\n\t\t\tcase \"add player\":\n\t\t\t\tSystem.out.println(\"Enter name for player\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter player type\");\n\t\t\t\ttemp2 = sc.nextLine();\n\t\t\t\taddPlayer(temp, temp2);\n\t\t\t\tbreak;\n\n\t\t\tcase \"add player2\":\n\t\t\t\tSystem.out.println(\"Enter name for player\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter player health\");\n\t\t\t\ttemp3 = sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter player level\");\n\t\t\t\ttemp4 = sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter player type\");\n\t\t\t\ttemp2 = sc.nextLine();\n\t\t\t\taddPlayer2(temp, temp2, temp3, temp4);\n\t\t\t\tbreak;\n\t\t\tcase \"add monster\":\n\t\t\t\tSystem.out.println(\"Enter name for monster\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter monster health\");\n\t\t\t\ttemp3 = sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter monster level\");\n\t\t\t\ttemp4 = sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter monster type\");\n\t\t\t\ttemp2 = sc.nextLine();\n\t\t\t\taddMonster(temp, temp2, temp3, temp4);\n\t\t\t\tbreak;\n\t\t\tcase \"edit\":\n\t\t\t\tSystem.out.println(\"Enter name for player or monster to edit\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tedit(temp);\n\t\t\t\tbreak;\n\t\t\tcase \"remove\":\n\t\t\t\tSystem.out.println(\"Enter name for player or monster to edit\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tremove(temp);\n\t\t\t\tbreak;\n\t\t\tcase \"attack\":\n\t\t\t\tSystem.out.println(\"Enter name for player or monster to attack\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter the amount of damage done\");\n\t\t\t\ttemp3 = sc.nextInt();\n\t\t\t\tattack(temp,temp3);\n\t\t\t\tbreak;\n\t\t\tcase \"heal\":\n\t\t\t\tSystem.out.println(\"Enter name for player or monster to heal\");\n\t\t\t\ttemp = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter the amount of healing done\");\n\t\t\t\ttemp3 = sc.nextInt();\n\t\t\t\theal(temp,temp3);\n\t\t\t\tbreak;\n\t\t\tcase \"next\":\n\t\t\t\tnext();\n\t\t\t\tbreak;\n\t\t\tcase \"stats\":\n\t\t\t\tstats();\n\t\t\t\tbreak;\n\t\t\tcase \"help\":\n\t\t\t\thelp();\n\t\t\t\tbreak;\n\t\t\tcase \"save\":\n\t\t\t\tsave();\n\t\t\t\tbreak;\n\t\t\tcase \"load\":\n\t\t\t\tload();\n\t\t\t\tbreak;\n\t\t\tcase \"alive\":\n\t\t\t\talive();\n\t\t\t\tbreak;\n\t\t\tcase \"setup\":\n\t\t\t\tsetup();\n\t\t\t\tbreak;\n\t\t\tdefault:\n//\t\t\t\tSystem.out.println(\"Please enter a valid command\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t}", "title": "" }, { "docid": "0387060c2c5ac419a89e53971941f6a8", "score": "0.58017725", "text": "private void cs1() {\n\t\t Player local = ctx.players.local();\n\t\t\n\t\tfinal String opt[] = {\"I come seeking\"};\n\t\tif(init!=null){\n\t\t\tif(new Tile(init.x(), init.y()+19,0).distanceTo(local.tile())<8){\n\t\t\t\tif(!Method.findOption(opt)){\n\t\t\t\t\tif(!Method.isChatting(\"Spirit of Faith\")){\n\t\t\t\t\t\tMethod.speakTo(16719, \"Spirit of Faith\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(!ctx.players.local().inMotion())\n\t\t\t\t\tMethod.clickOnMap(new Tile(init.x(), init.y()+19,0));\n\t\t\t}\n\t\t}else{ for(GameObject o : ctx.objects.select().id(74990).nearest().first()){\n\t\t\tif(o.tile().distanceTo(local.tile())<20){\n\t\t\t\tMethod.sleep(2000);\n\t\t\t\tinit = ctx.players.local().tile();\n\t\t\t}\n\t\t}\n\t\tif(new Tile(3250,3478,0).distanceTo(local.tile())<4){\n\t\t\tfor(GameObject door : ctx.objects.select().id(15536).nearest().first()){\n\t\t\t\tif(!TrapDoor.contains(door.tile())){\n\t\t\t\t\tMethod.interactO(82059, \"Climb\", \"Trapdoor\");\n\t\t\t\t}else Method.interactO(15536, \"Open\", \"Door\");\n\t\t\t}\n\t\t\tif(ctx.objects.select().id(15536).nearest().first().isEmpty())\n\t\t\tMethod.interactO(82059, \"Climb\", \"Trapdoor\");\n\t\t}else if(new Tile(3250,3478,0).distanceTo(local.tile())<20){\n\t\t\tMethod.clickOnMap(new Tile(3250,3478,0));\n\t\t\tMethod.sleep(1200);\n\t\t\t} else\n\t\t\t\tcs0();// Get into position\n\n\t\t}\n\t}", "title": "" }, { "docid": "dc0e777a4d9eb6d56f4298cc54479b30", "score": "0.5791794", "text": "private void cs1() {\n\t\tPlayer local = ctx.players.local();\n\t\tfinal String opt[] = {\"A glass of your finest\",\"I've lost\",\"Are you\"};\n\t\t\n\t\t\n\t\t\n\t\tif(new Tile(3215,3395,0).distanceTo(local.tile())<4 || \n\t\t\t\t(Method.npcIsNotNull(756)&& Method.getNPC(756).tile().distanceTo(local.tile())<6)){\n\t\t\n\t\t\t\n\t\t\tif((ctx.varpbits.varpbit(2170)&0x3)==2 && hasBeer==false){//if it is time to buy morgan some beer\n\t\t\t\t\n\t\t\t\tif(Method.inventoryGetCount(BEERID)>=3){\n\t\t\t\t\thasBeer = true;\n\t\t\t\t}else {//buy the beer from bartender\n\t\t\t\t\tif(new Tile(3224,3397).distanceTo(ctx.players.local().tile())<5){//loc by bartender\n\t\t\t\t\t if(!Method.findOption(opt))\n\t\t\t\t\t\tif(!Method.isChatting(\"Bartender\")){\n\t\t\t\t\t\t\tMethod.npcInteract(BARTENDER, \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}else Method.clickOnMap(new Tile(3224,3397));//loc by the bartender\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else\n\t\t\t\tif(Method.npcIsNotNull(756))//dr hallow\n\t\t\t\tif(Method.getNPC(756).tile().distanceTo(local.tile())<5){\n\t\t\t\t\tMethod.skipPics();\n\t\t\t\t\tVars.DYNAMICV = false;\n\t\t\t\t\tif(!Method.findOption(opt))\n\t\t\t\t\t\tif(!Method.isChatting(\"Dr.Hallow\")){\n\t\t\t\t\t\t\tMethod.speakTo(756, \"Dr.Hallow\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}else if(!BarBottomDoor.contains(Method.getObject(24376).tile())||!Method.objIsNotNull(24376)){\n\t\t\t\t\tMethod.clickOnMap(Method.getNPC(756).tile());\n\t\t\t\t}else Method.interactO(24376, \"Open\", \"Door\");\n\t\t\t\n\t\t}else if(Vars.DYNAMICV){\n\t\t\tMethod.walking(pathToHallow, \"Walking to Dr.Hallow\", false);\n\t\t}else if(TeleportLode.VARROCK.getTile().distanceTo(local.tile())<10){\n\t\t\tVars.DYNAMICV = true;\n\t\t}else Method.teleportTo(TeleportType.VARROCK.getTeleport(),TeleportType.VARROCK.getName());\n\t\t\n\t}", "title": "" }, { "docid": "c6d633fccca73c46da42caa60902c05c", "score": "0.5759753", "text": "public void setupStandardGoals();", "title": "" }, { "docid": "fd3a9d13c6a03542387e3e5a4bf9bb15", "score": "0.5756068", "text": "public void startGame() {\n\t\t// Collects the ante\n\t\tcollectAnte();\n\n\t\t// Deal all the cards\n\t\ttheDealer.dealCards(playerList, communityCards);\n\n\t\t// Set the players hands best hands\n\t\tsetPlayersBestHands();\n\t}", "title": "" }, { "docid": "be141facdcad3a5f501eb26e39e5ee42", "score": "0.5749622", "text": "private void runSearches() {\n\n Set<List<Integer>> start = new HashSet<List<Integer>>();\n Set<List<Integer>> goal = new HashSet<List<Integer>>();\n\n for(int i = 0; i < maze.width; i++){\n for(int j = 0; j < maze.height; j++){\n if(maze.isLegal(i, j)){\n List<Integer> position = new ArrayList<Integer>();\n position.add(i);\n position.add(j);\n start.add(position);\n }\n }\n }\n\n List<Integer> finalPosition = new ArrayList<Integer>();\n finalPosition.add(1);\n finalPosition.add(3);\n goal.add(finalPosition);\n\n BlindRobotProblem mazeProblem = new BlindRobotProblem(maze, start, goal);\n\n List<SearchProblem.SearchNode> astarPath = mazeProblem.astarSearch();\n animationPathList.add(new AnimationPath(mazeView, astarPath));\n System.out.println(\"A*: \");\n mazeProblem.printStats();\n\n\n }", "title": "" }, { "docid": "43455e5c55b5433212d7c56f99950825", "score": "0.5748369", "text": "private static void enterQuickplay() {\n\t\twhile (true) {\n\t\t\tMenu quickplay = new Menu(\"Select difficulty\");\n\t\t\tquickplay.addItem(\"Easy\", \"easy\");\n\t\t\tquickplay.addItem(\"Medium\", \"medium\");\n\t\t\tquickplay.addItem(\"Hard\", \"hard\");\n\t\t\tquickplay.addItem(\"Impossible\", \"impossible\");\n\t\t\tquickplay.addItem(\"Back\", \"back\");\n\t\t\t\n\t\t\tString response = quickplay.getInput(gameInterface);\n\t\t\t\n\t\t\tif (response.equals(\"easy\")) {\n\t\t\t\tstartGame(Difficulty.easy);\n\t\t\t} else if (response.equals(\"medium\")) {\n\t\t\t\tstartGame(Difficulty.medium);\n\t\t\t} else if (response.equals(\"hard\")) {\n\t\t\t\tstartGame(Difficulty.hard);\n\t\t\t} else if (response.equals(\"impossible\")){\n\t\t\t\tstartGame(Difficulty.impossible);\n\t\t\t} else if (response.equals(\"back\")) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2b1b8a632494ccfa3f52b510480f8969", "score": "0.57301015", "text": "public void startGame(){\n\t\tif(turn==Seed.WHITE.getCode()){\n\t\t\t\n\t\t\tplayer.setText(\"Your Chance\");\n\t\t}\n\t\telse{\n\t\t\tplayer.setText(\"Computer Playing\");\n\t\t\tplayAI();\n\t\t}\n\t}", "title": "" }, { "docid": "5418ad848f68a777f0c1b25a226bc0f4", "score": "0.5700178", "text": "public void startAndCompleteYourRelationshipsActivityOfMasterStress(String activityName,int count){\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tfillingMealPlanningDetailsInLevel2();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t\tclickOnContinueBtn();\n\t}", "title": "" }, { "docid": "298135577937edcdf477550420bbf79d", "score": "0.56907713", "text": "private void startTurn() {\n System.out.println(\"Round number: \" + engine.getConsoleGameManager().getRoundNumber());\n System.out.println(\"Current player: \" +engine.getConsoleGameManager().getCurrentPlayerTurn().getPlayerName());\n printFundsBeforeProduction();\n printFunds();\n showCurrentPlayerStats();\n }", "title": "" }, { "docid": "3857222eb86fe456cd0d33a11c25aed4", "score": "0.5659598", "text": "public static void begin() {\n System.out.println(\"\\n\\n----------------------------------------------------------\");\n System.out.println(\"-- Welcome to A* informed search algorithm for 8-Puzzle --\");\n System.out.println(\"----------------------------------------------------------\");\n \n problem = new ArrayList<>(); // Problem to give to the search algorithm\n String createProblem; // To ask to a user to generate a problem\n int heuristic = 0; // Heuristic that will be used\n \n createProblem = a.askForCreateAProblem();\n if(createProblem.equals(\"y\"))\n heuristic = a.askForHeuristic();\n if(createProblem.equals(\"e\")){\n a.makeExample();\n heuristic = 1;\n }\n \n \n while((\"y\".equals(createProblem) || \"e\".equals(createProblem)) && (heuristic == 1 || heuristic == 2)){\n // Problem is changed each time\n if(\"y\".equals(createProblem))\n problem = a.generateProblem(3); // Asks for states and store that in \"problem\"\n \n // If initial state or goal state are not null, then begin with algorithm\n if(!(iState == null) && !(gState == null)) {\n System.out.println(\"A problem has been sent!!! Heuristic: \" + heuristic);\n SearchSolution.uniform_cost_search(problem, true, heuristic, true);\n }\n \n createProblem = a.askForCreateAProblem();\n if(createProblem.equals(\"y\"))\n heuristic = a.askForHeuristic();\n if(createProblem.equals(\"e\")){\n a.makeExample();\n heuristic = 1;\n iState = null;\n gState = null;\n }\n }\n }", "title": "" }, { "docid": "8922ef701762be2de71d7de543f33246", "score": "0.5659491", "text": "public abstract void doPlanning();", "title": "" }, { "docid": "3c325f34858cae390879a2560a33386b", "score": "0.5656313", "text": "public void main () {\n\n info(\"We need to create participant,WIA Enrollment, WIA Training and complete it\");\n Participant participant = new Participant(AccountUtils.getParticipantAccount());\n TrainingSteps.createWiaTrainingWithUnregisteredParticipant(participant);\n TrainingSteps.editWIATraining(participant, Constants.COMPLETED, lastDayTraining);\n\n logStep(\"Log in to the system and open required page.\");\n BaseWingsSteps.openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_PARTICIPANT_RECORDS, Popup.Search);\n\n logStep(\"Select some data for searching(1 parameter)->Search\");\n ParticipantSearchForm participantSearchForm = new ParticipantSearchForm();\n participantSearchForm.performSearch(participant);\n logStep(\"Open Participant record\");\n participantSearchForm.openFirstSearchResult();\n BaseParticipantDetailsForm detailsForm = new BaseParticipantDetailsForm();\n logStep(\"Validate WIA Enrollment dates\");\n detailsForm.expandWIAEnrollments();\n CustomAssertion.softTrue(\"Incorrect current date\", detailsForm.getWiaEnrrlDetailsText().contains(String.format(\"Started: %1$s\", CommonFunctions.getCurrentDate())));\n CustomAssertion.softTrue(\"Date has already finished\", detailsForm.getWiaEnrrlDetailsText().contains(enrollmentText));\n }", "title": "" }, { "docid": "beaf619f31afc4845faee923e06b4eac", "score": "0.56545407", "text": "public void testFlow() {\n\t\tJaroResources resources = new HtmlResources(new JaroFileAssets(\"src-test/resources\"), new LevelPersisterMock());\r\n\t\tJaroGame game = new JaroGame(new JaroModel(resources), new JaroView(), new JaroController(SoundPlayerMock.INSTANCE), new LevelPersisterMock(), resources);\r\n\t\tLevelManager levelManager = game.getModel().getLevelManager();\r\n\t\t\r\n\t\tLevel level = levelManager.getCurrentLevel();\r\n\t\tassertNotNull(level);\r\n\t\tassertEquals(\"004.test-level-1.html\", level.getLevelKey());\r\n\t\t\r\n\t\t// mark that level as passed\r\n\t\tlevelManager.passCurrentLevel();\r\n\t\t\r\n\t\t// see we advance correctly\r\n\t\t// advance within a stage\r\n\t\t// advance between stages\r\n\t\tlevel = levelManager.getCurrentLevel();\r\n\t\tassertEquals(\"001.spider-level1.html\", level.getLevelKey());\r\n\t\t\r\n\t\t// persist, destroy, bring back up again\r\n\r\n\t\t// show we're still on the correct level\r\n\t\t\r\n\t\t// advance and show we can complete all stages and levels\r\n\t\t// -- need some sort of indicator that we're done so we know what to do next\r\n\t\t\r\n\t}", "title": "" }, { "docid": "03d5b2662c98f292d08c54557029a528", "score": "0.5647857", "text": "@Override\r\n public void step()\r\n {\r\n Grid<GameObject> gr = getGrid();\r\n //This only applies for the FIRST call to this method. ?????\r\n if(!matchReady)\r\n initializeMatch();\r\n \r\n //Get all the Actors in the Grid----------------------\r\n ArrayList<GameObject> actors = new ArrayList<GameObject>();\r\n // Look at all grid locations.\r\n for (int r = 0; r < gr.getNumRows(); r++)\r\n {\r\n for (int c = 0; c < gr.getNumCols(); c++)\r\n {\r\n // If there's an object at this location, put it in the array.\r\n Location loc = new Location(r, c);\r\n if (gr.get(loc) != null) \r\n actors.add(gr.get(loc));\r\n }\r\n }\r\n \r\n //--------------Shuffle their order----------------------\r\n if(actors.size() > 1)\r\n {\r\n //shuffle their order for acting.\r\n for(int z=0;z<actors.size()*2;z++)\r\n {\r\n //Pick a random one.\r\n int from = randy.nextInt(actors.size());\r\n //Swap it to the front.\r\n GameObject a = actors.get(from);\r\n GameObject b = actors.get(0);\r\n actors.set(from,b);\r\n actors.set(0,a); \r\n }\r\n }\r\n\r\n //-------------Have them each act()--------------------------\r\n int numPowerUps = 0; //going to count the total number of PowerUps too... \r\n for (GameObject a : actors)\r\n {\r\n if (a.getGrid() == gr)\r\n {\r\n if(a instanceof Bot)\r\n {\r\n Bot b = (Bot)a;\r\n if(b.getAvgMSecUsed() < MAX_AVG_MSEC)\r\n {\r\n// System.out.println(\"Processing Bot :\"+b.getColor());\r\n long startTime = System.currentTimeMillis();\r\n a.act();\r\n long finishTime = System.currentTimeMillis();\r\n// System.out.println(finishTime+\"-\"+startTime);\r\n b.increaseMSecUsed((int)(finishTime-startTime));\r\n }\r\n else\r\n {\r\n System.out.println(\"Skipped a turn due to SLOW TIME \");\r\n }\r\n }\r\n else\r\n a.act();\r\n }\r\n }\r\n if(((BotWorldGrid)gr).isMessageWaiting())\r\n setMessage(((BotWorldGrid)gr).getMessage());\r\n \r\n //=== Collect from Businesses ===============================\r\n HashMap<Color,Integer> hm = new HashMap<>();\r\n for (int r = 0; r < gr.getNumRows(); r++)\r\n {\r\n for (int c = 0; c < gr.getNumCols(); c++)\r\n {\r\n // If there's an object at this location, put it in the array.\r\n Location loc = new Location(r, c);\r\n Business b = ((BotWorldGrid)gr).getBusiness(loc);\r\n GameObject go = gr.get(loc);\r\n if(b!=null)\r\n {\r\n b.decreaseDuration();\r\n if(go instanceof Bot || go instanceof Customer)\r\n {\r\n if(!b.getColor().equals(go.getColor()))\r\n {\r\n if(hm.containsKey(b.getColor()))\r\n {\r\n int amount = hm.get(b.getColor());\r\n hm.replace(b.getColor(), amount+b.getChargeAmount()); \r\n }\r\n else\r\n hm.put(b.getColor(), b.getChargeAmount());\r\n }\r\n\r\n }\r\n }\r\n }\r\n }\r\n for (GameObject a : actors)\r\n {\r\n if(a instanceof Bot)\r\n if(hm.containsKey(a.getColor()))\r\n {\r\n ((Bot)a).addToScore(hm.get(a.getColor()));\r\n }\r\n \r\n }\r\n \r\n //--------ADD A Customer ?? --------------------------------------\r\n if(Math.random()<.12)\r\n {\r\n Location custLoc = RatBotsArena.getNewRandomSubwayStation(new Location(100,100));\r\n if(gr.get(custLoc) == null)\r\n {\r\n Customer bob = new Customer();\r\n bob.putSelfInGrid(gr, custLoc);\r\n } \r\n }\r\n //--------ADD A Temporary Job Site --------------------------------------\r\n BotWorldGrid bwg = (BotWorldGrid)gr;\r\n if(Math.random()<.02)\r\n {\r\n Location jobLoc = this.getRandomEmptyLocation();\r\n if(gr.get(jobLoc) == null)\r\n {\r\n if(bwg.getBusiness(jobLoc) == null || \r\n ( bwg.getBusiness(jobLoc).getColor().equals(RatBotsColorScheme.getNeutralColor()) &&\r\n bwg.getBusiness(jobLoc).getChargeAmount() < 1000 &&\r\n bwg.getBusiness(jobLoc).getChargeAmount() > 0))\r\n {\r\n bwg.setBusiness(jobLoc, new Business());\r\n int val = -((int)(Math.random()*76)+125);\r\n bwg.getBusiness(jobLoc).increaseChargeAmount(val);\r\n bwg.getBusiness(jobLoc).setDuration((int)(Math.random()*15)+25);\r\n }\r\n } \r\n }\r\n //----------Process Advertisements ------------------------------------\r\n ArrayList<Advertisement> ads = bwg.getAds();\r\n for(Advertisement ad : ads)\r\n {\r\n double influenceProportion = 2*Math.sqrt(ad.getAmount())/100;\r\n// System.out.println(\"Checking an AD = \"+influenceProportion);\r\n //For each ad, each Customer has a % chance of going to this Location. \r\n for (GameObject a : actors)\r\n {\r\n if(a instanceof Customer)\r\n {\r\n if(Math.random()<=influenceProportion)\r\n {\r\n Customer c = (Customer) a;\r\n c.setDetination(ad.getLocation());\r\n// System.out.println(\"Influenced a Customer\");\r\n } \r\n// else System.out.println(\" Didn't Influence a Customer\");\r\n }\r\n }\r\n }\r\n bwg.clearAds();\r\n \r\n \r\n //--------------Is round/match over?-------------------------\r\n moveNum++;\r\n if(moveNum > NUM_MOVES_IN_ROUND)\r\n {\r\n scoreRound();\r\n initializeGridForRound();\r\n \r\n// moveNum = 1;\r\n }\r\n if(roundNum > NUM_ROUNDS_IN_MATCH && roundRobin) \r\n {\r\n initializeMatch();\r\n return;\r\n } \r\n \r\n }", "title": "" }, { "docid": "34fd542de6d16b9eacdbf7d205a73941", "score": "0.56402797", "text": "public int combatSequenceForOneEnemy(BorderPane bP, Sword weapon1, MagicSword mS1, Enemy enemy, Club weapon2, Character player, int sAC, Text roomI, Text eH, Text pH, Text pE, Text cL, Text cG, Text cons, Text optA, Text optB, Text optC, Text optD, Text optE, Text optF){\r\n \r\n do{\r\n ChoicePrompt prompt11 = new ChoicePrompt(bP.getScene().getWindow());\r\n String choice11 = prompt11.getResult();\r\n\r\n \r\n if (choice11.compareToIgnoreCase(\"slash\")== 0) \r\n { \r\n \r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.use();\r\n //displaying message about damage done\r\n optD.setText(\"You attack the enemy and do \"+attackDamage+\" slashing damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \"+ enemy.getHealth());\r\n //enemy attack\r\n enemyAttackDamage = weapon2.use();\r\n optE.setText(\"Goblin attacks you for \"+enemyAttackDamage+ \" bludgeoning damage!\");\r\n //lowering character health\r\n health = player.getHealth() - enemyAttackDamage;\r\n player.setHealth(health);\r\n //Yaxin for every attack, the experience increase enemyAttackDamage\r\n expLevel = player.getExperienceLevel();\r\n experience = player.getExperience() + enemyAttackDamage; \r\n /*if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n }*/ \r\n player.setExperience(experience);\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF);\r\n pH.setText(\"HP: \"+ player.getHealth());\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded()); \r\n //pH.setText(\"HP: \"+ player.getHealth());\r\n this.characterDeath(player, bP, roomI, cons, optA, optB, optC, optD, optE);\r\n }\r\n else if( choice11.compareToIgnoreCase(\"stab\") == 0)\r\n {\r\n if(mS1.getHasMagicSword() == true)\r\n {\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n if(mS1.getHasFireDamage()==true)\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getFireDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack the goblin and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getFireDamage()+\" fire damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack the goblina and do 2 piercing damage.\");\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n }\r\n else\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getIceDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack the goblin and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getIceDamage()+\" ice damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack the goblina and do 2 piercing damage.\");\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n }\r\n }\r\n else{\r\n {\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n //displaying message about damage done\r\n optD.setText(\"You attack the goblin and do \"+attackDamage+\" piercing damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth()); \r\n }\r\n //enemy attack\r\n enemyAttackDamage = (weapon2.use());\r\n optE.setText(\"Goblin attacks you for \"+enemyAttackDamage+ \" bludgeoning damage!\");\r\n health = player.getHealth() - enemyAttackDamage;\r\n player.setHealth(health);\r\n //lowering character health\r\n expLevel = player.getExperienceLevel();\r\n experience = player.getExperience() + enemyAttackDamage; \r\n /*if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF); \r\n pH.setText(\"HP: \"+player.getHealth() );\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded());\r\n //tracking stab attacks for character improvement\r\n sAC++;\r\n weapon1.setCritHitChance(player.improvedCritChance(sAC), player.getHasImprovedCritChance());\r\n this.characterDeath(player, bP, roomI, cons, optA, optB, optC, optD, optE);\r\n }\r\n }\r\n //code to exit the program\r\n else if(choice11.compareToIgnoreCase(\"quit\") == 0)\r\n {\r\n System.exit(1);\r\n }\r\n }while(enemy.getHealth() > 0);\r\n return sAC;\r\n }", "title": "" }, { "docid": "0545ff7deea04f06c2921f4d40bfc37d", "score": "0.5638935", "text": "public void startAndCompleteYourResponseActivityOfMAsterStresGP(int count){\n\t\tclickOnNextBtnOfActivity(count);\n\t\tfillingMealPlanningDetailsInLevel2();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "b12ef08e91852afd5ec13e181ed0d2dd", "score": "0.56373096", "text": "void go() {\n // reset statistics\n count_rich = 0;\n count_middle = 0;\n count_poor = 0;\n gini_index = 0;\n int max_wealth = 0;\n\n // ask turtles to turn\n for (Turtle t: turtles) {\n turnTowardGrain(t.location, t.getVision());\n }\n\n // harvest\n for (Patch[] a: field) {\n for (Patch p : a) {\n p.harvest();\n if (ticks % Params.GRAIN_GROWTH_INTERVAL == 0)\n p.growGrain();\n }\n }\n\n // ask turtle to move_eat_age_die\n for (Turtle t: turtles) {\n int wealth = t.moveEatAgeDie();\n if (wealth > max_wealth)\n max_wealth = wealth;\n Coordinate loc = t.location;\n field[loc.getX()][loc.getY()].turtles_here.add(t);\n }\n\n // update statistics\n updateTurtlesClass(max_wealth);\n update_gini_index();\n\n ticks ++;\n\n }", "title": "" }, { "docid": "641bd8effeaed6af8da84f4b5af2600c", "score": "0.5631087", "text": "private void run() {\r\n output.println(\"Welcome to the game of 20 Questions!\");\r\n load();\r\n\r\n // \"Think of an item, and I will guess it in N tries.\"\r\n output.println(\"\\n\" + BANNER_MESSAGE);\r\n\r\n do {\r\n // play one complete game\r\n output.println(); // blank line between games\r\n tree.play();\r\n output.print(PLAY_AGAIN_MESSAGE);\r\n } while (UserInterface.nextAnswer(input)); // prompt to play again\r\n\r\n // print overall stats\r\n // Games played: N ... I have won: M\r\n output.println(\"\\n\" + String.format(STATUS_MESSAGE, tree.totalGames(), tree.gamesWon()));\r\n save();\r\n }", "title": "" }, { "docid": "2b21560422665d706d7a87690842fee2", "score": "0.5629555", "text": "public void startAndCompleteWinningTheWarActivity(String activityName){\n\t\tSeleniumUtil.waitForElementToBePresent(SeleniumUtil.dynamicXpath(startAndReviewLinkOfLevelActivity,activityName), driver);\n\t\tstartActivityOfLevel1(activityName);\n\t\tclickOnNextBtnOfActivity(5);\n\t\tenterDetailsInPlanItPanel(2);\n\t\tclickOnSubmitButtonOfWinningTheWarActivity();\n\t}", "title": "" }, { "docid": "0033f8209c59334a1418e4f7e9376e02", "score": "0.56230575", "text": "Action findGoal(){\n\t\tgoalAgent = graph.nearestAgent(this, (a) -> !getTeam().equals(a.team) && a.position.equals(position) && a.positionAge == 0 && (a.health == null || a.health != 0));\n\t\tif (goalAgent == null) goalAgent = graph.nearestAgent(this, (a) -> !getTeam().equals(a.team) && (a.positionAge == 0 || !a.position.equals(position)) && (a.health == null || a.health != 0) && (\"Repairer\".equals(a.role) || \"Explorer\".equals(a.role)));\n\t\tif (goalAgent == null) goalAgent = graph.nearestAgent(this, (a) -> !getTeam().equals(a.team) && (a.positionAge == 0 || !a.position.equals(position)) && a.health != null && a.health != 0 && a.healthAge != null && a.healthAge < 10);\n\t\tif (goalAgent == null) goalAgent = graph.nearestAgent(this, (a) -> !getTeam().equals(a.team) && (a.positionAge == 0 || !a.position.equals(position)) && (a.healthAge == null || a.healthAge >= 10));\n\n\t\tif (goalAgent != null)\n\t\t{\n\t\t\tpath = graph.shortestPath(position, goalAgent.position);\n\n\t\t\tif (path.size() == 0)\n\t\t\t{\n\t\t\t\tString name = goalAgent.name;\n\t\t\t\tgoalAgent = null;\n\t\t\t\tpath = null;\n\t\t\t\treturn attackGreedy(name);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath = graph.explore(position);\n\t\t\tif(path != null){\n\t\t\t\tString myGoal = path.peekLast();\n\t\t\t\tArrayList<String> goals = new ArrayList<String>();\n\t\t\t\tfor(OtherAgent agent: agents.values()){\n\t\t\t\t\tif(agent.team.equals(this.getTeam())){\n\t\t\t\t\t\tif(agent.goal != null){\n\t\t\t\t\t\t\tgoals.add(agent.goal);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile(goals.contains(myGoal)){\n\t\t\t\t\tpath = graph.shortestPath(position, (id) -> (graph.unknownEdges(id) || graph.unsurveyedEdges(id)) && !goals.contains(id));\n\t\t\t\t\tif(path != null){\n\t\t\t\t\t\tmyGoal = path.peekLast();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tmyGoal = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsetGoal(myGoal);\n\t\t\t}\n\t\t\tgoalAgent = null;\n\t\t\tif(path == null){\n\n\t\t\t\tLinkedList<String> n = graph.territory(this);\n\t\t\t\tif(n == null){\n\t\t\t\t\tList<String> nodes = graph.nodesAtRange(position, 1);\n\t\t\t\t\treturn gotoGreedy(nodes.get(ThreadLocalRandom.current().nextInt(0, nodes.size())));\n\t\t\t\t}\n\t\t\t\telse if(n.size() == 0){\n\t\t\t\t\treturn parryGreedy();\n\t\t\t\t}\n\t\t\t\treturn gotoGreedy(n.removeFirst());\n\n\t\t\t}\n\t\t}\n\n\t\tif(path != null && path.size() != 0){\n\t\t\tString next = path.removeFirst();\n\t\t\tint weight = graph.edgeWeight(position, next);\n\t\t\tif(energy < weight){\n\t\t\t\tpath.addFirst(next);\n\t\t\t\treturn rechargeAction();\n\t\t\t}\n\t\t\tif(path.size() == 0){\n\t\t\t\tpath = null;\n\t\t\t}\n\t\t\treturn gotoAction(next);\n\t\t}\n\n\t\telse if(goalAgent == null && path.size() == 0){\n\t\t\tpath = null;\n\t\t\tsetGoal(null);\n\t\t\treturn surveyAction();\n\t\t}\n\t\tgoalAgent = null;\n\t\tLinkedList<String> n = graph.territory(this);\n\t\tif(n == null){\n\t\t\tList<String> nodes = graph.nodesAtRange(position, 1);\n\t\t\treturn gotoGreedy(nodes.get(ThreadLocalRandom.current().nextInt(0, nodes.size())));\n\t\t}\n\t\telse if(n.size() == 0){\n\t\t\treturn rechargeAction();\n\t\t}\n\t\treturn gotoGreedy(n.removeFirst());\n\t}", "title": "" }, { "docid": "2375dc6d8998d7ffd39db65c6dc8fd23", "score": "0.56209844", "text": "private void doCardAction(OpportunityKnocks opportunityKnocks) {\n String action = opportunityKnocks.getAction();\n FreeParkingPiece fpp = (FreeParkingPiece) board.getBoardPiece(20);\n switch (action) {\n case \"Bank pays player £50\":\n bank.withdraw(50);\n activePlayer.increaseBalance(50);\n break;\n case \"Bank pays player £100\":\n bank.withdraw(100);\n activePlayer.increaseBalance(100);\n break;\n case \"Player token moves forwards to Turing Heights\":\n activePlayer.setLocation(39);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 39);\n SM.changeScene(View.GAME);\n break;\n case \"Player moves token\":\n if (opportunityKnocks.getDescription().contains(\"han xin\")) {\n if (activePlayer.getLocation() > 24) {\n activePlayer.setLocation(24);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 24);\n passingGo();\n } else {\n activePlayer.setLocation(24);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 24);\n }\n SM.changeScene(View.GAME);\n break;\n }\n if (opportunityKnocks.getDescription().contains(\"hove station\")) {\n if (activePlayer.getLocation() > 15) {\n activePlayer.setLocation(15);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 15);\n passingGo();\n } else {\n activePlayer.setLocation(15);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 15);\n }\n SM.changeScene(View.GAME);\n break;\n }\n if (opportunityKnocks.getDescription().equalsIgnoreCase(\"advance to go\")) {\n activePlayer.setLocation(0);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 0);\n passingGo();\n SM.changeScene(View.GAME);\n break;\n }\n if (opportunityKnocks.getDescription().equalsIgnoreCase(\"go back 3 spaces\")) {\n if (activePlayer.getLocation() - 3 < 0) {\n int left = 3 - activePlayer.getLocation();\n activePlayer.setLocation(40 - left);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 40 - left);\n } else {\n activePlayer.setLocation(activePlayer.getLocation() - 3);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), activePlayer.getLocation());\n }\n SM.changeScene(View.GAME);\n break;\n }\n if (opportunityKnocks.getDescription().equalsIgnoreCase(\"Advance to Skywalker Drive. If you pass GO collect £200\")) {\n if (activePlayer.getLocation() > 11) {\n activePlayer.setLocation(11);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 11);\n passingGo();\n } else {\n activePlayer.setLocation(11);\n playerLocations.set(amountOfPlayers.indexOf(activePlayer), 11);\n }\n SM.changeScene(View.GAME);\n break;\n }\n case \"Player puts £15 on free parking\":\n activePlayer.decreaseBalance(15);\n fpp.setBalance(fpp.getBalance() + 15);\n activePlayer.increaseBalance(-15);\n checkIfBankrupt();\n break;\n case \"Player pays £150 to the bank\":\n activePlayer.increaseBalance(-150);\n bank.deposit(150);\n checkIfBankrupt();\n break;\n case \"Bank pays £150 to the player\":\n bank.withdraw(150);\n activePlayer.increaseBalance(150);\n SM.changeScene(View.GAME);\n break;\n case \"Player pays money to the bank\":\n if (opportunityKnocks.getDescription().equalsIgnoreCase(\"You are assessed for repairs, £40/house, £115/hotel\")) {\n int house = 0;\n int hotel = 0;\n for (Property p : activePlayer.getOwnedProperties()) {\n if (p instanceof ColouredProperty) {\n if (((ColouredProperty) p).getHouseCost() == 5) {\n hotel++;\n } else {\n house += ((ColouredProperty) p).getHouseCount();\n }\n }\n }\n activePlayer.decreaseBalance((house * 40) + (hotel * 115));\n fpp.setBalance(fpp.getBalance() + ((house * 40) + (hotel * 115)));\n SM.changeScene(View.GAME);\n }\n if (opportunityKnocks.getDescription().equalsIgnoreCase(\"You are assessed for repairs, £25/house, £100/hotel\")) {\n int house = 0;\n int hotel = 0;\n for (Property p : activePlayer.getOwnedProperties()) {\n if (p instanceof ColouredProperty) {\n if (((ColouredProperty) p).getHouseCost() == 5) {\n hotel++;\n } else {\n house += ((ColouredProperty) p).getHouseCount();\n }\n }\n }\n activePlayer.decreaseBalance((house * 25) + (hotel * 100));\n fpp.setBalance(fpp.getBalance() + ((house * 25) + (hotel * 100)));\n SM.changeScene(View.GAME);\n }\n checkIfBankrupt();\n break;\n case \"As the card says\":\n goToJail();\n SM.changeScene(View.GAME);\n break;\n case \"Player puts £20 on free parking\":\n FreeParkingPiece fpp2 = (FreeParkingPiece) board.getBoardLocations().get(20);\n fpp2.setBalance(fpp2.getBalance() + 20);\n activePlayer.increaseBalance(-20);\n checkIfBankrupt();\n break;\n case \"Retained by the player until needed. No resale or trade value\":\n activePlayer.setGOJF(opportunityKnocks);\n break;\n }\n }", "title": "" }, { "docid": "b0917d8226feb3a26f9d8dce2239ddd7", "score": "0.561887", "text": "public void initialStartUpPhase() {\n\t\tcreateLogs();\n\t\tint playerSize = players.getPlayerList().size();\n\t\tif (players.getPlayerList().get(2).equals(\"Neutral Player\")){\n\t\t\tarmies = new ArmiesSelection(2);\n\t\t}else {\n\t\t\tarmies = new ArmiesSelection(playerSize);\n\t\t}\n\t\tfor (int i = 0; i < playerSize; i++) {\n\t\t\tString playerName = players.getPlayerList().get(i);\n\t\t\tplayers.setCurrentPhase(\"StartUp Phase\");\n\t\t\tplayers.addPlayerContinent(playerName, new Continent());\n\t\t\tplayers.initialArmy(playerName, armies.getPlayerArmies());\n\t\t\tLOGGER.info(playerName +\" got \" + armies.getPlayerArmies());\n\t\t}\n\t\tMap<String, String> territoryContinent = territory.getTerritoryCont();\n\t\tint playerCount = 0;\n\t\tfor (int i = 0; i < territory.getTerritoryList().size(); i++) {\n\t\t\tString playerName = players.getPlayerList().get(playerCount);\n\t\t\t// Retrieve Random Territory \n\t\t\tObject randomTerritory = territoryContinent.keySet().toArray()[new Random().nextInt(territoryContinent.keySet().toArray().length)];\n\t\t\tif (players.getPlayerArmy(playerName) >= 1) {\n\t\t\t\tContinent tempContinent = players.getPlayerContinent(playerName);\n\t\t\t\ttempContinent.addContinentOwnedTerritory(territoryContinent.get(randomTerritory), randomTerritory.toString(), true);\n\t\t\t\tterritoryContinent.remove(randomTerritory);\n\t\t\t\tLOGGER.info(playerName +\" has put 1 in \"+ randomTerritory.toString());\n\t\t\t\tterritory.updateTerritoryArmy(randomTerritory.toString(), 1, \"ADD\");\n\t\t\t\tterritory.updateTerritoryUser(playerName, randomTerritory.toString());\n\t\t\t\tplayers.updateArmy(playerName, 1, \"Remove\");\n\t\t\t\tplayers.updatePlayerContinent(playerName, tempContinent);\n\t\t\t\tplayerCount++;\n\t\t\t\tif (playerCount >= playerSize)\n\t\t\t\t\tplayerCount = 0;\t \n\t\t\t} else {\n\t\t\t\tterritory.updateTerritoryArmy(randomTerritory.toString(), 0, \"ADD\");\n\t\t\t\tterritory.updateTerritoryUser(\"No Player\", randomTerritory.toString());\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0;i < playerSize;i++) {\n\t\t\tString name = players.getPlayers(i);\n\t\t\tint armiesNo = players.getPlayerArmy(name);\n\t\t\tif(armiesNo > 0) {\n\t\t\t\tdo {\n\t\t\t\t\tfor(Entry<String, String> entry : territory.getTerritoryUser().entrySet()) {\n\t\t\t\t\t\tif(entry.getValue().equalsIgnoreCase(name) && players.getPlayerArmy(name) > 0) {\n\t\t\t\t\t\t\tLOGGER.info(territory.getTerritoryUser().get(entry.getKey()) + \" has put 1 in \"+entry.getKey());\n\t\t\t\t\t\t\tterritory.updateTerritoryArmy(entry.getKey(), 1, \"ADD\");\n\t\t\t\t\t\t\tplayers.updateArmy(name, 1, \"DELETE\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tarmiesNo = players.getPlayerArmy(name);\n\t\t\t\t} while(armiesNo > 0);\n\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "93740c5ca63fb056bdda1d0d32cec7fd", "score": "0.5617056", "text": "private void gamePlay() {\n\t\tcurrentPosition = new GamePosition(INITIALSTONES);\n\t\tGameGUI gui = new GameGUI(this);\n\t\tgui.addTextToButtons();\n\n\t\tint inputLevel;\n\t\tgui.openLevelDialog();\n\t\tlevel = null;\n\t\tgui.jTextArea1.append(\"Choose the level you want to play from the buttons above !\\n\");\n\t\twhile (level == null) { // Thread for waiting until the user press the\n\t\t\t\t\t\t\t\t// button.\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t} catch (final 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\tswitch ((inputLevel = Integer.parseInt(level.trim()))) {\n\t\tcase 1:\n\t\t\tSEARCH_DEPTH = 1;\n\t\t\tgui.closeChoiceDialog();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tSEARCH_DEPTH = 3;\n\t\t\tgui.closeChoiceDialog();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tSEARCH_DEPTH = 12;\n\t\t\tgui.closeChoiceDialog();\n\t\t\tbreak;\n\t\t}\n\n\t\tgui.jTextArea1.append(\"Choose if you want to start: YES or NO?\\n\");\n\t\tgui.openChoiceDialog();\n\t\tchoice = null;\n\t\twhile (choice == null) { // Thread for waiting until the user press the\n\t\t\t\t\t\t\t\t\t// button.\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tcurrentPosition.maxTurn = !\"y\".equalsIgnoreCase(choice.trim());\n\t\tgui.closeChoiceDialog();\n\t\tgui.jTextArea1.append(\"\\n THE GAME HAS STARTED \\n\");\n\t\twhile (!currentPosition.gameOver()) {\n\t\t\t// Human Turn\n\t\t\tif (!currentPosition.maxTurn)\n\n\t\t\t{\n\t\t\t\tint hole = 0;\n\t\t\t\tdo {\n\t\t\t\t\tgui.jTextArea1.append(\"YOUR TURN\\n\");\n\t\t\t\t\tinput = null;\n\t\t\t\t\twhile (input == null) { // Thread for waiting until the user\n\t\t\t\t\t\t\t\t\t\t\t// press the button.\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\thole = Integer.parseInt(input);\n\t\t\t\t\tif (!isLegalMove(currentPosition.gameBoard, hole))\n\t\t\t\t\t\tgui.jTextArea1.append(\"Illegal move:It was not your hole OR the hole is empty. Try again!\\n\");\n\t\t\t\t} while (!isLegalMove(currentPosition.gameBoard, hole));\n\n\t\t\t\tgui.jTextArea1.append(\"YOUR TURN!! \\n\");\n\t\t\t\tcurrentPosition.makeMove(new GameMove(hole));\n\t\t\t}\n\t\t\t// ComputerTurn\n\t\t\telse {\n\t\t\t\tgui.jTextArea1.append(\"My Turn !!! Thinking...\\n\");\n\t\t\t\tfinal double time1 = System.currentTimeMillis();\n\t\t\t\tcurrentPosition.makeMove(currentPosition.getBestMove(GameEngine.SEARCH_DEPTH));\n\t\t\t\tfinal double time2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"SEARCHING TIME: \" + (time2 - time1) / 1000 + \" seconds\");\n\t\t\t}\n\t\t\tgui.refresh();\n\t\t}\n\t\tgui.jTextArea1.append(\"!!!GAME OVER!!!\\n\");\n\t\tif (currentPosition.gameBoard[6] < currentPosition.gameBoard[13])\n\t\t\tgui.jTextArea1.append(\"You are a genius! You won! Congratulations! \\n \");\n\t\telse if (currentPosition.gameBoard[6] > currentPosition.gameBoard[13])\n\t\t\tgui.jTextArea1.append(\"You lose, I thought you were a genius :P\\n\");\n\t\telse\n\t\t\tgui.jTextArea1.append(\"DRAW. A rematch?\\n\");\n\t}", "title": "" }, { "docid": "f0d591725c8703e0fc339e56fb9a1cd9", "score": "0.56081295", "text": "public void startAndCompleteLearnHowNicotineAffectsOfQuitSmoking(int count){\n\t\tclickOnNextBtnOfActivity(count);\n\t\tswitchToQuizFrame();\n\t\tselectAnswerForActivityHavingListOfRadioBtns1InManageWightPostPlanSurvey(6, quizFrame);\n\t\tclickActivityCompleteBtn();\n\t\tswitchToDefaultContent();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "7b852a0bf94657e7114d29774f0f951b", "score": "0.56069344", "text": "private void beginGame()\r\n {\r\n \tSystem.out.println(\"\\nWelcome\\n\");\r\n \tif(board.numberOfPlayers() == 2)\r\n \t{\r\n \t\tfor(Player player : board.players)\r\n \t\t{\r\n \t\t\tplayer.setNumberOfCarrots(95); // adjustment for 2 player game\r\n \t\t}\t\r\n \t}\r\n \t//enter rules depending on number of players\r\n \t\r\n \t//add an exit method to return to main menu\r\n \t\r\n \tplayerTurn(); //starts next method to continue\r\n }", "title": "" }, { "docid": "8e60d6664ebc6a9cc7d88bb759388c72", "score": "0.560552", "text": "public void go() {\n explore();\n }", "title": "" }, { "docid": "4647d634336a54944270e8c949faff78", "score": "0.56038594", "text": "public void doAction()\n {\n if(!w.gameOver()) {\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n //Basic action:\n //Grab Gold if we can.\n if (w.hasGlitter(cX, cY))\n {\n w.doAction(World.A_GRAB);\n return;\n }\n\n //Basic action:\n //We are in a pit. Climb up.\n if (w.isInPit())\n {\n w.doAction(World.A_CLIMB);\n return;\n }\n\n // Clear path if at the end and shoot if appropriate.\n if(this.currPathIndex == (this.currPath.size()-1)) {\n this.currPath.clear();\n\n if(kb.shouldTryShootingWumpus) {\n // Turn towards wumpus and shoot.\n shootTo(getDirection(cX, cY, kb.wumpusPos.x, kb.wumpusPos.y));\n boolean succeeded = !w.wumpusAlive();\n if(succeeded) {\n Cell[] adj = kb.getAdjacent(kb.wumpusPos);\n for(int i = 0; i < 4; i++) {\n if(adj[i] != null) {\n if(kb.hasFact(adj[i].pos.x, adj[i].pos.y, Fact.Type.STENCH))\n kb.removeFact(adj[i].pos.x, adj[i].pos.y, Fact.Type.STENCH);\n }\n }\n }\n kb.grid[kb.wumpusPos.x-1][kb.wumpusPos.y-1].probWump = 0.0f;\n kb.shouldTryShootingWumpus = false;\n kb.hasArrow = false;\n }\n }\n this.currPathIndex++;\n\n //Test the environment\n if (w.hasBreeze(cX, cY))\n {\n kb.addType(new Vector2(cX, cY), Fact.Type.BREEZE);\n }\n if (w.hasStench(cX, cY))\n {\n kb.addType(new Vector2(cX, cY), Fact.Type.STENCH);\n }\n if (w.hasPit(cX, cY))\n {\n kb.addType(new Vector2(cX, cY), Fact.Type.PIT);\n kb.knownPits++;\n }\n if(kb.hasFact(cX, cY, Fact.Type.UNKNOWN)) {\n kb.addType(new Vector2(cX, cY), Fact.Type.EMPTY);\n }\n\n // Update GUI numbers\n boolean wumpusFound = false;\n for(Vector2 v : this.kb.frontier) {\n Cell c = kb.grid[v.x-1][v.y-1];\n int numUnknowns = kb.getNumUnknowns();\n\n // Get the probability of it being a wumpus at the cell.\n c.probWump = (float)this.mb.predict(3-kb.knownPits, !wumpusFound, numUnknowns, v.x, v.y, World.WUMPUS);\n // If certain it is a wumpus, tell the rest of the cells that the wumpus was found.\n if(c.probWump > 0.99999f) wumpusFound = true;\n\n // Get the probability of it being a pit at the cell. \n c.probPit = (float)this.mb.predict(3-kb.knownPits, !wumpusFound, numUnknowns, v.x, v.y, World.PIT);\n\n // Get the probability of it being both a pit and a wumpus at the cell.\n float probPitAndWump = (float)this.mb.predict(3-kb.knownPits, !wumpusFound, numUnknowns, v.x, v.y, World.PIT + World.WUMPUS);\n\n // If it is more likly to be both than one => set it to the new probability.\n if(probPitAndWump > c.probPit && probPitAndWump > c.probWump) {\n c.probPit = probPitAndWump;\n c.probWump = probPitAndWump;\n }\n\n }\n\n // Set all probabilities (except the one with a probability of 1.0) for wumpus to 0.0 if wumpus was found.\n if(wumpusFound) {\n for(Vector2 v : this.kb.frontier) {\n if(kb.grid[v.x-1][v.y-1].probWump < 0.99999f) {\n kb.grid[v.x-1][v.y-1].probWump = 0.0f;\n }\n }\n }\n\n // Calculate new path if reached the end of the old one.\n if (currPath.isEmpty()) {\n Node[] startGoal = kb.calcPathData(cX, cY); \n AStar.make(startGoal[1], startGoal[0], this.currPath);\n this.currPathIndex = 1;\n }\n\n // Only move if more than the starting node is in the path.\n if(this.currPath.size() > 1) {\n Node nextNode = this.currPath.get(this.currPathIndex);\n\n // Move to new block\n moveTo(getDirection(cX, cY, nextNode.index.x, nextNode.index.y));\n\n // Update frontier\n this.kb.updateFrontier(nextNode.index.x, nextNode.index.y);\n } else {\n this.currPathIndex = 0;\n }\n\n kb.reset();\n }\n }", "title": "" }, { "docid": "da06d9db699206ba37b96aa9762c009f", "score": "0.5601536", "text": "public void startAndCompleteStressAndSmokingOfQuitSmoking(String activityName){\n\t\tstartActivityOfLevel1(activityName);\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tclickOnActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "cd38ca02df8136fdae6d89e0cd8a9af1", "score": "0.5595236", "text": "public int combatSequenceForTwoEnemy(BorderPane bP, Sword weapon1, MagicSword mS1, Enemy enemy, Enemy enemy2, Club weapon2, Club weapon3, Character player, int sAC, Text roomI, Text eH, Text eH2, Text pH, Text pE, Text cL, Text cG, Text cons, Text optA, Text optB, Text optC, Text optD, Text optE, Text optF){\r\n \r\n do{\r\n ChoicePrompt fightPrompt = new ChoicePrompt(bP.getScene().getWindow());\r\n String fightPrompt2 = fightPrompt.getResult();\r\n\r\n \r\n if (fightPrompt2.compareToIgnoreCase(\"slash\")== 0) \r\n { \r\n if(enemy.getHealth()>= 0&&enemy2.getHealth()>=0)\r\n {\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.use();\r\n //displaying message about damage done\r\n optC.setText(\"You attack the \"+enemy.getName()+\" and do \"+attackDamage+\" slashing damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \"+ enemy.getHealth());\r\n //enemy attack\r\n enemyAttackDamage = (weapon2.use());\r\n optD.setText(enemy.getName()+\" attacks you for \"+enemyAttackDamage+ \" bludgeoning damage!\");\r\n //lowering character health\r\n player.setHealth(player.getHealth()-enemyAttackDamage);\r\n expLevel = player.getExperienceLevel();\r\n experience = player.getExperience() + enemyAttackDamage; \r\n player.setExperience(player.getExperience()+enemyAttackDamage);\r\n /*if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */ \r\n pH.setText(\"HP: \"+player.getHealth());\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded());\r\n //pH.setText(\"HP: \"+player.getHealth()); \r\n enemyAttackDamage2 = weapon3.use();\r\n optE.setText(enemy2.getName()+\" attacks you for \"+enemyAttackDamage2+ \" bludgeoning damage!\");\r\n //lowering character health\r\n health = player.getHealth() - enemyAttackDamage2; \r\n expLevel = player.getExperienceLevel();\r\n player.setExperience(player.getExperience()+enemyAttackDamage2);\r\n /*if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF);\r\n pH.setText(\"HP: \"+player.getHealth());\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded()); \r\n this.characterDeath(player, bP, cons, roomI, optA, optB, optC, optD, optE);\r\n }\r\n else{\r\n optE.setText(\" \");\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.use();\r\n //displaying message about damage done\r\n optC.setText(\"You attack the \"+enemy2.getName()+\" and do \"+attackDamage+\" slashing damage.\");\r\n //lowering enemy health\r\n enemy2.setHealth(enemy2.getHealth()-attackDamage); \r\n eH2.setText(\"HP: \"+ enemy2.getHealth());\r\n enemyAttackDamage2 = weapon3.use();\r\n optD.setText(enemy2.getName()+\" attacks you for \"+enemyAttackDamage2+ \" bludgeoning damage!\");\r\n //lowering character health\r\n health = player.getHealth() - enemyAttackDamage2; \r\n player.setHealth(health);\r\n expLevel = player.getExperienceLevel();\r\n player.setExperience(player.getExperience()+enemyAttackDamage2);\r\n /* if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF);\r\n pH.setText(\"HP: \"+player.getHealth());\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded());\r\n player.setExperience(player.getExperience()+enemyAttackDamage2);\r\n this.characterDeath(player, bP, roomI, cons, optA, optB, optC, optD, optE);\r\n }\r\n }\r\n else if(fightPrompt2.compareToIgnoreCase(\"stab\") == 0)\r\n {\r\n \r\n if(enemy.getHealth()>= 0&&enemy2.getHealth()>=0){\r\n if(mS1.getHasMagicSword() == true)\r\n {\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n if(mS1.getHasFireDamage()==true)\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getFireDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack \"+enemy.getName()+\" and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getFireDamage()+\" fire damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack the \"+enemy.getName()+\" and do 2 piercing damage.\");\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n }\r\n else\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getIceDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack \"+enemy.getName()+\" and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getIceDamage()+\" ice damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack \"+enemy.getName()+\" and do 2 piercing damage.\");\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n }\r\n }\r\n else{\r\n if(mS1.getHasMagicSword() == true)\r\n {\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n if(mS1.getHasFireDamage()==true)\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getFireDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack \"+enemy.getName()+\" and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getFireDamage()+\" fire damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack the \"+enemy.getName()+\" and do 2 piercing damage.\");\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n }\r\n else{\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getIceDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack \"+enemy.getName()+\" and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getIceDamage()+\" ice damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack \"+enemy.getName()+\" and do 2 piercing damage.\");\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy.getHealth());\r\n }\r\n }\r\n }\r\n else{ \r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n //displaying message about damage done\r\n optC.setText(\"You attack the \"+enemy.getName()+\" and do \"+attackDamage+\" piercing damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy.getHealth()-attackDamage); \r\n eH.setText(\"HP: \"+ enemy.getHealth());\r\n //enemy attack\r\n enemyAttackDamage = (weapon2.use());\r\n optD.setText(enemy.getName()+\" attacks you for \"+enemyAttackDamage+ \" bludgeoning damage!\");\r\n //lowering character health\r\n player.setHealth(player.getHealth()-enemyAttackDamage);\r\n expLevel = player.getExperienceLevel();\r\n player.setExperience(player.getExperience()+enemyAttackDamage); \r\n /*if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */\r\n pH.setText(\"HP: \"+player.getHealth());\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded()); \r\n enemyAttackDamage2 = weapon3.use();\r\n optE.setText(enemy2.getName()+\" attacks you for \"+enemyAttackDamage2+ \" bludgeoning damage!\");\r\n //lowering character health\r\n health = player.getHealth() - enemyAttackDamage2; \r\n player.setHealth(health);\r\n pH.setText(\"HP: \"+ player.getHealth()); \r\n expLevel = player.getExperienceLevel();\r\n player.setExperience(player.getExperience()+enemyAttackDamage2); \r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded());\r\n /*if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF); \r\n sAC++;\r\n weapon1.setCritHitChance(player.improvedCritChance(sAC), player.getHasImprovedCritChance());\r\n this.characterDeath(player, bP, roomI, cons, optA, optB, optC, optD, optE);\r\n }\r\n } \r\n } \r\n else{\r\n if(mS1.getHasMagicSword() == true){\r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n if(mS1.getHasFireDamage()==true)\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getFireDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack \"+enemy2.getName()+\" and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getFireDamage()+\" fire damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy2.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy2.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack the \"+enemy2.getName()+\" and do 2 piercing damage.\");\r\n enemy.setHealth(enemy2.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy2.getHealth());\r\n }\r\n }\r\n else\r\n {\r\n if(attackDamage==(mS1.getAttackM()*1.5+mS1.getIceDamage())){\r\n //displaying message about damage done\r\n optD.setText(\"You attack \"+enemy2.getName()+\" and do \"+mS1.getAttackM()+\" piercing damage\\n and \"+mS1.getIceDamage()+\" ice damage.\");\r\n //lowering enemy health\r\n enemy.setHealth(enemy2.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy2.getHealth());\r\n }\r\n else{\r\n //display message about damage done\r\n optD.setText(\"You attack \"+enemy2.getName()+\" and do 2 piercing damage.\");\r\n enemy.setHealth(enemy2.getHealth()-attackDamage); \r\n eH.setText(\"HP: \" + enemy2.getHealth());\r\n }\r\n }\r\n }\r\n else{ \r\n //getting value for attack factoring hit chance\r\n attackDamage = weapon1.stabAttack();\r\n //displaying message about damage done\r\n optC.setText(\"You attack the \"+enemy2.getName()+\" and do \"+attackDamage+\" slashing damage.\");\r\n //lowering enemy health\r\n enemy2.setHealth(enemy2.getHealth()-attackDamage); \r\n eH2.setText(\"HP: \"+ enemy2.getHealth());\r\n enemyAttackDamage2 = weapon3.use();\r\n optD.setText(enemy2.getName()+\" attacks you for \"+enemyAttackDamage2+ \" bludgeoning damage!\");\r\n optE.setText(\" \");\r\n //lowering character health\r\n health = player.getHealth() - enemyAttackDamage2; \r\n player.setHealth(health);\r\n expLevel = player.getExperienceLevel();\r\n player.setExperience(player.getExperience()+enemyAttackDamage2); \r\n /* if (player.getExperienceLevel() - expLevel >= 1)\r\n {\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF );\r\n player.setHealth(maxHealth);\r\n } */\r\n this.levelUp(bP, player, cL, cG, optB, optC, optD, optE, optF);\r\n pH.setText(\"HP: \"+player.getHealth() + \"\\nExp: \" + player.getExperience());\r\n pE.setText(\"Exp: \"+player.getExperience()+\" out of \"+player.getExpNeeded()); \r\n this.characterDeath(player, bP, roomI, cons, optA, optB, optC, optD, optE);\r\n //tracking stab attacks for character improvement\r\n sAC++;\r\n weapon1.setCritHitChance(player.improvedCritChance(sAC), player.getHasImprovedCritChance());\r\n this.characterDeath(player, bP, roomI, cons, optA, optB, optC, optD, optE);\r\n } \r\n }\r\n }\r\n //code to exit the program\r\n else if(fightPrompt2.compareToIgnoreCase(\"quit\") == 0)\r\n {\r\n System.exit(1);\r\n }\r\n }while(enemy2.getHealth() > 0);\r\n return sAC;\r\n }", "title": "" }, { "docid": "e0cbe763df975e8bb2e1fa6c8cbe736e", "score": "0.5592127", "text": "private void cs7() {\n\t\t Player local = ctx.players.local();\n\t\t\n\t\tif(init!=null){\n\t\t\tif(new Tile(init.x()-14,init.y()+13,0).distanceTo(local.tile())<8){\n\t\t\t\t\n\t\t\t\tif(local.appearance().equals(18019)){\n\t\t\t\t\tMethod.npcInteract(16723, \"Attack\");\n\t\t\t\t}else Method.fightNPC(16723);\n\t\t\t\t\n\t\t\t}else Method.clickOnMap(new Tile(init.x()-14,init.y()+13,0));\n\t\t}else { \n\t\t\t\n\t\t\tfor(GameObject o : ctx.objects.select().id(74990).nearest().first()){\n\t\t\tif(o.tile().distanceTo(local.tile())<20){\n\t\t\t\tMethod.sleep(2000);\n\t\t\t\tinit = ctx.players.local().tile();\n\t\t \t}\n\t\t }\n\t\t cs6();//get back into cave with enemies\n\t\t\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "e39890eb79fffb266cfa8a3ba4a541d3", "score": "0.55872715", "text": "public void startAndCompleteFocusOnPositivetActivityOfMasterStress(String activityName, int count){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tfillingMealPlanningDetailsInLevel2();\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "1e7e984d4f848877fe7469f5cf317e71", "score": "0.55871624", "text": "@Override\n\t\t\t\t\tpublic void work() {\n\t\t\t\t\t\tplatform.getPlayer1().increaseExp(bonus.getExp());\n\t\t\t\t\t\tplatform.getPlayer1().increaseGold(bonus.getGold());\n\t\t\t\t\t\tplatform.getPlayer1().increaseSkillPoint(bonus.getSp());\n\t\t\t\t\t\tplatform.getPlayer1().increaseUpGradeStoneNum(bonus.getUs());\n\t\t\t\t\t\tplatform.getPlayer1().increaseEvolveStoneNum(bonus.getEs());\n\t\t\t\t\t\tmain.returnStatic();\n\t\t\t\t\t}", "title": "" }, { "docid": "d8954f459bc1c57b40158b5f1a601aac", "score": "0.55694574", "text": "public void execute() {\n\t\tswitch (curState) {\n\t\tcase waiting:\n\t\t\tdriveStep1 = new DriveWithEncoder(12);\n\t\t\tdriveDegrees1 = new TurnDegrees(-90);\n\t\t\tdriveStep2 = new DriveWithEncoder(84);\n\t\t\tdriveDegrees2 = new TurnDegrees(90);\n\t\t\t//driveToWall = new DriveToWall(13);\n\t\t\tdriveToWall = new DriveWithEncoder(12);\n\t\t\tintake.autoDeploy();\n\t\t\tcurState = MissionStates.driving1;\n\t\t\tbreak;\n\t\tcase driving1:\n\t\t\tdriveStep1.run();\n\t\t\tif (driveStep1.isFinished())\n\t\t\t\tcurState = MissionStates.arrived1;\n\t\t\tbreak;\n\t\tcase arrived1:\n\t\t\tcurState = MissionStates.turning1;\n\t\t\tbreak;\n\t\tcase turning1:\n\t\t\tdriveDegrees1.run();\n\t\t\tif (driveDegrees1.isFinished())\n\t\t\t\tcurState = MissionStates.driving2;\n\t\t\tbreak;\n\t\tcase driving2:\n\t\t\tdriveStep2.run();\n\t\t\tif (driveStep2.isFinished())\n\t\t\t\tcurState = MissionStates.turning2;\n\t\t\tbreak;\n\t\tcase arrived2:\n\t\t\tcurState = MissionStates.turning2;\n\t\t\televator.setPosition(RobotMap.Elevator.SWITCHWALL_HEIGHT);\n\t\t\tbreak;\n\t\tcase turning2:\n\t\t\tdriveDegrees2.run();\n\t\t\tif (driveDegrees2.isFinished())\n\t\t\t\tcurState = MissionStates.reaching;\n\t\t\tbreak;\n\t\tcase deploying:\n\t\t\tif (elevator.isAtHeight(RobotMap.Elevator.SWITCHWALL_HEIGHT)) {\n\t\t\t\tcurState = MissionStates.reaching;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase reaching:\n\t\t\tdriveToWall.run();\n\t\t\tif (driveToWall.isFinished())\n\t\t\t\tcurState = MissionStates.reached;\n\t\t\tbreak;\n\t\tcase reached:\n\t\t\tintake.autoEject();\n\t\t\tcurState = MissionStates.ejecting;\n\t\t\tbreak;\n\t\tcase ejecting:\n\t\t\tif (!intake.isIntakeRunning()) {\n\t\t\t\tcurState = MissionStates.done;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase done:\n\t\t\t// turn stuff off an prepare for teleop\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "8c09988b35073c4adc73a17bf6c038df", "score": "0.55678505", "text": "public void startOvercomeVeggieHurdleActivityOfLevel2(){\n\t\tSeleniumUtil.waitForElementToBeVisible(level2StartAndReviewLnkOvercomeVeggieActivity, driver);\n\t\tSeleniumUtil.element(level2StartAndReviewLnkOvercomeVeggieActivity, driver).click();\n\t\tReporter.log(\"Clicked on Start link of Overcome Veggie Hurdle activity\");\n\t}", "title": "" }, { "docid": "a2f869f09f0e004437b3a270e1cc24fd", "score": "0.55644155", "text": "protected void execute() {\n \tSystem.out.println(\"Hi\");\n \tif(!Robot.goForwardChoice) {\n \t\tSystem.out.println(\"Elizabeth's hotspot, and this autonomous, are turned off\");\n \t} else {\n \t\tif (RobotPosition == 'M') {\n \t\t\tif (Robot.vaultChooser) {\n \t\t\t\tnew GyroDriveForward(125, 0.75);\n \t\t\t\tnew GhettoTurn(180, 0.75);\n \t\t\t\tnew GyroDriveForward(125,0.75);\n \t\t\t\t//new AutoDropCube();\n \t\t\t} else {\n \t\t\t\tnew GyroDriveForward(125,0.75);\n \t\t\t}\n \t\t} else {\n \t\t\tif(!Robot.scaleChoice) {\n \t\t\t\tif (!Robot.switchChoice) {\n \t\t\t\t\tnew GyroDriveForward(125, 0.75);\n \t\t\t\t} else {\n \t\t\t\t\tif(RobotPosition == SwitchSide) {\n \t\t\t\t\t\tif(RobotPosition == 'L') {\n \t\t\t\t\t\t\tnew GyroDriveForward(320, 0.75);\n \t\t\t\t\t\t\tnew GhettoTurn(45, 0.75);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tnew GyroDriveForward(320, 0.75);\n \t\t\t\t\t\t\tnew GhettoTurn(-45, 0.75);\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t} else {\n \t\t\t\t\t\tnew GyroDriveForward(125,0.75);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tif(RobotPosition == ScaleSide) {\n \t\t\t\t\tif(RobotPosition == 'L') {\n \t\t\t\t\t\tnew GyroDriveForward(125, 0.75);\n \t\t\t\t\t\tnew GhettoTurn(45,0.75);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tnew GyroDriveForward(125, 0.75);\n \t\t\t\t\t\tnew GhettoTurn(-45, 0.75);\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\tnew GyroDriveForward(125, 0.75);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t}\n }", "title": "" }, { "docid": "7582957ac1caba4063e78afecba4ebbe", "score": "0.55559176", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n\n /*\n\n Init game()\n draw_board()\n play_game()\n Keep doing till all tiles are owned\n\n if win then stop\n else Record human move ()\n draw_human_move\n\n if win then stop\n else Record computers_move{\n find_human_win\n Block_win\n find_my_win()\n play_winner()\n choose_move ()\n\n draw_computer_move()\n }\n\n */\n }", "title": "" }, { "docid": "284eb128ffed3d064c3a3171a16204ea", "score": "0.55393755", "text": "@Override\n public void onClick(View view) {\n accountBalVals.clear();\n accountBal = 100.0;\n timer = new Timer();\n isGameStopped = false;\n\n goodStrategy = new GoodStrategy();\n goodStrategy.start();\n badStrategy = new BadStrategy();\n badStrategy.start();\n\n timer.schedule(new PollAccountBal(mainActivityHandler), 10000, 10000);\n\n Toast.makeText(MainActivity.this, \"Game Started!\", Toast.LENGTH_LONG).show();\n gameMsg.setText(\"Click on 'Show Growth' to see the graph\");\n }", "title": "" }, { "docid": "ab9d87db31d884677f0099ef49dd2ba2", "score": "0.5529809", "text": "void startGame() {\n prepareCluedVersion();\n Map<Integer, Player> playerOnTable = seatPlayers();\n System.out.println(playerOnTable);\n\n// Round firstRound = new Round();\n\n\n// final Player playerRound = players.get(1);\n// playerRound.askAboutCard(firstRound);\n//\n// teraz gdy gracz drugi nie odpowiedział, znaczy ze nie ma zadnej karty\n// final Player playerAnswered = players.get(3);\n// playerAnswered.answer(firstRound);\n\n }", "title": "" }, { "docid": "46ffdd16bea4453bc81c30b9135ec838", "score": "0.55256754", "text": "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tpublic int onLoop() {\n\n\t\ts = 5;\n\t\tswitch (getState()) {\n\n\t\tcase LVLMAKING:\n\t\t\tprintln(\"Case: LVLMAKING\");\n\n\t\t\tif (Skills.getCurrentLevel(SKILLS.FLETCHING) < 10) {\n\t\t\t\titem1 = \"Logs\";\n\t\t\t\titem2 = \"Arrow shaft\";\n\t\t\t\tmakeButton = 14;\n\t\t\t}\n\n\t\t\tif (Skills.getCurrentLevel(SKILLS.FLETCHING) >= 10) {\n\t\t\t\titem1 = \"Logs\";\n\t\t\t\titem2 = \"Shortbow (u)\";\n\t\t\t\tmakeButton = 16;\n\t\t\t}\n\n\t\t\tif (Skills.getCurrentLevel(SKILLS.FLETCHING) >= 20) {\n\t\t\t\titem1 = \"Oak logs\";\n\t\t\t\titem2 = \"Oak shortbow (u)\";\n\t\t\t\tmakeButton = 15;\n\t\t\t}\n\n\t\t\tif (Skills.getCurrentLevel(SKILLS.FLETCHING) >= 35) {\n\t\t\t\titem1 = \"Willow logs\";\n\t\t\t\titem2 = \"Willow shortbow (u)\";\n\t\t\t\tmakeButton = 15;\n\t\t\t}\n\n\t\t\tif (Skills.getCurrentLevel(SKILLS.FLETCHING) >= 50) {\n\t\t\t\titem1 = \"Maple logs\";\n\t\t\t\titem2 = \"Maple shortbow (u)\";\n\t\t\t\tmakeButton = 15;\n\t\t\t}\n\n\t\t\tif (Skills.getCurrentLevel(SKILLS.FLETCHING) >= 63) {\n\t\t\t\tmakeRB = true;\n\t\t\t\tprintln(\"Time to make Ruby bolts.\");\n\t\t\t\tGeneral.sleep(300);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tGeneral.sleep(General.random(400, 1200));\n\n\t\t\tif (Inventory.find(item1).length == 0) {\n\t\t\t\tprintln(\"I need to get some \" + item1 + \".\");\n\n\t\t\t\tBanking.openBank();\n\n\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\treturn (Banking.isBankScreenOpen());\n\t\t\t\t\t}\n\t\t\t\t}, General.randomLong(5000, 6000))) {\n\t\t\t\t}\n\t\t\t\t;\n\n\t\t\t\tif (!Banking.isBankScreenOpen()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// If there aren't any item1 in the bank, clear filler then deposit,\n\t\t\t\t// and replace fillers.\n\t\t\t\tif (Banking.find(item2).length < 1 && Inventory.find(item2).length >= 1) {\n\n\t\t\t\t\tRSItem[] fillers = Banking.find(\"Bank filler\");\n\t\t\t\t\tfillers[0].click(\"Clear-All\");\n\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\tBanking.depositAllExcept(\"Knife\");\n\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\tRSInterface child2 = Interfaces.get(12, 111);\n\t\t\t\t\tif (child2 != null) {\n\t\t\t\t\t\tchild2.click(\"Show menu\");\n\t\t\t\t\t}\n\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\tRSInterface child3 = Interfaces.get(12, 67);\n\t\t\t\t\tif (child3 != null) {\n\t\t\t\t\t\tchild3.click(\"Fill\");\n\t\t\t\t\t}\n\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\tRSInterface child4 = Interfaces.get(12, 111);\n\t\t\t\t\tif (child4 != null) {\n\t\t\t\t\t\tchild4.click(\"Hide menu\");\n\t\t\t\t\t}\n\t\t\t\t\tGeneral.sleep(2000);\n\n\t\t\t\t} else {\n\t\t\t\t\tBanking.depositAllExcept(\"Knife\");\n\n\t\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\t\treturn (Inventory.find(item2).length < 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}, General.randomLong(10000, 12000))) {\n\t\t\t\t\t}\n\t\t\t\t\t;\n\n\t\t\t\t}\n\n\t\t\t\tGeneral.sleep(General.random(1000, 1100));\n\n\t\t\t\tif (Inventory.isFull()) {\n\t\t\t\t\tBanking.depositAllExcept(\"Knife\");\n\t\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\t\treturn (!Inventory.isFull());\n\t\t\t\t\t\t}\n\t\t\t\t\t}, General.randomLong(10000, 12000))) {\n\t\t\t\t\t}\n\t\t\t\t\t;\n\t\t\t\t}\n\n\t\t\t\tBanking.withdraw(27, item1);\n\n\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\treturn (Inventory.find(item1).length > 26);\n\t\t\t\t\t}\n\t\t\t\t}, General.randomLong(10000, 12000))) {\n\t\t\t\t}\n\t\t\t\t;\n\n\t\t\t\tBanking.close();\n\n\t\t\t\tGeneral.sleep(General.random(400, 600));\n\n\t\t\t}\n\n\t\t\tif (Inventory.find(item1).length > 0) {\n\t\t\t\tRSItem[] Logs = Inventory.find(item1);\n\t\t\t\tRSItem[] Knives = Inventory.find(\"Knife\");\n\n\t\t\t\tif (Logs.length > 0 && Knives.length > 0) {\n\n\t\t\t\t\tif (Knives[0].click(\"Use\")) {\n\n\t\t\t\t\t\tif (Logs[0].click(\"Use\")) {\n\t\t\t\t\t\t\tGeneral.sleep(1000);\n\n\t\t\t\t\t\t\tprintln(\"Making \" + item2 + \".\");\n\t\t\t\t\t\t\tRSInterface child = Interfaces.get(270, makeButton);\n\t\t\t\t\t\t\tif (child != null) {\n\t\t\t\t\t\t\t\tchild.click(\"Make\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\t\t\t\tif (NPCChat.getClickContinueInterface() != null) {\n\t\t\t\t\t\t\t\t\t\tNPCChat.clickContinue(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tGeneral.sleep(400);\n\t\t\t\t\t\t\t\t\treturn ((Inventory.find(item1).length == 0) || !isCurrentlyBusy());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}, General.randomLong(65000, 70000))) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tGeneral.sleep(2000);\n\n\t\t\tbreak;\n\n\t\tcase RBMAKING:\n\t\t\tprintln(\"Case: RBMAKING\");\n\n\t\t\tif (makeRB) {\n\n\t\t\t\tif (Inventory.find(\"Adamant bolts\").length == 0 && Inventory.find(\"Ruby bolts\").length == 1) {\n\n\t\t\t\t\tprintln(\"Out of bolt materials.\");\n\n\t\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\t\treturn (Banking.isBankScreenOpen());\n\t\t\t\t\t\t}\n\t\t\t\t\t}, General.randomLong(5000, 6000))) {\n\t\t\t\t\t}\n\t\t\t\t\t;\n\n\t\t\t\t\tif (!Banking.isBankScreenOpen()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (Banking.isBankScreenOpen()) {\n\t\t\t\t\t\tRSItem[] fillers = Banking.find(\"Bank filler\");\n\t\t\t\t\t\tfillers[0].click(\"Clear-All\");\n\t\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\t\tBanking.depositAll();\n\t\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\t\tRSInterface child2 = Interfaces.get(12, 111);\n\t\t\t\t\t\tif (child2 != null) {\n\t\t\t\t\t\t\tchild2.click(\"Show menu\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\t\tRSInterface child3 = Interfaces.get(12, 67);\n\t\t\t\t\t\tif (child3 != null) {\n\t\t\t\t\t\t\tchild3.click(\"Fill\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\t\tRSInterface child4 = Interfaces.get(12, 111);\n\t\t\t\t\t\tif (child4 != null) {\n\t\t\t\t\t\t\tchild4.click(\"Hide menu\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tGeneral.sleep(2000);\n\t\t\t\t\t}\n\n\t\t\t\t\ts = -1;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (Inventory.find(\"Adamant bolts\").length != 0) {\n\t\t\t\t\tprintln(\"I need to make Ruby bolts.\");\n\n\t\t\t\t\tif (Inventory.find(\"Adamant bolts\").length > 0) {\n\t\t\t\t\t\tRSItem[] Bolts = Inventory.find(\"Adamant bolts\");\n\t\t\t\t\t\tRSItem[] Tips = Inventory.find(\"Ruby bolt tips\");\n\n\t\t\t\t\t\tif (Bolts.length > 0 && Tips.length > 0) {\n\n\t\t\t\t\t\t\tif (Tips[0].click(\"Use\")) {\n\n\t\t\t\t\t\t\t\tif (Bolts[0].click(\"Use\")) {\n\t\t\t\t\t\t\t\t\tGeneral.sleep(1000);\n\n\t\t\t\t\t\t\t\t\tprintln(\"Making Ruby bolts.\");\n\t\t\t\t\t\t\t\t\tRSInterface child = Interfaces.get(270, 14);\n\t\t\t\t\t\t\t\t\tif (child != null) {\n\t\t\t\t\t\t\t\t\t\tchild.click(\"Make\");\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (!Timing.waitCondition(new Condition() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic boolean active() {\n\t\t\t\t\t\t\t\t\t\t\tGeneral.sleep(200);\n\t\t\t\t\t\t\t\t\t\t\tif (NPCChat.getClickContinueInterface() != null) {\n\t\t\t\t\t\t\t\t\t\t\t\tNPCChat.clickContinue(true);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tGeneral.sleep(400);\n\t\t\t\t\t\t\t\t\t\t\treturn ((Inventory.find(\"Adamant bolts\").length == 0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t|| !isCurrentlyBusy());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}, General.randomLong(65000, 70000))) {\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t\t}\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\tGeneral.sleep(200);\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "262aeb829f1f3f92a23fa9fa913d7a31", "score": "0.55203533", "text": "public static void main(String[] args) {\n \t \n\n \t\tint simpleWins=0;\n \t\tint intermediateWins=0;\n \t\tint expertWins=0;\n \t\t\n \t for (int times=0; times<1000; times++)\t{\n \t\t theGame = new RiskGame();\n //\t\t\ttheGame.addExpertAI(\"expertAI1\", \"blue\");\n//\t \t\ttheGame.addExpertAI(\"expertAI2\", \"green\");\n \t \t\t\n \t \ttheGame.addExpertAI(\"expertAI3\", \"purple\");\n//\t \t\ttheGame.addExpertAI(\"expertAI4\", \"orange\");\n\t \t\ttheGame.addExpertAI(\"expertAI5\", \"red\");\n// \t theGame.addExpertAI(\"expertAI6\", \"yellow\");\n // \t\t theGame.addIntermediateAI(\"IntermediateAI3\", \"blue\");\n \t theGame.addIntermediateAI(\"IntermediateAI1\", \"purple\");\n \t \t\ttheGame.addIntermediateAI(\"IntermediateAI2\", \"orange\");\n// \t \t\ttheGame.addSimpleAI(\"simpleAI1\", \"red\");\n \ttheGame.addSimpleAI(\"simpleAI2\", \"yellow\");\t \t\t\n \t \ttheGame.addSimpleAI(\"simpleAI3\", \"orange\");\n \t\n \t \t\ttheGame.setInitialArmies();\n \t \t\tmap=theGame.getMap();\n \t \t\tsetupArmies(theGame.getPlayerList());\n \t \t\t\n \t \t\t\n\n \t \t\t\n \t\tComputerPlayer p = (ComputerPlayer) theGame.getPlayerList().getPlayers().get(0);\n \t\twhile (theGame.getPlayerList().getPlayerSize()>1){\n \t\t\ttheGame.deployArmies(p);\t\n \t\t\ttheGame.attackingOppositionAI(p);\t\t\t\t\n \t\t\ttheGame.fortifyingTerritoriesAI(p);\n// \t\t\tSystem.out.println(theGame.getPlayerList().getPlayers().size());\n// \t for (Player print:theGame.getPlayerList().getPlayers()){\n// \t\t\tSystem.out.println(\"total Armies:\"+print.getName()+\" \"+ print.getTotalArmies() + \" \" +print.getNumberOfTerritories());\n// \t }\n \t\n \t p = (ComputerPlayer) theGame.getPlayerList().iterateToNextPlayer(p);\n \t \n \t\t}\n \t\tComputerPlayer winner = (ComputerPlayer) theGame.getPlayerList().getPlayer(0);\n \t\t\n \t\tif (winner.getStrategy().getClass().equals(SimpleAI.class)){\n \t\t\tsimpleWins++;\n \t\t}\n \t\telse if (winner.getStrategy().getClass().equals(ExpertAI.class))\n \t\t{\n \t\t\texpertWins++;\n \t\t}\n \t\telse\n \t\t\tintermediateWins++;\n \t\t\n //\t\tSystem.out.println(winner);\n \t }\n \t\tSystem.out.println(\"simpleAI wins: \"+ simpleWins);\n \t\tSystem.out.println(\"intermediateAI wins: \"+ intermediateWins);\n \t\tSystem.out.println(\"expertAI wins: \"+ expertWins);\n \t}", "title": "" }, { "docid": "0e937cfb12d390107e5bb7bcb50ff203", "score": "0.55101407", "text": "public void startAndCompleteCleanHouseOfQuitSmoking(String activityName){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tselectRadioBtnForGoalsAndRelatedActivity();\n\t\tSeleniumUtil.sleep(2);\n\t\tclickOnActivitySubmitBtn();\n\t\tclickOnContinueBtn();\n\t}", "title": "" }, { "docid": "5eb90aa88779e230d2a7ca351b0482ee", "score": "0.55094", "text": "public static void Premodelling() {\r\n // MyBot.dBg.Writeln(\"\\r\\n:: Turn \" + MyBot.Turn + \":\");\r\n List<Fleet> fleets = Fleets();\r\n int turnsModeled = 0;\r\n Game.Sort(fleets, new FleetTurnsComparator());\r\n for (Fleet fleet : fleets) {\r\n // MyBot.dBg.Writeln(\"fleet remain::\" + fleet.TurnsRemaining());\r\n int dstPlanetID = fleet.DestinationPlanet();\r\n Planet dstPlanet = GetPlanet(dstPlanetID);\r\n // Planet growing\r\n if (dstPlanet.Owner() != 0) {\r\n dstPlanet.AddShips(dstPlanet.GrowthRate()\r\n * (fleet.TurnsRemaining() - turnsModeled));\r\n turnsModeled = fleet.TurnsRemaining();\r\n }\r\n // Fleets arrived\r\n if (dstPlanet.Owner() == fleet.Owner()) {\r\n dstPlanet.AddShips(fleet.NumShips());\r\n }\r\n else {\r\n dstPlanet.RemoveShips(fleet.NumShips());\r\n }\r\n\r\n if (dstPlanet.NumShips() < 0) {\r\n\r\n dstPlanet.Owner(fleet.Owner());\r\n dstPlanet.NumShips(-dstPlanet.NumShips());\r\n }\r\n }\r\n // Owner change\r\n for (Planet planet : myPlanets) {\r\n if (planet.Owner() == 2) {\r\n planet.NumShips(-planet.NumShips());\r\n planet.Owner(1);\r\n }\r\n }\r\n // Some cleaning for planets\r\n List<Planet> planetsForDelete = new LinkedList<Planet>();\r\n for (Planet planet : Game.neutralPlanets) {\r\n if (planet.Owner() == 1) {\r\n planetsForDelete.add(planet);\r\n }\r\n if (planet.Owner() == 2)\r\n Game.ChangePlanetOwner(planet, 2);\r\n }\r\n Game.neutralPlanets.removeAll(planetsForDelete);\r\n planetsForDelete.clear();\r\n for (Planet planet : Game.enemyPlanets) {\r\n if (planet.Owner() == 1)\r\n planetsForDelete.add(planet);\r\n }\r\n Game.enemyPlanets.removeAll(planetsForDelete);\r\n for (Planet p : myPlanets) {\r\n p.NumShips(Math.min(pw.GetPlanet(p.PlanetID()).NumShips(), p.NumShips()));\r\n }\r\n }", "title": "" }, { "docid": "014985bbfd10eb123b965b03e28d9e03", "score": "0.5506492", "text": "public void startAndCompleteLookingInTheMirrorActivity(String activityName, int count){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tcompletePictureThisActivityOfLevel3(count);\n\t\tclickOnNextBtnOfEmotionalEatingActivity();\n\t\tfillingMealPlanningDetailsInLevel2();\n\t\tclickOnSubmitButtonOfHowIntenseActivity();\n\t\tclickOnContinueBtn();\n\t}", "title": "" }, { "docid": "77a12ec7c762d9ad152c2a7417aa00a1", "score": "0.5495096", "text": "public void practice() {\n\t\tGameInfo gi = new GameInfo(\"practice\", null, null);\n\t\tgi.tuc = TableUseCase.practicing;\n\t\tgi.balls = Func.createDefaultBalls(gi.tDim);\n\t\tstart(gi, new GameState());\n\t\t\n\t}", "title": "" }, { "docid": "a154ff9eccb114a82a0323a533fdd3ad", "score": "0.5493811", "text": "public void runHouseholdChoiceModels () {\n\n long initTime = System.currentTimeMillis();\n\n submitTasks(); \n \n jppfClient.close();\n\n logger.info( String.format( \"household model runner finished %d households in %d minutes.\", hhDataManager.getNumHouseholds(), ((System.currentTimeMillis()-initTime)/1000)/60 ) );\n \n }", "title": "" }, { "docid": "7daceca2d30403b9873647a50bec87ba", "score": "0.54921967", "text": "@Override\n \tpublic void c() {\n \t\tint tmpFire = this.fireTicks;\n \t\tsuper.c();\n \t\tthis.fireTicks = tmpFire;\n \t\tif (this.getEquipment(4) != null) {\n \t\t\tthis.getEquipment(4).setData(0);\n \t\t}\n \t\tif (--retargetTime < 0) {\n \t\t\tretargetTime = 20;\n \t\t\tif (this.getGoalTarget() == null || !this.getGoalTarget().isAlive()) {\n \t\t\t\tthis.findTarget();\n \t\t\t} else {\n \t\t\t\tdouble dist = Utils.dist3D(this.locX, this.getGoalTarget().locX, this.locY, this.getGoalTarget().locY, this.locZ, this.getGoalTarget().locZ);\n \t\t\t\tif (dist > range) {\n \t\t\t\t\tthis.findTarget();\n \t\t\t\t} else if (dist > 1.5) {\n \t\t\t\t\tthis.findCloserTarget();\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (this.getGoalTarget() == null) {\n \t\t\t\tif (this.order.equals(\"home\") || this.order == null || this.order.equals(\"\")) {\n \t\t\t\t\tthis.getNavigation().a(this.spawnLoc.getX(), this.spawnLoc.getY(), this.spawnLoc.getZ(), FactionMobs.mobSpeed);\n \t\t\t\t\tthis.order = \"home\";\n \t\t\t\t\treturn;\n \t\t\t\t} else if (this.order.equals(\"poi\")) {\n \t\t\t\t\tthis.getNavigation().a(this.poiX, this.poiY, this.poiZ, FactionMobs.mobSpeed);\n \t\t\t\t\treturn;\n \t\t\t\t} else if (this.order.equals(\"wander\")) {\n \t\t\t\t\treturn;\n \t\t\t\t} else if (this.order.equals(\"phome\")) {\n \t\t\t\t\tthis.getNavigation().a(this.spawnLoc.getX(), this.spawnLoc.getY(), this.spawnLoc.getZ(), FactionMobs.mobPatrolSpeed);\n \t\t\t\t\tif (Utils.dist3D(this.locX,this.spawnLoc.getX(),this.locY,this.spawnLoc.getY(),this.locZ,this.spawnLoc.getZ()) < 1) {\n \t\t\t\t\t\tthis.order = \"ppoi\";\n \t\t\t\t\t}\n \t\t\t\t\treturn;\n \t\t\t\t} else if (this.order.equals(\"ppoi\")) {\n \t\t\t\t\tthis.getNavigation().a(poiX, poiY, poiZ, FactionMobs.mobPatrolSpeed);\n \t\t\t\t\tif (Utils.dist3D(this.locX,this.poiX,this.locY,this.poiY,this.locZ,this.poiZ) < 1) {\n \t\t\t\t\t\tthis.order = \"phome\";\n \t\t\t\t\t}\n \t\t\t\t\treturn;\n \t\t\t\t} else if (this.order.equals(\"path\")) {\n \t\t\t\t\tthis.getNavigation().a(poiX, poiY, poiZ, FactionMobs.mobPatrolSpeed);\n \t\t\t\t\tif (Utils.dist3D(this.locX,this.poiX,this.locY,this.poiY,this.locZ,this.poiZ) < 1) {\n \t\t\t\t\t\tthis.order = \"home\";\n \t\t\t\t\t}\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn;\n \t}", "title": "" }, { "docid": "9462b18d26ea12eb0d95387161b272dd", "score": "0.549115", "text": "public void startAndCompleteFoodIsNotTheEnemyActivity(String activityName, int count){\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tclickOnChooseWeightGoalsActivitySubmitBtn();\n\t}", "title": "" }, { "docid": "78a3e679b3a67a3897d66e5ee3abf749", "score": "0.5483667", "text": "private void startNewGame(String difficulty) {\n hintCount = 3;\n hintsTaken = 0;\n setButtonsToDefault();\n board = generator.returnBoard(difficulty);\n printBoard(board);\n copyMatricesByValue(originalBoard, board);\n hintMenuItem.setEnabled(true);\n }", "title": "" }, { "docid": "103aa457ad7fbfe32dea86c520a22833", "score": "0.54765266", "text": "public void startTurn(){\n\t\tSyn.d(\"in GFight.startTurn\");\n\t\t\n\t\tif(getCurrentFighter().getBuffs() != null){\n\t\t\tArrayList<GBuff> copy = new ArrayList<GBuff>();\n\t\t\tcopy.addAll(getCurrentFighter().getBuffs());\n\t\t\tfor(GBuff buff : copy){\n\t\t\t\tSyn.w(\"in startTurn, going to apply buff\");\n\t\t\t\tbuff.apply(getCurrentFighter(), this, BuffApplicationType.TurnBegin);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//ArrayList<CombativeCharacter> deadTeam = areAllPeopleFromATeamDead();//TODO: créer method areAllPeopleFromATeamDead() pour le call à endFight dans le endTurn\n\t\t//if(deadTeam != null){ \n\t\t//\tendFight(); return;\n\t\t//}\n\t\t\n\t\tSM.Game.GTM_FIGHT(this, false); //Affiche correctement les PA/PM/PDV/PDVMAX \n\t\t\t\t\t\t\t\t\t\t//et clear toutes les gameactions qu'il y aurait encore dans les clients\n\t\tSM.Game.GTS_FIGHT(getCurrentFighter(), this);\n\t\t\n\t\tFightSchedulingStrategies.getStrategy().schedule(this);\n\n\t\t//blabla, laisse jouer le joueur\n\t\t\n\t\tif(getCurrentFighter().getCharacterType() != CharacterType.PLAYER){\n\t\t\ttry { //TODO: for debugging purposes only, waits a certain time before passing the mobs\n\t\t\t\tThread.sleep(4000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(getCurrentFighter().getIA() != null){\n\t\t\t\tSyn.d(\"ia found\");\n\t\t\t\tTask<Object> task = this.getServer().threadsManager.getTaskFactory().newFightIATask(getCurrentFighter().getIA(), this.getServer(), this, getCurrentFighter());\n\t\t\t\tthis.getServer().threadsManager.executeDirectTask(task);\n\t\t\t}else{\n\t\t\t\tendTurn();\n\t\t\t}\n\t\t}else{\n\t\t\t//inState.set(ON_FIGHT_TURN_START.ordinal()).notifyObservers(getCurrentFighter());\n\t\t\tinState.notifyObservers(new FightEvent(this, FightEventType.ON_FIGHT_TURN_START));\n\t\t}\n\t}", "title": "" }, { "docid": "2d1bcc55af460a528d9437b045453f3c", "score": "0.54706347", "text": "private void startGame() {\n\t\tif (xPosition == 2 && yPosition == 2) {\n\t\t\tfinishGame(); // if first position = target .Finish the game\n\t\t\treturn;\n\t\t}\n\t\tboard[this.xPosition][this.yPosition] = \"K\"; // mark first position with \"K\"\n\t\tprintBoard();\n\t\tboard[this.xPosition][this.yPosition] = \"0\";//after printing the board , remark the position.\n\t\tprintStraightLine();\n\t\tmoveKnight(xPosition, yPosition);//run the method who actually play the game\n\n\t}", "title": "" }, { "docid": "5d0c7fd17590c997dfb4a95141333181", "score": "0.5467597", "text": "private void run() {\n int num = 0; // Current level number\n while (loadLevel(++num))\n if (!playLevel() || !view.question(\"Next\")) {\n exit(\"Bye.\");\n return;\n }\n exit(\"No more Levels\");\n }", "title": "" }, { "docid": "531ef0e05dc04cc6fc1351b28954d14c", "score": "0.5465649", "text": "public void start() {\n synchronized (startStopLock) {\n if (isInProgress()) {\n return;\n }\n\n Action startGameAction = null;\n if(OpenKitSingleton.getInstance().isValid()){\n Session playerSession = OpenKitSingleton.getInstance().getPlayerSession();\n startGameAction = playerSession.enterAction(\"startGameAction\").reportEvent(\"start game\");\n }\n startNPCs();\n inProgress = true;\n updateObservers();\n\n if(startGameAction != null){\n\n startGameAction.leaveAction();\n }\n }\n }", "title": "" }, { "docid": "bb8c30b830bdc7be8a055392caf50081", "score": "0.5464866", "text": "private void gameStartLevelFour(Context context)\n {\n GameObjectMgr.initializeLists();\n\n initializeHero();\n\n // \n addBlock( 0, 400,450,550, Color.WHITE);\n //\t\n addBlock( 600, 1000,450,550, Color.WHITE);\n //\t\n PhysicsStuff phys = new PhysicsStuff(1, 20);\n //\t\n Ninja ninj = new Ninja(ninjaRes, 0, 0, 2, phys);\n //\t\n GameObjectMgr.mGameObjList.add(ninj);\n //\n ninj = new Ninja(ninjaRes, 700, 0, 2, phys);\n //\n GameObjectMgr.mGameObjList.add(ninj);\n\n setupUI();\n\n setGameState(STATE_GAME_RUNNING);\n\n }", "title": "" }, { "docid": "b2013730f1ec62d40524bc8620054d48", "score": "0.5459173", "text": "private static void start() {\n\t\t// Calling method checkFavoriteTeam()\n\t\tcheckFavoriteTeam(usersFavoriteTeam());\n\t}", "title": "" }, { "docid": "5e16d5497d98e241813fc448b2f887eb", "score": "0.54563236", "text": "private int chooseRoom() {\n int farm = farms * farmweight;\n int n = nexusweight * nexus;\n int treasure = treasureweight * treasures;\n int libra = libraries * libraryweight;\n int forge = barracks * barracksweight;\n if(farm == 0 && n == 0 && treasure == 0 && libra == 0 && forge == 0 \n && n == 0) {\n return placeCave();\n }\n if (n > farm && n > treasure && n > libra && n > forge) {\n return placeNexus();\n }\n if (treasure > farm && treasure > libra && treasure > forge) {\n treasures -= 1;\n return 2;\n }\n if (forge > farm && forge > libra) {\n barracks -= 1;\n return 3;\n }\n if (libra > farm) {\n libraries -= 1;\n return 4;\n }\n farms -= 1;\n return 5;\n }", "title": "" }, { "docid": "2b741292855faea8000ec456c41d9c95", "score": "0.54515225", "text": "public void onPlanetButton3Pressed(View view) {\n askForTravel(3);\n }", "title": "" }, { "docid": "bc763d2e5c5abcb4969d15c4dcb72035", "score": "0.54425377", "text": "private Node search(Node start,Node goal,double U,int relay,Stack<ArrayList<Double>> beamStack)\n {\n start.setData(new DCBSSNodeData());\n ((DCBSSNodeData)start.getData()).gVal=0;\n ((DCBSSNodeData)start.getData()).hVal=distance(start,goal);\n ArrayList<ArrayList<Node>> open;\n ArrayList<ArrayList<Node>> closed;\n open = new ArrayList<ArrayList<Node>>();\n closed = new ArrayList<ArrayList<Node>>();\n open.add(0,new ArrayList<Node>());\n open.get(0).add(start);\n open.add(1,new ArrayList<Node>());\n closed.add(0,new ArrayList<Node>());\n Node best_goal = null;\n int l = 0;\n // displayMessage(\"Starting to go\");\n while(!open.get(l).isEmpty() || !open.get(l).isEmpty())\n {\n while(!open.get(l).isEmpty())\n {\n Node n = open.get(l).get(0);\n if(!(n.getState()==alvis301.State.relay) || (n.getState()==alvis301.State.path))\n {\n \tchangeState(n,alvis301.State.closed);\n \tupdateNode(n);\n \tdisplay();\n }\n open.get(l).remove(0);\n closed.get(l).add(n);\n //Check if we found a goal\n if(goalTest(n,goal))\n {\n U = ((DCBSSNodeData)n.getData()).gVal;\n best_goal = n;\n // displayMessage(\"Found node \"+n.getData().gVal);\n }\n ArrayList<Node> nodes = moveGen1(n,beamStack.peek(),goal);\n for(int i = 0;i<=l;i++)\n \tnodes.removeAll(closed.get(i));\n if(l>1 && l<relay+1)\n {\n \tfor(Node no : nodes)\n \t\t((DCBSSNodeData)no.getData()).prev=start;\n }\n else if(l==relay+1)\n {\n \tfor(Node no : nodes)\n \t\t((DCBSSNodeData)no.getData()).prev=n;\n }\n else if(l>relay+1)\n {\n \tfor(Node no : nodes)\n \t\t((DCBSSNodeData)no.getData()).prev=((DCBSSNodeData)n.getData()).prev;\n }\n open.get(l+1).addAll(nodes);\n HashSet<Node> set = new HashSet<Node>();\n set.addAll(open.get(l+1));\n open.get(l+1).clear();\n open.get(l+1).addAll(set);\n Collections.sort(open.get(l+1),new FComparator());\n if(open.get(l+1).size()>b)\n {\n pruneLayer(l+1,beamStack,open);\n }\n }\n for(Node n : open.get(l+1))\n {\n \tif(!(n.getState()==alvis301.State.relay) || (n.getState()==alvis301.State.path))\n {\n \tchangeState(n,alvis301.State.open);\n \t\tupdateNode(n);\n }\n }\n display();\n if((l>1 && l<=relay+1) || l>(relay+2))\n {\n for(Node n : closed.get(l-1))\n {\n \tif(!(n.getState()==alvis301.State.relay) || (n.getState()==alvis301.State.path))\n {\n \t\tchangeState(n,alvis301.State.old);\n \t\tupdateNode(n);\n }\n }\n closed.get(l-1).clear();\n display();\n }\n else if(l>1)\n {\n for(Node n : closed.get(l-1))\n {\n \tif(!(n.getState()==alvis301.State.relay) || (n.getState()==alvis301.State.path))\n {\n //\t\tn.setState(alvis301.State.relay);\n \t\tupdateNode(n);\n }\n }\n display();\n }\n l=l+1;\n open.add(l+1,new ArrayList<Node>());\n closed.add(l,new ArrayList<Node>());\n ArrayList<Double> c = new ArrayList<Double>();\n c.add(0,0D);\n c.add(1,U);\n beamStack.push(c);\n }\n return best_goal;\n }", "title": "" }, { "docid": "d4cd2daea104122470561b5aa00ee774", "score": "0.5439815", "text": "protected static void execute() throws GameActionException {\n\t\tmyLoc = rc.getLocation();\n\n\t\tnextDir = null;\n\t\tif (rc.canSenseRobot(lastTargetId)) {\n\t\t\tMapLocation loc = rc.senseRobot(lastTargetId).location;\n\t\t\tif (loc.distanceSquaredTo(myLoc) <= 2) {\n\t\t\t\trc.explode();\n\t\t\t}\n\t\t\tnextDir = myLoc.directionTo(loc);\n\t\t} else {\n\t\t\tRobotInfo nearbyStructure = null;\n\t\t\tRobotInfo nearbyUnit = null;\n\t\t\t\n\t\t\tint radius = 2 * (6 - timeSinceSpawned) * (6 - timeSinceSpawned);\n\t\t\t\n\t\t\tenemies = rc.senseNearbyRobots(radius, otherTeam);\n\t\t\tint numEnemies = enemies.length;\n\t\t\tint max = numEnemies >= 5 ? 5 : numEnemies;\n\t\t\tfor (int i = max; --i >= 0;) {\n\t\t\t\tRobotInfo enemy = enemies[i];\n\t\t\t\tif (enemy.type.isBuilding) {\n\t\t\t\t\tnearbyStructure = enemy;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (enemy.type != RobotType.MISSILE) {\n\t\t\t\t\tnearbyUnit = enemy;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (nearbyStructure != null) {\n\t\t\t\tMapLocation loc = nearbyStructure.location;\n\t\t\t\tif (loc.distanceSquaredTo(myLoc) <= 2) {\n\t\t\t\t\trc.explode();\n\t\t\t\t}\n\t\t\t\tlastTargetId = nearbyStructure.ID;\n\t\t\t\tnextDir = myLoc.directionTo(loc);\n\t\t\t} else if (nearbyUnit != null) {\n\t\t\t\tMapLocation loc = nearbyUnit.location;\n\t\t\t\tif (loc.distanceSquaredTo(myLoc) <= 2) {\n\t\t\t\t\trc.explode();\n\t\t\t\t}\n\t\t\t\tlastTargetId = nearbyUnit.ID;\n\t\t\t\tnextDir = myLoc.directionTo(loc);\n\t\t\t} else if (numEnemies > 0) {\n\t\t\t\tRobotInfo enemy = enemies[0];\n\t\t\t\tMapLocation loc = enemy.location;\n\t\t\t\tif (loc.distanceSquaredTo(myLoc) <= 2) {\n\t\t\t\t\trc.explode();\n\t\t\t\t}\n\t\t\t\tlastTargetId = enemy.ID;\n\t\t\t\tnextDir = myLoc.directionTo(loc);\n\t\t\t} else if (nextDir == null) {\n\t\t\t\trc.setIndicatorString(0, \"nextDir is none\");\n\t\t\t\tRobotInfo[] allies = rc.senseNearbyRobots(2, myTeam);\n\t\t\t\tif (allies.length > 0) {\n\t\t\t\t\tnextDir = allies[0].location.directionTo(myLoc);\n\t\t\t\t} else if (prevDir != null) {\n\t\t\t\t\tnextDir = prevDir;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tprevDir = nextDir;\n\t\t\n\t\tif (rc.isCoreReady()) {\n\t\t\tif (rc.canMove(nextDir)) {\n\t\t\t\trc.move(nextDir);\n\t\t\t} else if (rc.canMove(nextDir.rotateRight())) {\n\t\t\t\trc.move(nextDir.rotateRight());\n\t\t\t} else if (rc.canMove(nextDir.rotateLeft())) {\n\t\t\t\trc.move(nextDir.rotateLeft());\t\t\t\t\t\t\n\t\t\t} else if (rc.canMove(nextDir.rotateRight().rotateRight())) {\n\t\t\t\trc.move(nextDir.rotateRight().rotateRight());\n\t\t\t} else if (rc.canMove(nextDir.rotateLeft().rotateLeft())) {\n\t\t\t\trc.move(nextDir.rotateLeft().rotateLeft());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Reset locations and update the counter\n\t\ttimeSinceSpawned++;\n\t}", "title": "" }, { "docid": "017faeb097791eaa60ad985a27a5d341", "score": "0.54298913", "text": "public Void run() {\n GameFlow game = new GameFlow(runner, gui, this.lives, this.table, highScoresFile);\n LevelSpecificationReader lsr = new LevelSpecificationReader();\n List<LevelInformation> listOfLevels;\n //open the path and make a list out of it.\n if (this.path != null) {\n try {\n listOfLevels = lsr.fromReader(new InputStreamReader(ClassLoader\n .getSystemClassLoader().getResourceAsStream(this.path)));\n game.runLevels(listOfLevels);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n game.runLevels(this.levels);\n }\n try {\n table.save(this.highScoresFile);\n } catch (Exception e) {\n System.out.println(\"run\");;\n }\n return null;\n }", "title": "" }, { "docid": "6928f297db3207f9f5def5d355a699de", "score": "0.5423275", "text": "private static void turn(WingspanPlayer player) {\n player.setActionCubes(8);\n while (player.getActionCubes() > 0){\n \tif(player.getId() == 5)\n \t{\n \t\tsmartAI((SmartAI)player);\n \t}\n \telse if (player.getId() == 6)\n \t{\t\n \t\tdumbAI((DumbAI)player);\n \t\t\n \t}\n \telse {\n\t ArrayList<String> availableMoves = player.getAvailableMoves();\n\t MainView.playerTurn(player.getId());\n\t player.getBoard().display();\n\t MainView.actionCubes(player.getActionCubes());\n\t MainView.availableMoves(availableMoves);\n\t int moveNumber;\n\t moveNumber = MainView.getInt();\n\t\n\t switch (moveNumber){\n\t case 1:\n\t ArrayList<Bird> availableBirds = player.getAvailableBirds();\n\t PlayerView.printAvailableBirds(availableBirds);\n\t Bird bird = PlayerView.chooseBirdFromList(availableBirds);\n\t Habitats habitat = PlayerView.chooseHabitat(bird);\n\t player.playBird(bird, habitat);\n\t break;\n\t case 2:\n\t PlayerView.printGainFood(player.gainFood());\n\t break;\n\t case 3:\n\t \t\n\t int newEggs = player.layEggs();\n\t int totalEggCount = player.getEggCount();\n\t PlayerView.printLayEggs(newEggs, totalEggCount);\n\t break;\n\t case 4:\n\t int newBirds = player.drawBird();\n\t PlayerView.printDrawBirds(newBirds);\n\t break;\n\t case 5:\n\t player.setActionCubes(8);\n\t player.getBoard().display();\n\t return;\n\t }\n \t}\n player.getBoard().display();\n player.setActionCubes(player.getActionCubes()-1);\n }\n }", "title": "" }, { "docid": "41a1ece632f74dc4ea2f6c6124c3616c", "score": "0.5417767", "text": "public void mageStory(){\n empty();\n //El intro de la historia \n Story.introM();\n\t\t\t\t\tPAC();\n //Creación de un nuevo mago\n m = new Mage(Name, 100, 100, 0); \n inProgress = true;\n while(inProgress = true){\n empty();\n printMenu();\n try{\n //el mismo try catch\n int n = s.nextInt(4);\n if (n == 1){\n if (place == 0){\n //La historia del nuevo mago con la primera batalla\n Story.firstBattle();\n knightBattleM();\n if(m.XP >= 10 && act ==1){\n act = 2;\n place = 1;\n //La historia del castillo\n Story.blackKnightsStronghold();\n } \n }\n //Asegurar que el usuario tenga la fuerza suficiente para combatir con el Black Knight!!! \n else if (place == 1){\n if (m.XP < 50){\n System.out.println(\"Has encontrado otro Knight!!\\n\");\n knightBattleM(); \n }\n //Cambio de lugar y la ultima batalla con un knight\n if (m.XP >= 50 && act == 2){\n act = 3;\n place = 2;\n System.out.println(\"Hay un ultimo Knight frente a la puerta que lleva al Black Knight...\\n\");\n knightBattleM();\n //Historia para la pelea del jefe\n Story.castleBossBattle();\n }\n }\n else if (place == 2){\n //La batalla con el Black Knight\n bossBattleCM();\n if (m.XP >= 80 && act == 3){\n act = 4;\n place = 3;\n //El viaje el infierno\n Story.roadtoHell();\n }\n }\n else if (place == 3){\n //Batallas con los demonios\n Story.Hell();\n PAC();\n System.out.println(\"Un demonio se interpone en tu camino, babeando, con las garras preparadas...\\n\");\n demonBattleM();\n //Asegurar que el usuario podría vencer al Diablo de Negro\n if (m.XP >= 250 && act == 4){\n act = 5;\n place = 4;\n }\n else if (place == 3){\n //Batalla con los demonios\n demonBattleM();\n }\n }\n if (place == 4){\n System.out.println(\"Solo sobrevive un demonio.\\n Matalo para vencer al diablo\\n\");\n PAC();\n empty();\n //ultima batalla con los demonios\n demonBattleM();\n //La introducción del Diablo\n Story.deviloftheTreeStars();\n PAC();\n empty();\n //La batalla con el diablo\n devilBattleM();\n }\n if (m.XP >= 85 && act == 5){\n act = 5;\n place = 4;\n //La historia termina con un nuevo diablo\n Story.theEnd();\n PAC();\n empty();\n System.out.println(\"Ha vengado a su familia y a sus amigos. \\nPero ahora eres el diablo en la historia de otros\\n\");\n //Jugar de nuevo o salir del programa\n System.out.println(\"Deseas jugar de nuevo?\\n\");\n System.out.println(\"1. Si\");\n System.out.println(\"2. No\\n\");\n int z = s.nextInt(2);\n if (z == 1){\n menu();\n }\n else if (z == 2){\n n = 3;\n }\n } \n } \n else if (n == 2){\n pInfo();\n //Información del mago\n PAC();\n } \n else if (n == 3){\n //Cerrar el Programa\n System.out.println(\"Hasta la proxima aventurero\\n\");\n System.exit(0);\n }\n }\n catch (InputMismatchException o){\n System.out.println(\"Elige un numero entre 1 y 2\\n\");\n printMenu();\n }\n }\n }", "title": "" }, { "docid": "511b206430ea9af7890a42feb85b2041", "score": "0.54117876", "text": "@Override\n protected void n() {\n PathfinderGoalTempt goalTempt = new AITempt(this, 0.6D, true, TEMPTATION_ITEMS);\n try {\n aiTempt.set(this, goalTempt);\n } catch (IllegalAccessException ignore) {\n }\n\n goalSit = new AISit(this);\n\n goalSelector.a(1, new AISwim(this));\n goalSelector.a(2, goalSit);\n goalSelector.a(3, goalTempt);\n goalSelector.a(5, new AIFollowOwner(this, 1.0D, 10.0F, 5.0F));\n goalSelector.a(6, new AIOcelotSitOnBlock(this, 0.8D));\n goalSelector.a(7, new AILeapAtTarget(this, 0.3F));\n goalSelector.a(8, new AIOcelotAttack(this));\n goalSelector.a(9, new AIBreed(this, 0.8D, EntityChicken.class));\n goalSelector.a(10, new AIWanderAvoidWater(this, 0.8D, 0.00001F));\n goalSelector.a(11, new AIWatchClosest(this, EntityHuman.class, 10.0F));\n targetSelector.a(1, new AITargetNonTamed<>(this, EntityChicken.class, false, null));\n targetSelector.a(1, new AITargetNonTamed<>(this, EntityTurtle.class, false, EntityTurtle.bC));\n }", "title": "" }, { "docid": "746db8dbf58cdc89144a36383cbb064e", "score": "0.5409435", "text": "public void startBattle() {\n\t\tPlayer.setPlayerName(\"Jimmy\");\n\t\t\n\t\t//Setup Opponent Info & Party\n\t\tJoey.setOpponentName(\"Youngster Joey\");\n\t\t\n\t}", "title": "" }, { "docid": "36d83de5f10edcab0653ce8dbe4ee660", "score": "0.5397839", "text": "@Override\n public void runOpMode() {\n robot.init(hardwareMap, telemetry, this);\n\n intake.init(hardwareMap);\n _vision.setUp(telemetry, hardwareMap);\n\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Starting Auto\");\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n int movesForward = 0;\n\n boolean foundStone = false;\n\n\n robot.RobotMoveX(new Waypoint(25, 0, 0 ), 0.2);\n robot.Stop();\n\n //look for the skystones for a period of time.\n List<Recognition> targets = _vision.visionFeedback(telemetry);\n runtime.reset();\n\n\n\n Recognition foundTarget = null;\n\n while(runtime.seconds() < 15 && this.opModeIsActive() && foundStone == false && movesForward < 15) {\n if (targets != null && targets.size() > 0) {\n //we found something!\n\n for(int count = 0; count < targets.size(); count++){\n if(targets.get(count).getLabel() == \"Skystone\")\n {\n foundTarget = targets.get(count);\n telemetry.addLine(\"SKYSTONE FOUND\");\n telemetry.addData(\"Pos\", foundTarget.getLeft());\n telemetry.addData(\"Right\", foundTarget.getRight());\n telemetry.addData(\"Left\", foundTarget.getLeft());\n telemetry.addData(\"Left\", foundTarget.getLabel());\n telemetry.update();\n sleep(1000);\n foundStone = true;\n robot.Stop();\n break;\n }\n }\n\n if(foundStone){\n break;\n }\n telemetry.addLine(\"Moving forward now\");\n telemetry.update();\n robot.RobotMoveY(new Waypoint(0, 10, 0 ), 0.2);\n robot.Stop();\n TimeElapsedPause(500);\n movesForward++;\n\n } else {\n\n //move left (i.e. forward)\n robot.RobotMoveY(new Waypoint(0, 5, 0 ), 0.2);\n robot.Stop();\n TimeElapsedPause(1000);\n movesForward++;\n\n\n }\n targets = _vision.visionFeedback(telemetry);\n }\n\n\n\n if(foundStone){\n\n //we need to move to the stone (ie. left or right)\n telemetry.addLine(\"Moving towards the skystones\");\n //use the left / right position to determine how far to move\n telemetry.addData(\"L\", foundTarget.getLeft());\n telemetry.addData(\"R\", foundTarget.getRight());\n telemetry.addData(\"Label\", foundTarget.getLabel());\n\n telemetry.addData(\"Angle\", foundTarget.estimateAngleToObject(AngleUnit.DEGREES));\n double foundAngle = foundTarget.estimateAngleToObject(AngleUnit.DEGREES);\n telemetry.update();\n\n // sleep(2000);\n\n\n while(this.opModeIsActive() && Math.abs(foundAngle) > 2) {\n foundAngle = foundTarget.estimateAngleToObject(AngleUnit.DEGREES);\n telemetry.addLine(\"Moving to SKY stone\");\n telemetry.addData(\"Angle\", foundAngle);\n telemetry.update();\n // sleep(500);\n\n\n if (foundAngle >= 0) {\n robot.RobotMoveY(new Waypoint(0, -2, 0), 0.3);\n } else {\n robot.RobotMoveY(new Waypoint(0, 2, 0), 0.3);\n }\n robot.Stop();\n TimeElapsedPause(100);\n\n\n targets = _vision.visionFeedback(telemetry);\n\n if(targets == null || targets.size() == 0){\n break;\n }\n\n //refind the target\n for (int count = 0; count < targets.size(); count++) {\n\n if (targets.get(count).getLabel() == \"Skystone\") {\n foundTarget = targets.get(count);\n break;\n }\n }\n\n }\n //sleep(2000);\n\n telemetry.addLine(\"LOCKED ONTO Stone\");\n telemetry.addData(\"Angle\", foundAngle);\n telemetry.addData(\"Stone\", foundTarget.getLabel());\n telemetry.update();\n\n // sleep(2000);\n\n robot.RobotMoveX(new Waypoint(35, 0, 0 ), 0.2);\n robot.Stop();\n robot.SkyHookOn();\n sleep(1500);\n robot.RobotMoveX(new Waypoint(-40, 0, 0 ), 0.2);\n robot.Stop();\n sleep(2000);\n\n }else{\n\n robot.Stop();\n telemetry.addLine(\"No stones found - parking\");\n //look at the localiser and work out how far back we need to go.\n\n\n }\n\n _vision.cleanUp();\n\n }", "title": "" }, { "docid": "de81b585b2da36ddc55653a39f3d7bd1", "score": "0.5395396", "text": "public void play() {\n\t\tbroadcastEvent(new GameEvent(GameEvent.Type.STARTGAME, null));\n\t\twhile (!gameOver ) {\n\t\t\tcurrentPlayer = players.get(currentPlayerIndex);\n\t\t\tbroadcastEvent(new GameEvent(GameEvent.Type.STARTTURN, currentPlayer));\n\t\t\tcontext = new Context(this, currentPlayer);\n\t\t\t\n\t\t\t// TODO - Reveal Hand\n\t\t\t\n\t\t\tInteger i = currentPlayer.selectOption(Strings.chooseAction, new String[] {Strings.visitVillage, Strings.enterDungeon, Strings.rest});\n\t\t\tif (i == null) i = 2;\n\t\t\tif (i.equals(0)) { // visit village\n\t\t\t\tbroadcastEvent(new GameEvent(GameEvent.Type.VISITSVILLAGE, currentPlayer));\n\t\t\t\tlogger.indent();\n\t\t\t\tdoVillage();\n\t\t\t} else if (i.equals(1)) { // enter dungeon\n\t\t\t\tbroadcastEvent(new GameEvent(GameEvent.Type.ENTERSDUNGEON, currentPlayer));\n\t\t\t\tlogger.indent();\n\t\t\t\tdoDungeon();\n\t\t\t} else { // rest or error\n\t\t\t\tbroadcastEvent(new GameEvent(GameEvent.Type.RESTS, currentPlayer));\n\t\t\t\tlogger.indent();\n\t\t\t\tdoRest();\n\t\t\t}\n\t\t\tlogger.unindent();\n\t\t\t\n\t\t\tinfo(\"Cleaning up\");\n\t\t\tlogger.indent();\n\t\t\tcurrentPlayer.discardHand();\n\t\t\tcurrentPlayer.draw(6);\n\t\t\tlogger.unindent();\n\n\t\t\tcurrentPlayerIndex = (currentPlayerIndex + 1) % players.size();\n\t\t\tturnCount ++;\n\t\t}\n\t}", "title": "" }, { "docid": "50f5c487aef02e9b49b7b7d3eecf9a3e", "score": "0.5390549", "text": "public void startHighscore(){\n Log.d(\"Board\", \"StartHighscore\");\n }", "title": "" }, { "docid": "6dc8c7a77c6f23a824bfdb4b9dce74c8", "score": "0.53890586", "text": "@Override\n\tpublic String takeDecision() {\n\t\tAction decision = null;\n\n\t\tint avgCostToLeave = memory.getAverageCost(\"move_to\");\n\n\t\tif (memory.getUndoneObj().size() == 0) {\n\t\t\tAction stop = new Stop();\n\t\t\tmemory.rememberAction(stop);\n\t\t\treturn new Stop().toString();\n\t\t}\n\n double getShortestDistanceToCreek = memory.getShortestDistanceTo(new Coordinate(0, 0));\n\t\tif (memory.getCurrentBudget() > 0.015 * memory.getInitialBudget()) {\n\n\t\t\t// Nobody on the island -> decide to Land\n\t\t\tif (memory.getMenOnIsland() == 0)\n\t\t\t\t// TODO : implémenter un vrai choix du nombre de personnes à\n\t\t\t\t// débarquer\n\t\t\t\tdecision = new Land(memory.getInitialCreek(), 1);\n\n\t\t\t// Here we choose the behavior that the bot must have\n\t\t\telse {\n\t\t\t\tbehaviour = new BehaviourSimple(getMemory());\n\t\t\t}\n\t\t} else {\n\t\t\t// Stops the game if there is not enough action points\n\t\t\tdecision = new Stop();\n\t\t}\n\n\t\t// If there is no decision taken yet, the behavior choose the action to\n\t\t// return\n\t\tif (decision == null)\n\t\t\tdecision = behaviour.chooseNextAction();\n\n\n // Case, for example when we've reach the top right corner. Because the bot don't consider taking a detour so findOrientation doesn't return a correct value\n if (decision == null) {\n decision = new Stop();\n }\n // The action is saved in the memory\n\n // Exploit and stop use some kind of land, so if we barely can afford an exploit, no chance to go home\n if (decision.getName().equals(\"exploit\") && memory.getCurrentBudget() < 4 * getShortestDistanceToCreek) {\n decision = new Stop();\n }\n\n memory.rememberAction(decision);\n return decision.toString();\n\t}", "title": "" }, { "docid": "93503286f7176e05f91872ae52926e49", "score": "0.5384635", "text": "private void startGame() {\n int numOfPlayers = promptNumOfPlayers();\n\n robotTurtleGame = new Game(numOfPlayers);\n gameManipulate = new GameManipulate(robotTurtleGame);\n\n gameDisplay.setControllerModel(new ManipulateModel(new GameBoardInfo(robotTurtleGame)));\n\n addPlayerToGame(promptPlayerNames(numOfPlayers));\n playGame();\n }", "title": "" }, { "docid": "cfff3b4b1517329bcc19e4c1fe2826e1", "score": "0.53803676", "text": "private static GameMap startGame()\n {\n GameMap map = new GameMap();\n\n\n // TEST 1.1: manually populate the game map & make the Human use all artifact irrespective of position\n\n HealthPlus10Artifact healthArtifact_1 = new HealthPlus10Artifact( new MapPosition(3, 4) );\n EnergyPlus10Artifact energyArtifact_2 = new EnergyPlus10Artifact( new MapPosition(1, 2) );\n Animal animal_1 = new Animal( \"Animalus~1\", new MapPosition(5, 3) );\n Monster monster_2 = new Monster( \"Monstruus~2\", new MapPosition(6, 6) );\n Human human_1 = new Human( \"Lancelot\", new MapPosition(6, 0) );\n\n List<Object> entities = Arrays.asList( healthArtifact_1,\n energyArtifact_2,\n animal_1,\n monster_2,\n human_1 );\n map.populateMap( entities );\n\n map.displayGameStatus();\n\n // use all artifact irrespective of position\n System.out.println( human_1 );\n human_1.useArtifact( healthArtifact_1 );\n System.out.println( human_1 );\n human_1.useArtifact( energyArtifact_2 );\n System.out.println( human_1 );\n\n\n/*\n // TEST 1.2: manually populate the map as above, then move Human & let him interact with entities automatically\n\n human_1.actAlongThePath( map, new MapPosition( -5, 11 ) );\n*/\n\n\n/*\n // TEST 2: randomly populate the game map & randomly generate Human movements on the map\n\n map.populateMapRandomly();\n\n map.displayGameStatus();\n\n Human human = map.getTheHumanHero();\n if( human != null )\n {\n human.actAlongThePath( map, new MapPosition( GameMap.getSize() / 2,\n GameMap.getSize() / 2 ) );\n }\n*/\n\n\n // finally, if the Human hero is still alive, then continue towards end game\n return map;\n }", "title": "" }, { "docid": "96a4eb608f469a2d03a4aed6a2f5fc03", "score": "0.5379384", "text": "public void startAndCompleteFocusOnPositiveOfQuitSmoking(String activityName){\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tclickOnNextArrowToLoadMoreActivities();\n\t\tstartOtherActivitiesOfGPLevel(activityName);\n\t\tclickOnActivitySubmitBtn();\n\t\tclickOnContinueBtn();\n\t}", "title": "" }, { "docid": "0d5fd0873c16a95b9045f6325f2d630d", "score": "0.5376267", "text": "public void startAndCompletePlanItActivity(int count){\n\t\tSeleniumUtil.sleep(6);\n\t\tclickOnNextBtnOfActivity(count);\n\t\tenterDetailsInPlanItPanel(1);\n\t\tclickOnNextAndSubmitBtnsOfLevelActivity(1);\n\t\tclickOnAddNewRow(2);\n\t\tenterDetailsInActivityHavingInputColumns();\n\t\tclickOnSubmitButtonOfHowIntenseActivity();\n\t}", "title": "" }, { "docid": "a39a2dc524d8c5c51af5b6fc4c26144b", "score": "0.5365454", "text": "static void SampleItinerary() {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }", "title": "" }, { "docid": "f9d1bae8d8969405d76ab6713738b646", "score": "0.5362493", "text": "private void runNewMiniGame() {\r\n Data.createMiniGameData();\r\n outToAll(\"Starting game number \" + gameNumber);\r\n System.out.println(\"***************************************\");\r\n System.out.println(\"GAME NUMBER: \" + gameNumber);\r\n Data.printItemsOfMiniGame(gameNumber);\r\n MiniGame miniGame = new MiniGame(gameNumber);\r\n miniGame.run();\r\n }", "title": "" }, { "docid": "731dbc36e7ccbbd431582f562b12c173", "score": "0.5361195", "text": "public void executeWork() {\r\n\t\tif (engine.getAvailableResource()) {\r\n\t \t// First marks all the activities as \"potentially feasible\"\r\n\t \tfor (RequestResourcesFlow act : activityList)\r\n\t \tact.resetFeasible();\r\n\t \tengine.processAvailableResources();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tengine.processAvailableElements();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "df8eafc54e8cc16412f334fd14acb978", "score": "0.53561246", "text": "private void goToComplexity(){\n Intent chooseComplex = new Intent(this, ChooseComplexity.class);\n startActivity(chooseComplex);\n }", "title": "" }, { "docid": "f9c77f192c1934d61703c087a6b6c32e", "score": "0.5350794", "text": "public void onPlanetButton9Pressed(View view) {\n askForTravel(9);\n }", "title": "" }, { "docid": "0baefccde3eadd16e7df6f95a5736dfa", "score": "0.5347431", "text": "public static void main(String[] args) {\n\t\tBattleUnit test = new BattleUnit();\n\t\tRandom random = new Random();\n\t\t//new GameOverWindow(null);\n\t\tSystem.out.println(\"\"+BattleUnit.experience_threshold_for_next_level(2));\n\t\tSystem.out.println(\"\"+BattleUnit.experience_threshold_for_next_level(3));\n\t\tSystem.out.println(\"\"+BattleUnit.experience_threshold_for_next_level(4));\n\t\tSystem.out.println(\"\"+BattleUnit.experience_threshold_for_next_level(5));\n\t\tSystem.out.println(\"\"+BattleUnit.experience_threshold_for_next_level(6));\n\t\tSystem.out.println(\"\"+BattleUnit.experience_threshold_for_next_level(7));\n\t\t\n\t\tSystem.out.println(BattleCalculations.calc_meele_hit_chance(test, test));\n\t\tfor( int i = 0; i<20; i++) {\n\t\t\tSystem.out.println(random.nextGaussian());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "62640a9d90acec06354ab66f1b0ca3fa", "score": "0.53429294", "text": "private void gameStart(){\n RectangularRPGBoard b = getBoard();\n \n int status = isEnd();\n while(status < 0){ // -1 not end, 0 - stale, 1 - player win, 2 - monster win\n roundStart();\n\n // each monster make its move\n for(Monster m : monsters){\n m.act(b, monsters, heros);\n }\n\n // print board once and get all input info\n // do not print too much\n b.printBoard(); \n for(Hero h : heros){\n h.act(b, monsters, heros);\n }\n\n status = isEnd();\n }\n\n printWinningMessage(status);\n end();\n }", "title": "" }, { "docid": "c897edd1bbee807b1a80239092af1f9d", "score": "0.5342054", "text": "@Override\n public void run() {\n System.out.println(\"n_items \" + items.size());\n System.out.println(\"n_constraints \" + constraints.size());\n if (shotgun) {\n System.out.println(\"Shotgun\");\n ((Shotgun) solver).shotgun(startFromOld);\n } else if (improve) {\n System.out.println(\"Improve\");\n ((Improve) solver).improve();\n } else if (greedySearch) {\n System.out.println(\"GreedySearch\");\n ((GreedySearch) solver).greedySearch(heuristics, probTakeClass);\n } else {\n System.out.println(\"GreedyHeursiticSpread\");\n ((GreedySearch) solver).bestHeuristicSpread();\n }\n }", "title": "" }, { "docid": "4e7c2aceefef5b6c6bafa5d8d3da9d1f", "score": "0.5341875", "text": "@Override\n public void execute() {\n if (mode ==\"normal\"){\n\n\n m_hopper.runhopper(\"normal\",m_speed,m_speed);\n }\nelse if ( mode==\"negative\" ){\n\n\nm_hopper.runhopper(\"negative\",l_speed,l_speed);\n\n}\nelse if (mode==\"fastnormal\"){\n\n\n m_hopper.runhopper(\"fastnormal\",h_speed,h_speed);\n}\nelse{\n m_hopper.runhopper(\"nothing \", -m_speed, m_speed);\n}\n }", "title": "" }, { "docid": "874f1de60a7ffb051092d89b877ab50f", "score": "0.5339373", "text": "public void doActions() {\n Case[][] myRoad = getRoad().getTabCase();\n if (getCoordinateY() > -1 && getCoordinateX() > -1 && getCoordinateX() < 8 && getCoordinateY() < 8) {\n if (myRoad[getCoordinateY()][getCoordinateX()] instanceof Decision) {\n addWaintingList(this);\n treadCarefully();\n } else {\n if (myRoad[getCoordinateY()][getCoordinateX()] instanceof Wait) {\n if(!getWaitingList().isEmpty()) {\n if (getWaitingList().get(0) == this) {\n // To check there is nothing on the intersection\n if(IntersectionFree()) {\n treadCarefully();\n }\n } else {\n if ((getWaitingList().indexOf(this) >= 1) && (getWaitingList().indexOf(this) <= 3)){\n int nbVehicle = HowManyVehicleCanPass();\n if(nbVehicle == 4) {\n treadCarefully();\n } else {\n if (nbVehicle > 1 && canIgo(nbVehicle)) {\n treadCarefully();\n }\n }\n }\n }\n }\n } else {\n if (myRoad[getCoordinateY()][getCoordinateX()] instanceof Conflict) {\n if ( !getAlreadyTurned() && ShouldTurn()) {\n //Function to make the rotation\n Direction d = getDirection();\n if(d == Direction.EN || d == Direction.WN) {\n setOrientation(Orientation.North);\n } else {\n if(d == Direction.ES || d == Direction.WS) {\n setOrientation(Orientation.South);\n } else {\n if(d == Direction.NE || d == Direction.SE) {\n setOrientation(Orientation.East);\n } else {\n if(d == Direction.SW || d == Direction.NW) {\n setOrientation(Orientation.West);\n }\n }\n }\n }\n treadCarefully();\n setAlreadyTurned(true);\n }\n else {\n treadCarefully();\n }\n if (!(myRoad[getCoordinateY()][getCoordinateX()] instanceof Conflict)) {\n deleteFileAttente(this);\n }\n } else if (myRoad[getCoordinateY()][getCoordinateX()] instanceof Tar) {\n treadCarefully();\n }\n }\n }\n } else {\n treadOutsideMap();\n }\n }", "title": "" }, { "docid": "fec030318157a0813d3549f50d88615e", "score": "0.53390557", "text": "String execute(){\n\t\tGameState g = GameState.instance();\n\t\tRoom currentRoom = g.getAdventurersCurrentRoom();\n\t\tRoom nextRoom = currentRoom.leaveBy(dir);\n\t\tDungeon d = GameState.instance().getDungeon();\n\t\tWeatherEvent event;\n\t\t\tif (nextRoom != null) {\n\n\t\t\t\tg.setAdventurersCurrentRoom(nextRoom);\n\t\t\t\tg.changeMoves(1);\n\n\t\t\t\tif(g.getHungerPoints() <= 10)\n\t\t\t\t{\n\t\t\t\t\tg.changeHealth(5);\n\t\t\t\t\tSystem.out.println(\"You need to eat!!\\n\" + \n\t\t\t\t\t\t\t\"You are about to die!\");\n\t\t\t\t}\n\t\t\t\telse if (g.getHungerPoints() <= 30)\n\t\t\t\t{\n\t\t\t\t\tg.changeHealth(3);\n\t\t\t\t\tSystem.out.println(\"Youre starving. Please eat.\");\n\n\t\t\t\t}\n\t\t\t\telse if(g.getHungerPoints() <= 50)\n\t\t\t\t{\n\t\t\t\t\tg.changeHealth(1);\n\t\t\t\t\tSystem.out.println(\"You are getting hungry. Find food in the near future.\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tg.changeHunger(-2);\n\t\t\n\t\t\t\t\n\n\t\t\t\tif((GameState.instance().getMoves() % 20) == 0){\n\t\t\t\t\tevent = d.getRandomWeatherEvent();\n\t\t\t\t\tif(event != null){\n\t\t\t\t\tWeatherGenerator w = new WeatherGenerator(event);\n\t\t\t\t\treturn \"\\n\" + w.execute() + \"\\n\" +\n\t\t\t\t\t\tnextRoom.describe() + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(g.companion() == true && g.getCompanion().getFollow() == true){\n\t\t\t\t\tg.getCompanion().follow();\n\t\t\t\t}\n\t\t\t\telse if(g.companion() == true && g.getCompanion().getFollow() == false){\n\t\t\t\t\tg.getCompanion().stay();\n\t\t\t\t}\n\t\t\t\tfor(int i = 0; i < nextRoom.getNonPlayerCharacters().size();i++)\n\t\t\t\t{\n\t\t\t\t\tNPC npc = nextRoom.getNonPlayerCharacters().get(i);\n\t\t\t\t\tif(npc.getType().equals(\"Thief\") && npc.getIfStole() == false && !g.getInventory().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(npc.steal());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn \"\\n\" + nextRoom.describe() + \"\\n\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn \"Sorry, you can't go \" + dir + \" from \" + currentRoom.getTitle() + \".\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "6cb2ab3242e50eb39f33d87ccaf62e35", "score": "0.53386295", "text": "public static void set() {\n\t\tswitch(level) {\n\t\tcase 1:\n\t\t\tstage = new Stage(20,11);\n\t\t\tsetbase();\n\t\t\tStage.setfirst();\n\t\t\tstep = new Step();\n\t\t\tshejing = new Shejing(step);\n\t\t\txiezi = new Xiezi(step);\n\t\t\tyeye = new Yeye(step);\n\t\t\thuluwa = new Huluwa(7,step);\n\t\t\tlouluo = new Louluo(8,step);\n\t\t\tamount = 17;\n\t\t\thuluwa.setposition(2, 2, 0);\n\t\t\tyeye.setposition(1, 5);\n\t\t\txiezi.setposition(17, 5);\n\t\t\tlouluo.setposition(18, 5, 2);\n\t\t\tshejing.setposition(18, 5);\n\t\t\tstage.setstep(step);\n\t\t\tg.gamestart();\n\t\t\tStage.show();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tstage = new Stage(20,11);\n\t\t\tsetbase();\n\t\t\tstep = new Step();\n\t\t\tyeye = new Yeye(step);\n\t\t\thuluwa = new Huluwa(7,step);\n\t\t\tdevil = new Devil(2,step);\n\t\t\tred = new Redmonster(4,step);\n\t\t\tblack = new Blackmonster(4,step);\n\t\t\tamount = 17;\n\t\t\thuluwa.setposition(2, 2, 0);\n\t\t\tyeye.setposition(1, 5);\n\t\t\tdevil.setposition(17, 3, 4);\n\t\t\tblack.setposition(17, 3, 4);\n\t\t\tred.setposition(17, 7, 4);\n\t\t\tstage.setstep(step);\n\t\t\tg.gamestart();\n\t\t\tStage.show();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tSystem.out.println(\"all mission completed!\");\n\t\t\t//Savefile.save();\n\t\t}\n\t}", "title": "" } ]
aabfbb957663cd2a10a98ba49889b64d
String name = "Pias";
[ { "docid": "d02ccef7af7b68d12ceb3f012ea73c65", "score": "0.0", "text": "public static void main(String[] args) {\n\t\r\n\t\tString myName = new String(\"PiasBeImp\");\r\n\t\tSystem.out.println(myName.length());\r\n\t\t\r\n\t\tSystem.out.println(myName.charAt(3));\r\n\t\t\r\n\t\tSystem.out.println(myName.substring(0, 4));\r\n\r\n\t}", "title": "" } ]
[ { "docid": "4056d9d40b9683200ec0e3f93605d420", "score": "0.727669", "text": "public void take_name(String name_from_basics4)\n {\n name=name_from_basics4; \n }", "title": "" }, { "docid": "eb90266db5f6b21c74d87d7f9eb51148", "score": "0.7171379", "text": "StandardOfLiving(String name){\n string = name;\n }", "title": "" }, { "docid": "d659f075e2f3f92d815b5992e5044d1b", "score": "0.71689826", "text": "public static String giveMeMyName(){\n\n return \"Ayse\";\n\n }", "title": "" }, { "docid": "e916533b72c9b8b0cc9d0105158ae7ff", "score": "0.7146819", "text": "String name(){\r\n\treturn \"Jhuma\"; \r\n\t }", "title": "" }, { "docid": "a8a1a24a1d628d32b2c34c7a13e759b0", "score": "0.7049548", "text": "String name ();", "title": "" }, { "docid": "1385fe3ea55982132396e507c038f903", "score": "0.69340044", "text": "String GetName() ;", "title": "" }, { "docid": "1021ebd986dfec33efe12c7237e12ce7", "score": "0.6868649", "text": "String getString(String name);", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "e4c03a84351edd9e80b9a432e28640e5", "score": "0.68366224", "text": "String name();", "title": "" }, { "docid": "b7f6920766f5e18e07148e197ac98896", "score": "0.6764759", "text": "Name name();", "title": "" }, { "docid": "f7dcf167e96b1c0f949fcc5d847ac8ea", "score": "0.67453045", "text": "public String getName()\r\n{\r\nreturn name;\r\n}", "title": "" }, { "docid": "2152395fc46de20fcf26d7001059c4b0", "score": "0.67164576", "text": "public String getString(String name);", "title": "" }, { "docid": "f4898ffcc79eb19ce605a8f0ffb94e78", "score": "0.6668988", "text": "String getName()\n {return name;}", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.6659536", "text": "public String getName(){return name;}", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.6659536", "text": "public String getName(){return name;}", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.6659536", "text": "public String getName(){return name;}", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.6659536", "text": "public String getName(){return name;}", "title": "" }, { "docid": "00542bc2be758cb8310dd03e86516198", "score": "0.6659536", "text": "public String getName(){return name;}", "title": "" }, { "docid": "432bb422461c05af08c8dae52a0c46e5", "score": "0.66414833", "text": "public void setName (String n );", "title": "" }, { "docid": "3bf55d2a46a9a883b18c7a9820071360", "score": "0.6615854", "text": "@Override\n\tpublic String name(String name) {\n\t\treturn \"This is name \"+name;\n\t}", "title": "" }, { "docid": "ef4dba57e2c8fc5e1bc4132cb89dced2", "score": "0.6574425", "text": "public String getName(){\n return \"Find an Opponent...\"; \n }", "title": "" }, { "docid": "f6dadd7b176f6a41d5164800dccc9260", "score": "0.6546719", "text": "String getName ();", "title": "" }, { "docid": "f6dadd7b176f6a41d5164800dccc9260", "score": "0.6546719", "text": "String getName ();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.65360874", "text": "String getName();", "title": "" } ]
1268fd9e641a633c49bebf59bfdc063a
Ensure we have an Extern with given name and given resources
[ { "docid": "165cfbb51682aa31b324e1f70c1e4490", "score": "0.6348544", "text": "Extern addExtern(String name, int... resources);", "title": "" } ]
[ { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.5410382", "text": "boolean hasResource();", "title": "" }, { "docid": "e7888fed7101cfde0ec67a9df307c3ca", "score": "0.5345852", "text": "public abstract void addResource(String name);", "title": "" }, { "docid": "534a9c2da178655399608b0d9c2bacaa", "score": "0.51885116", "text": "boolean accept(String resourceName);", "title": "" }, { "docid": "65a10424f1003b3b54f4f55a94c61f7a", "score": "0.51532716", "text": "public interface Resources\n extends\n AwesomeBox.Resources,\n AwesomeBoxResources,\n PopupBlockedInstructionalPopup.Resources,\n RunButtonTargetPopup.Resources,\n SearchContainer.Resources{\n\n @Source(\"gear.png\")\n ImageResource gearIcon();\n\n @Source(\"gwt.png\")\n ImageResource gwtIcon();\n\n @Source(\"xapi.png\")\n ImageResource xapiIcon();\n\n @Source(\"terminal.png\")\n ImageResource terminalIcon();\n\n @Source(\"play.png\")\n ImageResource runIcon();\n\n @Source(\"play_dropdown.png\")\n ImageResource runDropdownIcon();\n\n @Source(\"select_control.png\")\n ImageResource selectArrows();\n\n @Source(\"read_only_message_icon.png\")\n ImageResource readOnlyMessageIcon();\n\n @Source(\"trunk_branch_icon.png\")\n ImageResource trunkBranchIcon();\n\n @Source({\"Header.css\", \"constants.css\", \"collide/client/common/constants.css\"})\n Css workspaceHeaderCss();\n }", "title": "" }, { "docid": "32c48293cd554f122b3b595d5950a541", "score": "0.5140949", "text": "public boolean resourceExists(String path);", "title": "" }, { "docid": "22f48f3948ad3d63dddb20bd6f3a9526", "score": "0.51023823", "text": "public static boolean isExternallyCreatedFile(String fileName) {\n return fileName.endsWith(EXTERNAL_FILE_SUFFIX);\n }", "title": "" }, { "docid": "cfef18248a3c1caaadd983df9010eb22", "score": "0.5099369", "text": "@Test\n public void ensureExistsMethodWorksProperly() throws Exception {\n assertTrue(loader.exists(\"/templates/unit/sample.twig\"));\n assertTrue(loader.exists(\"templates/unit/sample.twig\"));\n assertFalse(loader.exists(\"/invalid.twig\"));\n assertFalse(loader.exists(\"invalid.twig\"));\n }", "title": "" }, { "docid": "5dc225367d40dd628a638693a3eb390e", "score": "0.5084705", "text": "void useResources();", "title": "" }, { "docid": "1e2b7667f8ba5cc98820050eb9a85386", "score": "0.5073142", "text": "@Test\n void checkResources() {\n try {\n Stream<String> inputSource = PackerTestUtils.getFileStream(PackerTestUtils.INPUT_FILE);\n assertNotNull(inputSource);\n Stream<String> outputSource = PackerTestUtils.getFileStream(PackerTestUtils.OUTPUT_FILE);\n assertNotNull(outputSource);\n } catch (IOException e) {\n fail(\"Error while checking resources: IO Operations\");\n } catch (URISyntaxException e) {\n fail(\"Error while checking resources: URISyntax\");\n }\n\n }", "title": "" }, { "docid": "8bf3e30b9b1e695f161da28f123f9f9b", "score": "0.50454706", "text": "public interface RazResource {\r\n public static final String sCLASS = \"Resource.razie\";\r\n public static final ActionItem META = new ActionItem(sCLASS, \"/public/pics/IceAgeScrat.png\");\r\n\r\n public String getResName();\r\n\r\n /**\r\n * environments manage and must be able to locate resources. To use resources, you need access\r\n * to a resource locator which is hooked up to a resource manager.\r\n * \r\n * @version $Revision: 1.63 $\r\n * @author $Author: davidx $\r\n * @since $Date: 2005/04/01 16:22:12 $\r\n */\r\n public interface RazResourceLocator {\r\n public RazResource locate(String name);\r\n\r\n public void register(String name, RazResource res);\r\n }\r\n\r\n /** stupid default resource manager */\r\n public static class RazResourceManager implements RazResourceLocator {\r\n Map<String, RazResource> resources = new HashMap<String, RazResource>();\r\n\r\n // TODO 3- change this to simply find the smart asset resource...\r\n public RazResource locate(String name) {\r\n return resources.get(name);\r\n }\r\n\r\n public void register(String name, RazResource res) {\r\n resources.put(name, res);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "436eee006dfdfbab55d448005b1f4d4b", "score": "0.5020522", "text": "@Test\n\tpublic void testGetResource() {\n\t\tfinal File file = new File(fileName);\n\t\tAssert.assertTrue(file.exists());\n\t}", "title": "" }, { "docid": "cadd373cc89c773b0e18f5defc28cada", "score": "0.50006235", "text": "public static void verifyResources(){\n\t\tFile file = new File(ResourcesCategorias.Paths.ResourcesBuilder);\n\t\tif (!new File(ResourcesCategorias.Paths.ResourcesBuilder).exists()) {\n\t\t\tSystem.out.println(\"Primero debe crear los recursos version:\" + Builder.ResourceVersion);\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "7916a2b52d7030e2801febd4b2e96be9", "score": "0.49632275", "text": "public boolean checkCreateResource(Application app, Class<? extends Resource> type, String name, int count);", "title": "" }, { "docid": "3063aefa4d3a3132c8c10330b598a4e1", "score": "0.49483854", "text": "public static void verifyResourcesVersion() {\n\t\t// Verifica que no haya recursos ya numerados con la version marcada\n\t\tFile file = new File(ResourcesCategorias.Paths.ResourcesBuilder);\n\t\tGdx.app.debug(TAG, file.getAbsolutePath());\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"Modifique la version de los recursos porque ya existe una carpeta con la version actual\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "5395ac5cf25b8d6d37026aedde4c5159", "score": "0.49419636", "text": "@Test\n @DisplayName(\"useResource Test\")\n public void useResourceTest(){\n Storage storage = new Storage();\n new Reserve();\n\n storage.addResource(Resource.ROCK);\n storage.addResource(Resource.SERVANT);\n\n StorageExtraSecond storageExtra = new StorageExtraSecond(Resource.COIN, Resource.ROCK, storage.getStorageResource(), 1);\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(1, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(1,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(1, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(1,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(0,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(0,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n storageExtra.addResource(Resource.COIN);\n storageExtra.addResource(Resource.COIN);\n storageExtra.addResource(Resource.COIN);\n storageExtra.addResource(Resource.ROCK);\n storageExtra.addResource(Resource.ROCK);\n storageExtra.addResource(Resource.ROCK);\n assertEquals(0, storageExtra.getNumExtraFirstAvailable());\n assertEquals(0, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(3,storageExtra.getResource(Resource.COIN));\n assertEquals(3,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(1, storageExtra.getNumExtraFirstAvailable());\n assertEquals(0, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(2,storageExtra.getResource(Resource.COIN));\n assertEquals(3,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(0, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(1,storageExtra.getResource(Resource.COIN));\n assertEquals(3,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(0, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(3,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(1, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(2,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(1,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(0,storageExtra.getResource(Resource.ROCK));\n assertEquals(1,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.SERVANT);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(0,storageExtra.getResource(Resource.ROCK));\n assertEquals(0,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.SERVANT);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(0,storageExtra.getResource(Resource.COIN));\n assertEquals(0,storageExtra.getResource(Resource.ROCK));\n assertEquals(0,storageExtra.getResource(Resource.SERVANT));\n assertEquals(0,storageExtra.getResource(Resource.SHIELD));\n }", "title": "" }, { "docid": "1034621960afa81267a10eac58792554", "score": "0.49384257", "text": "boolean hasExceptionDictionaryFilename();", "title": "" }, { "docid": "3db356098ae5ac747a09b32d96ef853d", "score": "0.49166733", "text": "boolean hasAsset();", "title": "" }, { "docid": "8bee234ee20be16a1e345be1f716b4f5", "score": "0.4891244", "text": "@Test\n @DisplayName(\"getResource Test\")\n public void getResourceTest(){\n Storage storage = new Storage();\n new Reserve();\n\n storage.addResource(Resource.ROCK);\n storage.addResource(Resource.SERVANT);\n\n StorageExtraSecond storageExtra = new StorageExtraSecond(Resource.COIN, Resource.ROCK, storage.getStorageResource(), 1);\n\n assertEquals(1, storageExtra.getNumExtraFirstAvailable());\n assertEquals(1, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(1, storageExtra.getResource(Resource.COIN));\n assertEquals(1, storageExtra.getResource(Resource.ROCK));\n assertEquals(1, storageExtra.getResource(Resource.SERVANT));\n assertEquals(0, storageExtra.getResource(Resource.SHIELD));\n\n storageExtra.addResource(Resource.COIN);\n storageExtra.addResource(Resource.COIN);\n storageExtra.addResource(Resource.ROCK);\n storageExtra.addResource(Resource.ROCK);\n storageExtra.addResource(Resource.SHIELD);\n\n assertEquals(0, storageExtra.getNumExtraFirstAvailable());\n assertEquals(0, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(3, storageExtra.getResource(Resource.COIN));\n assertEquals(3, storageExtra.getResource(Resource.ROCK));\n assertEquals(1, storageExtra.getResource(Resource.SERVANT));\n assertEquals(1, storageExtra.getResource(Resource.SHIELD));\n\n storageExtra.addResource(Resource.COIN);\n storageExtra.addResource(Resource.ROCK);\n storageExtra.addResource(Resource.SERVANT);\n storageExtra.addResource(Resource.SHIELD);\n\n assertEquals(0, storageExtra.getNumExtraFirstAvailable());\n assertEquals(0, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(4, storageExtra.getResource(Resource.COIN));\n assertEquals(4, storageExtra.getResource(Resource.ROCK));\n assertEquals(2, storageExtra.getResource(Resource.SERVANT));\n assertEquals(2, storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(1, storageExtra.getNumExtraFirstAvailable());\n assertEquals(1, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(3, storageExtra.getResource(Resource.COIN));\n assertEquals(3, storageExtra.getResource(Resource.ROCK));\n assertEquals(2, storageExtra.getResource(Resource.SERVANT));\n assertEquals(2, storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(2, storageExtra.getResource(Resource.COIN));\n assertEquals(2, storageExtra.getResource(Resource.ROCK));\n assertEquals(2, storageExtra.getResource(Resource.SERVANT));\n assertEquals(2, storageExtra.getResource(Resource.SHIELD));\n\n try {\n storageExtra.useResource(Resource.COIN);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n try {\n storageExtra.useResource(Resource.ROCK);\n } catch (UnavailableResourceException e) {\n e.printStackTrace();\n }\n assertEquals(2, storageExtra.getNumExtraFirstAvailable());\n assertEquals(2, storageExtra.getNUmExtraSecondAvailable());\n assertEquals(1, storageExtra.getResource(Resource.COIN));\n assertEquals(1, storageExtra.getResource(Resource.ROCK));\n assertEquals(2, storageExtra.getResource(Resource.SERVANT));\n assertEquals(2, storageExtra.getResource(Resource.SHIELD));\n }", "title": "" }, { "docid": "bc89d822fdf735c14c52a6408d37a82d", "score": "0.48755455", "text": "boolean hasContents(Resource resource, int index);", "title": "" }, { "docid": "f5c2fe99c73f5a1ba7075596ae3ec159", "score": "0.48678762", "text": "private static void handleResourceNotFound(SublSourceFile resource, Exception ex) {\n String msg = \"Could not find source file for function \" + resource + \" at path: \" + resource.getSourceFilePath();\n if (ex != null) {\n throw new BaseClientRuntimeException(msg, ex);\n }\n throw new BaseClientRuntimeException(msg);\n }", "title": "" }, { "docid": "402e72170749d973ec1e2cfc94b9ceb5", "score": "0.48658207", "text": "private void missingResourceMessage(\n String name, String defaultName, String description)\n {\n if (!mMissingResources.contains(name))\n {\n if (description == null)\n {\n description = \"resource\";\n }\n javax.swing.JOptionPane.showMessageDialog(\n getCurrentFrame(),\n \"Cannot find specified \" + description + \":\\n\"\n + \" \\\"\" + name + \"\\\"\\nas a file, on the classpath, \"\n + \"or as a URL.\"\n + ((defaultName != null)\n ? (\"\\nUsing default: \" + defaultName)\n : \"\")\n + \".\",\n \"Checkstyle Extension\",\n javax.swing.JOptionPane.WARNING_MESSAGE );\n mMissingResources.add(name);\n }\n }", "title": "" }, { "docid": "02dae3b2f557f836515d12e142c0eb50", "score": "0.48652104", "text": "public interface ResourceAble {\n public int getImageRes();\n\n public String getName();\n}", "title": "" }, { "docid": "7008e9f0f30a43b2058c82fb0cca3745", "score": "0.4825145", "text": "public Object include(Resource aResource) throws IOException, J2meProcessingException;", "title": "" }, { "docid": "bf68fa57856138546345a367e01f8028", "score": "0.4789363", "text": "@Override\n\tpublic boolean canProvide(String name) {\n\t\treturn name.startsWith((\"assets/\" + modID + \"/models/block/\")) && name.endsWith(\".json\");\n\t}", "title": "" }, { "docid": "4d44dc1b845c26ca1b456927a5043109", "score": "0.47746363", "text": "static public scala.Option<java.io.File> prepareResourcesFile (java.lang.String componentName, scala.collection.immutable.Map<java.lang.String, org.apache.spark.resource.ResourceInformation> resources, java.io.File dir) { throw new RuntimeException(); }", "title": "" }, { "docid": "ea4dd70cb830178cdd388a6fe277ea4f", "score": "0.47511008", "text": "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:35:37.916 -0500\", hash_original_method = \"371F1E66BBE63CA5CE35B0BEAA492ADA\", hash_generated_method = \"D0EFA0416DCD1F6829E1A445070B2B89\")\n \nResources getTopLevelResources(String resDir, CompatibilityInfo compInfo) {\n ResourcesKey key = new ResourcesKey(resDir, compInfo.applicationScale);\n Resources r;\n synchronized (mPackages) {\n // Resources is app scale dependent.\n if (false) {\n Slog.w(TAG, \"getTopLevelResources: \" + resDir + \" / \"\n + compInfo.applicationScale);\n }\n WeakReference<Resources> wr = mActiveResources.get(key);\n r = wr != null ? wr.get() : null;\n //if (r != null) Slog.i(TAG, \"isUpToDate \" + resDir + \": \" + r.getAssets().isUpToDate());\n if (r != null && r.getAssets().isUpToDate()) {\n if (false) {\n Slog.w(TAG, \"Returning cached resources \" + r + \" \" + resDir\n + \": appScale=\" + r.getCompatibilityInfo().applicationScale);\n }\n return r;\n }\n }\n\n //if (r != null) {\n // Slog.w(TAG, \"Throwing away out-of-date resources!!!! \"\n // + r + \" \" + resDir);\n //}\n\n AssetManager assets = new AssetManager();\n if (assets.addAssetPath(resDir) == 0) {\n return null;\n }\n\n //Slog.i(TAG, \"Resource: key=\" + key + \", display metrics=\" + metrics);\n DisplayMetrics metrics = getDisplayMetricsLocked(null, false);\n r = new Resources(assets, metrics, getConfiguration(), compInfo);\n if (false) {\n Slog.i(TAG, \"Created app resources \" + resDir + \" \" + r + \": \"\n + r.getConfiguration() + \" appScale=\"\n + r.getCompatibilityInfo().applicationScale);\n }\n \n synchronized (mPackages) {\n WeakReference<Resources> wr = mActiveResources.get(key);\n Resources existing = wr != null ? wr.get() : null;\n if (existing != null && existing.getAssets().isUpToDate()) {\n // Someone else already created the resources while we were\n // unlocked; go ahead and use theirs.\n r.getAssets().close();\n return existing;\n }\n \n // XXX need to remove entries when weak references go away\n mActiveResources.put(key, new WeakReference<Resources>(r));\n return r;\n }\n }", "title": "" }, { "docid": "af966218b06454d04cf0c753d0c5caa6", "score": "0.47208294", "text": "boolean requireArtifactFiles();", "title": "" }, { "docid": "b404a5c92aa555d5624cf10f8afcb17a", "score": "0.47180873", "text": "@Test\n\tvoid failureWhenExeNotFound() throws Exception {\n\t\tsetFile(\"build.gradle\").toLines(\n\t\t\t\t\"plugins {\",\n\t\t\t\t\" id 'com.diffplug.spotless'\",\n\t\t\t\t\"}\",\n\t\t\t\t\"repositories { mavenCentral() }\",\n\t\t\t\t\"spotless {\",\n\t\t\t\t\" format 'myrome', {\",\n\t\t\t\t\" target '**/*.js'\",\n\t\t\t\t\" rome('12.0.0').pathToExe('rome/is/missing')\",\n\t\t\t\t\" }\",\n\t\t\t\t\"}\");\n\t\tsetFile(\"rome_test.js\").toResource(\"rome/js/fileBefore.js\");\n\n\t\tvar spotlessApply = gradleRunner().withArguments(\"--stacktrace\", \"spotlessApply\").buildAndFail();\n\t\tassertThat(spotlessApply.getOutput()).contains(\"Build failed with an exception\");\n\t\tassertFile(\"rome_test.js\").sameAsResource(\"rome/js/fileBefore.js\");\n\t\tassertThat(spotlessApply.getOutput()).contains(\"Could not create task ':spotlessMyromeApply'\");\n\t\tassertThat(spotlessApply.getOutput()).contains(\"Rome executable does not exist\");\n\t}", "title": "" }, { "docid": "fe3d614e95d334ef30a8f576d5df1216", "score": "0.4686598", "text": "public static void loadResources(Resources r) {\n\t}", "title": "" }, { "docid": "27b5422394c3057afa7bf882c331d5f1", "score": "0.467651", "text": "ResourceSpecification resource(String name);", "title": "" }, { "docid": "7f2f97e4f5b2b12b1479ecd9671bbdc5", "score": "0.4675726", "text": "public static boolean exists(final String resourceName) {\n URL i = null;\n if (System.getSecurityManager() != null) {\n i = AccessController.doPrivileged(new PrivilegedAction<URL>() {\n @Override\n public URL run() {\n return ICUData.class.getResource(resourceName);\n }\n });\n } else {\n i = ICUData.class.getResource(resourceName);\n }\n return i != null;\n }", "title": "" }, { "docid": "cd21fe6fcd0358d0c7ced697fa64c6ce", "score": "0.46721318", "text": "static public String exportResource(String resourceName) throws Exception {\n InputStream stream = null;\n OutputStream resStreamOut = null;\n try {\n stream = App.class.getResourceAsStream(resourceName);//note that each / is a directory down in the \"jar tree\" been the jar the root of the tree\n if(stream == null) {\n throw new Exception(\"Cannot get resource \\\"\" + resourceName + \"\\\" from Jar file.\");\n }\n\n int readBytes;\n byte[] buffer = new byte[4096];\n resStreamOut = new FileOutputStream(jarPathOf(resourceName));\n while ((readBytes = stream.read(buffer)) > 0) {\n resStreamOut.write(buffer, 0, readBytes);\n }\n } catch (Exception ex) {\n throw ex;\n } finally {\n try {\n stream.close();\n resStreamOut.close();\n } catch(Exception ex) {\n \n }\n }\n\n return jarPathOf(resourceName);\n }", "title": "" }, { "docid": "96945b3f131c0b3a0704474c4441db53", "score": "0.46657762", "text": "public void initResources();", "title": "" }, { "docid": "b0496f2217aa6f1af5bb861c1b569870", "score": "0.46510336", "text": "protected abstract void loadResources();", "title": "" }, { "docid": "a83d129a917cc28e1c59e5729fcb88a1", "score": "0.46341175", "text": "private boolean isResourcePresent(String childPath){\n\t\treturn new File(childPath).exists();\n\t}", "title": "" }, { "docid": "0275a29442f67cd4f0ab46db8ec57cda", "score": "0.46283346", "text": "public synchronized boolean ensureLoaded(final Resources resources) {\r\n\t\tif (mLoaded){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tloadHymns(resources);\r\n\t\t\t}\r\n\t\t}).start();\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "1c37de4c9e4b3fe0c9a8465b86b338ac", "score": "0.46277076", "text": "boolean hasImported();", "title": "" }, { "docid": "1c7d3b6d6559fd3378de05ac22c20533", "score": "0.4624182", "text": "boolean checkResourceExclusiveConflict(List<? extends PlanningEntry<R>> entries);", "title": "" }, { "docid": "1876041648c3eb493ced0652bb85a2be", "score": "0.46175098", "text": "boolean hasScript(String name);", "title": "" }, { "docid": "16adb0e2376d0e0a3998d1cfdb30ff88", "score": "0.46032777", "text": "void register(ResourceLocation name, Supplier<IMissileSource> builder);", "title": "" }, { "docid": "ece8b539a8d23f0e47500221938d9c6d", "score": "0.45928848", "text": "protected String getResourceString( String nm )\n\t{\n\t\tString str;\n\n\t\ttry\n\t\t{\n\t\t\tstr\t= resources.getString( nm );\n\t\t}\n\t\tcatch ( MissingResourceException mre )\n\t\t{\n\t\t\tstr\t= null;\n\t\t}\n\n\t\treturn str;\n\t}", "title": "" }, { "docid": "deee323832699bec840b90a669ec137f", "score": "0.4585434", "text": "@Override\n void doFullValidation(ResourceManager aResourceManager) throws ResourceInitializationException;", "title": "" }, { "docid": "73c21b8d0c7549a0e0efd071bf25e3cd", "score": "0.45809656", "text": "public interface IASPMResourceProvider {\n\t\n\t/**\n\t * Returns the resource.\n\t */\n\tpublic ASPM.resource.ASPM.IASPMTextResource getResource();\n\t\n}", "title": "" }, { "docid": "d79a47d063add63f20d0c13c2d923ee7", "score": "0.45685905", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isExternallyOwned();", "title": "" }, { "docid": "a532dec7fbe379befea4042584e02bea", "score": "0.45656633", "text": "public boolean isVulnerable(Context context) throws Exception {\n String entryName = \"test_file_name1\";\n String tmpName = \"test_file_name2\";\n\n // create the template data\n ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n ZipOutputStream out = new ZipOutputStream(bytesOut);\n ZipEntry ze1 = new ZipEntry(tmpName);\n out.putNextEntry(ze1);\n out.closeEntry();\n ZipEntry ze2 = new ZipEntry(entryName);\n out.putNextEntry(ze2);\n out.closeEntry();\n out.close();\n\n // replace the bytes we don't like\n byte[] buf = bytesOut.toByteArray();\n replaceBytes(tmpName.getBytes(), entryName.getBytes(), buf);\n\n // write the result to a file\n File outputDir = context.getCacheDir();\n File badZip = File.createTempFile(\"prefix\", \"extension\", outputDir);\n badZip.deleteOnExit();\n FileOutputStream outstream = new FileOutputStream(badZip);\n outstream.write(buf);\n outstream.close();\n\n // see if we can still handle it\n try (ZipFile bad = new ZipFile(badZip)) {\n return true;\n } catch (ZipException expected) {\n if(expected.getMessage().contains(\"Duplicate entry name\"))\n return false;\n else\n throw expected;\n }\n }", "title": "" }, { "docid": "768438c2f7d4caf14d6b2bc9ec241926", "score": "0.4560344", "text": "String getResource(long bundleId, String name) throws IOException;", "title": "" }, { "docid": "e32d6a6cdb7c8116059148df50b1b4f6", "score": "0.4552397", "text": "protected void checkResourcesManaged(ICVSResource[] resources) throws CVSException {\n \t\tfor (int i = 0; i < resources.length; ++i) {\n \t\t\tICVSFolder folder;\n \t\t\tif (resources[i].isFolder()) {\n \t\t\t\tif (((ICVSFolder)resources[i]).isCVSFolder()) {\n \t\t\t\t\tfolder = (ICVSFolder)resources[i];\n \t\t\t\t} else {\n \t\t\t\t\tfolder = resources[i].getParent();\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfolder = resources[i].getParent();\n \t\t\t}\n \t\t\tif (folder==null || (!folder.isCVSFolder() && folder.exists())) {\n \t\t\t\tthrow new CVSException(NLS.bind(CVSMessages.Command_argumentNotManaged, new String[] { folder.getName() }));//$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "737ae682533b3912232515a3ad8d73cf", "score": "0.4551351", "text": "boolean isExterned(VM v);", "title": "" }, { "docid": "e07adfdde92a3830f48ad4f817428f9c", "score": "0.45490497", "text": "public boolean isResource() {\n return (resourceName != null);\n }", "title": "" }, { "docid": "cae39fa27a49e2eefae447fcd8aefbd7", "score": "0.45449734", "text": "public int stealResource(String[] names){return 2;}", "title": "" }, { "docid": "ee8490ba4d78e5972d1d25f0b586fce3", "score": "0.45448652", "text": "ResourceVerification createResourceVerification();", "title": "" }, { "docid": "d0c8cfc83c2792f1a7d8f8557a7dd5be", "score": "0.45429254", "text": "@Override\n\tpublic SVGAnimatedBoolean getExternalResourcesRequired() {\n\t\tif (externalResourcesRequired == null) {\n\t\t\texternalResourcesRequired = new SVGAnimatedBooleanImpl(false, this);\n\t\t}\n\t\treturn externalResourcesRequired;\n\t}", "title": "" }, { "docid": "b48ae5ae37208ddd249468eb3ea2ada9", "score": "0.45140842", "text": "boolean hasExt();", "title": "" }, { "docid": "9252dc6e29e782b07754267f4f5d7df2", "score": "0.45127216", "text": "boolean hasIconName();", "title": "" }, { "docid": "9252dc6e29e782b07754267f4f5d7df2", "score": "0.45127216", "text": "boolean hasIconName();", "title": "" }, { "docid": "84b0777920eae525c277e853cc88a111", "score": "0.45052803", "text": "ResourceSet getLocalResources() throws ExecException;", "title": "" }, { "docid": "f1c56b01d05bee1337c230d97cc7f615", "score": "0.44982636", "text": "public NoLoadExternalResourceSecurity() {\n/* 57 */ this.se = new SecurityException(Messages.formatMessage(\"NoLoadExternalResourceSecurity.error.no.external.resource.allowed\", null));\n/* */ }", "title": "" }, { "docid": "c26d8d1c1efe823f541cc645a8a683cf", "score": "0.44931307", "text": "public abstract URL getResource(String name);", "title": "" }, { "docid": "511e2d312844b516e36ad35909589692", "score": "0.44779697", "text": "java.lang.String getRequestedResourceName();", "title": "" }, { "docid": "7c146f47f83e467652bdae934587d392", "score": "0.4477468", "text": "@Override\n @SuppressWarnings({ \"unchecked\" })\n protected Enumeration<URL> findResources(String name) throws IOException\n {\n if (bundle.getState() == Bundle.ACTIVE)\n {\n Enumeration<URL> urls = (Enumeration<URL>) bundle.getResources(name);\n if (urls != null)\n {\n return urls;\n }\n }\n return super.findResources(name);\n }", "title": "" }, { "docid": "50e7088528d05576558fa2036aa5d518", "score": "0.44716412", "text": "public void loadThatColorIsResources() {\n\t\tloadThatColorIsGraphics();\n\t\tloadThatColorIsAudio();\n\t}", "title": "" }, { "docid": "c520dc5e0bddd2c4bb624a4458b67dab", "score": "0.4468214", "text": "public boolean hasEntry( String name );", "title": "" }, { "docid": "b8038efcee17f3a24e33474c84ff8491", "score": "0.44677478", "text": "void registerResource(Resource resource);", "title": "" }, { "docid": "c6be21a0a84c7fcf629bfdb2efb5b491", "score": "0.44659317", "text": "private ExceptionResources()\n {\n }", "title": "" }, { "docid": "75fd9a7bcf5155e4f90bf8209c461c94", "score": "0.44642913", "text": "boolean hasDedicatedResources();", "title": "" }, { "docid": "eb6cb02ff5b8ea3341e34a735ead383b", "score": "0.4462937", "text": "private boolean checkExistence(Resource resource) {\n\t\tif (resource != null && resource.exists()) \n\t\t\treturn true;\n\t\tif (config == ReadConfiguration.FAIL)\n\t\t\tthrow new IllegalStateException(\"Resource \" + resource + \" is virtual\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9f37d6bfad419acb97932500bee20d90", "score": "0.445754", "text": "Requires createRequires();", "title": "" }, { "docid": "1dc414cbeba494191d1be7536106723f", "score": "0.44565603", "text": "public void checkLoadedMods(){\n\n\t}", "title": "" }, { "docid": "688fd3cbb5e4c4e21c749364725e4c26", "score": "0.44475365", "text": "public static void injectResourceScriptAsFile(String filename)\n {\n if (!scriptIsInjected.contains(filename))\n {\n ScriptElement link = Document.get().createScriptElement();\n link.setAttribute(\"language\", \"javascript\");\n link.setText(filename);\n getHead().appendChild(link);\n\n scriptIsInjected.add(filename);\n }\n }", "title": "" }, { "docid": "e5f1514f3da91bfa00fdbbd15a68b000", "score": "0.44474483", "text": "boolean isExported();", "title": "" }, { "docid": "e5f1514f3da91bfa00fdbbd15a68b000", "score": "0.44474483", "text": "boolean isExported();", "title": "" }, { "docid": "3d4e412498391da2f8f6ec07fda8b511", "score": "0.44462365", "text": "private void addResourcesFromFile(String language, String subpackage) {\r\n try {\r\n myResources = ResourceBundle.getBundle(subpackage + \".\" + language);\r\n } catch (MissingResourceException e) {\r\n throw new ResourceException(MISSING_RESOURCE, subpackage, language);\r\n }\r\n }", "title": "" }, { "docid": "2a85f240ff8d35e7811fdfcdedc26d5b", "score": "0.4435748", "text": "private void initResources(){\n\t\tINVALID_TOKENS_ERROR = myResourceLoader.getString(\"InvalidCommandTokens\");\n\t\tCOMMAND_PATH = myResourceLoader.getString(\"CommandNode\");\n\t\tCLASS_EXTENSION = getResourceLoader().getString(\"Node\");\n\t\tCOMMAND = getResourceLoader().getString(\"COMMAND\");\n\t\tNOT_IMPLEMENTED_ERROR = getResourceLoader().getString(\"IMPLEMENTED\");\n\t}", "title": "" }, { "docid": "2f57b798595a8f97541d91c68f9c626a", "score": "0.44292614", "text": "private File createResourceFileIfNotExists() {\n // create a resource\n final File file = new File(String.format(\"./model/%s.xmi\", entityNames[0]));\n if (!file.exists()) {\n try {\n file.createNewFile();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n\n return file;\n\n }", "title": "" }, { "docid": "df701aee520673bf3f7559d38ebb2894", "score": "0.44197747", "text": "public void testBldInfExports() throws Exception {\r\n\t\tprojectDataPath = getProjectData(\"exportOnly\");\r\n\t\tProjectExportsGatherer gatherer = createGatherer();\r\n\t\tIPath src1 = projectDataPath.append(\"gfx/foo.svg\");\r\n\t\tIPath src2 = projectDataPath.append(\"doc/README.txt\");\r\n\t\tIPath epoc1 = PathUtils.createPath(\"c:/private/12345678/foo.svg\");\r\n\t\tIPath epoc2 = PathUtils.createPath(\"c:/sys/readmes/README.txt\");\r\n\t\t\r\n\t\tMap<IPath, IPath> filesystemToEpocExportMap = gatherer.getFilesystemToEpocExportMap();\r\n\t\tassertEquals(2, filesystemToEpocExportMap.size());\r\n\t\tassertEquals(epoc1, filesystemToEpocExportMap.get(src1));\r\n\t\tassertEquals(epoc2, filesystemToEpocExportMap.get(src2));\r\n\t\t\r\n\t\tassertEquals(0, gatherer.getFilesystemToPkgInstallFileMap().size());\r\n\t\t\r\n\t\tMap<IPath, IPath> uninstalledFilesystemToEpocExportsMap = gatherer.getUninstalledFilesystemToEpocExportsMap();\r\n\t\tassertEquals(filesystemToEpocExportMap, uninstalledFilesystemToEpocExportsMap);\r\n\r\n\t\t\r\n\t\tMap<IPath, IPath> allFilesystemToEpocVisibleMap = gatherer.getAllFilesystemToEpocVisibleMap();\r\n\t\tassertEquals(filesystemToEpocExportMap, allFilesystemToEpocVisibleMap);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5736946d21566a58bd4f772a4c3db06d", "score": "0.44097567", "text": "public interface Resources\r\n{\r\n Icon getAddIcon();\r\n Icon getAppIcon();\r\n Icon getContinueIcon();\r\n Icon getDeselectAllIcon();\r\n Icon getFileIcon();\r\n Icon getFolderImportIcon();\r\n Icon getFolderRemoveIcon();\r\n Icon getFolderSelectIcon();\r\n Icon getLogoIcon();\r\n Icon getNextIcon();\r\n Icon getPrevIcon();\r\n Icon getRefreshIcon();\r\n Icon getRestartIcon();\r\n Icon getSelectAllIcon();\r\n Icon getSmallKOIcon();\r\n Icon getSmallOKButOKIcon();\r\n Icon getSmallOKIcon();\r\n\r\n Image getAppImage();\r\n\r\n Properties getJPanelConfigProperties(); // $codepro.audit.disable declareAsInterface\r\n\r\n String getAboutVersion();\r\n String getAboutVersionDate();\r\n String getAuthorName();\r\n\r\n URI getSiteURI();\r\n}", "title": "" }, { "docid": "d8c1225532329aff59b3b8f4cfdcc261", "score": "0.4408624", "text": "private void checkFileUnique(String name) {\n if(hasFile(name)) throw new FileExistsException(name);\n }", "title": "" }, { "docid": "a2612c061094711cfd2010aa7249c3ad", "score": "0.43961728", "text": "public void setAssetResource(boolean z) {\n this.mIsAssetResource = z;\n }", "title": "" }, { "docid": "4d0ddb3fc4cbd6cd3d0ac4bcbf97c0c7", "score": "0.4395748", "text": "public void testMissingResource() {\n\n\t\t// Record missing resource\n\t\tthis.record_issue(\"Can not obtain resource at location 'missing'\");\n\n\t\t// Attempt to load\n\t\tthis.loadHttpSecurityType(false, new Init() {\n\t\t\t@Override\n\t\t\tpublic void init(HttpSecuritySourceContext context) {\n\t\t\t\tcontext.getResource(\"missing\");\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "75028b5c9eeb1bc75a04fab652eecc9f", "score": "0.4395451", "text": "boolean hasAsmName();", "title": "" }, { "docid": "15d10d2cbb46a7b7b73102aec14f9403", "score": "0.439514", "text": "void setEnterKeyResources(android.content.res.Resources r1, int r2, int r3, int r4) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.oppo.widget.OppoPasswordEntryKeyboard.setEnterKeyResources(android.content.res.Resources, int, int, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.widget.OppoPasswordEntryKeyboard.setEnterKeyResources(android.content.res.Resources, int, int, int):void\");\n }", "title": "" }, { "docid": "a830ed8b21ca685a72c9acf3ca7a4684", "score": "0.4391941", "text": "private ResourceService() {\n\t\t// TODO check if this line is necessary\n//\t\tcl = this.getClass().getClassLoader();\n\t\tIMAGE_ICON_ARROW_DOWN = getResourceImages(\"arrow.png\");\n\t\tIMAGE_ICON_ADD_GREEN = getResourceImages(\"add_green.png\");\n\t\tIMAGE_ICON_REMOVE_RED = getResourceImages(\"minus_red.png\");\n\t\tIMAGE_ICON_FILTER = getResourceImages(\"filter.png\");\n\t\tIMAGE_ICON_HELP = getResourceImages(\"help.png\");\n\t}", "title": "" }, { "docid": "fc13c03f65d11bb976014ba4519cb09b", "score": "0.43889374", "text": "public abstract void addResource(AMResource resource);", "title": "" }, { "docid": "c4613cf5d17b86a4400fc9afa5f0cb6f", "score": "0.4388239", "text": "private boolean checkRequiredExtensions(GL2 gl) {\r\n\t\tthis.error = false;\r\n\t\t// String extensions = gl.glGetString(GL2.GL_EXTENSIONS);\r\n\t\tif (!gl.isExtensionAvailable(\"GL_ARB_multitexture\")) {\r\n\r\n\t\t\t// JOptionPane.showMessageDialog(null,\r\n\t\t\t// \"GL_ARB_vertex_buffer_object extension not available\",\r\n\t\t\t// \"Unavailable extension\", JOptionPane.ERROR_MESSAGE);\r\n\r\n\t\t\t// Check if the extension ARB_multitexture is supported by the\r\n\t\t\t// Graphic card\r\n\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\t\"GL_ARB_multitexture OpenGL extension is not supported. Install correct graphic drivers!\",\r\n\t\t\t\t\t\t\t\"Extension not supported\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tthis.error = true;\r\n\r\n\t\t\tif (this.closeEvent != null) {\r\n\t\t\t\tthis.closeEvent.closeAction();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.error;\r\n\t}", "title": "" }, { "docid": "bc2e91e1a3168e09a9c616faf9ddcf43", "score": "0.43765563", "text": "public void testGetResource() {\n\n\t\t// Record basic meta-data\n\t\tthis.record_basicMetaData();\n\n\t\t// Obtain path\n\t\tfinal String objectPath = Object.class.getName().replace('.', '/') + \".class\";\n\n\t\t// Attempt to load\n\t\tthis.loadHttpSecurityType(true, new Init() {\n\t\t\t@Override\n\t\t\tpublic void init(HttpSecuritySourceContext context) {\n\t\t\t\tassertEquals(\"Incorrect resource locator\",\n\t\t\t\t\t\tLoadHttpSecurityTypeTest.class.getClassLoader().getResource(objectPath),\n\t\t\t\t\t\tcontext.getClassLoader().getResource(objectPath));\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "b8acfda79b86c003faf5682137c048c5", "score": "0.43734735", "text": "String getExtendableResourceName( String strIdExtendableResource, String strExtendableResourceType );", "title": "" }, { "docid": "d86d9943676abcf2a66fcc4c1a444c91", "score": "0.4372375", "text": "private void makeSureNameIsValid(final Connection conn, String name) throws Exception {\n PreparedStatement stmt1 = null;\n try {\n String sql = \"select 1 from HA_CUSTOM_PROGRAM where is_template = 1 and name = ?\";\n stmt1 = conn.prepareStatement(sql);\n stmt1.setString(1, name);\n ResultSet rs = stmt1.executeQuery();\n if (rs.first())\n throw new CmException(\"Name is invalid. Custom program name '\" + name + \"' is a template name.\");\n } finally {\n SqlUtilities.releaseResources(null, stmt1, null);\n }\n }", "title": "" }, { "docid": "08e40932d40f816c47fa763433f5fa2a", "score": "0.4370692", "text": "protected EmbeddedXtextResource createResource() {\n \t\tXtextResourceSet set = resourceSetProvider.get();\n \t\tResourceSet resourceSet = set;\n \t\t// XtextResource result = (XtextResource) resourceSet.createResource(\n \t\t// URI.createURI(fGrammarAccess.getGrammar().getName() + \".\" +\n \t\t// fFileExtension));\n \t\tEmbeddedXtextResource result = (EmbeddedXtextResource) fEmbeddedXtextResourceProvider\n \t\t\t\t.get();\n \t\tresult.setURI(URI.createURI(fGrammarAccess.getGrammar().getName() + \".\"\n \t\t\t\t+ fFileExtension));\n \t\tresourceSet.getResources().add(result);\n \t\treturn result;\n \t}", "title": "" }, { "docid": "505d28c6637433d915a2241e09c16412", "score": "0.43622997", "text": "protected abstract void createResource();", "title": "" }, { "docid": "ebbf10ce0e3afd110b1c3e3f4742703d", "score": "0.43622404", "text": "private AudioClip loadResource(String name) {\n\t\tURL url=null;\n\t\turl = getClass().getResource(name);\n\t\treturn Applet.newAudioClip(url);\n\t}", "title": "" }, { "docid": "712f74c24ddb5629ec79a4635ab5cdf7", "score": "0.4357567", "text": "private static void loadResources(IResourcePack param0, String[] param1, Map param2) {\n }", "title": "" }, { "docid": "28d9807c2237e3ea7a0268d7a3a032c9", "score": "0.43550864", "text": "ResourceProvider getResourceProvider();", "title": "" }, { "docid": "0b9471457cfa64ed785af63359f02246", "score": "0.4354464", "text": "private void createManifest() {\n\t\texportNew(new File(\"release_automation/MANIFEST_template.mf\"), new File(\"src/META-INF/MANIFEST.MF\"));\n\t}", "title": "" }, { "docid": "24cb3ff6fefc0c07bb7d00c73aa05f8f", "score": "0.43527296", "text": "public interface Resources\n extends Buffer.Resources, CursorView.Resources, SelectionLineRenderer.Resources, ParenMatchHighlighter.Resources {\n @Source({\"Editor.css\", \"com/codenvy/ide/api/ui/style.css\"})\n Css workspaceEditorCss();\n\n @Source(\"squiggle.gif\")\n ImageResource squiggle();\n\n @Source(\"squiggle-warning.png\")\n ImageResource squiggleWarning();\n\n @Source(\"image-viewer-bg.png\")\n ImageResource imageViewerBackground();\n }", "title": "" }, { "docid": "765b790bbf3dd5b16942ed93c6f9ec49", "score": "0.43453395", "text": "@Test\r\n\tpublic void shouldAssertResourcesAndMethods() throws CoreException {\n\t\tfinal Collection<IJaxrsResource> resources = metamodel.findAllResources();\r\n\t\tAssert.assertEquals(7, resources.size());\r\n\t\tfor (IJaxrsResource jaxrsResource : resources) {\r\n\t\t\tassertThat(((JaxrsResource) jaxrsResource).getJavaElement(), notNullValue());\r\n\t\t\tassertThat(((JaxrsResource) jaxrsResource).getElementKind().getCategory(), equalTo(EnumElementCategory.RESOURCE));\r\n\t\t\tassertThat(jaxrsResource.getAllMethods().size(), greaterThan(0));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "30b731fc5970760fdc13546846d46299", "score": "0.43445015", "text": "private void bindResourceReferences(Context subContext, Vector<String> warnings) {\n for (int k = 0; resourceRefs != null && k < resourceRefs.length; k++) {\n String resRefName = resourceRefs[k].getResRefName() != null ? resourceRefs[k].getResRefName().get_value() : null;\n\n String resourceType = null;\n if (resourceRefs[k].getResType() != null) {\n resourceType = resourceRefs[k].getResType().get_value();\n } else if (resourceRefs[k].getInjectionTarget() != null) {\n InjectionTargetType[] injectionTargets = resourceRefs[k].getInjectionTarget();\n for (int j = 0; j < injectionTargets.length; j++) {\n Injector injector = createInjector(applicationClassLoader, injectionTargets[j]);\n resourceType = injector.getTargetType();\n break;\n }\n }\n\n com.sap.engine.lib.descriptors.webj2eeengine.ResourceRefType addResRef = addResourceRefs[k];\n String resourceName = (addResRef != null && addResRef.getResLink() != null) ? addResRef.getResLink() : null;\n if (resourceName == null) {\n //use mapped name from the standard descriptor\n resourceName = (resourceRefs[k].getMappedName() != null) ? resourceRefs[k].getMappedName().get_value() : null;\n }\n\n if (resourceType != null) {\n //used for injection\n ObjectFactory factory = null;\n if (resourceType.equals(\"org.omg.CORBA_2_3.ORB\")) {\n //used for injection\n factory = new CachingJNDIObjectFactory(\"/java:comp/ORB\");\n } else if (resourceType.equals(\"javax.mail.Session\")) { //mail connection\n try {\n //used for injection\n factory = new CachingJNDIObjectFactory(\"/java:comp/env/\" + resRefName);\n\n //bind resource\n NamingUtils.bind(subContext, aliasForDirectory + \"/java:comp/env/\" + resRefName,\n new Reference(\"java:comp/env/mail/MailSession\", JAVAMAIL_SESSION_OBJECT_FACTORY, \"\"));\n } catch (NamingException e) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.CANNOT_BIND_RESOURCE_REFERENCE, new Object[]{resRefName, aliasName, e.toString()}).toString());\n }\n } else if (resourceType.equals(\"java.net.URL\")) { //URL\n try {\n if (resourceName != null) {\n //used for injection\n factory = new CachingJNDIObjectFactory(\"/java:comp/env/\" + resRefName);\n\n //bind resource\n NamingUtils.bind(subContext, aliasForDirectory + \"/java:comp/env/\" + resRefName,\n new URL(resourceName));\n }\n } catch (MalformedURLException muex) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.RESOURCE_IN_WEB_APPLICATION_WILL_NOT_BE_USED_REASON_IS,\n new Object[]{resRefName, aliasName, muex.toString()}).toString());\n } catch (NamingException e) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.CANNOT_BIND_RESOURCE_REFERENCE, new Object[]{resRefName, aliasName, e.toString()}).toString());\n }\n } else if (resourceType.equals(\"javax.xml.ws.WebServiceContext\")) { //@Resource WebServiceContext\n //used for injection\n ReferenceObjectFactory factory1 = null;\n ClassLoader factoryLoader = ServiceContext.getServiceContext().getLoadContext().getClassLoader(LIBRARY_WEBSERVICES_LOADER);\n Reference ref = null;\n try {\n factory1 = new ReferenceObjectFactory(resourceType, WEBSERVICE_CONTEXT_OBJECT_FACTORY, LIBRARY_WEBSERVICES_LOADER, factoryLoader);\n } catch (InjectionException e) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.ERROR_OCCURRED_DURING_FACTORY_INITIALIZATION_FOR_INJECTION, new Object[]{aliasName, e.toString()}).toString());\n }\n if (factory1 != null) {\n ref = factory1.getReference();\n } else {\n ref = new Reference(resourceType, WEBSERVICE_CONTEXT_OBJECT_FACTORY, LIBRARY_WEBSERVICES_LOADER);\n }\n try {\n //used for injection\n factory = factory1;\n\n //bind resource\n NamingUtils.bind(subContext, aliasForDirectory + \"/java:comp/env/\" + resRefName, ref);\n } catch (NamingException e) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.CANNOT_BIND_RESOURCE_REFERENCE, new Object[]{resRefName, aliasName, e.toString()}).toString());\n }\n } else if (resourceType.equals(\"javax.transaction.TransactionSynchronizationRegistry\")) {\n \t/*\n \t * The TransactionSynchronizationRegistry is not a resource adapter, that's why it cannot\n \t * be processed by the ReferenceObjectFactory.RESOURCE_OBJECT_FACTORY, which can process\n \t * only references for resource adapters. (see JavaEE 5, EE.5.10, CSN 1414830 2007).\n \t * The object is bound to /java:comp/TransactionSynchronizationRegistry by the connector service.\n \t */\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (resourceName == null || resourceName.length() == 0) {\n\t\t\t\t\t\t\tresourceName = resRefName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// used for injection - look up the object from root - it is bound there by the connector service\n\t\t\t\t\t\tfactory = new CachingJNDIObjectFactory(\n\t\t\t\t\t\t\t\t\"/java:comp/TransactionSynchronizationRegistry\");\n\n\t\t\t\t\t\tReference ref = new Reference(\"java:comp/TransactionSynchronizationRegistry\", COMPONENT_OBJECT_FACTORY, \"\");\n\t\t\t\t\t\tref.add(new StringRefAddr(RES_TYPE, resourceType));\n\t\t\t\t\t\tref.add(new StringRefAddr(RES_NAME, resourceName));\n\n\t\t\t\t\t\t// bind resource also in the web component's subcontext\n\t\t\t\t\t\tNamingUtils.bind(subContext, aliasForDirectory + \"/java:comp/TransactionSynchronizationRegistry\", ref);\n\t\t\t\t\t} catch (NamingException e) {\n\t\t\t\t\t\twarnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n\t\t\t\t\t\t\t\tWebWarningException.CANNOT_BIND_RESOURCE_REFERENCE, new Object[] { resRefName, aliasName, e.toString() }).toString());\n\t\t\t\t\t}\n } else {\n \t//all other resources\n if (resourceName == null || resourceName.length() == 0) {\n resourceName = resRefName;\n }\n\n //used for injection\n ReferenceObjectFactory factory1 = null;\n ClassLoader factoryLoader = ServiceContext.getServiceContext().getLoadContext().getClassLoader(SERVICE_CONNECTOR_LOADER);\n Reference ref = null;\n\n try {\n factory1 = new ReferenceObjectFactory(resourceType, RESOURCE_OBJECT_FACTORY, SERVICE_CONNECTOR_LOADER, factoryLoader);\n } catch (InjectionException e) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.ERROR_OCCURRED_DURING_FACTORY_INITIALIZATION_FOR_INJECTION, new Object[]{aliasName, e.toString()}).toString());\n }\n if (factory1 != null) {\n ref = factory1.getReference();\n } else {\n ref = new Reference(resourceType, RESOURCE_OBJECT_FACTORY, SERVICE_CONNECTOR_LOADER);\n }\n\n ref.add(new StringRefAddr(RES_TYPE, resourceType));\n ref.add(new StringRefAddr(RES_NAME, resourceName));\n\n if (resourceRefs[k].getResAuth() != null && resourceRefs[k].getResAuth().get_value() != null && resourceRefs[k].getResAuth().get_value().equalsIgnoreCase(CONTAINER_AUTH)) {\n ref.add(new StringRefAddr(RES_AUTH, CONTAINER_AUTH));\n } else {\n ref.add(new StringRefAddr(RES_AUTH, APPLICATION_AUTH));\n }\n\n if (resourceRefs[k].getResSharingScope() != null && resourceRefs[k].getResSharingScope().get_value() != null && resourceRefs[k].getResSharingScope().get_value().equalsIgnoreCase(RESOURCE_UNSHAREABLE)) {\n ref.add(new StringRefAddr(SHARING_SCOPE, RESOURCE_UNSHAREABLE));\n } else {\n ref.add(new StringRefAddr(SHARING_SCOPE, RESOURCE_SHAREABLE));\n }\n\n if (addResRef != null && addResRef.getNonTransactional() != null) {\n ref.add(new StringRefAddr(TX_SUPPORT, \"false\")); //by default transactional\n }\n\n try {\n //used for injection\n factory = factory1;\n\n //bind resource\n NamingUtils.bind(subContext, aliasForDirectory + \"/java:comp/env/\" + resRefName, ref);\n } catch (NamingException e) {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.CANNOT_BIND_RESOURCE_REFERENCE, new Object[]{resRefName, aliasName, e.toString()}).toString());\n }\n }\n\n if (factory != null) {\n createInjections(applicationClassLoader, resourceRefs[k].getInjectionTarget(), factory);\n }\n } else {\n warnings.add(new LocalizableTextFormatter(WebResourceAccessor.getResourceAccessor(),\n WebWarningException.CANNOT_BIND_RESOURCE_REFERENCE, new Object[]{resRefName, aliasName, \"Resource type is missing.\"}).toString());\n }\n }\n }", "title": "" }, { "docid": "4efd6fb5566e57aeec51e707ba768622", "score": "0.4343396", "text": "static public boolean isModuleIdxAvailable(Vector<String> esn_data, int module_idx)\r\n\t{\r\n\t\tint i;\r\n\t\tString tmp_str;\r\n\t\tString module_suffix;//module suffix which is added to its saved parts\r\n\t\tint idx_substring;\r\n\t\tint idx_name;//index of the 1st title string with a part of the module\r\n\t\tboolean is_available;//output variable\r\n\t\t\r\n\t\tmodule_suffix = \"_MODULE_\" + module_idx;\r\n\t\tidx_name = -1;\r\n\t\tfor(i=0; i<esn_data.size() && idx_name==-1; i++)\r\n\t\t{\r\n\t\t\ttmp_str = esn_data.get(i);\r\n\t\t\tidx_substring = tmp_str.indexOf(module_suffix);\r\n\t\t\tif(idx_substring!=-1)\r\n\t\t\t{\r\n\t\t\t\tidx_name = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(idx_name!=-1)\r\n\t\t{\r\n\t\t\tis_available = true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tis_available = false;\r\n\t\t}\r\n\t\t\r\n\t\treturn is_available;\r\n\t}", "title": "" }, { "docid": "fa36b17d2a441a38a9ba8b84f3153fa9", "score": "0.43381077", "text": "public abstract InputStream getResourceAsStream(String name);", "title": "" }, { "docid": "8b1519f7df0b995a11e42bdccece1c9f", "score": "0.43361044", "text": "boolean hasSourceManifestid();", "title": "" }, { "docid": "38af9cc8adaf8631b15c9089993d0ef3", "score": "0.43360594", "text": "abstract boolean initialize(Surface surface) throws OutOfResourcesException;", "title": "" } ]
1c7b1ba842af1c173b2f9f56fc337a27
by default, all test values will be based on US metrics (pounds, feet, etc.). A conversion method is provided to convert to SI units / test case values for nutrition stats screen
[ { "docid": "65b5dc50d0b271fecd1d28b4e3eeee44", "score": "0.0", "text": "public static double getUserCurrWeight() {\r\n return UserCurrWeight;\r\n }", "title": "" } ]
[ { "docid": "1063e68f0c9f14f4981d69b9f922fe73", "score": "0.6648162", "text": "@Test\n public void givenTwelveFeetAndOneInch_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 12.0);\n double value2 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "9182944b23cc134e7460f316f424cfb0", "score": "0.6509212", "text": "@Test\n public void givenOneFeetAndTwelveInch_ShouldReturnTrue() {\n double inchValue = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n Assert.assertEquals(12, inchValue, 0.0);\n }", "title": "" }, { "docid": "837e92f8c0fabf52ed080391dac50d8d", "score": "0.64708626", "text": "@Test\n public void givenOneFeetAndTwoInch_WhenAdded_ShouldReturnFourteenInch() {\n double value1 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.INCH, 2.0);\n Assert.assertEquals(14,value1 + value2, 0.0);\n }", "title": "" }, { "docid": "d2177e7e0360541ad305b1430cb3b66f", "score": "0.64082056", "text": "@Override\n public double convertTo(Unit targetUnit){\n int fromType = (this.getFactor() == 100)? 0 : 1;\n int toType = (targetUnit.getFactor() == 100)? 0 : 1;\n\n if (fromType == toType) {\n Log.d(\"FuelUnitConvertion\", \"SAME TYPE\");\n return convertToSameType(this.getValue(), this.getFactor(), targetUnit.getFactor());\n } else if (fromType < toType) {\n // From L/100km\n double toKmPL = 100/this.getValue();\n Log.d(\"FuelUnitConvertion\", \"1.convert to km/L = \" + toKmPL);\n return convertToSameType(toKmPL, 1, targetUnit.getFactor());\n } else {\n // To L/100km\n double toKmPL = convertToSameType(this.getValue(), this.getFactor(), 1);\n Log.d(\"FuelUnitConvertion\", \"2.convert to km/L = \" + toKmPL);\n return 100/toKmPL;\n }\n }", "title": "" }, { "docid": "6de76d68dfe9309bbd458748ce993e48", "score": "0.6367727", "text": "public interface Units {\n\t/**\n\t * Indicate capacitance values with \"F\"\n\t */\n\tString CAPACITANCE = \"F\";\n\t/**\n\t * Indicate current values with \"A\"\n\t */\n\tString CURRENT = \"A\";\n\t/**\n\t * Indicate inductance values with \"H\"\n\t */\n\tString INDUCTANCE = \"H\";\n\t/**\n\t * Indicate power units with \"W\"\n\t */\n\tString POWER = \"W\";\n\t/**\n\t * Indicate resistance values with the Greek capital omega (ohm) symbol.\n\t */\n\tString RESISTANCE = \"\\u03A9\";\n\t/**\n\t * Indicate voltage values with \"V\"\n\t */\n\tString VOLTAGE = \"V\";\n\n\t/**\n\t * 20% tolerance\n\t */\n\tdouble TOL_20P = 0.2;\n\t/**\n\t * 10% tolerance\n\t */\n\tdouble TOL_10P = 0.1;\n\t/**\n\t * 5% tolerance, fairly common\n\t */\n\tdouble TOL_5P = 0.05;\n\t/**\n\t * 2% tolerance\n\t */\n\tdouble TOL_2P = 0.02;\n\t/**\n\t * 1% tolerance\n\t */\n\tdouble TOL_1P = 0.01;\n\t/**\n\t * 0.1% tolerance\n\t */\n\tdouble TOL_P1 = 0.001;\n\n\t/**\n\t * 1 / pi\n\t */\n\tdouble PI_INV = 1.0 / Math.PI;\n\t/**\n\t * The impedance of free space divided by pi\n\t */\n\tdouble Z_0 = 119.9169832;\n}", "title": "" }, { "docid": "083a581e39ac7b6bb960841dffe2adbe", "score": "0.6310908", "text": "String getUnits();", "title": "" }, { "docid": "38848151285f8f74844bd37752d24d77", "score": "0.6264538", "text": "java.lang.String getUnitOfMeasure();", "title": "" }, { "docid": "38848151285f8f74844bd37752d24d77", "score": "0.6264538", "text": "java.lang.String getUnitOfMeasure();", "title": "" }, { "docid": "38848151285f8f74844bd37752d24d77", "score": "0.6264538", "text": "java.lang.String getUnitOfMeasure();", "title": "" }, { "docid": "2395b1b360748b13a61ef2f685ffdeed", "score": "0.62452507", "text": "public void convert() {\n mile = kilometer / 1.6; \n }", "title": "" }, { "docid": "63de908d74a9348b6e54d4f1c74cf5db", "score": "0.6243982", "text": "@Test\n public void giveZeroInchAndZeroFeet_WhenZero_ShouldReturnTrue() {\n double inchValue = quantityMeasurement.unitConversion(Units.INCH, 0.0);\n double feetValue = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 0.0);\n Assert.assertEquals(feetValue, inchValue, 0.0);\n }", "title": "" }, { "docid": "ae6172b49a28f6bae33f22fbe3c2cd3f", "score": "0.62105364", "text": "@Test\n public void testUsdConversionTextRoundsUp() {\n final Config config = ConfigFactory.configForUSUser();\n final Environment environment = environment();\n environment.currentConfig().config(config);\n final RewardViewModel vm = new RewardViewModel(environment);\n\n // Set project's country to CA and reward minimum to $0.30.\n final Project project = ProjectFactory.caProject();\n final Reward reward = RewardFactory.reward().toBuilder().minimum(0.3f).build();\n\n final TestSubscriber<String> usdConversionTextViewText = TestSubscriber.create();\n vm.outputs.usdConversionTextViewText().subscribe(usdConversionTextViewText);\n\n // USD conversion should be rounded up.\n vm.inputs.projectAndReward(project, reward);\n usdConversionTextViewText.assertValue(\"$1\");\n }", "title": "" }, { "docid": "836bf34380299659481292478d678138", "score": "0.61917514", "text": "@Test\n public void givenThirtySixInchAndOneYard_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 36.0);\n double value2 = quantityMeasurement.unitConversion(Units.YARD_TO_INCH, 1.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "ab2dd7b8d77cf1dbef2d78b92c03986f", "score": "0.6190374", "text": "@Test\n public void givenOneYardAndThirtySixInch_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.YARD_TO_INCH, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.INCH, 36.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "cae583c9accdc4409ca918ffbfa2c6c2", "score": "0.61732733", "text": "@Test\n public void givenTwoInchAndFiveCentimeter_WhenCompare_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 2.0);\n double value2 = quantityMeasurement.unitConversion(Units.CM_TO_INCH, 5.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "b0aa7ffdae62c8c98018998690a25e07", "score": "0.6121552", "text": "@Test\n public void givenTwoHundredAndTwelveFahrenheitAndHundredCelsiusValue_WhenCompare_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.FAHRENHEIT_TO_CELSIUS, 212.0);\n double value2 = quantityMeasurement.unitConversion(Units.CELSIUS, 100.0);\n Assert.assertEquals(value1,value2, 0.0);\n }", "title": "" }, { "docid": "3bdcda386345073397969ed444e2fa7e", "score": "0.61091566", "text": "@Test\n public void givenOneYardAndThreeFeet_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.YARD_TO_INCH, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 3.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "22c862b5a067d5b02db636b2f3b5bf13", "score": "0.6094955", "text": "@Test\n public void givenThreeFeetAndOneYard_WhenCompare_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 3.0);\n double value2 = quantityMeasurement.unitConversion(Units.YARD_TO_INCH, 1.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "e0ee0988d6dc56ca7b466b34d397bd78", "score": "0.6088158", "text": "public void testTestMetric() {\n final String metricName = \"Churn_percent\";\n final MetricsService service = new MetricsService();\n service.testMetric(metricName);\n }", "title": "" }, { "docid": "68d314ac1db21c75a992401aaa29c68b", "score": "0.60478324", "text": "@Test\n public void givenTwoInchAndTwoInch_WhenAdded_ShouldReturnFourInch() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 2.0);\n double value2 = quantityMeasurement.unitConversion(Units.INCH, 2.0);\n Assert.assertEquals(4,value1 + value2, 0.0);\n }", "title": "" }, { "docid": "3dc4ef6c622314a952e1d796375af8c4", "score": "0.60133404", "text": "@Test\n public void givenTwoEqualInchValues_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.INCH, 1.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "29913b19a3c2a23ea609f0efae6a6d58", "score": "0.5996214", "text": "public static void main(String[] args) throws Exception {\n String outputUnit = \"\";\n double finalValue = 0.0;\n String inputUnit = \"\";\n short inputValue = 0;\n do {\n // Defining a scanner for taking inputs from user\n Scanner inputScannerValue = new Scanner(System.in);\n\n System.out.println(\"Enter an Integer value to convert: \");\n\n // assigning the input from the user to the double variable\n inputValue = inputScannerValue.nextShort();\n\n // skipping the next line due to nextDouble\n inputScannerValue.nextLine();\n\n // printing the message for users input measurement unit type\n System.out.println(\"Enter the current unit of measure: \");\n\n // assigning the input value to a string variable\n inputUnit = inputScannerValue.next();\n\n // using if else we check the inputunit of user and compare with standard units\n // the\n // code can accept\n \n if (inputUnit.equals(\"km\")) {\n finalValue = inputValue * 0.62;\n outputUnit = \"mi\";\n } else if (inputUnit.equals(\"mi\")) {\n finalValue = inputValue * 1.61;\n outputUnit = \"km\";\n } else if (inputUnit.equals(\"cm\")) {\n finalValue = inputValue * 0.39;\n outputUnit = \"in\";\n } else if (inputUnit.equals(\"in\")) {\n finalValue = inputValue * 2.54;\n outputUnit = \"cm\";\n } else if (inputUnit.equals(\"kg\")) {\n finalValue = inputValue * 2.2;\n outputUnit = \"lb\";\n } else if (inputUnit.equals(\"lb\")) {\n finalValue = inputValue * 0.45;\n outputUnit = \"kg\";\n } else if (inputUnit.equals(\"g\")) {\n finalValue = inputValue * 0.4;\n outputUnit = \"oz\";\n } else if (inputUnit.equals(\"oz\")) {\n finalValue = inputValue * 28.35;\n outputUnit = \"g\";\n } else if (inputUnit.equals(\"C\") || inputUnit.equals(\"c\")) {\n finalValue = ((inputValue * 9) / 5) + 32;\n outputUnit = \"F\";\n } else if (inputUnit.equals(\"F\") || inputUnit.equals(\"f\")) {\n finalValue = (inputValue - 32) * 5 / 9;\n outputUnit = \"C\";\n } else if (inputUnit.equals(\"L\") || inputUnit.equals(\"l\")) {\n finalValue = inputValue * 4.17;\n outputUnit = \"cups\";\n } else if (inputUnit.equals(\"cup\")) {\n finalValue = inputValue * 0.24;\n outputUnit = \"L\";\n } else {\n // If input unit is not availabe then printing error message\n System.out.println(\"InputUnit error!\");\n break;\n }\n\n // Printing the output of the calculation\n System.out.println(inputValue + inputUnit + \" is equal to \" + finalValue + outputUnit);\n // printing a new line to give space between lines\n System.out.println(\"\\n\");\n\n }\n // checking for condition\n // finalValue must not be 0 and inputValue must not be 0\n // otherwise the looping will break and program will stop\n while (inputValue != 0 && outputUnit != \"\");\n // printing the error if user enters 0 in input or finalValue is 0\n System.out.println(\"The unit is not available or input value 0 is not acceptable!\");\n }", "title": "" }, { "docid": "6144e87838e393c4b30e6ef2c43e2940", "score": "0.59956044", "text": "@Test\n public void givenOneFeetAndOneFeet_WhenAdded_ShouldReturnTwentyFourInch() {\n double value1 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n Assert.assertEquals(24,value1 + value2, 0.0);\n }", "title": "" }, { "docid": "db0cba39667e0a7cacd2b597ed816f10", "score": "0.59713316", "text": "@Test\n public void testToString() {\n assertEquals(\"To see if i could use decimal-numbers\",17.5, testStrength.weightsInKg, .01);\n }", "title": "" }, { "docid": "74c5bf8f48346b61e88d96ec713b7659", "score": "0.5912494", "text": "@Test\n public void givenTwoInchAndTwoAndHalfCentimeter_WhenAdded_ShouldReturnThreeInch() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 2.0);\n double value2 = quantityMeasurement.unitConversion(Units.CM_TO_INCH, 2.5);\n Assert.assertEquals(3,value1 + value2, 0.0);\n }", "title": "" }, { "docid": "02b0264f0f8ceb2bdad99ec65f8dd17d", "score": "0.5886098", "text": "@Test\n public void testC16() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_16);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"496000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "3553c6b6412a2ca310d7e83dcb1d45e2", "score": "0.587875", "text": "@Test\n public void givenZeroInchAndZeroInchValue_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.INCH, 0.0);\n double value2 = quantityMeasurement.unitConversion(Units.INCH, 0.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "3d577373f9cd5cfb35a95ed0186f0d6e", "score": "0.58650625", "text": "@Test\n public void testC18() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_18);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"600000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "5877ba15ab966a2e073f09a166a15720", "score": "0.58611333", "text": "@Test\n public void givenTwoEqualFeetValues_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "b1ee817fb63076a85e45ad0cd7d1bb87", "score": "0.5859418", "text": "@Test\n public void testC237() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_14);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"12600000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "a58b71a7585542113aee463550d33256", "score": "0.5854375", "text": "@Test\n public void testC326() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_13, S_IRV_14);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"31919900\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "d3f0c1d29d0ed648aeb0a61d75dbda0a", "score": "0.58539325", "text": "@Test\n public void testC236() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_13);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"280000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "cb4f1170894261c18d6e98d2afa7eee4", "score": "0.585292", "text": "@Test\n public void testC17() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_17);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"470000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "9da9e8c924ad495252531c4de457bbbc", "score": "0.5844726", "text": "@Test\n public void testC316() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_18);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"3652989\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "42f1c2ad10c8ad3397a628ba632c5371", "score": "0.5843161", "text": "String getUnit();", "title": "" }, { "docid": "cc077872c6f044aa951ddfffad5a7926", "score": "0.58279485", "text": "@Test\n\tpublic void testC2KConversion() {\n\t\tTemperature input = new Temperature(20.5, TemperatureUnit.CELCIUS);\n\t\tTemperature output = TemperatureConverter.convert(input, TemperatureUnit.KELVIN);\n\t\tTemperature expected = new Temperature(293.65, TemperatureUnit.KELVIN);\n\t\tassertValues(output, expected);\n\t}", "title": "" }, { "docid": "03d98126b0b69a716292754a0642dbc9", "score": "0.58277404", "text": "@Test\n public void givenOneTonneAndOneThousandGrams_WhenAdded_ShouldReturnOneThousandOneKilograms() {\n double value1 = quantityMeasurement.unitConversion(Units.TONNE_TO_KILOGRAM, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.GRAMS_TO_KILOGRAM, 1000.0);\n Assert.assertEquals(1001, value1 + value2, 0.0);\n }", "title": "" }, { "docid": "a845e038048b7c5ff3c5c306c9b023af", "score": "0.58205295", "text": "@Test\n\tpublic void testF2KConversion() {\n\t\tTemperature input = new Temperature(32, TemperatureUnit.FAHRENHEIT);\n\t\tTemperature output = TemperatureConverter.convert(input, TemperatureUnit.KELVIN);\n\t\tTemperature expected = new Temperature(273.15, TemperatureUnit.KELVIN);\n\t\tassertValues(output, expected);\n\t}", "title": "" }, { "docid": "110781ef57ade0de81289a39021d85c4", "score": "0.5812289", "text": "@Test\n public void testC239() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_16);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"280000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "659ae91128361b0e934388cd34e4fde9", "score": "0.5809827", "text": "@Test\n public void testC328() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_2, S_IRV_15, S_IRV_17);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"21749820\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "6eda7128472a97e875ca8f3d601d982e", "score": "0.5799294", "text": "@Test\n public void testC279() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_24, S_CM_25);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"309378409\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "c69ff35ae64b30e6ea403867eb8d90b5", "score": "0.5797135", "text": "@Test\n public void givenOneTonneAndOneThousandKilograms_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.TONNE_TO_KILOGRAM, 1.0);\n double value2 = quantityMeasurement.unitConversion(Units.KILOGRAM, 1000.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "c3b676bf93cca2f9ca930d4ae481452e", "score": "0.5796011", "text": "@Test\n\tpublic void testK2FConversion() {\n\t\tTemperature input = new Temperature(273.15, TemperatureUnit.KELVIN);\n\t\tTemperature output = TemperatureConverter.convert(input, TemperatureUnit.FAHRENHEIT);\n\t\tTemperature expected = new Temperature(32, TemperatureUnit.FAHRENHEIT);\n\t\tassertValues(output, expected);\n\t}", "title": "" }, { "docid": "0bb08fd7edeb0417bb88031915c02dec", "score": "0.5792444", "text": "@Test\n public void testC273() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_11, S_CM_12);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"15582248362\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "1768ef11f5d51fa8e35ede905d35e03c", "score": "0.57855415", "text": "public String getUnit();", "title": "" }, { "docid": "fa60f0abda19b5aff5cc4e71d6d47138", "score": "0.5782196", "text": "java.lang.String getUnit();", "title": "" }, { "docid": "fa60f0abda19b5aff5cc4e71d6d47138", "score": "0.5782196", "text": "java.lang.String getUnit();", "title": "" }, { "docid": "1b7f2c68b9508dcc0f9caf3cc6c655b1", "score": "0.57800084", "text": "@Test\n public void testC217() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_1, S_EQ_3, S_EQ_5, S_EQ_13, S_EQ_15, S_EQ_17);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"193419337\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "672d2ab28415667b11ecdd4d1c14775a", "score": "0.57795846", "text": "@Test\n public void testC332() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"1672720924\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "6fc6ced7147772b01de271797e48e1de", "score": "0.5774337", "text": "@Test\n public void testC23() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_23);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"42000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "b7b5c5bbe4637fb5dc64112ec756b286", "score": "0.57719606", "text": "@Test\n public void testC233() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_10);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"24000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "e3cbc6be09ef3159bb4bcbe6f56738f4", "score": "0.57617986", "text": "@Test\n public void testC187() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_23);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"17000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "5aab98faacb9289ffeead498c16b7a7e", "score": "0.5754167", "text": "@Test\n\tpublic void testK2CConversion() {\n\t\tTemperature input = new Temperature(293.65, TemperatureUnit.KELVIN);\n\t\tTemperature output = TemperatureConverter.convert(input, TemperatureUnit.CELCIUS);\n\t\tTemperature expected = new Temperature(20.5, TemperatureUnit.CELCIUS);\n\t\tassertValues(output, expected);\n\t}", "title": "" }, { "docid": "3862c00f8d286249b59ce86536d52802", "score": "0.5750511", "text": "@Test\n public void testC325() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_1, S_IRV_9);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"194982034\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "3bd3c49745921914d44f6eaba57009d6", "score": "0.5750155", "text": "@Test\n public void testC234() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_11);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"15600000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "b3948fb694d0fbf94cfa0868bb8a1a32", "score": "0.57413894", "text": "io.opencannabis.schema.product.struct.testing.TestValue getMeasurement();", "title": "" }, { "docid": "60ad5c73c5400c01c5a4375fa9dd342d", "score": "0.57314783", "text": "@Test\n public void testC181() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_17);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"12000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "027ab5ec991434c6c45d2277c991d540", "score": "0.5729216", "text": "@Test\n public void testC176() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_12);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"42000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "11d115a1ea6840ced85327f2d7f873a3", "score": "0.5727802", "text": "@Test\n public void testC22() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_22);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"20000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "3d75d7c627853bb3a0d09bac9010ff72", "score": "0.5726452", "text": "@Test\n public void testC226() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_3);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"42000000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "194094a713a824598c8221217560e571", "score": "0.57240677", "text": "@Test\n public void testC146() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CRNQ_13);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"640000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "cc35bcb8e29330f7c01047da6a9413b6", "score": "0.5723066", "text": "@Test\n public void testC235() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_12);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"24000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "ac6d919f6201c3b3a4768ad784f9ccfd", "score": "0.57229304", "text": "@Test\n public void testC27() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_27);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"1000000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "e54ee6a035b2672efbe896b47fd63313", "score": "0.57213885", "text": "public static double convert (Double tempIn, String inUnit, String outUnit){\n\r\n Double conversion_factor = 9.0 / 5.0;\r\n int convert_C_F = 32;\r\n Double convert_K_C = 273.15;\r\n\r\n if (inUnit.equals(\"C\") && outUnit.equals(\"F\")){ // Celsius to Farenheit\r\n outTemp = (tempIn * conversion_factor) + convert_C_F;\r\n } \r\n else if (inUnit.equals(\"C\") && outUnit.equals(\"K\")) { //Celsius to Kelvin\r\n outTemp = tempIn + convert_K_C;\r\n }\r\n else if (inUnit.equals(\"F\") && outUnit.equals(\"C\")){ //Farenheit to Celsius\r\n outTemp = (tempIn - convert_C_F) * (1/conversion_factor);\r\n }\r\n else if (inUnit.equals(\"F\") && outUnit.equals(\"K\")){ //Farenheit to Kelvin\r\n outTemp = ((tempIn - convert_C_F) * (1/conversion_factor)) + convert_K_C;\r\n }\r\n else if (inUnit.equals(\"K\") && outUnit.equals(\"C\")){ //Kelvin to Celsius\r\n outTemp = tempIn - convert_K_C;\r\n }\r\n else if (inUnit.equals(\"K\") && outUnit.equals(\"F\")){ //Kelvin to Farenheit\r\n outTemp = ((tempIn - convert_K_C) * conversion_factor) + convert_C_F;\r\n }\r\n return outTemp;\r\n }", "title": "" }, { "docid": "f6b1f9f52a3703526c9757848904b169", "score": "0.57193273", "text": "@Test\n public void testC299() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_1);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"105059779\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "38d69a4bc0379e9adf6bed48fd07000c", "score": "0.57188994", "text": "@Test\n public void testC301() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_3);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"19019926\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "d40c6ae65f85f02323e90c0ef147bb3e", "score": "0.57182455", "text": "@Test\n public void testC126() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CRQ_7, S_CRQ_9, S_CRQ_11, S_CRQ_12, S_CRQ_13, S_CRQ_14);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"95529128\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "31d870c7e6aeb50df3a50ad9daeabde0", "score": "0.5715246", "text": "@Test\n public void testC327() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_2, S_IRV_15);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"17971753\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "6a88587b93d81a5401ced941bdd1d7c1", "score": "0.57115537", "text": "@Test\n public void testC317() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_19);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"2052989\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "1bebd8d332bb8f23073e6f2e695812be", "score": "0.57097983", "text": "@Test\n public void testC106() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CRQ_25);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"2800000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "94bb0eb10f6cb71d196378f1f2d629ec", "score": "0.5703187", "text": "@Test\n\tpublic void testF2CConversion() {\n\t\tTemperature input = new Temperature(68.9, TemperatureUnit.FAHRENHEIT);\n\t\tTemperature output = TemperatureConverter.convert(input, TemperatureUnit.CELCIUS);\n\t\tTemperature expected = new Temperature(20.5, TemperatureUnit.CELCIUS);\n\t\tassertValues(output, expected);\n\t}", "title": "" }, { "docid": "534c61eb619ce53d27292ddb063b35ff", "score": "0.57030076", "text": "@Test\n public void testC421() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CMV_2);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"225185001\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "000805438dcfd1fb09db122b3354f46c", "score": "0.5700351", "text": "@Test\n public void testC228() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_5);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"5760000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "a3954cd9c15f2b5795badc78dbf99838", "score": "0.569779", "text": "@Test\n public void testC282() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_30, S_CM_31);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"1329233238\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "522e196c9df42f76c15c12bd3b11a02e", "score": "0.56973714", "text": "@Test\n public void testC67() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"6483191078\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "96d2a541381ae4ac9d679386250ec236", "score": "0.56972355", "text": "@Test\n public void testC230() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_7);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"190000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "52aef1f5ba43f08c61ff65eba25412e9", "score": "0.56956244", "text": "@Test\n public void testC57() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_6, S_IR_7);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"149429917\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "fa97ee9a5b6d4882b6716d74010145f8", "score": "0.5695237", "text": "@Test\n public void testC287() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_3, S_CM_5);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"36704310374\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "42a5845231b42ba733a37dad9b586f3e", "score": "0.569354", "text": "@Test\n public void testC277() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_20, S_CM_21);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"5989424012\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "be62791b71e0c661bd2a118e8682ff71", "score": "0.56904316", "text": "@Test\n public void givenZeroFeetAndZeroFeetValue_WhenEqual_ShouldReturnTrue() {\n double value1 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 0.0);\n double value2 = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 0.0);\n Assert.assertEquals(value1, value2, 0.0);\n }", "title": "" }, { "docid": "42b41638428cad0ed6e299c7576c3f99", "score": "0.56901544", "text": "@Test\n public void testC329() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_1, S_IRV_2);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"118480332\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "ab8e082f74a25bf111b3f0c9ddbdf888", "score": "0.5687331", "text": "@Test\n public void testC227() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_4);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"20000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "64f829e5af46ccc59f037b6269d509cf", "score": "0.5687322", "text": "@Test\n public void testC115() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CRQ_9, S_CRQ_10);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"7481377\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "4e3f26a8e29ff4eea98044bfbcd23fbc", "score": "0.56862634", "text": "@Test\n public void testC174() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_10);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"38000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "617ae5fd60d4ea0428c9a25823218cbb", "score": "0.56859744", "text": "@Test\n public void givenOneFeetAndOneInch_WhenEqualInLength_ShouldReturnTrue() {\n double feetValue = quantityMeasurement.unitConversion(Units.FEET_TO_INCH, 1.0);\n double inchValue = quantityMeasurement.unitConversion(Units.INCH, 1.0);\n Assert.assertNotEquals(feetValue, inchValue, 0.0);\n }", "title": "" }, { "docid": "cee877c28ec6f9891d7adec578ad2c89", "score": "0.56838244", "text": "@Test\n public void testC323() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_5, S_IRV_5);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"45942557\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "ec0d93e7a8438ba36db653327d3f2a3a", "score": "0.5678151", "text": "@Test\n public void testC186() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_22);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"34000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "cf6bde9bee9701fc319653d072031220", "score": "0.5676721", "text": "@Test\n\tpublic void testC2FConversion() {\n\t\tTemperature input = new Temperature(20.5, TemperatureUnit.CELCIUS);\n\t\tTemperature output = TemperatureConverter.convert(input, TemperatureUnit.FAHRENHEIT);\n\t\tTemperature expected = new Temperature(68.9, TemperatureUnit.FAHRENHEIT);\n\t\tassertValues(output, expected);\n\t}", "title": "" }, { "docid": "35ca52ef6dc108e66479dad0b3f59069", "score": "0.5676405", "text": "@Test\n public void testC319() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_3, S_IRV_3);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"38871160\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "d00a73c3ad0d3b2af732b236c6071c47", "score": "0.56720114", "text": "@Test\n public void testC189() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_25);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"34000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "c0944becbd62a0f932b8183ceb9fe111", "score": "0.56647855", "text": "@Test\n public void testC179() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_15);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"96000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "65ebdcbb0886b695329b3ea9fbb24664", "score": "0.5663955", "text": "@Test\n public void testC201() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_5, S_EQ_6);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"57123375\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "83fad3ef69dbd3faa75a0f4df6330729", "score": "0.5663404", "text": "@Test\n public void testC336() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_FXV_4);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"129597982\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "145a8ab939e6e41ca9cb051bdd3c26b3", "score": "0.5663395", "text": "@Test\n public void testC339() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_FXV_7);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"38879395\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "6e604ef5c0336b9f160c459ecb37fa27", "score": "0.56623673", "text": "@Test\n public void testC109() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CRQ_12, S_CRQ_12);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"223713342\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "016b4d9cf62e7a5e793bf5d8be81268c", "score": "0.56598973", "text": "@Test\n public void testC318() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IRV_1, S_IRV_1, S_IRV_1, S_IRV_1, S_IRV_1);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"593497525\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "52898134627cfdb15c94c1ce79663a84", "score": "0.5659855", "text": "@Test\n public void testC43() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_IR_43);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"99000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "121245fe4fed252d32ffab7e45f394cd", "score": "0.56550026", "text": "@Test\n public void testC423() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CMV_4);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"383486763\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "f917a8a5324db06d4b27ec5c0187bc5b", "score": "0.56512964", "text": "@Test\n public void testC175() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_EQ_11);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"84000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "497346b020ea53f6d5c509b7491e6e02", "score": "0.5650002", "text": "@Test\n public void testC231() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CM_8);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"19000000\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" }, { "docid": "8f68962a09247aa7ca93d0d7498b9347", "score": "0.56494427", "text": "@Test\n public void testC118() {\n List<FixedAmount> fixed = Arrays.asList();\n List<NotionalFactor> factors = Arrays.asList();\n List<Notional> notional = Arrays.asList();\n List<ProductMultiplier> multipliers = Arrays.asList();\n List<Sensitivity> sensitivities = new ArrayList<>();\n\t\taddAnything(sensitivities, S_CRQ_3, S_CRQ_3, S_CRQ_5);\n BigDecimal amount = Simm.calculateTotal(sensitivities, multipliers, factors, notional, fixed, FxRate.USD, HoldingPeriod.TEN_DAY);\n Assert.assertEquals(new BigDecimal(\"56871929\"), amount.setScale(0, RoundingMode.HALF_UP));\n }", "title": "" } ]
43e9407a73752226884ce9c5b815eef7
For internal use. (One could use the nonstatic discharge method instead, but we expect them to be slower.)
[ { "docid": "11a7e14ecd34a920c1945438b80759cd", "score": "0.0", "text": "private static void discharge(final BufferedRunningLengthWord initialWord, final EWAHIterator iterator, final BitmapStorage container)\r\n\t{\r\n\t\tBufferedRunningLengthWord runningLengthWord = initialWord;\r\n\t\tfor (;;)\r\n\t\t{\r\n\t\t\tfinal long runningLength = runningLengthWord.getRunningLength();\r\n\t\t\tcontainer.addStreamOfEmptyWords(runningLengthWord.getRunningBit(), runningLength);\r\n\t\t\tcontainer.addStreamOfLiteralWords(iterator.buffer(), iterator.literalWords() + runningLengthWord.literalWordOffset, runningLengthWord.getNumberOfLiteralWords());\r\n\t\t\tif (!iterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\trunningLengthWord = new BufferedRunningLengthWord(iterator.next());\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "cf50bf1b7c1b042474e2172e421465df", "score": "0.69012237", "text": "private double calcUsageCharge() \n {\n return dataCost * 0.03;\n }", "title": "" }, { "docid": "c33d8cefb20fdb825bcbfe70fb7294b3", "score": "0.6354896", "text": "private void charge() {\n int chargeSpeed = pod.getChargeSpeed();\n\t\tif (this.currentCharge + chargeSpeed >= maxCharge) {\n //charged//fully charged\n\t\t\tthis.currentCharge = maxCharge;\n\t\t}\n else {\n //charging\n\t\t\tthis.currentCharge += chargeSpeed;\n\t\t}\n\t}", "title": "" }, { "docid": "ea364854e14dcaa1776358d5ec7e1d26", "score": "0.6309615", "text": "public void charge()\r\n\t{\r\n\t\tworkingCapacity = startingCapacity;\r\n\t}", "title": "" }, { "docid": "354964a021bf28ffca98986305990359", "score": "0.60874003", "text": "@Test\n public void DroneBatteryDecreased_BatteryClassic()\n {\n Drone drone = getInstance(Drone.class);\n drone.setPoint(ORIGIN);\n Integer remainingPower = 400;\n\n assertEquals(remainingPower, drone.getPower(), 0);\n\n drone.tackOff(); //use 50 power\n remainingPower -= 50;\n\n assertEquals(remainingPower, drone.getPower(), 0);\n\n Point destination = new Point(10d,10d,10d);\n remainingPower -= destination.distanceTo(drone.getCurrentPosition()).intValue() + drone.getWeight();\n drone.flyTo(destination);\n\n assertEquals(remainingPower, drone.getPower(), 0);\n\n drone.landing();\n remainingPower -= 50;\n\n assertEquals(remainingPower, drone.getPower(), 0);\n }", "title": "" }, { "docid": "0bd18c72abd3629fcfd4d64d3bd3c885", "score": "0.59766626", "text": "@Override\n\tpublic int calculateGasolineConsumption(){ \n\t \n\t int result = tankCapacity * (getDisplacement() / 110);\n\t return result;\n\t}", "title": "" }, { "docid": "982197bc576feb36027d38b4351080c3", "score": "0.5926584", "text": "@Override\n\tpublic int calculateBatteryConsumption(){ \n\t \n\t int result = 0;\n\t if(getChargerType() == FAST) \n\t \n\t result = getBatteryLife() * (getDisplacement() / 100);\n\t else\n\t\t result = (getBatteryLife() + 5) * (getDisplacement() / 100);\n\t \n\t return result;\n\t}", "title": "" }, { "docid": "d167c8ce8c41102918ed7744a14dfdd7", "score": "0.59188396", "text": "@Override\n\tpublic int maintenanceCost()\n\t{\n\t\ttry\n\t\t{\n\t\t\tint sum = 0;\n\t\t\tfor(int i = 0; i < this.beds.length; i++)\n\t\t\t{\n\t\t\t\tsum += this.beds[i].getCost();\n\t\t\t}\n\t\t\treturn sum / this.beds.length;\n\t\t}\n\t\tcatch(ArithmeticException e)\n\t\t{\n\t\t\tSystem.out.println(e.toString());\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "1071df6e0644a3ce4c8d8ebf4cf269d9", "score": "0.58685553", "text": "@Override\n public long cost () {\n return 0;\n }", "title": "" }, { "docid": "7b7abf37502e9e2220dca46128334887", "score": "0.58018094", "text": "public static void performChargeback() {\n\n new FieldFormula(\"gp\").addFormula(\"gp.cost\", \"0.0\").addFormula(\"gp.area_chargable\", \"0.0\")\n .addFormula(\"gp.area_comn\", \"0.0\").addFormula(\"gp.area_comn_gp\", \"0.0\").addFormula(\n \"gp.area_comn_serv\", \"0.0\").calculate();\n\n // Sum TOTAL and DEPARTMENT area from GP to FL\n\n new FieldOperation(\"fl\", \"gp\").setAssignedRestriction(\"gp.portfolio_scenario_id IS NULL\")\n .calculate(\"fl.area_gp\", \"SUM\", \"gp.area\");\n new FieldOperation(\"fl\", \"gp\").setAssignedRestriction(\n \"gp.dp_id IS NOT NULL AND gp.portfolio_scenario_id IS NULL\").calculate(\"fl.area_gp_dp\",\n \"SUM\", \"gp.area\");\n\n // Sum DEPARTMENT area from FL to BL\n\n new FieldOperation(\"bl\", \"fl\").calculate(\"bl.area_gp_dp\", \"SUM\", \"fl.area_gp_dp\");\n\n // Sum DEPARTMENT area from BL to SITE\n\n new FieldOperation(\"site\", \"bl\").calculate(\"site.area_gp_dp\", \"SUM\", \"bl.area_gp_dp\");\n \n //Begin: Changed for 20.1 Space WFR: 10.13 GroupChargeback.performChargeback (existing), by Liu XianChao.\n final String useRoomTransactions = Configuration.getActivityParameterString(\n \"AbSpaceRoomInventoryBAR\", \"UseWorkspaceTransactions\");\n String sql = \"\";\n if (\"0\".equals(useRoomTransactions)) {\n \n // Sum SERVICE FLOOR COMMON area from SERV to FL\n \n new FieldOperation(\"fl\", \"rm\", \"rmcat\").setAssignedRestriction(\n \"rmcat.supercat = 'SERV' AND rm.prorate = 'FLOOR'\").calculate(\n \"fl.area_fl_comn_serv\", \"SUM\", \"rm.area\");\n \n // Sum SERVICE BLDG. COMMON area from SERV to BL\n \n new FieldOperation(\"bl\", \"rm\", \"rmcat\").setAssignedRestriction(\n \"rmcat.supercat = 'SERV' AND rm.prorate = 'BUILDING'\").calculate(\n \"bl.area_bl_comn_serv\", \"SUM\", \"rm.area\");\n \n // Sum SERVICE SITE COMMON area from SERV to SITE\n \n sql = \"UPDATE site SET area_st_comn_serv = (SELECT ${sql.isNull('SUM(rm.area)', 0.0)}\"\n + \" FROM bl, rm, rmcat\" + \" WHERE site.site_id = bl.site_id\"\n + \" AND bl.bl_id = rm.bl_id\" + \" AND rmcat.rm_cat = rm.rm_cat\"\n + \" AND rmcat.supercat = 'SERV'\" + \" AND rm.prorate = 'SITE')\";\n SqlUtils.executeUpdate(\"site\", sql);\n } else {\n // Sum SERVICE FLOOR COMMON area from SERV to FL\n \n new FieldOperation(\"fl\", \"rmpct\", \"rmcat\").setAssignedRestriction(\n \"rmcat.supercat = 'SERV' AND rmpct.prorate = 'FLOOR'\").calculate(\n \"fl.area_fl_comn_serv\", \"SUM\", \"rmpct.area_rm\");\n \n // Sum SERVICE BLDG. COMMON area from SERV to BL\n \n new FieldOperation(\"bl\", \"rmpct\", \"rmcat\").setAssignedRestriction(\n \"rmcat.supercat = 'SERV' AND rmpct.prorate = 'BUILDING'\").calculate(\n \"bl.area_bl_comn_serv\", \"SUM\", \"rmpct.area_rm\");\n \n // Sum SERVICE SITE COMMON area from SERV to SITE\n \n sql = \"UPDATE site SET area_st_comn_serv = (SELECT ${sql.isNull('SUM(rmpct.area_rm)', 0.0)}\"\n + \" FROM bl, rmpct, rmcat\"\n + \" WHERE site.site_id = bl.site_id\"\n + \" AND bl.bl_id = rmpct.bl_id\"\n + \" AND rmcat.rm_cat = rmpct.rm_cat\"\n + \" AND rmcat.supercat = 'SERV'\" + \" AND rmpct.prorate = 'SITE')\";\n SqlUtils.executeUpdate(\"site\", sql);\n \n }\n //End: Changed for 20.1 Space WFR: 10.13 GroupChargeback.performChargeback (existing), by Liu XianChao.\n\n // Sum FLOOR COMMON area from GP to FL\n\n new FieldOperation(\"fl\", \"gp\").setAssignedRestriction(\n \"gp.prorate='FLOOR' AND gp.portfolio_scenario_id IS NULL\").calculate(\n \"fl.area_fl_comn_gp\", \"SUM\", \"gp.area\");\n\n // Calculate FLOOR COMMON and REMAINING AREA\n\n new FieldFormula(\"fl\").setAssignedRestriction(\"fl.prorate_remain = 'FLOOR'\").calculate(\n \"fl.area_fl_comn_gp\", \"fl.area_remain + fl.area_fl_comn_gp\");\n\n // Sum BUILDING COMMON AREA from FL REMAINING AREA\n\n new FieldOperation(\"bl\", \"gp\").setAssignedRestriction(\n \"gp.prorate='BUILDING' AND gp.portfolio_scenario_id IS NULL\").calculate(\n \"bl.area_bl_comn_gp\", \"SUM\", \"gp.area\");\n\n // Have to add in fl.area_remain in separate statement because of Oracle\n sql = \"UPDATE bl SET area_bl_comn_gp = \"\n + \"(SELECT bl.area_bl_comn_gp + ${sql.isNull('SUM(fl.area_remain)', 0.0)}\"\n + \" FROM fl \" + \" WHERE bl.bl_id = fl.bl_id\"\n + \" AND fl.prorate_remain = 'BUILDING')\";\n SqlUtils.executeUpdate(\"bl\", sql);\n\n // Sum SITE COMMON area from GP to SITE\n\n sql = \"UPDATE site SET area_st_comn_gp = \" + \"(SELECT ${sql.isNull('SUM(gp.area)', 0.0)}\"\n + \" FROM bl, gp\" + \" WHERE site.site_id = bl.site_id\" + \" AND bl.bl_id = gp.bl_id\"\n + \" AND gp.prorate = 'SITE'\" + \" AND gp.portfolio_scenario_id IS NULL)\";\n SqlUtils.executeUpdate(\"site\", sql);\n\n // Have to add in fl.area_remain in separate statement because of Oracle\n sql = \"UPDATE site SET area_st_comn_gp = \"\n + \"(SELECT site.area_st_comn_gp + ${sql.isNull('SUM(fl.area_remain)', 0.0)}\"\n + \" FROM bl, fl\" + \" WHERE site.site_id = bl.site_id\" + \" AND bl.bl_id = fl.bl_id\"\n + \" AND fl.prorate_remain = 'SITE')\";\n SqlUtils.executeUpdate(\"site\", sql);\n\n // PRORATE COMMON AREA\n // Only update dept. groups\n // See SPSUP.ABS for definition of sql view: gpc\n\n sql = \"UPDATE gp SET\" + \" gp.area_comn_gp =\"\n + \" (SELECT (gpc.flcomgp + gpc.blcomgp + gpc.stcomgp)\"\n + \" FROM gpc WHERE gpc.gp_id = gp.gp_id),\" + \" gp.area_comn_serv =\"\n + \" (SELECT (gpc.flcomsrv + gpc.blcomsrv +gpc.stcomsrv)\"\n + \" FROM gpc WHERE gpc.gp_id = gp.gp_id)\"\n + \" WHERE gp.dp_id IS NOT NULL AND gp.portfolio_scenario_id IS NULL\";\n SqlUtils.executeUpdate(\"gp\", sql);\n\n // Calculate TOTAL COMMON & CHARGEABLE area\n // Only update dept. groups\n\n new FieldFormula(\"gp\").setAssignedRestriction(\n \"gp.dp_id IS NOT NULL AND gp.portfolio_scenario_id IS NULL\").addFormula(\"gp.area_comn\",\n \"gp.area_comn_gp + gp.area_comn_serv\").addFormula(\"gp.area_chargable\",\n \"gp.area + gp.area_comn\").calculate();\n\n // Calculate COST\n // Only update department groups\n // Oracle has to be calculated differently due to its limitations\n\n /*****************************************************************************************\n * SERGEY - NOTE: the calcs below have a second case which uses a field formula for Sybase.\n * As in arcb.abs the Field Formula can probably be modified to use a CASE statement and\n * then that should work on all db servers. The non-Sybase calcs below can then be\n * eliminated.\n ******************************************************************************************/\n\n new FieldFormula(\"bl\", \"gp\", \"fl\").setAssignedRestriction(\n \"gp.dp_id IS NOT NULL AND gp.portfolio_scenario_id IS NULL\").calculate(\n \"gp.cost\",\n \"CASE\" + \" WHEN fl.cost_sqft <> 0 THEN gp.area_chargable * fl.cost_sqft\"\n + \" ELSE gp.area_chargable * bl.cost_sqft\" + \" END\");\n\n // Sum GROUP AREAs from GP to DP\n\n new FieldOperation(\"dp\", \"gp\").setAssignedRestriction(\"gp.portfolio_scenario_id IS NULL\")\n .addOperation(\"dp.area_gp\", \"SUM\", \"gp.area\").addOperation(\"dp.area_comn_gp\", \"SUM\",\n \"gp.area_comn_gp\").addOperation(\"dp.area_comn_serv\", \"SUM\", \"gp.area_comn_serv\")\n .calculate();\n\n // Sum COST, CHARGABLE area, and COMMON area from GP to DP. We must add to existing values\n // because some departments may already have costs, common, and chargeable ares summed from\n // rooms also.\n boolean includeGroupsInUnifiedSpaceCalcs = Configuration.getActivityParameterBoolean(\n \"AbCommonResources\", Configuration.INCLUDE_GROUPS_IN_UNIFIED_SPACE_CALCS,\n Configuration.INCLUDE_GROUPS_IN_UNIFIED_SPACE_CALCS_DEFAULT);\n if (includeGroupsInUnifiedSpaceCalcs) {\n sql = \"UPDATE dp SET \"\n + \"dp.cost = dp.cost + \"\n + \"( SELECT ${sql.isNull('SUM(gp.cost)', 0)} FROM gp\"\n + \" WHERE gp.dv_id = dp.dv_id AND gp.dp_id = dp.dp_id AND gp.portfolio_scenario_id IS NULL), \"\n + \"dp.area_chargable = dp.area_chargable + \"\n + \"( SELECT ${sql.isNull('SUM(gp.area_chargable)', 0)} FROM gp\"\n + \" WHERE gp.dv_id = dp.dv_id AND gp.dp_id = dp.dp_id AND gp.portfolio_scenario_id IS NULL), \"\n + \"dp.area_comn = dp.area_comn + \"\n + \"( SELECT ${sql.isNull('SUM(gp.area_comn)', 0)} FROM gp\"\n + \" WHERE gp.dv_id = dp.dv_id AND gp.dp_id = dp.dp_id AND gp.portfolio_scenario_id IS NULL)\";\n }\n SqlUtils.executeUpdate(\"dp\", sql);\n\n // Sum COST, CHARGABLE area, COMMON area, and GROUP AREA, from DP to DV\n\n new FieldOperation(\"dv\", \"dp\").addOperation(\"dv.cost\", \"SUM\", \"dp.cost\").addOperation(\n \"dv.area_chargable\", \"SUM\", \"dp.area_chargable\").addOperation(\"dv.area_gp\", \"SUM\",\n \"dp.area_gp\").addOperation(\"dv.area_comn\", \"SUM\", \"dp.area_comn\").addOperation(\n \"dv.area_comn_gp\", \"SUM\", \"dp.area_comn_gp\").addOperation(\"dv.area_comn_serv\", \"SUM\",\n \"dp.area_comn_serv\").calculate();\n\n // Sum COST, CHARGABLE area, COMMON area, and GROUP AREA, from DV to BU\n\n new FieldOperation(\"bu\", \"dv\").addOperation(\"bu.cost\", \"SUM\", \"dv.cost\").addOperation(\n \"bu.area_chargable\", \"SUM\", \"dv.area_chargable\").addOperation(\"bu.area_gp\", \"SUM\",\n \"dv.area_gp\").addOperation(\"bu.area_comn\", \"SUM\", \"dv.area_comn\").addOperation(\n \"bu.area_comn_gp\", \"SUM\", \"dv.area_comn_gp\").addOperation(\"bu.area_comn_serv\", \"SUM\",\n \"dv.area_comn_serv\").calculate();\n }", "title": "" }, { "docid": "fa533005d1551c02a3dda7bf8eee6a9d", "score": "0.5788221", "text": "@Override\n\tpublic void decEnergy() {\n\t\t\n\t}", "title": "" }, { "docid": "efb187ed69d04894f32a732812b80c0e", "score": "0.5771249", "text": "@Override\r\n\tpublic int cost() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "42b5b451be57b6c5e8b3e4ef09d612b4", "score": "0.5764456", "text": "private double getNetCharge(Map<AminoAcidCompound, Integer> chargedAA2Count, double ph){\n\t\tfinal double pkaOfNH2 = 9.69;\n\t\tfinal double pkaOfCOOH = 2.34;\n\t\tAminoAcidCompoundSet aaSet = new AminoAcidCompoundSet();\n\t\tdouble nTerminalCharge = this.getPosCharge(pkaOfNH2, ph);\n\t\tdouble kCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"K\")) * this.getPosCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"K\")), ph);\n\t\tdouble rCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"R\")) * this.getPosCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"R\")), ph);\n\t\tdouble hCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"H\")) * this.getPosCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"H\")), ph);\n\t\tdouble dCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"D\")) * this.getNegCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"D\")), ph);\n\t\tdouble eCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"E\")) * this.getNegCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"E\")), ph);\n\t\tdouble cCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"C\")) * this.getNegCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"C\")), ph);\n\t\tdouble yCharge = chargedAA2Count.get(aaSet.getCompoundForString(\"Y\")) * this.getNegCharge(Constraints.aa2PKa.get(aaSet.getCompoundForString(\"Y\")), ph);\n\t\tdouble cTerminalCharge = this.getNegCharge(pkaOfCOOH, ph);\n\t\tif((kCharge + rCharge + hCharge) == 0.0 && (dCharge + eCharge + cCharge + yCharge) == 0.0){\n\t\t\treturn 0.0;\n\t\t}\n\t\treturn (nTerminalCharge + kCharge + rCharge + hCharge) - (dCharge + eCharge + cCharge + yCharge + cTerminalCharge);\n\t}", "title": "" }, { "docid": "866b2144664c9f2ed1063be87e741750", "score": "0.57361513", "text": "public void recharge(){\n this.uses = true;\n }", "title": "" }, { "docid": "d700fd6670ff5430700a70bea458aa14", "score": "0.5733154", "text": "public synchronized void deductAmount() {\n\t\t\t///\n\t\t\t///\n\t}", "title": "" }, { "docid": "d32ee14846e83ee9da4286c135a31c2e", "score": "0.57251877", "text": "public void deductMonthlyCharge(double monthlyItemCharge )\n {\n int freeTransactionsAllotted = 0;\n double checkingTransactionFees;\n double savingsTransactionFees;\n \n checkingTransactionFees = (checkingTransactionCount - freeTransactionsAllotted) \n * monthlyItemCharge;\n savingsTransactionFees = (savingsTransactionCount - freeTransactionsAllotted) \n * monthlyItemCharge;\n \n checkingBalance -= checkingTransactionFees;\n savingsBalance -= savingsTransactionFees;\n \n checkingTransactionCount = 0;\n savingsTransactionCount = 0;\n }", "title": "" }, { "docid": "41cc87f8414e2b946b9f05e45f4acc1b", "score": "0.5696268", "text": "public double zapCost();", "title": "" }, { "docid": "826c1688761b976082e1bae10bddeaa3", "score": "0.56716835", "text": "int getCharges();", "title": "" }, { "docid": "d6656127e61684b60f88860a6a7404ed", "score": "0.56467026", "text": "@Override\n\tpublic double calculateGasPerformance(double gasCapacity, double cylinder) {\n\t\tconsume = gasCapacity * (cylinder/90);\n\t\treturn consume;\n\t}", "title": "" }, { "docid": "00957b0a9503774988d10a9654e493c2", "score": "0.56446046", "text": "private static void getBalance() {\n // TODO\n }", "title": "" }, { "docid": "7fe36deccd3894fe1c4179eee8039ad4", "score": "0.5642078", "text": "private void efficiencyReport() {\n\n }", "title": "" }, { "docid": "6a236e1f7fd2587c84d4f6a8fe459cfc", "score": "0.5630444", "text": "@Test\n\tpublic void shouldDrainBattery() {\n\t\tElectricCar underTest = new ElectricCar(null);\n\n\t\t// Act\n\t\tint initialCharge = underTest.getBattery();\n\t\tunderTest.drainBattery(10);\n\t\tint chargeAfterAcceleration = underTest.getBattery();\n\n\t\t// Assert\n\t\tAssert.assertEquals(initialCharge - 10, chargeAfterAcceleration);\n\t}", "title": "" }, { "docid": "e23529b3aebb3311f13d2ba5bf47b3f0", "score": "0.5620376", "text": "@Test\r\n public void createSessionCharge_preChargeTwice_biggerSd_notImmediate() throws Exception {\r\n final int accountId = 11;\r\n // precharge\r\n int spanSd = SDHolder.buildSD(\"8:00\", \"12:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean preCharge = Builders.getBooking(1, attributes, BookingState.RESTRICTED);\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, preCharge, owner));\r\n\r\n // precharge again\r\n spanSd = SDHolder.buildSD(\"8:00\", \"15:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean booking = Builders.getBooking(1, attributes, BookingState.COMPLETED);\r\n\r\n new NonStrictExpectations() {\r\n @Mocked ChildBookingService bookingService;\r\n {\r\n ChildBookingService.getInstance(); returns(bookingService);\r\n bookingService.isBookingTypeFlagOn(booking.getYwd(), booking.getBookingId(), BTFlagBits.IMMEDIATE_RECALC_FLAG); result = false;\r\n }\r\n };\r\n BillingBean result = service.createBookingSessionCharge(accountId, booking, owner);\r\n assertThat(result, nullValue());\r\n }", "title": "" }, { "docid": "5f4d33e8cb4fe09496c708024ef65df2", "score": "0.5609457", "text": "protected BigDecimal getInternalConsVoidCost() {\n return CostingUtils.getTransactionCost(transaction.getInternalConsumptionLine()\n .getVoidedInternalConsumptionLine().getMaterialMgmtMaterialTransactionList().get(0),\n transaction.getTransactionProcessDate(), true, costCurrency);\n }", "title": "" }, { "docid": "50f6ef096f6d09d5a89cec8ff3ec7e73", "score": "0.5599016", "text": "public double getCostAdvisory();", "title": "" }, { "docid": "346f60639da3e8213c4bcaf41706f847", "score": "0.55971813", "text": "@Test\n\tpublic void chargingOverflowTest() {\n\t\trobot.setCharge(100);\n\n\t\tassertFalse(station.charge(robot), \"Charging from station test failed\\n\" +\n\t\t\t\t\t\t \"REASON: The station is charging an\"+\n\t\t\t\t\t\t \"object with a full battery\");\n\t}", "title": "" }, { "docid": "f612b529375afc871f89ec245e21b5ba", "score": "0.55872244", "text": "@Override\r\n\tpublic double Discount(){\r\n\t\treturn (getPrice() * 0.9);\r\n\t}", "title": "" }, { "docid": "377580d3fca00502a3c7b164a24c7bc3", "score": "0.5582172", "text": "@Override\n\tpublic double calculateConsumeGasoline() {\n\t\tconsumeGasoline = capacityGasoline * (super.getCylinder() / 100);\n\t\treturn consumeGasoline;\n\t}", "title": "" }, { "docid": "7e9a436b1df57bd6bf31912d435f9ffe", "score": "0.55811274", "text": "@Override\n\tpublic double cost() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7c65f45bd43b9c94edc1914bd2bb843b", "score": "0.55744636", "text": "protected int getBaseEnergyConsumption() {\n return 0;\n }", "title": "" }, { "docid": "d4eeb9e59572fffba26fe912ce5950fa", "score": "0.55303216", "text": "public int getAtomicCharge()\n \t{\n \tint atomicCharge = protons - electrons;\n \treturn atomicCharge;\n \t}", "title": "" }, { "docid": "041a98bba41ed249f03b96967dba0950", "score": "0.5520433", "text": "public double charge() {\r\n return this.movie.charge(this.daysRented);\r\n }", "title": "" }, { "docid": "7fa3ab641914fb3ebfa2d505672717d7", "score": "0.5518894", "text": "int showCharge();", "title": "" }, { "docid": "40890c260e19671b80c229f7b1e72b6d", "score": "0.55033106", "text": "protected void CLSQRY()\n {\n currentDrdaRs.CLSQRY();\n }", "title": "" }, { "docid": "35d3e9a03fa4aa08e90fe56883b011c5", "score": "0.55011284", "text": "private void calculateDeadband()\n\t{\n\t\tdeadband = 0.01;\n\t}", "title": "" }, { "docid": "e365b13cd2e25a0624478eab8790c75d", "score": "0.54866666", "text": "protected abstract double getCostPerUnit();", "title": "" }, { "docid": "6094c34a7b8db4239ae6a121ce5f0d5e", "score": "0.5486124", "text": "double getBattery();", "title": "" }, { "docid": "636c9570ae98e142a34c45fdc894d0b4", "score": "0.5482213", "text": "public abstract double getEnergyCost();", "title": "" }, { "docid": "634769f4f6aa2a0eedf3d1b276a81694", "score": "0.5480293", "text": "@Override\n\tpublic void removeCharge() {\n\t\tSystem.out.println(\"Charge &\" + this.id + \" is being removed.\");\n\t\trunning_charges -= 1;\n\t\tif (running_charges == 0) {\n\t\t\tNeuros.closeNetwork(startTime);\n\t\t}\n\t\tNeuros.charges.remove(this);\n\t}", "title": "" }, { "docid": "91c10d9a9c3b7eba8d030e7e3aa043da", "score": "0.5477432", "text": "long getDelegatedFrozenBalanceForEnergy();", "title": "" }, { "docid": "049d61bc4907d2bf09d64ea5f70145d1", "score": "0.5473096", "text": "@Test\r\n public void createSessionCharge_preChargeTwice_biggerSd_immediate() throws Exception {\r\n final int accountId = 11;\r\n // precharge\r\n int spanSd = SDHolder.buildSD(\"8:00\", \"12:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean preCharge = Builders.getBooking(1, attributes, BookingState.RESTRICTED);\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, preCharge, owner));\r\n\r\n // precharge again\r\n spanSd = SDHolder.buildSD(\"8:00\", \"15:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean booking = Builders.getBooking(1, attributes, BookingState.COMPLETED);\r\n\r\n new NonStrictExpectations() {\r\n @Mocked private ChildBookingService bookingService;\r\n {\r\n ChildBookingService.getInstance(); returns(bookingService);\r\n bookingService.isBookingTypeFlagOn(booking.getYwd(), booking.getBookingId(), BTFlagBits.IMMEDIATE_RECALC_FLAG); result = true;\r\n }\r\n };\r\n BillingBean result = service.createBookingSessionCharge(accountId, booking, owner);\r\n assertThat(result.getValue(), is(12000L));\r\n assertThat(result.getDescription(), is(ApplicationConstants.SESSION_ESTIMATE));\r\n assertThat(BillingEnum.isValid(result.getBillingBits()), is(true));\r\n assertThat(hasBillingBit(result.getBillingBits(), TYPE_SESSION, BILL_CHARGE), is(true));\r\n }", "title": "" }, { "docid": "9c5fe401cdbdb2f658e9022197454b15", "score": "0.5468268", "text": "private void releaseAllocatedFuelIfNoLongerNeeded() {\r\n\t\t\tif (!isMiningInProgress() && currentCommand == -1) {\r\n\t\t\t\tfuelAllocated = 0;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9208f847b7c82805ebb49d25595f8095", "score": "0.54466015", "text": "public static Object $$$INFASTSurcharge(mContext m$, Object ... _p) {\n mVar p$obj = m$.varRef(\"p$obj\",(((_p!=null)&&(_p.length>=1))?_p[0]:null));\n return (m$.Fnc.$piece(p$obj.get(),\"~\",252));\n }", "title": "" }, { "docid": "d02413f421c562b26cf21180f2db9af1", "score": "0.54446924", "text": "private int getChargeTime(EntityPlayer player) {\n\t\treturn 20 - level;\n\t}", "title": "" }, { "docid": "2a36b1b8c7a250f757adf0c835da743f", "score": "0.5436965", "text": "public static Receipt forSuccessfulCharge(Receipt amount) {\nreturn new Receipt();}", "title": "" }, { "docid": "a3bb2ff6168ff44fd1395949fce38677", "score": "0.5414118", "text": "@Override\n public int getCost() {\n return 1;\n }", "title": "" }, { "docid": "034e28aedee965912edfa51dd6c5839a", "score": "0.54132813", "text": "private void consumeBatteryForMovement() {\n consumeBattery(getBatteryRequirementForMovement());\n }", "title": "" }, { "docid": "cd5ca31556f44b87b70a7190b93ba100", "score": "0.54079914", "text": "abstract public double getCost();", "title": "" }, { "docid": "c9cf4945e9c00319ef5373994f1a457d", "score": "0.5407038", "text": "@Test\n\tpublic void shouldChargeBattery() {\n\t\tElectricCar underTest = new ElectricCar(null);\n\n\t\t// Act\n\t\tunderTest.chargeUp();\n\t\tint chargeAfterPluggingIn = underTest.getBattery();\n\n\t\t// Assert\n\t\tAssert.assertEquals(100, chargeAfterPluggingIn);\n\t}", "title": "" }, { "docid": "3e501103e2d064ce190b3123fac5109d", "score": "0.5393115", "text": "public double calcConsumedEnergy() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7fb4cf8824d35ec65109d60e30903db2", "score": "0.5387712", "text": "@Test\r\n public void createSessionCharge_preChargeTwice_smallerSd_immediate() throws Exception {\r\n final int accountId = 11;\r\n // precharge\r\n int spanSd = SDHolder.buildSD(\"8:00\", \"15:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean preCharge = Builders.getBooking(1, attributes, BookingState.RESTRICTED);\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, preCharge, owner));\r\n\r\n // precharge again\r\n spanSd = SDHolder.buildSD(\"8:00\", \"12:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean booking = Builders.getBooking(1, attributes, BookingState.COMPLETED);\r\n\r\n new NonStrictExpectations() {\r\n @Mocked private ChildBookingService bookingService;\r\n {\r\n ChildBookingService.getInstance(); returns(bookingService);\r\n bookingService.isBookingTypeFlagOn(booking.getYwd(), booking.getBookingId(), BTFlagBits.IMMEDIATE_RECALC_FLAG); result = true;\r\n }\r\n };\r\n BillingBean result = service.createBookingSessionCharge(accountId, booking, owner);\r\n assertThat(result.getValue(), is(12000L));\r\n assertThat(result.getDescription(), is(ApplicationConstants.SESSION_ESTIMATE));\r\n assertThat(BillingEnum.isValid(result.getBillingBits()), is(true));\r\n assertThat(hasBillingBit(result.getBillingBits(), TYPE_SESSION, BILL_CREDIT), is(true));\r\n }", "title": "" }, { "docid": "ecdf296de87e6a64ee22731ed1187892", "score": "0.53683025", "text": "float getDuty();", "title": "" }, { "docid": "ac85f7113c354d47365cece59d57eac3", "score": "0.53617275", "text": "public void deductAmount1() {\n\t\tsynchronized(Object.class){\n\t\t\t///\n\t\t\t///\n\t\t}\n\t\t////\n\t}", "title": "" }, { "docid": "4348838d7d11da972ecc210c9f6d05ae", "score": "0.5356385", "text": "void purge(int discSpaceInPercents);", "title": "" }, { "docid": "0dbf87af1fc72a3b12fd38c42e0b6745", "score": "0.53548867", "text": "long getAcquiredDelegatedFrozenBalanceForEnergy();", "title": "" }, { "docid": "598c4bf7cf5a62c75c9262d87504c20f", "score": "0.5350526", "text": "public double hotMethod() {\n return Utils.slowpoke(16);\n }", "title": "" }, { "docid": "bfcdbfd56b0e4bdc3bf561f33bba3f90", "score": "0.53468806", "text": "@Override\n public double cost() {\n return 500.0;\n }", "title": "" }, { "docid": "796660d2b9ba477a102191cb104bcb98", "score": "0.5346262", "text": "public void calHandlingCharge() throws MyValidationException{\r\n double charge = 0;\r\n\r\n if (this.hChargeQuantity == null || this.hChargeAmount == null) {\r\n setHandlingCharge(charge);\r\n return;\r\n }\r\n\r\n\r\n for (int i = 0; i < this.hChargeQuantity.length; i++) {\r\n if (this.quantity < this.hChargeQuantity[i]) {\r\n if (this.quantity>0 && this.hChargeAmount[i-1] > 0) {\r\n charge = this.hChargeAmount[i - 1];\r\n } else {\r\n charge = this.hChargeAmount[0];\r\n }\r\n break;\r\n }\r\n if (this.hChargeAmount[i] > 0) {\r\n charge = this.hChargeAmount[i];\r\n }\r\n }\r\n\r\n if ( charge <= 0 ) {\r\n throw new MyValidationException(\"calHandlingCharge\",\r\n \"Handling charge is invalid\",\r\n MyValidationException.OUTPUT_FAIL,\r\n \"charge\", charge);\r\n }\r\n setHandlingCharge(charge);\r\n }", "title": "" }, { "docid": "ca0e4361adb4d078e8ac0cd210b2486a", "score": "0.53461355", "text": "public double tapIn(OysterCard card) throws InsufficnientFundsException {\n\t\treturn card.charge(MAX_FARE);\n\t}", "title": "" }, { "docid": "3ffae5119ac17e3290de7e9981b3de4e", "score": "0.5338501", "text": "@Override\n public Double calRecharge(Double charge, RechargeTypeEnum type) {\n return charge*0.90;\n }", "title": "" }, { "docid": "66e89d81857b3254020fc9bcdde93efe", "score": "0.53352714", "text": "@Override\n\tpublic double calculateConsumeBattery() {\n\t\tif (typeCharger == TYPE_CHARGER_FAST)\n\t\t\tconsumeBattery = durationBattery * (super.getCylinder() / 100);\n\t\telse if (typeCharger == TYPE_CHARGER_NORMAL)\n\t\t\tconsumeBattery = (durationBattery + 5) * (super.getCylinder() / 100);\n\t\treturn consumeBattery;\n\t}", "title": "" }, { "docid": "db2c10c53bd0aa8f753619e3a9fe0368", "score": "0.53347677", "text": "@Override\n public void airportCharges() {\n capital = (wanted + covid + minor) * 10;\n }", "title": "" }, { "docid": "2833c3df206989ccf05846820c5e4982", "score": "0.53341025", "text": "public abstract int cost();", "title": "" }, { "docid": "25440fc7c11df55ea2660f12a9d0dae2", "score": "0.5333687", "text": "private BigDecimal getManufacturingProducedCost() {\n if (!transaction.getProductionLine().isCalculated()) {\n calculateWorkEffortCost(transaction.getProductionLine().getProductionPlan().getProduction());\n }\n OBDal.getInstance().refresh(transaction.getProductionLine());\n return transaction.getProductionLine().getEstimatedCost() != null ? transaction\n .getProductionLine().getEstimatedCost().multiply(transaction.getMovementQuantity().abs())\n : BigDecimal.ZERO;\n }", "title": "" }, { "docid": "ff21919df99682054a86031463ecbf0f", "score": "0.5333115", "text": "@Test\n\tpublic void correctChargingTest() {\n\t\trobot.setCharge(50);\n\n\t\tassertFalse(!station.charge(robot) || station.getCharge() != 95 || robot.getCharge() != 100, \n\t\t\t \"Charging from station test failed\\nREASON: The station doesn't charge correctly.\");\n\t}", "title": "" }, { "docid": "40e3d7acd95629bc519806fb7a201c10", "score": "0.5330429", "text": "@Test\r\n public void createSessionCharge_preChargeTwice_thenCharge_allBiggerSd() throws Exception {\r\n final int accountId = 11;\r\n // precharge\r\n int spanSd = SDHolder.buildSD(\"8:00\", \"12:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean preCharge = Builders.getBooking(1, attributes, BookingState.RESTRICTED);\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, preCharge, owner));\r\n\r\n // precharge again\r\n spanSd = SDHolder.buildSD(\"8:00\", \"15:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean secondCharge = Builders.getBooking(1, attributes, BookingState.COMPLETED);\r\n new NonStrictExpectations() {\r\n @Mocked private ChildBookingService bookingService;\r\n {\r\n ChildBookingService.getInstance(); returns(bookingService);\r\n bookingService.isBookingTypeFlagOn(secondCharge.getYwd(), secondCharge.getBookingId(), BTFlagBits.IMMEDIATE_RECALC_FLAG); result = true;\r\n }\r\n };\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, secondCharge, owner));\r\n\r\n // now get charge\r\n spanSd = SDHolder.buildSD(\"8:00\", \"16:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean booking = Builders.getBooking(1, attributes, BookingState.RECONCILED);\r\n BillingBean result = service.createBookingSessionCharge(accountId, booking, owner);\r\n\r\n assertThat(result.getValue(), is(5000L));\r\n assertThat(result.getDescription(), is(ApplicationConstants.SESSION_RECONCILED));\r\n assertThat(BillingEnum.isValid(result.getBillingBits()), is(true));\r\n assertThat(hasBillingBit(result.getBillingBits(), TYPE_SESSION, BILL_CHARGE), is(true));\r\n }", "title": "" }, { "docid": "77eed8ad9334861a5a1f8eef0cb76971", "score": "0.53187597", "text": "public abstract double getCost ( );", "title": "" }, { "docid": "b27f5c2ea1dfcc2973777a0d48bb8ed2", "score": "0.5317636", "text": "@Override\n public int cost() {\n return 10;\n }", "title": "" }, { "docid": "eb3840c0e22866548765b20165995013", "score": "0.5313513", "text": "private void consumeAllocatedFuel(int count) {\r\n\t\t\tfuelAllocated -= count;\r\n\t\t\tfuelBuffer -= count;\r\n\t\t\tif (fuelBuffer < 0) {\r\n\t\t\t\tfuelBuffer = 0;\r\n\t\t\t}\r\n\t\t\tif (fuelAllocated < 0) {\r\n\t\t\t\tfuelAllocated = 0;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9f48cfa987f37ca4d80db2f4898c8d50", "score": "0.53121734", "text": "private void substractFromCapacityLabo(int amount,String unit) {\n\t\t\tint substraction = this.getAmountInSpoons(amount, unit);\n\t\t\tlong result = this.getAvailableCapInSpoons() - substraction;\n\t\t\tthis.changeAvailableCapInSpoons(result);\n\t\t}", "title": "" }, { "docid": "02408b3d4654e616bfffb971fa9b41e8", "score": "0.5304062", "text": "public boolean discharge(ItemStack stack, double limit) {\n\t\tif (stack == null || !Info.isIc2Available() || getWorldObj().isRemote) return false;\n\n\t\tdouble amount = capacity - energyStored;\n\t\tif (amount <= 0) return false;\n\n\t\tif (limit > 0 && limit < amount) amount = limit;\n\n\t\tamount = ElectricItem.manager.discharge(stack, amount, Math.max(getSinkTier(), getSourceTier()), limit > 0, true, false);\n\n\t\tenergyStored += amount;\n\n\t\treturn amount > 0;\n\t}", "title": "" }, { "docid": "d1fae22589286a681c65512eacd0bc6d", "score": "0.53028554", "text": "@Override\r\n\tpublic int getGas() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ca2afc48a624a17bf9f02e90e6d037f2", "score": "0.53023344", "text": "public double getCostProvide();", "title": "" }, { "docid": "1f04cfcb1921345e78f954f3b7c33214", "score": "0.52948284", "text": "public double getDisutility(DiabetesPatient pat) {\r\n\t\t\treturn 0.0;\r\n\t\t}", "title": "" }, { "docid": "734d381779131ec99028300271e79d98", "score": "0.5290596", "text": "public double chargeFee() {\t\t//Created a method without parameters\n\t\tdouble fee=0;\n\t\t\n\t\tif (money < 1000) {\n\t\t\tfee=money*0.1;\n\t\t\t\n\t\t}else {\n\t\t\tfee = 0;\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn fee;\n\t}", "title": "" }, { "docid": "7a401d08c7e6d5329d0284bb61a2ca41", "score": "0.52858967", "text": "public void dispense() {\n\r\n\t}", "title": "" }, { "docid": "2724b8dca0c58afca4b30a6663ade90e", "score": "0.52841353", "text": "public double efficiencyCehck() {\r\n ///TODO: Fill in this function\r\n System.out.println(\"Fill in this function.\");\r\n return -9999.;\r\n }", "title": "" }, { "docid": "653b60d3fa3e48344da61501f1bb5a49", "score": "0.52838373", "text": "int refillneeded (int miles)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn (int) 252 / mpg / fuelcap;\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "c02ce26626232a047eb8a4f9486da0bb", "score": "0.5275905", "text": "public static void takeDamage() {\n\n\t}", "title": "" }, { "docid": "68df7ca8d9e6cd9242900ce0cbe67c43", "score": "0.5264395", "text": "long getFrozenBalanceForEnergy();", "title": "" }, { "docid": "2aa122a7d3ff682670a1471b9582ffbf", "score": "0.5262169", "text": "public double Get_Price_After_Use()\n {\n return (price_new*(1-(odometer/60000)));\n }", "title": "" }, { "docid": "1bb597d7aa8b91f7e5147428917296c2", "score": "0.52611387", "text": "public static Object $$$INRECChargeCostAllocation(mContext m$, Object ... _p) {\n mVar p$obj = m$.varRef(\"p$obj\",(((_p!=null)&&(_p.length>=1))?_p[0]:null));\n return (m$.Fnc.$piece(p$obj.get(),\"~\",16));\n }", "title": "" }, { "docid": "216d609e5b39b12df3f5cd39ef6973c8", "score": "0.525854", "text": "@Override\n\tpublic int cost() {\n\t\treturn 2000;\n\t}", "title": "" }, { "docid": "bcc8ab63307fca6e99161baf10222e04", "score": "0.52580893", "text": "long getFree();", "title": "" }, { "docid": "bcc8ab63307fca6e99161baf10222e04", "score": "0.52580893", "text": "long getFree();", "title": "" }, { "docid": "bcc8ab63307fca6e99161baf10222e04", "score": "0.52580893", "text": "long getFree();", "title": "" }, { "docid": "b8903708e12125376214b0b0f11c0239", "score": "0.52574676", "text": "public com.erp.webservice.server.auto.ChargeResponse charge\n (\n com.erp.webservice.server.auto.Charge charge\n )\n ;", "title": "" }, { "docid": "fb54590bf235b538827aff5dc0309afd", "score": "0.52467054", "text": "@Override\r\n\tpublic double getCost() {\n\t\treturn 145000.00;\r\n\t}", "title": "" }, { "docid": "4a5dca17bde18f4cc0a8972936210dd9", "score": "0.5245751", "text": "@Override\n\tpublic double cost() {\n\t\treturn 30;\n\t}", "title": "" }, { "docid": "b7a159a1f6f3f590b7c0ef0cd60d9eba", "score": "0.5243205", "text": "public double getCostCompensate();", "title": "" }, { "docid": "ff5c5b038360a9743d52e8d75eb09588", "score": "0.5234478", "text": "@Override\n\tpublic double cost() {\n\t\treturn 0.99;\n\t}", "title": "" }, { "docid": "f4bfc07a6d8b72f908123f6be0ad7257", "score": "0.5233663", "text": "@Override\n\tpublic int callPayRecharge(PayInfo pay_info) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1508bdb1b5cdcf7f704d5c4140c5cbff", "score": "0.5232595", "text": "@Override\n\tpublic int getEnergyAmmoCost() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "427a936c04b2b6e7648bbcd8f7cac2d0", "score": "0.5230866", "text": "double getCurrentCapacity ()\r\n {\r\n return this.windTurbine.getNominalCapacity() * this.numberOfTurbines;\r\n }", "title": "" }, { "docid": "cbec57051a490049fe716d7ebbeb648f", "score": "0.5227218", "text": "double getAvailableBalance();", "title": "" }, { "docid": "c010f126d273500a8d176f491aa180df", "score": "0.5220964", "text": "@Override\n\tpublic double calculateCost() {\n\t\treturn 1000000;\n\t}", "title": "" }, { "docid": "3766ca2ec58bcfb3cbeb9cd14e600eae", "score": "0.52190727", "text": "@Test\r\n public void createSessionCharge_preChargeTwice_thenCharge_smallerSd() throws Exception {\r\n final int accountId = 11;\r\n // precharge\r\n int spanSd = SDHolder.buildSD(\"8:00\", \"12:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean preCharge = Builders.getBooking(1, attributes, BookingState.RESTRICTED);\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, preCharge, owner));\r\n\r\n // precharge again\r\n spanSd = SDHolder.buildSD(\"8:00\", \"15:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean secondCharge = Builders.getBooking(1, attributes, BookingState.COMPLETED);\r\n new NonStrictExpectations() {\r\n @Mocked private ChildBookingService bookingService;\r\n {\r\n ChildBookingService.getInstance(); returns(bookingService);\r\n bookingService.isBookingTypeFlagOn(secondCharge.getYwd(), secondCharge.getBookingId(), BTFlagBits.IMMEDIATE_RECALC_FLAG); result = true;\r\n }\r\n };\r\n service.getBillingManager().setObject(accountId, service.createBookingSessionCharge(accountId, secondCharge, owner));\r\n\r\n // now get charge\r\n spanSd = SDHolder.buildSD(\"8:00\", \"12:59\");\r\n attributes.put(\"spanSd\", spanSd);\r\n final BookingBean booking = Builders.getBooking(1, attributes, BookingState.RECONCILED);\r\n BillingBean result = service.createBookingSessionCharge(accountId, booking, owner);\r\n\r\n assertThat(result.getValue(), is(12000L));\r\n assertThat(result.getDescription(), is(ApplicationConstants.SESSION_RECONCILED));\r\n assertThat(BillingEnum.isValid(result.getBillingBits()), is(true));\r\n assertThat(hasBillingBit(result.getBillingBits(), TYPE_SESSION, BILL_CREDIT), is(true));\r\n }", "title": "" }, { "docid": "a3d12b3435def21ef449284069d5a4c8", "score": "0.5214614", "text": "public void superCOPower(){\r\n SCOP = true;\r\n Unit[] u = army.getUnits();\r\n Army[] a = army.getBattle().getArmies();\r\n ArrayList<Unit> storage = new ArrayList<Unit>();\r\n \r\n\r\n \r\n int targets = 0;\r\n for(int i = 0; i<u.length; i++) \r\n {\r\n targets = 0;\r\n storage.clear();\r\n \r\n for(int s = 0; s<a.length;s++) \r\n {\r\n if(a[s].getSide() != army.getSide()) \r\n {\r\n \t\r\n \r\n \t/*//NEW\r\n double[] temp = new double[MoveID.MAX_MOVE_TYPES];\r\n \r\n for(int q = 0; q < temp.length; q++)\r\n {\r\n \ttemp[q] = 1;\r\n }\r\n \r\n a[s].addTerrCosts_global(temp);\r\n */\r\n \r\n Unit[] enemy = a[s].getUnits();\r\n \r\n for(int t = 0; t<enemy.length; t++) \r\n {\r\n if(u[i].checkDisplayFireRange(enemy[t].getLoc()) && BaseDMG.find(u[i], enemy[t], army.getBattle().getBattleOptions().isBalance()) != -1) {\r\n targets++;\r\n storage.add(enemy[t]);\r\n }\r\n }\r\n }\r\n }\r\n \r\n for(int q = 0; q<storage.size(); q++) {\r\n int dmg = u[i].displayDamageCalc(storage.get(q));\r\n storage.get(q).damage((int)(dmg/(targets*1.0)), false);\r\n }\r\n \r\n }\r\n }", "title": "" }, { "docid": "69f5cf47b370c40751483518858c641b", "score": "0.52122694", "text": "private void resetCost() {\n this.Cost = this.Chest.Cost + this.Helmet.Cost + this.Boots.Cost + this.ExtraPiece.Cost + this.Leggings.Cost;\n }", "title": "" }, { "docid": "32ae2fa924cc8a2e01d8de385ab23d61", "score": "0.52118343", "text": "@Override\n\tpublic void disadvantages() {\n\t\t\n\t\tSystem.out.println(\"Expensive and need maintanance\");\n\t\t\n\t}", "title": "" }, { "docid": "72fea50dc581e346ed086fd69659a458", "score": "0.5209328", "text": "protected long g() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "306221451efc9470a7063a443e0dc01b", "score": "0.52077925", "text": "public abstract double calculateDiscount(double cost, int quantity);", "title": "" } ]
c6d296d3d285a029256b51483806cd2e
instancierComposants : initialise les composants void
[ { "docid": "9cb83f648140e2ece875fbed9ae1bc36", "score": "0.6505168", "text": "private void instancierComposants() {\n //Container\n cont = getContentPane();\n\n //JTextField\n txtQueury = new JTextField(\"\");\n txtLang = new JTextField(\"en\");\n txtStartRes = new JTextField(\"0\");\n txtMaxRes = new JTextField(\"\");\n txtCountRes = new JTextField(\"\");\n\n //RadioButton\n radioFiltre = new JRadioButton(\"Filtre\");\n radioRestricts = new JRadioButton(\"Restricts\");\n radioSafe = new JRadioButton(\"SafeSearch\");\n\n //Label\n lblQueury = new JLabel(\"Recherche\");\n lblLang = new JLabel(\"Langues\");\n lblMaxRes = new JLabel(\"Résultats Max\");\n lblStartRes = new JLabel(\"Start index\");\n lblCountRes = new JLabel(\"Total\");\n\n //JEditorPane\n editor = new JEditorPane();\n\n //JScrollPane\n scroll = new JScrollPane(editor);\n\n //JCheckBox\n googleTitle = new JCheckBox(\"Titre\");\n googleSummary = new JCheckBox(\"Sommaire\");\n googleSnippet = new JCheckBox(\"Fragment\");\n googleHostName = new JCheckBox(\"Host\");\n googleDirectoryTitle = new JCheckBox(\"Titre Dossier\");\n googleCachedSize = new JCheckBox(\"Taille cache\");\n googleUrl = new JCheckBox(\"URL\");\n\n //Google\n gs = new GoogleSearch();\n gsr = new GoogleSearchResult();\n gsre = null;\n }", "title": "" } ]
[ { "docid": "272793f3336cd50f530b388618278389", "score": "0.7113993", "text": "private void initComposants() {\r\n\t\tselectionMatierePanel = new SelectionMatierePanel(1);\r\n\t\ttableauPanel = new TableauPanel(1);\r\n\t\tadd(selectionMatierePanel, BorderLayout.NORTH);\r\n\t\tadd(tableauPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "10f47d531d93378475054397f0119a96", "score": "0.66969436", "text": "public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "aa8f07c0ebbad050a4321d1c63bdd9fb", "score": "0.6660303", "text": "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "title": "" }, { "docid": "fdcc94e3831e623ccab404980cf41daf", "score": "0.6579349", "text": "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "title": "" }, { "docid": "b9b79dc0aafdef05e23801c1ed361e1b", "score": "0.65329754", "text": "public void init() {\r\n\t\tsuper.init();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).init();\t\t\t\r\n\t\t} \r\n\t}", "title": "" }, { "docid": "f326753f70617d49d31bbf8d412fe16e", "score": "0.64260215", "text": "private void inicializarComponentes() {\n universidadesIncluidos = UniversidadFacade.getInstance().listarTodosUniversidadOrdenados();\n universidadesIncluidos.removeAll(universidadesExcluidos);\n Comunes.cargarJList(jListMatriculasCatastrales, universidadesIncluidos);\n }", "title": "" }, { "docid": "9e12e0050000b77c348abaca2c7e7cd5", "score": "0.63549507", "text": "Compleja createCompleja();", "title": "" }, { "docid": "a3e7f6c5b6d367eaa34fd221c7ccbea0", "score": "0.6308072", "text": "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "744c6cbcca1024fa99ec8eed3c684644", "score": "0.62403226", "text": "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }", "title": "" }, { "docid": "5bbfe7412d7d1cb6480d6938507542b9", "score": "0.6216683", "text": "@PostConstruct\r\n private void init() {\n this.ccTypes = new ArrayList<SelectItem>();\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_A, getCCTypeLabel(CreditCardType.CARD_A)));\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_B, getCCTypeLabel(CreditCardType.CARD_B)));\r\n\r\n // Initialize categories select items\r\n this.categories = new ArrayList<SelectItem>();\r\n this.categories.add(new SelectItem(\"cat_it\", getCategoryLabel(\"cat_it\")));\r\n this.categories.add(new SelectItem(\"cat_gr\", getCategoryLabel(\"cat_gr\")));\r\n this.categories.add(new SelectItem(\"cat_at\", getCategoryLabel(\"cat_at\")));\r\n this.categories.add(new SelectItem(\"cat_mx\", getCategoryLabel(\"cat_mx\")));\r\n }", "title": "" }, { "docid": "aceeb39dd49c8bb15a7c900764dfd2f5", "score": "0.6215992", "text": "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "fc533cd07e380f04b238b7e9cce8ee89", "score": "0.62031853", "text": "public void createCompte(Compte compte);", "title": "" }, { "docid": "80abb25098c0bd6c3b698f7c4ecf8ed6", "score": "0.61778337", "text": "public CadastroComplemento() {\n initComponents();\n \n }", "title": "" }, { "docid": "42c04b9e326e4c8930a559bcf8a1d854", "score": "0.61586285", "text": "public RegistroCompra() {\n initComponents();\n buscarProveedor();\n }", "title": "" }, { "docid": "a9c6e6759952d88846c5e9d6e09b889a", "score": "0.6151647", "text": "private void instanciarComponentes() {\n\t\t\n\t\tpainelTopo = new JPanel(new FlowLayout());\n\t\tpainelTopo.setBackground(Color.LIGHT_GRAY);\n\t\tlbInicial = new JLabel(\"De: \");\n\t\tlbFinal = new JLabel(\"Até: \");\n\t\tlabelTabuadoDo = new JLabel(\"Tabuada do: \");\n\t\ttxtInicial = new JTextField(10);\n\t\ttxtFinal = new JTextField(10);\n\t\ttxtNumero = new JTextField(10);\n\t\tbuttonCalcular = new JButton(\"Calcular\");\n\t\tpainelCentro = new JPanel(new FlowLayout());\n\t}", "title": "" }, { "docid": "046ef67fab1af880e712f82d23a909de", "score": "0.614033", "text": "public void initControles(){\n\n }", "title": "" }, { "docid": "ca513e3d73382750220da88458fee531", "score": "0.6139", "text": "public void InicializarComponentes() {\n campoCadastroNome = findViewById(R.id.campoCadastroNome);\n campoCadastroEmail = findViewById(R.id.campoCadastroEmail);\n campoCadastroSenha = findViewById(R.id.campoCadastroSenha);\n switchEscolhaTipo = findViewById(R.id.switchCadastro);\n botaoFinalizarCadastro = findViewById(R.id.botaoFinalizarCriacao);\n\n\n }", "title": "" }, { "docid": "f1fc8a8b65189a6c73ababa26ce0cd4f", "score": "0.6137795", "text": "private CoeurAStockageImpl()\n\t{\n\t\tmonnayeur = new Monnayeur();\n\t\timprimante = new Imprimante(this);\n\t\tcomposantEnMarche = new HashMap<Composant,Boolean>();\n\t\tfor(Composant composant : Composant.values())\n\t\t{\n\t\t\tcomposantEnMarche.put(composant, true);\n\t\t}\n\t}", "title": "" }, { "docid": "a56825a11baaa778e3055f31d79ed490", "score": "0.6119736", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\tfecha = new Date();\r\n\t\t\r\n\t\tlistaBancos = new ArrayList<SelectItem>();\r\n\t\tlistaRegiones = new ArrayList<SelectItem>();\r\n\t\tlistaCiudades = new ArrayList<SelectItem>();\r\n\t\tlistaComunas = new ArrayList<SelectItem>();\r\n\t\t\r\n\t\tfor(EmpresaDTO empresa : configJProcessService.selectEmpresasByOrganizacion(1))\r\n\t\t\tlistaBancos.add(new SelectItem(empresa.getId(), empresa.getNombre()));\r\n\t}", "title": "" }, { "docid": "e29e990e7ca5636dd0f1ef1fd21d6be7", "score": "0.6110934", "text": "public void init() {\n\t\t\n\t\t\n\t\tprepareGaborFilterBankConcurrent();\n\t\t\n\t\tprepareGaborFilterBankConcurrentEnergy();\n\t}", "title": "" }, { "docid": "3336afbb27c8018adc3d0a6ec45b524e", "score": "0.60899925", "text": "private void criarComponentes() {\n\n add(criarPainelNorte(), BorderLayout.NORTH);\n add(criarPainelCentro(), BorderLayout.CENTER);\n add(criarPainelSul(), BorderLayout.SOUTH);\n }", "title": "" }, { "docid": "cde60c801f45068661ff403c5698c463", "score": "0.6088193", "text": "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "title": "" }, { "docid": "d98796c5c8b6c15d452245e101e1debf", "score": "0.60828936", "text": "@PostConstruct\r\n\tpublic void init(){\r\n\t\tcom = new Comentarios();\r\n\t\tlistComentarios = comDao.getComentarios();\r\n\t}", "title": "" }, { "docid": "fedf957c924bc2f9e49048d0b4fed27e", "score": "0.6078502", "text": "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "title": "" }, { "docid": "dae3533e262540e112dcdb701cddc559", "score": "0.60505414", "text": "@PostConstruct\n protected void init() {\n direccionRegionalList = new ArrayList<InstitucionRequerida>();\n direccionRegionalList = institucionRequeridaServicio.getDireccionRegionalList();\n gadList = new ArrayList<InstitucionRequerida>();\n gadList = institucionRequeridaServicio.getGADList();\n registroMixtoList = new ArrayList<InstitucionRequerida>();\n registroMixtoList = institucionRequeridaServicio.getRegistroMixtoList();\n }", "title": "" }, { "docid": "3dd91eb9cb440382f27f35952a7f48e3", "score": "0.60212946", "text": "public Comprador() {\n // initialise instance variables\n super(1,\"\",\"\",\"\",\"\",\"\"); //super(email, nome, password, dataNascimento, morada)\n favoritos = new ArrayList<String>();\n }", "title": "" }, { "docid": "80a05798fe98b3d430021e57216cf050", "score": "0.6014028", "text": "private void init (){\n ///compoennetes\n // cuadros de texto\n txCodigo = new JTextField(10);\n txNombre = new JTextField(10);\n // etiquetas\n lbCodigo = new JLabel(\"codigo: \");\n lbNombre = new JLabel(\"nombre: \");\n // boton \n btAcpetar = new JButton(\"aceptar\");\n btAcpetar.setToolTipText(\"realizar insert\");\n btAcpetar.addActionListener(this);\n // paneles contenedores\n JPanel pCodigo = new JPanel();\n JPanel pNombre = new JPanel();\n // cambio de layout\n BoxLayout bx = new BoxLayout(this.getContentPane(), BoxLayout.PAGE_AXIS);\n this.setLayout(bx);\n // annadir a los paneles\n pCodigo.add(lbCodigo);\n pCodigo.add(txCodigo);\n pNombre.add(lbNombre);\n pNombre.add(txNombre);\n // annadir al dialogo\n add(pCodigo);\n add(pNombre);\n add(btAcpetar);\n }", "title": "" }, { "docid": "3379d015245e33f57ccf660bb55cd4d8", "score": "0.60130554", "text": "@PostConstruct\n\tpublic void init() {\n\t\tvisitaSelecionada = new AgendamentoVisitas();\n\n\t}", "title": "" }, { "docid": "0ef95d43b36d7d137656ddef0b966b00", "score": "0.5959237", "text": "private void initcomponent() {\n\r\n\t}", "title": "" }, { "docid": "98605989760c6844c26c6179f6eee66d", "score": "0.59437144", "text": "private synchronized void init(){\n _2_zum_vorbereiten.addAll(spielzeilenRepo.find_B_ZurVorbereitung());\n _3_vorbereitet.addAll(spielzeilenRepo.find_C_Vorbereitet());\n _4_spielend.addAll(spielzeilenRepo.find_D_Spielend());\n }", "title": "" }, { "docid": "414275298bc31c0184a93995eaf82821", "score": "0.59403205", "text": "public ComptabiliteManagerImpl() {\n\t}", "title": "" }, { "docid": "5e75a280fc5ee5c9415c0baa61850916", "score": "0.59379864", "text": "private void init(Couleur uneCouleur, String unFluxDePositions) {\n\t\tString[] chaines = unFluxDePositions.split(\" \"); //separation par espace\n\t\tfor (String chaine: chaines) {\n\t\t\tPosition position = new Position(chaine);\n\t\t\tajouterPion( new Pion(uneCouleur), position ); \n\t\t}\n }", "title": "" }, { "docid": "432154ac334a104fb6d81306e1c8c630", "score": "0.59338576", "text": "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "title": "" }, { "docid": "2f56f64ae8b5f1e850e2e4f967dfd11f", "score": "0.59182787", "text": "@PostConstruct\n\tprivate void init() {\n\t\tEntrada entr = new Entrada(\n\t\t\t\tnew Persona(\"Manuel\",\"Jimenex\",\"52422\",\"100000\",\"Cra 340\"),\n\t\t\t\t(new PreFactura(1l,new Date())), itemsService.lista());\n\t\t\n\t\tlistaEntrada.add(entr);\n\t}", "title": "" }, { "docid": "ba4aa7acdf07dd6bad049814a3b75aa0", "score": "0.59055614", "text": "private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}", "title": "" }, { "docid": "12265c01ba0e1d1abc660a1bf55d707d", "score": "0.5877148", "text": "private void inicializarCombos() {\n\t\tlistaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tfor (GrupoUsuario grupo : listaGrupoUsuario) {\n\t\t\tthis.observableListaGrupoUsuario.add(grupo.getNombre());\n\t\t}\n\t\tthis.comboGrupoUsuario.setItems(this.observableListaGrupoUsuario);\n\t\tnew AutoCompleteComboBoxListener(comboGrupoUsuario);\n\n\t\tObservableList<String> status = FXCollections.observableArrayList(\"Bloqueado\",\"Activo\",\"Baja\");\n\t\tthis.comboStatus.setItems(status);\n\t\tthis.comboEmpleados.setItems(FXCollections.observableArrayList(this.listaEmpleados));\n\t}", "title": "" }, { "docid": "f5dad210a7ed537652c67b45ed3d24ff", "score": "0.5876539", "text": "public combinacion() {\n initComponents();\n eventos();\n }", "title": "" }, { "docid": "16f2e5aa325651e115c50157b3cd4136", "score": "0.58749896", "text": "void instantiateComponents();", "title": "" }, { "docid": "9cb98a8cc3c3f44d84cf2bc3dda690bf", "score": "0.587473", "text": "public VueAccueil() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "c91a598f24e3b8688859508716ea6725", "score": "0.58662194", "text": "@Override\r\n\tprotected void init() {\r\n\t\tList<Configuracao> configs = servico.listarTodos();\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tentidade = configs.get(0);\t// deve haver apenas um registro\r\n\t\t} else {\r\n\t\t\tcreateConfiguracao();\r\n\t\t}\r\n\t\t\r\n carregarTemas();\r\n\t}", "title": "" }, { "docid": "6625d17f3184b5bc6463dc9af142ab81", "score": "0.58648825", "text": "public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Tercer item\n\t\titemscomboDominiosSet3ReglaCompleja = new JComboBox();// creamo el Tercer combo, vacio\n\t\titemscomboDominiosSet3ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Tercer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet3ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet3ReglaCompleja);\n\t\titemscomboDominiosSet3ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "title": "" }, { "docid": "7c2c99241b5511479d99ef44571a50a2", "score": "0.5858118", "text": "@PostConstruct\n public void init() {\n logger = LoggerFactory.getLogger(getClass());\n logger.debug(\"initializing bean \" + getClass().getName());\n \n attributes = Attributes.getUIComponentAttributes(UITree.class, getClass(), false);\n attributes.get(\"rendered\").setValue(true);\n attributes.get(\"toggleType\").setValue(\"ajax\");\n attributes.get(\"selectionType\").setValue(\"ajax\");\n \n for (CompactDiscXmlDescriptor descriptor : model.getCompactDiscs()) {\n createCompactDisc(descriptor);\n }\n }", "title": "" }, { "docid": "1e856384e08e3c5e0a2577a674643d7f", "score": "0.58562535", "text": "public TelaConversao() {\n initComponents();\n }", "title": "" }, { "docid": "4eca2ab9de41979090f603cc3eb3bc02", "score": "0.5854554", "text": "public void inicializar(Component comp) {\r\n\r\n\t\tList<Tematica> tematica = servicioTematica.buscarTematicasDeArea(area);\r\n\t\tltbTematica.setModel(new ListModelList<Tematica>(tematica));\r\n\r\n\t}", "title": "" }, { "docid": "dff246cdbcd7c8152edf5e6a83045f61", "score": "0.58263165", "text": "private void initComponents() {\n\t\t\n\t}", "title": "" }, { "docid": "dff246cdbcd7c8152edf5e6a83045f61", "score": "0.58263165", "text": "private void initComponents() {\n\t\t\n\t}", "title": "" }, { "docid": "a9fe72ad73818e917c1fd4455a5fbf4e", "score": "0.5824961", "text": "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "title": "" }, { "docid": "ee06f61beee6dfb8774057092e087eea", "score": "0.5823252", "text": "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "title": "" }, { "docid": "636b7f36121d178d283e419c603e02cf", "score": "0.58074623", "text": "public VistaCombate() {\n initComponents();\n }", "title": "" }, { "docid": "977403bc0cf0fb40d047e54a4a6bd9a0", "score": "0.5795305", "text": "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "title": "" }, { "docid": "ab783e70fee8b0b76c7ef7eddf992ad7", "score": "0.5791136", "text": "public BilanComptable() {\n initComponents();\n \n \n \n }", "title": "" }, { "docid": "37e6e6acc2c116386b2953813263f1c3", "score": "0.57874274", "text": "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "01a57deb94ca1543a55c7c8f85ecc780", "score": "0.5785892", "text": "@PostConstruct\r\n\tpublic void init(){\r\n\t\tconta = new Conta();\r\n\t\tservice = new ContaService();\r\n\t\tconta.setDataAbertura(Calendar.getInstance());\r\n\t}", "title": "" }, { "docid": "96efdbe253983e5f03e0c89d57f80d9b", "score": "0.57850075", "text": "public Combinators()\n {\n }", "title": "" }, { "docid": "06bde4bf27169ed0cd487e982a3017af", "score": "0.5783976", "text": "public Allocated_computers() {\n initComponents();\n }", "title": "" }, { "docid": "eca2e6cf9eac929696f543383c21d52f", "score": "0.5771328", "text": "protected void init_actions()\n {\n action_obj = new CUP$CompParser$actions(this);\n }", "title": "" }, { "docid": "7b5ecfad82f42ae9fa842a4402a4ca9e", "score": "0.57548016", "text": "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "title": "" }, { "docid": "306e3f53a73b7e0818758684110594c0", "score": "0.5743868", "text": "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "title": "" }, { "docid": "10120748617f9f0c581b78bd86928163", "score": "0.57396007", "text": "public LigneCommande() {\n initComponents();\n }", "title": "" }, { "docid": "59d62db15bb937454e369e18a79dfc3a", "score": "0.5739324", "text": "public Captura() {\n initComponents();\n }", "title": "" }, { "docid": "056a86a45ba6d23623a1848f91124565", "score": "0.5735367", "text": "public void init(String pionsNoirs, String pionsBlancs) {\n\t\tinit(Couleur.noir(), pionsNoirs); \n\t\tinit(Couleur.blanc(), pionsBlancs); \n\t\treafficher();\n }", "title": "" }, { "docid": "5a3086c168a8001d58e0b17f7efb28b4", "score": "0.573274", "text": "public void init(){\n\t\t\n\t\t// Definition general de la fenetre\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/*********** PARTIE HAUTE *************/\n\t\t\n\t\t// JPanel qui va contenir l'interface de controle\n\t\tJPanel panH=new JPanel();\n\t\t\n\t\t// Ajout de la zone de saisie du mot binaire\n\t\tpanH.add(new JLabel(\"Mot binaire:\"));\n\t\tentree=new JTextField(\"1100110101\",10);\n\t\tpanH.add(entree);\n\t\t\n\t\t// Ajout de la liste de selection du codage\n\t\tcodage=new JComboBox();\n\t\tcodage.addItem(\"NRZ\");\n\t\tcodage.addItem(\"NRZI\");\n\t\tcodage.addItem(\"Manchester\");\n\t\tcodage.addItem(\"Manchester differentiel\");\n\t\tcodage.addItem(\"Miller\");\n\t\t\n\t\tpanH.add(codage);\n\t\t\n\t\t\n\t\t// Ajout du bouton d'execution du codage\n\t\tconvertir=new JButton(\"Convertir\");\n\t\tconvertir.addActionListener(new EcouteurBouton());\n\t\tpanH.add(convertir);\n\t\t\n\t\t\n\t\tadd(panH,BorderLayout.NORTH);\n\t\t\n\t\t\n\t\t/*********** PARTIE CENTRALE *************/\n\t\t\n\t\t// Ajout de la zone d'affichage de la solution\n\t\tzoneGraph=new Dessin();\n\t\tadd(zoneGraph);\n\t}", "title": "" }, { "docid": "1e08b4b14183473bce2909e3add3b86d", "score": "0.5732569", "text": "private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }", "title": "" }, { "docid": "2147c25a89dd97a5375e143ea6eb2356", "score": "0.5728914", "text": "public PConductor() {\n initComponents();\n PNew();\n PGetConductor(TxtBusqueda.getText(), \"T\");\n \n }", "title": "" }, { "docid": "ce6b5b4e33339eced50fe92d57115b32", "score": "0.5721305", "text": "private void initialize() {\n\t\tdisenioVentana();\n\n\t\tdisenioMenu();\n\n\t\tdisenio_Cuerpo();\n\n\t}", "title": "" }, { "docid": "018d3bcd3dc20770dfef8f2a7ab29dc8", "score": "0.57203656", "text": "public void initiate() {\n\t\tallDepartments.put(HRDepartment.class.getSimpleName(), HRDepartment.getInstance());\n\t\tallDepartments.put(ProductionDepartment.class.getSimpleName(), ProductionDepartment.getInstance());\n\t\tallDepartments.put(WarehousingDepartment.class.getSimpleName(), WarehousingDepartment.getInstance());\n\t\tallDepartments.put(FinanceDepartment.class.getSimpleName(), FinanceDepartment.getInstance());\n\t\tallDepartments.put(MarketingDepartment.class.getSimpleName(), MarketingDepartment.getInstance());\n\t\tallDepartments.put(LogisticsDepartment.class.getSimpleName(), LogisticsDepartment.getInstance());\n\t\tallDepartments.put(ProcurementDepartment.class.getSimpleName(), ProcurementDepartment.getInstance());\n\t\tallDepartments.put(ResearchAndDevelopmentDepartment.class.getSimpleName(), ResearchAndDevelopmentDepartment.getInstance());\n\t\tallDepartments.put(SalesDepartment.class.getSimpleName(), SalesDepartment.getInstance());\n\n\t\tcustomerSatisfaction = CustomerSatisfaction.getInstance();\n\t\tcustomerDemand = CustomerDemand.getInstance();\n\t\texternalEvents = ExternalEvents.getInstance();\n\t\tcompanyEcoIndex = CompanyEcoIndex.getInstance();\n\t\tinternalFleet = InternalFleet.getInstance();\n\t\tbankingSystem = BankingSystem.getInstance();\n\t\tproductSupport = ProductSupport.getInstance();\n\t\temployeeGenerator = EmployeeGenerator.getInstance();\n\t\temployeeGenerator.setDepartment((HRDepartment) allDepartments.get(HRDepartment.class.getSimpleName()));\n\t}", "title": "" }, { "docid": "16cf163a26185acb6396d54a78a75cd5", "score": "0.57183343", "text": "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "title": "" }, { "docid": "67bd6ea642625f5a8b2c813582fea478", "score": "0.5711869", "text": "public ControladorCoche() {\n\t}", "title": "" }, { "docid": "16be365418d98a17dfbfcde9975b7d6f", "score": "0.5709819", "text": "public void inicializarTableroConCelulasAleatorias() {\r\n\t\t\r\n\t\tint fila, columna, contadorCelulas = 0;\r\n\t\t\r\n\t\t// Cuando el contador de celulas sea menos que el numero de celulas 6.\r\n\t\twhile(contadorCelulas < Constantes.NUMERO_CELULAS) {\r\n\t\t\t\r\n\t\t\t// Genera un random de filas(3) y de columnas(4).\r\n\t\t\tdo {\r\n\t\t\t\t\r\n\t\t\t\tfila = (int) (Math.random() * EntradaDeDatos.getFilasSuperficie());\r\n\t\t\t\tcolumna = (int) (Math.random() * EntradaDeDatos.getColumnasSuperficie());\r\n\t\t\t\t\r\n\t\t\t}while((fila == EntradaDeDatos.getFilasSuperficie()) || (columna == EntradaDeDatos.getColumnasSuperficie()));\r\n\t\t\t\r\n\t\t\t// Cuando esa posicion de la superficie esta a null.\r\n\t\t\tif(superficie[fila][columna] == null) {\r\n\t\t\t\t\r\n\t\t\t\t// Creamos una celula y la anadimos a la superficie.\r\n\t\t\t\tCelula celula = new Celula();\r\n\t\t\t\tsuperficie[fila][columna] = celula;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t// Anadimos los valores fila y columna a los arrays.\r\n\t\t\t\tinsertarCelulaEnArrays(fila, columna);\r\n\t\t\t\t\r\n\t\t\t\t// Actualizamos contador de celulas.\r\n\t\t\t\tcontadorCelulas++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "55da4eaa98725e4508a66d55990f4359", "score": "0.5706373", "text": "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "title": "" }, { "docid": "8a39ea5a77db7de72731999bd4e27bb3", "score": "0.57032645", "text": "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "title": "" }, { "docid": "cb5dfdde76ff48d76508685b6f43bee9", "score": "0.5695378", "text": "public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "title": "" }, { "docid": "d231723e96f338d6c21f08452c5175cb", "score": "0.56921595", "text": "public void initialiserLesCasesDuPlateau()\n\t{\n\t\tthis.unTableau.removeAll();\n\t\t\n\t\tfor(int nombreDeCasesParLigne = 1 ; nombreDeCasesParLigne < 4 ; nombreDeCasesParLigne++)\n\t\t\tfor(int nombreDeCasesParColonne = 1 ; nombreDeCasesParColonne < 4 ; nombreDeCasesParColonne++)\n\t\t\t\tthis.unTableau.add(new BoutonCase(\"\",nombreDeCasesParLigne,nombreDeCasesParColonne, this.unControleur, this));\n\t\t\n\t\tthis.unTableau.updateUI();\n\t}", "title": "" }, { "docid": "2c8960da1e5a3b40d735dc92fbd02046", "score": "0.569168", "text": "private void startComponents(){\n\n if(isAllowed(sentinel)){\n SentinelComponent sentinelComponent = new SentinelComponent(getInstance());\n sentinelComponent.getCanonicalName();\n }\n\n if(isAllowed(\"fileserver\")){\n FileServer fileServer = new FileServer(getInstance());\n fileServer.getCanonicalName();\n }\n\n if(isAllowed(\"manager\")){\n ManagerComponent Manager = new ManagerComponent(getInstance());\n Manager.getCanonicalName();\n }\n\n// if(isAllowed(\"sdk\")){\n// SDK sdk = new SDK(getInstance());\n// sdk.getCanonicalName();\n// }\n\n if(isAllowed(\"centrum\")){\n CentrumComponent centrum1 = new CentrumComponent(getInstance(), null);\n centrum1.getCanonicalName();\n }\n\n }", "title": "" }, { "docid": "975f94e741a39143b156660352ff5f4c", "score": "0.5689512", "text": "public static void init() {\n\t\tregisterRecipes();\n\t\tregisterShapelessRecipes();\n\t\tregisterSmeltingRecipes();\n\t}", "title": "" }, { "docid": "57285a5e39452035feae455a67f66a78", "score": "0.56894624", "text": "@PostConstruct\n\tpublic void init()\n\t{\n\t\tlogModule.info(TaskGenerator.class, \"初始化 Task generator...\");\n\t}", "title": "" }, { "docid": "9893c71af4208090634c66164e652b7d", "score": "0.56856436", "text": "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"bebexitaHemoxita@gmail.com\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "title": "" }, { "docid": "20ace179a15cdbe1861513e94cf8fd1f", "score": "0.5683996", "text": "public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}", "title": "" }, { "docid": "f10ff9a4c79bcd9fd2b48fcb070aaaaf", "score": "0.56772137", "text": "public void initComponents() {\n Iterator<Component> itComponent = this.components.iterator();\n while (itComponent.hasNext()) {\n itComponent.next().init(this);\n }\n\n Iterator<Script> itScript = this.scripts.iterator();\n while (itScript.hasNext()) {\n itScript.next().init(this);\n }\n System.out.println(this.owner.id + \" : \" + this.components.toString() + \" \" + this.scripts.toString());\n\n }", "title": "" }, { "docid": "61bb3c942ef8c559d94437cb047f5870", "score": "0.56752366", "text": "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "title": "" }, { "docid": "4fd7b83e4cd70968b8fe42b478959c81", "score": "0.56704044", "text": "public ConsultaCompradores() {\n initComponents();\n \n \n }", "title": "" }, { "docid": "c33491db41ba642a8d4d5b190c29652d", "score": "0.5659258", "text": "private void inicializarComponentes() \n\t{\n\t\tthis.table=new JTable(); \n\t\ttablas.setBackground(Color.white);\n\t\tscroll =new JScrollPane(table); // Scroll controla la tabla\n\t\tthis.add(scroll,BorderLayout.CENTER);\n\t\tthis.add(tablas,BorderLayout.NORTH);\n\t\t\n\t}", "title": "" }, { "docid": "3bdabb18710c30a9ae1b3605896f9679", "score": "0.5655424", "text": "public void inicializar(Coleccion coleccion){\n cargador.inicializar();\n analizador.inicializar();\n gestorAlmacenamiento.inicializar(coleccion);\n\n }", "title": "" }, { "docid": "f21db98f7a5b9f029a9be4d11bdef24d", "score": "0.5654089", "text": "public VPacientes() {\n initComponents();\n inicializar();\n }", "title": "" }, { "docid": "bf1aefcacbc6155bd4517ec1463c7950", "score": "0.56539035", "text": "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "title": "" }, { "docid": "f96cf39f6ca9036db83484ce12fd7f7d", "score": "0.5648781", "text": "public Jogador()\n {\n pecasValidas = new ArrayList <Peca> ();\n }", "title": "" }, { "docid": "4a5155f4b1126249895d6cddc4d92f3c", "score": "0.5648151", "text": "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "title": "" }, { "docid": "68d511dcc39fba52ebb5b1df2af8ef0f", "score": "0.56481016", "text": "private void initialiseAll() {\n // now that all the BeanDescriptors are in their map\n // we can initialise them which sorts out circular\n // dependencies for OneToMany and ManyToOne etc\n BeanDescriptorInitContext initContext = new BeanDescriptorInitContext(asOfTableMap, draftTableMap, asOfViewSuffix);\n\n // PASS 1:\n // initialise the ID properties of all the beans\n // first (as they are needed to initialise the\n // associated properties in the second pass).\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseId(initContext);\n }\n\n // PASS 2:\n // now initialise all the inherit info\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initInheritInfo();\n }\n\n // PASS 3:\n // now initialise all the associated properties\n for (BeanDescriptor<?> d : descMap.values()) {\n // also look for intersection tables with\n // associated history support and register them\n // into the asOfTableMap\n d.initialiseOther(initContext);\n }\n\n // PASS 4:\n // now initialise document mapping which needs target descriptors\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseDocMapping();\n }\n\n // create BeanManager for each non-embedded entity bean\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initLast();\n if (!d.isEmbedded()) {\n beanManagerMap.put(d.fullName(), beanManagerFactory.create(d));\n checkForValidEmbeddedId(d);\n }\n }\n }", "title": "" }, { "docid": "2e5f94deb46339cef53d7fbd0388214d", "score": "0.5641231", "text": "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "title": "" }, { "docid": "d37246184f77b6be9cc39af72d16979a", "score": "0.563591", "text": "public void initCapes() {}", "title": "" }, { "docid": "d54b4506a465f4bcbe110e82b238f560", "score": "0.5634183", "text": "private void delegateConstructors(ClassWriterTracker ct, Class type, String superClassFileNname) {\n Constructor[] constructors = type.getConstructors();\n\n for (Constructor constructor : constructors) {\n Class[] params = constructor.getParameterTypes();\n String[] exceptionTypes = AsmHelper.getInternalNames(constructor.getExceptionTypes());\n String descriptor = Type.getConstructorDescriptor(constructor);\n MethodVisitor mv = ct.visitMethod(Opcodes.ACC_PUBLIC, \"<init>\", descriptor, null, exceptionTypes);\n mv.visitCode();\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n int stackPos = 1;\n for (Class param : params) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(param), stackPos);\n stackPos += Type.getType(param).getSize();\n }\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, superClassFileNname, \"<init>\", descriptor, false);\n\n mv.visitInsn(Opcodes.RETURN);\n mv.visitMaxs(-1, -1);\n mv.visitEnd();\n }\n }", "title": "" }, { "docid": "fe606b24c0e21f41ea9ccb0fa1384b41", "score": "0.563177", "text": "public ConsumoViaCep() {\n initComponents();\n }", "title": "" }, { "docid": "46dd17b833d71d75b9998835fac86da8", "score": "0.5630172", "text": "public ComponentsFactory() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "122fb7103f3111d80f0ffe9cd9db8e0f", "score": "0.56278425", "text": "public Operacoes() {\n initComponents();\n }", "title": "" }, { "docid": "abb29e56d3978e2971b5c6ab4ea7080b", "score": "0.5627064", "text": "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "title": "" }, { "docid": "244a419eb55eefc1397e59b1d733cd27", "score": "0.5627056", "text": "public void consulterClassement() {\n\t\t\n\t}", "title": "" }, { "docid": "2182f58d5d0a5987c70651210d1b3da9", "score": "0.562421", "text": "private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }", "title": "" }, { "docid": "a51cbcd70342a50b02c907b9c1c311dd", "score": "0.5622146", "text": "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "title": "" }, { "docid": "79a4a152d22bc321185b45777b1780ba", "score": "0.56203383", "text": "public TelaCidadaoDescarte() {\n initComponents();\n }", "title": "" }, { "docid": "4062e297ccedd12b533bcfa62857d55d", "score": "0.56189847", "text": "public void init() {\n\t\tTypedQuery<Personne> query = em.createQuery(\"SELECT p FROM Personne p\", Personne.class);\n\t\tList<Personne> clients = query.getResultList();\n\t\tif (clients.size()==0) {\n\t\t\tSqlUtils.executeFile(\"exemple.sql\", em);\n\t\t}\n\t}", "title": "" } ]
84e579bc94bdf0411e293884bee7d249
Getter per l'anno dell'evento
[ { "docid": "42d31ca57b313aad6a92921060e8bded", "score": "0.0", "text": "public int getYear(){\n\t\treturn EYear;\n\t}", "title": "" } ]
[ { "docid": "4105ef9bbeb680837cc250f27553805c", "score": "0.5993142", "text": "public String getAnnotation();", "title": "" }, { "docid": "1b04387048f0436d1fa258b0c1f13bec", "score": "0.59538865", "text": "public String getIdEvento() {\r\n\t\treturn idEvento;\r\n\t}", "title": "" }, { "docid": "ce80699d3d97e9233a8637d330bf14c3", "score": "0.5847037", "text": "public String getNombreEvento() {\r\n\t\treturn nombreEvento;\r\n\t}", "title": "" }, { "docid": "0f0a61b3d6e4a7e3708fec53e788b44c", "score": "0.5826007", "text": "public String getHoraEvento() {\r\n\t\treturn horaEvento;\r\n\t}", "title": "" }, { "docid": "5e4d9492b6613d20dab312e212fead42", "score": "0.58171976", "text": "String relatedAnnotation();", "title": "" }, { "docid": "35aed36879a530ce1e09fa9ea74e6431", "score": "0.57473075", "text": "public java.lang.String getNomeEvento() {\r\n return nomeEvento;\r\n }", "title": "" }, { "docid": "04814c19f3e8330cb0d1e553abb6dc34", "score": "0.5743257", "text": "T getAnnotation() {\n return annotation;\n }", "title": "" }, { "docid": "9bbaf11ae1b69993818ae50ed830a89a", "score": "0.5734115", "text": "java.lang.String getEventId();", "title": "" }, { "docid": "60d799d35a638416a38e11eea52fa16f", "score": "0.5713876", "text": "public int getIdventa() {\n return idventa;\n }", "title": "" }, { "docid": "551bba69576dc86d1d85816bb92c90c7", "score": "0.56603557", "text": "protected String annoClassName() {\n Class<? extends Annotation> ac = annoClass();\n if (ac == Annotation.class) {\n // Special methods recognised by name, so no annotation\n return \"special method\";\n } else if (ac == Getter.class) {\n // Since could also be @Setter or @Deleter\n return \"get-set attribute\";\n } else {\n return ac.getSimpleName();\n }\n }", "title": "" }, { "docid": "b79f6aa3301b5a9fd996d126cfaa889c", "score": "0.5627264", "text": "Annotations getAnnotation() {\r\n return this.annotation;\r\n }", "title": "" }, { "docid": "db78cc2142d1391f48310b70e27265c8", "score": "0.5613662", "text": "public interface EventTag {\n String EXTRA_DETAIL = \"extra_detail\";\n}", "title": "" }, { "docid": "d3cac68133f46dd107b28d06d4c3b4d5", "score": "0.55924565", "text": "public abstract String getOperateEventTag();", "title": "" }, { "docid": "4366effea5e469ac72be2f5491eaaad9", "score": "0.55891293", "text": "public int getAno() {\r\n return ano;\r\n }", "title": "" }, { "docid": "ff5d16db77e4b2f5506410ee018a98a3", "score": "0.55840397", "text": "public abstract @NotNull EditorEventMulticaster getEventMulticaster();", "title": "" }, { "docid": "df84be88e926faf4ac43a29caab9e8eb", "score": "0.5580029", "text": "public abstract String getEventType();", "title": "" }, { "docid": "b9d50d0e555e0208432582a826380dcf", "score": "0.5570282", "text": "public int getAnio() {\n return anio;\r\n }", "title": "" }, { "docid": "a2b7b8b7e0e689f645359f7052e23e19", "score": "0.5563998", "text": "public int getAno() {\n return ano;\n }", "title": "" }, { "docid": "1010a4f6f7297d444955c7a14d7377fe", "score": "0.55497354", "text": "Aritmetico getAt();", "title": "" }, { "docid": "ce9bb6b2b19c074799f94eb8866f6c90", "score": "0.549748", "text": "public int getAnio()\r\n/* 278: */ {\r\n/* 279:355 */ return this.anio;\r\n/* 280: */ }", "title": "" }, { "docid": "805ac8de92593ef015916be8a01bc2c6", "score": "0.54887754", "text": "public abstract String eventType();", "title": "" }, { "docid": "06f61b13e1ff70d9a6eb6a2c40f14abb", "score": "0.5457155", "text": "public interface Annotation {\n /**\n * Gets the annotationName property: Name of annotation.\n *\n * @return the annotationName value.\n */\n String annotationName();\n\n /**\n * Gets the category property: Category of annotation, free form.\n *\n * @return the category value.\n */\n String category();\n\n /**\n * Gets the eventTime property: Time when event occurred.\n *\n * @return the eventTime value.\n */\n OffsetDateTime eventTime();\n\n /**\n * Gets the id property: Unique Id for annotation.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the properties property: Serialized JSON object for detailed properties.\n *\n * @return the properties value.\n */\n String properties();\n\n /**\n * Gets the relatedAnnotation property: Related parent annotation if any.\n *\n * @return the relatedAnnotation value.\n */\n String relatedAnnotation();\n\n /**\n * Gets the inner com.azure.resourcemanager.applicationinsights.fluent.models.AnnotationInner object.\n *\n * @return the inner object.\n */\n AnnotationInner innerModel();\n}", "title": "" }, { "docid": "79ed7a9c0a7d8133e86d24bcbec073e4", "score": "0.5456572", "text": "public int getAno() {\n return ano_;\n }", "title": "" }, { "docid": "f07bc54bdf47fcca2dfc57c532f5e6fc", "score": "0.54555756", "text": "Events getEvents();", "title": "" }, { "docid": "013f946af3bdd8fe1fe43dd8216b0d4b", "score": "0.5447585", "text": "public Docente getDocente() {\n return docente;\n }", "title": "" }, { "docid": "013f946af3bdd8fe1fe43dd8216b0d4b", "score": "0.5447585", "text": "public Docente getDocente() {\n return docente;\n }", "title": "" }, { "docid": "013f946af3bdd8fe1fe43dd8216b0d4b", "score": "0.5447585", "text": "public Docente getDocente() {\n return docente;\n }", "title": "" }, { "docid": "14af9f3eb562a5867b51aa78abe7efa8", "score": "0.54431593", "text": "public Emitente getIND_EMIT() {\n return IND_EMIT;\n }", "title": "" }, { "docid": "0dd657176cbd5e4c5563268e3b6b94dd", "score": "0.5424009", "text": "public IEvent getEvent() {\r\n return event;\r\n }", "title": "" }, { "docid": "8c1e5af769baebcd26bd32cb05d831a3", "score": "0.5422817", "text": "public String getAzienda() {\r\n return Azienda;\r\n }", "title": "" }, { "docid": "e74580367fc578481104cc3aca2857ea", "score": "0.54201674", "text": "SensorLogMessage.EventType getEventType();", "title": "" }, { "docid": "3bb401d4b7ca302ba8a6afa5f12af61b", "score": "0.5415805", "text": "public EventType getEventType() {\n/* 136 */ return this.type;\n/* */ }", "title": "" }, { "docid": "5cbc34b6b915232b7c8143f3dd226a32", "score": "0.5409505", "text": "public Asiento getAsiento()\r\n/* 616: */ {\r\n/* 617:824 */ return this.asiento;\r\n/* 618: */ }", "title": "" }, { "docid": "a574f38075799fc17fb00c41dce6121e", "score": "0.53969043", "text": "public MovimientoInventario getAjusteInventario()\r\n/* 645: */ {\r\n/* 646:703 */ return this.ajusteInventario;\r\n/* 647: */ }", "title": "" }, { "docid": "8480dadc100d156f2635bbe65b5eb785", "score": "0.53943264", "text": "@Override\n\tpublic java.lang.String getStato() {\n\t\treturn _anagrafica.getStato();\n\t}", "title": "" }, { "docid": "fac96b151fb650cec93e645ed4862eff", "score": "0.5384339", "text": "public EcfNotaEletronica getNota() {\n return nota;\n }", "title": "" }, { "docid": "b497d18e5fbbb05f1e51119d4e751b9f", "score": "0.5383275", "text": "@Override\n\tpublic java.lang.String getNote_autorizzaz() {\n\t\treturn _richiestaPubblicSiti.getNote_autorizzaz();\n\t}", "title": "" }, { "docid": "cc239e8916476b8c17318119445e8842", "score": "0.53809774", "text": "public String getEventoApuesta() {\r\n\t\treturn eventoApuesta;\r\n\t}", "title": "" }, { "docid": "a89e80d65a88d776caa4518b3328b9fd", "score": "0.5361794", "text": "public int getAno() {\n return ano_;\n }", "title": "" }, { "docid": "1095f2cb6fb6ddb5f85c76596f8e89b4", "score": "0.5361648", "text": "public int getAtributo() {\r\n return atributo;\r\n }", "title": "" }, { "docid": "ac78868fd0cc224ea8414251f1d48a46", "score": "0.53577393", "text": "public String getStato();", "title": "" }, { "docid": "02382468405bffd3c1694a2fb726c8b3", "score": "0.53459305", "text": "Evento getEventById(Integer id);", "title": "" }, { "docid": "e87aeb0de379e21c93e18614b61a1779", "score": "0.5332754", "text": "@Override\n\tpublic java.lang.String getNote() {\n\t\treturn _anagrafica.getNote();\n\t}", "title": "" }, { "docid": "348365385651103a712fed287b48601c", "score": "0.5332684", "text": "int getEventId();", "title": "" }, { "docid": "348365385651103a712fed287b48601c", "score": "0.5332684", "text": "int getEventId();", "title": "" }, { "docid": "348365385651103a712fed287b48601c", "score": "0.5332684", "text": "int getEventId();", "title": "" }, { "docid": "348365385651103a712fed287b48601c", "score": "0.5332684", "text": "int getEventId();", "title": "" }, { "docid": "c12e9c5fb0897670e32987a8e817234e", "score": "0.5317055", "text": "Astronomy getAstronomy();", "title": "" }, { "docid": "ab60563daa56968062e59c889fe7401d", "score": "0.5302226", "text": "public String getFechaEvento() {\r\n\t\treturn fechaEvento;\r\n\t}", "title": "" }, { "docid": "5e9db2edea25e968b26cf5a11e4f5312", "score": "0.5295133", "text": "public NoteOn getNoteOn(){\n newNoteOnArrived = false;\n return noteOn;\n }", "title": "" }, { "docid": "64b1cbfde2311878eeb732d2014b4fc8", "score": "0.52902246", "text": "@MojeJednoclennaAnotace(100)\n\tpublic static void mojeMetoda() {\n\t\tSingle ob = new Single();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tMethod m = ob.getClass().getMethod(\"mojeMetoda\");\n\t\t\t\n\t\t\tMojeJednoclennaAnotace anno = m.getAnnotation(MojeJednoclennaAnotace.class);\n\t\t\t\n\t\t\tSystem.out.println(anno.value()); // zobrazi se hodnota 100\n\t\t\t\n\n\t\t}\n\t\tcatch (NoSuchMethodException exc) {\n\t\t\tSystem.out.println(\"Dana metoda nebyla nalezena\");\n\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "1c816799cbe082ce5eb4bd820e854822", "score": "0.5285962", "text": "public int getAno() {\r\n\t\treturn this.ano; \t\r\n\t}", "title": "" }, { "docid": "1031458ec0dd9003694b3dc4a51acaf3", "score": "0.52849144", "text": "@SuppressWarnings(\"unchecked\")\n private Annotation getAnnot(final ASTNode n) {\n final Annotation v = (Annotation) super.get(n);\n return v;\n }", "title": "" }, { "docid": "f6dd1b497866ceebd0ca21b135a7bb38", "score": "0.5280174", "text": "Atributo getAtr();", "title": "" }, { "docid": "12f0e8b898f98a0f67bcf05a3620ce5f", "score": "0.5278077", "text": "public CompleteTextElementType getExtendMetaControlled() {\r\n\t\treturn atributoTexto;\r\n\t}", "title": "" }, { "docid": "6746e98ce1127a22b5982e78c6c32e98", "score": "0.5267425", "text": "private Evento caricaEvento(Evento evento) {\n\t\tif(evento == null || evento.getUid() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn tipoBeneCespiteDad.findEventoByUid(evento);\n\t\t\n\t}", "title": "" }, { "docid": "9a14b66d49494bd27cf3c53b6e0c5544", "score": "0.5259336", "text": "String getEtiqueta();", "title": "" }, { "docid": "596b1693b2313914d001844ff6ee35a1", "score": "0.52450573", "text": "String annotationName();", "title": "" }, { "docid": "10de4b0b7af3015c988eb12970d8e4cf", "score": "0.5243632", "text": "public void etiquetaNodos();", "title": "" }, { "docid": "0d7a5421a46d0b49a393f609cdac6798", "score": "0.5235003", "text": "public void customEvent(DroneEventObject event);", "title": "" }, { "docid": "08345eab5664357f8cef00b9cdee0ec1", "score": "0.5229631", "text": "java.lang.String getEventName();", "title": "" }, { "docid": "08345eab5664357f8cef00b9cdee0ec1", "score": "0.5229494", "text": "java.lang.String getEventName();", "title": "" }, { "docid": "08345eab5664357f8cef00b9cdee0ec1", "score": "0.5229494", "text": "java.lang.String getEventName();", "title": "" }, { "docid": "ca2d2b0bd6fc2a41f7481dc437b2b73e", "score": "0.5221709", "text": "public String getEtiqueta();", "title": "" }, { "docid": "385060b60ffb2071cfe0fc7065f3fe6c", "score": "0.5216261", "text": "public java.lang.String getAnio(){\r\n return localAnio;\r\n }", "title": "" }, { "docid": "332e9ce049d4d1433bd8984e3a5877df", "score": "0.5215014", "text": "public EventCreator getEventCreator();", "title": "" }, { "docid": "012dc5543a77394bf7de7a16ccbfbdb2", "score": "0.52111065", "text": "public long getEventId();", "title": "" }, { "docid": "ed86c73c6792855a69d0e2142165a6e8", "score": "0.51937526", "text": "TypeAssociation getAPourTrancheHoraireTrancheMeteo();", "title": "" }, { "docid": "9d66b5dbe52100c7878d3c90dafc7ff8", "score": "0.5186709", "text": "public ArrayOfEvent getEvents(){\n return localEvents;\n }", "title": "" }, { "docid": "c37a58de6f168bac55344055019a54c8", "score": "0.5179629", "text": "Atributo getAtr1();", "title": "" }, { "docid": "09046ce294f679502d9d01c184887773", "score": "0.51786053", "text": "public T getEvent() {\n return this.event;\n }", "title": "" }, { "docid": "66f7a4bf018db0c557315445036c6c34", "score": "0.5178581", "text": "public java.lang.String getEventId(){\n return localEventId;\n }", "title": "" }, { "docid": "66f7a4bf018db0c557315445036c6c34", "score": "0.5178581", "text": "public java.lang.String getEventId(){\n return localEventId;\n }", "title": "" }, { "docid": "66f7a4bf018db0c557315445036c6c34", "score": "0.5178581", "text": "public java.lang.String getEventId(){\n return localEventId;\n }", "title": "" }, { "docid": "f4b0b4306ee4f12435a04b7f071d4bfb", "score": "0.517199", "text": "@Override\npublic String getA_notes() {\n\treturn super.getA_notes();\n}", "title": "" }, { "docid": "70d17784a114e665d46301b3484c5e91", "score": "0.5159544", "text": "public Event getEvent(){\n return localEvent;\n }", "title": "" }, { "docid": "70d17784a114e665d46301b3484c5e91", "score": "0.5159544", "text": "public Event getEvent(){\n return localEvent;\n }", "title": "" }, { "docid": "e12a4fd91cbaf0a25e380c18f8a6054b", "score": "0.51506996", "text": "public interface IMessageEvents {\r\n\t\r\n\t/** Id of the Chat message event. */\r\n\tint ID_CHAT = 0;\r\n\t\r\n\t/** Id of the Ping message event. */\r\n\tint ID_PING = 1;\r\n\t\r\n\t/** Id of the Loading Progress message event. */\r\n\tint ID_LOADING_PROGRESS = 2;\r\n\t\r\n\t/** Id of the Server Ping message event. */\r\n\tint ID_SERVER_PING = 3;\r\n\t\r\n\t\r\n\t/**\r\n\t * Returns the array of message events.\r\n\t * \r\n\t * @return the array of message events\r\n\t */\r\n\tIEvent[] getEvents();\r\n\t\r\n}", "title": "" }, { "docid": "abacd575a6c03ed7f7137dfe3e742059", "score": "0.5147367", "text": "public Tienda getTienda() {\r\n\t\treturn this.tienda;\r\n\t}", "title": "" }, { "docid": "74d738da7a521dfa95db6b1578dcfc60", "score": "0.5144163", "text": "public interface Event {\n String getType();\n\n void setType(String type);\n\n String getData();\n\n void setData(String data);\n\n long getTimeStamp();\n\n void setTimeStamp(long timeStamp);\n}", "title": "" }, { "docid": "8abaf3c479cf73498cde19a07212002d", "score": "0.514179", "text": "@Override\n\tpublic java.lang.String getCodiceAzienda() {\n\t\treturn _anagrafica.getCodiceAzienda();\n\t}", "title": "" }, { "docid": "2bc7ad2d15f96f807eee4a56c92990af", "score": "0.5136724", "text": "Sentence getAntecedent();", "title": "" }, { "docid": "f16e276abc762ffce44dd6ce3f1b4038", "score": "0.51346636", "text": "public java.lang.String getEmitente() {\n return emitente;\n }", "title": "" }, { "docid": "69eef0130d1653b01fdf0e77514c8283", "score": "0.5134094", "text": "public java.lang.String getObservaciones(){\n return localObservaciones;\n }", "title": "" }, { "docid": "6af435852cd056da1993f0be82c0b4ae", "score": "0.5129289", "text": "RBMessage.RobotEvent getRobotEvent();", "title": "" }, { "docid": "f58c5dda82cb3eb8baf84e02acacd002", "score": "0.5128477", "text": "public abstract String getOnclick();", "title": "" }, { "docid": "bfe0fc6b4c47fe34bd5eda5befce3aff", "score": "0.5124855", "text": "@Override\n\tpublic void calienta() {\n\n\t}", "title": "" }, { "docid": "2120c0eb50902233435a953088b585e1", "score": "0.512309", "text": "public String getTipoEmision()\n/* 45: */ {\n/* 46:119 */ return this.tipoEmision;\n/* 47: */ }", "title": "" }, { "docid": "70bbc5edc1392713404d4f70c0cb4ef8", "score": "0.5120043", "text": "EventDto getCurrentEvent();", "title": "" }, { "docid": "bb963f445a56590ead747a3d0c8e4840", "score": "0.51188546", "text": "@Override\r\n\tpublic int compareTo(Evento o) {\n\t\treturn this.mostra.getBegin() - o.mostra.getBegin();\r\n\t}", "title": "" }, { "docid": "1ded93855f4faf865267c38bcf67b113", "score": "0.5109762", "text": "public Iterator getOnEventDefs();", "title": "" }, { "docid": "ffd6268ffe3f7a88862c1dcacbb144f4", "score": "0.51084864", "text": "@Override\n\tpublic java.lang.String getTitolo() {\n\t\treturn _richiestaPubblicSiti.getTitolo();\n\t}", "title": "" }, { "docid": "ef9c83196b7d32bbe07c52d4dd3fbf16", "score": "0.510458", "text": "public String getNota()\r\n/* 225: */ {\r\n/* 226:326 */ return this.nota;\r\n/* 227: */ }", "title": "" }, { "docid": "ef28ea618d0524d150e5c43a62188ed1", "score": "0.51045305", "text": "public void classeAdded(AddListaDSClasseEvento event);", "title": "" }, { "docid": "3fc743d2d70ee6b220a33122fbf1ca04", "score": "0.5102055", "text": "EventDefinition event();", "title": "" }, { "docid": "87dc1df280e27174d2bd8f3ba7958c57", "score": "0.5099296", "text": "public final String getEvent()\n {\n return _event;\n }", "title": "" }, { "docid": "a0d7ab42ac0ec9690c3b161e494114c1", "score": "0.50961846", "text": "INote getNote();", "title": "" }, { "docid": "d1975f8fc4367558ed858600a3a5d069", "score": "0.50944597", "text": "public Event[] getEvent(){\n return localEvent;\n }", "title": "" }, { "docid": "dfab67c114ffbdff7f0cc61ef593ee29", "score": "0.5092021", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"A data de adocao é \" + getDataAdocao();\n\t}", "title": "" }, { "docid": "d1bbe58a00554794573dce83444aa3a7", "score": "0.5088257", "text": "@ApiModelProperty(value = \"Entity name: always 'event-type'.\")\n public String getObject() {\n return object;\n }", "title": "" }, { "docid": "79598c266f8deac5ad2fe136abde92ba", "score": "0.50860566", "text": "public String getEvent() {\n\t\treturn event;\n\t}", "title": "" } ]
28f1d245af2843b118f57628e0ac91ad
kill a given session in the datatree
[ { "docid": "b40cce5ff90b935133e42360ec200748", "score": "0.6234676", "text": "public void killSession(long sessionId, long zxid) {\n dataTree.killSession(sessionId, zxid);\n }", "title": "" } ]
[ { "docid": "c03e61576ef4174fb5997861eb418bc0", "score": "0.688356", "text": "private void sessionKill() {\n // prompt for the sid to trace\n// String msg = \"If connected as SYSDBA then an audit entry will be written to the alert log.\\n\\n\" +\n// \"Enter the SID of the session you wish to kill:\";\n String msg = \"SYSDBA or DBA privileges are required...\\n\\nEnter the SID of the session you wish to kill:\";\n String tmp = JOptionPane.showInputDialog(this,msg,\"Kill Session\",JOptionPane.QUESTION_MESSAGE);\n if (tmp instanceof String) {\n int sid = Integer.valueOf(tmp).intValue();\n\n // check the sid exists\n Vector resultSetRow = getSidDetails(sid);\n String serial = resultSetRow.elementAt(3).toString();\n try {\n if (!resultSetRow.elementAt(0).equals(\"-1\")) {\n // get confirmation\n msg = \"Killing Session \" + sid + \", serial# \" + serial;\n int opt = JOptionPane.showConfirmDialog(this,msg,\"Kill Session\",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE);\n\n // kill session\n if (opt == 0) {\n String sql = \"alter system kill session '\" + sid + \",\" + serial + \"'\";\n try {\n // perform the kill\n int rows = ConnectWindow.getDatabase().executeUpdate(sql,false);\n\n // write a kill log to the RichMon log diectory\n boolean sessionTabExists = false;\n File killLog;\n if (ConnectWindow.isLinux()) {\n killLog = new File(ConnectWindow.getBaseDir() + \"/KillLog/RichMon Killed Session \" + sid + \" on Instance \" + instanceName + \".html\");\n }\n else {\n killLog = new File(ConnectWindow.getBaseDir() + \"\\\\KillLog\\\\RichMon Killed Session \" + sid + \" on Instance \" + instanceName + \".html\");\n }\n BufferedWriter killLogWriter = new BufferedWriter(new FileWriter(killLog));\n\n // get the sessionPanel for this sid\n int numSessionPanels = sessionV.size();\n SessionDetailPanel mySessionPanel;\n for (int i=0; i < numSessionPanels; i++) {\n mySessionPanel = (SessionDetailPanel) sessionV.get(i);\n if (mySessionPanel.sid == sid) {\n // create an outputHTML process to write the kill log containing all QueryResult's from the last iteration\n OutputHTML killLogOutputHTML = new OutputHTML(killLog, killLogWriter,mySessionPanel);\n sessionTabExists = true;\n break;\n }\n }\n\n if (!sessionTabExists) {\n killLogWriter.write(\"<html>\\n\");\n killLogWriter.write(\"<body>\\n\");\n killLogWriter.write(\"<table border cellspacing=0 cellpadding=1>\");\n killLogWriter.write(\"<tr><td>Sid</td><td>\" + resultSetRow.elementAt(1) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>SPid</td><td>\" + resultSetRow.elementAt(0) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Username</td><td>\" + resultSetRow.elementAt(2) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Serial#</td><td>\" + resultSetRow.elementAt(3) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Logon Time</td><td>\" + resultSetRow.elementAt(4) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Server</td><td>\" + resultSetRow.elementAt(5) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Shared Server</td><td>\" + resultSetRow.elementAt(6) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Dispatcher</td><td>\" + resultSetRow.elementAt(7) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Status</td><td>\" + resultSetRow.elementAt(8) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Program</td><td>\" + resultSetRow.elementAt(9) + \"</td></tr>\\n\");\n killLogWriter.write(\"<tr><td>Machine</td><td>\" + resultSetRow.elementAt(10) + \"</td></tr>\\n\");\n killLogWriter.write(\"</body>\\n\");\n killLogWriter.write(\"</html>\\n\");\n }\n\n // close the kill log\n killLogWriter.close();\n\n // inform user the kill succeeded\n// msg = \"Session \" + sid + \" Killed\\n\\nA log of the session killed has been written to your RichMon log directory\" +\n// \"\\n\\nIf you have sysdba privilege this has also been logged to the alert log.\";\n msg = \"Session \" + sid + \" Killed\\n\\nA log of the session killed has been written to your RichMon log directory.\";\n\n JOptionPane.showMessageDialog(this,msg,\"Kill Session\",JOptionPane.INFORMATION_MESSAGE);\n\n if (ConnectWindow.isSysdba()) {\n try\n {\n msg = \"RichMon: Session Killed: Sid: \" + sid + \"\\n\" +\n \" Serial#: \" + serial + \"\\n\" +\n \" Username: \" + resultSetRow.elementAt(2) + \"\\n\" +\n \" SPid: \" + resultSetRow.elementAt(0) + \"\\n\" +\n \" Logon Time: \" + resultSetRow.elementAt(4) + \"\\n\" +\n \" Server: \" + resultSetRow.elementAt(5) + \"\\n\" +\n \" Shared Server: \" + resultSetRow.elementAt(6) + \"\\n\" +\n \" Dispatcher: \" + resultSetRow.elementAt(7) + \"\\n\" +\n \" Status: \" + resultSetRow.elementAt(8) + \"\\n\" +\n \" Program: \" + resultSetRow.elementAt(9) + \"\\n\" +\n \" Machine: \" + resultSetRow.elementAt(10);\n // ConnectWindow.getDatabase().writeMSGToAlert(msg);\n }\n catch (Exception eee) {\n displayError(eee,this,\"Writing audit message to the alert log\");\n }\n }\n }\n catch (Exception ee) {\n displayError(ee,this);\n }\n }\n }\n else {\n throw new NoSuchSessionExistsException(\"Sid : \" + sid);\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }\n }", "title": "" }, { "docid": "cbb296156855577e54212992be91d122", "score": "0.6196876", "text": "public void stop() {\n session.close(false);\n }", "title": "" }, { "docid": "95392bcf2a0788283f4102b02e40f37d", "score": "0.6021428", "text": "public void deleteSession(int uid);", "title": "" }, { "docid": "42a28c2739bec2895c0aff315f07a814", "score": "0.598356", "text": "public void kill();", "title": "" }, { "docid": "42a28c2739bec2895c0aff315f07a814", "score": "0.598356", "text": "public void kill();", "title": "" }, { "docid": "eae0ab20d4fdf2738eb4d810d325d14c", "score": "0.59424263", "text": "@Override\r\n \t\t\tpublic void deleteSessions() {\n \t\t\t\t\r\n \t\t\t}", "title": "" }, { "docid": "fbf50766d279a5cbe9f71293a3c7799e", "score": "0.5877155", "text": "@Override\n\tpublic void deleteSession(String sessionId) {\n\t\t\n\t}", "title": "" }, { "docid": "6dea078045eecb7eaf831248e3918bf7", "score": "0.5838365", "text": "@Override\n\tpublic void kill() {\n\n\t}", "title": "" }, { "docid": "72f82783e0e36b12877503dccae3330a", "score": "0.58324724", "text": "protected abstract void doKill();", "title": "" }, { "docid": "3e9bc4ec49e3b84df166db084bdeaead", "score": "0.5817629", "text": "void closeSession();", "title": "" }, { "docid": "3e9bc4ec49e3b84df166db084bdeaead", "score": "0.5817629", "text": "void closeSession();", "title": "" }, { "docid": "4b89b6b48143e2d58c6032ec8baa7883", "score": "0.581492", "text": "public void Kill();", "title": "" }, { "docid": "5e82b7eea4e9e8c4bc28e5136d9e084d", "score": "0.57772255", "text": "public final void kill() {\n doKill();\n }", "title": "" }, { "docid": "9ddedbd7448df6bf670c352ba213a24b", "score": "0.576859", "text": "void kill(long procid);", "title": "" }, { "docid": "0ddb21318f13b5a6d97d01621ecb5ef9", "score": "0.5760456", "text": "@Override\n public void kill()\n {\n }", "title": "" }, { "docid": "6a08f60fe6625616a9f6d0a5641acb6f", "score": "0.5732199", "text": "@Override\r\n \t\t\tpublic void deleteSession(long sessionId) throws SSessionNotFoundException {\n \t\t\t\t\r\n \t\t\t}", "title": "" }, { "docid": "7f5f79d109e64ec5302d1d0b3b533d0d", "score": "0.5707069", "text": "void unsetSessionID();", "title": "" }, { "docid": "aaa2552e7afe18bb08dca9016dff5257", "score": "0.57016575", "text": "@Override \n public void commandKill(int id) {\n\n }", "title": "" }, { "docid": "0ab45fc4bcfef103bf478e254da4cdf3", "score": "0.56971496", "text": "public void treeClosed(SrvSession sess, TreeConnection tree) {\n }", "title": "" }, { "docid": "277292077065481db9c856ce0fbae5be", "score": "0.55840963", "text": "private void destroySession(Session session) {\n\r\n\t}", "title": "" }, { "docid": "686624a46da1a70175b8b9c697b39e97", "score": "0.5578155", "text": "public void stopSync(\r\n\t\t\tObject sessionToken);", "title": "" }, { "docid": "691c33b4b477d4235bec90c6b7c8443e", "score": "0.55558115", "text": "public void terminateSession(){\n\t\t\t\n\t\t\tsendMessage2Client(\"Session Terminated\");\n\t\t\t\n\t\t\tdb.getRecord(keyname).setClientStatus(\"TERMINATED\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tccSocket.close();\n\t\t\t\t\t\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\tdb.getRecord(keyname).setClientStatus(\"LOST\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0bbaef935e2c324022599a012b976440", "score": "0.55376273", "text": "public void invalidateSessionobjects(){\n\n\t}", "title": "" }, { "docid": "4456f3f886064c49445162fefdfec1e9", "score": "0.55373067", "text": "public void kill()\n\t{\n\t\tisKilled = true;\n\t}", "title": "" }, { "docid": "a3eb22aad24b3fec654435de8fd8d327", "score": "0.55331415", "text": "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}", "title": "" }, { "docid": "9f214bd58b5d1c6ba77880510dcf856c", "score": "0.5511987", "text": "void exitSession()\n\t{\n\t\t// clear out our watchpoint list and displays\n\t\t// keep breakpoints around so that we can try to reapply them if we reconnect\n\t\tm_displays.clear();\n\t\tm_watchpoints.clear();\n\n\t\tif (m_fileInfo != null)\n\t\t\tm_fileInfo.unbind();\n\n\t\tif (m_session != null)\n\t\t\tm_session.terminate();\n\n\t\tm_session = null;\n\t\tm_fileInfo = null;\n\t}", "title": "" }, { "docid": "e39a887a443564964a4f32050fdc9da5", "score": "0.55103856", "text": "void doKill() throws IOException\n\t{\n\t\tif (m_session == null)\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"programNotBeingRun\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\tif (yesNoQuery(getLocalizationManager().getLocalizedTextString(\"askKillProgram\"))) //$NON-NLS-1$\n\t\t\t\texitSession();\n\t\t}\n\t}", "title": "" }, { "docid": "7bd63f8afcc260098f684bff84401cbf", "score": "0.5481347", "text": "@Override\n\tpublic void stop() throws InvalidSessionException {\n\t}", "title": "" }, { "docid": "5a13d80404a3d6e590949675a89a2b9d", "score": "0.5472521", "text": "public void remove(Session session);", "title": "" }, { "docid": "26111492cc212c45ff088573ed890970", "score": "0.54667187", "text": "public static void unjoinAndClose(){\n Session s = (Session)_sessionRef.get();\n if(s != null){\n s.close();\n }\n }", "title": "" }, { "docid": "8b28a12237b46c42e548fa625974e825", "score": "0.5466649", "text": "@Override\n void deleteSessionData(Context context, final Bundle args) {\n final Context appContext = context.getApplicationContext();\n AsyncTask.SERIAL_EXECUTOR.execute(new Runnable() {\n public void run() {\n ContentResolver cr = appContext.getContentResolver();\n cr.delete(ThingProvider.THINGS_URI, Things.SELECT_BY_SESSION_ID,\n Array.of(getSessionId(args)));\n }\n });\n }", "title": "" }, { "docid": "47b081a817e8459d04f2110d7e350faf", "score": "0.5428718", "text": "protected void kill() {\n disconnect = true;\n }", "title": "" }, { "docid": "6991bf4a3778422608e2bcfd74b1dfaf", "score": "0.54052556", "text": "public void cancelRehearsal(String sessionID) throws RemoteException;", "title": "" }, { "docid": "88248bf15a3b52980d9e862edf433fcf", "score": "0.5403316", "text": "DefaultSession removeSession(String id, boolean invalidate);", "title": "" }, { "docid": "888462a9e6ad540a155df1034e78f5a2", "score": "0.5376883", "text": "@Test\r\n public void testRemoveSession() {\r\n System.out.println(\"removeSession\");\r\n assertNotNull(sm);\r\n boolean res = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(res);\r\n \r\n ISimulationSessionInfo result = sm.getSession(\"test4\");\r\n assertNotNull(result);\r\n assertEquals(result.getRequester(), \"junit\");\r\n \r\n res = sm.removeSession(\"test4\");\r\n assertTrue(res);\r\n \r\n result = sm.getSession(\"test4\");\r\n assertNull(result);\r\n }", "title": "" }, { "docid": "08d55eb97cdac18749fa30571a3d0aef", "score": "0.53533787", "text": "private static void closeSession() {\n isSessionOpen = false;\n }", "title": "" }, { "docid": "f165c35978d75b18144644c6702fe0e2", "score": "0.53480315", "text": "@Override\n public void onKill() {\n }", "title": "" }, { "docid": "72f54d70530be00956d31cb13b04033f", "score": "0.5266812", "text": "public int deleteSession(Session session) {\n\t\treturn (int)sqlSession.delete(\"sessionMapper.deleteSession\", session);\r\n\t}", "title": "" }, { "docid": "a55227e22adb1e0f791a9d2abded9129", "score": "0.5263212", "text": "public void changeSessionId(Session session);", "title": "" }, { "docid": "aba7011180a61e45d39263ef015a8c63", "score": "0.5232426", "text": "public void endSession() {\n if (sqlMngr != null) {\n sqlMngr.disconnect();\n }\n if (sc != null) {\n sc.close();\n }\n sqlMngr = null;\n sc = null;\n }", "title": "" }, { "docid": "290c66c813d05a430017e86028ff0d8c", "score": "0.52265364", "text": "@Override\r\n \t\t\tpublic void deleteSessionsOfTenant(long tenantId) {\n \t\t\t\t\r\n \t\t\t}", "title": "" }, { "docid": "f6c6e7489334418fc78956e2ea83b1ac", "score": "0.52240956", "text": "void remove(InternalSession session);", "title": "" }, { "docid": "6056a8414109614634ddd247c5686b6d", "score": "0.5220925", "text": "public native boolean leaveSession(int sessionId);", "title": "" }, { "docid": "0f549eb4086bd9b83ed6e3ede4560de5", "score": "0.51787746", "text": "public void kill(){\n agent.kill();\n killed=true;\n LinkedList<Object> list = new LinkedList<>();\n queue.add(list);\n }", "title": "" }, { "docid": "18600f0a3f375a129bdd23376266dd65", "score": "0.51663536", "text": "private boolean delete() {\r\n\t\tboolean rtn = false;\r\n\t\ttry {\r\n\t\t\tif ( _where != null ) {\r\n\t\t\t\tif (_where.has(SESSIONID)) {\r\n\t\t\t\t\tString id = _where.getString(SESSIONID);\r\n\t\t\t\t\tif (id.equalsIgnoreCase(ALL)) {\r\n\t\t\t\t\t\trtn = SessionMgr.removeAllSessions();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\trtn = SessionMgr.removeSession(id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (_session != null) {\r\n\t\t\t\tSessionMgr.removeSession(_session.getKey());\r\n\t\t\t\t_session = null;\r\n\t\t\t\t_dbi.clearSession();\r\n\t\t\t}\r\n\t\t\trtn = true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetError(e);\r\n\t\t} finally {\r\n\t\t\tif (_transaction != null) {\r\n\t\t\t\t_transaction.setSession(_session);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rtn;\r\n\t}", "title": "" }, { "docid": "e14fe5384ea944386e560532c23a1d9b", "score": "0.5158994", "text": "public void stopKernel (String nodeId) {\n Runnable task = () -> {\n Kernel kernel = kernels.get(nodeId);\n if(kernel != null) kernel.stop();\n };\n\n Thread thread = new Thread(task);\n thread.start();\n }", "title": "" }, { "docid": "9aa3ada00d0478092177e9188cc29f49", "score": "0.51568836", "text": "public void removeUserFromSession(String token){\n\t\tfor(Session s: getSessionSet()){\n\t\t\tif(s.getToken().equals(token))\n\t\t\t\ts.delete();\t\t\t\t\t//Deletes user session.\n\t\t}\t\n\t}", "title": "" }, { "docid": "2770386b763b1c03f46371babcb6b5b1", "score": "0.515448", "text": "@Override\n\tprotected void doDelete(Session session) {\n\n\t}", "title": "" }, { "docid": "88a628c5d381a4d9b16194896665c341", "score": "0.51439065", "text": "public void logout(int sessionId);", "title": "" }, { "docid": "a6bb3e2181c433b077f4b1dbcbafc2b2", "score": "0.5134397", "text": "public static void unjoin(){\n _sessionRef.set(null);\n }", "title": "" }, { "docid": "00a804eea6a51019b4d0d5c961a273ff", "score": "0.5119088", "text": "public void closeSessionForThread() {\n Session session = THREADED_SESSION.get();\n THREADED_SESSION.set(null);\n THREADED_TRANSACTION.set(null);\n if (session != null) {\n if (session.isOpen()) {\n session.close();\n }\n }\n }", "title": "" }, { "docid": "f5ac336f54da55aa25216d0153065950", "score": "0.5115528", "text": "void expire(Session session);", "title": "" }, { "docid": "5803acb68d57746208b5275d8ba73680", "score": "0.51092345", "text": "public void killPlayer() {\n \tdungeon.removeentity(getX(), getY(), name);\n \t\tdungeon.deleteentity(getX(),getY(),name);\n \t\t//System.out.println(\"YOU LOSE MAMA\");\n \t\t//System.exit(0);\n \t\t\n }", "title": "" }, { "docid": "f7516ba02bc5a5d18c532daa6c468623", "score": "0.5107149", "text": "public void kill()\n\t{\n\t\tthis.isDead = true;\n\t\tSystem.out.println(name + \" died!\");\n\t\t//GamePanel.player.playerCombatant.awardXP(this.getXP());\n\n\t\t//TODO: Reload last save or Exit\n\t}", "title": "" }, { "docid": "8e72bd02792e54a9e856a729cb510b1a", "score": "0.510392", "text": "void kill()\n\t{\n\t\tfor(GameObject G : ObjectList)\n\t\t{\n\t\t\tG.kill();\n\t\t}\n\t}", "title": "" }, { "docid": "1e133873fb84e53149ab9bc4cc7a21b2", "score": "0.5102642", "text": "private void enableKillSession_ActionPerformed() {\n if (enableKillSession.isSelected()) {\n // add kill option to the session menu\n sessionKill.setEnabled(true);\n }\n else {\n // remove kill option from the session menu\n sessionKill.setEnabled(false);\n }\n }", "title": "" }, { "docid": "aaeefa69ef4d91fd320e6ab6b3abbb24", "score": "0.5081762", "text": "public void cmdKill(User teller) {\n exit(3, \"Quitting at the request of {0}. Bye!\", teller);\n }", "title": "" }, { "docid": "659d4eb360b5648ef1a60f2f09e9b2a7", "score": "0.50816184", "text": "public void kill() {\n this.server.stop();\n }", "title": "" }, { "docid": "38a984edeb08545c7f55cff62863e36e", "score": "0.50812507", "text": "public void kill() {\r\n \t\tthis.isDead = true;\r\n \t}", "title": "" }, { "docid": "c34fadafc88a26cbca07146974be23f5", "score": "0.50575936", "text": "public void endSession() {\n //match = null;\n }", "title": "" }, { "docid": "6a17d8bad64a04d27501a9d22ff49e64", "score": "0.5026927", "text": "public void stopSpooling() {\n int numSessionPanels = sessionV.size();\n\n // for each sessionPanel stop spooling\n for (int i=0; i < numSessionPanels; i++) {\n // obtain a pointer to the sesionPanel\n SessionDetailPanel myPanel = (SessionDetailPanel) sessionV.get(i);\n // instruct the panel to stop spooling\n if (myPanel.currentlySpooling) myPanel.fileClose();\n }\n\n // stop the overview panel spooling\n textViewPanel.fileClose();\n }", "title": "" }, { "docid": "c62fd8f668e957832ccb7dccae7a8ae7", "score": "0.50213546", "text": "void deleteTrackerUserSession(final Integer id);", "title": "" }, { "docid": "694aeea0c68c7e77f032fad3ebd9114e", "score": "0.5017422", "text": "public void killAgentServer(short sid) throws Exception {\n scadmin.killAgentServer(sid);\n }", "title": "" }, { "docid": "a317d5c6744849728dd58ff9839ba0ee", "score": "0.5016187", "text": "protected void kill() {\n\t\tsetDeathTime(0.6);\n\t}", "title": "" }, { "docid": "6f9b148b9f3b8af44aac547b631132da", "score": "0.5012233", "text": "public synchronized void close(UUID sessionId) {\n\n for (Iterator<Map.Entry<Xid, DtxBranch>> iterator = branches.entrySet().iterator();\n iterator.hasNext(); ) {\n\n Map.Entry<Xid, DtxBranch> entry = iterator.next();\n DtxBranch branch = entry.getValue();\n\n if (branch.getCreatedSessionId() == sessionId &&\n (branch.getState() == DtxBranch.State.ACTIVE || branch.getState() == DtxBranch.State.SUSPENDED)) {\n\n // If there are no associations delete the entry. If there are associations that is due to a join.\n // Hence only disassociating the session\n if (branch.isAssociated(sessionId)) {\n branch.disassociateSession(sessionId);\n }\n if (!branch.hasAssociatedSessions()) {\n branch.setState(DtxBranch.State.FORGOTTEN);\n iterator.remove();\n }\n }\n }\n }", "title": "" }, { "docid": "f4a44ffd90ac996f6375321d7593b2bc", "score": "0.5003887", "text": "@Override\r\n\tpublic void remove(Long id) {\n\t \tT t=findById(id);\r\n\t \tif(t!=null){\r\n\t \r\n\t \t\tSystem.out.println(\"============\"+getSession().isOpen());\r\n\t \t\tgetSession().delete(t);\t \t\t\r\n\t \t\tSystem.out.println(\"============delete end\");\r\n\t \t}\r\n\t \t\t\r\n\t}", "title": "" }, { "docid": "29f4198ba86ac278207c73917700c96d", "score": "0.50015324", "text": "public void endSession(){\n currentUser = null;\n ui.returnCard();\n }", "title": "" }, { "docid": "91cb8e39ad080dbbb33c1fc90e1dcd1f", "score": "0.5000356", "text": "private void sessionStopTrace() {\n \n try {\n if (ConnectWindow.isSysdba()) {\n // prompt for the sid to trace\n String msg = \"A 10046 trace on a session will be disabled.\\n\\nEnter the SID:\";\n String tmp = JOptionPane.showInputDialog(this, msg, \"Session Trace\", JOptionPane.QUESTION_MESSAGE);\n int sid = Integer.valueOf(tmp).intValue();\n\n // check the sid exists\n int serial = SessionPanel.getSid(1, sid);\n try {\n if (serial != 0) {\n // stop trace\n msg = \"Stopping a 10046 trace on Sid \" + sid + \", serial# \" + serial;\n JOptionPane.showMessageDialog(this, msg, \"Session Trace\", JOptionPane.INFORMATION_MESSAGE);\n\n try {\n ConnectWindow.getDatabase().stopSessionTrace(sid, serial, dbVersion);\n } catch (Exception e) {\n displayError(e, this);\n }\n } else {\n throw new NoSuchSessionExistsException(\"Sid: \" + sid);\n }\n } catch (Exception e) {\n displayError(e, this);\n }\n }\n else {\n throw new InsufficientPrivilegesException(\"SYSDBA privilege required\");\n }\n } catch (Exception ee) {\n ConsoleWindow.displayError(ee, this);\n }\n }", "title": "" }, { "docid": "15206f05d56076c522bb853cfd29723d", "score": "0.49980256", "text": "public void kill(int tk, int ts) {\n\t\tSystem.out.println(\"Total kills: \"+tk);\r\n\t\tSystem.out.println(\"Total Score: \"+ts);\r\n\t}", "title": "" }, { "docid": "658f3eb4262a7b5ca2d2434553803d42", "score": "0.4991233", "text": "public void wsdelete_node(String name) throws HibernateException \r\n\t\t\t\t{ \r\n\t\t\t\t\tNode node_del = null; \r\n\t\t\t\t\tString i=null;\r\n\t\t\t\t\tlong id_node=0;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t try \r\n\t\t\t\t\t { \r\n\t\t\t\t\t iniciaOperacion(); \r\n\r\n\t\t\t\t\t i= sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+name+\"'\").uniqueResult().toString();\r\n\t\t\t\t\t \t //una vez encontrado el id del user puedo buscarlo\r\n\t\t\t\t\t \t id_node= Integer.parseInt(i);\r\n\t\t\t\t\t \t node_del = (Node) sesion.get(Node.class, id_node); \t \r\n\t\t\t\t\t sesion.delete(node_del); //le pasamos todo el objeto a eliminar\r\n\t\t\t\t\t tx.commit(); \r\n\t\t\t\t\t } catch (HibernateException he) \r\n\t\t\t\t\t { \r\n\t\t\t\t\t manejaExcepcion(he); \r\n\t\t\t\t\t throw he; \r\n\t\t\t\t\t } finally \r\n\t\t\t\t\t { \r\n\t\t\t\t\t sesion.close(); \r\n\t\t\t\t\t } \r\n\t\t\t\t\t }", "title": "" }, { "docid": "8c1f7e657fc8cc6bf22082dd2e951edb", "score": "0.49770594", "text": "void sessionDestroyed(SessionEvent se);", "title": "" }, { "docid": "448eca07fcddd0be01a67d1bbbc83767", "score": "0.49714172", "text": "public void stopNode (Node node) {\n // We do it only if the node is running. Otherwise, it is not necessary.\n if (isNodeRunning(node.getId())) {\n Kernel k = kernels.get(node.getId());\n k.stopExecution();\n }\n }", "title": "" }, { "docid": "d3fd93830d705d1e233e0628c7270084", "score": "0.49641448", "text": "public void killExecution() {\n \n \t\tcancelOrKillExecution(false);\n \t}", "title": "" }, { "docid": "4eb7d62c2245e79a2791de8e90309eca", "score": "0.496236", "text": "public void stopNetwork();", "title": "" }, { "docid": "d5b8d1512b002771f60ec41ec5270edb", "score": "0.4956969", "text": "private void kill () {\n\t\t/*if (savingDlg != null) savingDlg.dispose();\n\t\tdialog.dispose();*/\n\t\tEngine.kill();\n\t}", "title": "" }, { "docid": "7174a0853654c03636e93f60a30544fb", "score": "0.49499992", "text": "@Override\n\tpublic void delete(Session sess, int id) {\n\t\tsess.delete(this.get(sess, id));\n\t}", "title": "" }, { "docid": "666e2f57040e8ade790f41c3e9213794", "score": "0.49466202", "text": "public void doLogout() {\r\n\t\tdestroy();\r\n\r\n\t\t/* ++++++ Kills the Http session ++++++ */\r\n\t\t// HttpSession s = (HttpSession)\r\n\t\t// Sessions.getCurrent().getNativeSession();\r\n\t\t// s.invalidate();\r\n\t\t/* ++++++ Kills the zk session +++++ */\r\n\t\t// Sessions.getCurrent().invalidate();\r\n\t\tExecutions.sendRedirect(\"/j_spring_logout\");\r\n\r\n\t}", "title": "" }, { "docid": "9e1eb01d43a3a67db9359f2441433fff", "score": "0.49407446", "text": "public void KillWumpus() {\t\t\n\t\tliveWumpus = false;\n\t}", "title": "" }, { "docid": "ecda529e68501b5f1a9537dd76b608be", "score": "0.49303684", "text": "public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}", "title": "" }, { "docid": "99304d64becd02b616689673c9531840", "score": "0.49218175", "text": "public void finishSession() {\n \t\trunning = false;\n \t}", "title": "" }, { "docid": "cee0d078fe7645f2b74f0d4e68a063b1", "score": "0.49197018", "text": "@Override\n protected void tearDown() throws Exception\n {\n if (session != null)\n {\n session.close();\n }\n \n super.tearDown();\n }", "title": "" }, { "docid": "7dcc4305f9e2d90ee981e60e9422b478", "score": "0.49185175", "text": "public void kill() { _isAlive = false; }", "title": "" }, { "docid": "09940a32d1a260e9100a70f1ee8fddb8", "score": "0.49143997", "text": "void deleteItem(IDAOSession session, int id);", "title": "" }, { "docid": "294d58c057fcfc9faff9518000bded6e", "score": "0.48976585", "text": "public Map killServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"kill\"));\n\t}", "title": "" }, { "docid": "bb0d70b648c318190db3106592ce3977", "score": "0.48966575", "text": "@SuppressWarnings(\"unchecked\")\n\t@GetMapping(\"/view-skill-master-delete\")\n\tpublic @ResponseBody JsonResponse<Object> getskillForDelete(@RequestParam String id, HttpSession session) {\n\n\t\tlogger.info(\"Method : getskillForDelete ends\");\n\n\t\tJsonResponse<Object> resp = new JsonResponse<Object>();\n\t\tbyte[] decodeId = Base64.getDecoder().decode(id.getBytes());\n\n\t\tString id1 = (new String(decodeId));\n\t\tString createdBy = \"\";\n\t\ttry {\n\t\t\tcreatedBy = (String) session.getAttribute(\"USER_ID\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tresp = restClient.getForObject(env.getEmployeeUrl() + \"deleteskillById?id=\" + id1 + \"&createdBy=\" + createdBy,\n\t\t\t\t\tJsonResponse.class);\n\n\t\t} catch (RestClientException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (resp.getMessage() != null && resp.getMessage() != \"\") {\n\t\t\tresp.setCode(resp.getMessage());\n\t\t\tresp.setMessage(\"Unsuccess\");\n\t\t} else {\n\t\t\tresp.setMessage(\"success\");\n\t\t}\n\t\tlogger.info(\"Method : deleteskill ends\");\n\n\t\treturn resp;\n\t}", "title": "" }, { "docid": "05e4a33acd136aa1eae6f9f6aea21ead", "score": "0.48953336", "text": "void stopNodeAgentServices();", "title": "" }, { "docid": "644ddcb28e94dd5c0890e24a496f2a38", "score": "0.48885417", "text": "public void finSession(Session session){\n obtenerConexion().closeSession(session);\n }", "title": "" }, { "docid": "3dbeb084b31d843ed3c26baa319d068c", "score": "0.4886089", "text": "void dissociate(RTMPConnection rtmpConn);", "title": "" }, { "docid": "30ca102ad67e1c8b235531370d078c1b", "score": "0.4884077", "text": "public void stopDriver();", "title": "" }, { "docid": "80d8d102015e6e34f74e84a2feecbb63", "score": "0.4880419", "text": "public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }", "title": "" }, { "docid": "300e508c9e5c86ea27d5525dfbb58774", "score": "0.48561612", "text": "void unsetCurrentrun();", "title": "" }, { "docid": "bcebbe064710a7961fdde7664d679b37", "score": "0.48374504", "text": "@Override\n\tpublic void onStop(Session session) {\n\t\tlogger.info(\"onStop session stop:id= {}\", session.getId());\n\t}", "title": "" }, { "docid": "331b388447a2d7bc1dd341895461c847", "score": "0.4828116", "text": "void sessionClosed(IMSession session, ReasonInfo reason);", "title": "" }, { "docid": "9dd4852ab797a252836fbbf00ab6230f", "score": "0.48258957", "text": "protected void closeSession(SessionImpl session) {\n sessions.remove(session);\n sessionCount.dec();\n }", "title": "" }, { "docid": "e2e857e3d5e166778b741ed4860951d5", "score": "0.48236603", "text": "public void terminateDriver() {\n }", "title": "" }, { "docid": "f08a9c5e62c9cc25c4bd6899b013acd2", "score": "0.4822367", "text": "void abortProcess(Long processInstanceId);", "title": "" }, { "docid": "7fe8994998e1d6cf138df6c73d5d0e0a", "score": "0.4808798", "text": "void killPlayerByMonsterMove()\n {\n moveMonsterToCell(getPlayerCell());\n }", "title": "" }, { "docid": "474f2998459214061ac9e32c3c37419a", "score": "0.48075542", "text": "public void terminate(){\n running = false;\n }", "title": "" }, { "docid": "cf5ecf09b53f03b1b861639b0742779a", "score": "0.48065597", "text": "public void killTest(String testUniqueId) {\r\n\t\tConfiguration config = testCache.getTest(testUniqueId);\r\n\t\tif (config == null) {\r\n\t\t\tlog.info(\"Test not running for id: \" + testUniqueId);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tstopTest(config);\r\n\t}", "title": "" }, { "docid": "0cf0e5a161721c1dfb14180d4ac520d1", "score": "0.48006612", "text": "@Path(\"/{id}\")\n @DELETE\n public Response removeSession(@PathParam(\"id\") Long id) {\n log.debug(\"REST request to delete Session : {}\", id);\n sessionRepository.remove(sessionRepository.find(id));\n return HeaderUtil.createEntityDeletionAlert(Response.ok(), \"session\", id.toString()).build();\n }", "title": "" } ]
e30750e88441cbcc118ed8c00f62b2fb
Sink a data in flink table into target table in database.
[ { "docid": "65b0b75581ef7e1059fb4169a7467214", "score": "0.6311691", "text": "public abstract void sinkBatch(ObjectPath objectPath, Table in, Params params, Long sessionId);", "title": "" } ]
[ { "docid": "b803936979ce2221b85dbd7d5c91ae4d", "score": "0.6512231", "text": "public abstract void sinkStream(ObjectPath objectPath, Table in, Params params, Long sessionId);", "title": "" }, { "docid": "10a556bdb436197f91b8cb53f02038d9", "score": "0.5662341", "text": "public void run()\n {\n TableId targetTableId = BqService.getTableId(options.getOutput());\n BqService bq = new BqService();\n bq.deleteTable(targetTableId);\n\n //Create the pipeline and apply a rootPCollection on it\n Pipeline pipeline = Pipeline.create(options);\n PCollection<TableRow> rootCollection = reader.getReader(pipeline); \n\n //Write the data to the output table\n\n String outputTable = String.format(\"%s.%s\", targetTableId.getDataset(), targetTableId.getTable());\n rootCollection.apply(\n BigQueryIO.writeTableRows()\n .to(outputTable) \n .withSchema(options.getOutputSchema())\n .withCustomGcsTempLocation(options.getBigQueryLoadingTemporaryDirectory())\n .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED) \n .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_TRUNCATE)); \n pipeline\n .run()\n .waitUntilFinish();\n\n //Set an expiration on the newly created table\n Integer expirationSeconds = options.getOutputTableExpirationSeconds();\n if (expirationSeconds !=null)\n bq.setTableExpirationDate(targetTableId, expirationSeconds);\n }", "title": "" }, { "docid": "e129ecb42cd7eca17ba3cf26790753a1", "score": "0.5438954", "text": "public HBaseSink(String tableName, HBaseMapper<IN> mapper) {\n Preconditions.checkArgument(tableName != null && !tableName.isEmpty(), \"Table name cannot be null or empty.\");\n Preconditions.checkArgument(mapper != null, \"HBase mapper cannot be null.\");\n this.tableName = tableName;\n this.mapper = mapper;\n }", "title": "" }, { "docid": "e01317d2fa793fc53d10598b4ad9afb0", "score": "0.53487873", "text": "public void createFlightData() {\n\t\ttry (PreparedStatement preparedStatement = createConnection().prepareStatement(\n\t\t\t\t\"INSERT INTO flights (id, origin_fk, destination_fk, price, currency_fk, book) values (?, 1, 2, 1000, 1, false)\");) {\n\t\t\tpreparedStatement.setLong(1, flightId);\n\t\t\tpreparedStatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage(), e);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(e.getMessage(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "72818c93c532b1cd2bd968524ee74503", "score": "0.52623826", "text": "public abstract void put(Collection<SinkRecord> records);", "title": "" }, { "docid": "85e1f6b2f91488be921f0cb91ae47118", "score": "0.5255278", "text": "public void run() {\n try {\n t2.addRecord(tableName2, input.getValues());\n } catch (DatabaseException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "85e1f6b2f91488be921f0cb91ae47118", "score": "0.5255278", "text": "public void run() {\n try {\n t2.addRecord(tableName2, input.getValues());\n } catch (DatabaseException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "49c790c01dcf31a3c380332a2fa19584", "score": "0.5177255", "text": "void pushTableMetrics(DeviceId deviceId, Iterable<FlowTableEntry> flowTables);", "title": "" }, { "docid": "cd8cc9a53feb2e228f560310795e2524", "score": "0.5122928", "text": "public void run() {\n try {\n t1.addRecord(tableName1, input.getValues());\n } catch (DatabaseException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "cd8cc9a53feb2e228f560310795e2524", "score": "0.5122928", "text": "public void run() {\n try {\n t1.addRecord(tableName1, input.getValues());\n } catch (DatabaseException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "eb19af148923b04a9a45c84aca16a0ee", "score": "0.5083888", "text": "public ReadSink(List<String> nameTosave, DatabaseEntity db){\n this.nameTosave = nameTosave;\n this.db = db;\n }", "title": "" }, { "docid": "36ac5cc14ad422083dea247486acbe79", "score": "0.5066493", "text": "public static void main(String[] args) throws Exception {\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\n // create a TableEnvironment\n // for batch programs use BatchTableEnvironment instead of StreamTableEnvironment\n StreamTableEnvironment tableEnv = StreamTableEnvironment.create(env);\n\n // register a Table\n tableEnv.registerTable(\"table1\", null); // or\n tableEnv.registerTableSource(\"table2\", null); // or\n tableEnv.registerExternalCatalog(\"extCat\", null);\n // register an output Table\n tableEnv.registerTableSink(\"outputTable\", null);\n\n // create a Table from a Table API query\n Table tapiResult = tableEnv.scan(\"table1\").select(\"...\");\n // create a Table from a SQL query\n Table sqlResult = tableEnv.sqlQuery(\"SELECT ... FROM table2 ... \");\n\n // emit a Table API result Table to a TableSink, same for SQL result\n tapiResult.insertInto(\"outputTable\");\n\n // execute\n env.execute();\n }", "title": "" }, { "docid": "5110dba5665eb0112427444970f5f9cc", "score": "0.50663775", "text": "public GenericTraitUpdatableDataSink newDataSink(ResourceIdentifier resourceIdentifier, long profileId, long instanceId, String path);", "title": "" }, { "docid": "58f454d1b847a9eef3a645ec24facd1f", "score": "0.50273204", "text": "public abstract Table sourceBatch(ObjectPath objectPath, Params params, Long sessionId);", "title": "" }, { "docid": "e5f51211517437659fba7c5fae834053", "score": "0.5011008", "text": "@Override\r\n protected void changeImpl(final SQLTable t) throws SQLException {\n this.getStream().println(\"merging \" + t.getSQLName() + \" into \" + this.destTable.getSQLName() + \"... \");\r\n\r\n if (!this.destTable.getChildrenNames().containsAll(t.getChildrenNames()))\r\n throw new IllegalArgumentException(this.destTable.getSQLName() + \" lacks \" + substract(t.getChildrenNames(), this.destTable.getChildrenNames()));\r\n // check that t is compatible with destTable\r\n final String noLink = t.equalsChildrenNoLink(this.destTable, null);\r\n if (noLink != null)\r\n throw new IllegalArgumentException(noLink);\r\n\r\n // fields to be copied to the destTable\r\n final List<SQLField> fieldsNoPKNoOrder = new ArrayList<SQLField>(t.getFields());\r\n // the primary key will be automatically generated\r\n fieldsNoPKNoOrder.remove(t.getKey());\r\n // ORDER will be at the end (we will offset it)\r\n final SQLField orderF = t.getOrderField();\r\n fieldsNoPKNoOrder.remove(orderF);\r\n fieldsNoPKNoOrder.add(orderF);\r\n final String fields = \"(\" + CollectionUtils.join(fieldsNoPKNoOrder, \",\", new ITransformer<SQLField, String>() {\r\n @Override\r\n public String transformChecked(final SQLField input) {\r\n return SQLBase.quoteIdentifier(input.getName());\r\n }\r\n }) + \")\";\r\n final SQLSelect sel = createSelect(t);\r\n // ORDER has to be computed\r\n fieldsNoPKNoOrder.remove(fieldsNoPKNoOrder.size() - 1);\r\n sel.addAllSelect(fieldsNoPKNoOrder);\r\n // offset by max of the destination table to avoid conflicts\r\n sel.addRawSelect(t.getBase().quote(\"%n + ( SELECT MAX(%n)+100 FROM %f ) \", orderF, this.destTable.getOrderField(), this.destTable), null);\r\n\r\n final SQLSelect selOldIDs = createSelect(t);\r\n selOldIDs.addSelect(t.getKey());\r\n final List<Number> oldIDs = getDS().executeCol(selOldIDs.asString());\r\n\r\n // if we copy no rows, no need to check constraints\r\n final boolean noRowsToMerge = oldIDs.size() == 0;\r\n final DatabaseGraph graph = t.getDBSystemRoot().getGraph();\r\n // check that transferred data from t still points to the same rows\r\n final Set<Link> selfRefLinks = new HashSet<Link>();\r\n for (final Link l : graph.getForeignLinks(t)) {\r\n final Link destLink = graph.getForeignLink(this.destTable, l.getCols());\r\n if (destLink == null)\r\n throw new IllegalStateException(\"No link for \" + l.getCols() + \" in \" + this.destTable.getSQL());\r\n final SQLTable destTableTarget = destLink.getTarget();\r\n if (destTableTarget == destLink.getSource()) {\r\n selfRefLinks.add(destLink);\r\n } else if (destTableTarget != l.getTarget()) {\r\n final String s = \"Not pointing to the same table for \" + l + \" \" + destTableTarget.getSQL() + \" != \" + l.getTarget().getSQL();\r\n final List<String> reasonsToContinue = new ArrayList<String>();\r\n if (noRowsToMerge)\r\n reasonsToContinue.add(\"but source table is empty\");\r\n if (l.getTarget().getRowCount(false) == 0)\r\n reasonsToContinue.add(\"but the link target is empty\");\r\n if (this.forceFF.contains(l.getCols()))\r\n reasonsToContinue.add(\"but link is forced\");\r\n\r\n if (reasonsToContinue.size() == 0)\r\n throw new IllegalStateException(s);\r\n\r\n getStream().println(\"WARNING: \" + s);\r\n getStream().println(CollectionUtils.join(reasonsToContinue, \";\\n\"));\r\n }\r\n }\r\n\r\n final SQLSyntax syntax = t.getServer().getSQLSystem().getSyntax();\r\n final Set<SQLTable> toRefresh = new HashSet<SQLTable>();\r\n SQLUtils.executeAtomic(t.getDBSystemRoot().getDataSource(), new ConnectionHandlerNoSetup<Object, SQLException>() {\r\n @Override\r\n public Object handle(final SQLDataSource ds) throws SQLException {\r\n // drop self reference links before inserting\r\n final AlterTable dropSelfFK = new AlterTable(MergeTable.this.destTable);\r\n for (final Link selfRef : selfRefLinks) {\r\n dropSelfFK.dropForeignConstraint(selfRef.getName());\r\n }\r\n if (!dropSelfFK.isEmpty())\r\n ds.execute(dropSelfFK.asString());\r\n\r\n // copy all data of t into destTable\r\n final List<Number> insertedIDs = SQLRowValues.insertIDs(MergeTable.this.destTable, fields + \" \" + sel.asString());\r\n // handle undefined\r\n insertedIDs.add(0, MergeTable.this.destTable.getUndefinedIDNumber());\r\n oldIDs.add(0, t.getUndefinedIDNumber());\r\n final int size = insertedIDs.size();\r\n if (size != oldIDs.size())\r\n throw new IllegalStateException(\"size mismatch: \" + size + \" != \" + oldIDs.size());\r\n\r\n // load the mapping in the db\r\n final SQLName mapName = new SQLName(t.getDBRoot().getName(), \"MAP_\" + MergeTable.class.getSimpleName() + System.currentTimeMillis());\r\n final SQLCreateTable createTable = new SQLCreateTable(t.getDBRoot(), mapName.getName());\r\n createTable.setPlain(true);\r\n // cannot use temporary table since we need a SQLTable for UpdateBuilder\r\n createTable.addColumn(\"OLD_ID\", syntax.getIDType());\r\n createTable.addColumn(\"NEW_ID\", syntax.getIDType());\r\n ds.execute(createTable.asString());\r\n final SQLTable mapT = t.getDBRoot().refetchTable(mapName.getName());\r\n\r\n final StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < size; i++) {\r\n sb.append(\"(\" + oldIDs.get(i) + \", \" + insertedIDs.get(i) + \")\");\r\n if (i < size - 1)\r\n sb.append(\",\");\r\n }\r\n ds.execute(t.getBase().quote(\"INSERT INTO %i(%i, %i) VALUES\" + sb, mapName, \"OLD_ID\", \"NEW_ID\"));\r\n\r\n // for each link to t, point it to destTable\r\n for (final Link selfRef : selfRefLinks) {\r\n toRefresh.add(updateLink(selfRef, mapT));\r\n }\r\n for (final Link refLink : graph.getReferentLinks(t)) {\r\n // self links are already taken care of\r\n // (we don't want to update t)\r\n if (refLink.getSource() != t)\r\n toRefresh.add(updateLink(refLink, mapT));\r\n }\r\n\r\n // all data has been copied, and every link removed\r\n // we can now safely drop t\r\n ds.execute(t.getBase().quote(\"DROP TABLE %f\", t));\r\n ds.execute(\"DROP TABLE \" + mapName.quote());\r\n\r\n toRefresh.add(t);\r\n toRefresh.add(mapT);\r\n\r\n return null;\r\n }\r\n\r\n public SQLTable updateLink(final Link refLink, final SQLTable mapT) {\r\n final SQLField refKey = refLink.getLabel();\r\n final SQLTable refTable = refKey.getTable();\r\n final SQLDataSource ds = refTable.getDBSystemRoot().getDataSource();\r\n final boolean selfLink = refLink.getSource() == refLink.getTarget();\r\n assert refTable != t;\r\n\r\n // drop constraint\r\n // * if selfLink, already dropped\r\n // * if no name, we can assume that there's no actual constraint\r\n // just that the fwk has inferred the link, so we don't need to drop anything\r\n // if we're mistaken \"drop table\" will fail (as should the UPDATE) and the\r\n // transaction will be rollbacked\r\n if (!selfLink && refLink.getName() != null) {\r\n final AlterTable dropFK = new AlterTable(refTable);\r\n dropFK.dropForeignConstraint(refLink.getName());\r\n ds.execute(dropFK.asString());\r\n }\r\n\r\n // update the field using the map\r\n final UpdateBuilder update = new UpdateBuilder(refTable);\r\n final AliasedTable alias1 = new AliasedTable(mapT, \"m\");\r\n update.addTable(alias1);\r\n update.set(refKey.getName(), alias1.getField(\"NEW_ID\").getFieldRef());\r\n update.setWhere(new Where(refKey, Where.NULL_IS_DATA_EQ, alias1.getField(\"OLD_ID\")));\r\n if (selfLink) {\r\n // only update new rows (old rows can have the same IDs but they point to old\r\n // foreign rows, they must not be updated)\r\n final AliasedTable onlyNew = new AliasedTable(mapT, \"onlyNew\");\r\n update.addTable(onlyNew);\r\n // we added the undefined to NEW_ID, but it wasn't copied from t so don't update\r\n final Where w = new Where(refTable.getKey(), Where.NULL_IS_DATA_EQ, onlyNew.getField(\"NEW_ID\")).and(new Where(refTable.getKey(), Where.NULL_IS_DATA_NEQ, refTable\r\n .getUndefinedIDNumber()));\r\n update.setWhere(update.getWhere().and(w));\r\n }\r\n ds.execute(update.asString());\r\n\r\n // re-add constraint\r\n final AlterTable addFK = new AlterTable(refTable);\r\n // don't create an index : if there was one it's still there, if there wasn't\r\n // don't alter the table silently (use AddFK if you want that)\r\n addFK.addForeignConstraint(FCSpec.createFromLink(refLink, MergeTable.this.destTable), false);\r\n ds.execute(addFK.asString());\r\n return refTable;\r\n }\r\n });\r\n final TablesMap tables = new TablesMap();\r\n final Set<SQLSchema> schemas = new HashSet<SQLSchema>();\r\n for (final SQLTable table : toRefresh) {\r\n tables.add(table.getDBRoot().getName(), table.getName());\r\n schemas.add(table.getSchema());\r\n }\r\n t.getDBSystemRoot().refresh(tables, false);\r\n for (final SQLSchema schema : schemas) {\r\n schema.updateVersion();\r\n }\r\n }", "title": "" }, { "docid": "57a1b3825304ed9c518338158547ae73", "score": "0.50065714", "text": "@Override\r\n public Object handle(final SQLDataSource ds) throws SQLException {\n final AlterTable dropSelfFK = new AlterTable(MergeTable.this.destTable);\r\n for (final Link selfRef : selfRefLinks) {\r\n dropSelfFK.dropForeignConstraint(selfRef.getName());\r\n }\r\n if (!dropSelfFK.isEmpty())\r\n ds.execute(dropSelfFK.asString());\r\n\r\n // copy all data of t into destTable\r\n final List<Number> insertedIDs = SQLRowValues.insertIDs(MergeTable.this.destTable, fields + \" \" + sel.asString());\r\n // handle undefined\r\n insertedIDs.add(0, MergeTable.this.destTable.getUndefinedIDNumber());\r\n oldIDs.add(0, t.getUndefinedIDNumber());\r\n final int size = insertedIDs.size();\r\n if (size != oldIDs.size())\r\n throw new IllegalStateException(\"size mismatch: \" + size + \" != \" + oldIDs.size());\r\n\r\n // load the mapping in the db\r\n final SQLName mapName = new SQLName(t.getDBRoot().getName(), \"MAP_\" + MergeTable.class.getSimpleName() + System.currentTimeMillis());\r\n final SQLCreateTable createTable = new SQLCreateTable(t.getDBRoot(), mapName.getName());\r\n createTable.setPlain(true);\r\n // cannot use temporary table since we need a SQLTable for UpdateBuilder\r\n createTable.addColumn(\"OLD_ID\", syntax.getIDType());\r\n createTable.addColumn(\"NEW_ID\", syntax.getIDType());\r\n ds.execute(createTable.asString());\r\n final SQLTable mapT = t.getDBRoot().refetchTable(mapName.getName());\r\n\r\n final StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < size; i++) {\r\n sb.append(\"(\" + oldIDs.get(i) + \", \" + insertedIDs.get(i) + \")\");\r\n if (i < size - 1)\r\n sb.append(\",\");\r\n }\r\n ds.execute(t.getBase().quote(\"INSERT INTO %i(%i, %i) VALUES\" + sb, mapName, \"OLD_ID\", \"NEW_ID\"));\r\n\r\n // for each link to t, point it to destTable\r\n for (final Link selfRef : selfRefLinks) {\r\n toRefresh.add(updateLink(selfRef, mapT));\r\n }\r\n for (final Link refLink : graph.getReferentLinks(t)) {\r\n // self links are already taken care of\r\n // (we don't want to update t)\r\n if (refLink.getSource() != t)\r\n toRefresh.add(updateLink(refLink, mapT));\r\n }\r\n\r\n // all data has been copied, and every link removed\r\n // we can now safely drop t\r\n ds.execute(t.getBase().quote(\"DROP TABLE %f\", t));\r\n ds.execute(\"DROP TABLE \" + mapName.quote());\r\n\r\n toRefresh.add(t);\r\n toRefresh.add(mapT);\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "a173a2ff095f432008ea53c978c7db7c", "score": "0.5005412", "text": "public interface RelationTableUpserFunction {\n TableData upsert(TableData srcTableData, TableData dstTableData, UpsertContext upsertContext);\n}", "title": "" }, { "docid": "b42b30875389bcf539e774ad3de22fda", "score": "0.4990821", "text": "public abstract Table sourceStream(ObjectPath objectPath, Params params, Long sessionId);", "title": "" }, { "docid": "90b10a09d036194d54e67f491ab1e9af", "score": "0.49765697", "text": "@Override\n public StreamExecutionEnvironment createPipeline(\n String tablePath,\n int sourceParallelism,\n int sinkParallelism) {\n\n DeltaSource<RowData> deltaSink = getDeltaSource(tablePath);\n StreamExecutionEnvironment env = getStreamExecutionEnvironment();\n\n env\n .fromSource(deltaSink, WatermarkStrategy.noWatermarks(), \"continuous-delta-source\")\n .setParallelism(sourceParallelism)\n .addSink(new ConsoleSink(Utils.FULL_SCHEMA_ROW_TYPE))\n .name(\"Console Sink\")\n .setParallelism(1);\n\n return env;\n }", "title": "" }, { "docid": "5a70d65a4ec3207d0a24be61a9771e61", "score": "0.49494797", "text": "@Override\n public void funnel(OFFlowLightweightStatsEntryVer15 message, PrimitiveSink sink) {\n message.tableId.putTo(sink);\n OFFlowStatsReasonSerializerVer15.putTo(message.reason, sink);\n sink.putInt(message.priority);\n message.match.putTo(sink);\n message.stats.putTo(sink);\n }", "title": "" }, { "docid": "2d8a5e4417449d0ab59667c0f9704d34", "score": "0.4904698", "text": "@Override\n public void insertToBeProcessedLink(String link) {\n Map<String,Object> param = new HashMap<>();\n param.put(\"tableName\",\"LINKS_TO_BE_PROCESSED\");\n param.put(\"link\",link);\n try(SqlSession session = sqlSessionFactory.openSession(true)){\n session.insert(\"com.github.yuyunzhi.MyMapper.insertLink\",param);\n\n }\n }", "title": "" }, { "docid": "a092ef8186af108f9b7b5d418201d7b6", "score": "0.49002045", "text": "public void process() {\n try {\n // Get one stream per resource, where each resource represents one of the database tables.\n List<InputStream> tableInsertStreams = getTableInsertStreams();\n\n // NOTE on transactions: Need exactly one, because multiple tables are involved, which\n // can adversely affect each other. Also, want to keep the transaction open across all\n // operations, because deletion of the whole database without complete re-build is not\n // acceptable.\n Connection targetConn = dbInterface.getTargetConnection();\n targetConn.setAutoCommit(false);\n\n // Allow database to ignore referential integrity problems during ETL.\n doUpdate(TURN_OFF_FK_CONSTRAINTS);\n\n // Delete all data from tables.\n //HKIM: Skip table deletion process so that newly inserted or modified data gets pushed\n //HKIM: Added input check for ETL job which mirrors data from dmz to dev (required parameters \"int 1\") - 8/27/12\n if(pushNonPublicData && dbInterface.getTargetEnvironment().equals(\"int\")) {\n for (String table : dbInterface.getTableList()) {\n deleteTable(table);\n }\n }\n\n // Re-populate all the data.\n insertData(tableInsertStreams);\n\n // Allow database to catch referential integrity problems during ETL.\n doUpdate(TURN_ON_FK_CONSTRAINTS);\n\n targetConn.commit();\n dbInterface.closeConnections();\n\n } catch (Exception ex) {\n //new EmailSender().send( \"etl\", \"[PST} Failure in ETL Process\", ex.toString() );\n System.out.println(\"FAILED to carry out database update. See error below.\");\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "b21d15505356b0989b116a36aa97ce71", "score": "0.48958158", "text": "public void postDataProccessedData(IRandomSinkProccessedDataInput data);", "title": "" }, { "docid": "be2958e0aacea7b663173fb257e0592f", "score": "0.48516428", "text": "@Override\n public void toSink(Sink<KeyValue<K, V>> sink) {\n KVSinkStreamlet<K, V> sinkStreamlet = new KVSinkStreamlet<>(this, sink);\n addChild(sinkStreamlet);\n return;\n }", "title": "" }, { "docid": "45effc853987692b8464ea7aa2dd91f0", "score": "0.483497", "text": "public void run() {\n try {\n t3.addRecord(tableName3, input.getValues());\n } catch (DatabaseException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "d196d18069decc8ddaa4f552fc142f6b", "score": "0.48312864", "text": "public void writeSQL(SQLOutput stream) throws SQLException{\r\n }", "title": "" }, { "docid": "943f7ef197237e6f6d351fab89af5321", "score": "0.48169872", "text": "final void write(ByteString key, ByteSource value) throws SQLException {\r\n\t\t\tif (contains(key))\r\n\t\t\t\treturn;\r\n\t\t\tfinal PreparedStatement ps = cnn.prepareStatement(\"INSERT INTO BOCAS_TABLE(BOCAS_KEY, BOCAS_VALUE) VALUES (?,?)\");\r\n\t\t\ttry {\r\n\t\t\t\tdialect.setKey(ps, 1, key);\r\n\t\t\t\tdialect.setValue(ps, 2, value);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t} finally {\r\n\t\t\t\tps.close();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "6da3bafd37b977ea8baf8e86562bc2d3", "score": "0.48072386", "text": "private void createDSTable(DataSet dataSet) throws SQLException {\n if (dataSet.hasParser()) {\n System.out.println(\"Creating table...\");\n String[] columns = dataSet.getHeaderKeySet().toArray(new String[0]);\n for (int i = 0; i < columns.length; i++) {\n if (columns[i].matches(\"^.*\\\\W.*$\")) {\n columns[i] = columns[i].replaceAll(\"\\\\W\", \"_\");\n }\n }\n String createString = (\n \"CREATE TABLE IF NOT EXISTS \" + dataSet.getTableName()\n + \" ([\"\n + String.join(\"] TEXT, [\", columns)\n + \"] TEXT);\"\n );\n Statement stmt = this.dbConn.createStatement();\n stmt.executeUpdate(createString);\n this.dbConn.commit();\n System.out.println(\"Created table \" + dataSet.getTableName() + \" successfully.\");\n }\n }", "title": "" }, { "docid": "607d7cf0c4f63b7b0a303dba206d009c", "score": "0.47412345", "text": "@Override\n public void copyTo (OSMEntitySink sink) throws IOException {\n sink.setReplicationTimestamp(timestamp.get());\n sink.writeBegin();\n if (timestamp.get() > 0) {\n sink.setReplicationTimestamp(timestamp.get());\n }\n for (Map.Entry<Long, Node> nodeEntry : this.nodes.entrySet()) {\n sink.writeNode(nodeEntry.getKey(), nodeEntry.getValue());\n }\n for (Map.Entry<Long, Way> wayEntry : this.ways.entrySet()) {\n sink.writeWay(wayEntry.getKey(), wayEntry.getValue());\n }\n for (Map.Entry<Long, Relation> relationEntry : this.relations.entrySet()) {\n sink.writeRelation(relationEntry.getKey(), relationEntry.getValue());\n }\n sink.writeEnd();\n }", "title": "" }, { "docid": "261dd38fec308945e6789c3b9c844cef", "score": "0.4733274", "text": "public void persistJoinTable(JoinTableData joinTableData)\n {\n \n String poolName = PelopsUtils.generatePoolName(getPersistenceUnit());\n Mutator mutator = Pelops.createMutator(poolName);\n \n String joinTableName = joinTableData.getJoinTableName();\n String invJoinColumnName = joinTableData.getInverseJoinColumnName();\n Map<Object, Set<Object>> joinTableRecords = joinTableData.getJoinTableRecords();\n \n for (Object key : joinTableRecords.keySet())\n {\n Set<Object> values = joinTableRecords.get(key);\n \n List<Column> columns = new ArrayList<Column>();\n \n for (Object value : values)\n {\n Column column = new Column();\n column.setName(PropertyAccessorFactory.STRING.toBytes(invJoinColumnName + \"_\" + (String) value));\n column.setValue(PropertyAccessorFactory.STRING.toBytes((String) value));\n column.setTimestamp(System.currentTimeMillis());\n \n columns.add(column);\n }\n \n createIndexesOnColumns(joinTableName, poolName, columns);\n String pk = (String) key;\n \n mutator.writeColumns(joinTableName, Bytes.fromUTF8(pk), Arrays.asList(columns.toArray(new Column[0])));\n mutator.execute(ConsistencyLevel.ONE);\n }\n \n }", "title": "" }, { "docid": "8abc83b467f8713afbf8eb81cc094cf1", "score": "0.4717113", "text": "public interface SSTableDataSink\n{\n /**\n * Append the given partition.\n * This is equivalent to a sequence of startPartition, addUnfiltered for each item in the partition, and endPartition.\n */\n boolean append(UnfilteredRowIterator partition);\n\n /**\n * Start a partition with the given key and deletion time.\n * Returns false if the partition could not be added (e.g. if the key is too long).\n */\n boolean startPartition(DecoratedKey partitionKey, DeletionTime deletionTime) throws IOException;\n\n /**\n * Complete a partition. Must be called once for every startPartition.\n */\n void endPartition() throws IOException;\n\n /**\n * Add a new row or marker in the current partition. Must be preceded by startPartition.\n */\n void addUnfiltered(Unfiltered unfiltered) throws IOException;\n}", "title": "" }, { "docid": "2f324166e47184ebb9567addbff7cc32", "score": "0.46952453", "text": "public void writeSQL(SQLOutput stream) throws SQLException {\r\n }", "title": "" }, { "docid": "f0909543cefa1b36c4d586a0de8f0c85", "score": "0.46702197", "text": "public interface TransferDataByTable {\n\n @DataSource(type = \"mysql\")\n Map<String, Object> doSearchFromSourceTable(String fromTableName);\n\n @DataSource(type = \"oracle\")\n void doInsertToTargetTable(Map<String, Object> dataMap, String toTableName);\n\n @DataSource(type = \"oracle\")\n void doDeleteAllFromTargetTable(String tableName);\n\n\n}", "title": "" }, { "docid": "96b91f61ab66b6177944fd03efe248a8", "score": "0.46696818", "text": "public void setDstTable(String v) {this.dstTable = v;}", "title": "" }, { "docid": "16deaa00d306398de3c60ac4acacd572", "score": "0.4667968", "text": "@Override\n\tpublic void visit(CreateTable createTable) {\n\n\t}", "title": "" }, { "docid": "771c5c494b51b61d927c67cb101bd35c", "score": "0.4665692", "text": "PhysicalTable getDestinationTable();", "title": "" }, { "docid": "63c4d6af139ebff90dd54437306449fe", "score": "0.46227136", "text": "@Test\n\tpublic void testMqttSink() {\n\t\tString data = UUID.randomUUID().toString();\n\t\tstream(sources.mqtt() + XD_DELIMITER + sinks.file());\n\t\tsources.mqtt().ensureReady();\n\t\tstream(\"mqttSender\", \"trigger --payload='\" + data + \"'\" + XD_DELIMITER + sinks.mqtt());\n\t\tassertValid(data, sinks.file());\n\t\tassertReceived(1);\n\n\t}", "title": "" }, { "docid": "281a7ecf8fc14c1cf5580c2d82b33d18", "score": "0.4611769", "text": "TupleEntryIterator openSink( String name ) throws IOException;", "title": "" }, { "docid": "90221354ff77c2f02ddd0901c0df33c3", "score": "0.4606168", "text": "public Insert<T> into(Stream<String> tables);", "title": "" }, { "docid": "bea48f0ae8c01216aa62ceb57f410ec8", "score": "0.45802486", "text": "public abstract void write(Collection<SinkRecord> records,\n Integer partition,\n Long offset) throws IOException, C.KException;", "title": "" }, { "docid": "5cd430b6d086fda2104076e54a26f631", "score": "0.45787814", "text": "public static void main(String[] args) throws Exception {\n\t\tfinal int port;\n\t\ttry {\n\t\t\tfinal ParameterTool params = ParameterTool.fromArgs(args);\n\t\t\tport = params.getInt(\"port\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"No port specified. Please run 'SocketWindowWordCount --port <port>'\");\n\t\t\treturn;\n\t\t}\n\n\t\t// get the execution environment\n\t\tfinal StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\n\t\t// set time characteristic : TODO : setting it to processingTime but eventTime\n\t\t// might make more sense\n\t\tenv.setStreamTimeCharacteristic(TimeCharacteristic.ProcessingTime);\n\n\t\t// enable checkpointing\n\t\tenv.enableCheckpointing(10000);\n\n\t\t// get input data by connecting to the socket\n\t\tDataStream<String> stream = env.socketTextStream(\"localhost\", port, \"\\n\");\n\n\t\t// dedupe incoming items within a pre defined time window\n\t\tDataStream<String> dedupedStream = stream.keyBy(new StringKeySelector()).timeWindow(Time.minutes(1)).reduce(new DuplicationReducer());\n\n\t\t// enrich the deduped stream\n\t\tDataStream<ItemModel> resultStream = AsyncDataStream.unorderedWait(dedupedStream, new FeedStreamEnrichment(),\n\t\t\t\t120, TimeUnit.SECONDS, 100000);\n\n\t\t\n\t\t// *************** Section for writing data to sink *********************//\n\t\t\n\t\t// print stream contents to console\n\t\tresultStream.print().setParallelism(1);\n\t\t\n\t\t/**\n\t\t * Write to BucketingSink\n\t\t * Configure the bucketing sink within the methods in BucketingSinkUtils()\n\t\t * Current path is {basePath} / {yyyyMMdd--HHmm} / {categoryId}\n\t\t * The path can be configured in the com.flink.bucketer.CustomBucketer\n\t\t */\n\t\t\n\t\tBucketingSinkUtils bucketingSinkUtils = new BucketingSinkUtils();\n\t\tBucketingSink<ItemModel> sink = bucketingSinkUtils.getBucketingSink();\n\t\tresultStream.addSink(sink);\n\n\t\t\n\t\t/**\n\t\t * Write to ElasticSearch Sink\n\t\t * Comment the below section if you are running locally and do not have elasticsearch set up\n\t\t * \n\t\t */\n\t\t// init sink utils\n\t\t// ESSinkUtils esSinkUtils = new ESSinkUtils();\n\t\t//\n\t\t// resultStream.addSink(new ElasticsearchSink<>(esSinkUtils.createConfigMap(),\n\t\t// esSinkUtils.createSocketAddresses(), new\n\t\t// ElasticsearchSinkFunction<ItemModel>() {\n\t\t//\n\t\t// /**\n\t\t// *\n\t\t// */\n\t\t// private static final long serialVersionUID = 1L;\n\t\t//\n\t\t// public IndexRequest createIndexRequest(ItemModel element) {\n\t\t// Gson gson = new Gson();\n\t\t// return Requests.indexRequest()\n\t\t// .index(Constants.INDEX_NAME)\n\t\t// .type(Constants.TYPE_NAME)\n\t\t// .source(gson.toJson(element));\n\t\t// }\n\t\t//\n\t\t// @Override\n\t\t// public void process(ItemModel element, RuntimeContext ctx, RequestIndexer\n\t\t// indexer) {\n\t\t// indexer.add(createIndexRequest(element));\n\t\t// }\n\t\t// }));\n\n\t\tenv.execute(\"Async Stream Enrichment and Indexing\");\n\t}", "title": "" }, { "docid": "87192ed153d361d7a37101f58abe5630", "score": "0.45574066", "text": "public boolean insertQueryOutputToHiveTable(String query, String tablename) throws HiveDAOException;", "title": "" }, { "docid": "bd777cc146a1bc47ca78d60b39b0431f", "score": "0.45378852", "text": "public interface DataSink extends AutoCloseable{\n /**\n * write given data to this instance.\n * @param data writing data\n * @param entry meta data of data\n * @throws KunaiException I/O error\n */\n default void consume(byte[] data, Entry entry) throws KunaiException{\n consume(new ByteArrayInputStream(data), entry);\n }\n\n /**\n * write data from the given entry to this instance.\n *\n * @param entry writing data and its meta data\n * @throws KunaiException I/O error\n */\n default void consume(Entry entry) throws KunaiException{\n try{ consume(entry.openStream(), entry); }\n catch(IOException e){\n throw new KunaiException(e.getMessage());\n }\n }\n\n /**\n * write given data from stream to this instance.\n * @param in writing data\n * @param entry meta data of data\n * @throws KunaiException I/O error\n */\n void consume(InputStream in, Entry entry) throws KunaiException;\n\n /**\n * write given data entries to this instance.\n * @param source writing data\n */\n default void consume(DataSource source){\n source.stream().forEach(entry -> { \n try{ consume(entry); }\n catch(KunaiException e){ }\n });\n }\n\n /**\n * closes this instance.\n * After the calling this method, writing data of this instance causes the I/O error.\n * @throws IOException I/O error\n */\n @Override\n void close() throws IOException;\n}", "title": "" }, { "docid": "ad7839069b8243b4faeb0f68d63a2830", "score": "0.45231813", "text": "@Override\n public void insertProcessedLink(String link) {\n\n Map<String,Object> param = new HashMap<>();\n param.put(\"tableName\",\"LINKS_ALREADY_PROCESSED\");\n param.put(\"link\",link);\n try(SqlSession session = sqlSessionFactory.openSession(true)){\n session.insert(\"com.github.yuyunzhi.MyMapper.insertLink\",param);\n\n }\n }", "title": "" }, { "docid": "5f7f95d2371a3584bdd5eb17ae7aed51", "score": "0.45228937", "text": "private void backupTableData(String tableName, String backupTableName) throws SQLException{\n \n // sql query to backup the table data\n String sqlBackupData = \"INSERT INTO \" + backupTableName \n + \" SELECT * FROM \" + tableName + \" ;\";\n \n // execute sql statements\n statement.executeUpdate(sqlBackupData);\n }", "title": "" }, { "docid": "973f4397aa44bf07476c0cf127a5a09c", "score": "0.45203605", "text": "public KuduSink (String host, String tableName) throws KuduClientException {\n\n if (host == null || host.isEmpty()) {\n throw new IllegalArgumentException(\"ERROR: Param \\\"host\\\" not valid (null or empty)\");\n\n } else if (tableName == null || tableName.isEmpty()) {\n throw new IllegalArgumentException(\"ERROR: Param \\\"tableName\\\" not valid (null or empty)\");\n }\n\n this.host = host;\n this.tableName = tableName;\n }", "title": "" }, { "docid": "57446e962b20a575e472410b46939d9c", "score": "0.4509355", "text": "default <T> Sink<T, CompletionStage<Done>> itemsSink(String topic) {\n return Flow\n .<T>create()\n .map(Record::apply)\n .toMat(recordsSink(topic), Keep.right());\n }", "title": "" }, { "docid": "f7c5c1d15b76ef6a27c1d86ea0c7e29a", "score": "0.45041165", "text": "default <T> Sink<T, CompletionStage<Done>> itemsSink(String topic, Function<T, String> key) {\n return Flow\n .<T>create()\n .map(r -> Record.apply(r, key.apply(r)))\n .toMat(recordsSink(topic), Keep.right());\n }", "title": "" }, { "docid": "66374c794dbb88cdcd345286eb7f8cf1", "score": "0.44931397", "text": "protected void createTables() {\n\t\tMigrationConfiguration config = context.getConfig();\n\t\tList<SourceEntryTableConfig> sourceTables = config.getExpEntryTableCfg();\n\t\tList<SourceSQLTableConfig> sourceSQLTables = config.getExpSQLCfg();\n\t\tList<SourceCSVConfig> sourceCSVFiles = config.getCSVConfigs();\n\t\tList<String> tableCreated = new ArrayList<String>();\n\t\tfor (SourceEntryTableConfig st : sourceTables) {\n\t\t\tif (!st.isCreateNewTable()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (tableCreated.indexOf((st.getTargetOwner() + \".\" + st.getTarget())) >= 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttableCreated.add(st.getTargetOwner() + \".\" + st.getTarget());\n\t\t\texecuteTask(taskFactory.createExportTableSchemaTask(st));\n\t\t}\n\t\tfor (SourceSQLTableConfig st : sourceSQLTables) {\n\t\t\tif (!st.isCreateNewTable()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (tableCreated.indexOf(st.getTarget()) >= 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttableCreated.add(st.getTarget());\n\t\t\texecuteTask(taskFactory.createExportTableSchemaTask(st));\n\t\t}\n\t\t//Create CSV file table\n\t\tfor (SourceCSVConfig scc : sourceCSVFiles) {\n\t\t\tif (!scc.isCreate()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (tableCreated.indexOf(scc.getTarget()) >= 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttableCreated.add(scc.getTarget());\n\t\t\texecuteTask(taskFactory.createExportCSVTableSchemaTask(scc));\n\t\t}\n\t\tawait();\n\t}", "title": "" }, { "docid": "81f280931936b5dd24772308ff1728ef", "score": "0.4490246", "text": "void insertBatch(List<TABLE112> recordLst);", "title": "" }, { "docid": "3e70cd12e755732901a42bb51748faa0", "score": "0.44740167", "text": "private void setupFourTableDataset() throws SQLException, IOException {\n snapshot = new Snapshot().id(snapshotId);\n // Table 1 - All Data Types Table\n allDataTypesTable =\n synapseUtils.ingestIntoAllDataTypesTable(\n csvIngestRequestModel,\n \"azure-simple-dataset-ingest-request.csv\",\n randomFlightId,\n datasetStorageAccountResource,\n billingProfile);\n SnapshotTable allDataTypesSnapshotTable = setupSnapshotTable(allDataTypesTable);\n\n // Table 2 - date_of_birth\n String dateOfBirthTableIngestFlightId = UUID.randomUUID().toString();\n dateOfBirthTable =\n synapseUtils.ingestIntoTable(\n \"ingest-test-dataset-table-date-of-birth.json\",\n csvIngestRequestModel,\n \"ingest-test-dataset-date-of-birth-rows.csv\",\n dateOfBirthTableIngestFlightId,\n \"synapsetestdata/test\",\n 4,\n datasetStorageAccountResource,\n billingProfile);\n SnapshotTable dateOfBirthSnapshotTable = setupSnapshotTable(dateOfBirthTable);\n\n // Table 3 - Participant\n SnapshotTable participantSnapshotTable = setupParticipantTable();\n\n // Table 4 - Sample\n SnapshotTable sampleSnapshotTable = setupSampleTable();\n\n snapshot.snapshotTables(\n List.of(\n allDataTypesSnapshotTable,\n dateOfBirthSnapshotTable,\n participantSnapshotTable,\n sampleSnapshotTable));\n\n // Define relationships\n AssetRelationship participantDOBRelationship =\n new AssetRelationship()\n .datasetRelationship(\n new Relationship()\n .id(UUID.randomUUID())\n .fromColumn(participantTable.getColumnByName(\"id\").orElseThrow())\n .fromTable(participantTable)\n .toColumn(dateOfBirthTable.getColumnByName(\"participant_id\").orElseThrow())\n .toTable(dateOfBirthTable)\n .name(\"participant_dob_table\"));\n AssetRelationship participantADTRelationship =\n new AssetRelationship()\n .datasetRelationship(\n new Relationship()\n .id(UUID.randomUUID())\n .fromColumn(participantTable.getColumnByName(\"first_name\").orElseThrow())\n .fromTable(participantTable)\n .toColumn(allDataTypesTable.getColumnByName(\"first_name\").orElseThrow())\n .toTable(allDataTypesTable)\n .name(\"participant_allDataTypes_table\"));\n // Test Array field\n AssetRelationship participantSampleRelationship =\n new AssetRelationship()\n .datasetRelationship(\n new Relationship()\n .id(UUID.randomUUID())\n .fromColumn(participantTable.getColumnByName(\"id\").orElseThrow())\n .fromTable(participantTable)\n .toColumn(sampleTable.getColumnByName(\"participant_ids\").orElseThrow())\n .toTable(sampleTable)\n .name(\"participant_sample_table\"));\n relationships =\n List.of(\n participantDOBRelationship, participantADTRelationship, participantSampleRelationship);\n }", "title": "" }, { "docid": "85f4ede5069da92c2bcbbdf27c2aae1f", "score": "0.44727007", "text": "protected void saveSinkData(String data) throws IOException {\r\n\t\tFileSystem fs = FileSystem.get(new Configuration());\r\n\t\t\r\n\t\tString executionPath = context.getConfiguration().get(\"executionPath\");\r\n\t\tint iteration = context.getConfiguration().getInt(\"iteration\",0);\r\n\t\t\r\n\t\tPath path = new Path(executionPath + \"/sink/part-r-00000\");\r\n\t\tPath oldPath = new Path(executionPath + \"/sink/\"+iteration+\"/part-r-00000\");\r\n\t\t\r\n\t\tif (fs.exists(oldPath) && !fs.delete(oldPath, false))\r\n\t\t\tthrow new IOException(\"Error while deleting \\\"\" + path.toString()\r\n\t\t\t\t\t+ \"\\\"\");\r\n\t\twriteData(data, fs, oldPath);\r\n\t\tif (fs.exists(path) && !fs.delete(path, false))\r\n\t\t\tthrow new IOException(\"Error while deleting \\\"\" + path.toString()\r\n\t\t\t\t\t+ \"\\\"\");\r\n\t\twriteData(data, fs, path);\r\n\t}", "title": "" }, { "docid": "d5b918e8b2448a12f79a6a4a45252794", "score": "0.44700176", "text": "private void putDrinkInTable() {\n\t\ttry {\n\t\t\tlistDrink = (List<Drink>) UserInterfaceController.getUserInterfaceController()\n\t\t\t.execute(TransferClass.createOperation(null, ConstantsControllerBusinessLogic.GET_DRINK, ConstantsUserInterfaceController.DRINK)).getResponse();\n\t\t\tdtm.setRowCount(0);\n\t\t\tfor(Drink d : listDrink) {\n\t\t\t\tObject [] row = {d.getId(),d.getName(),d.getPrice()};\n\t\t\t\tdtm.addRow(row);\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "759ba31d16b694dab69efec3a64b99ab", "score": "0.44643193", "text": "public interface DataSink<I>\n{\n //-------------------------------------------------------------------------\n public void process(I input) throws Exception;\n}", "title": "" }, { "docid": "ffd687db506cc4bd556d7ecc387185c6", "score": "0.44641158", "text": "public abstract void updateEntities(Table table, Set<Column> columns, OutputStreamWriter scriptFileWriter, DBMS targetConfiguration, boolean inSourceSchema, String reason) throws SQLException;", "title": "" }, { "docid": "bb7ea80e56b37e09afbfe15096b64a5e", "score": "0.44605082", "text": "public void saveToDatabase(String userId) throws Exception{\r\n if (!(dataLayer instanceof ChannelSet)) throw new Exception(\"Must be a channelset\");\r\n ChannelSet cs = (ChannelSet) dataLayer;\r\n \r\n MySqlDAO mydao = new MySqlDAO();\r\n String uuIdStr = UUID.randomUUID().toString(); //.. what is this?\r\n mydao.connSQL();\r\n\r\n //.. Retrieve the datalayer that is associated with this user - but this assumes that there is only ONE\r\n mydao.createTable(cs.id, userId, cs.getColumnNames());\r\n for (Channel c : cs.streams) {\r\n mydao.addColumnToTable(cs.id, c.id, c);\r\n }\r\n mydao.deconnSQL();\r\n \r\n // boolean num = mydao.insertSQL(\"insert into datalayer(id,user_id,parent_id,data,file_name) VALUES ('\"+uuIdStr+\"','\"+userId+\"','\"+null+\"','\"+null+\"', '\"+filename+\"')\");\r\n \r\n /** Next step : clean up what was done and make so that the save command adheres\r\n * to the new structure. Then see if we can establish a connection between D3 or some\r\n * other moving stream JS library that is just ticking along. The communication\r\n * between backend and front end is no longer stripes but through databases \r\n **/\r\n \r\n }", "title": "" }, { "docid": "56a65cece542d4840265329257e76add", "score": "0.4453698", "text": "int insert(SalesTarget record);", "title": "" }, { "docid": "2db56cfac77dd7926f5ebf550ec0ff14", "score": "0.44404167", "text": "Tap getSink();", "title": "" }, { "docid": "475b28d3a9f9f25551160d17be861a95", "score": "0.44356045", "text": "@Test\n public void testFederatedDatastream() throws IOException {\n final String federationAddress = serverAddress + \"files/FileSystem1/ds1\";\n final String linkingAddress;\n try (final CloseableHttpResponse response = client.execute(new HttpPost(serverAddress))) {\n EntityUtils.consume(response.getEntity());\n linkingAddress = response.getFirstHeader(\"Location\").getValue();\n }\n\n // link from the object to the content of the file on the federated filesystem\n final HttpPatch patch = new HttpPatch(linkingAddress);\n patch.addHeader(\"Content-Type\", \"application/sparql-update\");\n patch.setEntity(new ByteArrayEntity(\n (\"INSERT DATA { <> <http://some-vocabulary#hasExternalContent> \" + \"<\" + federationAddress + \"> . }\")\n .getBytes()));\n assertEquals(\"Couldn't link to external datastream!\", NO_CONTENT.getStatusCode(), getStatus(patch));\n }", "title": "" }, { "docid": "c6b39b4f1846756e1c4661d5ec320258", "score": "0.4432273", "text": "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tset_data_to_table();\r\n\t\t} catch (Exception 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": "2a17f9fd308ed0b11fb2c266cf477db3", "score": "0.44293383", "text": "void write(MySQLPacketPayload payload);", "title": "" }, { "docid": "503d394d29ffff2cedcd9d2aae483973", "score": "0.442893", "text": "public void setSourceTable(String v) {this.sourceTable = v;}", "title": "" }, { "docid": "b40511d065019eba2cf35f096997e2fb", "score": "0.44113007", "text": "<R, C extends RecordContext> Sink<Record<R, C>, CompletionStage<Done>> recordsSink(String topic);", "title": "" }, { "docid": "58b0f76efce7bcb8540c5cac9fab1864", "score": "0.43972316", "text": "public void joinTable(\n String tableID,\n String nickname,\n TableWindowCallback callback) {\n build(null, tableID, nickname, callback);\n }", "title": "" }, { "docid": "c7e6527ce7819f45681e4a3b7b1670dd", "score": "0.43871465", "text": "private void insertData(List<InputStream> inputStreams) throws Exception {\n\n Connection targetConn = dbInterface.getTargetConnection();\n\n for (InputStream nextInputStream : inputStreams) {\n String query = getInsertMakerQuery(nextInputStream);\n\n // Now, the results of that query represent insert statements, one per row.\n Connection sourceConn = dbInterface.getSourceConnection();\n Statement fetchStmt = sourceConn.createStatement();\n ResultSet fetchSourceResults = getResultSet(query, fetchStmt);\n\n Statement batchStmt = targetConn.createStatement();\n while (fetchSourceResults.next()) {\n StringBuilder targetInsertBuilder = new StringBuilder();\n ResultSetMetaData metadata = fetchSourceResults.getMetaData();\n for (int i = 0; i < metadata.getColumnCount(); i++) {\n int colnum = i + 1;\n\n Object value = null;\n\n if (metadata.getColumnTypeName(colnum).equalsIgnoreCase(\"VARBINARY\")) {\n Blob blob = fetchSourceResults.getBlob(colnum);\n value = getBlobResult(blob);\n } else {\n value = fetchSourceResults.getObject(colnum);\n }\n if (value != null) {\n // Must escape the single and double-quote values, so they do not cause SQL mishaps.\n // However, there can be escaped single quotes in the string already. To avoid making\n // four quotes next to each (or 6, 8, etc.) will first ENSURE there are no escaped ones,\n // and then escape the single-quotes which then remain.\n String tempStr = value.toString();\n boolean reWrap = false;\n if (tempStr.startsWith(\"\\\"\") && tempStr.endsWith(\"\\\"\")) {\n tempStr = tempStr.substring(1, tempStr.length() - 1);\n reWrap = true;\n }\n\n tempStr = tempStr.replaceAll(\"''\", \"'\");\n tempStr = tempStr.replaceAll(\"'\", \"''\");\n // Must change double quotes into backslashed-double-quotes. Hence 1:3 backslashes.\n tempStr = tempStr.replaceAll(\"\\\"\", \"\\\\\\\\\\\"\");\n if (reWrap) {\n targetInsertBuilder.append(\"\\\"\"); // Put old double-qoute back on end.\n }\n targetInsertBuilder.append(tempStr);\n if (reWrap) {\n targetInsertBuilder.append(\"\\\"\"); // Put old double-qoute back on end.\n }\n } else\n targetInsertBuilder.append(\"NULL\");\n\n }\n\n String targetInsertStatement = targetInsertBuilder.toString();\n batchStmt.addBatch(targetInsertStatement);\n\n if (fetchSourceResults.getRow() <= 10)\n System.out.println(targetInsertStatement);\n\n }\n fetchStmt.close();\n\n batchStmt.executeBatch();\n batchStmt.close();\n }\n\n }", "title": "" }, { "docid": "7e7fdc52c126d432154574f9505baf9b", "score": "0.43857515", "text": "protected abstract void createMigrationJob(StreamExecutionEnvironment env);", "title": "" }, { "docid": "fc282944084f66231bca1dd1b71b7ff3", "score": "0.4384397", "text": "public void joinTable(String user, int tid);", "title": "" }, { "docid": "50a5019c70acf180592b1bb57fc32406", "score": "0.43807423", "text": "public void buildHistoryTable() {\n try {\n if (con.isClosed()) {\n // get connection\n buildConnection();\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n\n try {\n buildTable = con.createStatement();\n buildTable.executeUpdate(\n \"create table \"\n + \"history\"\n + \"(route_id integer,\"\n + \"airlineName varchar(60),\"\n + \"airlineID integer,\"\n + \"sourceAirport varchar(60),\"\n + \"sourceAirportID integer,\"\n + \"destinationAirport varchar(60),\"\n + \"destinationAirportID integer,\"\n + \"codeShare varchar(60),\"\n + \"numOfStops integer,\"\n + \"equipment varchar(256),\"\n + \"emissions double(100, 10),\"\n + \"distance double(100, 10),\"\n + \"timesTaken integer,\"\n + \"primary key (route_id))\");\n startCommite();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n } finally {\n try {\n buildTable.close();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "title": "" }, { "docid": "73859cad31100a882e0e60ec52d77908", "score": "0.43770432", "text": "@Override\r\npublic void joinTeam(String uid, String tid) {\n\tSession session=sessionFactory.openSession();\r\n\tfinal String update=\"insert into users_team values(\"+uid+\",\"+tid+\")\";\r\n\tSystem.out.println(update);\r\n\tWork work=new Work(){\r\n\t\t@Override\r\n\t\tpublic void execute(Connection connection) throws SQLException {\r\n\t\t\t PreparedStatement stmt=connection\r\n\t\t\t .prepareStatement(update);\r\n\t\t\t stmt.executeUpdate();\r\n\t\t}\r\n };\r\n session.doWork(work);\r\n session.close();\r\n}", "title": "" }, { "docid": "13a8128e97b5347707c5edafe1b38a95", "score": "0.43729186", "text": "private void storeTable(String tableName) throws RuntimeException {\r\n try {\r\n File file = new File(tableName + \".db\");\r\n PrintWriter printWriter = new PrintWriter(file);\r\n for (Table table : database) { //The program commonly uses enhanced for loops since it often has to search through the \"database\" array and enhanced for loops simplify the notation considerably\r\n if (table == null) { //But, as one will recall, each enhanced for loop requires this statement to prevent a null pointer exception\r\n break;\r\n }\r\n if (tableName.equals(table.getTableName())) { //Finds the table object that the query indicates\r\n for (Row row : table.getRows()) {\r\n for (int i = 0; i < row.getRowData().length; i++) {\r\n if (i > 0) { //Makes sure that comma is only printed after the first column in each row\r\n printWriter.print(\",\");\r\n }\r\n printWriter.print(row.getRowData()[i]); //Since the column names are automatically added as the first row and the column types as the second,\r\n } //there is no need to treat them as special cases; simply printing out all the rows is sufficient\r\n printWriter.println();\r\n }\r\n }\r\n }\r\n printWriter.close();\r\n }\r\n catch (IOException e) {\r\n throw new RuntimeException(\"Cannot create file.\"); //Handled by the throw statement in the method declaration and the surrounding try block in useQuery()\r\n }\r\n }", "title": "" }, { "docid": "a5438e2f27aac1590d64abf49c769db4", "score": "0.43688604", "text": "TupleEntryIterator openSink() throws IOException;", "title": "" }, { "docid": "65e0719449efabf913d0b4e4b3e755d5", "score": "0.4368458", "text": "public void recordDataTable(String tableName, DataTableType type){\n\t\ttryStatement(_conn, \"INSERT INTO \" + DATA_TABLES_TABLE + \n\t\t\t\t\"(table_name, type) VALUES('\" + tableName + \"',\" + \"'\" + type + \"')\");\n\t}", "title": "" }, { "docid": "8e7abdfe2a3870536737ec5caa78c125", "score": "0.43546188", "text": "public void writeSome(Table table) throws Throwable {\r\n if (table.nRows() == 0) \r\n return;\r\n\r\n //to save memory, this just does a feeble job (remove non-max rows from this partial table)\r\n // and leaves perfect job to finish()\r\n changeUnits(table, fromUnits, toUnits);\r\n\r\n //ensure the table's structure is the same as before\r\n ensureCompatible(table); //this stores everything that TableWriter needs\r\n\r\n //pass it on\r\n otherTableWriter.writeSome(table);\r\n }", "title": "" }, { "docid": "dc3233e2f63685b06d5414bc635420e0", "score": "0.43491906", "text": "public void setCreateDstTable(boolean v) {this.createDstTable = v;}", "title": "" }, { "docid": "f09f1a1cde9eaffdd5f1e9c3a94532d8", "score": "0.4343099", "text": "public boolean exportQueryOutputToMySQLTable(String server, String port, String database, String username, String password, String tablename, String[] colName) throws HiveDAOException;", "title": "" }, { "docid": "efbd764cc96473ddf8a7c4782089d124", "score": "0.43425226", "text": "public void setFlowTableBatchPushFrequency(Integer flowTableBatchPushFrequency) {\n this.flowTableBatchPushFrequency = flowTableBatchPushFrequency;\n }", "title": "" }, { "docid": "1d3f3ab80a0183a832fc990dbc871ed8", "score": "0.43405992", "text": "public void setTargetTable(String targetTable) {\n\t\tm_sTargetTable = targetTable;\n\t}", "title": "" }, { "docid": "888caf63f9e1ca4caae37c3d133dfec8", "score": "0.43361774", "text": "private void storeData( Element tableEl, TabularData tdata ) {\n tableDataMap.put( tableEl, tdata );\n }", "title": "" }, { "docid": "c58f2909587f6e377c04a00f4f1d12dc", "score": "0.4335166", "text": "public static void createNewTable(String tableQuery, String databasename) {\n String url = \"jdbc:sqlite:\" + databasename;\n\n try (Connection conn = DriverManager.getConnection(url); Statement stmt = conn.createStatement()) {\n // create a new table\n stmt.execute(tableQuery);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "94ce158c8a2f745ac584e7e022a056c8", "score": "0.43339834", "text": "public void exportMapping(Mapping mapping, ArrayList<MappingCell> mappingCells, File file) throws IOException\r\n\t{\t\r\n\t\t\r\n\t\tString schema1Name = client.getSchema(mapping.getSourceId()).getName();\r\n\t\tString schema2Name = client.getSchema(mapping.getTargetId()).getName(); \t\r\n\t\tDatabase mdb = null;\r\n\t\t\r\n\t\t// Initializes the db for the specified URI\r\n\t\ttry {\r\n\t\t\t// connect to MS Access database\r\n\t\t\tmdb = Database.create(Database.FileFormat.V2003, file);\r\n\t\t\t\r\n\t System.out.println (\"Database connection established.\"); \t\t\t \r\n\t \r\n\t Table t = new TableBuilder(\"T_Schema\")\r\n\t .addColumn(new ColumnBuilder(\"schema_PK\")\r\n\t .setSQLType(Types.INTEGER)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"schemaName\")\r\n\t .setSQLType(Types.VARCHAR)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"schemaDescription\")\r\n\t .setSQLType(Types.LONGVARCHAR)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"schemaDateTime\")\r\n\t .setSQLType(Types.DATE)\r\n\t .toColumn())\r\n\t .toTable(mdb);\r\n\r\n\t\t\t\t\t\t\r\n\t\t\tint id1 = mapping.getSourceId();\r\n\t\t\tint id2 = mapping.getTargetId();\r\n\t\t\tDate today = new Date();\r\n\t\t\tString schema1Des = client.getSchema(id1).getDescription();\r\n\t\t\tString schema2Des = client.getSchema(id2).getDescription();\r\n\r\n\t\t\tt.addRow(id1, schema1Name, schema1Des, today);\r\n\t\t\tt.addRow(id2, schema2Name, schema2Des, today);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tTable t2 = new TableBuilder(\"tblTimestamps\")\r\n\t .addColumn(new ColumnBuilder(\"exportDateTime\")\r\n\t .setSQLType(Types.DATE)\r\n\t .toColumn())\r\n\t .toTable(mdb);\r\n\t\t\tt2.addRow(today);\r\n \r\n\t Table t3 = new TableBuilder(\"T_MatchLink\")\r\n\t .addColumn(new ColumnBuilder(\"linkIdentifier_PK\")\r\n\t .setSQLType(Types.INTEGER)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"leftSchema_FK\")\r\n\t .setSQLType(Types.INTEGER)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"leftNodePath\")\r\n\t .setSQLType(Types.LONGVARCHAR)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"rightSchema_FK\")\r\n\t .setSQLType(Types.INTEGER)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"rightNodePath\")\r\n\t .setSQLType(Types.LONGVARCHAR)\r\n\t .toColumn()) \r\n\t .addColumn(new ColumnBuilder(\"linkWeight\")\r\n\t .setSQLType(Types.VARCHAR)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"linkAuthor\")\r\n\t .setSQLType(Types.VARCHAR)\r\n\t .toColumn())\r\n\t .addColumn(new ColumnBuilder(\"linkDateTime\")\r\n\t .setSQLType(Types.VARCHAR)\r\n\t .toColumn()) \r\n\t .addColumn(new ColumnBuilder(\"linkTransform\")\r\n\t .setSQLType(Types.VARCHAR)\r\n\t .toColumn()) \r\n\t .addColumn(new ColumnBuilder(\"linkNote\")\r\n\t .setSQLType(Types.LONGVARCHAR)\r\n\t .toColumn()) \r\n\t .toTable(mdb); \t \r\n\r\n\t HierarchicalSchemaInfo source = new HierarchicalSchemaInfo(client.getSchemaInfo(mapping.getSourceId()));\r\n\t\t\tsetSourceInfo(source);\r\n\t\t\tHierarchicalSchemaInfo target = new HierarchicalSchemaInfo(client.getSchemaInfo(mapping.getTargetId()));\r\n\t\t\tsetTargetInfo(target);\t \r\n\r\n\t\t\tSystem.out.println(\"#mapping cells=\"+mappingCells.size());\r\n\t\t\t// Get the list of mapping cells\r\n\t\t\tCompressedList matchList = new CompressedList();\r\n\t\t\tfor(MappingCell mappingCell : mappingCells) {\r\n\t\t\t\tmatchList.addMappingCell(mappingCell);\r\n\t\t\t}\r\n\t \t\tList<CompressedMatch> matches = matchList.getMatches();\r\n\t\t\tCollections.sort(matches);\r\n\t \t\t\r\n\t\t\tint linkIdentifier_PK = 0; // the primary key for the table\r\n\t\t\tfor(CompressedMatch match : matches) { \r\n\t\t\t\tlinkIdentifier_PK++;\r\n\r\n\t\t\t\tint leftSchema_FK = mapping.getSourceId();\r\n\t\t\t\tint rightSchema_FK = mapping.getTargetId();\r\n\t\t\t\t\r\n\t\t\t\tString leftNodePath = match.getPaths1();\r\n\t\t\t\tString rightNodePath = match.getPaths2();\r\n\t\t\t\tdouble linkWeight = match.getScore();\r\n\t\t\t\tString linkAuthor = match.getAuthor(); if (linkAuthor==null || linkAuthor.equals(\"null\")) { linkAuthor=\"\"; }\r\n\t\t\t\tString linkDateTime = match.getDate(); if (linkDateTime==null|| linkDateTime.equals(\"null\")) { linkDateTime=\"\"; }\r\n\t\t\t\tString linkTransform = match.getTransform(); if (linkTransform==null|| linkTransform.equals(\"null\")) { linkTransform=\"\"; }\r\n\t\t\t\tString linkNote = match.getNotes(); if (linkNote==null|| linkNote.equals(\"null\")) { linkNote=\"\"; }\r\n\t\t\t\tt3.addRow(linkIdentifier_PK, leftSchema_FK, leftNodePath, rightSchema_FK, rightNodePath, \r\n\t\t\t\t\t\t\"\"+linkWeight, linkAuthor, linkDateTime, linkTransform, linkNote);\r\n\t\t\t} // for matches loop\t\r\n\t\t\tmdb.close();\r\n\t\t} //end try\r\n\t\tcatch(Exception e) { \r\n\t\t System.err.println (\"Error with database\" +file); \r\n\t\t e.printStackTrace(); \r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7894f756cc396dd8867001f3a9fef8cb", "score": "0.4326726", "text": "protected void createRecords() {\n\t\tMigrationConfiguration config = context.getConfig();\n\t\tboolean isMigData = false;\n\t\tList<SourceEntryTableConfig> entryTables = config.getExpEntryTableCfg();\n\t\tfor (SourceTableConfig table : entryTables) {\n\t\t\tisMigData = isMigData || table.isMigrateData();\n\t\t}\n\t\tList<SourceSQLTableConfig> sqlTables = config.getExpSQLCfg();\n\t\tfor (SourceTableConfig table : sqlTables) {\n\t\t\tisMigData = isMigData || table.isMigrateData();\n\t\t}\n\t\tList<SourceCSVConfig> csvs = config.getCSVConfigs();\n\t\tisMigData = isMigData || !csvs.isEmpty();\n\t\t//If no data to be migrated, return\n\t\tif (!isMigData) {\n\t\t\treturn;\n\t\t}\n\t\tif (config.sourceIsOnline()) {\n\t\t\t//schedule exporting tasks\n\t\t\tfor (SourceTableConfig table : entryTables) {\n\t\t\t\tif (!table.isMigrateData()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\texecuteTask2(taskFactory.createExportTableRecordsTask(table));\n\t\t\t}\n\t\t\tfor (SourceTableConfig table : sqlTables) {\n\t\t\t\tif (!table.isMigrateData()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\texecuteTask2(taskFactory.createExportTableRecordsTask(table));\n\t\t\t}\n\t\t} else if (config.sourceIsXMLDump()) {\n\t\t\texecuteTask(taskFactory.createExportAllRecordsTask());\n\t\t} else if (config.sourceIsCSV()) {\n\t\t\tfor (SourceCSVConfig csv : csvs) {\n\t\t\t\texecuteTask(taskFactory.createExportCSVTask(csv));\n\t\t\t}\n\t\t}\n\t\tawait();\n\t}", "title": "" }, { "docid": "a77038eb7a5699fdd42d4fc45d5a582b", "score": "0.43243802", "text": "public void feedForward() {\n destinationNeuron.input(sourceNeuron.getOutput() * weight);\n }", "title": "" }, { "docid": "18a438516adc2d7551d6667ca567ed15", "score": "0.43189016", "text": "@Override\r\n\tpublic void importToSQL() throws SQLException {\n\r\n\t}", "title": "" }, { "docid": "9cca60220806fc8bf213d1011f26c852", "score": "0.43140367", "text": "int insert(TCustLink record);", "title": "" }, { "docid": "8056991c06c972bd72bb76c31f0c0799", "score": "0.43122265", "text": "@Override\n public void onTrigger(final ProcessContext context, final ProcessSessionFactory sessionFactory) throws ProcessException {\n final ProcessSession session = sessionFactory.createSession();\n final FlowFile flowFile = session.get();\n if (flowFile == null) {\n return;\n }\n\n try {\n StopWatch stopWatch = new StopWatch(true);\n session.read(flowFile, new InputStreamCallback() {\n @Override\n public void process(final InputStream in) throws IOException {\n InputStream event = in;\n\n String delimiter = getOutgoingMessageDelimiter(context, flowFile);\n if (delimiter != null) {\n final Charset charSet = Charset.forName(context.getProperty(CHARSET).getValue());\n event = new DelimitedInputStream(in, delimiter.getBytes(charSet));\n }\n\n eventSender.sendEvent(event);\n }\n });\n\n session.getProvenanceReporter().send(flowFile, transitUri, stopWatch.getElapsed(TimeUnit.MILLISECONDS));\n session.transfer(flowFile, REL_SUCCESS);\n session.commitAsync();\n } catch (Exception e) {\n onFailure(context, session, flowFile);\n getLogger().error(\"Exception while handling a process session, transferring {} to failure.\", new Object[] { flowFile }, e);\n }\n }", "title": "" }, { "docid": "16f85f89ed4151dcc20fa61865861c96", "score": "0.43081316", "text": "@Override\n\tpublic void exportDataInFile() {\n\t\tdao.exportDataInFile();\n\t}", "title": "" }, { "docid": "87c035bd7f762886f5945cb71087c911", "score": "0.43031847", "text": "public void createTable(Table<?,?> table){\n tables.put(table.getName(), table);\n table.setDatabase(this);\n table.create();\n }", "title": "" }, { "docid": "e075bab5f3d204555f203ec0617b1472", "score": "0.4301105", "text": "public String getTableDbName() {\n return \"WHITE_REF_NEXT_TARGET\";\n }", "title": "" }, { "docid": "0ed6661c322f7636b249020c493e9eb7", "score": "0.4300288", "text": "public interface Sink {\n\n /**\n * Invoked by {@link Metrics} to record unit of work metrics data to\n * this {@link Sink}.\n *\n * @param event The metrics data for the unit of work.\n */\n void record(Event event);\n}", "title": "" }, { "docid": "a1523e6f12c7676bbc3148d019218f55", "score": "0.42954278", "text": "@Test\n public void testAddToExistingSinkEvent() throws InterruptedException {\n testAddingSinkEvent();\n\n Set<ConnectPoint> sinksCp = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_B));\n Map<HostId, Set<ConnectPoint>> sinks = ImmutableMap.of(HOST_ID_NONE, sinksCp);\n previousSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks);\n sinksCp = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_B, CONNECT_POINT_C));\n sinks = ImmutableMap.of(HOST_ID_NONE, sinksCp);\n currentSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks);\n // Again listening the mcast event with different output port ( none --> CP_B, CP_C)\n McastEvent event = new McastEvent(McastEvent.Type.SINKS_ADDED, previousSubject, currentSubject);\n cordMcast.listener.event(event);\n\n // NextMap will contain the operation \"ADD_TO_EXISTING\" in the DefaultNextObjective.\n assertAfter(WAIT_TIMEOUT, WAIT_TIMEOUT * 2, () ->\n assertTrue(nextMap.get(DEVICE_ID_OF_A).op() == Objective.Operation.ADD_TO_EXISTING));\n // Output port number will be changed to 24 i.e. PORT_C\n Collection<TrafficTreatment> traffictreatMentCollection = nextMap.get(DEVICE_ID_OF_A).next();\n assertTrue(1 == traffictreatMentCollection.size());\n OutputInstruction output = null;\n for (TrafficTreatment trafficTreatment : traffictreatMentCollection) {\n output = outputPort(trafficTreatment);\n }\n assertNotNull(output);\n assertTrue(PORT_C == output.port());\n }", "title": "" }, { "docid": "8430a25fc7074fc7da5aefbcabeba233", "score": "0.4290801", "text": "@Test\n public void insertTestData() throws SQLException {\n long totalFeedCount = 0;\n PreparedStatement ps = con\n .prepareStatement(\"insert into user_feed (user_id, feed_id, rss_link_id, vote_sys) values (?, ?, ?, ?)\");\n con.setAutoCommit(false);\n for (int userid = USER_ID_START; userid < USER_ID_END; userid++) {\n int subcount = getSubsPerUser();\n int start = getFeeIDStart();\n for (int subid = SUB_ID_START; subid < subcount + SUB_ID_START; subid++) {\n int feedCount = getPerSubFeedCount();\n totalFeedCount += feedCount;\n for (int feedid = start; feedid < feedCount + start; feedid++) {\n ps.setInt(1, userid);\n ps.setInt(2, feedid);\n ps.setInt(3, subid);\n ps.setDouble(4, getScore());\n ps.addBatch();\n }\n start += feedCount;\n ps.executeBatch();\n con.commit();\n }\n }\n\n System.out.println(totalFeedCount);\n }", "title": "" }, { "docid": "b1cbebb1fd0aec096a50b448a32d7a2b", "score": "0.42906085", "text": "private void generateTableInsertionSQL() {\n\t\tString sql = \"INSERT INTO \" + this.toString() + \"(\";\n\t\tString valueStr = \"values(\";\n\t\tfor(int i = 0; i < this.fields.length; i++) {\n\t\t\tsql += this.fields[i];\n\t\t\tvalueStr += \"?\";\n\t\t\tif(i != this.fields.length - 1) {\n\t\t\t\tsql += \",\";\n\t\t\t\tvalueStr += \",\";\n\t\t\t}\n\t\t}\n\t\tvalueStr += \")\";\n\t\tsql += \") \";\n\t\tsql = sql + valueStr;\n\t\tsqlInsertTable = sql;\n\t}", "title": "" }, { "docid": "23e4b15ea9f51a88fc70d2acfbec7ecd", "score": "0.42888984", "text": "@Override\n protected Connection makeSinkConnection() {\n return null;\n }", "title": "" }, { "docid": "de7f02308cf66d3f209840742b210e43", "score": "0.42884016", "text": "public final void writeToArray(byte[] target, int targetOffset) {\n \tassert (targetOffset + objectsize <= target.length) : \"targetOffset = \" + targetOffset + \", target.length = \" + target.length + \", objectsize = \" + objectsize;\n System.arraycopy(rowinstance, offset, target, targetOffset, objectsize);\n }", "title": "" }, { "docid": "247da32c72d045b0e6b32d64ad19350e", "score": "0.4280833", "text": "Collection<DataRow> write(EntityInstance instance);", "title": "" }, { "docid": "7483dbb5f69805e39779e6d45a5d4236", "score": "0.42799103", "text": "private DataStream<Row> createStream(ScanContext scanContext) throws Exception {\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(1);\n DataStream<Row> stream =\n env.fromSource(\n IcebergSource.forRowData()\n .tableLoader(tableResource.tableLoader())\n .assignerFactory(new SimpleSplitAssignerFactory())\n .streaming(scanContext.isStreaming())\n .streamingStartingStrategy(scanContext.streamingStartingStrategy())\n .startSnapshotTimestamp(scanContext.startSnapshotTimestamp())\n .startSnapshotId(scanContext.startSnapshotId())\n .monitorInterval(Duration.ofMillis(10L))\n .build(),\n WatermarkStrategy.noWatermarks(),\n \"icebergSource\",\n TypeInformation.of(RowData.class))\n .map(new RowDataToRowMapper(FlinkSchemaUtil.convert(tableResource.table().schema())));\n return stream;\n }", "title": "" }, { "docid": "7f728b28ce590373095e309bf54adcfa", "score": "0.42792657", "text": "protected void addInterfaceToLinkSinks(Link link, Interface ifc) {\n\t\tSet<Interface> hasSinks = link.getHasSink();\n\t\tif (hasSinks == null) {\n\t\t\thasSinks = new HashSet<Interface>();\n\t\t}\n\t\tif (hasSinks.add(ifc)) {\n\t\t\tlink.setHasSink(hasSinks);\n\t\t}\n\t}", "title": "" }, { "docid": "90073997285251f58db272b09a8f9429", "score": "0.42791477", "text": "DatasetGraphMapLink(Graph dftGraph, GraphMaker graphMaker) {\n this.graphMaker = graphMaker;\n this.setDefaultGraph(dftGraph);\n txnDsg2Graph = new TxnDataset2Graph(dftGraph);\n txn = txnDsg2Graph;\n }", "title": "" }, { "docid": "94083bdc9e545dcfa0c328f03625ea2e", "score": "0.42779306", "text": "public static Object processReduceSinkToHashJoin(ReduceSinkOperator parentRS, MapJoinOperator mapJoinOp,\n GenTezProcContext context) throws SemanticException {\n parentRS.getConf().setSkipTag(true);\n parentRS.setSkipTag(true);\n\n // Mark this small table as being processed\n if (mapJoinOp.getConf().isDynamicPartitionHashJoin()) {\n context.mapJoinToUnprocessedSmallTableReduceSinks.get(mapJoinOp).remove(parentRS);\n }\n\n List<BaseWork> mapJoinWork = null;\n\n /*\n * if there was a pre-existing work generated for the big-table mapjoin side,\n * we need to hook the work generated for the RS (associated with the RS-MJ pattern)\n * with the pre-existing work.\n *\n * Otherwise, we need to associate that the mapjoin op\n * to be linked to the RS work (associated with the RS-MJ pattern).\n *\n */\n mapJoinWork = context.mapJoinWorkMap.get(mapJoinOp);\n BaseWork parentWork = getMapJoinParentWork(context, parentRS);\n\n // set the link between mapjoin and parent vertex\n int pos = context.mapJoinParentMap.get(mapJoinOp).indexOf(parentRS);\n if (pos == -1) {\n throw new SemanticException(\"Cannot find position of parent in mapjoin\");\n }\n MapJoinDesc joinConf = mapJoinOp.getConf();\n long keyCount = Long.MAX_VALUE, rowCount = Long.MAX_VALUE, bucketCount = 1;\n long tableSize = Long.MAX_VALUE;\n Statistics stats = parentRS.getStatistics();\n if (stats != null) {\n keyCount = rowCount = stats.getNumRows();\n if (keyCount <= 0) {\n keyCount = rowCount = Long.MAX_VALUE;\n }\n tableSize = stats.getDataSize();\n List<String> keyCols = parentRS.getConf().getOutputKeyColumnNames();\n if (keyCols != null && !keyCols.isEmpty()) {\n // See if we can arrive at a smaller number using distinct stats from key columns.\n long maxKeyCount = 1;\n String prefix = Utilities.ReduceField.KEY.toString();\n for (String keyCol : keyCols) {\n ExprNodeDesc realCol = parentRS.getColumnExprMap().get(prefix + \".\" + keyCol);\n ColStatistics cs =\n StatsUtils.getColStatisticsFromExpression(context.conf, stats, realCol);\n if (cs == null || cs.getCountDistint() <= 0) {\n maxKeyCount = Long.MAX_VALUE;\n break;\n }\n maxKeyCount *= cs.getCountDistint();\n if (maxKeyCount >= keyCount) {\n break;\n }\n }\n keyCount = Math.min(maxKeyCount, keyCount);\n }\n if (joinConf.isBucketMapJoin()) {\n OpTraits opTraits = mapJoinOp.getOpTraits();\n bucketCount = (opTraits == null) ? -1 : opTraits.getNumBuckets();\n if (bucketCount > 0) {\n // We cannot obtain a better estimate without CustomPartitionVertex providing it\n // to us somehow; in which case using statistics would be completely unnecessary.\n keyCount /= bucketCount;\n tableSize /= bucketCount;\n }\n } else if (joinConf.isDynamicPartitionHashJoin()) {\n // For dynamic partitioned hash join, assuming table is split evenly among the reduce tasks.\n bucketCount = parentRS.getConf().getNumReducers();\n keyCount /= bucketCount;\n tableSize /= bucketCount;\n }\n }\n if (keyCount == 0) {\n keyCount = 1;\n }\n if (tableSize == 0) {\n tableSize = 1;\n }\n LOG.info(\"Mapjoin \" + mapJoinOp + \"(bucket map join = \" + joinConf.isBucketMapJoin()\n + \"), pos: \" + pos + \" --> \" + parentWork.getName() + \" (\" + keyCount\n + \" keys estimated from \" + rowCount + \" rows, \" + bucketCount + \" buckets)\");\n joinConf.getParentToInput().put(pos, parentWork.getName());\n if (keyCount != Long.MAX_VALUE) {\n joinConf.getParentKeyCounts().put(pos, keyCount);\n }\n joinConf.getParentDataSizes().put(pos, tableSize);\n\n int numBuckets = -1;\n EdgeType edgeType = EdgeType.BROADCAST_EDGE;\n if (joinConf.isBucketMapJoin()) {\n numBuckets = (Integer) joinConf.getBigTableBucketNumMapping().values().toArray()[0];\n /*\n * Here, we can be in one of 4 states.\n *\n * 1. If map join work is null implies that we have not yet traversed the big table side. We\n * just need to see if we can find a reduce sink operator in the big table side. This would\n * imply a reduce side operation.\n *\n * 2. If we don't find a reducesink in 1 it has to be the case that it is a map side operation.\n *\n * 3. If we have already created a work item for the big table side, we need to see if we can\n * find a table scan operator in the big table side. This would imply a map side operation.\n *\n * 4. If we don't find a table scan operator, it has to be a reduce side operation.\n */\n if (mapJoinWork == null) {\n Operator<?> rootOp = OperatorUtils.findSingleOperatorUpstreamJoinAccounted(\n mapJoinOp.getParentOperators().get(joinConf.getPosBigTable()),\n ReduceSinkOperator.class);\n if (rootOp == null) {\n // likely we found a table scan operator\n edgeType = EdgeType.CUSTOM_EDGE;\n } else {\n // we have found a reduce sink\n edgeType = EdgeType.CUSTOM_SIMPLE_EDGE;\n }\n } else {\n Operator<?> rootOp = OperatorUtils.findSingleOperatorUpstreamJoinAccounted(\n mapJoinOp.getParentOperators().get(joinConf.getPosBigTable()),\n TableScanOperator.class);\n if (rootOp != null) {\n // likely we found a table scan operator\n edgeType = EdgeType.CUSTOM_EDGE;\n } else {\n // we have found a reduce sink\n edgeType = EdgeType.CUSTOM_SIMPLE_EDGE;\n }\n }\n } else if (mapJoinOp.getConf().isDynamicPartitionHashJoin()) {\n if (parentRS.getConf().isForwarding()) {\n edgeType = EdgeType.ONE_TO_ONE_EDGE;\n } else {\n edgeType = EdgeType.CUSTOM_SIMPLE_EDGE;\n }\n }\n if (edgeType == EdgeType.CUSTOM_EDGE || (edgeType == EdgeType.CUSTOM_SIMPLE_EDGE && !mapJoinOp.getConf()\n .isDynamicPartitionHashJoin())) {\n // disable auto parallelism for bucket map joins\n parentRS.getConf().setReducerTraits(EnumSet.of(FIXED));\n }\n TezEdgeProperty edgeProp = new TezEdgeProperty(null, edgeType, numBuckets);\n\n if (mapJoinWork != null) {\n for (BaseWork myWork: mapJoinWork) {\n // link the work with the work associated with the reduce sink that triggered this rule\n TezWork tezWork = context.currentTask.getWork();\n LOG.debug(\"connecting \"+parentWork.getName()+\" with \"+myWork.getName());\n tezWork.connect(parentWork, myWork, edgeProp);\n if (edgeType == EdgeType.CUSTOM_EDGE) {\n tezWork.setVertexType(myWork, VertexType.INITIALIZED_EDGES);\n }\n\n ReduceSinkOperator r = null;\n if (context.connectedReduceSinks.contains(parentRS)) {\n LOG.debug(\"Cloning reduce sink \" + parentRS + \" for multi-child broadcast edge\");\n // we've already set this one up. Need to clone for the next work.\n r = (ReduceSinkOperator) OperatorFactory.getAndMakeChild(\n parentRS.getCompilationOpContext(),\n (ReduceSinkDesc) parentRS.getConf().clone(),\n new RowSchema(parentRS.getSchema()),\n parentRS.getParentOperators());\n context.clonedReduceSinks.add(r);\n } else {\n r = parentRS;\n }\n // remember the output name of the reduce sink\n r.getConf().setOutputName(myWork.getName());\n context.connectedReduceSinks.add(r);\n }\n }\n\n // remember in case we need to connect additional work later\n Map<BaseWork, TezEdgeProperty> linkWorkMap = null;\n if (context.linkOpWithWorkMap.containsKey(mapJoinOp)) {\n linkWorkMap = context.linkOpWithWorkMap.get(mapJoinOp);\n } else {\n linkWorkMap = new HashMap<BaseWork, TezEdgeProperty>();\n }\n linkWorkMap.put(parentWork, edgeProp);\n context.linkOpWithWorkMap.put(mapJoinOp, linkWorkMap);\n\n List<ReduceSinkOperator> reduceSinks\n = context.linkWorkWithReduceSinkMap.get(parentWork);\n if (reduceSinks == null) {\n reduceSinks = new ArrayList<ReduceSinkOperator>();\n }\n reduceSinks.add(parentRS);\n context.linkWorkWithReduceSinkMap.put(parentWork, reduceSinks);\n\n // create the dummy operators\n List<Operator<?>> dummyOperators = new ArrayList<Operator<?>>();\n\n // create an new operator: HashTableDummyOperator, which share the table desc\n HashTableDummyDesc desc = new HashTableDummyDesc();\n HashTableDummyOperator dummyOp = (HashTableDummyOperator) OperatorFactory.get(\n parentRS.getCompilationOpContext(), desc);\n TableDesc tbl;\n\n // need to create the correct table descriptor for key/value\n RowSchema rowSchema = parentRS.getParentOperators().get(0).getSchema();\n tbl = PlanUtils.getReduceValueTableDesc(PlanUtils.getFieldSchemasFromRowSchema(rowSchema, \"\"));\n dummyOp.getConf().setTbl(tbl);\n\n Map<Byte, List<ExprNodeDesc>> keyExprMap = mapJoinOp.getConf().getKeys();\n List<ExprNodeDesc> keyCols = keyExprMap.get(Byte.valueOf((byte) 0));\n StringBuilder keyOrder = new StringBuilder();\n StringBuilder keyNullOrder = new StringBuilder();\n for (ExprNodeDesc k: keyCols) {\n keyOrder.append(\"+\");\n keyNullOrder.append(NullOrdering.defaultNullOrder(context.conf).getSign());\n }\n TableDesc keyTableDesc = PlanUtils.getReduceKeyTableDesc(PlanUtils\n .getFieldSchemasFromColumnList(keyCols, \"mapjoinkey\"), keyOrder.toString(),\n keyNullOrder.toString());\n mapJoinOp.getConf().setKeyTableDesc(keyTableDesc);\n\n // let the dummy op be the parent of mapjoin op\n mapJoinOp.replaceParent(parentRS, dummyOp);\n List<Operator<? extends OperatorDesc>> dummyChildren =\n new ArrayList<Operator<? extends OperatorDesc>>();\n dummyChildren.add(mapJoinOp);\n dummyOp.setChildOperators(dummyChildren);\n dummyOperators.add(dummyOp);\n\n // cut the operator tree so as to not retain connections from the parent RS downstream\n List<Operator<? extends OperatorDesc>> childOperators = parentRS.getChildOperators();\n int childIndex = childOperators.indexOf(mapJoinOp);\n childOperators.remove(childIndex);\n\n // the \"work\" needs to know about the dummy operators. They have to be separately initialized\n // at task startup\n if (mapJoinWork != null) {\n for (BaseWork myWork: mapJoinWork) {\n LOG.debug(\"adding dummy op to work \" + myWork.getName() + \" from MJ work: \" + dummyOp);\n myWork.addDummyOp(dummyOp);\n }\n }\n if (context.linkChildOpWithDummyOp.containsKey(mapJoinOp)) {\n for (Operator<?> op: context.linkChildOpWithDummyOp.get(mapJoinOp)) {\n dummyOperators.add(op);\n }\n }\n context.linkChildOpWithDummyOp.put(mapJoinOp, dummyOperators);\n\n return true;\n }", "title": "" }, { "docid": "c78ec01256131c74d9942707421ce8d8", "score": "0.42760554", "text": "public void writeData(Dataset<Row> dataset, String location);", "title": "" } ]
0edb7c4b0488bdf1d78c1bbd2bdb1b46
/Hide the options and the answer text box
[ { "docid": "71e841db646884ad1bbb3f08bbe8a047", "score": "0.757772", "text": "public void resetOptions() {\n EditText textBox = (EditText) findViewById(R.id.text_box);\n textBox.setVisibility(View.INVISIBLE);\n\n LinearLayout checkList = (LinearLayout) findViewById(R.id.checkboxes);\n checkList.setVisibility(View.INVISIBLE);\n\n RadioGroup rg = (RadioGroup) findViewById(R.id.rg);\n rg.setVisibility(View.INVISIBLE);\n\n TextView displayQuestion = (TextView) findViewById(R.id.question_display);\n displayQuestion.setVisibility(View.INVISIBLE);\n }", "title": "" } ]
[ { "docid": "6146daea38762e5c3abe7ec5cfc365c2", "score": "0.6703872", "text": "public void hideSuggest() {\n\t\td.setVisible(false);\n\t}", "title": "" }, { "docid": "608ed54af9981f6dde53f72faaf12225", "score": "0.6539588", "text": "public void showOptions() {\n\n Resources res = getResources();\n\n switch (question) {\n case 1:\n showCheckList(res.getStringArray(R.array.options_1));\n break;\n case 2:\n showRadioGroup(res.getStringArray(R.array.options_2));\n break;\n case 3:\n showTextBox();\n break;\n case 4:\n showTextBox();\n break;\n case 5:\n showRadioGroup(res.getStringArray(R.array.options_all));\n break;\n case 6:\n showRadioGroup(res.getStringArray(R.array.options_all));\n break;\n case 7:\n showCheckList(res.getStringArray(R.array.options_7));\n break;\n case 8:\n showCheckList(res.getStringArray(R.array.options_8));\n break;\n case 9:\n showTextBox();\n break;\n case 10:\n showRadioGroup(res.getStringArray(R.array.options_all));\n break;\n }\n }", "title": "" }, { "docid": "be3487484d4c0a91047a64fadbd0fcad", "score": "0.6431997", "text": "public void updateQuestionBox() {\n if (answerBox.getValue().equals(\"Show Key Signature\")) {\n formLabel.setText(\"Question form:\");\n } else {\n formLabel.setText(\"Answer form:\");\n }\n\n }", "title": "" }, { "docid": "005d6bcb510bc831a9fa935bf7d703b3", "score": "0.6304162", "text": "public void clearScreen(){\r\n tfCorrect.setVisible(false);\r\n tfAnswer.setVisible(false);\r\n\r\n shortCorrectArea.setVisible(false);\r\n shortLbl.setVisible(false);\r\n\r\n choiceLabels.setVisible(false);\r\n multChoices.setVisible(false);\r\n correct.setVisible(false);\r\n choices.setVisible(false);\r\n multAnswer.setVisible(false);\r\n }", "title": "" }, { "docid": "6a2197401c2ddcf99d9d82e3cd8430d4", "score": "0.6251298", "text": "public static void showOptions() {\r\n\t\tSystem.out.println(\"Odabir opcija: \");\r\n\t\tSystem.out.println(\"1: Napravite remainder za odredjeni dan u prikazanom mjesecu\");\r\n\t\tSystem.out.println(\"2: Pregledajte postojece remaindere\");\r\n\t\tSystem.out.println(\"3: Prikaz kalendara za neki drugi mjesec\");\r\n\t\tSystem.out.println(\"4: Izlaz\");\r\n\t\tSystem.out.print(\"Unesite broj zeljene opcije: \");\r\n\t}", "title": "" }, { "docid": "426ca75ecef727401583050663f182a6", "score": "0.62381274", "text": "private void returnToQuestionsButtonActionPerformed() {\n this.setVisible(false);\n }", "title": "" }, { "docid": "b694e6d2e4574cac7964cae849e7592f", "score": "0.616809", "text": "private void showcasehide() {\n\t\ts.hide();\n\t}", "title": "" }, { "docid": "0377b3a9b702c5d485bf1a0483340b86", "score": "0.61217695", "text": "public void moreDecisions(View v){\n // choices.setText(\"\");\n adddesc(); //Dialog box will appear\n\n }", "title": "" }, { "docid": "7013f71ee0b7f1beffd94b66203e6e21", "score": "0.6109669", "text": "public void showQuestion() {\n \tcurrentQuestion++;\n \tif(currentQuestion == questions.length)\n \tcurrentQuestion =0;\n \tquestionView.setText(questions[currentQuestion]); answerView.setText(\"\");\n \tanswerText.setText(\"\");\n \t}", "title": "" }, { "docid": "ad612088e3619c1e8632aa26c18d157d", "score": "0.6085229", "text": "public void updateQuestionBox (int index) {\n // Store list of options for the question\n List<String> questions = new ArrayList<>();\n \n // Set different questions depending on the chosen category\n if (index==1) {\n String[] optionList = new String[] {\n \"- Select value of your dwelling -\",\n \"$0 - $500,000\", \"$500,000 - $1,000,000\", \"$1,000,000 - $1,500,000\", \"$1,500,000 - $2,000,000\",\n \"$2,000,000 - $2,500,000\", \"$2,500,000 - $3,000,000\", \"$3,000,000 - $3,500,000\" };\n questions.addAll(Arrays.asList(optionList));\n } else if (index==2) {\n String[] optionList = new String[] {\n \"- Select average monthly shelter cost -\",\n \"$0 - $500\", \"$500 - $1,000\", \"$1,000 - $1,500\", \"$1,500 - $2,000\",\n \"$2,000 - $2,500\", \"$2,500 - $3,000\", \"$3,000 - $3,500\", \"$3,500 - $4,000\" };\n questions.addAll(Arrays.asList(optionList));\n } else if (index==3) {\n String[] optionList = new String[] {\n \"- Select average monthly shelter cost -\",\n \"$0 - $500\", \"$500 - $1,000\", \"$1,000 - $1,500\",\n \"$1,500 - $2,000\", \"$2,000 - $2,500\", \"$2,500 - $3,000\" };\n questions.addAll(Arrays.asList(optionList));\n } else if (index==4) {\n String[] optionList = new String[] {\n \"- Are you a household owner? -\",\n \"I am a household owner\", \"I am not a household owner\" };\n questions.addAll(Arrays.asList(optionList));\n } else if (index==5) {\n String[] optionList = new String[] {\n \"- Are you a household renter? -\",\n \"I am a household renter\", \"I am not a household renter\" };\n questions.addAll(Arrays.asList(optionList));\n }\n \n // Set question list based on selected index\n densityGUI.getQuestionList().setModel(new DefaultComboBoxModel<>(questions.toArray(new String[0])));\n \n }", "title": "" }, { "docid": "5e619be2de497385363e10557e59a848", "score": "0.60784864", "text": "public void displayQuestions() {\r\n\t\tSystem.out.println(\"Choose which security question you had given while registration\");\r\n\t\tSystem.out.println(\"1.what is your nickname?\");\r\n\t\tSystem.out.println(\"2.what is place of birth?\");\r\n\t\tSystem.out.println(\"3.What is your fathers name?\");\r\n\t}", "title": "" }, { "docid": "6aee872b84bb534b2012ca9e6790bfba", "score": "0.6068546", "text": "void clearAndHide() {\n setVisible(false);\n }", "title": "" }, { "docid": "9bc98066fef01d056406af262ccd17a2", "score": "0.6055604", "text": "public void hideContents() {\n program.remove(background);\n\n // Hide the instruction text\n program.remove(selectText);\n\n // Hide the selectable characters\n for (GImage selector : selectors) {\n program.remove(selector);\n }\n }", "title": "" }, { "docid": "cca6356f36c64346707d2dadfd375bbd", "score": "0.605129", "text": "@Override\n\tpublic void hide()\n\t{\n\t\tGameCore.hideText(this.number);\n\t}", "title": "" }, { "docid": "ca2de42e09a92b012fe9b9e196715db4", "score": "0.60487986", "text": "void visibilityforSelectFeeling(){\n\n feelingQbox = findViewById(R.id.feelingQbox);\n feelingQbox.setVisibility(View.INVISIBLE);\n happyEmoji = findViewById(R.id.happyEButton);\n happyEmoji.setVisibility(View.INVISIBLE);\n firstMessageBox = findViewById(R.id.Messagebox);\n firstMessageBox.setVisibility(View.VISIBLE);\n nextButton = findViewById(R.id.nextButton);\n nextButton.setVisibility(View.VISIBLE);\n feelingenterbtn = findViewById(R.id.feelingbtn);\n feelingenterbtn.setVisibility(View.INVISIBLE);\n feelingbox = findViewById(R.id.userfeelingInputbox);\n feelingbox.setVisibility(View.INVISIBLE);\n stressBtn = findViewById(R.id.stressemojbtn);\n stressBtn.setVisibility(View.INVISIBLE);\n depressBtn = findViewById(R.id.depressedemojibutton);\n depressBtn.setVisibility(View.INVISIBLE);\n anxiousBtn =findViewById(R.id.anxiousBtn);\n anxiousBtn.setVisibility(View.INVISIBLE);\n }", "title": "" }, { "docid": "ac806c6ba2291c8b6d0db9441939083f", "score": "0.60355705", "text": "@Override\n public void onClick(View view) {\n AskOption(medId).show();\n }", "title": "" }, { "docid": "37963da1d019e89d8f6c54ea1f97f470", "score": "0.60341793", "text": "public void disableButtons() {\n submitButton.setEnabled(false);\n //answers for Question One\n pabloQ1.setEnabled(false);\n munchQ1.setEnabled(false);\n shrikQ1.setEnabled(false);\n goghQ1.setEnabled(false);\n eyckQ1.setEnabled(false);\n //answers for Question Two\n manetQ2.setEnabled(false);\n monetQ2.setEnabled(false);\n picassoQ2.setEnabled(false);\n goghQ2.setEnabled(false);\n cezanneQ2.setEnabled(false);\n cassattQ2.setEnabled(false);\n morisotQ2.setEnabled(false);\n renoirQ2.setEnabled(false);\n pollockQ2.setEnabled(false);\n christovQ2.setEnabled(false);\n //Question three EditText\n questionThreeAnswer.setEnabled(false);\n //Answers for Question Four\n venusQ4.setEnabled(false);\n baptistQ4.setEnabled(false);\n sistineQ4.setEnabled(false);\n monaQ4.setEnabled(false);\n thinkerQ4.setEnabled(false);\n //Answers for Question Five\n woodQ5.setEnabled(false);\n canvasQ5.setEnabled(false);\n clothQ5.setEnabled(false);\n ceilingQ5.setEnabled(false);\n apostleQ5.setEnabled(false);\n josephQ5.setEnabled(false);\n wallQ5.setEnabled(false);\n doorwayQ5.setEnabled(false);\n legQ5.setEnabled(false);\n skylightQ5.setEnabled(false);\n //Answers for Question Six\n decorativeQ6.setEnabled(false);\n louvreQ6.setEnabled(false);\n momaQ6.setEnabled(false);\n nhmQ6.setEnabled(false);\n vaticanQ6.setEnabled(false);\n //Answers for Question Seven\n degasQ7.setEnabled(false);\n rembrandtQ7.setEnabled(false);\n picassoQ7.setEnabled(false);\n eyckQ7.setEnabled(false);\n migardeQ7.setEnabled(false);\n //Answers for Question Eight\n christovQ8.setEnabled(false);\n leonardoQ8.setEnabled(false);\n monetQ8.setEnabled(false);\n cezanneQ8.setEnabled(false);\n magritteQ8.setEnabled(false);\n //Answers for Question Nine\n degasQ9A.setEnabled(false);\n degasQ9B.setEnabled(false);\n degasQ9C.setEnabled(false);\n degasQ9D.setEnabled(false);\n degasQ9E.setEnabled(false);\n railwayQ9.setEnabled(false);\n annunciationQ9.setEnabled(false);\n portraitQ9.setEnabled(false);\n olympiaQ9.setEnabled(false);\n monaQ9.setEnabled(false);\n //Answers for Question Ten\n napoleonQ10.setEnabled(false);\n georgeQ10.setEnabled(false);\n queenQ10.setEnabled(false);\n louisQ10.setEnabled(false);\n bonaparteQ10.setEnabled(false);\n }", "title": "" }, { "docid": "ce3ccf58abb101afc9d2e4c598ce8272", "score": "0.6024924", "text": "public static void displayOptions() {\n\n\t\tSystem.out.println(\"+++++++++++++++++++++++\");\n System.out.println(\"What do you want to do?\");\n\t\tSystem.out.println(\"1) Display the characteristics of the bikes under repairment\");\n\t\tSystem.out.println(\"2) Display the characteristics of the checkedsvn out bikes\");\n System.out.println(\"3) Check out a bike\");\n\t\tSystem.out.println(\"4) exit\");\n\t}", "title": "" }, { "docid": "d73ce3b306d2cfbd40452be224653f6b", "score": "0.6012591", "text": "public void hideUpdateMenu() {\n remove(inputName);\n remove(nameLable);\n remove(continents);\n remove(selectContinent);\n remove(deleteButton);\n remove(changeButton);\n remove(chooseAdjacency);\n remove(addAdjacency);\n repaint();\n }", "title": "" }, { "docid": "0a575e9c8312d037107689580385fb97", "score": "0.59713185", "text": "public void showAnswerView(View view) {\n// find out which view to show and which view to hide.\n String theView = answerArray[questionNumber][0];\n if (theView.equals(\"radio\")) {\n populateRadioButtons(view);\n RadioGroup radio_group = findViewById(R.id.multi_radio);\n radio_group.setVisibility(View.VISIBLE);\n EditText text_answer = findViewById(R.id.the_answer_text);\n text_answer.setVisibility(View.GONE);\n LinearLayout the_check_boxs = findViewById(R.id.check_box);\n the_check_boxs.setVisibility(View.GONE);\n } else if (theView.equals(\"check\")) {\n populateCheckBoxes(view);\n RadioGroup radio_group = findViewById(R.id.multi_radio);\n radio_group.setVisibility(View.GONE);\n EditText text_answer = findViewById(R.id.the_answer_text);\n text_answer.setVisibility(View.GONE);\n LinearLayout the_check_boxs = findViewById(R.id.check_box);\n the_check_boxs.setVisibility(View.VISIBLE);\n } else {\n\n RadioGroup radio_group = findViewById(R.id.multi_radio);\n radio_group.setVisibility(View.GONE);\n LinearLayout the_check_boxs = findViewById(R.id.check_box);\n the_check_boxs.setVisibility(View.GONE);\n EditText text_answer = findViewById(R.id.the_answer_text);\n text_answer.setVisibility(View.VISIBLE);\n populateTextField(view);\n }\n }", "title": "" }, { "docid": "2424d2680430baa16a8cbf8030c12cb2", "score": "0.59683865", "text": "public void clearAnswer() {\n switch (mPrompt.getQuestionType()) {\n case Constants.CONTROL_IMAGE_CHOOSE:\n ImageReset();\n break;\n case Constants.CONTROL_INPUT:\n switch (mPrompt.getAnswerType()) {\n case Constants.DATATYPE_DATE:\n DateReset();\n break;\n case Constants.DATATYPE_INTEGER:\n case Constants.DATATYPE_DECIMAL:\n case Constants.DATATYPE_GEOPOINT:\n default:\n StringReset();\n break;\n }\n break;\n case Constants.CONTROL_SELECT_ONE:\n SelectOneReset();\n break;\n case Constants.CONTROL_SELECT_MULTI:\n SelectMultiReset();\n break;\n default:\n StringReset();\n break;\n }\n }", "title": "" }, { "docid": "7240ed336e01669f9613aae3e80b6e7c", "score": "0.59650064", "text": "@Override\n\tpublic void hide() {\n\t\tthis.programWindow.hidePanel(this.cookView);\n\t}", "title": "" }, { "docid": "cdabcf4715022b5d0d8164041ad391cf", "score": "0.5963766", "text": "public void showChoices() {\n\t\tframe.setVisible( true );\n\t\tframe.setResizable( false );\n\t\tframe.setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );\n\t\tframe.getContentPane().add( panel2, BorderLayout.CENTER );\n\t\tframe.setLocation( 200, 100 );\n\t\tframe.pack();\n\t}", "title": "" }, { "docid": "0fbe24bdd93a84d119ff6fb1ffdbac24", "score": "0.5959249", "text": "private void hideDefaultKeyboard() {\n\t}", "title": "" }, { "docid": "cc1d68ee243243ade7c0a17470bb171e", "score": "0.59589994", "text": "public void hide() {\r\n\t\tdisplay = false;\r\n\t}", "title": "" }, { "docid": "a6f4f61d485318227b6e64307c4dc429", "score": "0.59542346", "text": "public void enableHBox(){\n label2.setVisible(false);\n label1.setVisible(true);\n choicesHBox.setDisable(false);\n choicesHBox.setVisible(true);\n resetChoice.setDisable(false);\n confirm1.setDisable(true);\n resetChoice2.setDisable(true);\n endBasic.setDisable(false);\n }", "title": "" }, { "docid": "de1c3ba3e7a4beda0be7eb12a917a7b9", "score": "0.59448636", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n setVisible(false);\n }", "title": "" }, { "docid": "776155b039609afe547ba0488df91e89", "score": "0.5938529", "text": "public void hide() {\n\t\tsetVisible(false);\n\t}", "title": "" }, { "docid": "1fa18149e06ad0cf01eaa529cb199433", "score": "0.59327173", "text": "protected void closeHelpMode() {\n if (helpMode) {\n for (View view: helpModeArray) {\n if (view != null) {\n view.setVisibility(View.INVISIBLE);\n }\n }\n helpMode = false;\n }\n }", "title": "" }, { "docid": "2292fea84014cff2b5162e969cfbb116", "score": "0.5912932", "text": "public void actionPerformed(ActionEvent evt)\n {\n termField_.setText(\"\");\n InputOptionDialog.SetCategory(Category.ALL_BIT_VALUE);\n InputOptionDialog.SetInflection(Inflection.ALL_BIT_VALUE);\n InputOptionDialog.ResetCheckBox();\n InputOptionDialog.SetSourceToScreen();\n }", "title": "" }, { "docid": "39b15ab5f97e1991ebc0bb6e57eb6081", "score": "0.58973235", "text": "public void onMult(){\r\n clearScreen();\r\n choiceLabels.setVisible(true);\r\n multChoices.setVisible(true);\r\n correct.setVisible(true);\r\n choices.setVisible(true);\r\n multAnswer.setVisible(true);\r\n questionType = \"mult\";\r\n }", "title": "" }, { "docid": "f8241498277195de7c0a34306f018373", "score": "0.58873755", "text": "void hide();", "title": "" }, { "docid": "69c4a6cbc13eccef2a6baa69490f8b01", "score": "0.5883469", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n dlgNoQuestions = new javax.swing.JDialog();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtQuestion = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n txtAnswer = new javax.swing.JTextField();\n btnCheckAnswer = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n txtFeedback = new javax.swing.JTextField();\n btnExit = new javax.swing.JButton();\n btnNextQuestion = new javax.swing.JButton();\n\n javax.swing.GroupLayout dlgNoQuestionsLayout = new javax.swing.GroupLayout(dlgNoQuestions.getContentPane());\n dlgNoQuestions.getContentPane().setLayout(dlgNoQuestionsLayout);\n dlgNoQuestionsLayout.setHorizontalGroup(\n dlgNoQuestionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n dlgNoQuestionsLayout.setVerticalGroup(\n dlgNoQuestionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(\"Quiz Question\"), \"Quiz Question\"));\n\n txtQuestion.setColumns(20);\n txtQuestion.setRows(5);\n jScrollPane1.setViewportView(txtQuestion);\n\n jLabel1.setText(\"Your Answer:\");\n\n btnCheckAnswer.setText(\"Check Answer\");\n btnCheckAnswer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCheckAnswerActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Feedback:\");\n\n txtFeedback.setEditable(false);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtFeedback)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(txtAnswer)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCheckAnswer))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAnswer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnCheckAnswer))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFeedback, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n btnExit.setText(\"Exit\");\n btnExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExitActionPerformed(evt);\n }\n });\n\n btnNextQuestion.setText(\"Next Question\");\n btnNextQuestion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNextQuestionActionPerformed(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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnNextQuestion)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnExit)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnExit)\n .addComponent(btnNextQuestion))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "89321cdc403d5ac80a4af4cfdaad46fd", "score": "0.58748144", "text": "@Override\r\n\tpublic void hidden() {\n\t\tsuper.hidden();\r\n\t\ttv_name.setText(R.string.info_name_default);\r\n\t\ttv_info.setText(R.string.info_text_default);\r\n\t}", "title": "" }, { "docid": "ef4a0774c83b714c4a8b5e76f2d3c528", "score": "0.5863866", "text": "public void showQuestion(){\r\n\t\tmathQuestion.setText(storedQuestions.get(storedQuestionsCurrentListItem)[currentQuestion][0]);\r\n\t}", "title": "" }, { "docid": "c4ecec7fe0f4c2109d197b716b803ee0", "score": "0.5851986", "text": "public void showCameraTextSwitchMenu() {\n\t\tinputLayout.setResultListener(new ResultListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onReturn(int type, String text, String audioPath) {\n\t\t\t\tif (frameDelView != null) {\n\t\t\t\t\tmAnswerPicContainer.removeView(frameDelView);\n\t\t\t\t}\n\t\t\t\tif (type == GlobalContant.ANSWER_TEXT) {\n\t\t\t\t\taddTextAnswer(text);\n\t\t\t\t} else if (type == GlobalContant.ANSWER_AUDIO) {\n\t\t\t\t\taddVoiceAnswer(audioPath);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "da2f6037198a242010a7744ec4f4e94c", "score": "0.5848245", "text": "private static void showMenu() {\n\t\tSystem.out.println(\"\\nOptions:\");\n\t\tSystem.out.println(\"Enter \" + SEARCH + \" to search for names.\");\n\t\tSystem.out.println(\"Enter \" + ONE_NAME + \" to display data for one name.\");\n\t\tSystem.out.println(\"Enter \" + APPEAR_ONCE+ \" to display all names that appear in only one decade.\");\n\t\tSystem.out.println(\"Enter \" + APPEAR_ALWAYS + \" to display all names that appear in all decades.\");\n\t\t// CS314 students fill in other options\n\n\t\tSystem.out.println(\"Enter \" + QUIT + \" to quit.\\n\");\n\t}", "title": "" }, { "docid": "9b1f8444fe42b9a4f5631c2ae211c8d6", "score": "0.5843065", "text": "private void updateQuestsText() {\n\n findViewById(R.id.action_quests).setVisibility(View.GONE);\n\n// if(Config.HOSTING_ENABLED_TRUE.equals(team.buy.hostingEnabled())) {\n// findViewById(R.id.action_quests).setVisibility(View.VISIBLE);\n// }\n// else {\n// findViewById(R.id.action_quests).setVisibility(View.GONE);\n// }\n }", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.58325136", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0a4ce9d02515394b8a10623726c5de43", "score": "0.5831441", "text": "public void actionPerformed(ActionEvent event) {\n txtAreaDisplay.setText(\"\");\r\n txtCharger.setText(\"\");\r\n txtUSB.setText(\"\");\r\n txtMouse.setText(\"\");\r\n txtDiscount.setText(\"\");\r\n // disable the textbox\r\n txtMouse.disable();\r\n txtUSB.disable();\r\n txtCharger.disable();\r\n // check box unchecked\r\n chkMouse.setSelected(false);\r\n chkUSB.setSelected(false);\r\n chkCharger.setSelected(false);\r\n }", "title": "" }, { "docid": "6cc2a510f9425aa48e00abc3e2e6a869", "score": "0.5823354", "text": "public void hide(){\r\n\t\tvisible=false;\r\n\t\thidden=true;\r\n\t}", "title": "" }, { "docid": "c9fe322087870cc1f4e1027688de98c7", "score": "0.5820624", "text": "public final void hide() {\r\n\t\thide = true;\r\n\t}", "title": "" }, { "docid": "ac2f2e7e670dcdafff4ff5a8bc038158", "score": "0.581611", "text": "public void Display() {\n\t\tfor(int i = 0 ; i < questions.size() ; i++){\n\t\t\t io.Output1(i+1 + \") \");\n\t\t\t questions.get(i).Display();\n\t\t\t questions.get(i).response.displayChoices();\n\t\t\t io.Output(\"\");\n\t\t}\n\t\tio.Output(\"\");\n\t}", "title": "" }, { "docid": "40e720c0a249acd1ab1e5dab4bf1bfff", "score": "0.58145964", "text": "public void displayChooseOption() {\n\t\tdisplay(\"Please choose an option: \");\n\t}", "title": "" }, { "docid": "2b96e6df4d5ef4049abe910433fb7e0e", "score": "0.58051175", "text": "public void hide()\n\t{\n\n\t}", "title": "" }, { "docid": "469f2bbd1bc4b1ea70f8a938c815f570", "score": "0.5805086", "text": "private void visibilita() {\n\t\tTypAktivity vyber = typCB.getValue();\n\t\tif(vyber.equals(TypAktivity.POSILOVNA) || vyber.equals(TypAktivity.STRETCHING) || vyber.equals(TypAktivity.AKTIVITA)) {\n\t\t\tvzdalenostTF.setEditable(false);\n\t\t\tvzdalenostTF.setText(\"\");\n\t\t\tprevyseniTF.setEditable(false);\n\t\t\tprevyseniTF.setText(\"\");\n\t\t} \n\t\tif(vyber.equals(TypAktivity.PLAVANI)) {\n\t\t\tprevyseniTF.setEditable(false);\n\t\t\tprevyseniTF.setText(\"\");\n\t\t\tvzdalenostTF.setEditable(true);\n\t\t}\n\t\tif(vyber.equals(TypAktivity.CYKLISTIKA) || vyber.equals(TypAktivity.BEH) || vyber.equals(TypAktivity.BEZKY) || vyber.equals(TypAktivity.CHUZE) || vyber.equals(TypAktivity.BRUSLE)) {\n\t\t\tvzdalenostTF.setEditable(true);\n\t\t\tprevyseniTF.setEditable(true);\n\t\t}\n\t}", "title": "" }, { "docid": "a5ddbd4f72ce9c8f6f683e4fdc209052", "score": "0.5801231", "text": "public VerticalPanel showChangeToSingleInput() {\n final String qNr = getQuestionNr();\n final List<Answer> a = getAnswers();\n\n final Label[] answerLabels = new Label[a.size()];\n for (int i = 0; i < a.size(); i++) {\n answerLabels[i] = new Label(a.get(i).getAnswer());\n }\n\n final TextBox questionBox = new TextBox();\n\n questionBox.setValue(getQuestion());\n questionBox.addChangeHandler(new ChangeHandler() {\n\n public void onChange(ChangeEvent event) {\n setQuestion(questionBox.getText());\n\n }\n\n });\n\n final TextBox pattern = new TextBox();\n\n // Build interface\n final VerticalPanel panel = new VerticalPanel();\n final HorizontalPanel base = new HorizontalPanel();\n final VerticalPanel left = new VerticalPanel();\n final VerticalPanel right = new VerticalPanel();\n\n panel.add(new Label(\"Choose a setup\"));\n panel.add(new Label(\"Question\"));\n panel.add(questionBox);\n panel.add(new Label(\"Create an evaluation query\"));\n panel.add(pattern);\n left.setSpacing(10);\n right.setSpacing(10);\n\n left.add(new Label(\"Answers\"));\n left.add(new Label(answerLabels[0].getText() + \" : True\"));\n left.add(new Label(answerLabels[1].getText() + \" : False\"));\n final Button leftBtn = new Button(\"Select\");\n leftBtn.addClickHandler(new ClickHandler() {\n\n public void onClick(ClickEvent event) {\n final SingleQuestion q = new SingleQuestion(qNr, questionBox\n .getText(), pattern.getText());\n // replace answers\n q.answers.clear();\n q.answers.add(new Answer(\"True\", answers.get(0).getRedirect(),\n \"\"));\n q.answers.add(new Answer(\"False\", answers.get(1).getRedirect(),\n \"\"));\n replaceSelf(q);\n }\n\n });\n left.add(leftBtn);\n\n right.add(new Label(\"Answers\"));\n right.add(new Label(answerLabels[0].getText() + \" : False\"));\n right.add(new Label(answerLabels[1].getText() + \" : True\"));\n final Button rightBtn = new Button(\"Select\");\n rightBtn.addClickHandler(new ClickHandler() {\n\n public void onClick(ClickEvent event) {\n final SingleQuestion q = new SingleQuestion(qNr, questionBox\n .getText(), pattern.getText());\n // replace answers\n q.answers.clear();\n q.answers.add(new Answer(\"True\", answers.get(1).getRedirect(),\n \"\"));\n q.answers.add(new Answer(\"False\", answers.get(0).getRedirect(),\n \"\"));\n replaceSelf(q);\n }\n\n });\n right.add(rightBtn);\n\n base.add(left);\n base.add(right);\n panel.add(base);\n\n return panel;\n }", "title": "" }, { "docid": "aa7a7a7d6c0a0e413415a209adfef0d9", "score": "0.57901627", "text": "private void showQuestion(QuestionModel currentQuestion) {\n if ( mIteration > 0 && mQuestions[mIteration-1] != null ) {\n mLastRadioButtonId = mLastRadioButtonId + mQuestions[mIteration-1].getChoices().size();\n }\n\n // Clear previous answer\n mAnswersOutlet.clearCheck();\n mAnswersOutlet.removeAllViews();\n\n mQuestions[mIteration] = currentQuestion;\n mQuestionTextView.setText(currentQuestion.getText());\n\n\n List<OptionModel> orderAnswer = currentQuestion.getChoices();\n List<OptionModel> randomAnswer = new ArrayList<>();\n\n while(orderAnswer.size()>0){\n randomAnswer.add(orderAnswer.remove((int) (Math.random()*orderAnswer.size())));\n }\n\n for (OptionModel option : randomAnswer) {\n if(currentQuestion.getType().equals(\"select-multiple\")){\n // Create checkbox with answer\n CheckBox checkBox = new CheckBox(getActivity());\n checkBox.setText(option.getText());\n checkBox.setTag(option.getId());\n checkBox.setOnCheckedChangeListener(new myCheckBoxChangeClicker());\n mAnswersCheck.add(checkBox);\n mAnswersOutlet.addView(checkBox);\n\n }else {\n // Create radio button with answer\n AnswerRadioButton radioButton = new AnswerRadioButton(getActivity(), option.getText());\n radioButton.setTag(option.getId());\n mAnswersOutlet.addView(radioButton);\n }\n\n // Add padding for each answer\n // There is a bug in API 16 and below that with padding method of RadioButton\n View paddingView = new View(getActivity());\n paddingView.setLayoutParams(PADDING_LAYOUT_PARAMS);\n mAnswersOutlet.addView(paddingView);\n }\n }", "title": "" }, { "docid": "10dba1ae8fe039375b871970eb535143", "score": "0.5788605", "text": "public void showRadioBoxes() {\n // if negative value\n if (this.value.charAt(0) == '1')\n lblValue.setText(\"-\" + String.format(\"%s\",Integer.parseInt(this.value.substring(1, this.value.length()),2)));\n else\n lblValue.setText(String.format(\"%s\",Integer.parseInt(this.value,2)));\n \n for(int i=0; i<this.bitLength;i++) \n getComponentByName(\"jRB\" + String.format(\"%s\",i+1)).setSelected((this.value.charAt(i) != '0'));\n }", "title": "" }, { "docid": "e4c32f3ea7f561e46217bd902419e4a6", "score": "0.57808673", "text": "public void onTF(){\r\n clearScreen();\r\n tfCorrect.setVisible(true);\r\n tfAnswer.setVisible(true);\r\n questionType = \"tf\";\r\n }", "title": "" }, { "docid": "6571ec5c5e31f6e0c997188f566c2a89", "score": "0.5773897", "text": "private void SimpleShow() {\n System.out.println(YELLOW + this.options.get(0) + RESET);\n for (int i=1; i<this.options.size(); i++) {\n System.out.print(i);\n System.out.print(\" - \");\n System.out.println(this.available.get(i).validate() ? this.options.get(i) : \"---\");\n }\n System.out.println(\"0 - Return\");\n }", "title": "" }, { "docid": "eee1941f896a39a494b081dc375c81fa", "score": "0.57723427", "text": "public void esconder() {\r\n\t\tthis.setVisible(false);\r\n\t}", "title": "" }, { "docid": "a9fd5309123c201839c0a5c3901998f8", "score": "0.57688606", "text": "public void VirtualKeyboardHide()\n\t{\n\t\tVirtualKeyboardToggle(false, 0, 0, 0, true, GetStringCodepoints(GetInputString()));\n\t}", "title": "" }, { "docid": "764aa9b2e52d651a4a6d45e4d8e8de66", "score": "0.5768839", "text": "private void hideMe() {\n\t\tthis.setVisible(false);\n\t}", "title": "" }, { "docid": "824737e1e35f640a69014f54909a95dc", "score": "0.5766322", "text": "@Override\n public void hide() {\n \n }", "title": "" }, { "docid": "dba6a15d237ed6fc0bcb8b9a5b6371ea", "score": "0.5755826", "text": "private static void showOption()\r\n {\r\n System.out.println(\"Generate Area/Perimeter/Circumference/Volume/Surface Area where applicable for the below.\" +\"\\n\"+\r\n \"0. Quit\" +\"\\n\"+\r\n \"1. Square\" +\"\\n\"+\r\n \"2. Rectangle\" +\"\\n\"+\r\n \"3. Circle\" +\"\\n\"+\r\n \"4. Triangle\" +\"\\n\"+\r\n \"5. Trapezoid\" +\"\\n\"+\r\n \"6. Cube\" +\"\\n\"+\r\n \"7. Cylinder\" +\"\\n\"+\r\n \"8. Cone\" +\"\\n\"+\r\n \"9. Sphere\" +\"\\n\"+\r\n \"Please choose:: \");\r\n userOption = in.nextInt();\r\n in.nextLine();\r\n }", "title": "" }, { "docid": "5aed4af807ead1de834b01743de494fc", "score": "0.57541645", "text": "public static void optionsMenu() {\n\t\tSystem.out.println(\"Options: \");\n\t\tSystem.out.println(\"\t• Enter 'A' to add a plane.\");\n\t\tSystem.out.println(\"\t• Enter 'E' for an emergency landing.\");\n\t\tSystem.out.println(\"\t• Enter 'Q' to view the next Airplane in the queue to land.\");\n\t\tSystem.out.println(\"\t• Enter 'U' to undo an emergency landing.\");\n\t\tSystem.out.println(\"\t• Enter 'V' to view all planes.\");\n\t\tSystem.out.println(\"\t• Enter 'X' to exit.\");\n\t\tSystem.out.print(\"Your input: \");\n\n\t}", "title": "" }, { "docid": "f07df39cd4dd965a7dcea2b877f1bfd9", "score": "0.5753289", "text": "public void setAnswer(String text) {\n labelAnswer.setText(text);\n setAnswerVisibility(true);\n setAnswerBtnClicked(true);\n\n checkAnswerVisibility();\n }", "title": "" }, { "docid": "43a4012d0f49004c21165f481413336b", "score": "0.5752145", "text": "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n this.ActionExpertMode.setVisible(false);\n }", "title": "" }, { "docid": "ed8f118bc9c887876ba7b35bf0fbee77", "score": "0.5752086", "text": "public void clearAndHide() {\r\n passwdFd.setText(null);\r\n setVisible(false);\r\n }", "title": "" }, { "docid": "b35583cbb8917f41a008eabd82bdf956", "score": "0.5748108", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t if(Util.isStringEmpty(textSecAns.getText())){\n\t\t\t\t\ttextSecAns.requestFocus();\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(),\"Security Answer is required\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tif(textSecAns.getText().equals(security_ans)){\n//\t\t\t\t\t\t\tstep3.setVisible(true);\n//\t\t\t\t\t\t\tstep1.setVisible(false);\n//\t\t\t\t\t\t\tstep2.setVisible(false);\n\t\t\t\t\t\t\tbox.remove(1);;\n\t\t\t\t\t\t\tbox.add(step3Panel(),BorderLayout.CENTER);\n\t\t\t\t\t\t\tbox.repaint();\n\t\t\t\t\t\t\tbox.revalidate();\n\t\t\t\t\t\t\tstep3Button.setSelected(true);\n\t\t\t\t\t\t\tstep3Button.setSelectedIcon(new ImageIcon(getClass().getResource(\"/images/step3_green.png\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Security answer mismatch!\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.5746762", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "8cc7a1ad54da8f6c6fe3edfd0c33bb7a", "score": "0.5743646", "text": "private static void displayProblemOptions() {\n\t\tSystem.out.println(\"What problem type would you like?\");\n\t\tSystem.out.println(\"1. Addition\");\n\t\tSystem.out.println(\"2. Multipication\");\n\t\tSystem.out.println(\"3. Subtraction\");\n\t\tSystem.out.println(\"4. Division\");\n\t\tSystem.out.println(\"5. Random Mix\");\n\t}", "title": "" }, { "docid": "52cd40658302cab063ff33e3f657b08d", "score": "0.5743604", "text": "public void hideKeyboard() {\n\t\t// Overwritten in subclass - nothing to do here\n\t}", "title": "" }, { "docid": "0e2c6b5227f1ef3eb19e59e664f90c79", "score": "0.5742183", "text": "@Override\n public void hide() {\n super.hide();\n }", "title": "" }, { "docid": "d6e0f979af2bec1d3705e408f8dcab26", "score": "0.57407403", "text": "public void hideMe()\r\n {\r\n me.setVisible(false);\r\n }", "title": "" }, { "docid": "1b9b44c5d580dbe53e0779df3432e96d", "score": "0.5726266", "text": "private void changeconfirmPwdShowHide(){\n if (!confirmpwdShowed){\n confirmpwdShowed = true;\n confirmPwdView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n confirmPwdView.setSelection(confirmPwdView.getText().length());\n }else {\n confirmpwdShowed = false;\n confirmPwdView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);\n confirmPwdView.setSelection(confirmPwdView.getText().length());\n }\n }", "title": "" }, { "docid": "5adedd329004b1137c4e11a5be1753a5", "score": "0.5723994", "text": "@Override\n public void hideSuggestions() {\n super.hideSuggestions();\n }", "title": "" }, { "docid": "15e488c0ecd0c05de2debcaef6715069", "score": "0.5716317", "text": "private void setQuestionView() {\n txtQuestion.setText(currentQ.getQUESTION());\n button1.setText(currentQ.getOPTA());\n button2.setText(currentQ.getOPTB());\n // explain.setText(currentQ.getOPTC());\n\n\n qid++;\n }", "title": "" }, { "docid": "9460ca9eef792c164da1c4381332740e", "score": "0.5707801", "text": "public boolean clearSelectedAnswers(){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dd3179de01f6ce856ab94ef533758aac", "score": "0.5703725", "text": "public void showTextBox() {\n EditText textBox = (EditText) findViewById(R.id.text_box);\n textBox.setText(\"\");\n\n textBox.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "980c2abc746963689b19ab9b185e6b29", "score": "0.5703718", "text": "private void hideOrderComboBox(){\r\n if(GP.COMPANY_NAME.equals(GP.COMPANY_NAME_QEW)){\r\n mCRecipe.jComboBoxTestParams_Order.setVisible(false);\r\n }\r\n }", "title": "" }, { "docid": "586c35d7478a2319d2a11c5389c3b025", "score": "0.56982696", "text": "@Override\r\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "3f14eb514125ba543cbc3d94e44b9f3d", "score": "0.569605", "text": "public QuestionAnswering() {\n initComponents();\n newsTextBox.setText(\"Write Text to extract Answer From\");\n answerTypeTextBox.setText(\"Answer Box\");\n interpretationsTextBox.setText(\"Question Interpretations\");\n queryStringTextBox.setText(\"Query String\");\n answerPatternTextBox.setText(\"Answer Pattern\");\n answertypeTextBox.setText(\"Answer Type Filter\");\n questionTextBox.setText(\"Question Box\");\n }", "title": "" }, { "docid": "8f08289de0129fed4f36d172999c5a51", "score": "0.5695773", "text": "private static void displayChoices() {\n System.out.println(\n \"1. Construct a Circle\\n\" +\n \"2. Construct a Rectangle \\n\" +\n \"3. Construct a Square\\n\" +\n \"4. Construct a Triangle\\n\" +\n \"5. Construct a Sphere \\n\" +\n \"6. Construct a Cube\\n\" +\n \"7. Construct a Cone\\n\" +\n \"8. Construct a Cylinder\\n\" +\n \"9. Construct a Torus\\n\" +\n \"10. Exit the Program\"\n );\n }", "title": "" }, { "docid": "085db777656fc24a0003771c0263013b", "score": "0.56936234", "text": "public void XoaTu(){\n \n LbXoaOrTD.setText(\"Từ cần xóa\");\n LbNew.setText(\"Bộ từ vựng\");\n textNew.setText(Main.selection); \n LbBTV.setVisible(false);\n textBTV.setVisible(false);\n buttonChon.setText(CN);\n LbXoaOrTD.setVisible(true);\n cbbTu.setVisible(true);\n textNghia.setText(Main.mapAV1.getmapVn(En));\n textPA.setText(Main.mapAV1.getmapPrn(En));\n LbAnh.setVisible(true);\n LbPA.setVisible(true);\n LbNew.setVisible(true);\n textNew.setVisible(true);\n textPA.setVisible(true);\n textNghia.setVisible(true);\n LbNghĩa.setVisible(true);\n buttonHD.setVisible(true); \n jPanel2.setVisible(true);\n }", "title": "" }, { "docid": "b774a15cbc35f53cdac67f43d044839f", "score": "0.5692756", "text": "void buttonsOptions(String label) {\n if(label.equals(StringsResources.close())) {\n toggleVisibility();\n } else {\n simulation.menuOptions(title+\" \"+label);\n }\n }", "title": "" }, { "docid": "824ce1d9335a42a79d9dd7733bd06f7d", "score": "0.5683894", "text": "public void hide();", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5680807", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" } ]
75738ed5e31821d1da1a665187e0cdad
Change in text function currently not used as the recipe fragment is extended to cover the screen, this minimised firebase reads through any changes.
[ { "docid": "f8c586107d43e1a7ec30c5d4f3ba3a6a", "score": "0.0", "text": "@Override\n public boolean onQueryTextChange(String s) {\n return false;\n }", "title": "" } ]
[ { "docid": "a045adf08c237e8e7c01f96b56d328d8", "score": "0.6316001", "text": "void notifyTextChange();", "title": "" }, { "docid": "10cfa533331460aafc697b7b8e313ded", "score": "0.600001", "text": "private void OnUpdateText(View v) {\n itemText = \"\";\n\n if(etNewItem !=null) {\n itemText = etNewItem.getText().toString();\n itemDueDate = getDueDate();\n itemPriority = spinPriority.getSelectedItem().toString();\n }\n if(itemText.isEmpty())\n {\n Toast.makeText(getApplicationContext(), \"\",\n Toast.LENGTH_SHORT).show();\n }\n\n Intent intentExtra = new Intent(this, MainActivity.class);\n Bundle updatebundle = new Bundle();\n\n updatebundle.putString(\"UPDATED_ITEM\",itemText);\n updatebundle.putString(\"UPDATED_ITEM_DUE_DATE\",itemDueDate);\n updatebundle.putString(\"UPDATED_ITEM_PRIORITY\",itemPriority);\n updatebundle.putInt(\"UPDATED_ITEM_POSITION\",position);\n\n intentExtra.putExtras(updatebundle);\n intentExtra.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intentExtra);\n finish();\n }", "title": "" }, { "docid": "9a1f07f3a1f5e77129500554d7795264", "score": "0.59185064", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n mNotes = mNoteDBOpenHelper.queryFromDBByTitle(newText);\n mMyAdapter.refreshData(mNotes);\n\n return false;\n }", "title": "" }, { "docid": "0381199fc9da0335ebcf36dfbc0c6ffa", "score": "0.5917837", "text": "public void getNewDesc() {\n DatabaseReference db = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(id_user).child(\"posts\").child(id_post);\n db.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n Db = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(id_user).child(\"posts\").child(id_post);\n Db.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists() && dataSnapshot.getChildrenCount() > 0) {\n Map<String, Object> map = (Map<String, Object>) dataSnapshot.getValue();\n if (map.get(\"description\") != null) {\n String desc = map.get(\"description\").toString();\n description_view.setText(desc);\n }\n //\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n\n @Override\n public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n\n\n }", "title": "" }, { "docid": "2caef6f6ac2e468e65a1da441712d9f5", "score": "0.591558", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n dataRead = dataSnapshot.getValue(String.class);\n data.setText(dataRead);\n }", "title": "" }, { "docid": "24f99cd79f6533cecdd524bc94ffe3fb", "score": "0.5897796", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n searchKey = newText;\n getNoteLists(true, false, false);\n return false;\n }", "title": "" }, { "docid": "a91c586e24f2dac7474e9761f58ed8e5", "score": "0.57759726", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n listNewsFragment.search(newText);\n return false;\n }", "title": "" }, { "docid": "43abb766108760ebd6233cb028e7b283", "score": "0.5774551", "text": "private void updateContent(){\n\n System.out.println(\"- Recipe updateContent\");\n\n recipeName.setText(recipe.getName());\n recipeType.setText(recipe.getType());\n recipeCuisine.setText(recipe.getCuisine());\n recipeDifficulty.setText(recipe.getDifficulty());\n recipeTime.setText(recipe.getTime());\n recipeDiet.setText(recipe.getDiet());\n recipeDescription.setText(recipe.getDescription());\n\n System.out.println(\"- End of Recipe updateContent\");\n\n }", "title": "" }, { "docid": "6c537567ac031e347efce5ffdc56b177", "score": "0.5755832", "text": "public void refreshText();", "title": "" }, { "docid": "ecb96d5c8edcfa2fc035ebe205a0ac2f", "score": "0.57534486", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return true;\n }", "title": "" }, { "docid": "b83bd8913e29f8f557768751afc4ffc0", "score": "0.56862354", "text": "@Override\n public void run() {\n if (getActivity() != null && isAdded()) {\n searchInFragment(newText);\n }\n }", "title": "" }, { "docid": "f108f8c28aba5a666a609e533b77f87d", "score": "0.5666213", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n word = newText;\n return false;\n }", "title": "" }, { "docid": "19d58cb779117534c53687b0723f2202", "score": "0.56135774", "text": "@Override\r\n public boolean onQueryTextChange(String newText)\r\n {\n mSlateListAdapter.getFilter().filter(newText);\r\n System.out.println(\"on text chnge text: \"+newText);\r\n return true;\r\n }", "title": "" }, { "docid": "00761b7b36721c7ec6d26aa6976f54e6", "score": "0.55728966", "text": "@Override\n\t\t\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "title": "" }, { "docid": "beee67cb82d517b30e5e46477c429e75", "score": "0.55544376", "text": "private void updateTexts(DocumentEvent e) {\n\n Document doc = e.getDocument();\n fireChange();\n\n }", "title": "" }, { "docid": "f43367e147f5f33d4ea46680f26fd3b8", "score": "0.5549308", "text": "@Override\n\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "f43367e147f5f33d4ea46680f26fd3b8", "score": "0.5549308", "text": "@Override\n\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "c2706fc9b4ed06bd10b0499bb6578ed9", "score": "0.5547586", "text": "@Override // sempre que os calores do \"condition\" forem atualizados na base de dados\n public void onDataChange(DataSnapshot dataSnapshot) {\n String text = dataSnapshot.getValue(String.class);\n // TUDO textview SE SINCRONIZA AQUI\n mConditionTextView.setText(text);\n }", "title": "" }, { "docid": "fa9873dca490def90a816f2ea3857b0d", "score": "0.5543915", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n firebaseSearch(newText);\n return false;\n }", "title": "" }, { "docid": "568922a7b1182b7093634233dfe48e83", "score": "0.55431575", "text": "@Override\n public void onDataSetChanged() {\n // Get ingredients for a given recipe\n String ingredientsString = repository.getIngredients(getRecipeId());\n ingredients = RecipeUtils.toIngredients(ingredientsString);\n }", "title": "" }, { "docid": "3cce4e732969bbbef64ed2e49f5d9ead", "score": "0.55415714", "text": "private void updateContent(final String text)\n {\n UiApplication.getUiApplication().invokeLater(new Runnable() \n {\n public void run()\n {\n l_rich.setText(text);\n }\n });\n }", "title": "" }, { "docid": "1227575e981d33bfaefd9526fc348d76", "score": "0.5532299", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "fba0f01c5225aee3f6688936dfe9243d", "score": "0.55247575", "text": "@Override\n public boolean onQueryTextChange(String newText)\n {\n return false;\n }", "title": "" }, { "docid": "c958a38153c2d494f114d3b546cd8eaa", "score": "0.55238956", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n\n return false;\n }", "title": "" }, { "docid": "16c6c365ee4cfa2874597e28aa9a636a", "score": "0.5522864", "text": "@Override\n public boolean onQueryTextSubmit(String text) {\n\n a=text;\n\n Toast.makeText(getContext(), a + \" is a good choice \" , Toast.LENGTH_LONG).show();\n GenreText.setText(a);\n\n return false;\n }", "title": "" }, { "docid": "76830bb6c46f9a8402e6c1e5c1cde5c4", "score": "0.5504195", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "76830bb6c46f9a8402e6c1e5c1cde5c4", "score": "0.5504195", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "76830bb6c46f9a8402e6c1e5c1cde5c4", "score": "0.5504195", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "76830bb6c46f9a8402e6c1e5c1cde5c4", "score": "0.5504195", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "30c27e931ebfe264a0969f07c4acc3b0", "score": "0.5500898", "text": "public String getRevisedText();", "title": "" }, { "docid": "e34511384a39b7a472f1e95674084267", "score": "0.5489863", "text": "private void setTexts() {\n\t\ttextview_trackyourfix.setText(R.string.reviews);\n\t}", "title": "" }, { "docid": "b07bed86a894a9887f7f8f86ce4bda3a", "score": "0.5481158", "text": "public abstract void syncWithText();", "title": "" }, { "docid": "1593725afe82093a231f0e074fdf8677", "score": "0.5465144", "text": "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(specialtycocoa);\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity.specialtycocoa != null\n boolean activitySpecialtycocoaJavaLangObjectNull = false;\n // activity.specialtycocoa.get()\n java.lang.String activitySpecialtycocoaGet = null;\n // activity\n com.telpo.usb.finger.pojo.ActivityInfoPojo activity = mActivity;\n // activity.specialtycocoa\n androidx.databinding.ObservableField<java.lang.String> activitySpecialtycocoa = null;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activitySpecialtycocoa = activity.specialtycocoa;\n\n activitySpecialtycocoaJavaLangObjectNull = (activitySpecialtycocoa) != (null);\n if (activitySpecialtycocoaJavaLangObjectNull) {\n\n\n\n\n activitySpecialtycocoa.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "title": "" }, { "docid": "6c6683f6b02685f1c829a8e7e803bdf5", "score": "0.54545593", "text": "public void modifyText(ModifyEvent me){\n\t\t\t\tSystem.out.println(\"change to \\\"\"+textSearch.getText()+\"\\\"\");\n\t\t\t\tJaguarPlugin.ui(project, textSearch, \"change to \\\"\"+textSearch.getText()+\"\\\"\");\n\t\t\t\tviewer.getTable().removeAll();\n\t\t\t\tcheckScoreBounds(slider.getSelection()/SLIDER_PRECISION_SCALE,slider.getMaximum()/SLIDER_PRECISION_SCALE);//for RangeSlider\n\t\t\t\tfor(MethodData method : originalRoadmap){\n\t\t\t\t\tif(method.isEnabled())\n\t\t\t\t\t\tviewer.add(method);\t\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "b513b70ace0ba33418023dd0fc8574a6", "score": "0.5439333", "text": "private void recoveryText() {\n if (!recoveryElements.isEmpty()) {\n //set last element in list to edit text view\n editText.setText(recoveryElements.get(recoveryElements.size() - 1));\n //remove last element in list\n recoveryElements.remove(recoveryElements.size() - 1);\n } else {\n Toast.makeText(this, \"Words no more!\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "113fd5a90357e2a7ffdf66b24d4cd7c7", "score": "0.5424322", "text": "@Override\n\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\tmyAdapter.getFilter().filter(newText);\n\t\t\t\tSystem.out.println(\"on text chnge text: \" + newText);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "8449fc6d9bd2b9637a7c9b203fac1f3d", "score": "0.54239607", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n Log.d(TAG, \"onQueryTextChange [\" + constraint + \"]\");\n constraint = !TextUtils.isEmpty(newText) ? newText : null;\n // checkedPosition=0;\n getLoaderManager().restartLoader(0, null, this);\n return true;\n }", "title": "" }, { "docid": "ce295e0251651038023f601508c8af8b", "score": "0.54072046", "text": "@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n Log.d(TAG, \"onRestoreInstanceState: in onRestoreInstanceState method\");\n super.onRestoreInstanceState(savedInstanceState);\n// String savedString = savedInstanceState.getString(TEXT_CONTENTS); //retrieved the text contents and assigned it to the savedString\n textView.setText(savedInstanceState.getString(TEXT_CONTENTS)); //<-- shorter way than the command above\n Log.d(TAG, \"onRestoreInstanceState: out onRestoreInstanceState method\");\n }", "title": "" }, { "docid": "1c76ad91e763cd1807fa61b8a0a3b2bf", "score": "0.5397723", "text": "public boolean onQueryTextChange(String newText){\n adapter.getFilter().filter(newText); //it will filter out the items from listview depending on the match with newText.\n return true;\n }", "title": "" }, { "docid": "ad5c26ae516ccc18b3b369f8bce000f9", "score": "0.53967583", "text": "public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "6543dc54f570eb643420cada0a973d22", "score": "0.5395169", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "6543dc54f570eb643420cada0a973d22", "score": "0.5395169", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }", "title": "" }, { "docid": "f74430bbbe648cf272e0b22e2cac92ce", "score": "0.538643", "text": "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(edRemark);\n // localize variables for thread safety\n // vm != null\n boolean vmJavaLangObjectNull = false;\n // vm\n me.muhammadali.qpersonalaccounting.ui.cashentry.EditCashEntryViewModel vm = mVm;\n // vm.entry.getValue()\n me.muhammadali.qpersonalaccounting.model.entity.CashEntry vmEntryGetValue = null;\n // vm.entry\n androidx.lifecycle.MutableLiveData<me.muhammadali.qpersonalaccounting.model.entity.CashEntry> vmEntry = null;\n // vm.entry.getValue() != null\n boolean vmEntryGetValueJavaLangObjectNull = false;\n // vm.entry != null\n boolean vmEntryJavaLangObjectNull = false;\n // vm.entry.getValue().description\n java.lang.String vmEntryDescription = null;\n\n\n\n vmJavaLangObjectNull = (vm) != (null);\n if (vmJavaLangObjectNull) {\n\n\n vmEntry = vm.getEntry();\n\n vmEntryJavaLangObjectNull = (vmEntry) != (null);\n if (vmEntryJavaLangObjectNull) {\n\n\n vmEntryGetValue = vmEntry.getValue();\n\n vmEntryGetValueJavaLangObjectNull = (vmEntryGetValue) != (null);\n if (vmEntryGetValueJavaLangObjectNull) {\n\n\n\n\n vmEntryGetValue.setDescription(((java.lang.String) (callbackArg_0)));\n }\n }\n }\n }", "title": "" }, { "docid": "379d8f94a3503ac35bddc4c7ebe42fa7", "score": "0.53857577", "text": "@Override\n public void applyTexts(String name, String quantity, String unit) {\n firebaseFirestore = firebaseFirestore.getInstance();\n IngredientModel ingredientModel = new IngredientModel(name,quantity,unit);\n firebaseFirestore.collection(\"INGREDIENT\").add(ingredientModel)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"error\",e.toString());\n }\n });\n }", "title": "" }, { "docid": "cce4de36800bff1fb8131c194cabd4ae", "score": "0.5369334", "text": "public boolean onQueryTextChange(String newText) {\n final int size = iteminfo.size();\n Log.d(\"test\",\"SIZE IS\" + size);\n for (int i = size - 1; i >= 0; i--) {\n if ((iteminfo.get(i).getUser().contains(newText)== false) && (iteminfo.get(i).getTitle().contains(newText)==false) && (iteminfo.get(i).getprice().contains(newText) == false) && (iteminfo.get(i).getDesc().contains(newText) == false)) {\n iteminfo.remove(i);\n //notifyItemRemoved(i);\n mAdapter = new MainAdapter(iteminfo);\n mRecyclerView.setAdapter(mAdapter);\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "67bb6f5ae14eab0bd2439bfbd0fd8eba", "score": "0.5363253", "text": "@Override\r\n public boolean onQueryTextChange(String newText) {\r\n return false;\r\n }", "title": "" }, { "docid": "dc155ba61dfff80c8bdc27491f1d5d13", "score": "0.53618187", "text": "@Override\n\tpublic boolean onQueryTextChange(String newText) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "89f6830cee95f09e3f40157407d478f6", "score": "0.5357133", "text": "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(fundingsource);\n // localize variables for thread safety\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity.fundingsource != null\n boolean activityFundingsourceJavaLangObjectNull = false;\n // activity.fundingsource\n androidx.databinding.ObservableField<java.lang.String> activityFundingsource = null;\n // activity.fundingsource.get()\n java.lang.String activityFundingsourceGet = null;\n // activity\n com.telpo.usb.finger.pojo.ActivityInfoPojo activity = mActivity;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activityFundingsource = activity.fundingsource;\n\n activityFundingsourceJavaLangObjectNull = (activityFundingsource) != (null);\n if (activityFundingsourceJavaLangObjectNull) {\n\n\n\n\n activityFundingsource.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "title": "" }, { "docid": "2b1247899dcebe11b45ef9320eabf245", "score": "0.5335621", "text": "@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n t1.setText(savedInstanceState.getCharSequence(\"textview\"));\n }", "title": "" }, { "docid": "893678c9b31ff4f9927c3060b77a25a3", "score": "0.53096163", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n System.out.println(\"###################\");\n System.out.println(\"onQueryTextChange(newText)===\"+newText);\n System.out.println(\"onQueryTextChange(newText to String)===\"+newText.toString());\n System.out.println(\"###################\");\n mAdapter.getFilter().filter(newText);\n return false;\n }", "title": "" }, { "docid": "ee5d4b2bd24fe9b5960eb1fdc32448b5", "score": "0.5301856", "text": "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(cocoaincome);\n // localize variables for thread safety\n // activity.incomesource != null\n boolean activityIncomesourceJavaLangObjectNull = false;\n // activity != null\n boolean activityJavaLangObjectNull = false;\n // activity.incomesource\n androidx.databinding.ObservableField<java.lang.String> activityIncomesource = null;\n // activity\n com.telpo.usb.finger.pojo.ActivityInfoPojo activity = mActivity;\n // activity.incomesource.get()\n java.lang.String activityIncomesourceGet = null;\n\n\n\n activityJavaLangObjectNull = (activity) != (null);\n if (activityJavaLangObjectNull) {\n\n\n activityIncomesource = activity.incomesource;\n\n activityIncomesourceJavaLangObjectNull = (activityIncomesource) != (null);\n if (activityIncomesourceJavaLangObjectNull) {\n\n\n\n\n activityIncomesource.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "title": "" }, { "docid": "e326e35a83c192c7cf532a24a1750674", "score": "0.5274749", "text": "private void textChanged(DocumentEvent e)\n\t{\n\t\tif (e == null || e.getDocument() == null || this.isUpdating())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isDocumentUpdating = true;\n\n\t\tif (e.getDocument().equals(this.thicknessDocument))\n\t\t{\n\t\t\tthicknessAction();\n\t\t}\n\n\t\tthis.isDocumentUpdating = false;\n\t}", "title": "" }, { "docid": "96ac9f73d146993172e3f7884c2f753e", "score": "0.5269728", "text": "public void quickUpdate() {\n for (int i = 0; i < text.size(); i++) {\n text.get(i).quickUpdate();\n }\n }", "title": "" }, { "docid": "242f057c2e79872c83ef0f9661acc9f0", "score": "0.52645904", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n highRiskPatientAdapter.filter(newText);\n moderateRiskPatientAdapter.filter(newText);\n normalPatientAdapter.filter(newText);\n setPatientCount();\n return false;\n }", "title": "" }, { "docid": "f2b6199bdb6b80eb4af3df2ffd861efe", "score": "0.5259083", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap hm = (HashMap) dataSnapshot.getValue();\n Iterator it = hm.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry)it.next();\n System.out.println(pair.getKey() + \" = \" + pair.getValue());\n\n String title = pair.getKey().toString();\n String imgUrl = \"\";\n String youtubeUrl = \"\";\n String recipe = \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis convallis sapien vitae magna faucibus, id mattis elit rutrum. Phasellus feugiat at eros in venenatis. Donec luctus nulla leo, et vehicula velit aliquet quis. Donec non est in nisi pellentesque facilisis. Praesent enim metus, pellentesque sit amet metus eget, dignissim pharetra ex. Maecenas vitae malesuada nisl, et malesuada nisi. In ullamcorper accumsan semper. Morbi vel orci tristique, malesuada dui quis, pellentesque tortor. Nunc leo ante, iaculis id risus id, mattis commodo nulla. Integer pellentesque neque sem, eget lobortis ipsum finibus sed. In aliquet augue a neque accumsan faucibus. Ut nec pharetra dolor. Cras efficitur laoreet erat, vel porta ex rutrum et. Maecenas sodales risus purus, eu tempor sem hendrerit quis. Fusce sit amet nulla porttitor, blandit massa tempor, fermentum sem. Maecenas suscipit libero ac auctor ultrices.\";\n\n Iterator iterator = ((HashMap)pair.getValue()).entrySet().iterator();\n while (iterator.hasNext()) {\n Map.Entry pair2 = (Map.Entry)iterator.next();\n\n switch (pair2.getKey().toString()) {\n case \"image\":\n imgUrl = pair2.getValue().toString();\n break;\n\n case \"title\":\n title = pair2.getValue().toString();\n if (title.equals(\"Grilled Garlic Butter Shrimp\")) {\n title = \"Garlic Shrimp\";\n }\n break;\n case \"youtube_id\":\n youtubeUrl = pair2.getValue().toString();\n break;\n }\n\n iterator.remove();\n }\n\n Recipe r = new Recipe(title, imgUrl, youtubeUrl, recipe);\n recipes.add(r);\n mAdapter.notifyDataSetChanged();\n\n\n it.remove(); // avoids a ConcurrentModificationException\n }\n }", "title": "" }, { "docid": "84af49bc3d7506950469206935526a94", "score": "0.52491194", "text": "@Test\n public void changeText_newActivity() {\n onView(withId(R.id.inputField)).perform(typeText(\"NewText\"), closeSoftKeyboard());\n onView(withId(R.id.switchActivity)).perform(click());\n\n // 这里可以发现Test只是找UI\n onView(withId(R.id.resultView)).check(matches(withText(\"NewText\")));\n }", "title": "" }, { "docid": "8da8a6a55c142bd8d113264cf3c94fa5", "score": "0.52404296", "text": "@Override\r\n\tprotected void onTextChanged(CharSequence text, int start,\r\n\t\t\tint lengthBefore, int lengthAfter) {\n\t\t\r\n\t\tsuper.onTextChanged(text, start, lengthBefore, lengthAfter);\r\n\t\t\r\n\t\tif(!isEmpty() && BoardActivity.hintEnabled()){\r\n\t\t\tif(!isCorrect())\r\n\t\t\t\tsetBackgroundColor(Color.RED);\r\n\t\t\telse\r\n\t\t\t\tsetBackgroundColor(color);\r\n\t\t}\r\n\t\t\r\n\t\tif(BoardActivity.noteEnabled()){\r\n\t\t\tisNote = true;\r\n\t\t\tLog.d(\"note\",\"set note\");\r\n\t\t\tsetTextColor(Color.BLUE);\r\n\t\t\tsetTextSize(10);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsetTextSize(13);\r\n\t\t\tsetTextColor(textColor);\r\n\t\t\tisNote = false;\r\n\t\t}\r\n\t\t\r\n\t\tif(isEmpty())\r\n\t\t\treturnToNormal();\r\n\t\t\r\n\t\t//Log.d(\"Text Changed text\",text.toString());\r\n\t\t//Log.d(\"text changed start\",String.valueOf(start));\r\n\t\t//Log.d(\"text changed len before\",String.valueOf(lengthBefore));\r\n\t\t//Log.d(\"text changed len after\",String.valueOf(lengthAfter));\r\n\t\t\r\n\t\tif(text.length() > 1){\r\n\t\t\ttext = text.subSequence(text.length()-1, length());\r\n\t\t\tsetText(text);\r\n\t\t}\r\n\t\tif(text.toString().equalsIgnoreCase(String.valueOf(0))){\r\n\t\t\tsetText(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7c06b08d813031faec7f20c6040e99c6", "score": "0.52401495", "text": "void onTextChanged(String newText);", "title": "" }, { "docid": "1781e810e17bae69d607ca56b0877a96", "score": "0.5218611", "text": "@Override\n protected void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putCharSequence(\"textview\", t1.getText());\n }", "title": "" }, { "docid": "4e1aa9733a32f656a0552d4727dc5c9b", "score": "0.5215457", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n txt_nowbrightness.setText(value);\n }", "title": "" }, { "docid": "08bf8eda56a179cea03b9f2ccd6c569c", "score": "0.5213446", "text": "@Override\n\t\t\tpublic boolean onQueryTextChange(String arg0) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "5e95fa70a6c45b8729cbf5bc9b6218c9", "score": "0.5205457", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n if (!TextUtils.isEmpty(newText)) {\n searchPosts(newText, ubicacion);\n } else {\n loadPosts(ubicacion);\n }\n return false;\n }", "title": "" }, { "docid": "b2e07e42d6f03794776d643776b19806", "score": "0.52020276", "text": "private void addText(int viewNo) {\n \tif (parentActivity != null) {\n \t\ttry {\n\t\t\t\tcurrInfo = parentActivity.tvEye;\n\t\t\t\tswitch (viewNo) {\n\t\t\t\tcase zoomEyes:\n\t\t\t\t\tcurrInfo.setText(\"EYES: see the bolus. \\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 2\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomNose:\n\t\t\t\t\tcurrInfo.setText(\"NOSE: smell the bolus. \\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 1\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomBrain:\n\t\t\t\t\tcurrInfo.setText(\"BRAIN: (association cortex, insular cortex, limbic system, hippocampus, frontal lobe)\\n\" +\n\t\t\t\t\t\t\t\"BRAINSTEM: (Nucleus tractus solitaries and nucleus ambiguous)\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomLips:\n\t\t\t\t\tcurrInfo.setText(\"LIPS: Open for bolus entry and close to seal it in.\\n\" +\n\t\t\t\t\t\t\t\"<Muscle> Orbicularis oris\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 7\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomJaw:\n\t\t\t\t\tcurrInfo.setText(\"JAW: Opens for bolus entry and �chews� it. \\n\" +\n\t\t\t\t\t\t\t\"<Muscle> \\n\" +\n\t\t\t\t\t\t\t\"Primary masticatory closers: masseter, temporalis and lateral pterygoid.\" +\n\t\t\t\t\t\t\t\"Jaw openers: external pterygoid, anterior belly of digastric, geniohyoid and mylohyoid.\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 5 and ansa cervicalis.\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomTongue:\n\t\t\t\t\tcurrInfo.setText(\"TONGUE: Accepts, contains, moves and transfers the bolus.\\n\" +\n\t\t\t\t\t\t\t\"<Muscle> Verticalis, transversius, hyoglossus and genioglossus.\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 12\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomVFs:\n\t\t\t\t\tcurrInfo.setText(\"VOCAL FOLDS: Adduction to protect the airway.\\n\" +\n\t\t\t\t\t\t\t\"<Muscle> Interarytenoids and lateral cricoarytenoid.\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 10 and the recurrent laryngeal nerve.\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomPalate:\n\t\t\t\t\tcurrInfo.setText(\"SOFT PALATE: Velopharyngeal closure to block off the nasal cavity.\\n\" +\n\t\t\t\t\t\t\t\"<Muscle> Levator veli palatini.\t\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> Pharyngeal plexus (CNs 9 and 10).\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomHyoid:\n\t\t\t\t\tcurrInfo.setText(\"HYOID BONE: Moves up and forward.\\n\" +\n\t\t\t\t\t\t\t\"<Muscle>\\n\" +\n\t\t\t\t\t\t\t\"Up: stylohyoid and posterior belly of the digastric.\\n\" +\n\t\t\t\t\t\t\t\"Forward: geniohyoid, mylohyoid and the anterior belly of the digastric.\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve>\\n\" +\n\t\t\t\t\t\t\t\"Up: CN7. Forward: CN5 (and ansa cervicalis).\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomEpig:\n\t\t\t\t\tcurrInfo.setText(\"EPIGLOTTIS: Deflects (folds) to protect the airway. \\n\" +\n\t\t\t\t\t\t\t\"This is due to: \" +\n\t\t\t\t\t\t\t\" - Hyolaryngeal excursion \" +\n\t\t\t\t\t\t\t\" - neuromuscular closure\" +\n\t\t\t\t\t\t\t\" - the architecture of the epiglottis \" +\n\t\t\t\t\t\t\t\" - the superior pressure of the base of tongue.\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase zoomUES:\n\t\t\t\t\tcurrInfo.setText(\"UPPER ESOPHAGEAL SPHINCTER: \\n\" +\n\t\t\t\t\t\t\t\"This relaxes and opens to allow the bolus to pass to the stomach.\\n\" +\n\t\t\t\t\t\t\t\"<Muscle> Cricopharyngeus\\n\" +\n\t\t\t\t\t\t\t\"<Cranial Nerve> 10\");\n\t\t\t\t\tcurrInfo.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tcurrInfo.setVisibility(View.INVISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"touch\", e.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "e44471a2acf34cc18c19a1234a592eda", "score": "0.5201591", "text": "@Override\n\t\t\t\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\t\t\t\ttextquery = buscador.getQuery().toString();\n\t\t\t\t\t\t\t((AdaptadorUsuarios)mAdapter).BuscarUsuarios();\n\t\t\t\t\t\t\tresultadobusqueda.setText(\"Se encontraron \" + ((AdaptadorUsuarios)mAdapter).getItemCount() + \" resultados\");\n\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}", "title": "" }, { "docid": "402a7d263a04f681b03765cf5d83e5cf", "score": "0.5191701", "text": "@Override\n public boolean onQueryTextChange(String newText)\n {\n if(!TextUtils.isEmpty(newText.trim()))\n {\n // search text contains , search it\n searchusers(newText);\n }\n else\n {\n getAllusers();\n }\n return false;\n }", "title": "" }, { "docid": "6085f5f22a62649576c40314351a79ab", "score": "0.51914054", "text": "@Override\n public void afterTextChanged(Editable s) {\n boolean isEntryTextNew = !TextUtils.equals(\n s,\n mCurrentEntryCallback.getCurrentEntry().getEntryText());\n\n if (isEntryTextNew && !mIsPrefilledTextChange) {\n Timber.d(\"Entry text is new, so post delay saving in 5s\");\n mHandler.removeCallbacks(mSaveToFirestoreRunnable);\n // Save the entry text every 3 seconds since the last text change\n mHandler.postDelayed(mSaveToFirestoreRunnable, 3000);\n }\n }", "title": "" }, { "docid": "56fc6330d7e017aa7f8f2fe2451c705a", "score": "0.51791334", "text": "public void onTextChanged(CharSequence c, int start, int before, int count) {\n LocalDatabase.updateTask(DetailActivity.this, currentTask.getId(), \"title\", name_details.getText().toString());\n }", "title": "" }, { "docid": "a22df1000985813de0b5da12588a8742", "score": "0.5174391", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_note_view);\n\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n String noteId = getIntent().getStringExtra(\"noteId\");\n databaseReference = firebaseDatabase.getReference().child(\"Notes\").child(noteId);\n\n note = new Note();\n\n createdAt = findViewById(R.id.createdAt_insert);\n lastModified = findViewById(R.id.lastModified_insert);\n noteTitle = findViewById(R.id.noteTitle_insert);\n noteContent = findViewById(R.id.noteContent_insert);\n\n Log.d(TAG, \"tttitle\" + noteTitle.getText());\n Log.d(TAG, \"content\" + noteContent.getText());\n\n attachDatabaseReadListener();\n\n Button button_return = findViewById(R.id.button_return_note);\n button_return.setOnClickListener(v -> finish());\n\n Button button_edit = findViewById(R.id.button_edit_note);\n onEditListener(button_edit, noteId);\n\n Button button_delete = findViewById(R.id.button_delete_note);\n onDeleteListener(button_delete, noteId);\n\n Button button_share = findViewById(R.id.button_share_note);\n button_share.setOnClickListener( v -> shareViaNfc(noteTitle.getText() + \"\", noteContent.getText() + \"\") );\n\n }", "title": "" }, { "docid": "c051423b4d5241df4f1fbdae1ead8164", "score": "0.51691085", "text": "@Override\n\tpublic void setBeautifulSoundText(String text) {\n\t\tdetailMainFragment.setBeautifulSoundText(text);\n\t}", "title": "" }, { "docid": "0400ba8ec14f0b8b647672095a458e97", "score": "0.51685596", "text": "@Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n oldText = s.toString();\n }", "title": "" }, { "docid": "36beaa908381af8a8689e4157315dc0c", "score": "0.5166438", "text": "@Override\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tgetStepMeta().setDatabaseMeta(transMeta.findDatabase(cmbConnection.getText()));\r\n\t\t\t\tgetStepMeta().setChanged();\r\n\r\n\t\t\t\t// Update available fields\r\n\t\t\t\t// updateAvailableFields();\r\n\t\t\t}", "title": "" }, { "docid": "4715107ac6a9a1d891afb054ee5ac544", "score": "0.5165914", "text": "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = android.databinding.adapters.TextViewBindingAdapter.getTextString(editProductRemark);\n // localize variables for thread safety\n // materialAddViewModel.model.productRemarks\n java.lang.String materialAddViewModelModelProductRemarks = null;\n // materialAddViewModel\n com.itg.calderysapp.caldNet.newIndent.addmaterial.mvvm.MaterialAddViewModel materialAddViewModel = mMaterialAddViewModel;\n // materialAddViewModel.model\n com.itg.calderysapp.caldNet.newIndent.addmaterial.model.SaveMaterialModel materialAddViewModelModel = null;\n // materialAddViewModel != null\n boolean materialAddViewModelJavaLangObjectNull = false;\n // materialAddViewModel.model != null\n boolean materialAddViewModelModelJavaLangObjectNull = false;\n\n\n\n materialAddViewModelJavaLangObjectNull = (materialAddViewModel) != (null);\n if (materialAddViewModelJavaLangObjectNull) {\n\n\n materialAddViewModelModel = materialAddViewModel.getModel();\n\n materialAddViewModelModelJavaLangObjectNull = (materialAddViewModelModel) != (null);\n if (materialAddViewModelModelJavaLangObjectNull) {\n\n\n\n\n materialAddViewModelModel.setProductRemarks(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "title": "" }, { "docid": "6f08cb8e5ca9d3e0b432f7588edebac4", "score": "0.5164026", "text": "private void updateText() {\r\n if (this.text == null)\r\n this.text= new SimpleStringProperty(this, \"text\", getText(getTypeOfControl()));\r\n \r\n else\r\n this.text.setValue(getText(getTypeOfControl()));\r\n }", "title": "" }, { "docid": "bb848db4a866faaa35cd900e643897e6", "score": "0.51612747", "text": "@Override\n public boolean onQueryTextChange(String s) {\n if (flag == false) Static.arrayEv = mWordHelper.executeQuery1(\"SELECT KeyWord FROM \" + Static.TABLE_EV + \" WHERE KeyWord LIKE '\" + s.replace(\"'\", \"''\") + \"%' LIMIT 15\");\n mWordAdapter.update(Static.arrayEv);\n return true;\n }", "title": "" }, { "docid": "a21f5ee8b4f16cddbdb8f4a9b98c3d45", "score": "0.51571614", "text": "@Override\r\n\tpublic void onRead(UIEdit edit, Element e, Document doc) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "8cd6dd0c33c44379cdc44890dd95a2af", "score": "0.5140026", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_only_text, container, false);\n\n ReadFromAssets readFromAssets = new ReadFromAssets();\n TextView tvOnlyText = rootView.findViewById(R.id.tvOnlyText);\n tvOnlyText.setTypeface(FontEquipper.equip(FontEquipper.ROBOTO_REGULAR, getActivity()));\n\n tvOnlyText.setText(\"\");\n\n if (res.equals(\"STH\")) {\n tvOnlyText.setText(readFromAssets.readFile(getActivity(), \"texts/sth.txt\"));\n }\n if (res.equals(\"CAR\")) {\n tvOnlyText.setText(readFromAssets.readFile(getActivity(), \"texts/carrier.txt\"));\n }\n if (res.equals(\"CAC\")){\n tvOnlyText.setText(readFromAssets.readFile(getActivity(), \"texts/callcenter.txt\"));\n }\n if (res.equals(\"TEM\")){\n tvOnlyText.setText(readFromAssets.readFile(getActivity(), \"texts/tellmy.txt\"));\n }\n if (res.equals(\"INF\")){\n tvOnlyText.setText(readFromAssets.readFile(getActivity(), \"texts/profile.txt\"));\n }\n if (res.equals(\"NET\")){\n tvOnlyText.setText(readFromAssets.readFile(getActivity(), \"texts/network.txt\"));\n }\n\n return rootView;\n }", "title": "" }, { "docid": "309b7faac479364194aa65f9dd529df3", "score": "0.5139948", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n if (newText == null) {\n createAndSetAdapter(mOrigGroupData, mOrigChildData);\n mExpandableListAdapter.notifyDataSetChanged();\n// for(int i = 0; i < mGroupData.size(); i++){\n// if (i < mExpandGroupSettings.length()\n// && mExpandGroupSettings.charAt(i) == '1') {\n// mListView.expandGroup(i);\n// }\n// }\n } else {\n filterList(newText);\n mExpandableListAdapter.notifyDataSetChanged();\n\n for(int i = 0; i < mGroupData.size(); i++){\n mListView.expandGroup(i);\n }\n }\n return true;\n }", "title": "" }, { "docid": "a44bfd4c2b83357ac34a9b2283506572", "score": "0.51285076", "text": "protected void set_text_data(){\n load_text = (TextView)findViewById(R.id.textView7);\n load_text.setText(GetIntent.getStringExtra(\"mantri_name\"));\n //Toast.makeText(getApplicationContext(),GetIntent.getStringExtra(\"serial\"),Toast.LENGTH_LONG).show();\n profilepicurl += GetIntent.getStringExtra(\"serial\") + \"/profile.png\";\n partypicture += GetIntent.getStringExtra(\"serial\") + \"/partysymbol.png\";\n picturesurl += GetIntent.getStringExtra(\"serial\") + \"/pictures/\";\n this.load_picture_nos();\n this.load_about();\n }", "title": "" }, { "docid": "7f5e4f92d6b75b4ec52197249d4498c9", "score": "0.5114838", "text": "@Override\n public void onClick(Recipe recipe) {\n SharedPreferences sharedPreferences = getSharedPreferences(\n BakingWidgetProvider.WIDGET_RECIPE_PREF_KEY, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(BakingWidgetProvider.INGREDIENT_PREF_KEY, getIngredientsString(recipe));\n editor.apply();\n\n // Update the widget\n Intent widgetIntent = new Intent(this, BakingWidgetProvider.class);\n widgetIntent.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);\n int[] ids = AppWidgetManager.getInstance(getApplication())\n .getAppWidgetIds(new ComponentName(getApplication(), BakingWidgetProvider.class));\n widgetIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, ids);\n sendBroadcast(widgetIntent);\n\n // Use intent to open the RecipeActivity\n Intent intent = new Intent(this, RecipeActivity.class);\n intent.putExtra(INTENT_EXTRA_RECIPE_KEY, recipe);\n startActivity(intent);\n }", "title": "" }, { "docid": "b93ee4cc705ef50a52b537e64d9db8ab", "score": "0.51029104", "text": "public void Set(String newText){ this.setText(newText); }", "title": "" }, { "docid": "80e33b3962ac0d90327e8868c8d7ef02", "score": "0.5099905", "text": "@Override\n protected void onResume() {\n super.onResume();\n editTextChangeName.setText(preferences.getString(\"editTextName\", \"Enter new name\"));\n editTextChangePhone.setText(preferences.getString(\"editTextPhone\", \"Enter new phone number\"));\n editTextChangeAddress.setText(preferences.getString(\"editTextAddress\", \"Enter new address\"));\n }", "title": "" }, { "docid": "6de47e933826087cf55ed717a60e349d", "score": "0.5099398", "text": "@Override\n public void onConfirm(String text) {\n String fontPath = new File(getFilesDir(), \"fonts/MFYanSong-Regular.ttf\").getAbsolutePath();\n Scene scene = SimpleModel.getInstance().getSceneList().get(mCurrentSceneIndex);\n scene.mText = new Scene.Text();\n scene.mText.mFontPath = fontPath;\n scene.mText.mValue = text;\n scene.mText.mBackground = null;\n scene.mText.mPosX = 0;\n scene.mText.mPosY = (int) (mSurfaceHeight / (2 * mSurfaceScaleFactor));\n\n AVFlowEngine.getInstance().setPreviewText(mEngineToken,\n scene.mText.mFontPath,\n scene.mText.mValue,\n scene.mText.mPosX,\n mSurfaceHeight / 2,\n (int) (scene.mText.mTextSize * mSurfaceScaleFactor),\n scene.mText.mRed,\n scene.mText.mGreen,\n scene.mText.mBlue,\n scene.mText.mBackground);\n\n SeekBar changePosX = mTextTitlePanel.findViewById(R.id.sb_change_font_posx);\n SeekBar changePosY = mTextTitlePanel.findViewById(R.id.sb_change_font_posy);\n changePosX.setProgress(scene.mText.mPosX);\n changePosY.setProgress(mSurfaceHeight / 2);\n }", "title": "" }, { "docid": "8ec9559a20be57d655511e97032bd899", "score": "0.50966424", "text": "@Override\n protected void onCreate(Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n setContentView(R.layout.recipe);\n\n this_catégorie = raw_data(recette,ColumnStringArray[7] );\n thiscategorie = (TextView) findViewById(R.id.current_categorie);\n thiscategorie.setText(this_catégorie);\n\n }", "title": "" }, { "docid": "f892f3bb31a2678d86f712e31940f78f", "score": "0.5081512", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgoodsIdText.setText(subString);\n\t\t\t\t\t}", "title": "" }, { "docid": "8176d68156a8ef7403bd004ffd525031", "score": "0.5078447", "text": "private void addUserChangeListener() {\n mFirebaseDatabase.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n DescriptionModels user = dataSnapshot.getValue(DescriptionModels.class);\n\n Log.i(\"userdata\",\"\"+user);\n // Check for null\n if (user == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n Log.e(TAG, \"User data is changed!\" + user.firnumber + \", \" + user.description);\n\n // Display newly updated name and email\n /* textView.setText(user.firnumber + \", \" + user.description);\n // clear edit text\n firnumber.setText(\"\");\n description.setText(\"\");*/\n\n toggleButton();\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n });\n }", "title": "" }, { "docid": "9b1f8444fe42b9a4f5631c2ae211c8d6", "score": "0.5077934", "text": "private void updateQuestsText() {\n\n findViewById(R.id.action_quests).setVisibility(View.GONE);\n\n// if(Config.HOSTING_ENABLED_TRUE.equals(team.buy.hostingEnabled())) {\n// findViewById(R.id.action_quests).setVisibility(View.VISIBLE);\n// }\n// else {\n// findViewById(R.id.action_quests).setVisibility(View.GONE);\n// }\n }", "title": "" }, { "docid": "0eee0ba7e558a2e5f030fafc54cc3a39", "score": "0.50772244", "text": "@RequiresApi(api = Build.VERSION_CODES.N)\n public void ReadBtn(View v) {\n\n if (uri == null) {\n txt.setText(\"OPEN TEXT FILE\");\n } else {\n InputStream is = null;\n try {\n\n // открываем поток для чтения\n is = getContentResolver().openInputStream(uri);\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n // List<String> readText = new ArrayList<>();\n\n String str = \"\";\n // читаем содержимое\n while ((str = br.readLine()) != null) {\n Log.d(LOG_TAG, str);\n // Toast.makeText(getBaseContext(), str,Toast.LENGTH_SHORT).show();\n //txt.setText(str);\n textRead = Arrays.asList(str.trim().split(\"\\\\s+\"));\n\n }\n\n //pobranie i przetwarzanie słowników w tablicy\n List<String> deutschVocabulary = Arrays.asList(LoadData(\"deutsch.txt\").trim().split(\"\\\\s+\"));\n List<String> englishVocabulary = Arrays.asList(LoadData(\"english.txt\").trim().split(\"\\\\s+\"));\n List<String> espanolVocabulary = Arrays.asList(LoadData(\"espanol.txt\").trim().split(\"\\\\s+\"));\n List<String> francaisVocabulary = Arrays.asList(LoadData(\"francais.txt\").trim().split(\"\\\\s+\"));\n List<String> italianoVocabulary = Arrays.asList(LoadData(\"italiano.txt\").trim().split(\"\\\\s+\"));\n List<String> danishVocabulary = Arrays.asList(LoadData(\"dansk.txt\").trim().split(\"\\\\s+\"));\n List<String> nederlandsVocabulary = Arrays.asList(LoadData(\"nederlands.txt\").trim().split(\"\\\\s+\"));\n List<String> norwegianVocabulary = Arrays.asList(LoadData(\"norsk.txt\").trim().split(\"\\\\s+\"));\n //liczba słów porywnywanych ze słówników\n int counterDeutsch = WordCounter(textRead, deutschVocabulary);\n int counterEnglish = WordCounter(textRead, englishVocabulary);\n int counterEspanol = WordCounter(textRead, espanolVocabulary);\n int counterFrancais = WordCounter(textRead, francaisVocabulary);\n int counterItaliano = WordCounter(textRead, italianoVocabulary);\n int counterDansk = WordCounter(textRead, danishVocabulary);\n int counterNederl = WordCounter(textRead, nederlandsVocabulary);\n int counterNorsk = WordCounter(textRead, norwegianVocabulary);\n\n counterLangsArray = new int[]{counterDeutsch, counterEnglish, counterEspanol, counterFrancais,\n counterItaliano, counterDansk, counterNederl, counterNorsk};\n langsArray = new String[]{\"GERMAN LANGUAGE\", \"ENGLISH LANGUAGE\", \"SPANISH LANGUAGE\", \"FRENCH LANGUAGE\",\n \"ITALIAN LANGUAGE\", \"DANISH LANGUAGE\", \"DUTCH LANGUAGE\", \"NORWEGIAN LANGUAGE\"};\n\n String strArray[] = new String[counterLangsArray.length];\n String lngArray[] = new String[langsArray.length];\n for (int i = 0; i < counterLangsArray.length; i++) {\n strArray[i] = String.valueOf(counterLangsArray[i]);\n lngArray[i] = String.valueOf(langsArray[i]);\n }\n\n int maxAt = 0;\n for (int i = 0; i < counterLangsArray.length; i++) {\n maxAt = counterLangsArray[i] > counterLangsArray[maxAt] ? i : maxAt;\n }\n txt.setText(langsArray[maxAt]);\n\n// float procent = ProcentFrequencyWord(counterDeutsch);\n// counter.setText(String.format(\"%.2f\", procent));\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "d05e12841ae3be8957cdfc60b7c7924c", "score": "0.5071644", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n\n if( loadSugestionAddressesAsync != null ){\n loadSugestionAddressesAsync.cancel(true);\n }\n loadSugestionAddressesAsync = new LoadSugestionAddressesAsync(newText,getApplicationContext());\n loadSugestionAddressesAsync.execute();\n return true;\n }", "title": "" }, { "docid": "bad8d7b968c30cdd4a83c97ccbecb30f", "score": "0.5063137", "text": "@Override\r\n\tpublic void editText(String content) \r\n\t{\r\n\t\tthis.content=content;\t\t\r\n\t}", "title": "" }, { "docid": "5cb16d8091384a8970d28288c0d2e9de", "score": "0.5060955", "text": "public void setTextFiledAction() {\n tf_fields[0].setOnKeyReleased((event) -> {\n try {\n //se llama la clase StudentFile y Student\n StudentFile sf = new StudentFile(\"./student.dat\");\n \n //se verifica el id ingresado en el campo\n Student student = sf.getStudent(tf_fields[0].getText());\n tf_fields[1].setText(student.getName() + \" \" + student.getLastName());\n \n //se habilitan los campos\n enableFields(false);\n \n }catch(IOException | ClassNotFoundException e){\n System.err.println(\"Error at OrderForm | Method: setTextFieldAction\");\n }catch(NullPointerException npe){ // <- si retorna null el estudiante no existe\n //se deshabilitan los campos\n enableFields(true);\n }\n });\n }", "title": "" }, { "docid": "846dc29511fe5d87d443f160c02e3c48", "score": "0.5054335", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tedit.putBoolean(getResources().getString(R.string.in_health_activity), true);\n\t\tedit.apply();\n\t\t\n\t\thandler.post(this);\n\t}", "title": "" }, { "docid": "bdb4a08bffeca26fc39111d8129424e5", "score": "0.50497276", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n final List<OrdenesUnion> ordenes = inventory.searchCustomerswithOrdersPendientes(newText);\n inventory.drop1();\n inventory.drop2();\n inventory.crear_tabla_2();\n inventory.create_actual_temporal_stock();\n customer = newText;\n\n for (OrdenesUnion orden : ordenes){\n inventory.insert_products(orden.getId());\n }\n adapter = new reportes_simulador.OrdenesUnionAdapter(ordenes, getApplicationContext());\n recyclerView.setAdapter(adapter);\n\n return false;\n }", "title": "" }, { "docid": "00cd66053537942c9ab5d25cb594ee55", "score": "0.5049181", "text": "@Keep\n public void setTextResource(final @StringRes int newTextRes) {\n setText(getContext().getString(newTextRes));\n }", "title": "" }, { "docid": "7652c6c83eff6b5b3a8fc545722ec096", "score": "0.50435656", "text": "public void populateIngredients(){\n // Create the IngredientsFragment and set the recipe and ingredients\n IngredientsFragment ingredientsFragment = new IngredientsFragment();\n ingredientsFragment.setRecipe(recipe);\n ingredientsFragment.setIngredients(recipe.ingredients);\n ingredientsFragment.setClickable(true);\n\n // Display the IngredientsFragment inside the container (dynamically)\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n\n // make changes\n ft.replace(R.id.flIngredients, ingredientsFragment);\n\n // commit the transaciton\n ft.commit();\n }", "title": "" }, { "docid": "ef6d4163a08e90c1dbdbcd10fe47b2b0", "score": "0.5041872", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_OK && requestCode == EDIT_TEXT_CODE) {\n // retieve the updated value\n String itemText = data.getStringExtra(KEY_ITEM_TEXT);\n // extact the position of the edited item from the key position\n int position = data.getExtras().getInt(KEY_ITEM_POSITION);\n // update the item at the right position\n items.set(position,itemText);\n //notify the adapter\n itemsAdapter.notifyItemChanged(position);\n //persist the item read write to\n saveItems();\n Toast.makeText(getApplicationContext(),\"updated the items\",Toast.LENGTH_SHORT).show();\n\n } else {\n Log.w(\"MainActivity\", \"Unknown cl to onActivityResult\");\n }\n\n\n }", "title": "" }, { "docid": "b005ab16ed1e6d72b3ae33feef91c9c5", "score": "0.5033897", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.nav_host_fragment);\n if (fragment == null)\n return false;\n AppsListFragment appsListFragment =\n (AppsListFragment) fragment.getChildFragmentManager().getPrimaryNavigationFragment();\n if (appsListFragment != null) {\n appsListFragment.SetFilter(newText);\n }\n\n return true;\n }", "title": "" }, { "docid": "0bba45212491102db44629040345bdf9", "score": "0.50338405", "text": "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(mboundView3);\n // localize variables for thread safety\n // vm != null\n boolean vmJavaLangObjectNull = false;\n // vm\n me.muhammadali.qpersonalaccounting.ui.cashentry.EditCashEntryViewModel vm = mVm;\n // vm.entry.getValue().title\n java.lang.String vmEntryTitle = null;\n // vm.entry.getValue()\n me.muhammadali.qpersonalaccounting.model.entity.CashEntry vmEntryGetValue = null;\n // vm.entry\n androidx.lifecycle.MutableLiveData<me.muhammadali.qpersonalaccounting.model.entity.CashEntry> vmEntry = null;\n // vm.entry.getValue() != null\n boolean vmEntryGetValueJavaLangObjectNull = false;\n // vm.entry != null\n boolean vmEntryJavaLangObjectNull = false;\n\n\n\n vmJavaLangObjectNull = (vm) != (null);\n if (vmJavaLangObjectNull) {\n\n\n vmEntry = vm.getEntry();\n\n vmEntryJavaLangObjectNull = (vmEntry) != (null);\n if (vmEntryJavaLangObjectNull) {\n\n\n vmEntryGetValue = vmEntry.getValue();\n\n vmEntryGetValueJavaLangObjectNull = (vmEntryGetValue) != (null);\n if (vmEntryGetValueJavaLangObjectNull) {\n\n\n\n\n vmEntryGetValue.setTitle(((java.lang.String) (callbackArg_0)));\n }\n }\n }\n }", "title": "" }, { "docid": "ba3b150cd9d8faf5338f571379aa1630", "score": "0.50296235", "text": "@Override\n public void applyQuantity(final String updatedPrice) {\n\n final CollectionReference collectionReference1 = firebaseFirestore.collection(\"MENUITEM\");\n collectionReference1.whereEqualTo(\"name\",exampleList.get(editWhichMenuItem).getText1())\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if(task.isSuccessful()){\n for(DocumentSnapshot documentSnapshot: task.getResult()){\n String docID = documentSnapshot.getId();\n collectionReference1.document(docID).update(\"price\",updatedPrice);\n\n View v = mRecyclerView.getChildAt(editWhichMenuItem);\n TextView t = v.findViewById(R.id.textView2);\n t.setText(\"Rs. \" + updatedPrice + \" (tap for details)\");\n }\n }\n }\n });\n }", "title": "" }, { "docid": "2c68f84bff416fcecdcf5d07998486b4", "score": "0.50282764", "text": "public boolean onQueryTextChange(String newText) {\n return mContentMainFragment.parseQuery(newText);\n }", "title": "" }, { "docid": "073219432cbe71d8328000a8bf5ccdea", "score": "0.5013198", "text": "private void saveText() {\n String saveText = editText.getText().toString();\n\n if (recoveryElements.size() == 5 && !saveText.equals(\"\")) {\n recoveryElements.remove(0);\n\n recoveryElements.add(saveText);\n return;\n }\n\n if (!saveText.equals(\"\")) {\n recoveryElements.add(saveText);\n }\n }", "title": "" }, { "docid": "28071628bbf77ffe66f03994e850a360", "score": "0.5012923", "text": "public void reload() {\t\t\t\n\t\t\t/** reload the text on the next call to update */\n\t\t\treload = true;\n\t\t}", "title": "" } ]
eea963498f2294e455f13e8b0d472e1f
Adds element into stack.
[ { "docid": "7926558a7b35151ec1b670b52a134a5b", "score": "0.76477623", "text": "public void push(T element) {\n this.container.add(element);\n }", "title": "" } ]
[ { "docid": "463b6085156eb944b34ef55e4309d037", "score": "0.84644884", "text": "@Override\n\tpublic void push(E element) {\n\t\tstack.add(element);\n\t\t\n\t}", "title": "" }, { "docid": "1b7b392ea5e0e9838c2674c0046fb3da", "score": "0.77921504", "text": "public void push(E element) {\r\n if (size() < capacity) //Make sure the stack is not full\r\n S[++top] = element;\r\n }", "title": "" }, { "docid": "fd41aaeebd5db3ac8c69c2011667354b", "score": "0.7785264", "text": "public void push(Object element) throws OverflowException;", "title": "" }, { "docid": "05d1e22f5f761736fc94ba9cce25cfeb", "score": "0.77477974", "text": "public void push(T element){\n\t\tarray.add(element);\n\t\ttop += 1;\t\t\n\t}", "title": "" }, { "docid": "31530f82c09e1dd8ce77cca23a025a0f", "score": "0.7722711", "text": "public T push(T element) {\n return headStack.push(element);\n }", "title": "" }, { "docid": "77e7433076ba014b311eac74de7c7893", "score": "0.7720121", "text": "public void push(E element);", "title": "" }, { "docid": "70f67301678bef495bd7884034f89d4b", "score": "0.7702408", "text": "public void push(int element) {\n stackTop = stackTop + 1;\n stack[stackTop] = element;\n }", "title": "" }, { "docid": "0b8f3bfdd2b6104e7245fa428fb0a597", "score": "0.76816475", "text": "public StackInterface<T> push (T element);", "title": "" }, { "docid": "21331457ec906aa21186d0e84db58171", "score": "0.7674287", "text": "@Override\n\tpublic void push(E element) {\n\t\tif (super.size() == this.data.length) { \n\t\t\tthrow new IllegalStateException(\"Stack is full!\");\n\t\t} else {\n\t\t\tthis.data[++this.top] = element;\n\t\t\tsuper.size++;\n\t\t}\n\t}", "title": "" }, { "docid": "3899d2456463949495d7db44ab4e1671", "score": "0.76681757", "text": "public boolean push(Object element)\n {\n //out of room...\n if (topOfStack >= theStack.length)\n {\n return false;\n }\n\n theStack[topOfStack] = element;\n topOfStack++;\n size++;\n return true;\n }", "title": "" }, { "docid": "5d6e2ac2396176c7e8bc8caedb465d91", "score": "0.75572693", "text": "void push(E element);", "title": "" }, { "docid": "819815d729642cbd63b63beff88b108a", "score": "0.7548652", "text": "void push() {\n stack.push(new ArrayList<Object>());\n }", "title": "" }, { "docid": "88b24c31a1da6f32d7c6ebf494dfdf76", "score": "0.7547177", "text": "public void push(Object element);", "title": "" }, { "docid": "ae107a0f6409ea56d78114e37698ead0", "score": "0.7495241", "text": "public void push(E element) {\n // New elements go at the front\n elements.addFirst(element);\n }", "title": "" }, { "docid": "c444b824a218d4eb547732253695c82e", "score": "0.7494347", "text": "public E push(E element) {\n\t\t\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException(\"Cannot add a null Element to the Stack.\"); \n\t\t\n\t\tNode<E> nodeToAdd = new Node<E>(element); \n\t\t\n\t\tif (++indexOfLast >= elements.length)\n\t\t\tdoubleArrayLength(); \n\t\t\n\t\telements[indexOfLast] = nodeToAdd; \n\t\t\n\t\treturn element; \n\t}", "title": "" }, { "docid": "618d14ab4293288935558fe838c52cbe", "score": "0.74855345", "text": "private void stackPush(String localName) {\n elementStack.add(localName);\n }", "title": "" }, { "docid": "2eb6a7b5300acdc034c18f5c042e948b", "score": "0.7459819", "text": "void push(Object element) throws StackOverflowException;", "title": "" }, { "docid": "07baeec89c1b459bacbda733565aa22d", "score": "0.74577945", "text": "public void push(int element) {\n stack1.push(element);\n }", "title": "" }, { "docid": "a6efe2a0d97ca36c1fdad8a1fd2a1e0f", "score": "0.74573326", "text": "public Stack<T> push(T element) {\r\n\t\tif (top == capacity - 1) {\r\n\t\t\textendArray();\r\n\t\t}\r\n\t\ttop++;\r\n\t\tarr[top] = element;\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "ac19f28e8ac1041202f6b4eac70ea3d8", "score": "0.74481076", "text": "public void push(E element) { list.addFirst(element); }", "title": "" }, { "docid": "3409d449c6fe5cf5ff26e21c07198588", "score": "0.73990804", "text": "@Override\n public void push(Object newElement) {\n if(isFull())\n try {\n throw new Exception(\"FullStackException\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n element[++top] = (T) newElement;\n }", "title": "" }, { "docid": "6040705293ff68fa67c923b725d51b4f", "score": "0.7380998", "text": "public void push(Object element) throws StackOverflowException {\n if (avaliableSpace.get() == 0) {\n throw new StackOverflowException();\n }\n else {\n set(element);\n currentSize++;\n avaliableSpace.set(avaliableSpace.get() - 1);\n }\n }", "title": "" }, { "docid": "3284dd7df94b55a2b74c1845384b22a3", "score": "0.73229355", "text": "public void push(S element){\n this.object = new Node();\n this.size += 1;\n this.modCount += 1;\n }", "title": "" }, { "docid": "5b3e17d69a4e3d8fb7b81b32c7e0de30", "score": "0.73051775", "text": "public void push(Object newItem) {\n\t\tif(isFull()) {\n\t\t\tSystem.out.println(\"stack is full\");\n\t\t\treturn;\n\t\t}\n\t\t// increase the top indicator index by 1\n\t\ttop = top +1; \n\t\t// add the element to the new place of the top.\n\t\tArrayStack[top] = newItem; \n\t}", "title": "" }, { "docid": "4d361f899e145556b1f8974bdb214907", "score": "0.7271907", "text": "public void push(Object item) {\n stack.push(item);\n }", "title": "" }, { "docid": "9d73a0c5653cc019692c9d668b1d1adc", "score": "0.72674644", "text": "public void push(int elt) {\n\t\tif (index != stack.length - 1) {\n\t\t\tindex++; // 1\n\t\t\tstack[index] = elt; // 2\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"Stack overflow\");\n\t\t}\n\t}", "title": "" }, { "docid": "d676c9e02cb24d4a3d4489270143a64c", "score": "0.72533745", "text": "public void push(E element) {\n addLast(element);\n }", "title": "" }, { "docid": "8e2ab4dd7b8ceb30d180049481724d73", "score": "0.72464067", "text": "private static boolean pushStack(String elementToAdd) throws StackOverflowException {\r\n\t\ttry {\r\n\t\t\treturn stack.push(elementToAdd);\r\n\t\t}\r\n\t\tcatch(StackOverflowException e) {\r\n\t\t\tthrow new StackOverflowException(\"StackOverflowException\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "840a82e76d3755abf09bc6be4ced9e9e", "score": "0.7226211", "text": "private static void pushElement() {\n System.out.println(\"Creating an element\\n\");\n Student student2 = new Student();\n setParameters(student2);\n System.out.println(\"Adding an element as the first element\\n\");\n stack.push(student2);\n stack.printAll();\n System.out.println();\n }", "title": "" }, { "docid": "befdfd1f819e71b5e2740dd3a19e30f0", "score": "0.7151319", "text": "protected void push(int el){\n\t\t\tif(isEmpty()){\n\t\t\t\tStack<Integer> curStack = new Stack<>();\n\t\t\t\tplates.add(curStack);\n\t\t\t}\n\t\t\tStack<Integer> curStack = plates.get(currentStack);\n\t\t\tif (curStack.size() == thr){\n\t\t\t\t//a new stack must be created\n\t\t\t\tStack<Integer> ns = new Stack<Integer>();\n\t\t\t\tns.push(el);\n\t\t\t\tplates.add(ns);\n\t\t\t\tcurrentStack++;\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurStack.push(el); \n\t\t}", "title": "" }, { "docid": "b9bc05585d711f1601e46dbf27ee6d2b", "score": "0.7147103", "text": "private void pushOrThrow(Object element) throws OverflowException {\n\t\tif(this.size() >= this.maxSize()) {\n\t\t\tthrow new OverflowException(\"This element would exceede the maximum size of the Stack\", element);\n\t\t}\n\t\tthis.list.addLast(element);\n\t}", "title": "" }, { "docid": "4b7577b25a7741db5eff0340373def2c", "score": "0.7139422", "text": "public void push(Object element) {\r\n assert(element != null);\r\n ensureCapacity(size() + 1);\r\n mHead = q(mHead - 1);\r\n mElements[mHead] = element;\r\n }", "title": "" }, { "docid": "077142b098eb4fe52d2b57de54431ef1", "score": "0.7139272", "text": "public void push(T value) {\n this.stack.add(value);\n }", "title": "" }, { "docid": "d098d4856170d2a143dd5e70469635ef", "score": "0.709723", "text": "public void push(int x) {\n stack.add(x); \n }", "title": "" }, { "docid": "9a0d1f2b0f1d8fbb9cda31fdbadf4aa4", "score": "0.7090758", "text": "public void push(E obj) {\r\n if (obj == null) {\r\n throw new IllegalArgumentException();\r\n } else {\r\n stack.addFirst(obj);\r\n }\r\n }", "title": "" }, { "docid": "03807be4055318707903e07cb03f1c9f", "score": "0.7064296", "text": "public void push(T newEntry){\n stack.add(newEntry);\n \n }", "title": "" }, { "docid": "85bef033a2fc96950687ac70e6015e6f", "score": "0.7061624", "text": "@Override\r\n\tpublic void push(final Object element) {\r\n\t\tPlate plateToAdd = new Plate();\r\n\t\tif (top == null) {\r\n\t\t\tplateToAdd.data = element;\r\n\t\t\ttop = plateToAdd;\r\n\t\t} else {\r\n\t\t\tplateToAdd.data = element;\r\n\t\t\tplateToAdd.prev = top;\r\n\t\t\ttop = plateToAdd;\r\n\t\t}\r\n\t\tsize++;\r\n\t}", "title": "" }, { "docid": "9d0aaf1e519654ca68add0a359899cd5", "score": "0.7052027", "text": "public void push(Object item) {\n pushStack.push(item);\n }", "title": "" }, { "docid": "25264a8a6a9be9ae18356ca8b6f86f77", "score": "0.70471317", "text": "@Override\n\tpublic void push(Object element) {\n\t\tif((element instanceof Integer))\n\t\t{\n\t\t\t\n\t\t\to[size] = element;\n\t\t\tsize++;\n\t\t//\ttop = (int) element;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3b364b60612163bd6646a2e0cd89f632", "score": "0.7035161", "text": "public void push (E x) {\n elems[depth++] = x;\r\n }", "title": "" }, { "docid": "1e5419a57fe16a99b3ba17f50fde409a", "score": "0.7025789", "text": "public void push (E element){\n Node<E> newElement = new Node<>(element);\n newElement.nextNode = this.firstNode;\n this.firstNode = newElement;\n this.count++;\n }", "title": "" }, { "docid": "dceec7a5a971805af69a175a93880a05", "score": "0.7014589", "text": "public boolean push ( int element ) {\n\n // Stack is full\n if ( this.top == max_elements_in_stack_array - 1 ) {\n\n System.out.println ( \"Stack Overflow.\" );\n return false;\n }\n\n this.array [ ++this.top ] = element;\n return true;\n }", "title": "" }, { "docid": "4512aeaf0a8d7cecc8ade6c6fd153bcd", "score": "0.6995658", "text": "@Override\n public void push(E e) {\n addFirst(e);\n }", "title": "" }, { "docid": "155399486e7d89205235ac16b510d836", "score": "0.6971188", "text": "public void push(Item item){\r\n if (stackPointer == stack.length) resize(2 * stack.length);\r\n stack[stackPointer++] = item;\r\n }", "title": "" }, { "docid": "74b796a5e222b65bd9ec56082df7c5a7", "score": "0.69283533", "text": "private static void addElement() {\n System.out.println(\"Creating an element\\n\");\n Student student2 = new Student();\n setParameters(student2);\n System.out.println(\"Adding an element as the first element\\n\");\n stack.add(student2);\n stack.printAll();\n System.out.println();\n }", "title": "" }, { "docid": "700998d8edcf0e46a3cc4ae227719bab", "score": "0.69235075", "text": "public void push(E item);", "title": "" }, { "docid": "247281ed0679556b51706b70271ea821", "score": "0.69038785", "text": "public void push(int item){\n ++stackTop;\n System.out.println(\"The top of the stack index is \" + stackTop);\n System.out.println(\"added \" + item + \" to the stack\");\n //increments the top of the stack and then stores the value\n stackArray[stackTop] = item;\n }", "title": "" }, { "docid": "4cb1ed7e1f89547b06a41de4e5b9cbc1", "score": "0.68916893", "text": "@Override\n public void push(E item) {\n Node<E> insertNode = new Node(item);\n\n if(top == null) { // When stack is first inserted\n top = insertNode;\n } else { // If an element already exist\n insertNode.setNext(top);\n top = insertNode;\n }\n \n // Increase stack size\n stackSize++; \n }", "title": "" }, { "docid": "93f61f196261e1d5a6e01c6eaa685887", "score": "0.68811804", "text": "private void pushElement (T aElement)\n \t{\n \t\titsPathToCurrentElement.push(aElement);\n \t\tIMouseAware theMouseAware = getMouseAware(aElement);\n \t\tif (theMouseAware != null) theMouseAware.mouseEntered();\n \t}", "title": "" }, { "docid": "0eee6ef07580d9429a06af70f5ec79db", "score": "0.6879444", "text": "public void push(T o) {\r\n \tif (stack.length == size)\r\n \t{\r\n \t\tObject[] placeholder = new Object[stack.length * 2];\r\n \t\tSystem.arraycopy(stack, 0, placeholder, 0, stack.length);\r\n \t}\r\n \tstack[size++] = o;\r\n }", "title": "" }, { "docid": "91c81665f6febb0156decfb5b5e22fc1", "score": "0.68777406", "text": "public void push(Object data)\n {\n stack.insertFirst(data);\n }", "title": "" }, { "docid": "1e46e9a50620559904a291bc15c8ae3f", "score": "0.6875406", "text": "public void push(int x) {\n firstStack.add(x);\n\n }", "title": "" }, { "docid": "b75755d28601e1c891912cb5d8dbfe2b", "score": "0.6857454", "text": "void push(E e);", "title": "" }, { "docid": "b75755d28601e1c891912cb5d8dbfe2b", "score": "0.6857454", "text": "void push(E e);", "title": "" }, { "docid": "dccc436439d317719a28a6ed4cbcd878", "score": "0.6853198", "text": "public void push(E e) {\n if(p == 0) { // base case, list is empty \n stacknode.setData(e); // first node contains pushed data \n p++; // increase size\n return; // otherwise..\n }// end if\n SNode<E> cursor = stacknode; // start cursor at first node \n SNode<E> newnode = new SNode(e, null); // create new node to add at the end of the stack\n while(cursor.getLink() != null) { cursor = cursor.getLink(); } // move cursor to end of stack\n cursor.setLink(newnode); // connect the end node to the new pushed node\n p++; // increase size\n }", "title": "" }, { "docid": "53326852625d218faaf09e5e5f1d509f", "score": "0.684556", "text": "public void push(String element, String type);", "title": "" }, { "docid": "6b88abaeb3d93e6878de9d7c11e8cba7", "score": "0.6834665", "text": "@Override\r\n\tpublic void push(T x) {\r\n\t\tensureCapacity();\r\n\t\tarrayPila[++topOfStack] = x;\t\t\t//meto un elemento\r\n\t\tlongitud++;\r\n\t}", "title": "" }, { "docid": "974b9c4f6b535eaf6609c12b214f14cc", "score": "0.6833285", "text": "void push(final E item);", "title": "" }, { "docid": "ae0699d82963471432c10626f06834c4", "score": "0.68272156", "text": "void push(int e) {\n\t\t\tif (top==stack.length) {\r\n\t\t\t\tmakeNewArray();\r\n\t\t\t}\r\n\t\t\tstack[top] = e;\r\n\t\t\ttop++;\r\n\t\t}", "title": "" }, { "docid": "134a8c3b5699ad98e431fcc6dd3dbff7", "score": "0.68060374", "text": "public void push(State j) //put item on top of stack\r\n\t\t{\r\n\t\tstackArray[++top] = j; // increment top, insert item\r\n\t\t}", "title": "" }, { "docid": "f3551a0b32f074275454b1ba5d664153", "score": "0.67818654", "text": "public boolean push(E e) {\n return add(e);\n }", "title": "" }, { "docid": "92b14590e3136c0da64276cd88b37301", "score": "0.67815053", "text": "@Override\r\n\t\tpublic E push(E obj) {\r\n\t\t\tif(topOfStack == theData.length -1) {\r\n\t\t\t\treallocate();\r\n\t\t\t}\r\n\t\t\ttopOfStack ++;\r\n\t\t\ttheData[topOfStack] = obj;\r\n\t\t\treturn obj;\r\n\t\t}", "title": "" }, { "docid": "be2a32d465316ffbccab16a607ac2bbe", "score": "0.6774685", "text": "public void push(T element){\n if (!isEmpty()){\n Node<T> newFirst = new Node<T>(element);\n newFirst.next = first;\n first = newFirst;\n }else first= new Node<T>(element);\n count++;\n }", "title": "" }, { "docid": "90cf48d4e7c6896abde2e050fbbeadff", "score": "0.67411417", "text": "void push (Number element);", "title": "" }, { "docid": "8e2a702ad443c61c105804fc92c0ba9f", "score": "0.673439", "text": "public void push ( Complex obj)\n {\n elements[top++] = obj;\n }", "title": "" }, { "docid": "a834baf59afbbc6cf7bbd91d631c75d3", "score": "0.6703957", "text": "@Override\r\n\tpublic void push(E element) throws ADTOverflowException {\r\n\t\r\n\t\t// tamanho inicial, tamanho atual, tamanho maximo\r\n\r\n\t\tif (!full()) {\r\n\t\t\tif (counter() == tamanhoAtual -1) {\r\n\t\t\t\taumentaTamanho();\r\n\t\t\t\t// insere o elemento na proxima posicao vazia\r\n\t\t\t\tarray[counter() + 1] = element;\r\n\t\t\t} else {\r\n\t\t\t\tarray[counter() + 1] = element;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new ADTOverflowException();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1b83943b6081c0857cdb5dd49c578c19", "score": "0.67020047", "text": "public void push(int x) {\n inStack.push(x);\n }", "title": "" }, { "docid": "3555a28d04fb6a57bd0ea1e58159bb36", "score": "0.6695489", "text": "public void push(T item) {\n\t\tif(top == MAX_SIZE) {\n\t\t\tthrow new EmptyStackException(\"The stack is full!\");\n\t\t}\n\t\tarray[top++] = item;\n\t}", "title": "" }, { "docid": "b174ad1e4fa62e4b9d5d8c916287057a", "score": "0.66849995", "text": "public void push(int x) {\r\n inStack.push(x);\r\n }", "title": "" }, { "docid": "5885492555b605128a6b60447c4a1f3a", "score": "0.6669965", "text": "public void push(int x)\n {\n assert !full(): \"tentativo push in uno stack pieno di elementi: \" + size;\n stack[size] = x; \n size++; \n }", "title": "" }, { "docid": "6899dc840876f05c1c276a06b8c69432", "score": "0.66597825", "text": "public void push(T t) {\n\t\tstackPrep.add(t);\n\t}", "title": "" }, { "docid": "39ff639acaad37dbc0bd7c6f58d30917", "score": "0.66424894", "text": "public void push(int x) {\n stack.push(x); \n }", "title": "" }, { "docid": "245f31e2d9d4c85de4cced517dcc4be5", "score": "0.6640897", "text": "public void push( T entry )\n {\n _vector.add( 0, entry );\n }", "title": "" }, { "docid": "3884ab556176ff607bef7c37715e35f3", "score": "0.66382223", "text": "public void push( Object item )\t{\t }", "title": "" }, { "docid": "c65c70d48591367534c21cf633813e7b", "score": "0.6633494", "text": "@Override\r\n\tpublic void push() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1330a22866b16f8ebee3a3b9fd31f6eb", "score": "0.662437", "text": "public void push(Object obj) throws StackOverflowException ;", "title": "" }, { "docid": "a643912512f8c383c1fe7c86ad191a7c", "score": "0.65970343", "text": "public void push(int x) {\n stack1.addLast(x);\n }", "title": "" }, { "docid": "9fa64176e954d20ab6097f9948a32653", "score": "0.6590767", "text": "public void push(T e);", "title": "" }, { "docid": "2d0bf1b54d637ffaa3f7d5f7fbb0745b", "score": "0.65625155", "text": "@Override\n public void push(T newElement) {\n\n Node<T> oldTop = nodeTop;\n nodeTop = new Node();\n nodeTop.entry = newElement;\n nodeTop.nextLink = oldTop;\n counter++; \n }", "title": "" }, { "docid": "66660ed00ff98f86d741143d64f65a95", "score": "0.6561876", "text": "void push(T item);", "title": "" }, { "docid": "a1f11582d095fb3de6e19d863e01c342", "score": "0.65420634", "text": "public void push(long i)\r\n {\r\n head = new StackElement(i, head);\r\n }", "title": "" }, { "docid": "ef05315a77389ecf223a9d2e643736ae", "score": "0.6533782", "text": "void push(Item item);", "title": "" }, { "docid": "dfb74e2adfec4cf2b2ca0e6e5f8fa21f", "score": "0.6526724", "text": "private void pushTag(String tag) {\n\t\t tagsStack.push(tag);\n\t }", "title": "" }, { "docid": "528adcd763582077a9284ed8955bd1ac", "score": "0.65234673", "text": "public boolean push(Character value) {\n if (!this.full() && value != null) {\n // Stack is not full and value to push is valid (not null) so\n // continue with \"push\".\n \n // As long as the stack is not full, itemsOnStack can be used\n // as the array position where the new value can be written:\n this.list[this.itemsOnStack] = value;\n \n // We just added one element to the stack so we need to \n // increment the item counter - itemsOnStack:\n this.itemsOnStack++;\n \n // Return true to indicate the operation was successful\n return true;\n } \n \n // If the stack is full or the value to push is invalid (is null),\n // return false:\n return false;\n }", "title": "" }, { "docid": "626eb8892bea5f68f87b4bc2db2d2755", "score": "0.6520902", "text": "public void push(Object value) {\n\t\tif(value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\telements.add(value);\n\t\t}\n\t}", "title": "" }, { "docid": "76f1e2a9b32ae28ce00fcdfb72d05a03", "score": "0.6519743", "text": "public void push(E item){\n size++;\n Node node = new Node();\n node.value = item;\n node.next = top;\n top = node;\n }", "title": "" }, { "docid": "41bdbf2d1cb98f27e81e25a369ae8afa", "score": "0.65108967", "text": "public void push(int item) {\r\n\t\tif (!isFull()) {\r\n\t\t\titems[first] = item;\r\n\t\t\tfirst++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Tried to insert into full stack.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8d704badc633f7af6b761ebf99859e8d", "score": "0.6507424", "text": "public void push(char c) {\r\n\t\telements[stackPointer] = c;\r\n\t\tstackPointer++;\r\n\t}", "title": "" }, { "docid": "c84a889fa5cc569c1f7db8e883562d8c", "score": "0.6505674", "text": "public void push(T val){\r\n\t\tthis.addToHead(val);\r\n\t}", "title": "" }, { "docid": "b488da31c9959eb967e28821b203123b", "score": "0.65011495", "text": "@Override\n\tpublic E enqueue(E element) {\n\t\tinputStack.push(element);\n\t\treturn inputStack.top();\n\t}", "title": "" }, { "docid": "f600e8874b174e7ccc3bc0bec471401f", "score": "0.65010875", "text": "void push(E op);", "title": "" }, { "docid": "949dedfaa642ebbbc9bfb1a0a0909ccb", "score": "0.64944893", "text": "public void push(GraphPair pair) {\n top++;\n stack[top] = pair;\n\n }", "title": "" }, { "docid": "55e92988ebe7f524b798057b86b68023", "score": "0.64843464", "text": "public void push(T c) {\n\t\tstackTop++;\n\t\tmyStack.add(c);\n\n\t}", "title": "" }, { "docid": "2cf683bdba6ec484f0aa20a69cbfff27", "score": "0.64803374", "text": "public void push(Object s)\n\t{\n\t\tstackTop = new ListNode(s, stackTop);\n\t}", "title": "" }, { "docid": "d26bb9d2657529ba4fcc02bcb66797a9", "score": "0.64779264", "text": "@Override\n\tpublic void push(AnyType x) {\n\t\tlist.insert(x);\n\t}", "title": "" }, { "docid": "1c8292a4279768a8c9fc08c2c57a206e", "score": "0.64740014", "text": "@Override\n\tpublic void push(T t) {\n\t\tinsert(0, t);\n\t}", "title": "" }, { "docid": "b88c139c966be159a7ac9dd8b83a0bbe", "score": "0.6466794", "text": "public void addElement(Object element);", "title": "" }, { "docid": "2630b2baec584fddc261a72e6da09676", "score": "0.6462692", "text": "public void push(Object declaration) {\n declarationStack.push(declaration);\n }", "title": "" }, { "docid": "0b832e580380a17838c5ca29ab3d4c03", "score": "0.64589596", "text": "boolean push(E e);", "title": "" }, { "docid": "5041c6ebac92f78989313c2db2b4127a", "score": "0.64465433", "text": "public void push(Nodo_m_ario element) {\n\t\t\tlist.push(element);\n\t\t}", "title": "" } ]
2ac81135402fff91251fb1fe0169504a
Method to set up the scaling factor based on the weights of the input graph
[ { "docid": "66a937991280987e6ec23db587efca88", "score": "0.82043064", "text": "public void setupScalingFactor() {\n\t\tint[] nodeCostArray = input.getNodeCosts();\n\t\tint ave = 0;\n\n\t\t// Finding average node weights for this graph\n\t\tfor (int i = 0; i < nodeCostArray.length; i++) {\n\t\t\tave += nodeCostArray[i];\n\t\t}\n\n\t\tave = ave / nodeCostArray.length;\n\n\t\t// Setting the scaling factor depending on the average\n\t\tif (ave <= 5) {\n\t\t\tscalingFactor = 15;\n\t\t} else if (ave <= 10) {\n\t\t\tscalingFactor = 10;\n\t\t} else if (ave <= 15) {\n\t\t\tscalingFactor = 5;\n\t\t} else if (ave <= 30) {\n\t\t\tscalingFactor = 3;\n\t\t} else {\n\t\t\tscalingFactor = 2;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "d9509b41be48f143afe4955d80498da3", "score": "0.6910945", "text": "protected void defineScalingCoeff() {\n SCALING_COEFF = 1;\n }", "title": "" }, { "docid": "54748aa651180b41d7bed3acd3ce1c82", "score": "0.6797952", "text": "private void updateScale() {\n\n float scaling = mScale * SCALE_FACTOR;\n setScale(scaling, scaling);\n\n }", "title": "" }, { "docid": "d11e7d581a20e407da8eb5421c20abb0", "score": "0.6587486", "text": "public void setScale(float scalar) {}", "title": "" }, { "docid": "386ccd53d6748d7930cda7e78c145bc2", "score": "0.6559344", "text": "@Override public void scaleTo(double s) { }", "title": "" }, { "docid": "386ccd53d6748d7930cda7e78c145bc2", "score": "0.6559344", "text": "@Override public void scaleTo(double s) { }", "title": "" }, { "docid": "6e4bc6bcdb3309dbb75a4b285fad67c2", "score": "0.65488887", "text": "@Override public void scaleBy(double s) { }", "title": "" }, { "docid": "6e4bc6bcdb3309dbb75a4b285fad67c2", "score": "0.65488887", "text": "@Override public void scaleBy(double s) { }", "title": "" }, { "docid": "495d01d0d34cbc45ec6d52cfc6fe8ef4", "score": "0.6539096", "text": "private void setScaleParameters() {\r\n\t\tmaxX = Double.MIN_VALUE;\r\n\t\tminX = Double.MAX_VALUE;\r\n\t\tmaxY = Double.MIN_VALUE;\r\n\t\tminY = Double.MAX_VALUE;\r\n\r\n\t\tfor (node_data node : game_graph.getV()) {\r\n\t\t\tmaxX = Math.max(maxX, node.getLocation().x());\r\n\t\t\tmaxY = Math.max(maxY, node.getLocation().y());\r\n\t\t\tminX = Math.min(minX, node.getLocation().x());\r\n\t\t\tminY = Math.min(minY, node.getLocation().y());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f8a98bb99eadd78e770c5cd362c17e5b", "score": "0.65205693", "text": "void scale(int multiplier);", "title": "" }, { "docid": "75c78ffea646df501f43d711b64f94de", "score": "0.64860076", "text": "public void setScalingAlgorithm (int scalingAlgorithm)\n{\n this.scalingAlgorithm = scalingAlgorithm;\n}", "title": "" }, { "docid": "085695bb8aed0bc1edc8956d22ad144d", "score": "0.6412165", "text": "abstract int scale();", "title": "" }, { "docid": "7bb0816ce0f5e7f4367ad9bd597d00c9", "score": "0.63290435", "text": "public static void setDefaultScalingAlgorithm (int scalingAlgorithm)\n{\n defaultScalingAlgorithm = scalingAlgorithm;\n}", "title": "" }, { "docid": "d6bcb28e4bc93fae02dd986f6303f7d1", "score": "0.6263672", "text": "@Override\n\tpublic void scaleWith(int scale) {\n\t\t\n\t}", "title": "" }, { "docid": "0cf9bcab9ddd3d4ce3a16404788a21e8", "score": "0.6253616", "text": "ScaleSettings scaleSettings();", "title": "" }, { "docid": "52d6d06ea8a51e531b5931b1152b6709", "score": "0.62498605", "text": "void setScale(float s) {\n scale = s;\n }", "title": "" }, { "docid": "387fbb5afe31da978faefad6224516a1", "score": "0.6248381", "text": "public ScaleFactor(){\r\n try {\r\n updateScaleFactorFromDatabase();\r\n }catch (SQLException | SFException e){\r\n SCALE_FACTOR = -1;\r\n }\r\n }", "title": "" }, { "docid": "8fafb4785d1ac4b6e45f8f642faa7440", "score": "0.6242474", "text": "float getScaleFactor();", "title": "" }, { "docid": "9170ec322ef77bd40bc3f85947b7b1cd", "score": "0.6242005", "text": "void changeScale(float delta);", "title": "" }, { "docid": "ff941c14df5a867ee47f82afadf70488", "score": "0.62416846", "text": "public void increaseScale() {\n\n if (mScale < MAX_SCALE) {\n\n ++mScale;\n updateScale();\n\n }\n\n }", "title": "" }, { "docid": "95eba5a6b0d34870d7cf425f185d486b", "score": "0.61583525", "text": "void setScale(int newScale) {\n\tgx1 = gx0 + (MIN_WIDTH << newScale);\n\tscale = newScale;\n\trecenter(parent.parent.data.maxX());\n\trepaint();\n }", "title": "" }, { "docid": "394bf09570b0f7dc881ba3f1e99b9c63", "score": "0.61338764", "text": "public void scaleTo(double s) {\n scaleWith1AsOriginal = s;\n }", "title": "" }, { "docid": "1b0324d1bd4776c1d33e449969989585", "score": "0.61185557", "text": "public double getScale();", "title": "" }, { "docid": "f938e5f0bccab34af9e54238c8f523b2", "score": "0.6110118", "text": "public double getScaling() {\n\t\treturn scaling;\n\t}", "title": "" }, { "docid": "57091bcc3021d14a18501c7af719004b", "score": "0.60900635", "text": "int getScale();", "title": "" }, { "docid": "81aeb6a61c196dfbe21647bb8375a7b8", "score": "0.60887617", "text": "public void scaleBy(double s) {\n scaleWith1AsOriginal *= s;\n }", "title": "" }, { "docid": "c5e7fca11b5bb64b4c61ca253350f7df", "score": "0.6082017", "text": "public void setScale(double value) {\n this.scale_ = value;\n }", "title": "" }, { "docid": "23fe910e168530854f50abefd5bb96f5", "score": "0.6060588", "text": "public void setScaling(double x, double y) {\n scaleTransition.setByY(y); \n scaleTransition.setByX(x); \n }", "title": "" }, { "docid": "1458ad3270576c78e957e1de2785daae", "score": "0.6052012", "text": "public void setScale(double x, double y);", "title": "" }, { "docid": "63b39002050190251396691541002c5d", "score": "0.60365117", "text": "public void setScale(float s) {\n this.scale = s;\n }", "title": "" }, { "docid": "d10969c5a6b5bff71ffc5bedbc079620", "score": "0.6025144", "text": "public void scale(int lambda) {\n this.x=lambda*x;\r\n this.y=lambda*y;\r\n }", "title": "" }, { "docid": "3db76f2021e646b27c541422f98b260e", "score": "0.60217845", "text": "public void setScale(int scale){\n this.scale = scale;\n }", "title": "" }, { "docid": "b0fd0ec6d10f8dd36cc23d23c0b6991a", "score": "0.6018637", "text": "public abstract void setWeight(double weight);", "title": "" }, { "docid": "8138b6211239da62d8e38197412665bd", "score": "0.5985495", "text": "public void setScale(float s) {\r\n prefs.putFloat(scalePrefsKey(), (float) Math.round(s)); // if we don't round, window gets smaller each time we open a new one...\r\n this.j2dScale = s;\r\n }", "title": "" }, { "docid": "f1b184013e10d07a7f470f140b1e6146", "score": "0.59793013", "text": "public void setInferredScale(int inferredScale)\n {\n this.inferredScale = inferredScale;\n }", "title": "" }, { "docid": "325b513bcdc225cdc2f63eb00d42c705", "score": "0.5964334", "text": "public void setScaling(double scaling) {\n\t\tthis.scaling = scaling;\n\t}", "title": "" }, { "docid": "85abc8a1234d4d5d3d9160f1e8cc6f32", "score": "0.5952132", "text": "protected void setDifficultyScaling(long timeSinceStart) {\n\t\tmaxSpeed *= 1 + Math.log(1.0 + timeSinceStart / 120000.0);\n\t\thealth *= 1 + Math.log(1.0 + timeSinceStart / 80000.0);\n\t\tdamage *= 1 + Math.log(1.0 + timeSinceStart / 160000.0);\n\t}", "title": "" }, { "docid": "e38b1f621811b179a1f280aa8fd756df", "score": "0.5950289", "text": "void scaleFitness(long minFitness, long maxFitness);", "title": "" }, { "docid": "8135319c76c5dd33a696e484a1a12139", "score": "0.59459364", "text": "public void setScale(float scale)\n {\n scale_ = scale;\n }", "title": "" }, { "docid": "6fbfc78504cc83f4006ad4593d89ff7d", "score": "0.5936465", "text": "protected abstract void setWeight(int v, double w);", "title": "" }, { "docid": "071aa405b50c4c303dd6df9f2dc6aa77", "score": "0.5930956", "text": "public void setScale(float scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "f4f44e4fc46fa5ff316972e040738182", "score": "0.59115213", "text": "Update withMetricBasedScale(int minimumInstanceCount, int maximumInstanceCount, int defaultInstanceCount);", "title": "" }, { "docid": "3450a01bf8c394e60637fbba29741e1f", "score": "0.5904027", "text": "public void resetScale() {\n\r\n }", "title": "" }, { "docid": "99c286cf1c9b3782e7577e697b7d31f1", "score": "0.587111", "text": "public float getScale()\n {\n return _scale;\n }", "title": "" }, { "docid": "8cadf9fa98a6b781b664606e5d092069", "score": "0.5857604", "text": "public void normalizeWeights() {\r\n\t\tfloat sum = 0;\r\n\t\tfor(float weight : weights){\r\n\t\t\tsum+=weight;\r\n\t\t}\r\n\t\r\n\t\tfor (int i = 0; i < this.weights.size(); i++) {\r\n\t\t\tfloat val = this.weights.get(i).floatValue();\r\n\t\t\tthis.weights.set(i, new Float(val / sum));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e42022418cff6a89a6ba66f52dd4fdc8", "score": "0.5855837", "text": "private void setupScaling()\r\n {\r\n // The screen resolutions\r\n float targetScreenWidth = (context.getResources().getDisplayMetrics().widthPixels);\r\n float targetScreenHeight = (context.getResources().getDisplayMetrics().heightPixels);\r\n\r\n // Orientation is assumed portrait\r\n float ssx = targetScreenWidth / controlTexture.getTargetWidth();\r\n float ssy = targetScreenHeight / controlTexture.getTargetHeight();\r\n\r\n // Get our uniform scaler\r\n if(ssx > ssy)\r\n scale = ssy;\r\n else\r\n scale = ssx;\r\n\r\n for (IControl control: controls)\r\n control.setScale(scale);\r\n }", "title": "" }, { "docid": "f1bedb18b3cae79cf12fe7fc602cffc2", "score": "0.5854374", "text": "public double getScale()\r\n\t{\treturn Scale;\t}", "title": "" }, { "docid": "1d3d898569e38233ba9d0ec263ff8a69", "score": "0.58498603", "text": "public void setWeight(double value) {\n this.weight = value;\n }", "title": "" }, { "docid": "a1f695370ecd749db4a4dde81af9c882", "score": "0.584887", "text": "public void scale(double factor) {\n assert(factor >= 0.1);\n assert(factor <= 10.0);\n\n this.scale = factor;\n }", "title": "" }, { "docid": "de8634213209fe3ab7f0be3d6d7630c5", "score": "0.5846265", "text": "public void setScale( float scale )\n {\n _scale = scale;\n }", "title": "" }, { "docid": "840e5b11bc1b0285a8a2a716b1943007", "score": "0.5843196", "text": "private void setScalefactor() {\n if (((mapXmax - mapXmin) / (mapYmax - mapYmin)) <= ((double)(this.getWidth() - 2 * border) / (double)(this.getHeight() - 2 * border))) { //fit the map to the panel height (leave a border)\n scale = (this.getHeight() - 2 * border) / (mapYmax - mapYmin);\n cx = (int)(this.getWidth() - ((mapXmax - mapXmin) * scale)) / 2;\n cy = 0;\n }\n else { //fit the map to the panel width (leave a border)\n scale = (this.getWidth() - 2 * border) / (mapXmax - mapXmin);\n cx = 0;\n cy = (int)(this.getHeight() - ((mapYmax - mapYmin) * scale)) / 2;\n }\n }", "title": "" }, { "docid": "2dc0b5d185d8a54036c61f5c1b6518c3", "score": "0.5840709", "text": "public double getScale() {\n return this.scale;\n }", "title": "" }, { "docid": "fa4e2d3253a09b98429ac568a5ad5c49", "score": "0.5834371", "text": "public int getInferredScale()\n {\n return inferredScale;\n }", "title": "" }, { "docid": "cea6fb3c44f1cf4a8ead269acf30db0e", "score": "0.58290446", "text": "protected abstract int _getMaxScale();", "title": "" }, { "docid": "5f34a67bf7cd03cb641f7820076438e6", "score": "0.582553", "text": "public void setScaling(int x, int y) {\n scaleTransition.setByY(y); \n scaleTransition.setByX(x); \n }", "title": "" }, { "docid": "50388db59ae6968c8e25d74dafe68813", "score": "0.5817892", "text": "public float getScale()\n {\n return scale;\n }", "title": "" }, { "docid": "94fa36afc33912f6d9e494f893845f7e", "score": "0.5814734", "text": "public double getScale() {\n return scaleWith1AsOriginal;\n }", "title": "" }, { "docid": "6790201d27df3864f91082a9c666dd81", "score": "0.5814502", "text": "public void setWeight(double value) {\n this.weight = value;\n }", "title": "" }, { "docid": "6790201d27df3864f91082a9c666dd81", "score": "0.5814502", "text": "public void setWeight(double value) {\n this.weight = value;\n }", "title": "" }, { "docid": "a43c24e192d32bd5b9ae5af6e6d63347", "score": "0.5808181", "text": "public void setPixelScaleFactor(float scale);", "title": "" }, { "docid": "57c74e7fbb5d982ab145ccb2587169ac", "score": "0.58013135", "text": "public void setWeight(int w)\r\n {\r\n weight = w;\r\n }", "title": "" }, { "docid": "8e10776e55bd1c412dc7b6af3b4abaef", "score": "0.58002144", "text": "Update withScaleSettings(ScaleSettings scaleSettings);", "title": "" }, { "docid": "913979eb97c24083e298ee4b5d69c519", "score": "0.5799472", "text": "public float getScale() {\n return _scale;\n }", "title": "" }, { "docid": "f4cb9b78085509f06acf41dde34e2310", "score": "0.5797966", "text": "public synchronized int getScaleFactor() {\n \t\treturn scaleFactor;\n \t}", "title": "" }, { "docid": "d107ffa0976f3cc65eebb543b6e7dd2f", "score": "0.5792489", "text": "public void setScale(float scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "511ccf484b3b4de21a4d4b63031461a8", "score": "0.57913685", "text": "public double[] getScaling();", "title": "" }, { "docid": "5e5e944ba726b068ae711e42fe09a1bd", "score": "0.57876927", "text": "public abstract void scaleEqual(double v);", "title": "" }, { "docid": "c708e32376ede349b9e2cdafa4336164", "score": "0.578745", "text": "public void scale(float val) {\n x *= val;\n y *= val;\n }", "title": "" }, { "docid": "630fb9f102c532c3a4c28a627d27f6c2", "score": "0.5783494", "text": "public float getScale() {\n return scale;\n }", "title": "" }, { "docid": "871b6d8aadb138017e7c9843ab5de5ab", "score": "0.57771367", "text": "public void rescaleConfidence(double weight)\n\t{\n\t\tTruthValue tv = this.getTruthValue();\n\t\tSimpleTruthValue stv = (SimpleTruthValue) tv;\n\t\tdouble confidence = stv.getConfidence();\n\t\tconfidence *= weight;\n\t\tstv.setConfidence(confidence);\n\t}", "title": "" }, { "docid": "cb79d945ec6bd062a29200f0a6382072", "score": "0.57764995", "text": "public void setScale(int scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "a68dafb49dc5333b2702c376a53d4591", "score": "0.5768155", "text": "void setBitmapScaleMatrix(Matrix bitmapScaleMatrix, float scaleFactor);", "title": "" }, { "docid": "45df7246579d65b402dcab06280aaee8", "score": "0.5765517", "text": "public static void setResizeWeight(JSplitPane sp, double weight) {\n try {\n Class[] args = new Class[1];\n args[0] = Double.TYPE;\n\n Method meth = (sp.getClass().getMethod(\"setResizeWeight\",args));\n // System.out.println(\"Setting resize weight\");\n Object[] objs = new Object[1];\n objs[0] = new Double(weight);\n meth.invoke(sp,objs);\n\n } catch (NoSuchMethodException e) {\n System.out.println(\"No setResizeWeight\");\n }\n catch (IllegalAccessException e) {\n System.out.println(\"No access\");\n }\n catch (InvocationTargetException e) {\n System.out.println(\"No invoke\");\n }\n }", "title": "" }, { "docid": "d88ca1dfc3a9163944e1d0c3876107be", "score": "0.576529", "text": "boolean useScaling();", "title": "" }, { "docid": "0c85ab4f52cdde9910e02586e59a6137", "score": "0.5751758", "text": "void setWeight(BigDecimal weight);", "title": "" }, { "docid": "e160f0e61a46de8ba1a0ba90a14ec511", "score": "0.5741679", "text": "@Override\n\tpublic void setScale(Double scale) {\n\t\t\n\t}", "title": "" }, { "docid": "05fb6ce72b8c75fbc5440f9d7be9e5e9", "score": "0.5737004", "text": "public float getScale()\n {\n return scale_;\n }", "title": "" }, { "docid": "a81d086b88cf5fcdaa28a2d109509667", "score": "0.572844", "text": "@Override\n\tpublic void scaleEmissionMatrix() {\n\t\tsuper.emissionScaleFactor = new double[stateLength];\n\t\tfor (int i = 0; i < stateLength; i++) {\n\t\t\tfor (int j = 0; j < deltaLength; j++) {\n\t\t\t\temissionScaleFactor[i] += newEmissionMatrix[i][j];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < stateLength; i++) {\n\t\t\tif(emissionScaleFactor[i] <= 0.0)\n\t\t\t\tthrow new RuntimeException(\"emissionScaleFactor[\"+i+\"] <= 0.0\");\n\t\t\temissionScaleFactor[i] = 1 / emissionScaleFactor[i];\n\t\t}\n\n\t\tfor (int i = 0; i < stateLength; i++) {\n\t\t\tfor (int j = 0; j < deltaLength; j++) {\n\t\t\t\tnewEmissionMatrix[i][j] = newEmissionMatrix[i][j]\n\t\t\t\t\t\t* emissionScaleFactor[i];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "53662634393cc3d4c181cda19d5c3340", "score": "0.5727001", "text": "public void setWeight(int value) {\n this.weight = value;\n }", "title": "" }, { "docid": "76c83fd6d79d53fbb0ccee123f5e84d9", "score": "0.5719863", "text": "public int getScale() {\n return this.scale;\n }", "title": "" }, { "docid": "a9b186507820d386bb9702cf13639734", "score": "0.5717817", "text": "private double getScaleFactor( Image source) {\n double horizScale, vertScale; \n \n origWidth = source.getWidth(null);\n origHeight = source.getHeight(null);\n \n if ( origWidth < (canvas.getWidth()-SPACER)/2 ){\n horizScale = 1;\n } else {\n horizScale = (canvas.getWidth()-SPACER)/2/origWidth;\n }\n if ( origHeight < canvas.getHeight() ){\n vertScale = 1;\n } else {\n vertScale = canvas.getHeight()/origHeight;\n }\n return Math.min(horizScale,vertScale);\n }", "title": "" }, { "docid": "6083efabcefb7cf980ce866bc43b2129", "score": "0.56957465", "text": "ScaleRule.Update updateScaleRule(int ruleIndex);", "title": "" }, { "docid": "2f93abb04d59564ff20ea41f0621a4a4", "score": "0.5690017", "text": "public void setMaxWeight(double value) {\n this.maxWeight = value;\n }", "title": "" }, { "docid": "e562554282a040c90d446f775f2f10ed", "score": "0.568186", "text": "private static double calculateScalingFactor(double[] ary) {\n double max = 0.0;\n for (double val : ary)\n max = Math.max(max, Math.abs(val));\n return 1.0 / Math.max(1.0, max);\n }", "title": "" }, { "docid": "120db6783b4b3704e747c46010570fec", "score": "0.56808835", "text": "public void setWeight(int w){\n \tweight = w;\n }", "title": "" }, { "docid": "0b0b7af802753f12bbf848569357151d", "score": "0.5679968", "text": "public float getMinScaleFactor();", "title": "" }, { "docid": "4f015eee48907f13a79752f1a3c5b61d", "score": "0.5672825", "text": "public void setWeight(double value) {\n this.weight = value;\n }", "title": "" }, { "docid": "770228cdc8d91b52c647271c8aeedfaf", "score": "0.5672336", "text": "public abstract Vector scale(double v);", "title": "" }, { "docid": "c57bb69f2b0a13f4456f8f7764207cf7", "score": "0.5668087", "text": "public abstract void setWeight(int weight);", "title": "" }, { "docid": "c69e422d1e1c8b6ff8beb507c47355d9", "score": "0.5662514", "text": "public void setCostWeight(double value) {\n this.costWeight = value;\n }", "title": "" }, { "docid": "d7bb9cd312f2ee0b2cd835811157716a", "score": "0.5661104", "text": "public void increaseScale(float scale) {\r\n\t\tthis.scale += scale * 0.01f;\r\n\t}", "title": "" }, { "docid": "5a58050a015be2bf7566bfa6decd2b6f", "score": "0.56575507", "text": "public void scale(double amt) {\r\n\t\tx *= amt;\r\n\t\ty *= amt;\r\n\t}", "title": "" }, { "docid": "a670ce1f9dd23f67295acb45c4a47aea", "score": "0.5625188", "text": "public void setMaxWeight(double value) {\n this.maxWeight = value;\n }", "title": "" }, { "docid": "66070446686fad33d934e3f863c377d2", "score": "0.56163186", "text": "public void setWeight(double wt) {\r\n this.weight = wt;\r\n }", "title": "" }, { "docid": "83256c1c55874e5b58fac89b922c79f8", "score": "0.56154376", "text": "public void setWeight(double value) {\n this.weight = value;\n }", "title": "" }, { "docid": "83256c1c55874e5b58fac89b922c79f8", "score": "0.56154376", "text": "public void setWeight(double value) {\n this.weight = value;\n }", "title": "" }, { "docid": "cc07f1ea4e859f197baa6b9a65519601", "score": "0.5610968", "text": "public void decreaseScale() {\n\n if (mScale > MIN_SCALE) {\n\n --mScale;\n updateScale();\n\n }\n\n }", "title": "" }, { "docid": "0a99784fff194b58516b00fbadcfb654", "score": "0.5601575", "text": "public void setCostWeight(double value) {\n this.costWeight = value;\n }", "title": "" }, { "docid": "d45629b186b7e6b0fb6100c20e3d035c", "score": "0.55999005", "text": "@Test\n public void changeScaleFactor() {\n System.out.println(\"Running test changeScaleFactor.\");\n circle1.scale(0.2);\n Assert.assertTrue(circle1.radius == 3.6);\n }", "title": "" }, { "docid": "e979b5771b0348352a41d3a2cf9448af", "score": "0.55987746", "text": "OptionalInt scale();", "title": "" }, { "docid": "714a88b4ba149892a8d45b4dec749506", "score": "0.5589027", "text": "public void setScalerPoint(double zoomFactor) {\n\t\tint percentage = (int) (zoomFactor * 100);\n\t\tint maxPercentage = MindMapGraphView.getMaxZoomPercentage();\n\t\tint minPercentage = MindMapGraphView.getMinZoomPercentage();\n\t\t\n\t\tif(percentage < minPercentage) \n\t\t\tpercentage = minPercentage;\n\t\telse if(percentage > maxPercentage)\n\t\t\tpercentage = maxPercentage;\n\t\t\n\t\tscaler.setValue(percentage);\n\t\tchangePercentageLabelTextTo(percentage);\n\t}", "title": "" } ]
49f7ff62de1489b2f8c973bcc9d07a6a
Creates a new instance.
[ { "docid": "3261b7ffbe0319217c5a815e3a839e03", "score": "0.0", "text": "public WalletPane() throws NullPointerException {\n super();\n setId(\"walletPane\"); // NOI18N.\n // An issue here is that we do not dispose of the controller.\n controller = SABFXMLUtils.INSTANCE.loadAndInject(\"fxml/scene/account/wallet/WalletPane.fxml\", this); // NOI18N.\n }", "title": "" } ]
[ { "docid": "829a0810912ef7e250d239c93d5b64a8", "score": "0.74623096", "text": "Object createInstance() throws Exception;", "title": "" }, { "docid": "01a8f88654736aa15dd9601b9f88aa7d", "score": "0.69988173", "text": "public void create();", "title": "" }, { "docid": "01a8f88654736aa15dd9601b9f88aa7d", "score": "0.69988173", "text": "public void create();", "title": "" }, { "docid": "fe6d5809cdc84db68ef4ef2f14ee0521", "score": "0.69753087", "text": "abstract protected T createInstance();", "title": "" }, { "docid": "56ea923536a3829789101f5494400d49", "score": "0.69115263", "text": "public void create() {\n }", "title": "" }, { "docid": "58fb80f9d5b2e6a8dc9891a6fe2018b2", "score": "0.6896656", "text": "public T newInstance() {\n return factory.newInstance();\n }", "title": "" }, { "docid": "9a8ec520830f05ff9dcb3c175f9bd4f9", "score": "0.68588734", "text": "public void create() {\n\t}", "title": "" }, { "docid": "608493e6bac842bb052c3ea8c1561237", "score": "0.68238866", "text": "public Result create() throws FactoryInstantiationException;", "title": "" }, { "docid": "fc16ff7fc474408bac0b6ac07877fdc3", "score": "0.67771524", "text": "public void create() {\n new Create(); \n }", "title": "" }, { "docid": "173ec1e8e069c85a5288e2e031f904a2", "score": "0.6745574", "text": "public Object create();", "title": "" }, { "docid": "65d10e237e9fe94bd1480ce3e942c361", "score": "0.66721976", "text": "public ObjectInstance() {\n\n\t}", "title": "" }, { "docid": "b587a98bb84357bfb3a4687dd3251728", "score": "0.66644126", "text": "public InstanceBuilder() {\n }", "title": "" }, { "docid": "517ddf33d5f78654a6aa43b4ec5a85bc", "score": "0.6607478", "text": "T create();", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.65668267", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.65668267", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "5f5665e2b3d21730eaada0b5acd0cc21", "score": "0.65524334", "text": "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfor(String s:cateName){\n\t\t\tfvNominalVal.addElement(s);\n\t\t}\n\t\t\n\t\t//System.out.print(fvNominalVal);\n\t\tAttribute attribute1 = new Attribute(\"text\", (FastVector) null);\n\t\tAttribute attribute2 = new Attribute(\"class\", fvNominalVal);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1);\n\t\t// Set class index\n\t\tinstances.setClassIndex(1);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute1, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n\t\t//System.out\n\t\t\t\t//.println(\"===== Instance created with reference dataset =====\");\n\t\t//System.out.println(instances);\n\t}", "title": "" }, { "docid": "dec864673ed17ab22312d013d6831665", "score": "0.65189487", "text": "@Override\n\tpublic void create()\n\t{\n\t}", "title": "" }, { "docid": "689dbb8d0024ee85165bfb8475324d70", "score": "0.64043385", "text": "@Override\n @SuppressWarnings(\"unchecked\")\n public T newInstance() {\n try {\n return (T)objectClass.newInstance();\n } catch (IllegalAccessException | InstantiationException ex) {\n throw new GPUdbRuntimeException(\"Could not create \" + objectClass.getName() + \" instance.\", ex);\n }\n }", "title": "" }, { "docid": "73007474a7f29bd3336c3d2eed11fe05", "score": "0.6380397", "text": "protected T create(String... args) throws Exception {\n return create(Arrays.asList(args));\n }", "title": "" }, { "docid": "c44234c40ba38bc6decc40aa9e632860", "score": "0.6373845", "text": "public static GenericObject createInstance(){\n\t\tGenericObject go = new GenericObject();\n\t\tgo.isValid = false;\n\t\treturn go;\n\t}", "title": "" }, { "docid": "884ee612c5ff47e1a3ffc7d48f0b39bd", "score": "0.6362944", "text": "static IMP_1 createInstance(){\n\t\tif (instance == null) {\n\t\t\tinstance = new IMP_1();\n\t\t\treturn instance;\n\t\t}else{\n\t\t\treturn instance;\n\t\t}\n\t}", "title": "" }, { "docid": "ffa76a0271d876e20bbf209e2dac2c3a", "score": "0.6342879", "text": "SapDatabaseInstance create();", "title": "" }, { "docid": "76feadb60e80af40c36be4021e19f515", "score": "0.63097185", "text": "public Object create() throws InitException {\n \treturn create(getDefault());\n }", "title": "" }, { "docid": "42620fd2d4fc8367b441dce0e0ad91ee", "score": "0.6285532", "text": "public Factory() {\n }", "title": "" }, { "docid": "29edbbcdaaaa1883c6f034540330fda2", "score": "0.6284338", "text": "public abstract FactoryObject create();", "title": "" }, { "docid": "8b083ab0ba3da3e02522f21f22e4fa40", "score": "0.62506574", "text": "public InstanceFactoryImpl() {\r\n super();\r\n }", "title": "" }, { "docid": "2e7f70cf564f8a6053bed0fd505463a8", "score": "0.6226149", "text": "@Test\n public void testNewInstance() {\n System.out.println(\"newInstance\");\n DistributionEnvelope result = DistributionEnvelope.newInstance();\n assertNotNull(result);\n }", "title": "" }, { "docid": "37f12f730dfce8269a27a4efc7889786", "score": "0.620896", "text": "public OFMessage newInstance() {\n return instantiable.instantiate();\n }", "title": "" }, { "docid": "13201bf2fe16163bc01dc18dd3a10325", "score": "0.6202404", "text": "T newInstance();", "title": "" }, { "docid": "55634a84e2eb6cfeed0cc1006d072df9", "score": "0.6180894", "text": "public Example() {}", "title": "" }, { "docid": "9d09b2999c3561beab899bde5b3b22ce", "score": "0.6175619", "text": "@Override\n\tpublic void Create() {\n\n\t}", "title": "" }, { "docid": "e3fa980b53c5ddbf6f448725041a3e60", "score": "0.617273", "text": "public abstract Object construct();", "title": "" }, { "docid": "c1cb9a0f5767af19d540ffc909ed5ed1", "score": "0.61539346", "text": "public CreateDBInstanceModel() {\n\t}", "title": "" }, { "docid": "2a5bf507e5d6e8833d5cf15d7b5a4b06", "score": "0.6151346", "text": "public Asset createInstance() {\n return new Entity(this);\n }", "title": "" }, { "docid": "9a521220b04d0e36296dd0eb17856464", "score": "0.61499035", "text": "public static void createInstance(Model model,\n\t org.ontoware.rdf2go.model.node.Resource instanceResource) {\n\tBase.createInstance(model, RDFS_CLASS, instanceResource);\n }", "title": "" }, { "docid": "70893c325d0b5643888876a8dacbb4d2", "score": "0.61381596", "text": "public CreateFactory()\n\t{\n\t}", "title": "" }, { "docid": "e453a1ad8050f1bc1f33eb5425901bab", "score": "0.6137395", "text": "public void construct();", "title": "" }, { "docid": "74efaed19c30cb4266eec95ee1276f31", "score": "0.61143833", "text": "public T instantiate() {\n return objenesis.newInstance(type);\n }", "title": "" }, { "docid": "cae2241e393bf5fefb660122e9126b6c", "score": "0.61140877", "text": "private void createPasitheaInstance(){\n mPasithea = new PasitheaBuilder().setValues(getApplication()).\n setInitListener(new onInitListener() {\n @Override\n public void InitDone() {\n startAnswer(); // start the Question/Answer function\n }\n }).build();\n }", "title": "" }, { "docid": "e913328e67d8f50099e175eef03e6fd8", "score": "0.6112254", "text": "public Iconkit createInstance() throws Exception {\r\n\t\t// JUnitDoclet begin method testcase.createInstance\r\n\t\treturn new Iconkit(getDrawingEditor());\r\n\t\t// JUnitDoclet end method testcase.createInstance\r\n\t}", "title": "" }, { "docid": "54444f4e9eaff759dab08634a766d971", "score": "0.61120534", "text": "public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "title": "" }, { "docid": "c1cff0f24729edcbcaa0cdc90d42f867", "score": "0.60944915", "text": "public boolean create();", "title": "" }, { "docid": "964e0aafb6562ab8ecd612b8927b0b29", "score": "0.6058958", "text": "@Override\n public void createNew() {\n }", "title": "" }, { "docid": "70b0bca913a70e8c156b724e201c47a4", "score": "0.6058451", "text": "public static Participant createEntity() {\n Participant participant = new Participant()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .registrationDate(DEFAULT_REGISTRATION_DATE);\n return participant;\n }", "title": "" }, { "docid": "193ae8b29f8a7d35b6e0531e5bd6576d", "score": "0.6051466", "text": "public Example() {\n }", "title": "" }, { "docid": "193ae8b29f8a7d35b6e0531e5bd6576d", "score": "0.6051466", "text": "public Example() {\n }", "title": "" }, { "docid": "193ae8b29f8a7d35b6e0531e5bd6576d", "score": "0.6051466", "text": "public Example() {\n }", "title": "" }, { "docid": "84ebc90bf688aeb189d44a7dce353a2e", "score": "0.6037958", "text": "@Override protected Request create(Properties parms) {\n Request2 request;\n try {\n request = getClass().newInstance();\n request._arguments = _arguments;\n request._parms = parms;\n } catch( Exception e ) {\n throw new RuntimeException(e);\n }\n return request;\n }", "title": "" }, { "docid": "6711bbef65d4f1676007ab53daec3b61", "score": "0.5998067", "text": "public Object newInstance()\n throws Throwable\n {\n return Common.newInstance(this);\n }", "title": "" }, { "docid": "4c3c4f14456263f8997dde9620e2c47c", "score": "0.59905803", "text": "void create (T t);", "title": "" }, { "docid": "2e1aa3de122f51b6ebb0032795dbf470", "score": "0.59666175", "text": "public Entity newInstance( Object object );", "title": "" }, { "docid": "61e7fb958a926b9afd4d0adf730d5dcc", "score": "0.5963761", "text": "public ObjectFactory() {}", "title": "" }, { "docid": "61e7fb958a926b9afd4d0adf730d5dcc", "score": "0.5963761", "text": "public ObjectFactory() {}", "title": "" }, { "docid": "61e7fb958a926b9afd4d0adf730d5dcc", "score": "0.5963761", "text": "public ObjectFactory() {}", "title": "" }, { "docid": "4e2cf0cd5aa11bd50e3e0eb0e10ce44f", "score": "0.5949924", "text": "@Override\r\n\tpublic TapestryVersion create()\r\n\t{\r\n\t\tObjectContext context = DataContext.getThreadObjectContext();\r\n\t\treturn create(context);\r\n\t}", "title": "" }, { "docid": "3755f0a73999756247889e4734ad7c8b", "score": "0.594801", "text": "For createFor();", "title": "" }, { "docid": "3755f0a73999756247889e4734ad7c8b", "score": "0.594801", "text": "For createFor();", "title": "" }, { "docid": "febe3ab9e54e130b87d347f50fce476a", "score": "0.5940162", "text": "@Override\n\tpublic Prestamo create(Class<? extends Prestamo> clazz) {\n\t\treturn new Prestamo();\n\t}", "title": "" }, { "docid": "70a8dfed31a6d286b8779bc3611c6197", "score": "0.5934486", "text": "public static Builder create() {\n\t\treturn new Builder();\n\t}", "title": "" }, { "docid": "3e472586dcf4fc279035cf078fcb1b3f", "score": "0.59242547", "text": "public static Builder newInstance()\n {\n return new Builder();\n }", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5913961", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5913961", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.5913961", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.5898063", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.5898063", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.5898063", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "6d403f7672509eea595095dca54bf1d3", "score": "0.58977056", "text": "public OrganizersEntity createInstance() {\n\t\t// Primary Key values\n\n\t\treturn createInstance( mockValues.nextInteger() );\n\t}", "title": "" }, { "docid": "6b52ecb3c26fa8c94d7cdc26dfec2a64", "score": "0.5897338", "text": "public TestCreate() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8fca1034181be69bafbd005cf1dab1de", "score": "0.58944273", "text": "private InstanceConfiguration() {}", "title": "" }, { "docid": "65778b99524ec8edf211af3ecfe6caf8", "score": "0.5893543", "text": "private Instance() {\n super(\"1 (implicitly)\", false);\n this.count = 1;\n }", "title": "" }, { "docid": "2bf4a835bff180c8cec160c82a2257ca", "score": "0.5879621", "text": "T create() throws RuntimeException;", "title": "" }, { "docid": "6cb02d2d10fab95ee058e186235f40c0", "score": "0.5870432", "text": "Husky() {\n System.out.println(\"Husky object is Created!\");\n }", "title": "" }, { "docid": "3f61a740a050499ed428b9fb893ac1d7", "score": "0.5866747", "text": "ServiceResource create();", "title": "" }, { "docid": "759dd8f6402513ffd1b25cdb899f4d3e", "score": "0.58600646", "text": "private RepresentationFactory() { }", "title": "" }, { "docid": "4a0fdafc529486ca5ae921fd252aec00", "score": "0.5849962", "text": "public FormInstance() {}", "title": "" }, { "docid": "fcd480102394104760249fed9f2f6e23", "score": "0.5847314", "text": "CourseInstance createCourseInstance();", "title": "" }, { "docid": "c705291c4432420c6baeeb5a04ce0076", "score": "0.5846868", "text": "ExecuteInstance createExecuteInstance();", "title": "" }, { "docid": "309dc01658959ad8037e2814cc64f83a", "score": "0.58423424", "text": "public WorkflowInstanceResource() {}", "title": "" }, { "docid": "b8cf15b3bad66e9a81eb17a8e404edfb", "score": "0.5839905", "text": "@Override\n protected God createNewModel() {\n return new God();\n }", "title": "" }, { "docid": "b018b71669f3c871daf19e247607909e", "score": "0.5831775", "text": "public PserverInstance() {\n }", "title": "" }, { "docid": "d3c60490e5dc09b4d119435cbf361cdf", "score": "0.5829998", "text": "public abstract Obstacle createInstance();", "title": "" }, { "docid": "03d7c35451624e4dc964a672f936ddb9", "score": "0.5826641", "text": "With createWith();", "title": "" }, { "docid": "649db3b9c25af82d7ed6763d266c37e9", "score": "0.58238107", "text": "public static <T> T createInstance(Class<? extends T> clazz) {\n return createInstance(clazz, null, null);\n }", "title": "" }, { "docid": "a497920f0a383deb11e63fc85039312c", "score": "0.58181113", "text": "M create();", "title": "" }, { "docid": "b65df3690fc936b58de7301873a2b8f4", "score": "0.58174634", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "db4934c8e4a0b464965be76fa941dcf3", "score": "0.58138955", "text": "public TriangleFigure createInstance() throws Exception {\r\n\t\t// JUnitDoclet begin method testcase.createInstance\r\n\t\treturn new TriangleFigure();\r\n\t\t// JUnitDoclet end method testcase.createInstance\r\n\t}", "title": "" }, { "docid": "63b7ee1e21c996c2cecf86fdcfa4d0cb", "score": "0.5803952", "text": "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch (final Exception e)\r\n\t\t{\r\n\t\t\treturn new DefaultClanGovernment();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cf73f369778749acc64ed2c42db2aa02", "score": "0.5785657", "text": "public Candidate instantiateForInsert() {\n Candidate entity = new Candidate();\n entity.setCategory(new Category(512973));\n entity.setComments(\"New lead candidate\");\n entity.setEmployeeType(\"W2\");\n entity.setIsDeleted(Boolean.FALSE);\n entity.setIsEditable(Boolean.TRUE);\n entity.setPreferredContact(\"Email\");\n entity.setStatus(\"New Lead\");\n entity.setOwner(new CorporateUser(1));\n entity.setName(\"\");\n entity.setFirstName(\"\");\n entity.setLastName(\"\");\n entity.setUsername(new DateTime().toString());\n entity.setPassword(\"secret\");\n return entity;\n }", "title": "" }, { "docid": "f96e33317530ae0f62cc0ca3130db67f", "score": "0.5784759", "text": "public Model() {\r\n\r\n\t}", "title": "" }, { "docid": "abddc6423d2f7c9cf2f20fd5ebb11ff0", "score": "0.5783034", "text": "public SofiaInstanceFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "18a85082b4db3c391e337c84d037579c", "score": "0.5781028", "text": "protected static ResponseBuilder newInstance() {\n ResponseBuilder b = RuntimeDelegate.getInstance().createResponseBuilder();\n return b;\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.5773692", "text": "public ObjectFactory() {\n }", "title": "" } ]
e04ddf7d728eccaf2a6644b2db5ddfd3
String representation of the SearchInfo object
[ { "docid": "e09b8ee4b7f15cb7a87f43926d87649c", "score": "0.0", "text": "@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .add(\"rid\", rid)\n .add(\"time-ms\", timeMs)\n .add(\"cpu-time-ms\", cpuTimeMs)\n .toString();\n }", "title": "" } ]
[ { "docid": "0c2472ad943de1890da7efe540c95b7f", "score": "0.75851315", "text": "public String toString()\n {\n return search.toString();\n }", "title": "" }, { "docid": "3bea36962a312422bab465c3c24b26b1", "score": "0.6668403", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getSortBy() != null)\n sb.append(\"SortBy: \").append(getSortBy()).append(\",\");\n if (getSortOrder() != null)\n sb.append(\"SortOrder: \").append(getSortOrder()).append(\",\");\n if (getNameContains() != null)\n sb.append(\"NameContains: \").append(getNameContains()).append(\",\");\n if (getNextToken() != null)\n sb.append(\"NextToken: \").append(getNextToken()).append(\",\");\n if (getMaxResults() != null)\n sb.append(\"MaxResults: \").append(getMaxResults());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "3685f7b7263a989eec592559acd68849", "score": "0.6510275", "text": "@Override\r\n\tpublic String dumpOut(String ind) {\n\t\treturn ind + \" SearchFieldString: index-field: \"\r\n\t\t\t\t+ indexField + \", search-field: \" + searchField + \", type: \"\r\n\t\t\t\t+ type + \", default: \" + defaultIndex + \", weight: \" + weight\r\n\t\t\t\t+ \", match: \" + match + \", fit: \" + fit + \"\\n\";\r\n\t}", "title": "" }, { "docid": "3bbdfc6f316df685e6cbdfcd050d1aa2", "score": "0.638823", "text": "@Override\n\tpublic String toString(){\n\t\tString value = \"[query_id = \" + this.query_id + \" interation = \" + this.interation + \" docno = \" + this.docno + \" rank = \" + this.rank + \"]\";\n\t\treturn value;\n\t}", "title": "" }, { "docid": "5f31543af7059f8de1a07294a27783bc", "score": "0.62478083", "text": "public String getInfoString();", "title": "" }, { "docid": "db0beb7410c6353221b60f5aad17f2ac", "score": "0.62330747", "text": "public String toString() {\r\n\t\tStringBuilder res=new StringBuilder();\r\n\t\tWorkEntrySearchNode root=this;\r\n\t\ttoString_helper(root,res);\r\n\t\treturn res.toString();\r\n\t}", "title": "" }, { "docid": "2d1ebe5f1f82985b4f7f70da4e8a40bd", "score": "0.6130387", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getErrorDocument() != null)\n sb.append(\"ErrorDocument: \").append(getErrorDocument()).append(\",\");\n if (getIndexDocumentSuffix() != null)\n sb.append(\"IndexDocumentSuffix: \").append(getIndexDocumentSuffix()).append(\",\");\n if (getRedirectAllRequestsTo() != null)\n sb.append(\"RedirectAllRequestsTo: \").append(getRedirectAllRequestsTo()).append(\",\");\n if (getRoutingRules() != null)\n sb.append(\"RoutingRules: \").append(getRoutingRules());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "4da0a44230acde7adbabcb6822b81a5e", "score": "0.61131656", "text": "@Override\n public String toString() {\n final StringBuilder builder = new StringBuilder();\n\n for (final Tuple<String, Tuple<String, String>> param : params) {\n if (builder.length() == 0) {\n builder.append('?');\n } else {\n builder.append('&');\n }\n builder.append(param._1);\n builder.append('=');\n builder.append(param._2._2);\n }\n\n return builder.toString();\n }", "title": "" }, { "docid": "5854a87713189d4af9af765dec844542", "score": "0.6095911", "text": "public String toString() {\n\t\tString b = encode(album != null ? album : \"\");\n\t\tString artist = encode(this.artist);\n\t\tString track = encode(this.track);\n\t\tString l = length == -1 ? \"\" : String.valueOf(length);\n\t\tString n = tracknumber == -1 ? \"\" : String.valueOf(tracknumber);\n\n\t\tString r = \"\";\n\t\tif (rating != null)\n\t\t\tr = rating.name();\n\t\tString rec = \"\";\n\t\tif (recommendationKey != null && source == Source.LAST_FM && recommendationKey.length() == 5)\n\t\t\trec = recommendationKey;\n\n\t\treturn String.format(\"%s&%s&%s&%s&%s&%s&%s&%s&%s\", artist, track, startTime, source.name(), rec, r, l, b, n);\n\t}", "title": "" }, { "docid": "64d9f6c65f78274501704623c8658482", "score": "0.60725254", "text": "java.lang.String getInfo();", "title": "" }, { "docid": "bf5bdf281547cad1cde9974cba3be706", "score": "0.6054264", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getResults() != null)\n sb.append(\"Results: \").append(getResults()).append(\",\");\n if (getUnprocessedRecords() != null)\n sb.append(\"UnprocessedRecords: \").append(getUnprocessedRecords());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "5a544ef3bc26d0054274e305d00d9e7c", "score": "0.60476065", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getOutpostIdentifier() != null)\n sb.append(\"OutpostIdentifier: \").append(getOutpostIdentifier()).append(\",\");\n if (getHostIdFilter() != null)\n sb.append(\"HostIdFilter: \").append(getHostIdFilter()).append(\",\");\n if (getMaxResults() != null)\n sb.append(\"MaxResults: \").append(getMaxResults()).append(\",\");\n if (getNextToken() != null)\n sb.append(\"NextToken: \").append(getNextToken()).append(\",\");\n if (getStatusFilter() != null)\n sb.append(\"StatusFilter: \").append(getStatusFilter());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "6352375d9d5e6503d1872862e7c7ac2d", "score": "0.6036169", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getQueryString() != null)\n sb.append(\"QueryString: \").append(getQueryString()).append(\",\");\n if (getClientRequestToken() != null)\n sb.append(\"ClientRequestToken: \").append(getClientRequestToken()).append(\",\");\n if (getQueryExecutionContext() != null)\n sb.append(\"QueryExecutionContext: \").append(getQueryExecutionContext()).append(\",\");\n if (getResultConfiguration() != null)\n sb.append(\"ResultConfiguration: \").append(getResultConfiguration()).append(\",\");\n if (getWorkGroup() != null)\n sb.append(\"WorkGroup: \").append(getWorkGroup()).append(\",\");\n if (getExecutionParameters() != null)\n sb.append(\"ExecutionParameters: \").append(getExecutionParameters()).append(\",\");\n if (getResultReuseConfiguration() != null)\n sb.append(\"ResultReuseConfiguration: \").append(getResultReuseConfiguration());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "715f4cfd3c1352ac9d731fa98efc2a0f", "score": "0.6029868", "text": "@Override\n public String toString() {\n StringBuilder str = new StringBuilder(\"{\");\n boolean found = false;\n if (cTermInfo != null) {\n found = true;\n str.append(\"termInfo \");\n str.append(cTermInfo);\n }\n if (cSurrogateDiagnostic != null) {\n if (found) {\n str.append(\"<ERROR: multiple CHOICE: surrogateDiagnostic> \");\n }\n str.append(\"surrogateDiagnostic \");\n str.append(cSurrogateDiagnostic);\n }\n str.append(\"}\");\n return str.toString();\n }", "title": "" }, { "docid": "a1d345c25a656bfcdad7e4e91cdc4de5", "score": "0.6007025", "text": "public String toString()\r\n\t{\r\n\t\treturn\r\n\t\t\t\"tag=\" + tag +\r\n\t\t\t\", word class=\" + wordClass +\r\n\t\t\t\", major word class=\" + majorWordClass +\r\n\t\t\t\", general tag name=\" + generalTagName +\r\n\t\t\t\", description=\" + description +\r\n\t\t\t\", lemma word class=\" + lemmaWordClass;\r\n\t}", "title": "" }, { "docid": "f82da951b0ef41adc708f6b7b159c353", "score": "0.59997797", "text": "@Override\n public String toString() {\n return \"Id: \"+id+\", Name: \"+name+\", Info: \"+info;\n }", "title": "" }, { "docid": "dfe5947f1d66529b5c11a7e5ceb1fe82", "score": "0.5997192", "text": "public String toString()\n {\n \n StringBuilder sb = new StringBuilder(\"FilterMap[\");\n sb.append(\"filterName=\");\n sb.append(this.filterName);\n if (servletName != null)\n {\n sb.append(\", servletName=\");\n sb.append(servletName);\n }\n if (urlPattern != null)\n {\n sb.append(\", urlPattern=\");\n sb.append(urlPattern);\n }\n sb.append(\"]\");\n return (sb.toString());\n }", "title": "" }, { "docid": "84c7b9450a3901cc35d6ae1fb6216305", "score": "0.5988386", "text": "public String toString()\n\t{\n\t\treturn nom + \" : \" + infos + \" \" + divers;\n\t}", "title": "" }, { "docid": "811d1c93f7e3d55c093227cbd76b9442", "score": "0.5984279", "text": "public String getInfo(){\n StringBuilder sb=new StringBuilder();\n if (val instanceof Word){\n\n sb.append(((Word) val).getSentence().getId());\n sb.append(\"\\t\");\n sb.append(((Word) val).getId());\n\n }\n\n if (val instanceof Tuple2){\n sb.append(((Word) ((Tuple2) val)._1()).getSentence().getId());\n sb.append(\"\\t\");\n sb.append(((Word) ((Tuple2) val)._1()).getId());\n sb.append(\"\\t\");\n sb.append(((Word) ((Tuple2) val)._2()).getId());\n }\n\n\n\n return sb.toString();\n }", "title": "" }, { "docid": "c384f735e09f6bc0d553fdf529c34641", "score": "0.597366", "text": "public String toString()\r\n\t{\r\n\t\treturn this.sAuthor.replace(\"\\t\",\" / \")+\"\\t\"+this.sMail.replace(\"\\t\",\" / \")+\"\\t\"+this.sInstitution.replace(\"\\t\",\" / \")+\"\\t\"+this.sAddress.replace(\"\\t\",\" / \")+\"\\t\"+this.sCountry.replace(\"\\t\",\" / \")+\"\\t\"+this.sImplementationName.replace(\"\\t\",\" / \")+\"\\t\"+this.sVersion.replace(\"\\t\",\" / \")+\"\\t\"+this.sAbstract.replace(\"\\t\",\" / \");\r\n\t}", "title": "" }, { "docid": "dde74e54d7b2456b77bb40de8bd9e3a7", "score": "0.59647536", "text": "public String toString ()\n {\n\n\tStringBuffer buf = new StringBuffer ();\n\tbuf.append (\"Class: \");\n\tbuf.append (this.clazz.getName ());\n\tbuf.append ('\\n');\n\tbuf.append (\" Fields (filter object class/type/field/value[/extras]:\\n\");\n\n\tfor (int i = 0; i < this.fields.size (); i++)\n\t{\n\n\t buf.append (\" \");\n\t buf.append (this.fields.get (i).toString ());\n\t buf.append ('\\n');\n\n\t}\n\n\treturn buf.toString ();\n\n }", "title": "" }, { "docid": "75d5b2ccb2af572276457e0178d8f14f", "score": "0.5959017", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Driver_info [id=\" + id + \", name=\" + name + \", street=\" + street + \", location=\" + location + \", city=\"\n\t\t\t\t+ city + \", pincode=\" + pincode + \", mobile_no=\" + mobile_no + \", license_no=\" + license_no + \"]\";\n\t}", "title": "" }, { "docid": "05e43f6aebfd363a4824ba9be89d3217", "score": "0.5929972", "text": "public String toString () {\r\n\treturn \"wordIndex:\\n\" + wordIndex + \"\\ninternet:\\n\" + internet;\r\n }", "title": "" }, { "docid": "4a4caaf85452c189e68f4d13be5a3b01", "score": "0.5926913", "text": "public String toString() {\n StringBuffer buffer = new StringBuffer();\n buffer.append(super.toString());\n buffer.append(\", errorCode \" + errorCode);\n buffer.append(\", ServiceTypeCount \" + serviceTypes.size());\n buffer.append(\", ServiceTypes \" + serviceTypes);\n return buffer.toString();\n }", "title": "" }, { "docid": "9586f5c09844ea212bd6920ca32ad61d", "score": "0.5926461", "text": "@Override\r\n\tpublic String toString() {\n\t\tString s = \"\";\r\n\t\t s += \"id: \" + id + \"\\n\";\r\n\t\t s += \"en: \" + en + \"\\n\";\r\n\t\t s += \"cn: \" + cn + \"\\n\";\r\n\t\t s += \"bg: \" + bg + \"\\n\";\r\n\t\t s += \"cat: \" + cat + \"\\n\";\r\n\t\t s += \"info: \" + info + \"\\n\";\r\n\t\t s += \"memo: \" + memo + \"\\n\";\r\n\t\t s += \"editor: \" + editor + \"\\n\";\r\n\t\t s += \"lat: \" + lat + \"\\n\";\r\n\t\t s += \"log: \" + log + \"\\n\";\r\n\t\t s += \"date: \" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(date) + \"\\n\";\r\n\t\t return s;\r\n\t}", "title": "" }, { "docid": "8968b686c3170edfc9d72ea82a148549", "score": "0.59116644", "text": "public java.lang.String getInfo() {\n java.lang.Object ref = info_;\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 info_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f6b400c4b2c31375ac6edfc96f30631c", "score": "0.5906489", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMarker() != null) sb.append(\"Marker: \" + getMarker() + \",\");\n if (getReservedCacheNodes() != null) sb.append(\"ReservedCacheNodes: \" + getReservedCacheNodes() );\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "3b7b7d3b954dcb750ff303d7430164a4", "score": "0.59044045", "text": "@Override\n\tpublic String toString() {\n\t\treturn new Gson().toJson(this);\n\t}", "title": "" }, { "docid": "6c8246b532bab191f4cb04860c232a44", "score": "0.58997303", "text": "private String createSearchString() {\n String temp = \"\";\n\n if (searchQuery[0].equals(\"OR\")) {\n temp += \"Orkanen \";\n } else if (searchQuery[0].equals(\"NI\")) {\n temp += \"Niagara \";\n temp += searchQuery[0] + \":\" + searchQuery[1] + searchQuery[2] + searchQuery[3];\n return temp;\n } else if (searchQuery[0].equals(\"G8\")) {\n temp += \"Gäddan \";\n }\n\n temp += \"Level \" + searchQuery[2] + \" - \";\n\n temp += searchQuery[0] + \":\" + searchQuery[1] + searchQuery[2] + searchQuery[3];\n\n return temp;\n }", "title": "" }, { "docid": "dbdeae5924ca64e31255b9cd9223157c", "score": "0.58975255", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMaxResults() != null)\n sb.append(\"MaxResults: \").append(getMaxResults()).append(\",\");\n if (getNextToken() != null)\n sb.append(\"NextToken: \").append(getNextToken()).append(\",\");\n if (getProfileType() != null)\n sb.append(\"ProfileType: \").append(getProfileType());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "801e10bd163ae737966f63a70c7d5350", "score": "0.5893522", "text": "@Override public String toString() {\n return new Gson().toJson(this);\n }", "title": "" }, { "docid": "f77f533b79a9aef9545fe96386098dc2", "score": "0.5891114", "text": "@Override\n\tpublic String toString() {\n\t\treturn ReflectionToStringBuilder.toString(this);\n\t}", "title": "" }, { "docid": "c204ac158618fd30f1476ff4a97e663d", "score": "0.5889322", "text": "public String toString() {\n\t\t//implement\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\t\t\n\t\tfor(int i = 0; i<26; i++) \n\t\t\tif(entries[i] != null) sb.append(i +\":\"+ entries[i].key + \"->\" + entries[i].value+\"\\n\");\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "91bed0e89d1233418866a5571be9f671", "score": "0.5887904", "text": "public String toString() {\r\n return \"name: \" + name + \" type: \" + type;\r\n }", "title": "" }, { "docid": "72a38335b7c931408c309ad4cf71eff1", "score": "0.58822507", "text": "public String toString() {\n return detail.toString(); \n }", "title": "" }, { "docid": "710086955d3258489ce456b8aba36024", "score": "0.5881639", "text": "public String getInfoString(){\n StringBuilder sb = new StringBuilder(territoryName);\n sb.append(\" \");\n sb.append(\"\\tTroops: \" + troops);\n sb.append(\" \");\n sb.append(\"\\tOwner: \" + owner );\n return sb.toString();\n }", "title": "" }, { "docid": "fa055a64994806c20704a4b504aaa724", "score": "0.5876694", "text": "@Override\r\n public String toString(){\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"vaccine type: \").append(vaccineType.toString()).append(\"\\n\");\r\n sb.append(\"name: \").append(name).append(\"\\n\");\r\n sb.append(\"against:\").append(disease.toString());\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "0d89e363239cf610053ffe08720ba5b2", "score": "0.5876458", "text": "public String toString () {\n StringBuilder buff = new StringBuilder(128)\n .append(getName())\n .append(\"/\")\n .append(version);\n\n for (String name : values.keySet()) {\n buff.append(\" \")\n .append(name)\n .append(\"=\")\n .append(getValuePossiblyQuote(name));\n }\n\n return buff.toString();\n }", "title": "" }, { "docid": "923e62a3b2f18cbff33feadddf0ea8af", "score": "0.58737004", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPublishClassificationFindings() != null)\n sb.append(\"PublishClassificationFindings: \").append(getPublishClassificationFindings()).append(\",\");\n if (getPublishPolicyFindings() != null)\n sb.append(\"PublishPolicyFindings: \").append(getPublishPolicyFindings());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "df863174faa2074cb51073ae146651b4", "score": "0.586939", "text": "public com.google.protobuf.ByteString\n getInfoBytes() {\n java.lang.Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "001303cda24a2f370cbe8580029386e1", "score": "0.58675563", "text": "public String toString() {\n\t\treturn GWSParser.toString(this,false);\n\t}", "title": "" }, { "docid": "ebd20930536a607773b5905b01f4c7c4", "score": "0.5864031", "text": "@Override\n public String toString(){\n return \"---------------latest index info---------------\" +\n \"\\nindexNumber: \" + indexNumber + \"\\tmax class size: \" + maxClassSize + \"\\tvacancies: \" + vacancy +\n \"\\ntutorial timings: \" + tutorialTimings + \"\\ttutorial venue: \" + tutorialVenue +\n \"\\nlaboratory timings: \" + laboratoryTimings + \"\\tlaboratory venue: \" + laboratoryVenue;\n }", "title": "" }, { "docid": "b5db369e5b40ace46acd21750924eccd", "score": "0.58388305", "text": "public String toString()\n {\n return weight + \"\\t\" + query;\n }", "title": "" }, { "docid": "1b5ae8f864b7753e4c2066b324ffdce9", "score": "0.5838267", "text": "public String info() {\n StringBuilder sb = new StringBuilder();\n sb.append(format(ENGLISH, \"Order : %d%n\", order));\n\n for (int i = 1; i < ngramData.length; i++) {\n GramDataArray gramDataArray = ngramData[i];\n if (i == 1) {\n sb.append(format(ENGLISH, \"1 Grams: Count= %d%n\", unigramProbs.length));\n continue;\n }\n sb.append(format(ENGLISH,\n \"%d Grams: Count= %d Fingerprint Bits= %d Probabilty Bits= %d Back-off bits= %d%n\",\n i,\n gramDataArray.count,\n gramDataArray.fpSize * 8,\n gramDataArray.probSize * 8,\n gramDataArray.backoffSize * 8));\n }\n sb.append(format(ENGLISH, \"Log Base : %.2f%n\", logBase));\n sb.append(format(ENGLISH, \"Unigram Weight : %.2f%n\", unigramWeight));\n sb.append(format(ENGLISH, \"Using Stupid Back-off?: %s%n\", useStupidBackoff ? \"Yes\" : \"No\"));\n if (useStupidBackoff) {\n sb.append(format(ENGLISH, \"Stupid Back-off Alpha Value : %.2f%n\", stupidBackoffAlpha));\n }\n sb.append(format(ENGLISH, \"Unknown Back-off N-gram penalty: %.2f%n\", unknownBackoffPenalty));\n return sb.toString();\n }", "title": "" }, { "docid": "b9441aaf6f4c1fe807b538b957194a7f", "score": "0.5834501", "text": "@Override\n public String toString() {\n return RequestUtils.toSafeString(request);\n }", "title": "" }, { "docid": "8cf2f427cba1aabfd68adc039acdd6ac", "score": "0.58239025", "text": "public String toString()\r\n\t{\r\n\t\treturn \"\" + this.location;\r\n\t}", "title": "" }, { "docid": "d72de26f7859ca5fb8ca84bbbdd313a8", "score": "0.58225006", "text": "public String toString(){\r\n\t\t\r\n\t\treturn \"Name: \" + name + \", Id: \" + id;\r\n\t}", "title": "" }, { "docid": "eb549ccd1e54c694b6ba70cf8ce8204c", "score": "0.5813273", "text": "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"filterId\", getId()));\n buffer.append(objectToStringFK(\"parentId\", getParent()));\n buffer.append(objectToString(\"class\", getClazz()));\n buffer.append(objectToString(\"attribute\", getAttribute()));\n buffer.append(objectToString(\"filterString\", getFilterString()));\n buffer.append(objectToString(\"operator\", getOperator()));\n buffer.append(objectToString(\"position\", getPosition()));\n buffer.append(objectToStringFK(\"sampleId\", getSample()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.58069795", "text": "public String getInfo();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.58069795", "text": "public String getInfo();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.58069795", "text": "public String getInfo();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.58069795", "text": "public String getInfo();", "title": "" }, { "docid": "6b58689fb5781fc189f44fe85cfd3ca6", "score": "0.58059925", "text": "public String infoDetails() {\n\t\tString info = this.toString();\n\t\tString[] details = info.split(\"~\");\n\t\tString combined;\n\t\tcombined = \"\\nName: \" + details[0] + \"\\nDOB: \" + details[1]\n\t\t\t\t+ \"\\nCard Number: \" + details[2] + \"\\nArrival Time: \"\n\t\t\t\t+ details[3] + \"\\n\" + this.seenByDoctor\n\t\t\t\t+ \".\" + \"\\n\" + this.getUrgency() + \"\\n\";\n\t\treturn combined;\n\t}", "title": "" }, { "docid": "35470c44bd7ba70b9da0af4e51da8cab", "score": "0.58050746", "text": "public java.lang.String getInfo() {\n java.lang.Object ref = info_;\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 info_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "12f55609decf6676154c64c035c0552a", "score": "0.5799911", "text": "public String toString() {\n\t\treturn name + \",\" + description + \", (latitude:\" + location.getLatitude()\n\t\t\t\t+ \",longitude:\" + location.getLongitude() + \n\t\t\t\t\")\\n\\tPrice: \" + getCostToSymbols() + \"\\n\\tRating: \"+ \n\t\t\t\tratingToStars();\n\t}", "title": "" }, { "docid": "79f7907e32be36e61d085853e630bed3", "score": "0.57962275", "text": "public String toString(){\n return \"Reg number: \" + regNum + \"\\nLocation: \" + location + \"\\nIn order: \" + inOrder;\n }", "title": "" }, { "docid": "92741e5afff9d3cb98688f662798e71c", "score": "0.5786602", "text": "@Override\n\tpublic String toString() {\n\t\treturn specimenID + \" \" + latitude + \" \" + longititude + \" \" + description;\n\t}", "title": "" }, { "docid": "ee92704b75f526856289011f67053d70", "score": "0.5784551", "text": "public String toString() {\n\tStringBuilder result = new StringBuilder();\n\tfinal String newLine = System.getProperty(\"line.separator\");\n\n\t// Print the fields of the parameter itself.\n\tresult.append(\"{\");\n\tresult.append(name + \"=\");\n\tif (value == null)\n\t result.append(\"null\");\n\telse\n\t result.append(\"\\\"\" + value + \"\\\"\");\n\tresult.append(\" \\t\");\n\n\tresult.append(\"type=\" + type + \" \");\n\tresult.append(\"level=\" + level + \" \");\n\tresult.append(\"isSet=\" + isSet + \" \\t\");\n\n\tif (description == null)\n\t result.append(\"descr=null\");\n\telse\n\t result.append(\"descr=\\\"\" + description + \"\\\"\");\n\tresult.append(\"}\");\n\n\t// If the parameter value is a range list, print that too.\n\tif (rangeList != null) {\n\t result.append(newLine);\n\t result.append(\" \");\n\t result.append(rangeList.toString());\n\t}\n\n\treturn (result.toString());\n }", "title": "" }, { "docid": "8681c8ccbb934c803841361a2a227e86", "score": "0.5780469", "text": "public String toString() {\n\t\treturn new ToStringBuilder(this).\n\t\t\tappend(\"name\", name).\t\n\t\t\tappend(\"code\", code).\n\t \tappend(\"price\", price).\n\t \ttoString();\n\t}", "title": "" }, { "docid": "2ec9edee3cf54ccbf01e9374ae77138b", "score": "0.57746917", "text": "public String information() {\r\n\t\tString result = String.format(\"title : %s, publisher : %s, author : %s, price : %d, discountRate : %f\", \r\n\t\t\t\ttitle, publisher, author, price, discountRate);\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "e2e3fd09371b5eb6e9cc08653231a6b7", "score": "0.5774448", "text": "public String toString(){\r\n return(result.toString());\r\n }", "title": "" }, { "docid": "2052779c96007364726059b83544109c", "score": "0.5769317", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMatchPattern() != null)\n sb.append(\"MatchPattern: \").append(getMatchPattern()).append(\",\");\n if (getMatchScope() != null)\n sb.append(\"MatchScope: \").append(getMatchScope()).append(\",\");\n if (getOversizeHandling() != null)\n sb.append(\"OversizeHandling: \").append(getOversizeHandling());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "bb03b727e6a5f2b25697dec875ae5aac", "score": "0.5766137", "text": "public String toString()\n {\n return \"(Signature)->\"\n + (m_utfName == null ? \"[\" + m_iRefName + ']' : m_utfName.toString())\n + \", \"\n + (m_utfType == null ? \"[\" + m_iRefType + ']' : m_utfType.toString());\n }", "title": "" }, { "docid": "51e9bc16cfc508d652f51d60e294b20f", "score": "0.5764567", "text": "@Override\n public String toString() {\n return ReflectionToStringBuilder.toString(this);\n }", "title": "" }, { "docid": "1893aa22f7102e76bcf3c24086f2cf8c", "score": "0.57589763", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getLocation() != null)\n sb.append(\"Location: \").append(getLocation()).append(\",\");\n if (getInterval() != null)\n sb.append(\"Interval: \").append(getInterval()).append(\",\");\n if (getIntervalUnit() != null)\n sb.append(\"IntervalUnit: \").append(getIntervalUnit()).append(\",\");\n if (getTimes() != null)\n sb.append(\"Times: \").append(getTimes()).append(\",\");\n if (getCronExpression() != null)\n sb.append(\"CronExpression: \").append(getCronExpression());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "d39657c2be57e1abe260ac951521e766", "score": "0.57556117", "text": "public String toString() {\n \t\treturn (location + \" [\" + id + \"]\");\n \t}", "title": "" }, { "docid": "d4cbc99f2e9fd7ec22f5922819a8c555", "score": "0.57536834", "text": "@Override\n public String toString(){\n String info = \"Street: \" + street +\n \"\\nCity: \" + city + \n \"\\nState: \" + state + \n \"\\nZip Code: \" + zipCode + \n \"\\nCountry: \" + country; \n return info;\n }", "title": "" }, { "docid": "51e3b06df1360e3228244bd07c5ec217", "score": "0.575283", "text": "public String toString() {\n\t\treturn \"name=\" + this.getName() + \", size=\" + this.getSize()\n\t\t\t\t+ \"bytes, \" + \"isFormField=\" + isFormField() + \", FieldName=\"\n\t\t\t\t+ this.getFieldName();\n\t}", "title": "" }, { "docid": "b1759a99a6ea42d1ca65f86677c6c2ef", "score": "0.57522124", "text": "public String toString()\n \t\t{\n \t\t\tString toStr = name;\n \t\t\tfor(int i=0; i<extras.length; i++)\n \t\t\t{\n \t\t\t\tif ((extraBits & extras[i]) == 0) continue;\n \t\t\t\ttoStr += \",\" + getExtraName(extras[i]);\n \t\t\t}\n \t\t\treturn toStr;\n \t\t}", "title": "" }, { "docid": "74780a9dbb8bc296c5fa56723312deb5", "score": "0.57519305", "text": "public String toString() {\r\n\t\t\treturn name + \",version=\" + localVersion + \",serverVersion=\" + \r\n\t\t\t\t\tserverVersion;\r\n\t\t}", "title": "" }, { "docid": "1f22d6d509e1b7bc4275fe471fc908a2", "score": "0.5751771", "text": "@Override\n public String toString() {\n return params.toString();\n }", "title": "" }, { "docid": "e8a9296e522aa082a667a6aab77e9557", "score": "0.5751196", "text": "public com.google.protobuf.ByteString\n getInfoBytes() {\n java.lang.Object ref = info_;\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 info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "56d83bbd8b1fc35aefa6167187395a83", "score": "0.5750745", "text": "@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n b.append('{');\n for (int i = 0; i < this.fields.length; i++) {\n b.append(this.fields[i].toString());\n if (i < this.fields.length - 1)\n b.append(',');\n }\n b.append(\"}\");\n return b.toString();\n }", "title": "" }, { "docid": "69c5bd18187178688087ee02917858db", "score": "0.5749286", "text": "public String toString() {\n\t\tString out = \"\";\n\t\tfor(int x = 0; x < hash.getLength(); x++)\n\t\t\tif (hash.get(x) != null) {\n\t\t\t\tout += x + \": [\" + ((GISrecord)hash.get(x)).getfeatName() + \":\"\n\t\t\t\t\t\t+ ((GISrecord)hash.get(x)).getStateAbbr() + \", \" + \n\t\t\t\t\t\t((GISrecord)hash.get(x)).getOffsetList() + \"]\\n\";\n\t\t\t}\n\t\treturn out;\n\t}", "title": "" }, { "docid": "c22dc99ab682f64434082f1b63657517", "score": "0.5743229", "text": "public String toString()\n {\n String retString = new String();\n\n retString = retString + super.toString() + \"\\n\" + _params;\n\n return retString;\n }", "title": "" }, { "docid": "cb115af90de5fa64bddac5fb0c72b65e", "score": "0.5736363", "text": "public String getInfoStr() {\n\t\treturn infoStr;\n\t}", "title": "" }, { "docid": "3435d2823a0dd202887581807a56484f", "score": "0.57302654", "text": "public String toString() {\n\n\t\tStringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\n\t\tbuffer.append(\"auditResult=[\").append(auditResult).append(\"] \");\n\t\tbuffer.append(\"remark=[\").append(remark).append(\"] \");\n\t\tbuffer.append(\"tag=[\").append(tag).append(\"] \");\n\t\tbuffer.append(\"auditTime=[\").append(auditTime).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "f26d711dba4ff54c97fb4c949cd713eb", "score": "0.5721569", "text": "public String toString() {\n\r\n return String.format(\" Place to visit: %s. Reason: %s . Date created: %s\",\r\n name, reason, created);\r\n\r\n }", "title": "" }, { "docid": "d52329ed447b1be4fb6d7cb925b00985", "score": "0.5721118", "text": "public String toString() {\r\n\t\tString s = \"\\nID: \" + id;\r\n\t\ts += \"\\nJob Title: \" + title;\r\n\t\ts += \"\\nLocation: \" + locationToString(location);\r\n\t\ts += \"\\nIndustry: \" + industryToString(industry);\r\n\t\ts += \"\\nCompany Size: \" + compSizeToString(companySize);\r\n\t\ts += \"\\nEducation Background: \" + edubToString(eduBackground);\r\n\t\ts += \"\\nWork Experience: \" + wexpToString(workExp);\r\n\t\ts += \"\\nGender: \" + gender;\r\n\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "060491db12b526c0a02df980aeb4bcd8", "score": "0.5720348", "text": "@Override\n\tpublic String toString() {\n\t\treturn toString(null, null);\n\t}", "title": "" }, { "docid": "831dd4be72b8244a8e368c1838371ef4", "score": "0.57201326", "text": "public String toString() {\r\n\t\t//your code here\r\n\t\tString str = \"\";\r\n\t\tfor (int i = 0; i < this.desc.numFields(); i++){\r\n\t\t\tstr = str + fields[i].toString();\r\n\t\t}\r\n\t\treturn str;\r\n\t}", "title": "" }, { "docid": "da78046e510779d9eb9e39b42f45c9fb", "score": "0.57191765", "text": "@Override\n public String info() {\n return String.format(\"%s. %s\", this.key, this.name);\n }", "title": "" }, { "docid": "ce83335ea635e59144fb6184c6c89f62", "score": "0.571891", "text": "@Override\n public String toString() {\n return getAsString();\n }", "title": "" }, { "docid": "643de433cfe3aaeab413a6c6736366ec", "score": "0.57079446", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "title": "" }, { "docid": "b4a82b2a0d581a459fa3130cef4a7b24", "score": "0.5705954", "text": "public String toString() {\n\t\treturn type+\" \"+key+\" \"+value;\n\t}", "title": "" }, { "docid": "cc1f23c10d60c06a6a2cee6726dc7b92", "score": "0.57010955", "text": "public String toString() {\n StringBuffer s=new StringBuffer(super.toString() + \"AuthInfoAccess [\\n\");\n\n for (int i = 0; i < mDesc.size(); i++) {\n AccessDescription ad = mDesc.elementAt(i);\n s.append( \"(\" + i + \")\");\n s.append(\" \");\n s.append(ad.getMethod().toString() + \" \" + ad.getLocation().toString());\n }\n return (s.toString() + \"]\\n\");\n }", "title": "" }, { "docid": "033ec15e273ddb1f07ccd9bd24d5c630", "score": "0.56913793", "text": "@Override\r\n\tpublic String toString(){\r\n\t\treturn \"location- \" + location + \",frequency- \" + \r\n\t\t\t\tfrequency + \",first position- \" + firstPosition;\r\n\t}", "title": "" }, { "docid": "a625ecb5480f4327292c85c6e4c109f9", "score": "0.56904066", "text": "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"id\", getId()) //\n .add(\"typeCd\", getTypeCd()) //\n .add(\"keyName\", getKeyName()) //\n .add(\"stringVal\", getStringVal()) //\n .add(\"dateVal\", getDateVal()) //\n .add(\"longVal\", getLongVal()) //\n .add(\"doubleVal\", getDoubleVal()) //\n .add(\"identifying\", getIdentifying()) //\n .toString();\n }", "title": "" }, { "docid": "fc414e8e0cf6c211fae4f7cd0c367fe1", "score": "0.5689448", "text": "public String toString() {\n\t\treturn \"cloud id = \" + id + \" type = \" + secType + \" user = \" + user \n\t\t\t\t+ \" password = \" + password + \" description = \" + description;\n\t}", "title": "" }, { "docid": "193b366993ddd4f8ea6e78c66e8ecc35", "score": "0.56845444", "text": "public final String toString() {\n return \"index = \"+index+\" counter = \"+counter+\" object = \"+object;\n }", "title": "" }, { "docid": "3a902b1d7d5cc4ff2fd5618f415b6790", "score": "0.56809944", "text": "public String toString()\r\n\t{\r\n\t\treturn \"\\n---BookInfo---\\nName: \" +name+\"\\nAuthor : \"+author+\"\\nPrice: \"+price+\"\\n--------------\";\r\n\t}", "title": "" }, { "docid": "99121c753d6323fdf6feb86045081967", "score": "0.56805974", "text": "@Override\n\tpublic String infoString() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cad72480331d4f5290490518c94a4ef6", "score": "0.5677494", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getArchitecture() != null) sb.append(\"Architecture: \" + getArchitecture() + \",\");\n if (getGroupNames() != null) sb.append(\"GroupNames: \" + getGroupNames() + \",\");\n if (getAdditionalInfo() != null) sb.append(\"AdditionalInfo: \" + getAdditionalInfo() + \",\");\n if (getUserData() != null) sb.append(\"UserData: \" + getUserData() + \",\");\n if (getInstanceType() != null) sb.append(\"InstanceType: \" + getInstanceType() + \",\");\n if (getPlacement() != null) sb.append(\"Placement: \" + getPlacement() + \",\");\n if (isMonitoring() != null) sb.append(\"Monitoring: \" + isMonitoring() + \",\");\n if (getSubnetId() != null) sb.append(\"SubnetId: \" + getSubnetId() + \",\");\n if (getInstanceInitiatedShutdownBehavior() != null) sb.append(\"InstanceInitiatedShutdownBehavior: \" + getInstanceInitiatedShutdownBehavior() + \",\");\n if (getPrivateIpAddress() != null) sb.append(\"PrivateIpAddress: \" + getPrivateIpAddress() );\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "829cc2c0804df23f7bad03e3a1ce3402", "score": "0.5676679", "text": "@Override\n public final String toString()\n {\n StringBuilder sb = new StringBuilder(64);\n appendDesc(sb);\n return sb.toString();\n }", "title": "" }, { "docid": "285013caa44c2372836766b6c5af729c", "score": "0.5675181", "text": "public String getInfo() {\n\t\treturn \"NAME: \" + name + \"\\n\" +\n\t\t\t\t\"ADDRESS: \" + address + \"\\n\" +\n\t\t\t\t\"SSN: \" + ssn + \"\\n\" +\n\t\t\t\t\"PHONE: \" + phoneNo + \"\\n\" +\n\t\t\t\t\"ACCOUNT NO: \" + accountNo + \"\\n\" +\n\t\t\t\t\"ROUTING NO: \" + routingNo + \"\\n\" +\n\t\t\t\t\"BALANCE: \" + balance + \"\\n\";\n\t\t\t\t\n\t}", "title": "" }, { "docid": "43c170028e3b2d0b5a5e34a93a227494", "score": "0.56728613", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAccessibility() != null)\n sb.append(\"Accessibility: \").append(getAccessibility()).append(\",\");\n if (getCaptionSelectorName() != null)\n sb.append(\"CaptionSelectorName: \").append(getCaptionSelectorName()).append(\",\");\n if (getDestinationSettings() != null)\n sb.append(\"DestinationSettings: \").append(getDestinationSettings()).append(\",\");\n if (getLanguageCode() != null)\n sb.append(\"LanguageCode: \").append(getLanguageCode()).append(\",\");\n if (getLanguageDescription() != null)\n sb.append(\"LanguageDescription: \").append(getLanguageDescription()).append(\",\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "2466d35c19eb210d8afac7c43af97284", "score": "0.56721383", "text": "public String toString() {\n return \" Name: \" + this.name + \"\\n Class: \" + this.dnsClass + \"\\n \" +\n \"Type: \"+ this.type + \"\\n\";\n }", "title": "" }, { "docid": "09fa635f06b6a2fe83849917af48c921", "score": "0.5669961", "text": "public String toString()\r\n {\r\n return ToStringBuilder.reflectionToString(this);\r\n }", "title": "" }, { "docid": "82cfbfb1c8c5ad033ca226abd1f0b562", "score": "0.5665719", "text": "public String toString() {\n final StringBuffer buffer = new StringBuffer() ;\n buffer.append( \"WorldIndexConfig[\" ) ;\n buffer.append( \"country = \" ).append( this.country ) ;\n buffer.append( \", indexName = \" ).append( this.indexName ) ;\n buffer.append( \", viewFiltered = \" ).append( this.viewFiltered ) ;\n buffer.append( \"]\" ) ;\n return buffer.toString() ;\n }", "title": "" }, { "docid": "a48d4fd1a795e0f9844fe5f24ab533cb", "score": "0.5653826", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStart() != null)\n sb.append(\"Start: \").append(getStart()).append(\",\");\n if (getEnd() != null)\n sb.append(\"End: \").append(getEnd()).append(\",\");\n if (getMarker() != null)\n sb.append(\"Marker: \").append(getMarker()).append(\",\");\n if (getMaxItems() != null)\n sb.append(\"MaxItems: \").append(getMaxItems());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "36b0d82db82abf70751ecb2878c2d55e", "score": "0.5652959", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getSecurityControlId() != null)\n sb.append(\"SecurityControlId: \").append(getSecurityControlId()).append(\",\");\n if (getTitle() != null)\n sb.append(\"Title: \").append(getTitle()).append(\",\");\n if (getDescription() != null)\n sb.append(\"Description: \").append(getDescription()).append(\",\");\n if (getRemediationUrl() != null)\n sb.append(\"RemediationUrl: \").append(getRemediationUrl()).append(\",\");\n if (getSeverityRating() != null)\n sb.append(\"SeverityRating: \").append(getSeverityRating()).append(\",\");\n if (getCurrentRegionAvailability() != null)\n sb.append(\"CurrentRegionAvailability: \").append(getCurrentRegionAvailability());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" } ]
a2973ec0d7a472d696b7937bd42d60f9
System.out.println("xru="+xru+" xnombre="+xnombre+" xap="+xap+" xam="+xam);
[ { "docid": "baf11442adaccff71678b26607f7f705", "score": "0.0", "text": "@RequestMapping({\"modDatosAcceso_2.html\"})\n\t\tpublic String modDatos_2(Model model,@RequestParam String xcodper,String xpasswd,String xpasswd2) throws IOException {\n\n\t\t\ttry{\n\t\t\t\tif(xpasswd.equals(xpasswd2)){\n\t\t\t\t\tint sw=this.personasManager.modDatosAcceso(xcodper, xpasswd);\n\t\t\t\t}else{\n\t\t\t\t\tmodel.addAttribute(\"xtexto\", \" ERROR LAS CLAVES DEBEN SER IGUALES ..!\");\n\t\t\t\t\treturn \"mensajes\";\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\tmodel.addAttribute(\"xtexto\", \" ERROR AL MODIFICAR DATOS ..!\");\n\t\t\t\treturn \"mensajes\";\n\t\t\t}\n\t\t\tmodel.addAttribute(\"xtexto\", \"SE MODIFICO LA CLAVE SATISFACTORIAMENTE\");\n\n\t\t\treturn \"mensajes\";\n\t\t}", "title": "" } ]
[ { "docid": "ea33e547e404125c564de27e772b2204", "score": "0.66131574", "text": "public void resultado()\n {\n System.out.println(\"Nombre:\" +nombre);\n System.out.println(\"Gramos de proteinas ingeridos: \"+ proteinasIngeridas);\n System.out.println(\"Gramos de carbohidratos ingeridos: \"+ carbohidratosIngeridos);\n System.out.println(\"Gramos de grasas ingeridos: \"+ grasasIngeridas);\n System.out.println(\"Calorias ingeridas: \" + caloriasIngeridas);\n }", "title": "" }, { "docid": "99a7d17e31b6367ec0855ba3ea07bc47", "score": "0.6395571", "text": "public Ratones(String nombre, int comida) {\nthis.nombre = nombre;\nthis.comida = comida;\nSystem.out.println(nombre +\n\" Preparado para comer de \"+comida+ \" en \"+ comida);\n}", "title": "" }, { "docid": "42b5f30585f1e61461ba223835b22d14", "score": "0.63159335", "text": "@Override\r\n public String toString() {\n return nom+\" \"+prenom+\" \"+cin;\r\n }", "title": "" }, { "docid": "ee76d4c1535ad8e6a8debc7bca243389", "score": "0.6108975", "text": "void display(){\n System.out.println(\"Hasil pertambahan dari \" + this.a + \" + \" + this.b + \" = \" + this.hasilTambah);\n }", "title": "" }, { "docid": "7c1c40e39a37c4a3d3436527ecf3c330", "score": "0.605331", "text": "public void imprimirApuesta()\n {\n System.out.print(\"Número de Apuesta: \");\n System.out.println(numeroDeApuesta);\n System.out.print(\"Número de Partido: \");\n System.out.println(numeroDePartido);\n System.out.print(\"Cédula: \");\n System.out.println(cedula);\n System.out.print(\"Nombre: \");\n System.out.println(nombre);\n System.out.print(\"Monto Apostado al Equipo 1: \");\n System.out.println(montoEquipo1);\n System.out.print(\"Monto Apostado al Equipo 2: \");\n System.out.println(montoEquipo2);\n System.out.print(\"Monto Apostado a Empate: \");\n System.out.println(montoEmpate);\n System.out.print(\"Monto Apostado : \");\n System.out.println(montoApostado);\n System.out.print(\"Monto Pagado : \");\n System.out.println(montoGanado);\n System.out.print(\"Ganancia : \");\n System.out.println(ganancia);\n\n\n }", "title": "" }, { "docid": "960180b42d62e53a03e458c939d2c2b4", "score": "0.60505605", "text": "public void printValues(){\n\t\tSystem.out.print(\"x: \"+x+\"y: \"+y+\"z: \"+z);\n\t}", "title": "" }, { "docid": "b918190a94c1e229f8d867267060b725", "score": "0.59889776", "text": "private static void xuat() {\n\t\tfor(Integer i : data) {\r\n\t\t\tSystem.out.print(i+ \"\\t\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "331dd9102f75506722211ee924d6d5e8", "score": "0.5988115", "text": "public void MostrarDatos(){\n System.out.println(\"Su identificacion es :\" + Identificacion);\n System.out.println(\"Su Nombre es :\" + Nombre);\n System.out.println(\"Su Edad es :\" + Edad);\n }", "title": "" }, { "docid": "660da398da3abdc13fb906fdc6b310b7", "score": "0.59723973", "text": "public String toString(){\r\n\t\treturn jour+\"/\"+mois+\"/\"+annee;\r\n\t}", "title": "" }, { "docid": "563e00b01804617cc2e3f8c1ddf94f54", "score": "0.5913639", "text": "public static void main(String[] args){\n\n char iniciNom = 'N';\n char iniciCognom = 'D';\n\n //mostrem les dos inicials del nom\n\n System.out.println(\"Les inicials del teu nom son : \" + iniciNom + \".\" + iniciCognom);\n }", "title": "" }, { "docid": "a10d4af849a14bdf2f8e9bc92721791e", "score": "0.59093714", "text": "public static void main(String[] args) {\n\t\tbyte numero1; //números enteros de aquí\n\t\tint numero2;\n\t\tshort numero3;\n\t\tlong numero4; //A aquí\n\t\tfloat numero5; //Decimales \n\t\tdouble numero6; //Decimales.\n\t\tboolean isVariable;\n\t\tchar letra;\n\t\tfinal int numero7= 10;\n\t\t\n\t\t\n\t\tnumero1=10;\n\t\tnumero2=128;\n\t\tnumero3=129;\n\t\tnumero4=200;\n\t\t\n\t\tnumero5=0.200f;\n\t\tnumero6=3.1416;\n\t\tisVariable=true;\n\t\tletra='x';\n\t\t\n\t\tSystem.out.println(\"El valor de la variable byte es: \"+numero1+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable int es: \"+numero2+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable short es: \"+numero3+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable long es: \"+numero4+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable float es: \"+numero5+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable double es: \"+numero6+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable boolean es: \"+isVariable+\" genial\");\n\t\tSystem.out.println(\"El valor de la variable char es: \"+letra+\" genial\");\n\t\tSystem.out.println(\"El valor de la constante es: \"+numero7+\" genial\");\n\t\t\n\t\t//Declarando objetos.\n\t\tString cadena;\n\t\t\n\t\t//Inicializamos objeto (Instanciar el objeto o concretizar una clase)\n\t\tcadena = new String();\n\t\tcadena=\"Stand out\";\n\t\t\n\t\tSystem.out.println(\"El valor del objeto String es:\"+cadena+\" De nuevo genial\");\n\t\t\n\t\n\t\tint operacion1 = numero1+numero2;\n\t\tSystem.out.println(\"El valor de la suma es \"+operacion1);\n\t\t\n\t\t\n\t\t/////\n\t\t\n\t\tScanner sca = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"¿Cuántos números quieres sumar?\");\n\t\tint numero=0;\n\t\tint suma=0;\n\t\tint numerointroducido=0;\n\t\t\n\t\tnumero= sca.nextInt();\n\t\tSystem.out.println(\"La cantidad de números a sumar es: \"+numero);\n\t\t\n\t\tfor (int i=0;i<numero;i++)\n\t\t{\n\t\t\tSystem.out.println(\"Digita el numero: \");\n\t\t\tnumerointroducido=sca.nextInt();\n\t\t\tsuma=suma+numerointroducido;\n\t\t}\n\t\tSystem.out.println(\"La sumatoria de los números es: \"+suma);\n\t\t\n\t\tsuma=0;\n\t\tnumerointroducido=0;\n\t\tisVariable=true;\n\t\tint contador=1;\n\t\tint vueltas=0;\n\t\t\n\t\tSystem.out.println(\"¿Cuántas operaciones?\");\n\t\tvueltas=sca.nextInt();\n\t\t\n\t\twhile (isVariable)\n\t\t{\n\t\t\tSystem.out.println(\"Digita el número: \");\n\t\t\tnumerointroducido=sca.nextInt();\n\t\t\tsuma=suma+numerointroducido;\n\t\t\tcontador++;\n\t\t\tif (contador<=vueltas)\n\t\t\t{\n\t\t\t\tisVariable=false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"La sumatoria de los numeros es: \"+suma);\n\t\t\n\t\t\n\t\tsuma=0;\n\t\tnumerointroducido=0;\n\t\tisVariable=true;\n\t\tcontador=0;\n\t\tvueltas=0;\n\t\tSystem.out.println(\"Ingresa la cantidad de números a sumar\");\n\t\tvueltas=sca.nextInt();\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"Agrega los números que quieras sumar\");\n\t\t\tnumerointroducido=sca.nextInt();\n\t\t\tsuma=suma+numerointroducido;\n\t\t\tcontador++;\n\t\t\tif (contador>=vueltas)\n\t\t\t{\n\t\t\t\tisVariable=false;\n\t\t\t}\n\t\t}while(isVariable);\n\t\tSystem.out.println(\"El resultado de la suma es: \"+suma);\n\t}", "title": "" }, { "docid": "91728b62557f756381a72c0da034f9c1", "score": "0.5895503", "text": "public static void main(String args[]){\n // DEFINIMOS LA VARIABLE\n // EL VALOR DE LA VARIABLE DE TIPO INT ES: LITERAL DE TIPO ENTERO\n // primero declaramos nuestra variable, \n // siempre empieza indicando el tipo de dato de la variable\n int miVariableEntera = 10;\n // y ahora para que pinte en consola\n System.out.println(miVariableEntera);\n // MODIFICAMOS EL VALOR DE LA VARIABLE \n //ahora vamos a reutilizar la variable y le vamos a reasignar el valor\n // una vez que ha sido definida anteriormente no es necesario indicar \n //el tipo de dato\n miVariableEntera = 5;\n // ahora vamos a pintar en consola el valor: atajo sout + tabulador\n System.out.println(miVariableEntera);\n \n // DEFINIMOS VARIABLE DE TIPO STRING\n // EL VALOR DE LA VARIABLE DE TIPO STRING ES: LITERAL DE TIPO CADENA\n String miVariableCadena = \"Saludos\";\n System.out.println(miVariableCadena);\n \n // MODIFICAMOS EL VALOR DE LA VARIABLE DE TIPO STRING\n miVariableCadena = \"Adiós\";\n System.out.println(miVariableCadena);\n \n // VAR - inferencia de tipos en Java\n // java infiere el tipo de variable segun el tipo del literal\n var miVariableEntera2 = 20;\n System.out.println(miVariableEntera2);\n \n var miVariableCadena2 = \"Inferencia de datos\";\n // atajo soutv\n System.out.println(\"miVariableCadena2 = \" + miVariableCadena2);\n \n //EJEMPLO PARA DEFINIR VARIABLES EN JAVA\n var miVariable = 1;\n System.out.println(\"miVariable = \" + miVariable);\n var _miVariable = 2;\n System.out.println(\"_miVariable = \" + _miVariable);\n var $miVariable = 3;\n System.out.println(\"$miVariable = \" + $miVariable);\n }", "title": "" }, { "docid": "e3044646a50caa0dbb97e19788848742", "score": "0.5848436", "text": "public void printeq() {// to string a mano para saber como se hace\n System.out.println(\"equipo: \" + nom);\n System.out.println(\"procedencia: \" + procedencia);\n System.out.println(\"nombre de estadio: \" + nomEstadio);\n System.out.println(\"puntos totales: \" + puntos);\n System.out.println(\"\\n\");\n// for para mostrar los jugadores\n for (int i = 0; i < j.length; i++) {\n System.out.print(\"jugador\" + (i + 1) + \":\" + \"\\n\");\n j[i].print();\n\n }\n }", "title": "" }, { "docid": "275d234e98f1a62c8893600209faf0ed", "score": "0.58340174", "text": "public void mostrar(){\n\t\tSystem.out.println(\"Nombre: \"+nombre+\" Ataque: \"+ ataque+ \" Vida: \"+ vida +\" \"+ \"Estado:\"+ estado+\" \"+ \"mensaje:\"+ sonido);\n\t}", "title": "" }, { "docid": "62619d5b7268a9fa5725ff271610cca9", "score": "0.58295304", "text": "public static void main(String[] args) {\n Scanner entrada = new Scanner(System.in);\n entrada.useLocale(Locale.US); \n \n // declarar las variables\n String nombreAsignatura1;\n String nombreAsignatura2;\n double notaAsignatura1;\n double notaAsignatura2;\n String nombreEstudiante;\n \n System.out.println(\"Ingrese nombre de asignatura 1\");\n nombreAsignatura1 = entrada.nextLine();\n System.out.println(\"Ingrese nombre de asignatura 2\");\n nombreAsignatura2 = entrada.nextLine();\n \n System.out.println(\"Ingrese nota de asignatura 1\");\n notaAsignatura1 = entrada.nextDouble();\n System.out.println(\"Ingrese nota de asignatura 2\");\n notaAsignatura2 = entrada.nextDouble();\n entrada.nextLine();\n System.out.println(\"Ingrese nombre de estudiante\");\n nombreEstudiante = entrada.nextLine();\n \n \n System.out.printf(\"Asignatura 1: %s\\nNota 1:%.2f\\nAsignatura 2:%s\\n \"\n + \"Nota 2: %.2f\\nNombre de estudiante: %s\\n\",\n nombreAsignatura1,\n notaAsignatura1,\n nombreAsignatura2,\n notaAsignatura2,\n nombreEstudiante);\n \n }", "title": "" }, { "docid": "5ecb8589d2e8a10d5a52a78488791b83", "score": "0.582724", "text": "public void PrintPetaTetap(){\n try{\n for(int i = 0; i < this.baris; i++){\n for(int j =0; j < this.kolom; j++){\n System.out.print(GetElementPetaTetap(i,j) + \" \");\n }\n System.out.println(\"\");\n }\n \n System.out.println(\"Keterangan Simbol Pada Peta : \");\n System.out.println(\"- : GrassLand\");\n System.out.println(\"o : Sea\");\n System.out.println(\"^ : Mountains\");\n System.out.println(\"# : Tundra\");\n } catch(Exception exc){\n //\n }\n \n\n }", "title": "" }, { "docid": "3ea8f90dc3b02cc6a36a3558f01b6f37", "score": "0.58220994", "text": "public void saluta ()\n {\n System.out.println(mioSaluto); \n }", "title": "" }, { "docid": "7f53eb1080a716a272cc8d545ef47a56", "score": "0.58152425", "text": "@Override\n public String toString(){\n String resultado;\n resultado= \"\\nNombre: \" + nombre+ \"\\tApellidos: \" + apellidos+\"\\n\\tDNI: \"+dni+\"\\n\"; \n return resultado;\n \n }", "title": "" }, { "docid": "403d14d1a5cc25b9bcbf98773d979195", "score": "0.58039325", "text": "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.print(\"원하는 구구단 입력 : \");\n\t\tint gugu = s.nextInt();\n\t\t\n\t\tfor (int i=0; i<9; i++) {\n\t\t\tSystem.out.printf(\"%dX%d=%d\\n\", gugu, i+1, gugu*(i+1));\n\t\t\t// %d : gugu / %d : i+1 / %d\\n : gugu*(i+1) 치환\n\t\t\t// System.out.println(gugu + \"X\" + (i+1) + \"=\" + gugu*(i+1)); <- println을 사용하려면 이렇게 쓰면 됨\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "cd9fd66d0c2b82d89f06b61fa2646335", "score": "0.57849884", "text": "public void finalPrint(){\r\n for(int i=0;i<5;i++)\r\n System.out.println(\"Numero di movimenti che hanno \"+\r\n getCausal(i)+\" sono: \"+numGlobale[i]);\r\n }", "title": "" }, { "docid": "edc146b9e02ddd996e144a8c40f47177", "score": "0.5755618", "text": "void prosedur(String nama){\n\t\t\r\n\t\tSystem.out.println(\"Heloo Nama Saya adalah \"+nama);\r\n\t\t//System.out.println(\"hasilnya \"+hasil);\r\n\t}", "title": "" }, { "docid": "795b45fc5732984b08f0d5af4db414af", "score": "0.57394934", "text": "public void ingresarArmas(){\n System.out.println(\"\\n\\n| INGRESE EL TIPO DE ARMA QUE DESEA INGRESAR: \");\n System.out.println(\"| 1. Arma corto alcance.\");\n System.out.println(\"| 2. Arma largo alcance.\");\n System.out.print(\"| ELIJA UNA OPCIÓN: \"); \n }", "title": "" }, { "docid": "281c6dd93baf5461ca470da09698440d", "score": "0.5727921", "text": "public void println(){System.out.println(name + \" \" + price + \"€ \" + expiration);}", "title": "" }, { "docid": "18d4eff9988fc0757af648aa68f7bc38", "score": "0.57239044", "text": "public static void informacion(){\n System.out.println(\"\"\n + \"23) Reemplaza todas las a del String anterior por una e.\\n\"\n );\n }", "title": "" }, { "docid": "bfcd71f569295460887e23b016c99156", "score": "0.57144445", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"r \"+ramka+\" b \"+bit;\n\t}", "title": "" }, { "docid": "dfb10ed3750d7aee74661880e5c1ce33", "score": "0.57080704", "text": "public void printDatos() {\n\t\tSystem.out.println(\"El nombre es: \"+nombre+\" y la edad es: \"+edad);\n\t}", "title": "" }, { "docid": "179098a9b84b2a40b0ad3c7b70434b50", "score": "0.5699882", "text": "public String toString() {\n \n \t return obtenNumero() + \" \" + obtenNombre() + \" \" + obtenSaldo();\n }", "title": "" }, { "docid": "ce0267660256537a14fd1a6cb9c4759e", "score": "0.5699862", "text": "public void PrintPeta(){\n try{\n for(int i = 0; i < this.baris; i++){\n for(int j =0; j < this.kolom; j++){\n System.out.print(GetElementPeta(i,j) + \" \");\n }\n System.out.println(\"\");\n }\n \n System.out.println(\"Keterangan Simbol Pada Peta : \");\n System.out.println(\"- : GrassLand\");\n System.out.println(\"o : Sea\");\n System.out.println(\"^ : Mountains\");\n System.out.println(\"# : Tundra\");\n System.out.println(\"P : Player\");\n System.out.println(\"X : Active Engimon\");\n } catch(Exception exc){\n //\n }\n \n }", "title": "" }, { "docid": "7bccece89ff25b04e4436b061c46688f", "score": "0.5699336", "text": "public String printData(){\n\t\treturn first + \" | \" + second + \" | \" + third;\n\t}", "title": "" }, { "docid": "f3c3b1f6671085a3ff0e744f16dc2417", "score": "0.5689501", "text": "public static void main(String[] args) {\n\t\tArticulo Estudiante1 = new Articulo (\"25771858\",\"camisa\",\"channel\",50f);\r\n\t\tArticulo Estudiante2 = new Articulo (\"25771859\",\"pantalon\",\"Pioner\",125f);\r\n\t\tArticulo Estudiante3 = new Articulo (\"25771850\",\"polo\",\"adidas\",25f);\r\n\t\tSystem.out.println(Estudiante1.toString1());\r\n\t\tSystem.out.println(Estudiante2.toString1());\r\n\t\tSystem.out.println(Estudiante3.toString1());\r\n\t\tSystem.out.println(Estudiante1.toString2());\r\n\t\tSystem.out.println(Estudiante2.toString2());\r\n\t\tSystem.out.println(Estudiante3.toString2());\r\n\t}", "title": "" }, { "docid": "d024628ca8957e4d9e625b96dc0d46b8", "score": "0.5688213", "text": "public void Sapaan(){\n System.out.println(\"--- SELAMAT DATANG DI TOKO SALEMBA ---\");\n System.out.println(\"======================================\");\n }", "title": "" }, { "docid": "e6edcd5bb4092ab91210f5c7e1c8dd3a", "score": "0.56879747", "text": "public static void main(String[] args) {\n int idade = 10;\n long numeroGrande = 100000;\n double salarioDouble = 2000;\n float salarioFloat = 2500;\n byte idadeByte = 10;\n short idadeShort = 10;\n boolean verdadeiro = true;\n boolean falso = false;\n char caractere = '\\u0041';\n\n String nome = \"Goku\";\n System.out.println(idade);\n System.out.println(\"A idade é \" + idade + \" anos\" );\n System.out.println(verdadeiro);\n System.out.println(\"char \" + caractere);\n // atalho para escrever System.out.println = sout+tab\n System.out.println(\"Meu nome é \" + nome);\n\n\n }", "title": "" }, { "docid": "cf3aa267f646078716d2d1996a69e61d", "score": "0.5687049", "text": "public String toString(){\r\n\t\treturn \"\"+tipo+\" \"+salario+\" \"+data;\r\n\t}", "title": "" }, { "docid": "0d073b235a8c755ed9cf08e45dd720c9", "score": "0.567186", "text": "void show() {\r\n System.out.println(\"Nama : \" + this.namaa);\r\n System.out.println(\"NIM : \" + this.Ninduk);\r\n }", "title": "" }, { "docid": "3b3ed9d76b57c0ec5de34a4c71038b1f", "score": "0.5665813", "text": "public static void main(String args[]) {\n int miVariableEntera = 10;\n System.out.println(miVariableEntera);\n // Modificamos el valor de la varibale\n miVariableEntera = 5;\n System.out.println(miVariableEntera);\n \n // clase de java\n String miVariableCadena = \"Saludos\";\n System.out.println(miVariableCadena);\n \n miVariableCadena = \"Adios\";\n System.out.println(miVariableCadena);\n \n //var - inferencia de tipos en JAVA\n var miVariableEntera2 = 15 ;\n System.out.println(miVariableEntera2);\n \n var miVariableCadena2 = \"Un saludo\";\n //soutv + tab => rellena toda la linea siguiente automaticamete\n System.out.println(\"miVariableCadena2 = \" + miVariableCadena2); \n }", "title": "" }, { "docid": "71b2e457356c76de663e906c847d1dac", "score": "0.5664321", "text": "public void showArvore() {\n\t\tshowArvore(raiz);\n\t\tSystem.out.println(\"\");\n\t}", "title": "" }, { "docid": "eb8c59dc4f18c15316b94c93d66d476b", "score": "0.5664038", "text": "private void printPlateauMain(){\n\t\tSystem.out.println(plateau);\n\t\tSystem.out.println(sac);\n\t\tSystem.out.println(joueur);\n\t\tprintHelp();\n\t}", "title": "" }, { "docid": "4b0d1e9f2939312c75b2ad66faa19a33", "score": "0.5662388", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"\" + \r\n\t\t\t\tgetTunnusNro() + \"|\" +\r\n\t\t\t\tnimi;\r\n\t}", "title": "" }, { "docid": "a387b6fb8501183ff7681fdcaff58bb5", "score": "0.5659132", "text": "@Override\n public String toString(){\n return this.nombre + \" - \" + this.cantidad + \" - \" + this.precio; // devuelve los atributos del objeto\n }", "title": "" }, { "docid": "e9c068b060939cdba628ffbe9a505a40", "score": "0.5645878", "text": "public static void afficher() {\n\t\tSystem.out.println(\"\\n\"+\"|\"+a1+\"|\"+a2+\"|\"+a3+\"|\");\n\t\tSystem.out.println(\"|\"+b1+\"|\"+b2+\"|\"+b3+\"|\");\n\t\tSystem.out.println(\"|\"+c1+\"|\"+c2+\"|\"+c3+\"|\"+\"\\n\");\n }", "title": "" }, { "docid": "4d015a0b315a5b214059841d30bfe194", "score": "0.5641252", "text": "public String oviparos() {return \"SOY DE UN OVIPARO\";}", "title": "" }, { "docid": "2e45367c79e7a011eab9cc53fc2eae6c", "score": "0.56361127", "text": "public String toString(){\n\t\treturn \"\\t\" + nombre + \":\" + precio + \":\" + cantidad;\n\t}", "title": "" }, { "docid": "baf5a33f3204bc2e86998f4d09a6b757", "score": "0.5617829", "text": "public static void main(String[] args) {\n\t\t String name = \"RAM\";\n int java = 95;\n int c = 38;\n int cpp = 82;\n int facebook = 100;\n \n \n \n int total = java +c+cpp+facebook;\n \n \n System.out.println(\"=================================\");\n System.out.println(\" STUDENT \");\n System.out.println(\"java :\" +java);\n System.out.println(\"c :\" +c);\n System.out.println(\"cpp :\"+cpp);\n System.out.println(\"facebook :\" +facebook);\n\t}", "title": "" }, { "docid": "39242e0bd723909537093b5bd96f6064", "score": "0.56095904", "text": "public String getPlaca(){\n String varPlaca= \"\";\n varPlaca= txbPlaca.getText();\n System.out.println(varPlaca);\n return varPlaca;\n }", "title": "" }, { "docid": "94be00063c8cf40b7411618a842529ce", "score": "0.56020933", "text": "public final void prepararPozoleTradicional(){\n System.out.println(\"El pozole se prepara con carnitas\"); \n }", "title": "" }, { "docid": "586222ea04b8a8b9e8f861b77b7cf327", "score": "0.5600965", "text": "public static void main(String[] args) {\n int one = 1;\n int two = 2;\n int three = 3;\n int four = 4;\n System.out.println(\"Uno: \" + one + \"\\tDos: \" + two + \"\\tTres: \" + three + \"\\tCuatro: \" + four);\n}", "title": "" }, { "docid": "038e5e0d2ec4bebe7a49a6115ea2faba", "score": "0.5597564", "text": "public String toString(){\n\tString resposta;\r\n\r\n\tresposta= \"\"+ entrada +\"\"; //O vector ficou:\r\n\r\n\treturn resposta;\r\n}", "title": "" }, { "docid": "ba1e5a8b74c94b6574eb0bd673566a1a", "score": "0.5596234", "text": "public static void main(String[] args) {\n\t\tScanner sc= new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"이름을 적으세요 : \");\n\t\tString name = sc.nextLine();\n\t\tSystem.out.print(\"나이를 적으세요 : \");\n\t\tint age = sc.nextInt();\n\t\tSystem.out.print(\"주소를 적으세요 : \");\n\t\tsc.nextLine();\n\t\tString addr = sc.nextLine();\n\t\tSystem.out.print(\"키를 적으세요 : \");\n\t\tdouble key = sc.nextDouble();\n\t\tSystem.out.print(\"몸무게를 적으세요 : \");\n\t\tdouble wei = sc.nextDouble();\n\t\tSystem.out.println(\"성별을 적으세요 : \");\n\t\tsc.nextLine();\n\t\tchar sex = sc.next().charAt(0);\n\t\t\n\t\tSystem.out.println(\"--------출력--------\");\n\t\tSystem.out.println(\"당신의 이름은 \" + name + \" 이군요\");\n\t\tSystem.out.println(\"당신의 나이는 \" + age + \"세 이군요\");\n\t\tSystem.out.println(\"당신의 주소는 \" + addr + \" 이군요\");\n\t\tSystem.out.println(\"당신의 키는\" + key + \"cm 이군요\");\n\t\tSystem.out.println(\"당신의 몸무게는 \" + wei + \"kg 이군요\");\n\t\tSystem.out.println(\"당신의 성별은 \" + sex + \" 이군요\");\n\t}", "title": "" }, { "docid": "68f499e36a764f140f5af6043065ad63", "score": "0.5592039", "text": "public static void main(String[] args) {\n\n int box1; //esto es declarar una variable\n int num2;\n int resultado;\n box1 = 5;\n num2 = 30;\n resultado = box1 + num2;\n\n //Estas lineas imprimen el resultado\n System.out.println(\"El resultado es:\");\n System.out.println(resultado);\n\n float salario;\n salario = 1020239.43f;//se le pone una f para que java reconozca que es una variable tipo float\n\n double resultadoCientifico;\n resultadoCientifico = 1234.12312342;\n\n boolean siSalimosMediaNoche;//las variables empiezan en minuscula\n siSalimosMediaNoche = false;\n\n String miNombre;\n miNombre = \"Brayan B.Barboza\";//importante que lleva doble comilla\n\n char tipoSangre;\n tipoSangre = 'O';//importante que lleva comilla simple y un solo caracter\n\n }", "title": "" }, { "docid": "4df8463d4454a7409842bc51e22fb348", "score": "0.55840147", "text": "public void visualizacionGastoPartido(){\n System.out.println(\"El gasto por el partido Polo es de: $\"+gastoPartidoPolo);\n System.out.println(\"El gasto por el partido Liberal es de: $\"+gastoPartidoLiberal);\n System.out.println(\"El gasto por el partido Verde es de: $\"+gastoPartidoVerde);\n System.out.println(\"El gasto por el partido Mira es de: $\"+gastoPartidoMira);\n }", "title": "" }, { "docid": "b0363abe19bfcb27b2de23602b7dd89c", "score": "0.5570116", "text": "public void showData(){\n \tSystem.out.println(\"showData starts...\");\r\n \tSystem.out.println(\"value in var a = \"+a);\r\n \tSystem.out.println(\"value in var b = \"+b);\r\n \tSystem.out.println(\"showData ends..\");\r\n \treturn;\r\n }", "title": "" }, { "docid": "34b852016e23fc96a34d1127ede454a0", "score": "0.5564101", "text": "@Override\r\n\tpublic void visualizar() {\n\t\tSystem.out.println(String.format(\"%-16s\",this.nombre).substring(0,16) + \"\\t\" + String.format(\"%-16s\",this.apellido).substring(0,16) + \"\\t\" + String.format(\"%-12s\",this.dni) + \"\\t\" + this.email);\r\n\t}", "title": "" }, { "docid": "5ebf173f2de70931f17624bb75cf0cd9", "score": "0.556323", "text": "@Override\n\tpublic void printVariables()\n\t{\n\t\tint spaceSize = -35;\n\t\t\n\t\tSystem.out.println(\"EX vars\");\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x %s\", \"\\tInstruction\",\n\t\t\t\tstate.currentInstruction,\n\t\t\t\tInstructionExtractor.format(state.currentInstruction)));\n\t\t\t\t\n\t\tString formattedInstructionAddress = ((state.currentInstructionAddress == -1\n\t\t\t\t|| state.bubble) ? \"--------\"\n\t\t\t\t\t\t: String.format(\"%08x\", state.currentInstructionAddress));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %s\", \"\\tInstructionAddress\",\n\t\t\t\tformattedInstructionAddress));\n\t\t\t\t\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tForwardCt1MemToReg\",\n\t\t\t\tstate.forwardCt1Memtoreg));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tForwardCt1Regwrite\",\n\t\t\t\tstate.forwardCt1Regwrite));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tForwardCt1Memwrite\",\n\t\t\t\tstate.forwardCt1Memwrite));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tForwardCt1Memread\",\n\t\t\t\tstate.forwardCt1Memread));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\",\n\t\t\t\t\"\\tForwardCt1LinkAddress\", state.forwardCt1Linkaddress));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tForwardCt1Jal\",\n\t\t\t\tstate.forwardCt1Jal));\n\t\t\t\t\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %x\", \"\\tct1AluSrc\", state.ct1Alusrc));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %08x\", \"\\tct1AluOp\", state.ct1Aluop));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %x\", \"\\tct1RegDst\", state.ct1Regdest));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tct1AddressRt\",\n\t\t\t\tstate.ct1RtAddress));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tct1AddressRd\",\n\t\t\t\tstate.ct1RdAddress));\n\t\t\t\t\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\", \"\\tct1Branchtarget\",\n\t\t\t\tstate.ct1Branchtarget));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %x\", \"\\tct1Jump\", state.ct1Jump));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %x\", \"\\tct1Branch\", state.ct1Branch));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\", \"\\tct1JumpTarget\",\n\t\t\t\tstate.ct1JumpTarget));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %x\", \"\\tct1Pcsrc\", state.ct1Pcsrc));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tct1ForwardX\",\n\t\t\t\tstate.ct1Forwardx));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %x\", \"\\tct1ForwardY\",\n\t\t\t\tstate.ct1Forwardy));\n\t\t\t\t\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\",\n\t\t\t\t\"\\tDataImmediateSignExtended\", state.dataImmediateSignextended));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %08x\", \"\\tDataRs\", state.dataRs));\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %08x\", \"\\tDataRt\", state.dataRt));\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\", \"\\tDataX (ALU0)*\",\n\t\t\t\tstate.dataX)); // + rs_forwarded\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"%\" + spaceSize + \"s %08x\", \"\\tDataEffY*\", state.dataEffY)); // +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// rt_forwarded\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\", \"\\tDataY (ALU1)*\",\n\t\t\t\tstate.dataY));\n\t\t\t\t\n\t\tSystem.out.println(String.format(\"%\" + spaceSize + \"s %08x\", \"\\tInternalAluOut\",\n\t\t\t\tstate.internalAluOut));\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "b6cf50910fd749bd6d60ec3ce94c7e3e", "score": "0.5559777", "text": "public void afisareAngajat() {\n\t\tSystem.out.println(nume+\" \"+varsta+\" \"+salariu+\" \"+departament+\" \"+CNP);\n\t}", "title": "" }, { "docid": "4f0c375332e43a58611fd0dbc10b3881", "score": "0.55578226", "text": "void showVariables() {\n\t\tSystem.out.println(variable1);\r\n\t\tSystem.out.println(variable2);\r\n\t}", "title": "" }, { "docid": "03a7a289a8d4463e6d75524102a872bb", "score": "0.55554336", "text": "public void Display(){\n System.out.println(\"Nama Kasir: \"+getNama_Kasir());\n System.out.println(\"Nama Pembeli: \"+getNama_Pembeli());\n System.out.println(\"Tanggal Pembelian: \"+getTgl_Pembelian());\n System.out.println(\"Jenis Buku: \"+getJenis_Buku());\n System.out.println(\"Bonus Pembelian: \"+getBonus_Pembelian());\n }", "title": "" }, { "docid": "04c0dfca56ddedd8cc076d3cc9b2adb1", "score": "0.55393016", "text": "public void muestraDatos()\n {\n System.out.println(\"Nombre: \" + nombre);\n System.out.println(\"Proteinas por cada 100 gramos: \" + this.gramosProteínas);\n System.out.println(\"Carbohidratos por cada 100 gramos: \" + this.gramosCarbohidratos);\n System.out.println(\"Grasas por cada 100 gramos: \" + this.gramosGrasas);\n System.out.println(\"Calorias: \" + getCalorias100Gramos());\n System.out.println(\"Componente/s mayoritario/s: \" + componenteMayor());\n\n }", "title": "" }, { "docid": "8f969ec50593ee255bf73d0225735489", "score": "0.5536207", "text": "@Override\n public String toString() {\n return nama_tempat_usaha;\n }", "title": "" }, { "docid": "0fdc234b51ad42e1581353d0b912ac79", "score": "0.55358845", "text": "public String toString(){\n StringBuffer avion = (new StringBuffer(\"Compañía: \")).append(compania).append(espacio);\n avion.append(\"Plazas turista/primera: \").append(plazasTurista).append(\"/\").append(plazasPrimera).append(espacio);\n avion.append(\"Modelo: \").append(modelo);\n \n \n return avion.toString();\n }", "title": "" }, { "docid": "1b615b9674dfbc685b520ee30822b827", "score": "0.55284834", "text": "public static void main(String[] args) {\n\n Integer numero = null; // podemos dar valor null a variables no primitivas\n\n //al escribir numero. se extenderan varios metodos\n\n System.out.println(\"El numero es:\"+numero);\n\n\n //CADENAS\n\n String palabra = \"Hola que tal\"; // se usan comillas dobles las simples son para los caracteres.\n\n //al escribir palabra. se extenderan varios metodos\n\n System.out.println(palabra);\n\n\n }", "title": "" }, { "docid": "3f27b2610fdfe653440c3505484cc9a1", "score": "0.55266404", "text": "public void print() {\n\tprint(first);//richiama il metodo PRIVATO DI STAMPA\n}", "title": "" }, { "docid": "34760d0654e72ed322d9a25973d37d1d", "score": "0.5518678", "text": "public void print() {\n for(int j = 0; j < count; j++)\n {\n System.out.println(personArray[j].toString());\n }\n //System.out.println(\"strVar1:\\t\" + strVar1);\n }", "title": "" }, { "docid": "1bb692bd782072b69ea7c281ece444a6", "score": "0.55102533", "text": "public String toString() {\n return \"(\" + naam + \", \"+ koers + \")\";\n }", "title": "" }, { "docid": "337587a6d3f75950d168a971df8effc0", "score": "0.55073184", "text": "public String disparar(){\n return \"Te estoy disparando con un daño de\"+danio+\"pts\";\n }", "title": "" }, { "docid": "fb1a79346ded6cb846c3b2051f04faa8", "score": "0.55067647", "text": "@Override\n public String toString()\n {\n return numDocumento + fonePessoa + tipoFone;\n }", "title": "" }, { "docid": "6d187b30e8da3a2d097315989bd165d5", "score": "0.55065966", "text": "public static void main(String[] args) {\n\n for (int satir = 1; satir <= 6; satir++) {//satır kontrolü\n\n for (int bosluk = 1; bosluk < satir; bosluk++) {// boşluk yazdırma\n\n System.out.print(\" \");\n }\n for (int rakam = satir; rakam <= 6; rakam++) {//sutun kontrolu\n\n System.out.print(rakam + \" \");// rakam+ \" \" olazsa sağa dayalı olur düzgün üçgen olmaz\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "8be776832a1f8422e688dee23fbada49", "score": "0.5499054", "text": "public void mostrarCliente(){ \n System.out.println(\"Nombre: \"+nombre);\n System.out.println(\"DNI: \"+NIF);\n System.out.println(\"Telefono: \"+telefono);\n System.out.println(\"Correo: \"+correo);\n System.out.println(\"Fecha nacimiento: \"+fechaNacimiento);\n }", "title": "" }, { "docid": "f357044771d8b00c690d86c3164e9b13", "score": "0.54904795", "text": "public String toString() {\n\treturn dia+\"/\"+mes+\"/\"+anio;\n }", "title": "" }, { "docid": "4eafb867befeb0ebf0d39397b7575c61", "score": "0.5487172", "text": "public static void main(String[] args) {\n\n byte monTresPetitEntier;\n short monPetitEntier;\n int monEntier;\n long monGrandEntier;\n\n // Les réels\n\n // float = 4 octet\n // double = 8 octet\n\n float monReel;\n double monReelPrecis;\n\n // Les autres\n\n // char = 2octets\n // String = ?? octets\n // boolean = 1 octet\n\n boolean bool = true; // ou false (et rien d'autre)\n char monChar = 'a';\n String maChaineDeCara = \"ma chaine de caractère\";\n\n // Attention à la différence var par valeur/var par référence\n\n // affectation\n\n monEntier = 2;\n\n // déclaration avec init\n\n int varInit = 56;\n\n // déclarer plusieurs variables\n\n int age = 2, taille, poid = 5;\n\n // constantes\n\n final int TAXE = 21;\n // TAXE = 22; impossible\n\n // Les conventions de nommage\n\n int camelCase;\n int snake_case;\n final int CONSTANTE = 10;\n }", "title": "" }, { "docid": "fc7ef745989c66b9776678dcb2ad1bb7", "score": "0.5482025", "text": "public String toString(){\n return (\"Lampe \"+nom+\" : \"+(allume?\"allumée\":\"éteinte\"));\n }", "title": "" }, { "docid": "5265c7d01b5bbc98ed612221a9c20f25", "score": "0.5477212", "text": "@Override\n public String toString() { //No se va a poder mostrar los punteros \n return \"\"+dato;\n }", "title": "" }, { "docid": "fae22b8cdd824b9c17d3e629d5a60b85", "score": "0.54759437", "text": "public void print() {\n System.out.print( \"empno = \" + getempno() + \" age = \" + getage() + \n \" dept = \" + getdept() + \" name = \" + getname() + \"\\n\");\n }", "title": "" }, { "docid": "7a203f913a98ca50acea42e2d3331fea", "score": "0.54738855", "text": "public static void main(String[] args) {\n Okreg okreg = new Okreg(5);\n System.out.println(String.format(\"%.2f\", okreg.obliczObwod()));\n System.out.println(okreg.obliczPole());\n\n Kwadrat kwadrat = new Kwadrat(5);\n System.out.println(kwadrat.obliczPole());\n System.out.println(kwadrat.obliczObwod());\n\n\n Figura figura = new Prostokat(2,5);\n System.out.println(figura.obliczObwod());\n\n\n Figura[] figury = new Figura[]{kwadrat, okreg, okreg, kwadrat, figura};\n\n System.out.println(\"łączny obwód figur\");\n double obwod=0;\n for (Figura f:figury){\n obwod+= f.obliczObwod();\n }\n System.out.println(String.format(\"Obwód wyniesie %.2f\", obwod));\n\n\n\n }", "title": "" }, { "docid": "7de532261c0103357fd17a6235ed4bfd", "score": "0.5472778", "text": "public String toString(){\n\t\treturn \"Nombre: \"+ nombre + \" Salario: \"+ salario + \" Numero de empleado: \"+ numEmpleado;\n\t}", "title": "" }, { "docid": "a3505784d6f9dc9cffd1117bbd4e36cc", "score": "0.5467609", "text": "private static void xoa() {\n\t\tSystem.out.println(\"vị trí muốn xóa: \");\r\n\t\tint vt= sc.nextInt();\r\n\t\tdata.remove(vt-1);\r\n\t}", "title": "" }, { "docid": "e43dd263d5d62245169baff0844ccd28", "score": "0.5465519", "text": "String getNamaa() {\r\n return this.namaa;\r\n }", "title": "" }, { "docid": "12291fe88256a4a05e1589039983f4bd", "score": "0.54628056", "text": "public String toString(){\n\t\treturn super.toString() + \"\\t\" + \"Sexe : \" + Femelle.SEXE + \" ; Enclos residence : \" + enclosResidence.getNom() \n\t\t\t\t+ \" ; Enceinte : \" + this.convertBolleanToString(enceinte) + \"\\n\" + \"\\t\" + \"Période de gestation : \" + periodeEnfantement\n\t\t\t\t+ \" Temps de accouplement : \" + tempEnceinte + \" ; Maturité sexuelle : \" + maturiteSexuelle +\"ans\";\n\t}", "title": "" }, { "docid": "a02e5d75e5bcef538cf922c86c303583", "score": "0.54625076", "text": "public void mostrarDatosPersona() {\r\n\r\n //imprimimos los datos que el usuario ingreso\r\n System.out.println(Alias + \" - \" + Correo);\r\n\r\n }", "title": "" }, { "docid": "d292a8b37858e3dadc700cb56d888c46", "score": "0.5462077", "text": "public String toString()\r\n\t{\r\n\t\treturn (askBaseInfo()+\"\\nSalaire : \"+askSalaire() +\" année d'ancienneté : \"+calculAnnuite()+\"\\n\\nSecretaire en charge de ce manager: \" + s.askBaseInfo());\r\n\t}", "title": "" }, { "docid": "9bef8a72830dff17aa1955a0afeb7bfb", "score": "0.5459072", "text": "void display (){System.out.println(rollno+\" \"+name+\" \"+college);}", "title": "" }, { "docid": "9d6b2a059ed1106ed74cc77dc8163a0d", "score": "0.5451297", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"El sueldo es de \"+sueldo+\"$\";\n\t}", "title": "" }, { "docid": "182efe767c5c9ce5c58d9c7f3ef8a7e7", "score": "0.5450741", "text": "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int panjang = 0 , lebar = 0, luas = 0;\n\n System.out.print(\"Panjang : \" );\n panjang = scan.nextInt();\n System.out.print(\"Lebar : \");\n lebar = scan.nextInt();\n luas = panjang * lebar;\n System.out.println(\"Luas : \" +luas);\n }", "title": "" }, { "docid": "4944a0d251b9cc421a931704f9daeb58", "score": "0.545013", "text": "public void DartarBuku(){\n System.out.println(\"DAFTAR NAMA BUKU\");\n System.out.println(\"1. Komet Minor\");\n System.out.println(\"2. Senja dan Pagi\");\n System.out.println(\"3. Laskar Pelangi\");\n System.out.println(\"4. Mariposa\");\n System.out.println(\"5. How Could?\");\n System.out.println(\"6. Bintang\");\n }", "title": "" }, { "docid": "55656447e2c69b06b862d756410a41db", "score": "0.54426014", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString sang;\n\t\tint su,dan;\n\t\t\n\t\tSystem.out.println(\"상품명 입력\");\n\t\tsang=sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"수량 입력\");\n\t\tsu=sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"단가 입력\");\n\t\tdan=sc.nextInt();\n\t\t\n\t\t//printf를 이용해서 전체를 출력해보자\n\t\tSystem.out.printf(\"%30s\\n\\n\",\"**구입상품**\");//우측정렬\n\t\tSystem.out.printf(\"%-30s\\n\\n\",\"**구입상품**\");//왼쪽정렬\n\t\tSystem.out.printf(\"상품명 : %s\\n\",sang);\n\t\tSystem.out.printf(\"수량 : %d\\n\",su);\n\t\tSystem.out.printf(\"단가 : %d\\n\",dan);\n\t\tSystem.out.printf(\"총금액 : %d\\n\",su*dan);\t\t\n\t}", "title": "" }, { "docid": "867314e15b1d810b2754b690fdb1fa81", "score": "0.5436209", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Bonjour ! \");\n\t\tint a = 5 ;\n\t\tSystem.out.println(a);\n\t\tbyte essai = 52;\n\t\tSystem.out.println(essai);\n\t\tshort nombre = 528;\n\t\tSystem.out.println(nombre);\n\t\tfloat decimal = 5f;\n\t\tSystem.out.println(decimal);\n\t\tboolean bouleen = true; \n\t\tSystem.out.println(bouleen);\n\t\tdouble ddouble = 52d;\n\t\tSystem.out.println(ddouble);\n\t\tlong Long = 8l;\n\t\tSystem.out.println(Long);\n\t\tString maChaine = \"Bonjour je suis une patate\";\n\t\tSystem.out.println(maChaine);\n\t\t double v = 057; //déclaration du chiffre en base 8, notation octale, 7 fois 8puissance 0 + 5*8 \n\t\t System.out.println(v);\n\t\t \n\t\t \n\t}", "title": "" }, { "docid": "68ffa019eb86ef41c6641fc4501b7620", "score": "0.5435043", "text": "@Override\n public String toString(){\n return \" Nombre del cliente: \" + user +\"\\n\"+\n \" Fechas del préstamo: \" + fechaIni + \"-\" +fechaFin+ \"\\n\"+\n \" Importe para el propietario: \" +importeProp+ \" euros\" + \"\\n\"+\n \" Importe para la startup: \"+importeStart+ \" euros\" + \"\\n\";\n }", "title": "" }, { "docid": "11bb83dc5c0586587203b12623131a3f", "score": "0.5431591", "text": "public String getNama_Kasir(){\n //Mengembalikan atau mengoutputkan nilai\n return nama_kasir;\n }", "title": "" }, { "docid": "f47779967ed50de4d4ff8a8ea85e15b7", "score": "0.5415058", "text": "public void show(){\n if (accountNumber!=0)\n System.out.println(\"Account Number \"+accountNumber);\n if (accountName!=null)\n System.out.println(\"Account name \"+accountName);\n if (bankName!=null)\n System.out.println(\"Bank name \"+bankName);\n if (ifscCode!=null)\n System.out.println(\"IFSC Code \"+ifscCode);\n if (branch!=null)\n System.out.println(\"Branch \"+branch);\n\n }", "title": "" }, { "docid": "eebd6a098927ebcfa062ba504c3c7edd", "score": "0.5411741", "text": "public void print(){\n\t NodoDouble auxiliar = cima;\n for(int i = 0; i< tamanio; i++){\n System.out.println(auxiliar.data);\n auxiliar = auxiliar.link;\n }\n System.out.println();\n }", "title": "" }, { "docid": "0750dc7e384466f404d61aa2bea41046", "score": "0.54114956", "text": "public void affiche() {\n\t\t\tSystem.out.println(\"Valeur: \" + cpt);\n\t\t}", "title": "" }, { "docid": "d4850f731970a656d003c69386fd98fc", "score": "0.5410607", "text": "public void afficher() {\n System.out.println(\"Voici les informations de la salle : \");\n System.out.println(toString());\n }", "title": "" }, { "docid": "2bdf19d81de851ce96cc6a075c622963", "score": "0.54063904", "text": "public String toString() {\r\n return \"\\nEl Avion:\" + super.toString()\r\n + \"\\n Tiene una Altitud de : \" + this.getAltitud()\r\n + \"\\n Con una Altitud Maxima de vuelo de : \" + this.getALTITUDMAXIMA()\r\n + \"\\n Presenta capacidad para un total de : \" + this.getTRIPULACIONMAXIMA() + \" tripulantes\";\r\n }", "title": "" }, { "docid": "1c428ebed014c7f2621388e815b0151b", "score": "0.54062617", "text": "public static void afficherNombreDAnimaux() {\n System.out.println(\"**************************\");\n System.out.println(\"Il y a \" + totalAnimal + \" animaux\");\n}", "title": "" }, { "docid": "a6a1b6f1a0e3d6035780e5f7ee6e9bd1", "score": "0.54059577", "text": "public void affiche ()\n {\n System.out.println(this.toString());\n }", "title": "" }, { "docid": "758449117a4b2420f730cbf2e2accd91", "score": "0.5403831", "text": "private void mostrar(String[] opciones){\n\t\tSystem.out.println(titulo);\n\t\t\n\t\tfor(int i=0;i<opciones.length;i++){\n\t\t\tSystem.out.println(i+\". \"+opciones[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "34cb437d64609c58ed37a77dbb3c3a5e", "score": "0.5401125", "text": "void anu1(int i,String n,int a){ \n id = i; name = n; \n age=a; \n System.out.println(id+\" \"+name+\" \"+age);\n }", "title": "" }, { "docid": "6d34903ecdb6e1ccc73edca662c7951f", "score": "0.5396896", "text": "public void r_Display()\r\n {\r\n System.out.println(\"Restaurant id: \"+r_id);\r\n System.out.println(\"Restaurant contact Number: \"+contact);\r\n System.out.println(\"Restaurant name: \"+name);\r\n System.out.println(\"Restaurant address: \"+address);\r\n System.out.println(\"Restaurant email: \"+email);\r\n System.out.println(\"Restaurant website: \"+website);\r\n }", "title": "" }, { "docid": "d4996ab49a53c2a12830f69c50e88ad6", "score": "0.5396459", "text": "public static void main(String[] args) {\n String p1 = \"James\";\n String p2 = \"Jill\";\n String p3 = \"Bob\";\n String p4 = \"Betty\";\n String p5 = \"Herb\";\n //WRITE YOUR CODE BELOW THIS LINE:\n\n System.out.println(p3+\", \"+p2+\", \"+p4+\", \"+p5+\", \"+p1);\n\n\n\n\n }", "title": "" }, { "docid": "82e422b2f1005b6dd41579a580fd6ad0", "score": "0.53916764", "text": "@Override\n public String toString() {\n \treturn \"tno\"+tno;\n }", "title": "" }, { "docid": "421ff4bced93e3c95d2ee0579002a84f", "score": "0.53863394", "text": "static void saludar(String nombre) {\r\n System.out.println(\"\\n\\tHola \" + nombre);\r\n }", "title": "" }, { "docid": "500f635ecdee502d9a7670e998f1e05d", "score": "0.53816056", "text": "private void printData() {\n\t\t\tSystem.out.println(\"int a : \"+a);\n\t\t\tSystem.out.println(\"int b : \"+b);\n\t\t\tSystem.out.println(\"static int c : \"+c);\n\t\t}", "title": "" } ]
f3b27211a02fd9b9554c0f8d5b1bade8
inputs/outputs Builds the tagged tree and returns its root.
[ { "docid": "f0a5c85acad893ec5f18b8659ff5a585", "score": "0.6934276", "text": "public Node build() {\n Tokenizer tokenizer = new Tokenizer(tags, text);\n while ((nextToken = tokenizer.next()) != null) {\n handleNextToken();\n }\n return root;\n }", "title": "" } ]
[ { "docid": "dde0b1f6d42573a7e9884a2b40de67a9", "score": "0.6814301", "text": "private Tree<String> buildTree(){\n \t//Above doesn't matter if we know to start at root every time\n \tTree<String> parseTree = new Tree<String>(\"ROOT\");\n \t//System.out.println(back2);\n \trecursivelyBuildTree(parseTree, \"ROOT\", 0, numWords);\n \t//unmarkov\n \t//printScoreMap();\n \t//System.out.println(parseTree);\n \treturn TreeAnnotations.unAnnotateTree(parseTree);\n }", "title": "" }, { "docid": "95ee1c78c565f9a1f2e87507ec343381", "score": "0.67040014", "text": "public void build() {\n if(!sc.hasNextLine()) {\n root = new TagNode(\"\", null, null);\n } else {\n \troot = new TagNode(sc.nextLine().replaceAll(\"[<>]\", \"\"), null, null);\n\n \tStack<TagNode> openNodes = new Stack<>();\n \topenNodes.push(root);\n\n \tTagNode ptr = root;\n\n \twhile(sc.hasNextLine()) {\n \t\tString str = sc.nextLine();\n\n \t\tif(str.contains(\"<\") && str.charAt(1) != '/') {\n \t\t\t// find first non-null node of relevant parent\n\t\t\t\t\tTagNode prev = openNodes.peek();\n\n\t\t\t\t\tif(prev.firstChild == null) {\n\t\t\t\t\t\tprev.firstChild = new TagNode(str.replaceAll(\"[<>]\", \"\"), null, null);\n\t\t\t\t\t\tptr = prev.firstChild;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprev = prev.firstChild;\n\n\t\t\t\t\t\twhile(prev.sibling != null)\n\t\t\t\t\t\t\tprev = prev.sibling;\n\n\t\t\t\t\t\tprev.sibling = new TagNode(str.replaceAll(\"[<>]\", \"\"), null, null);\n\t\t\t\t\t\tptr = prev.sibling;\n\t\t\t\t\t}\n\n\t\t\t\t\topenNodes.push(ptr);\n \t\t} else if(str.contains(\"<\")){\n \t\t\topenNodes.pop();\n\n \t\t\tif(openNodes.size() > 0)\n \t\t\t\tptr = openNodes.peek();\n \t\t\telse\n \t\t\t\tbreak;\n \t\t} else {\n \t\t\tif(ptr.firstChild == null)\n \t\t\t\tptr.firstChild = new TagNode(str, null, null);\n \t\t\telse {\n \t\t\t\tptr = ptr.firstChild;\n\n \t\t\t\twhile(ptr.sibling != null)\n\t\t\t\t\t\t\tptr = ptr.sibling;\n\n \t\t\t\tptr.sibling = new TagNode(str, null, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n }\n }", "title": "" }, { "docid": "7b6654a234c2666182f5b17121d6a23e", "score": "0.63942236", "text": "public void build() {\n\t\tStack<TagNode> tagStack=new Stack<TagNode>();\n\t\troot=new TagNode(\"html\",null,null);\n\t\tsc.nextLine();\n\t\ttagStack.push(root);\n\t\twhile (sc.hasNext()){\n\t\t\tString temp=sc.nextLine();\n\t\t\tBoolean Tag=false;\n\t\t\tif (temp.charAt(0)=='<'){\n\t\t\t\tif (temp.charAt(1)=='/'){\n\t\t\t\t\ttagStack.pop();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp=temp.replace(\">\",\"\");\n\t\t\t\t\ttemp=temp.replace(\"<\",\"\");\n\t\t\t\t\tTag=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tTagNode node=new TagNode(temp, null, null);\n\t\t\tif (tagStack.peek().firstChild==null) {\n\t\t\t\ttagStack.peek().firstChild=node; \n\t\t\t}\n\t\t\telse{\n\t\t\t\tTagNode traverse=(tagStack.peek()).firstChild;\n\t\t\t\twhile (traverse.sibling != null){\n\t\t\t\t\ttraverse=traverse.sibling;\n\t\t\t\t}\n\t\t\t\ttraverse.sibling=node;\n\t\t\t}\n\t\t\tif (Tag==true){\n\t\t\t\ttagStack.push(node);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "43dc50410ac934ae3c38dc3c4a8b5d38", "score": "0.6081318", "text": "private String getStartingTree(File input) {\n\t\tString inputTree = \"\";\n\t\ttry {\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(input);\n\t\t\tdoc.getDocumentElement().normalize();\n\t\t\tElement treeOld = (Element) doc.getElementsByTagName(\"tree\").item(0);\n\t\t\tinputTree = treeOld.getAttribute(\"newick\")+\";\";\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\treturn inputTree;\n\t}", "title": "" }, { "docid": "04a9949114d1c2590f8167326fd17eae", "score": "0.59875256", "text": "@Override\r\n public NaturalLanguageTree build() {\r\n return new NaturalLanguageTree(this);\r\n }", "title": "" }, { "docid": "a9aa5a92ebd3648d0c5aa5c9e1d92ead", "score": "0.58830065", "text": "private static BinaryTree buildExample1() {\n BinaryTree a = new BinaryTree(\"A\");\n BinaryTree b = new BinaryTree(\"B\");\n BinaryTree c = new BinaryTree(\"C\");\n BinaryTree d = new BinaryTree(\"D\");\n BinaryTree e = new BinaryTree(\"E\");\n BinaryTree f = new BinaryTree(\"F\");\n BinaryTree g = new BinaryTree(\"G\");\n BinaryTree h = new BinaryTree(\"H\");\n a.left = b;\n a.right = c;\n b.left = d;\n c.left = e;\n c.right = f;\n f.left = g;\n g.right = h;\n\n return a;\n }", "title": "" }, { "docid": "894bb949d6c234f1b1e01082e5a15140", "score": "0.5855524", "text": "static Node createTree()\n\t{\n\t\tNode root=null;\n\t\tSystem.out.print(\"Enter Data:\");\n\t\tint data=sc.nextInt();\n\t\tif(data == -1)\n\t\t{\n\t\t\treturn null; \n\t\t}\n\n\t\troot=new Node(data );\n\t\tSystem.out.println(\"Enter left for:\"+data);\n\t\troot.left=createTree(); \n\n\t\tSystem.out.println(\"Enter right for:\"+data);\n\t\troot.right=createTree(); \n\t\treturn root; \n\n\t}", "title": "" }, { "docid": "9191ada35a1f3bdf6c464f2d38807b99", "score": "0.583851", "text": "public void createTree(int[] input) {\n for (int i = 0; i < input.length; i++) {\n updateTree(i + 1, input[i]);\n }\n\n System.out.println(\"Tree Created: \");\n printTree();\n }", "title": "" }, { "docid": "6bc363427071a3b158622b6a2d2ae30c", "score": "0.5824411", "text": "abstract int prep_tree(Syntax par, VStack nongen, Worklist work);", "title": "" }, { "docid": "b886d87a3196a84f36f8be9a532181b4", "score": "0.58011353", "text": "private static BinaryTree buildExample2() {\n\n BinaryTree a = new BinaryTree(\"A\");\n BinaryTree b = new BinaryTree(\"B\");\n BinaryTree c = new BinaryTree(\"C\");\n BinaryTree d = new BinaryTree(\"D\");\n\n a.left = b;\n a.right = c;\n b.left = d;\n\n return a;\n }", "title": "" }, { "docid": "194aa647fff7d6c17a99474f10422eff", "score": "0.57842773", "text": "Tree tree();", "title": "" }, { "docid": "e5655a1bb5a7bf6cbc69cdecb54ad965", "score": "0.56891024", "text": "public static void main(String args[])\r\n {\n TreeNode<Integer> root=input();\r\n print(root);\r\n }", "title": "" }, { "docid": "24035d72f63a7ed34f1d2d85be8a445c", "score": "0.5679937", "text": "private static BinaryTree buildExample3() {\n BinaryTree a = new BinaryTree(\"A\");\n BinaryTree b = new BinaryTree(\"B\");\n BinaryTree c = new BinaryTree(\"C\");\n BinaryTree d = new BinaryTree(\"D\");\n BinaryTree e = new BinaryTree(\"E\");\n BinaryTree f = new BinaryTree(\"F\");\n BinaryTree g = new BinaryTree(\"G\");\n BinaryTree h = new BinaryTree(\"H\");\n a.left = b;\n a.right = c;\n b.right = h;\n c.left = d;\n c.right = e;\n d.left = f;\n f.left = g;\n\n return a;\n }", "title": "" }, { "docid": "3f428819a680517d9a73354b82611761", "score": "0.56268144", "text": "public Node build() {\n return mNode;\n }", "title": "" }, { "docid": "09be311c569742095aeb381eef0ea88e", "score": "0.56255025", "text": "<T extends Tree> ScalaNode<T> build(T astNode) {\n return buildInternal(astNode);\n }", "title": "" }, { "docid": "cc0d42a31918d33a8089f08b1c559601", "score": "0.56062", "text": "public ExpressionBinaryTree buildBinaryTree(){\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d70613de74e0f24f2c9915269152fb47", "score": "0.55836767", "text": "public static Tree solve() {\n //read the tree from STDIN and return its root as a return value of this function\n ArrayList<Integer> values = new ArrayList<>();\n ArrayList<Color> colors = new ArrayList<>();\n int[][] relationships = null;\n boolean[] has_children = null;\n Tree[] nodes = null;\n Scanner scan = new Scanner(System.in);\n int total_nodes = scan.nextInt();\n int i = total_nodes;\n while (i > 0) {\n values.add(scan.nextInt());\n i--;\n }\n i = total_nodes;\n while (i > 0) {\n colors.add(scan.nextInt() == 0 ? Color.RED : Color.GREEN);\n i--;\n }\n \n relationships = new int[total_nodes - 1][2];\n i = total_nodes - 1;\n while (i > 0) {\n int parent = scan.nextInt();\n int child = scan.nextInt();\n int j = total_nodes - i - 1;\n //relationships[j] = new int[2];\n relationships[j][0] = parent;\n relationships[j][1] = child;\n i--;\n }\n has_children = new boolean[total_nodes];\n for (int k = 0; k < has_children.length; k++) {\n has_children[k] = false;\n i = 0;\n while (i < relationships.length) {\n if (relationships[i][0] == k) {\n has_children[i] = true;\n break;\n }\n i++;\n }\n }\n\n nodes = new Tree[total_nodes];\n nodes[0] = new TreeNode(values.get(0), colors.get(0), 0);\n i = 0;\n while (i < relationships.length) {\n int parent = relationships[i][0] - 1;\n int child = relationships[i][1] - 1;\n if (nodes[child] == null) {\n if (has_children[child]) {\n nodes[child] = new TreeNode(\n values.get(child), colors.get(child), nodes[parent].getDepth() + 1);\n } else {\n nodes[child] = new TreeLeaf(\n values.get(child), colors.get(child), nodes[parent].getDepth() + 1);\n }\n }\n ((TreeNode)nodes[parent]).addChild(nodes[child]);\n i++;\n }\n return nodes[0];\n }", "title": "" }, { "docid": "8782d7450a34a5a4a3644abdf8d207fb", "score": "0.55538046", "text": "public TreeNode buildTree(int[] inorder, int[] postorder) {\n\t\tint n = inorder.length;\n\t\treturn findRoot(inorder, postorder, 0, n - 1, 0, n - 1);\n\t}", "title": "" }, { "docid": "e8e176121265e4f03674283ec5b62d37", "score": "0.55364996", "text": "public TreeNode buildTree(int[] preorder, int[] inorder) {\n\t\tint n = preorder.length;\n\t\treturn findRoot(preorder, inorder, 0, n - 1, 0, n - 1);\n\t}", "title": "" }, { "docid": "2166ea1b5a0dcd308e829c4df9e1467a", "score": "0.55319464", "text": "public void buildTree(String expr) {\n\t\tin = new Scanner(expr);\n \troot = new quotedNode(readTree());\n }", "title": "" }, { "docid": "7369869a8af4cdb5ca002f3154c05f96", "score": "0.55020297", "text": "public TreeNode build(TreeNode t) {\n\t\tVector<TreeNode> nodes = new Vector<TreeNode>();\n\t\tstoreNodes(t, nodes);\n\t\treturn buildRecursion(nodes, 0, nodes.size()-1);\n\t}", "title": "" }, { "docid": "12513aebb4913202edddbbe31079ba5c", "score": "0.5480679", "text": "private void makeXmlTree() {\n if (imageDefaults == null) {\n imageDefaults = getImageDefaults();\n }\n xmlTree = new XmlTree(imageDefaultsRoot, true, \"\") {\n public void doClick(XmlTree theTree, XmlTree.XmlTreeNode node,\n Element element) {\n Element clicked = xmlTree.getSelectedElement();\n String lastTag = clicked.getTagName();\n if (\"folder\".equals(lastTag)) {\n lastCat = clicked;\n lastClicked = null;\n setStatus(\"Please enter a name for the new parameter set\");\n newSetBtn.setEnabled(true);\n } else {\n lastCat = clicked.getParentNode();\n lastClicked = clicked;\n }\n }\n\n public void doRightClick(XmlTree theTree,\n XmlTree.XmlTreeNode node,\n Element element, MouseEvent event) {\n JPopupMenu popup = new JPopupMenu();\n if (makePopupMenu(theTree, element, popup)) {\n popup.show((Component) event.getSource(), event.getX(),\n event.getY());\n }\n }\n };\n List tagList = new ArrayList();\n tagList.add(TAG_FOLDER);\n tagList.add(TAG_DEFAULT);\n xmlTree.addTagsToProcess(tagList);\n xmlTree.defineLabelAttr(TAG_FOLDER, ATTR_NAME);\n addToContents(GuiUtils.inset(GuiUtils.topCenter(new JPanel(),\n xmlTree.getScroller()), 5));\n return;\n }", "title": "" }, { "docid": "4ef3cfc83389b150f1dcc431fe038736", "score": "0.54190433", "text": "public TreeNode generateTree() {\n\t\tTreeNode one = new TreeNode(1);\n\t\tTreeNode two = new TreeNode(2);\n\t\tTreeNode three = new TreeNode(3);\n\t\tTreeNode four = new TreeNode(4);\n\t\tTreeNode five = new TreeNode(5);\n\t\tTreeNode six = new TreeNode(6);\n\t\tTreeNode seven = new TreeNode(7);\n\t\tTreeNode eight = new TreeNode(8);\n\t\tTreeNode nine = new TreeNode(9);\n\t\t// TreeNode ten = new TreeNode(10);\n\t\tone.setLeft(two);\n\t\tone.setRight(three);\n\t\ttwo.setLeft(four);\n\t\ttwo.setRight(five);\n\t\tthree.setLeft(six);\n\t\tfour.setLeft(seven);\n\t\tsix.setLeft(eight);\n\t\tsix.setRight(nine);\n\t\t// eight.setLeft(ten);\n\t\treturn one;\n\t}", "title": "" }, { "docid": "043a7c83c472db6edf485c48206b810d", "score": "0.5412521", "text": "public Node createTree( Reader is )\n throws IOException\n {\n XMLParser parser = new XMLParser( this );\n parser.parse( is );\n\n return rootNode;\n }", "title": "" }, { "docid": "b5a286588d8cb54bf72f1bb00438a286", "score": "0.5398444", "text": "public BinaryTreeNode<Integer> takeInputBST() {\n Scanner sc = new Scanner(System.in);\n\n root = null;\n int x = sc.nextInt();\n while (x != -1) {\n root = insertDataHelper(root, x);\n x = sc.nextInt();\n }\n\n return root;\n }", "title": "" }, { "docid": "6b59dd6967c419b727f9a9452a3a5e0f", "score": "0.53848004", "text": "public static Node takeInputLevel(){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint data=scan.nextInt();\n\t\tif(data==(-1)){\n\t\t\treturn null;\n\t\t}\n\t\tNode root=new Node(data);\n\t\tQueue<Node> q = new LinkedList<Node>();\t\n\t\tq.add(root);\n\t\twhile(q.isEmpty()==false){\n\t\t\tNode currentP=q.remove();\n\t\t\tint leftData=scan.nextInt();\n\t\t\tif(leftData!=-1){\n\t\t\t\tNode temp=new Node(leftData);\n\t\t\t\tcurrentP.left=temp;\n\t\t\t\tq.add(temp);\n\t\t\t}\n\t\t\tint rightData=scan.nextInt();\n\t\t\tif(rightData!=-1){\n\t\t\t\tNode temp=new Node(rightData);\n\t\t\t\tcurrentP.right=temp;\n\t\t\t\tq.add(temp);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn root;\n\t}", "title": "" }, { "docid": "909d0772b521e827aa7bcb3d64270b60", "score": "0.5351588", "text": "public TreeNode buildTree(int[] inorder, int[] postorder) {\n\n\t\tif (inorder == null || postorder == null || inorder.length == 0 || postorder.length == 0)\n\t\t\treturn null;\n\t\treturn build(inorder, 0, postorder, 0, postorder.length);\n\n\t}", "title": "" }, { "docid": "f9b81aabc8ad3fff107dd214488ad37c", "score": "0.5346217", "text": "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(System.in) );\t// used to read in console\n\t\t\t\t\t\t\t\t\t\t\t\t\t//input \n\t\tmy_Tree t = new my_Tree(); // declares an instand of a my class definition of my tree\n\t\tString str; // new String to read in user input as one continueous string\n\t\tint count = 0; // keeps track of size of Integer array\n\t\tint input[] = new int[100]; // temporary integer array of all values to be put in tree\n\t\tString[] split; // temporary string array using for parsing input\n\n\n\t\tSystem.out.print(\"Please enter the input of numbers: \");\n\t\tstr = reader.readLine(); \n\t\twhile ( str.equals(\"\")) // prompts user to enter input again while input is null\n\t\t{\n\t\t\tSystem.err.println(\"Error: String is null/empty, try again.\");\n\t\t\tSystem.out.print(\"Enter a series of integers separated by spaces: \");\n\t\t\tstr = reader.readLine(); \n\t\t}\n\t\tsplit = str.split(\" \");\n\n\t\t/* Parse string and retrieves integers */\n\t\tfor (int loc=0; loc< split.length; loc++)\n\t\t{\n\t\t\ttry{ input[count] = Integer.parseInt(split[loc]); } \n\t\t\tcatch( NumberFormatException e)\n\t\t\t{ count--; continue; } \n\t\t\tfinally{ count++; } \n\t\t}\n\n\t\tbubble(input, count); // bubble sort on array\n\t\tSystem.out.print(\"\\nInput after sorting: \");\n\t\tfor (int x=0; x < count; x++) \n\t\t\tSystem.out.print(input[x] + \" \");\n\t\t \n\t\tbuildtree(input,count, t); // build tree datastructure\n\n\t\tSystem.out.print(\"\\nWould you like to print the tree? (y/n): \");\n\t\tstr = reader.readLine(); \n\t\tif (str.charAt(0) == 'y' || str.charAt(0) == 'Y')\n\t\t{\n\t\t\tSystem.out.print(\"\\nLevel Order Traversal: \");\n\t\t\tt.level();\n\t\t\tSystem.out.println(\"Height of Tree is: \" + t.height());\n\t\t}\n\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "2fad34cdaebf5efe2028b441cf514d05", "score": "0.5322593", "text": "public String generate() {\r\n\t\treturn generateAST(root, 0);\r\n\t}", "title": "" }, { "docid": "3065786f978316c4c07da72213e7b30f", "score": "0.5322295", "text": "public static GenericTreeNode<Integer> prepareTree() {\n\n\t\tSystem.out.println(\"Enter data\");\n\t\tint data = s.nextInt();\n\n\t\tGenericTreeNode<Integer> root = new GenericTreeNode<>(data);\n\t\tSystem.out.println(\"Enter no. of children\");\n\t\tint noOfChildren = s.nextInt();\n\t\tfor (int i = 0; i < noOfChildren; i++) {\n\t\t\troot.children.add(prepareTree());\n\t\t}\n\t\treturn root;\n\t}", "title": "" }, { "docid": "d086cce9553cc4e7473062d831a450d2", "score": "0.5316411", "text": "public TreeNode buildTree(int[] inorder, int[] postorder) {\n HashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n for (int i = 0; i < inorder.length; i++) hm.put(inorder[i], i);\n TreeNode root = buildHelper(inorder, postorder, 0, inorder.length-1, 0, postorder.length-1, hm);\n return root;\n \n }", "title": "" }, { "docid": "68e86b504035ac3737ef292d382280b7", "score": "0.53142893", "text": "private void recursivelyBuildTree(Tree<String> tree, String label, int start, int end){\n \t//Triplet<Integer, Integer, String> curTriple = new Triplet<Integer, Integer, String>(start, end, label);\n \tTriplet<Integer, String, String> curTriple = back2.get(start).get(end).get(label);\n \t//System.out.println(curTriple);\n \tif(curTriple == null){\n \t\treturn;\n \t}\n \tint split = curTriple.getFirst();\n \t//Triplet<Integer, String, String> leftTriple = back2.get(start).get(split)\n \tif(split == -2){\n \t\t\n \t\t//System.out.println(\"Hit terminal\");\n \t\tString terminalString = curTriple.getSecond();\n \t\tTree<String> terminalTree = new Tree<String>(terminalString);\n \t\tList<Tree<String>> child = new ArrayList<Tree<String>>();\n \t\tchild.add(terminalTree);\n \t\ttree.setChildren(child);\n \t\treturn;\n \t}\n \t//This is the case of a regular binary rule\n \tif(split != -1){\n \t\tString leftString = curTriple.getSecond();\n \t\tString rightString = curTriple.getThird();\n\n \t\tTree<String> leftTree = new Tree<String>(leftString);\n \t\tList<Tree<String>> children = new ArrayList<Tree<String>>();\n \t\trecursivelyBuildTree(leftTree, leftString, start, split);\n \t\tchildren.add(leftTree);\n \t\t\n \t\tTree<String> rightTree = new Tree<String>(rightString);\n \t\trecursivelyBuildTree(rightTree, rightString, split, end);\n \t\tchildren.add(rightTree);\n \t\ttree.setChildren(children);\n \t}\n \t//nonterminal unary condition (only build left tree)\n \tif(split == -1){\n \t\tString leftString = curTriple.getSecond();\n \t\tTree<String> leftTree = new Tree<String>(leftString);\n \t\tList<Tree<String>> children = new ArrayList<Tree<String>>();\n \t\trecursivelyBuildTree(leftTree, leftString, start, end);\n \t\tchildren.add(leftTree);\n \t\ttree.setChildren(children);\n \t\t\n \t}\n }", "title": "" }, { "docid": "34cbabcde8ddab644e4d689203778974", "score": "0.5265934", "text": "private TreeNode BuildTree(String text) {\n int start = 0;\n Stack<TreeNode> stack = new Stack<TreeNode>();\n for (int i = 0; i < text.length(); i++) {\n char ch = text.charAt(i);\n if (EvaluationHelper.isOperator(ch)) {\n TreeNode node = new TreeNode(text.substring(start, i), TreeValueType.OPERAND);\n start = i + 1;\n TreeNode operator = new TreeNode(String.valueOf(ch), TreeValueType.OPERATOR);\n if (stack.empty()) {\n operator.setLeft(node);\n stack.push(operator);\n } else {\n TreeNode prevNode = stack.pop();\n prevNode.setRight(node);\n operator.setLeft(prevNode);\n stack.push(operator);\n }\n } else if (i == text.length() - 1) {\n TreeNode node = new TreeNode(text.substring(start), TreeValueType.OPERAND);\n if (stack.empty()) {\n stack.push(node);\n } else {\n TreeNode prevNode = stack.pop();\n prevNode.setRight(node);\n stack.push(prevNode);\n }\n }\n }\n if (!stack.empty())\n return stack.pop();\n else\n return null;\n }", "title": "" }, { "docid": "248bc1595c131cd04f9129d1a864772c", "score": "0.52529085", "text": "public String Atree (String intree, String donor, double cut, String optionals, String ignored, int minOutGroupSize) {\n\n\t\tString query = getQuery(intree);\n\t\tif (query.isEmpty()) return \"\";\n\t\tString filename = intree.substring(intree.lastIndexOf(\"/\")+1);\n\t\n\t\t// read input tree file (get the first line actually)\n\t\tPath fp = Paths.get(intree);\n\t\tString line = new String(\"\");\n\t\ttry {\n\t\t\tBufferedReader reader = Files.newBufferedReader(fp);\n\t\t\twhile (true) {\n\t\t\t\tline = reader.readLine();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(\"#-> erronreous reading file: \" + intree);\n\t\t}\t\t\n\t\tif (line == null) return \"\";\n\n\t\t// create NewickTree object and launch decomposition\n\t\tNewickTree tree = new NewickTree(line);\n\t\tList<String> bp = tree.getBipartitions(query);\n\t\tTestMonophyly test = new TestMonophyly(bp, query, donor, cut, optionals, ignored, minOutGroupSize);\n\t\ttest.testExclusive();\n\t\t\n\t\t/* test monophyly with a limited irrelevant sequences. TBD*/\n\t\t//test.testGeneralized();\n\n\t\t/** get destine of the input tree */\n\t\tint myFate = fate(test.getStrongNodes(), test.getWeakNodes(), test.getAdjustedStrongNodes());\n\t\t\n\t\t/** if input tree meet criteria, do the following */\n\t\tif (myFate > 1 ) {\n\t\t\t/* 1) write input tree to output directory */\n\t\t\tString outputrees = outDir + \"/\" + filename;\n\t\t\ttry{\n\t\t\t\tFileWriter writer = new FileWriter(outputrees);\n\t\t\t\twriter.write(line + \"\\n\");\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\tSystem.out.println(\"#-> errorous writing tree file: \" + outputrees);\n\t\t\t}\n\t\t\t\n\t\t\t/* 2) if requested, write ingroup details to output directory */\n\t\t\tif (getInGroup) {\n\t\t\t\tString outputInGroupSeqs = outDir + \"/\" + filename + \".ingroup.txt\";\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter writer = new FileWriter(outputInGroupSeqs);\n\t\t\t\t\tfor (String seqs : test.getSupportDonorsAndOptionals()) {\n\t\t\t\t\t\twriter.write(seqs + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\twriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e) {\n\t\t\t\t\tSystem.out.println(\"#-> errorous file writing to: \" + outputInGroupSeqs);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* 3) make coded node information and return */\n\t\t\tString outcome = query +\"\\t\"+ \n\t\t\t\t\t\t\t test.getStrongNodes() +\"\\t\"+ \n\t\t\t\t\t\t\t test.getWeakNodes() + \"\\t\" + \n\t\t\t\t\t (test.getStrongNodes() + test.getWeakNodes())\n\t\t\t\t\t ;\n\t\t\treturn outcome;\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "1a1a2a3d72a3bcbb67ce1e892f4e1249", "score": "0.52515", "text": "@Override int prep_tree( Syntax par, VStack nongen, Worklist work ) {\n T2 base = _con==Type.NIL ? T2.make_nil(T2.make_leaf()) : T2.make_base(_con);\n prep_tree_impl(par, nongen, work, base);\n return 1;\n }", "title": "" }, { "docid": "30cec2022e77a19233fd9d66cf955412", "score": "0.52510893", "text": "@Override\n\tpublic boolean process() throws Exception {\n\t\t\n\t\t//create mainNode by reading JSON input\n\t\tthis.setGson(this.getInputPorts().get(INPUTID).getInputReader());\n\t\t\t\t\t\n\t\t//iterate over the tree and get parameters\n\t\tthis.iterateMainNode();\n\t\t\t\n\t\t// write JSON to output\n\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\tIterator<Pipe> charPipes = this.getOutputPorts().get(OUTPUTID).getPipes(CharPipe.class).iterator();\n\t\twhile (charPipes.hasNext()){\n\t\t\tgson.toJson(rootNode, ((CharPipe)charPipes.next()).getOutput());\n\t\t}\n\t\t\t\t\t\t\t\n\t\t// Close outputs (important!)\n\t\tthis.closeAllOutputs();\n\t\t\n\t\t// Done\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2d278160d0d7239edc601bc2f8ff2e18", "score": "0.52437735", "text": "public TreeNode buildTree(int[] preorder, int[] inorder) {\n HashMap<Integer, Integer> inorderMap = new HashMap<>();\n for (int i = 0; i < inorder.length; i++) {\n inorderMap.put(inorder[i], i);\n }\n TreeNode root = helper(preorder, inorder, 0, 0, inorder.length - 1, inorderMap);\n return root;\n\n }", "title": "" }, { "docid": "e207c32b3abd1d0be9b3abe4dc7d0995", "score": "0.52431846", "text": "private void buildTree(){\n \n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Tools\");\n DefaultMutableTreeNode alg = new DefaultMutableTreeNode(\"Algorithms\");\n DefaultMutableTreeNode itr = new DefaultMutableTreeNode(\"Iterative\");\n DefaultMutableTreeNode odd = new DefaultMutableTreeNode(\"Odd\");\n DefaultMutableTreeNode even = new DefaultMutableTreeNode(\"Even\");\n DefaultMutableTreeNode f2c = new DefaultMutableTreeNode(\"F2C\");\n DefaultMutableTreeNode c2f = new DefaultMutableTreeNode(\"C2F\");\n DefaultMutableTreeNode max = new DefaultMutableTreeNode(\"Maximum\");\n DefaultMutableTreeNode min = new DefaultMutableTreeNode(\"Minimum\");\n DefaultMutableTreeNode area = new DefaultMutableTreeNode(\"area of circle\");\n DefaultMutableTreeNode cir = new DefaultMutableTreeNode(\"circumferenceCircle\");\n DefaultMutableTreeNode rec = new DefaultMutableTreeNode(\"Recursive\");\n DefaultMutableTreeNode fib = new DefaultMutableTreeNode(\"Fibonacci\");\n DefaultMutableTreeNode fac = new DefaultMutableTreeNode(\"Factorial\");\n DefaultMutableTreeNode gcd = new DefaultMutableTreeNode(\"GC\");\n \n DefaultMutableTreeNode io = new DefaultMutableTreeNode(\"IO\");\n DefaultMutableTreeNode fileInfo = new DefaultMutableTreeNode(\"File Info\");\n \n itr.add(odd);\n itr.add(even);\n itr.add(f2c);\n itr.add(c2f);\n itr.add(max);\n itr.add(min);\n itr.add(area);\n itr.add(cir);\n \n rec.add(fib);\n rec.add(fac);\n rec.add(gcd);\n \n alg.add(itr);\n alg.add(rec);\n \n io.add(fileInfo);\n \n root.add(alg);\n root.add(io);\n \n //create a neww tree\n \n DefaultTreeModel treeModel = new DefaultTreeModel(root);\n tree = new JTree(treeModel);\n }", "title": "" }, { "docid": "30405f11976f60080abc8b3ac0f1c029", "score": "0.52428985", "text": "public void buildBT(String rootPath){\n \n // list all the files under the sepecified directory\n File[] files = new File(rootPath).listFiles();\n // create a TreeNode for specified directory root\n root = new TreeNode(rootPath, rootPath);\n // search all the files and directories under specified directory, build the rest of binary tree\n dispFiles(files, root);\n }", "title": "" }, { "docid": "9cf472dbfad58d82b1b7e277e31b6877", "score": "0.52055496", "text": "public static void main(String[] args) {\n\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\twhile(scanner.hasNext()){\r\n\t\t\tint n = scanner.nextInt();\r\n\t\t\tint m = scanner.nextInt();\r\n\t\t\tif(m==0 && n == 0){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tMain root = null;\r\n\t\t\tint i;\r\n\t\t\tfor(i=0;i<n;i++){\r\n\t\t\t\tString str = scanner.next();\r\n\t\t\t\tif(root == null){\r\n\t\t\t\t\troot = new Main(str.charAt(0));\r\n\t\t\t\t}\r\n\t\t\t\tcreateTree(root, str.charAt(0), str.charAt(1), str.charAt(2));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(i=0;i<m;i++){\r\n\t\t\t\tString strT = scanner.next();\r\n\t\t\t\tint a = getLevel(root,strT.charAt(0));\r\n\t\t\t\tint b = getLevel(root, strT.charAt(1));\r\n\t\t\t\tif(a==0 || b==0 || a-b == 0 || b>a){\r\n\t\t\t\t\tSystem.out.println(\"-\");\r\n\t\t\t\t}else if(a-b == 1){\r\n\t\t\t\t\tSystem.out.println(\"parent\");\r\n\t\t\t\t}else if(a-b == 2){\r\n\t\t\t\t\tSystem.out.println(\"grandparent\");\r\n\t\t\t\t}else if(a-b > 2){\r\n\t\t\t\t\tfor(int j=0;j<a-b-2;j++){\r\n\t\t\t\t\t\tSystem.out.print(\"great-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"grandparent\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ad7040c46b85cace668c9b679adf0917", "score": "0.5205072", "text": "public ProofNode getRoot ( ) ;", "title": "" }, { "docid": "c65beb4e4bfaa2b7fe755a6411417ae0", "score": "0.52013403", "text": "public static Node BuildTree(ParseTree tree, Parser parser) {\n\n Node n = new Node();\n\n int child_count = tree.getChildCount();\n\n n.name = getNodeText(tree, parser);\n\n if (child_count == 0) {\n n.value = tree.getText();\n } else {\n for (int i = 0; i < child_count; i++) {\n\n ParseTree node = tree.getChild(i);\n\n // skip newlines when building the tree\n if (node instanceof TerminalNode) {\n Token symbol = ((TerminalNode) node).getSymbol();\n if (symbol != null && symbol.getType() == MyneLexer.NEWLINE) {\n continue;\n }\n }\n\n n.children.add(BuildTree(node, parser));\n }\n }\n\n return n;\n\n }", "title": "" }, { "docid": "6290b72394e5e92b2ddc7346464a9df0", "score": "0.5189012", "text": "public static void main(String[] args) {\n\t\tLeaves l = new Leaves(\"a\",\"b\",\"c\");\n\t\tDefaultMutableTreeNode top = new DefaultMutableTreeNode(\n\t\t\t\tl);\n\t\tcreateNodes(top);\n\t\tTreeModel model = new DefaultTreeModel(top);\n\n\t\ttry {\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocument doc = factory.newDocumentBuilder().newDocument();\n\n\t\t\t// Get tree root...\n\t\t\tDefaultMutableTreeNode root = (DefaultMutableTreeNode) model\n\t\t\t\t\t.getRoot();\n\t\t\t\n\t\t\tparseTreeNode(root, doc);\n\n\t\t\t// Save the document to disk...\n\t\t\tTransformer tf = TransformerFactory.newInstance().newTransformer();\n\t\t\ttf.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttf.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\ttf.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\",\n\t\t\t\t\t\"1\");\n\n\t\t\tDOMSource domSource = new DOMSource(doc);\n\t\t\tStreamResult sr = new StreamResult(new File(\"TreeModel.xml\"));\n\t\t\ttf.transform(domSource, sr);\n\t\t\t\n\t\t\tSystem.out.println(model.getChild(root.getFirstChild(), 5));\n\t\t\t//The Java Language Specification媛� \n\n\t\t} catch (ParserConfigurationException | TransformerException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8862800dd9397d8b75a144a9d7f96746", "score": "0.51645267", "text": "public void buildTree(int max) {\r\n overallRoot = buildTree(1, max);\r\n\r\n }", "title": "" }, { "docid": "25f92f8157800f3f6e8e02deeedee89a", "score": "0.5157134", "text": "public static TreeNode buildTree(int[] preorder, int[] inorder) {\n int h1 = preorder.length - 1;\n int h2 = inorder.length - 1;\n int l1 = 0;\n int l2 = 0;\n return build( preorder, l1, inorder, l2, h2);\n }", "title": "" }, { "docid": "1f60c0afffaa9307a55b8aa3ffc9296c", "score": "0.51566005", "text": "JCTree getTree();", "title": "" }, { "docid": "ed64e9d41001118bb2c8af1f66f34ebc", "score": "0.51545316", "text": "Node getRoot()\r\n {return root;}", "title": "" }, { "docid": "5afb02c7eb90c8a304eb643abc2e5de7", "score": "0.51461935", "text": "public Tree rootST(Tree st0) throws IOException, ParseException {\n //get tree height\n STITree rootT = (STITree) st0;\n Trees.autoLabelNodes(rootT);\n TNode root = rootT.getRoot();\n Iterator subT = root.getChildren().iterator();\n TNode left = (TNode) subT.next();\n TNode right = (TNode) subT.next();\n String[] leftStr = getNodeHeight(left);\n String[] rightStr = getNodeHeight(right);\n double h1 = Double.valueOf(leftStr[1]);\n double h2 = Double.valueOf(rightStr[1]);\n Double treeHeight = ( h1 + h2 )/2;\n String start = (h1 > h2)? leftStr[0]: rightStr[0];\n TNode sNode = rootT.getNode(start);\n\n //find root edge\n double dist = 0.0;\n STINode newRoot = (STINode) sNode;// new root\n TNode fRoot = sNode;// root edge finish node\n while(true){\n dist += sNode.getParentDistance();\n if(dist >= treeHeight){\n //no change node\n if(dist == treeHeight){\n newRoot = (STINode)sNode.getParent();\n rootT.rerootTreeAtNode(newRoot);\n }\n else if(dist > treeHeight) {\n double diff = dist - treeHeight;\n double edgeLength = sNode.getParentDistance();\n BniNetwork net = (BniNetwork) Networks.readNetwork(rootT.toString());\n BniNetNode newNetRoot = new BniNetNode(\"I\" + String.valueOf(rootT.getNodeCount()),0.0);\n BniNetNode oldP = (BniNetNode)net.findNode(sNode.getParent().getName());\n oldP.adoptChild(newNetRoot,diff);\n newNetRoot.adoptChild((BniNetNode)net.findNode(sNode.getName()),edgeLength-diff);\n oldP.removeChild(net.findNode(sNode.getName()));\n\n BniNetNode oldNetRoot = (BniNetNode)net.getRoot();\n BniNetNode tempC = newNetRoot;\n BniNetNode tempP = oldP;\n while(!tempC.equals(oldNetRoot)){\n double tempD = tempC.getParentDistance(tempP);\n tempP.removeChild(tempC);\n tempC.adoptChild(tempP,tempD);\n tempC = tempP;\n tempP = (BniNetNode) tempC.getParents().iterator().next();\n }\n BniNetNode fChild = (BniNetNode) tempC.getChildren().iterator().next();\n tempP.removeChild(tempC);\n tempP.adoptChild(fChild,fChild.getParentDistance(tempC));\n tempC.removeChild(fChild);\n net.resetRoot(newNetRoot);\n rootT = (STITree) Trees.readTree(net.toString());\n }\n break;\n }\n else{\n sNode = sNode.getParent();\n }\n }\n Tree result = operator.getUTree(rootT,0.0);\n return result;\n }", "title": "" }, { "docid": "1d8b322066a702beb95ed51e0b642fb5", "score": "0.51461667", "text": "public void buildTree() {\n int block_ind;\n for (block_ind = 1; block_ind < block_Index.size(); block_ind ++){\n records = data.getBlockRecords(block_ind);\n for (Record rec : records) {\n insert(root, rec);\n }\n records = new ArrayList<>();\n }\n }", "title": "" }, { "docid": "dadd72d1cf74004f1948bb1e020e13cb", "score": "0.5141727", "text": "private BinaryTree<String> generateSearchTree() {\r\n return new BinaryTree<String>(\r\n \"F\",\r\n new BinaryTree<String>(\r\n \"D\",\r\n new BinaryTree<String>(\r\n \"B\",\r\n new BinaryTree<String>(\"A\"),\r\n new BinaryTree<String>(\"C\")),\r\n new BinaryTree<String>(\"E\")),\r\n new BinaryTree<String>(\r\n \"H\",\r\n new BinaryTree<String>(\"G\"),\r\n new BinaryTree<String>(\r\n \"I\",\r\n null,\r\n new BinaryTree<String>(\r\n \"J\",\r\n null,\r\n new BinaryTree<String>(\"K\")))));\r\n }", "title": "" }, { "docid": "cec187e159a8a2d603397c7b249e70fe", "score": "0.5138522", "text": "private BinaryTree<Character> constructTree(String encode){\r\n\t\t//Reached a leaf\r\n\t\tif(decoderMap.get(encode) == null && encode != \"\"){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//System.out.println(decoderMap.get(encode));\r\n\t\tBinaryTree<Character> left = constructTree(encode + \"*\");\r\n\t\tBinaryTree<Character> right = constructTree(encode + \"-\");\r\n\t\treturn new BinaryTree<Character>(decoderMap.get(encode), left, right);\r\n\t}", "title": "" }, { "docid": "51ba120d09eaedda9b6f0c2d077920c0", "score": "0.51322645", "text": "private void makeTree(){\n tree = new Tree(layers[0]);\n for (int i=1;i<layers.length;i++){\n Node node = new Node(layers[i]);\n tree.addNode(node);\n }\n }", "title": "" }, { "docid": "1c24d1ccd5b08c4576547cc6f8ca29d9", "score": "0.51311487", "text": "private DependencyParseTree toTree(List<Node> nodes) {\n DependencyParseTree tree = null;\n for (Node n : nodes) {\n // create tree, if we find root node\n if (n.getParentId() == -1) {\n tree = new DependencyParseTree(n);\n continue;\n };\n\n // find parent node\n Optional<Node> optionalParentNode = nodes.stream()\n .filter(x -> x.getId() == n.getParentId())\n .findFirst();\n Node parentNode = null;\n if (optionalParentNode.isPresent()) {\n parentNode = optionalParentNode.get();\n\n // set parent node and child node of parent\n n.setParent(parentNode);\n parentNode.addChild(n);\n }\n }\n return tree;\n }", "title": "" }, { "docid": "4eaf2456da6b4fac8e549d2d1e7fc72b", "score": "0.51284593", "text": "public static void main(String[] args) {\n int[] nums = new int[]{1,2,5,7,10,13,14,15,22};\n Tree tree =new Tree();\n Tree.Node root = constructBT(tree.getRoot(), nums, 0, nums.length-1);\n tree.setRoot(root);\n System.out.println(tree.getRoot().getValue());\n\n }", "title": "" }, { "docid": "dbfaac5129fd007b7e2062df8fcbaf9c", "score": "0.51179916", "text": "public static Node createTree(Scanner sc){\n\t\tNode root = null;\n\t\tint data = sc.nextInt();\n\n\t\tif(data == -1){\n\t\t\treturn null;\n\t\t}\n\n\t\troot = new Node(data);\n\n\t\t//Creates the left tree.\n\t\tSystem.out.println(\"Enter left for: \"+data);\n\t\troot.left = createTree(sc);\n\n\t\t//Creates the right tree.\n\t\tSystem.out.println(\"Enter the right for: \"+data);\n\t\troot.right = createTree(sc);\n\n\t\treturn root;\n\t}", "title": "" }, { "docid": "29ed0efc84749b4346c9d82cb422a83e", "score": "0.5107342", "text": "T build();", "title": "" }, { "docid": "29ed0efc84749b4346c9d82cb422a83e", "score": "0.5107342", "text": "T build();", "title": "" }, { "docid": "8c572cea9d077b303f953cb7a0c37f51", "score": "0.5103167", "text": "Template build();", "title": "" }, { "docid": "fd3a697466e5224653d59c1ef04c9abc", "score": "0.509683", "text": "public static Node takeInput(){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint data=scan.nextInt();\n\t\tif(data==-1){\n\t\t\treturn null;\n\t\t}\n\t\tSystem.out.println(\"Test case 1\");\n\t\tNode temp=new Node(data);\n\t\tSystem.out.println(\"Test case 3\");\n\t\ttemp.left=BinaryTree.takeInput();\n\t\tSystem.out.println(\"Test case 2\");\n\t\ttemp.right=BinaryTree.takeInput();\n\t\treturn temp;\t\n\t}", "title": "" }, { "docid": "426e0948d01a6a0edc7763b920b36bbc", "score": "0.5094605", "text": "private void generateTree() {\n\t\tMoveEvaluatorTreeNode currentNode;\n\t\tint countOfRootLeaf = 0;\n\t\t//Tiefe 1\n\t\tMoveGenerator mg1 = new MoveGenerator();\n\t\tmg1.setFEN(ausgangsFen);\n\t\tmoveList = mg1.getZuege();\n\t\troot.setChildBoards( moveList, figurBewertung );\n\t\tcountOfRootLeaf = root.hasChild();\n\t\t//Tiefe 2\n\t\tcountOfRootLeaf = root.hasChild();\n\t\tfor (int i = 0 ; i < countOfRootLeaf ; i++) {\n\t\t\tcurrentNode = root.getChildAtPos(i);\n\t\t\tMoveGenerator mg2 = new MoveGenerator();\n\t\t\tmg2.setFEN(currentNode.getBoardFen());\n\t\t\tcurrentNode.setChildBoards( mg2.getZuege() , figurBewertung );\n\t\t}\n\t}", "title": "" }, { "docid": "073c33fabf082055c5f7d6279adbd13f", "score": "0.5094459", "text": "static Expression buildAST(ParseTree<ExpressionGrammar> p){\n\n switch(p.getName()){\n\n case ROOT:{\n \t/*\n \t * root has a single expression child\n \t */\n \treturn buildAST(filterws(p).get(0));\n }\n case EXPRESSION:{\n \t/*\n \t * expression has a single child, either a primitive,\n \t * addition, or subtraction\n \t */\n \treturn buildAST(filterws(p).get(0));\n }\t\n\n case ADDITION:{\n \t/*\n \t * addition can have many children, get those as expressions \n \t * first to create addition expression\n \t */\n \tList<Expression> terms = new ArrayList<>();\n \tfor(ParseTree<ExpressionGrammar> sub : filterws(p)){\n \tterms.add(buildAST(sub));\n \t}\n \t\n \t//if there is only one term, just pass it through\n \tif(terms.size() == 1){\n \t\treturn terms.get(0);\n \t} else {\n \t\treturn new Addition(terms);\n \t}\n }\n \n case SUBTRACTION:{\n \tthrow new RuntimeException(\"Subraction not supported:\" + p);\n }\n\n\t\tcase MULTIPLICATION:{\n \t/*\n \t * addition can have many children, get those as expressions \n \t * first to create addition expression\n \t */\n \tList<Expression> terms = new ArrayList<>();\n \tfor(ParseTree<ExpressionGrammar> sub : filterws(p)){\n \t\t\tterms.add(buildAST(sub));\n \t}\n \t\n \t//if there is only one term, just pass it through\n \tif(terms.size() == 1){\n \t\treturn terms.get(0);\n \t} else {\n \t\treturn new Multiplication(terms);\n \t}\n }\n\t\t\n\t\tcase DIVISION:{\n \tthrow new RuntimeException(\"Division not supported:\" + p);\n }\n\n case PRIMITIVE: {\n \t// A primitive can only have one non-whitespace child, so just return \n \t// the AST of that child\n\t \tfor(ParseTree<ExpressionGrammar> sub : filterws(p)){\n\t \t\treturn buildAST(sub);\n\t \t}\n\t \tthrow new RuntimeException(\"Primitive should never reach here:\" + p);\n \t}\n \n case NUMBER:{\n \t// A number is always a single literal, build and return\n return new Number(Double.parseDouble(p.getContents()));\n \t}\n \n case VARIABLE:{\n \t// A variable is always a single literal, build and return\n \treturn new Variable(p.getContents());\n \t}\n \n case WHITESPACE: {\n /*\n * Since we are always avoiding calling buildAST with whitespace, \n * the code should never make it here. \n */\n throw new RuntimeException(\"Whitespace should never reach here:\" + p);\n \t}\n } \n /*\n * The compiler should be smart enough to tell that this code is unreachable, but it isn't.\n */\n throw new RuntimeException(\"You should never reach here:\" + p);\n }", "title": "" }, { "docid": "eb35a62822284672b306a803481197e2", "score": "0.5088758", "text": "public TreeNode buildTree(PriorityQueue queue) {\n\t\tTreeNode root = null;\n\t\tif(queue != null) {\n\t\t\twhile(queue.getLength() > 2) {\n\t\t\t\tTreeNode n1 = queue.dequeueTreeNode();\n\t\t\t\tTreeNode n2 = queue.dequeueTreeNode();\n\t\t\t\tTreeNode parent = new TreeNode(n1, n2);\n\t\t\t\tqueue.enqueueTreeNode(parent);\n\t\t\t}\n\t\t\t\n\t\t\t//final two trees\n\t\t\tTreeNode left = queue.dequeueTreeNode();\n\t\t\tTreeNode right = queue.dequeueTreeNode();\n\t\t\troot = new TreeNode(left, right);\n\t\t}\n\t\treturn root;\n\t}", "title": "" }, { "docid": "1cfed372398e86654e68a4b8026fc909", "score": "0.5085538", "text": "private TreeModel createTreeModel() {\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Sources\");\n createDirectory(root, rootDir);\n return new DefaultTreeModel(root);\n }", "title": "" }, { "docid": "6b3b81bf49bc6dcbc2d4de2c71855742", "score": "0.50788593", "text": "public TreeNode buildTree(int[] preorder, int[] inorder) {\n if(preorder.length == 0 || inorder.length == 0) return null; \n \n //create hashmap and add inorder elements to search inorder element poistion in O(1). To know where to split the array for LST and RST\n map = new HashMap<>(); \n for(int i = 0; i < inorder.length; i++) {\n map.put(inorder[i],i);\n }\n \n //call helper method\n //the pointers point to 0 and inorder.length-1 in the beginning\n return helper(preorder, inorder, 0, inorder.length-1); \n \n }", "title": "" }, { "docid": "2ee45587c3982f9bf132aa2e3649801e", "score": "0.5058624", "text": "public TreeNode constructTree(TreeNode root, int[] inputArray, int pointer) {\n if (pointer < inputArray.length) {\n root = new TreeNode(inputArray[pointer]);\n root.left = constructTree(root.left, inputArray, pointer * 2 + 1);\n root.right = constructTree(root.right, inputArray, pointer * 2 + 2);\n }\n return root;\n }", "title": "" }, { "docid": "e4506ebe4b488df9b6326beee673bd45", "score": "0.50406486", "text": "public TreeBuild(int input, String fileName) {\r\n try {\r\n if(fileName != \"-1\") {\r\n FileOutputStream eraser = new FileOutputStream(fileName,false);\r\n }\r\n } catch(Exception e) { System.out.println(\"Error writing to file!\"); }\r\n\tsequenceLength = input;\r\n }", "title": "" }, { "docid": "ee1511e84237b7e76064b94c2a3daa01", "score": "0.5009387", "text": "static void generateTree(){\n tree.addRoot(1, \"Kids\");\n tree.addYesNode(1, 2, \"Water\");\n tree.addNoNode(1, 3, \"Water\");\n\n tree.addYesNode(2, 4, \"Horror\");\n tree.addNoNode(2, 5, \"Horror\");\n\n tree.addYesNode(3, 6, \"Horror\");\n tree.addNoNode(3, 7, \"Horror\");\n\n tree.addYesNode(4, 8, \"Adrenaline\");\n tree.addNoNode(4, 9, \"Adrenaline\");\n\n tree.addYesNode(5, 10, \"Adrenaline\");\n tree.addNoNode(5, 11, \"Adrenaline\");\n\n tree.addYesNode(6, 12, \"Adrenaline\");\n tree.addNoNode(6, 13, \"Adrenaline\");\n\n tree.addYesNode(7, 14, \"Adrenaline\");\n tree.addNoNode(7, 15, \"Adrenaline\");\n\n //ANSWERS\n //starting with yes\n tree.addYesNode(8, 30, \"yyyy\"); //route of all yes'\n tree.addNoNode(8, 31, \"yyyn\");\n\n tree.addYesNode(9, 32, \"yyny\");\n tree.addNoNode(9, 33, \"yynn\");\n\n tree.addYesNode(10, 34, \"ynyy\");\n tree.addNoNode(10, 35, \"ynyn\");\n\n tree.addYesNode(11, 36, \"ynny\");\n tree.addNoNode(11, 37, \"ynnn\");\n\n //starting with no\n tree.addYesNode(12, 38, \"nyyy\");\n tree.addNoNode(12, 39, \"nyyn\");\n\n tree.addYesNode(13, 40, \"nyny\");\n tree.addNoNode(13, 41, \"nynn\");\n\n tree.addYesNode(14, 42, \"nnyy\");\n tree.addNoNode(14, 43, \"nnyn\");\n\n tree.addYesNode(15, 44, \"nnny\");\n tree.addNoNode(15, 45, \"nnnn\");\n }", "title": "" }, { "docid": "e2a7bf0baf4b4d35818cf71fa66a8b27", "score": "0.5008455", "text": "public HuffTree buildTree(File inputFile){\r\n //Try catch block for file read error\r\n try{\r\n //Copy frequency array into cFreq\r\n int[] cFreq = new int[256];\r\n copyArray(cFreq, freqArray(inputFile));\r\n //Creates the priority queue and adds leafs with characters and frequencies into it\r\n PriorityQueue<HuffTree> buildTheTree = new PriorityQueue<HuffTree>();\r\n for(int i = 0; i < 256; i++){\r\n if(cFreq[i] != 0){\r\n buildTheTree.add(new HuffTree((char) i, cFreq[i]));\r\n }\r\n }\r\n //Creates the huffman tree by popping out the first two values from priority queue and then creating\r\n //tree with root as the same of the frequency of the sum of the first two nodes.\r\n while(buildTheTree.peek() != null){\r\n HuffTree left = buildTheTree.poll();\r\n if(buildTheTree.peek() != null){\r\n HuffTree right = buildTheTree.poll();\r\n buildTheTree.add(new HuffTree(left.getRoot(), right.getRoot(), (left.getRoot().freq() + right.getRoot().freq())));\r\n }\r\n //Once the PriorityQueue is empty return the last popped tree\r\n else\r\n return left;\r\n }\r\n\r\n }\r\n //Catches error if the file isn't found\r\n catch(Exception e){\r\n e.printStackTrace();\r\n System.out.println(\"File not found\");\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "f9f4a0ed04eb6321e8faff60e39eec52", "score": "0.5000638", "text": "public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\tTreeNode t = s.buildTree(new int[]{1,2,4,5,6,7,3,8,10,9}, new int[]{4,2,6,5,7,1,8,10,3,9});\n\t\tSystem.out.println(t);\n\t}", "title": "" }, { "docid": "468a991f1bf155d29d242feb6cc60975", "score": "0.4999627", "text": "public INode<K> getRoot();", "title": "" }, { "docid": "e53827c2c7387269787f26f7be70071d", "score": "0.499517", "text": "public TreeNode GenTree(int height)\n\t{\n\t\tTreeNode temp;\n\t\t\n\t\tindex1 = generator.nextInt(2);\n\t\t//System.out.println(index1);\n\t\t\n\t\tif ((index1==1) | (height == HEIGHT)) // if index1 == 1 then a random operand will be generated\n\t\t{\n\t\t\tindex2 = generator.nextInt(11);\n\t\t\tTreeNode newnode;\n\t\t\t\n\t\t\tnewnode = new TreeNode(operatants[index2]);\n\t\t\t\n\t\t\tnewnode.level = height;\n\t\t\tnewnode.IsLeaf = true;\n\t\t\ttemp = newnode;\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tindex2 = generator.nextInt(4);\n\t\t\tTreeNode newnode = new TreeNode(operators[index2]);\n\t\t\tnewnode.level = height;\n\t\t\tnewnode.IsLeaf = false;\n\t\t\tnewnode.left = GenTree(height+1);\n\t\t\tnewnode.right = GenTree(height+1);\n\t\t\ttemp = newnode;\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn temp;\n\t\t\n\t}", "title": "" }, { "docid": "f844b9758b246ab632b21c6f6404c30c", "score": "0.49936172", "text": "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if (inorder == null || postorder == null) {\n return null;\n }\n if (inorder.length == 0 || postorder.length == 0) {\n return null;\n }\n if (inorder.length != postorder.length) {\n return null;\n }\n \n return buildTree(inorder, postorder, 0, inorder.length - 1, 0, postorder.length - 1);\n }", "title": "" }, { "docid": "9e157ee1a9519067dacfab1f3438450d", "score": "0.49858108", "text": "public Node getRoot();", "title": "" }, { "docid": "76c7660c862e62dea14ec62f7ee455d2", "score": "0.49755144", "text": "private void buildTree() {\n\t\tNode left, right, top;\n\t\t// Put the Nodes from the node array in a min-heap/priorityQueue.\n\t\tfor (int i = 0; i < nodeArray.length; i++) {\n\t\t\tpq.add(nodeArray[i]);\n\t\t}\n\t\t// Find two trees with least freq and creates a new node and inserts it.\n\t\twhile (pq.size() > 1) {\n\t\t\tleft = pq.remove();\n\t\t\tright = pq.remove();\n\t\t\tint newFreq = left.getFreq() + right.getFreq();\n\t\t\ttop = new Node('$', newFreq, left, right);\n\t\t\tpq.add(top);\n\t\t}\n\t\t// Now the min heap only contains one node with the character $\n\t\t// and it has all the other nodes as children.\n\t\t// It's frequency should be the same as the total\n\t\t// number of characters in the string.\n\t\t// This is our complete tree.\n\t\tencode(pq.remove(), 0);\n\t}", "title": "" }, { "docid": "90b6f26db40c21a0524c4b2238bc9c25", "score": "0.49729583", "text": "@Test\n public void createsTree() throws Exception {\n final MkContainer container = new MkGrizzlyContainer().next(\n new MkAnswer.Simple(\n HttpURLConnection.HTTP_CREATED,\n \"{\\\"sha\\\":\\\"0abcd89jcabitest\\\",\\\"url\\\":\\\"http://localhost/1\\\"}\"\n )\n ).start(this.resource.port());\n final Trees trees = new RtTrees(\n new ApacheRequest(container.home()),\n repo()\n );\n final JsonObject tree = Json.createObjectBuilder()\n .add(\"path\", \"/path\").add(\"mode\", \"100644 \")\n .add(\"type\", \"blob\").add(\"sha\", \"sha1\")\n .add(\"content\", \"content1\").build();\n final JsonObject input = Json.createObjectBuilder()\n .add(\"tree\", tree).add(\"base_tree\", \"SHA1\")\n .build();\n try {\n final Tree tri = trees.create(input);\n MatcherAssert.assertThat(\n tri,\n Matchers.instanceOf(Tree.class)\n );\n MatcherAssert.assertThat(\n trees.get(tri.sha()),\n Matchers.equalTo(tri)\n );\n MatcherAssert.assertThat(\n container.take().method(),\n Matchers.equalTo(Request.POST)\n );\n } finally {\n container.stop();\n }\n }", "title": "" }, { "docid": "5fe0c866d771e93e573ea521a7f93212", "score": "0.4964285", "text": "public TreeNode buildTree(int[] preorder, int[] inorder) {\n this.preorder=preorder;\n this.inorder=inorder;\n int idx=0;\n for(Integer val:inorder)\n {\n map.put(val,idx++);\n }\n return helper(0,inorder.length);\n }", "title": "" }, { "docid": "77c17b6c794964c395ac1dd417e6921f", "score": "0.49620628", "text": "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tInputReader in = new InputReader(new FileInputStream(\"heritage.in\"));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"heritage.out\")));\n\n\t\t\n/*\n\nABEDFCHG\nCBADEFGH\n\n*/\n\t\t\n\t\tString inOrder = in.next();\n\t\tString preOrder = in.next();\n\t\tint len = inOrder.length();\n\t\t\n\t\tBinaryTree binaryTree = new BinaryTree();\n\t\tNode root = binaryTree.buildTree(inOrder, preOrder, 0, len - 1);\n\t\tbinaryTree.printPostOrder(root);\n\t\tout.println(binaryTree.postOrderString);\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "5cc2fa8df2e17a04ed70df09d049d47e", "score": "0.4960233", "text": "public BinarySearchTree<Term> getTree() {\n return tree;\n }", "title": "" }, { "docid": "3c304b5510cb09a444c9a9cd1587dd6e", "score": "0.4958263", "text": "public void tree1 ()\r\n {\r\n\tSystem.out.println (\" \");\r\n\tSystem.out.println (\" /|\\\\ \");\r\n\tSystem.out.println (\" /*|O\\\\\");\r\n\tSystem.out.println (\" /*/|\\\\*\\\\\");\r\n\tSystem.out.println (\" /X/O|*\\\\X\\\\\");\r\n\tSystem.out.println (\" /*/X/|\\\\X\\\\*\\\\\");\r\n\tSystem.out.println (\" /O/*/X|*\\\\O\\\\X\\\\ \");\r\n\tSystem.out.println (\" /*/O/X/|\\\\X\\\\O\\\\*\\\\\");\r\n\tSystem.out.println (\" /X/O/*/X|O\\\\X\\\\*\\\\O\\\\\");\r\n\tSystem.out.println (\"/O/X/*/O/|\\\\X\\\\*\\\\O\\\\X\\\\\");\r\n\tSystem.out.println (\" |OKOL| \");\r\n\tSystem.out.println (\" | | \");\r\n }", "title": "" }, { "docid": "5b58d944fefa1a1ba16ff853b9a92229", "score": "0.4945072", "text": "public void run() {\n results[0] = createRootElement(rootFileSystemObject,\n structureProvider);\n }", "title": "" }, { "docid": "d53cfbf8e2b7f7887931bba81857960b", "score": "0.49445224", "text": "private Branch buildTree(Node root, int height) {\n\t\t\tif (height == 0) {\n\t\t\t\treturn new Branch(root, null, null);\n\t\t\t} else if (height == 1) {\n\t\t\t\tNode left = randomIntOrVariable();\n\t\t\t\tNode right = randomIntOrVariable();\n\t\t\t\treturn new Branch(root, buildTree(left, height - 1), buildTree(\n\t\t\t\t\t\tright, height - 1));\n\t\t\t} else {\n\t\t\t\tNode left = new OperatorNode(setRandomOp());\n\t\t\t\tNode right = new OperatorNode(setRandomOp());\n\t\t\t\treturn new Branch(root, buildTree(left, height - 1), buildTree(\n\t\t\t\t\t\tright, height - 1));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "139983357435d6fe2d8dd772c4272148", "score": "0.49382073", "text": "public XMLBuilder getRoot() {\n\t\treturn xmlBody;\n\t}", "title": "" }, { "docid": "06e7df1bded9c16b8cc9d624184d7c6c", "score": "0.4927126", "text": "public TreeNode buildTree(int[] inorder, int[] postorder, int startInorder, int endInorder, int startPostorder, int endPostorder) {\n if (endInorder < startInorder) {\n return null;\n }\n // If the length of inorder array and postorder array is 1, return the node directly. \n if (endInorder == startInorder) {\n return new TreeNode(inorder[startInorder]);\n }\n \n int rootNum = postorder[endPostorder];\n int rootPos = -1;\n TreeNode root = new TreeNode(rootNum);\n \n for (int i = startInorder; i <= endInorder; i++) {\n if (inorder[i] == rootNum) {\n rootPos = i;\n break;\n }\n }\n \n int leftLen = rootPos - startInorder;\n \n root.left = buildTree(inorder, postorder, startInorder, startInorder + leftLen - 1, startPostorder, startPostorder + leftLen - 1);\n \n root.right = buildTree(inorder, postorder, startInorder + leftLen + 1, endInorder, startPostorder + leftLen, endPostorder - 1);\n \n return root;\n }", "title": "" }, { "docid": "e6f34dc99e2009ff3fcf19bd8a1f15f4", "score": "0.49268907", "text": "public Merger(LanguageTreeIO tree, LanguagePack refLang)\n\t{\n\t\tthis.tree = tree;\n\t\tthis.refLang = refLang;\n\t}", "title": "" }, { "docid": "2d9eda27a262d25e7f0542d30b741a4a", "score": "0.4920084", "text": "public void insert( Any input )\n {\n if( root == null ){\n root = new BinaryNode<Any>( input, null, null );\n }\n int treeSize = root.size( root ); //root.size();\n Stack<Boolean> s = getDirections( treeSize + 1 );\n System.out.println( \" \" );\n System.out.println( \"Non-recursive :\"+ treeSize );\n insert( input, root, s );\n }", "title": "" }, { "docid": "2f43b1f4d6eb74a5077f61a614ecc49b", "score": "0.4918908", "text": "public void readAndProcess(String option)throws IOException\n { Scanner input = new Scanner (System.in); // scanner object \n Encode encode = new Encode(); // encode object \n Decode decode = new Decode(); // decode object \n String letter = \"\"; // letter obtained from file \n String code = \"\" ; // code obtained from file for letter \n File myFile = new File(\"codes.txt\"); // file object \n Scanner inputFile = new Scanner(myFile); // scanner object \n BinaryTree <T> root = new <T> BinaryTree (\"TrueRoot\"); //BinaryTree object \n \n while (inputFile.hasNext()) // while to file has a next line \n {\n letter = inputFile.next().toLowerCase(); // turn letter to lower case \n code = inputFile.next(); \n \n if(option.equalsIgnoreCase(\"d\")) // if option d \n {\n BinaryTree <T> nodeMade = new <T> BinaryTree (letter); // create new node \n decode.buildTree(code,root,nodeMade ); // build tree \n }\n \n if(option.equalsIgnoreCase(\"e\")) // if option e \n {\n char ch = letter.charAt(0); // get character of letter \n int pos = ch - 'a'; // sub ch from 'a' to get position \n encode.storeCodes(pos,code); // store codes \n }\n }\n inputFile.close(); // file closed \n \n if(option.equalsIgnoreCase(\"d\")) // if option d \n {\n System.out.print(\"Enter your code here to decode:\");\n String morse = input.nextLine(); // users moese code \n System.out.print(\"Decoded to: \");\n decode.split(root,morse); // split and return decoded string \n System.out.println();\n //*root.size();// print tree size. \n //*decode.print(root); //print tree inorder.\n }\n \n if(option.equalsIgnoreCase(\"e\")) //if option e \n { System.out.print(\"Enter your text here to encode:\");\n String text = input.nextLine(); // text entered by user \n System.out.print(\"Encoded to: \");\n encode.encodeString(text); // print encoded string \n }\n }", "title": "" }, { "docid": "78c20572eb7281720ee138c6cdad8358", "score": "0.4906601", "text": "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if (inorder == null || postorder == null || inorder.length != postorder.length) {\n return null;\n }\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < inorder.length; i++) {\n map.put(inorder[i], i);\n }\n return buildTreePostIn(inorder, 0, inorder.length - 1, postorder, 0, postorder.length - 1, map);\n }", "title": "" }, { "docid": "70bd1ef76eb6db855f40ae01343da7a7", "score": "0.49064836", "text": "public TaggedMachineBase build() {\r\n return taggedMachineBase;\r\n }", "title": "" }, { "docid": "51d1450b2e3d29fe1304f2757c2f3b79", "score": "0.49057984", "text": "public RootTarget getRoot()\r\n {\r\n return root;\r\n }", "title": "" }, { "docid": "0115705518584f771f08b1a687c1e6cd", "score": "0.49050194", "text": "public TreeNode getRoot(){\n\t\treturn root;\n\t}", "title": "" }, { "docid": "fcd282ba44e6bfad05ac132fdd9dd035", "score": "0.4901164", "text": "protected TreeNode createTreeNode() {\r\n\t\treturn new TreeNode();\r\n\t}", "title": "" }, { "docid": "b74a0bb917488dbcf655b4c2bdded721", "score": "0.48970395", "text": "public DefaultMutableTreeNode createTree(String HToken1, String HToken2, List edges, String rootS, int top, String topS, HashSet rTokenSet){\n\t\t//\tSystem.out.println(\"list:\");\n\t\t//only syntactic relation, i.e. edge label, will have child, so the nodesMap only\n\t\t//needs to record string vertex-> NodewithOrder node relation\n\t\tHashMap nodesMap = new HashMap();//<key_String_node, value_Node>\n\t\tString topPOS = (String)this.posList.get(top);\n\t\tif(topS.equals(HToken2)||topS.equals(HToken1)){\n\t\t\ttopPOS = this.NE + \"_\"+topPOS;\n\t\t}else if(rTokenSet.contains(topS)){\n\t\t\ttopPOS = this.R + \"_\" +topPOS;\n\t\t}\n\t\tNodewithOrder root = new NodewithOrder(topPOS, top);\n\t\tnodesMap.put(topS, root);\n\n\t\tString topToken = (String)this.lemmaList.get(top);\n\t\tNodewithOrder firstW = new NodewithOrder(topToken, top);\n\t\troot.add(firstW);\n\t\t\n\t\t\n\t\t//because the child of the first edge is still not included\n\t\tfor(int i=0;i<edges.size();i++){\n\t\t\t//first one is the gov word, second is the dep word\n\t\t\tLabeledEdge edge = (LabeledEdge) edges.get(i);\n\t\t\t//System.out.println(edge);\n\t\t\tString startS = (String)edge.getV1();\n\t\t\tString endS = (String)edge.getV2();\n\t\t\tString relation = edge.getLabel();\n\t\t\tObject parentNodeO = nodesMap.get(startS);\n\t\t\tif(parentNodeO==null)\n\t\t\t\treturn null;\n\t\t\tNodewithOrder parentNode = (NodewithOrder)parentNodeO;\n\t\t\t//int parentIndex = parentNode.getSentIndex();\n\t\t\tint endIndex = Integer.parseInt(endS.substring(0,endS.indexOf(\"_\")));\n\t\t\t//String direct = \"l_\";\n\t\t\t//if(endIndex>parentIndex)\n\t\t\t//\tdirect = \"r_\";\n\t\t\t//I don't use direct because if it is ordered, direct wouldn't matter.\n\t\t\t//NodewithOrder childNode = new NodewithOrder(direct+relation, endIndex);\n\t\t\tNodewithOrder childNode = new NodewithOrder(relation, endIndex);\n\t\t\t\n\t\t\tparentNode.add(childNode);\n\t\t\tnodesMap.put(endS, childNode);\n\t\t\t\n\t\t\t//then add pos and word\n\t\t\tString pos = (String)this.posList.get(endIndex);\n\t\t\tif(endS.equals(HToken2)||endS.equals(HToken1)){\n\t\t\t\tpos = this.NE +\"_\"+pos;\n\t\t\t}else if(rTokenSet.contains(endS)){\n\t\t\t\tpos = this.R +\"_\" +pos;\n\t\t\t}\n\t\t\tNodewithOrder posNode = new NodewithOrder(pos, endIndex);\n\t\t\tchildNode.add(posNode);\n\t\t\tString word = (String)this.lemmaList.get(endIndex);\n\t\t\tNodewithOrder wNode = new NodewithOrder(word, endIndex);\n\t\t\tposNode.add(wNode);\n\t\t}\n\t\t//System.out.println();\n\t\t//System.out.println(\"before sort:\");\n\t\t//DPPath2TBwithRordered.outputTree(root);\n\t\t//System.out.println();\n\t\troot = SortTree.sort(root);\n\t\t//System.out.println(\"after sort:\");\n\t\t//DPPath2TBwithRordered.outputTree(root);\n\t\t//System.out.println();\n\t\treturn root;\n\n\t}", "title": "" }, { "docid": "50d8ec959a050242b29185d581f8322e", "score": "0.48969686", "text": "public BinaryTree() {\n\t\trootNode = new Node();\n\t\tlow = null;\n\t\thigh = null;\n\t\tquantity = 0;\n\t}", "title": "" }, { "docid": "d5b9cfdeb267a73b7b34e1e642853bc0", "score": "0.48942128", "text": "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if (inorder == null || postorder == null) {\n return null;\n }\n if (inorder.length == 0 || postorder.length == 0) {\n return null;\n }\n if (inorder.length != postorder.length) {\n return null;\n }\n \n Map<Integer, Integer> indexMap = new HashMap<>();\n indexMap = buildMap(inorder);\n \n return buildTree(inorder, postorder, 0, inorder.length - 1, 0, postorder.length - 1, indexMap);\n }", "title": "" }, { "docid": "46be7401d366ed851023b08d4fbc2805", "score": "0.4892386", "text": "protected String buildGraphVizInput()\n\t{\n\t\tStringBuilder fsbResult = new StringBuilder();\n\t\tfsbResult.append(\"digraph cup2Automaton {\");\n\t\t\n\t\t//draw all accepting states with double circle\n\t\tfsbResult.append(\"node [shape=doublecircle]; \");\n\t\tfsbResult.append(this.fsbAcceptingStates.toString());\n\t\t\n\t\t//draw all non-accepting states with single circle\n\t\tfsbResult.append(\"node [shape=circle]; \");\n\t\tfsbResult.append(this.fsbNormalStates.toString());\n\t\t\n\t\tfsbResult.append(this.fsbStartEdges.toString());\n\t\tfsbResult.append(this.fsbEdges.toString());\n\t\t\n\t\tfsbResult.append(\"}\"); //building the complete graph for the automaton done\n\t\t\n\t\treturn fsbResult.toString();\n\t}", "title": "" }, { "docid": "faebfe6488e4a9edc79bee4b485cad6f", "score": "0.48908398", "text": "public Node buildTree (List<Relation> data) \n{ \n}", "title": "" }, { "docid": "49d588dbb42e18aca5433b8289df7a0b", "score": "0.48874956", "text": "public static void main(String[] args) {\n\n /**\n * tree variable is creating a new Tree object using Integer wrapper class\n * this allows use to manipulate the Integer object\n */\n Tree<Integer> tree = new Tree<Integer>();\n\n\n //inserting the values from the textbook to display the same tree diagam solution\n tree.insertNode(49);\n tree.insertNode(28);\n tree.insertNode(18);\n tree.insertNode(11);\n tree.insertNode(19);\n tree.insertNode(32);\n tree.insertNode(44);\n tree.insertNode(83);\n tree.insertNode(97);\n tree.insertNode(99);\n tree.insertNode(92);\n tree.insertNode(71);\n tree.insertNode(72);\n tree.insertNode(69);\n\n //calling output tree with the root of the tree\n tree.outPutTree(tree.getRoot());\n\n\n\n\n }", "title": "" }, { "docid": "4ffc238d8b3ed88835f3ed98d438ecfe", "score": "0.48814937", "text": "private DecisionTree buildTree(ArrayList<Example> examples, HashSet<Feature> usedFeatures) {\n //check for return condition: total agreement between all examples. If hit, this is a leaf\n //and return begin returning up recursive tree.\n boolean agreementCheck = true;\n if (examples.size() == 1) {\n decision = examples.get(0).target;\n return this;\n } else {\n for (int i = 1; i < examples.size(); i++) {\n if (examples.get(i - 1).target != examples.get(i).target) {\n agreementCheck = false;\n }\n }\n }\n if (agreementCheck) {\n decision = examples.get(0).target;\n return new DecisionTree(decision);\n }\n\n //otherwise, prepare to find best feature to split.\n ArrayList<Example> yesExamples = new ArrayList<>();\n ArrayList<Example> noExamples = new ArrayList<>();\n\n Feature bestFeature = findBestFeature(examples, usedFeatures);\n usedFeatures.add(bestFeature);\n feature = bestFeature;\n //check all examples and sort them into yes or no lists\n for (Example e : examples) {\n if (bestFeature.apply(e)) {\n yesExamples.add(e);\n } else {\n noExamples.add(e);\n }\n }\n noBranch = buildTree(noExamples, cloneFeatureHashSet(usedFeatures));\n yesBranch = buildTree(yesExamples, cloneFeatureHashSet(usedFeatures));\n\n //todo FIGURE THIS OUT.\n return null;\n }", "title": "" }, { "docid": "f1a4284a9f54f6b679568e5286e1f232", "score": "0.48759338", "text": "public TreeNode buildTree(int[] preorder, int[] inorder) {\n if (preorder == null || preorder.length == 0) {\n return null;\n }\n\n // construct a fast querying data structure for inorder!!\n int N = preorder.length;\n Map<Integer, Integer> indexTable = new HashMap<Integer, Integer>();\n for (int i = 0; i < N; i++) {\n indexTable.put(inorder[i], i);\n }\n return helper(preorder, 0, N - 1, inorder, 0, N - 1, indexTable);\n }", "title": "" }, { "docid": "b5c157f2ee7b420f8fe17517608a8464", "score": "0.4875611", "text": "public TreeNode getRootNode()\n {\n return this.root;\n }", "title": "" } ]
3e483c87e86fe3a777bea74861e2bc9b
Formats the instruction as a String.
[ { "docid": "791ef6b42ca7805d436a836a72547306", "score": "0.0", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + op1 + \" + \" + op2 + \" to \" + result;\n\t}", "title": "" } ]
[ { "docid": "b15547f2663fbb5e4f3eda5f22f4daee", "score": "0.6287588", "text": "public String outputString(ProcessingInstruction pi) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(pi, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }", "title": "" }, { "docid": "edde061893231aa795495635fbdfb250", "score": "0.6246711", "text": "String getInstruction();", "title": "" }, { "docid": "156a776acceebfe9a76904ce92d920d8", "score": "0.6149263", "text": "public String toCodeString() {\n return String.format(\"%s = %s;\\n\", this.identifier.toString(), this.exp.toCodeString());\n }", "title": "" }, { "docid": "f79383fbc300c628be7e085104a60e00", "score": "0.5992118", "text": "public String toString(){\n\t\tString out=\"\";\n\t\tif (type == \"op\"){\n\t\t\treturn out + operand;\n\t\t}\n\t\telse{\n\t\t\treturn out + value ;\n\t\t}\n\t}", "title": "" }, { "docid": "8ece04e9d566c073710037ee2b648442", "score": "0.5966648", "text": "public String getOutput() {\n return String.format(\"DCode: %-7.0f \\\"%-9s\\\" \\t - %5.3fmm x %5.3fmm - \\t Area: %6.3fmm² \\t Area Ratio: %5.2f \\t Transfer Effeciency: %2.1f \\t Number of apertures: %-5.0f\"\n , (double) dCode\n , shape\n , x\n , y\n , getArea()\n , getAreaRatio()\n , getTransferEffeciency()\n , (double) numbOfApertures);\n }", "title": "" }, { "docid": "15b62d58e94994d55a5c43d8c982e07c", "score": "0.59644306", "text": "protected abstract String format();", "title": "" }, { "docid": "d34ac5b2926ce1028017b7c302044324", "score": "0.5958415", "text": "@Override\n public String toString() {\n return String.format(super.toString() + \"\\n%-8s%-10s%s\\n%-8s%-10s%s\",\n \"\", \"Function:\", getFunction(),\n \"\", \"Material:\", getMaterial());\n }", "title": "" }, { "docid": "ec5f76b8455937b73a52643d6b0dd655", "score": "0.5936387", "text": "@Override\n public String toString()\n {\n return String.format(\"%s^%s\", fCode, fMessage);\n }", "title": "" }, { "docid": "231416776f95e81652c8403a5c1d9784", "score": "0.5890184", "text": "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "a60479fc3f025ee5690ae521012cc3ec", "score": "0.588892", "text": "@VTID(8)\r\n java.lang.String format();", "title": "" }, { "docid": "fe01945e910fd426d576a3a1497302dd", "score": "0.5880452", "text": "@Override\n public String toString() {\n StringBuilder buf = new StringBuilder();\n buf.append(Time.toUsefulFormat(time));\n buf.append(\" \" + actionType.name());\n buf.append(\" author=[\" + author + \"]\");\n buf.append(\" target=\" + target.name());\n buf.append(\" path=\" + path);\n buf.append(\" ipath=\" + ipath);\n \n return buf.toString();\n }", "title": "" }, { "docid": "e79e9985d44cf7e1da45467d4f350f2c", "score": "0.586989", "text": "public String toString()\n {\n /**\n * Set the format as [timestamp] account number : command\n */\n String transaction = \"[\" + timestamp + \"] \" + accountInfo.getAccountNumber() + \" : \" + command.name(); \n \n /**\n * Return the string.\n */\n return transaction;\n }", "title": "" }, { "docid": "1f488dfe35b79f0c819fae17b347c1cf", "score": "0.58422834", "text": "java.lang.String getOutput();", "title": "" }, { "docid": "aaba12894c97396ca7b89e09392025bb", "score": "0.58309484", "text": "@Override\n public String toEncodedString() {\n int completeBinary = 0;\n if (this.isComplete) {\n completeBinary = 1;\n }\n return \"D\" + \" | \" + completeBinary + \" | \" + this.taskDetails + \" | \"\n + this.date.format(inputDateFormat);\n }", "title": "" }, { "docid": "ce0f1651419a8c0e3200dcd75314d579", "score": "0.5818494", "text": "public String toString() {\n/* 168 */ StringBuffer stringBuffer = new StringBuffer(\"Address Type: \" + this.addrType + \"\\n\");\n/* */ \n/* 170 */ stringBuffer.append(\"AddressContents: \");\n/* 171 */ for (byte b = 0; b < this.buf.length && b < 32; b++) {\n/* 172 */ stringBuffer.append(Integer.toHexString(this.buf[b]) + \" \");\n/* */ }\n/* 174 */ if (this.buf.length >= 32)\n/* 175 */ stringBuffer.append(\" ...\\n\"); \n/* 176 */ return stringBuffer.toString();\n/* */ }", "title": "" }, { "docid": "da4eb83456d76270edfbdf103165d6ea", "score": "0.58037615", "text": "public String getInstruction(){\n\t\treturn this.instruction;\n\t}", "title": "" }, { "docid": "76c8020078f4f250a9dd2333ef6724d5", "score": "0.5795335", "text": "public String toString(){\n\tString sourceName;\n\tString destinationName;\n\t// its possible the wire has no source gate so this avoids null\n\t// pointer errors\n\tif( source == null){\n\t sourceName = \"No wire source\";\n\t} else {\n\t sourceName = this.source.name;\n\t}\n\t// provides the same check for destination gates\n\tif( destination == null ){\n\t destinationName = \"No wire destination\";\n\t} else {\n\t destinationName = this.destination.name;\n\t}\n\treturn \"Wire \" + sourceName + \" \"+ srcPin + \" \" +\n\t\tdestinationName + \" \" + \" \" + dstPin\n\t\t+ \" \" + delay;\n }", "title": "" }, { "docid": "11d7c8e7b2adb72289af0eff69aaca24", "score": "0.57917005", "text": "public String format()\n {\n StringBuilder sb = new StringBuilder(64);\n sb.append(expression).append(\" = \");\n\n if (detailExpression != null && !detailExpression.equals(value.toString()))\n {\n sb.append(\"(\").append(detailExpression).append(\") = \");\n }\n\n sb.append(value);\n if (description != null)\n {\n sb.append(\" // \").append(description);\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "848eb6672d0331089fddec83fe40b26c", "score": "0.5785388", "text": "public String toString()\n{\n StringBuffer buf = new StringBuffer();\n buf.append(\"[SOURCE: \" + for_source.getName() + \",\\n\");\n if (getTransforms() != null) {\n buf.append(\"TRANS:\");\n for (S6Transform.Memo m : getTransforms()) {\n\tbuf.append(\" \");\n\tbuf.append(m.getTransformName());\n }\n }\n else {\n buf.append(\" TEXT: \" + getFragment().getText());\n }\n buf.append(\"]\");\n\n return buf.toString();\n}", "title": "" }, { "docid": "d5e2f42c40c5cc8e0290ceca186157c5", "score": "0.5780969", "text": "public String toString()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\treturn equationString + \" = \" + getResult();\r\n\t}", "title": "" }, { "docid": "da65c1a21c8b086740db5cf80872d3b0", "score": "0.5777568", "text": "public String toOutputString()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (Entry<Object, Object> entry : this.entrySet())\n\t\t\tbuf.append(String.format(\"%s=%s%c\",\n\t\t\t\t\tentry.getKey(), entry.getValue(), 12));\n\t\treturn buf.toString();\n\t}", "title": "" }, { "docid": "14ea857ac9ec44803781aae7f17375cb", "score": "0.577484", "text": "public String toString()\n {\n String outString = \n getRecip() + \" \" +\n \"\" ;\n return outString;\n }", "title": "" }, { "docid": "7a019cfcdfdd55e36377712d293166ca", "score": "0.57548714", "text": "String getInstructions();", "title": "" }, { "docid": "89106373888c8eae5d5fc2b36160a5a7", "score": "0.5742892", "text": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\" %s %s\", operador, exp);\n\t}", "title": "" }, { "docid": "6b73cf5b50ab0ca33c17b4544acfd41e", "score": "0.57408625", "text": "public String toString() {\n return this.getNom() +\n formatbonus('f', bonusForce) +\n formatbonus('d', bonusDefense) +\n formatbonus('v', bonusVie) +\n formatbonus('e', bonusEsquive) +\n formatbonus('i', bonusInventaire) +\n \"\";\n }", "title": "" }, { "docid": "1ef492b5e2f9fde409d5738b551758b4", "score": "0.573944", "text": "public String toString() {\n \t\tStringBuffer retval = new StringBuffer();\r\n \t\tretval.append(address.toString());\r\n \t\tif ( parameters.size() != 0 ) retval.append(\";\").append(parameters.toString());\r\n \t\treturn retval.toString();\r\n \t}", "title": "" }, { "docid": "92693e72a62234085bff03a9605bb07f", "score": "0.57360905", "text": "public String toString() {\n return fullExpression;\n }", "title": "" }, { "docid": "be8cd4b25290cbdf52f0cf70c26fcec1", "score": "0.5733149", "text": "public String toString(){\n\n\t\tString msg =\"\";\n\t\tmsg += super.toString()+\"\\n\";\n\t\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\t\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\t\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\n\t return msg;\n\t}", "title": "" }, { "docid": "d91e5f51bfa9858f57d605cf37a0fae6", "score": "0.57030916", "text": "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor (int i=13; i<=16; i++){\n\t\t\toutput.append(linesAndStores[i].makeString());\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "title": "" }, { "docid": "929d1a3bce7832d6c70d1f62101e0e1c", "score": "0.56901044", "text": "public java.lang.String toString() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.toString():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.toString():java.lang.String\");\n }", "title": "" }, { "docid": "a8fde1a6083d9ee138270d2a88554ca9", "score": "0.56685555", "text": "protected String getToStringFormat()\n {\n return getClass().getSimpleName() + \"@\"\n + Integer.toHexString(hashCode()) + \": { \"\n + \"offset = 0x\" + Integer.toHexString(offset) + \"; \"\n + \"size = \" + size + \"; \"\n + \"%s\"\n + \"value = \" + getValue() + \"; \"\n + \"isAccessible = \" + isAccessible() + \"; \"\n + \"checksum = 0x\" + Integer.toHexString(checksum()) + \"; \"\n + \"}\";\n }", "title": "" }, { "docid": "9294876f12ba860f11817ed631777fb6", "score": "0.56663924", "text": "public String toString() {\n return operator + \"(\" + argument + \")\";\n }", "title": "" }, { "docid": "c96ea916d7ded43d1c8af44b2d952bf6", "score": "0.5663734", "text": "public String toString(){\n\n\tString msg =\"\";\n\n\tmsg += super.toString()+\"\\n\";\n\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\tmsg += \"---------------------------------------------------------\";\n\n\n return msg;\n}", "title": "" }, { "docid": "41eea60193fad414cf9a1714b0e044d1", "score": "0.56453484", "text": "public String toString() {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < symbolCodeBits.length; i++) {\n sb.append(String.format(\"Code %s: Symbol %d%n\", Integer.toBinaryString(symbolCodeBits[i]).substring(1),\n symbolValues[i]));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "618ada872f3893eba8e0544a40966a9a", "score": "0.563774", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(ThmProcessUtil.isaActProc + \" \" + name);\n\t\t\n\t\tif (!param.isEmpty()) {\n\t\t\tsb.append (\" = \\n\");\n\t\t\tfor (String s : param) {\n\t\t\t\tsb.append(s + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tsb.append(ThmProcessUtil.isaProcBegin + \"\\n\" + \n\t\t\t\t body + \"\\n\" + ThmProcessUtil.isaProcEnd);\n\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "3fc882751e24e17a543a8548fe320d1f", "score": "0.56158817", "text": "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "title": "" }, { "docid": "f36c163eecd249b51f844ee0f117b883", "score": "0.56093985", "text": "@Override\n public String toString(){\n return '+' + code + number.substring(0, 3) + '-' + number.substring(3, 6) + '-' +number.substring(6);\n }", "title": "" }, { "docid": "7f7af705b57491ad13b762c961587900", "score": "0.5580775", "text": "@Override\n\tpublic String toString() {\n\t\tString str = \"(\";\n\t\tif(this.error) str += \"1 - \";\n\t\tint i = 0;\n\t\tfor(String component : this.components) {\n\t\t\tif(i != 0) {\n\t\t\t\tstr += \" * \";\n\t\t\t}\n\t\t\tstr += component;\n\t\t\ti++;\n\t\t}\n\t\treturn str + \")\";\n\t}", "title": "" }, { "docid": "c62b9ce5d681565644b3f120e4a9baa8", "score": "0.55750626", "text": "public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}", "title": "" }, { "docid": "1b0fe321d60b378283be7ebc950624e9", "score": "0.55740464", "text": "protected String toStringAsCode() {\r\n \t\treturn \"<\"+toStringAsElement()+\">\";\r\n \t}", "title": "" }, { "docid": "5b120504cdfc600e9a47560793130868", "score": "0.55740076", "text": "protected String getResultLog() {\n\t\tfinal StringBuilder ret = new StringBuilder(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n<signs>\\n\"); //$NON-NLS-1$\r\n\t\tfor (final SingleSign ss : this.signs) {\r\n\t\t\tret.append(\" \"); //$NON-NLS-1$\r\n\t\t\tret.append(ss.getProcessResult().toString());\r\n\t\t\tret.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t}\r\n\t\tret.append(\"</signs>\"); //$NON-NLS-1$\r\n\t\treturn ret.toString();\r\n\t}", "title": "" }, { "docid": "7470858a0d1d57dbc308516409d67f88", "score": "0.5572013", "text": "public String getFormattedString() {\n return String.format(\"E | %s | %s | %s\", super.getStatusIcon(), description, info);\n }", "title": "" }, { "docid": "36901206cd10724d4dc0cb8f2007c3f9", "score": "0.55673", "text": "public String toString()\n {\n return toString((Format) null);\n }", "title": "" }, { "docid": "2f4a849fb35c382ec05a90ca842d476e", "score": "0.5558011", "text": "@Override\n public String toString() {\n return address[1] + \".\" + address[2] + \".\" + address[3] + \".\" + address[4];\n }", "title": "" }, { "docid": "d15df592d82447a282b5c995a9934c8b", "score": "0.5557378", "text": "public static String getInstruction() {\n return \"Adds a todo task to the tasks list\\n\"\n + \"Format: todo [desc]\\n\"\n + \"desc: The description of the todo task\\n\";\n }", "title": "" }, { "docid": "726974a3cfa9ab6d2193f3dad880dd42", "score": "0.55529976", "text": "public String getStringRepresentation() {\n StringJoiner joiner = new StringJoiner(STRING_FORMAT_DELIMITER);\n\n joiner.add(this.getCaller())\n .add(this.getCallee())\n .add(SIMPLE_DATE_FORMAT.format(startTime))\n .add(SIMPLE_DATE_FORMAT.format(endTime));\n\n return joiner.toString();\n }", "title": "" }, { "docid": "649eabd22839322b920641b3f673a62c", "score": "0.55525345", "text": "public String toString() {\n final StringBuffer sb = new StringBuffer();\n sb.append(\"\\n [ Id: \" + id + \" ]\");\n sb.append(\"\\n [ ClassName: \" + className + \" ]\");\n sb.append(\"\\n [ MethodName : \" + methodName + \" ]\");\n if (bextraInfo) {\n for (int i = 0; i < extraInfo.length; i++) {\n sb.append(\n \"\\n [ Parameter \" + i + \" : \" + extraInfo[i]\n + \" ]\");\n }\n }\n sb.append(\"\\n [ Calendar: \" + cal + \" ]\");\n sb.append(\"\\n [ TimeMillis: \" + timeMillis + \" ] \");\n sb.append(\"\\n \");\n return sb.toString();\n }", "title": "" }, { "docid": "bd81a73196ddbbf8ec66abe17fa3b971", "score": "0.5548976", "text": "@GwtIncompatible(\"String.format()\")\n/* */ public String toString() {\n/* 171 */ return toString(4);\n/* */ }", "title": "" }, { "docid": "0e2c8cb79c28eba6af3c767e3e824fa3", "score": "0.5539736", "text": "public String toString() { return stringify(this, true); }", "title": "" }, { "docid": "d9c93f0b77ff033ef81a07529ab22791", "score": "0.5533062", "text": "public java.lang.String toString() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.toString():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.toString():java.lang.String\");\n }", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "a16dde518cb525efd2e56c4ec3c5d398", "score": "0.5532274", "text": "String toString();", "title": "" }, { "docid": "1067a8dfab753b21a8b2310318ffb0ab", "score": "0.5529301", "text": "@Override\n public String toString() {\n return op.toString();\n }", "title": "" }, { "docid": "304d2b4f1fffddde06c7de4b0ccc66d1", "score": "0.55279136", "text": "public String toString() {\r\n return String.format(\"%-5s %-20s %-10s %-7s %-15s\", toolId, toolName, toolQuantity, toolPrice, toolSupplier.getName());\r\n }", "title": "" }, { "docid": "c27eaab5223faf0b04544cb1be7f0085", "score": "0.5524144", "text": "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "title": "" }, { "docid": "9da148fc00e1b66c721ad5b43e5f49a1", "score": "0.5517767", "text": "@Override\n public String toString() {\n String out = String.format(\"Street Address: %s, City: %s, State: %s, Zipcode: %d\", this.streetAddress, this.city,\n this.state, this.zipCode);\n return out;\n }", "title": "" }, { "docid": "dadb3e5fc6c17eb6548c30ddc60aed6a", "score": "0.5511264", "text": "public String toString() {\n return \"\" + data;\n }", "title": "" }, { "docid": "3583e2d3d83baef42f7658ee430c125e", "score": "0.5511174", "text": "@Override\n public final String toString() {\n return asString(0, 4);\n }", "title": "" }, { "docid": "9ad58c6a0aef18711acb0bb80da8da5b", "score": "0.55055803", "text": "public String toString() {\n switch (opType) {\n case Plus:\n return \"+\";\n case Minus:\n return \"-\";\n case Multiply:\n return \"*\";\n case Divide:\n return \"/\";\n case Square:\n return \"^\";\n default:\n return null;\n }\n }", "title": "" }, { "docid": "de132f093292a91c28c1d9cb6f76d10b", "score": "0.54990494", "text": "public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}", "title": "" }, { "docid": "92bee5617f77f56a39887b893996b92d", "score": "0.5497045", "text": "public String toString()\r\n {\r\n final String TAB = \" \";\r\n \r\n String retValue = \"\";\r\n \r\n retValue = \"RegVisitOperateSub ( \"\r\n + super.toString() + TAB\r\n + \"id = \" + this.id + TAB\r\n + \"actionid = \" + this.actionid + TAB\r\n + \"email = \" + this.email + TAB\r\n + \"userid = \" + this.userid + TAB\r\n + \"time = \" + this.time + TAB\r\n + \"s1 = \" + this.s1 + TAB\r\n + \"s2 = \" + this.s2 + TAB\r\n + \"s3 = \" + this.s3 + TAB\r\n + \"s4 = \" + this.s4 + TAB\r\n + \" )\";\r\n \r\n return retValue;\r\n }", "title": "" }, { "docid": "9775608e811b5967ecea1de8ad9239d1", "score": "0.5471476", "text": "@Override\n public String toString() {\n switch (this) {\n case CODE128_A:\n return \"code128A\";\n case CODE25INTER:\n return \"2/5 interleave\";\n default:\n return name();\n }\n }", "title": "" }, { "docid": "4132d622094e7b6bda85e07b620bbe83", "score": "0.546863", "text": "public String toString()\n {\n // import Component.Application.Console.Coherence;\n \n return \"RefAction{Method=\" + getMethod().getName() + \", Target=\" + getTarget() +\n \", Args=\" + Coherence.toString(getArguments()) + '}';\n }", "title": "" }, { "docid": "1cc71a0f339ef90cfe587fc8e8272d70", "score": "0.5466854", "text": "public String getInstruction()\n\t\t{\n\t\t\treturn m_instruction;\n\t\t}", "title": "" }, { "docid": "c0e4ff986658935dd125c679550288fe", "score": "0.54621935", "text": "public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }", "title": "" }, { "docid": "81bff3a9919346890f0e4db7b7c34c5c", "score": "0.54527557", "text": "public java.lang.String toString() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.location.GpsClock.toString():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.toString():java.lang.String\");\n }", "title": "" }, { "docid": "a7f963fa05b7ad211426a05841075fb1", "score": "0.5449397", "text": "@Override\n\tpublic String toString() {\n\t\treturn (\"\"+label);\n\t}", "title": "" }, { "docid": "a7db0b865a395072ffef6b2a9d3778a9", "score": "0.54472214", "text": "public String toString() {\n\t\tString s1,s2,s3,s4;\r\n\t\ts1 = \"{FIR ID: \"+id + \"\\nname= \" + name + \", phone number=\" + phone_no \r\n\t\t\t\t+\"\\nDate: \"+filing_date+\", Address: \" +address\r\n\t\t\t\t+\"\\nFIR Category: \"+category;\r\n\t\t\r\n\t\tif(statement_uploaded) {\r\n\t\t\ts2 = \", Statement Uploaded\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\ts2 = \", Statement Not Uploaded\";\r\n\t\t}\r\n\t\tif(id_proof_uploaded) {\r\n\t\t\ts3 = \", ID Proof Uploaded\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\ts3 = \", ID Proof Not Uploaded\";\r\n\t\t}\r\n\t\ts4 = \"\\nStatus : \"+status+\"}\";\r\n\t\treturn s1+s2+s3+s4;\r\n\t}", "title": "" }, { "docid": "e16806773b7363eaaca175dada72c3e6", "score": "0.5446411", "text": "@Override\n public final String toString() {\n \t\n \treturn String.format(\"[%1$s [%2$s\\t%3$s\\t%4$s]%1$s [%5$s\\t%6$s\\t%7$s]%1$s [%8$s\\t%9$s\\t%10$s] ]\", System.getProperty(\"line.separator\"), this.m00, this.m01, this.m02,\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 this.m10, this.m11, this.m12,\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 this.m20, this.m21, this.m22);\n }", "title": "" }, { "docid": "a1bdaa4de7a1168fd29d6c9eb9e9e13f", "score": "0.54437524", "text": "public String toString() {\n\t\t\tswitch(this) {\n\t\t\tcase INSERT_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"INSERT INTO lry.aut_bsi_prc_cfg_resources(CFG_ID, RSC_NAME, RSC_DESCRIPTION, RSC_LOCATION_INPUT, RSC_LOCATION_OUTPUT, RSC_ITEM, RSC_ITEM_KEY) VALUES(?,?,?,?,?,?,?);\";\n\t\t\t}\n\t\t\tcase SELECT_ALL_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources;\";\n\t\t\t}\n\t\t\tcase SELECT_BSI_RESOURCES_BASE_BY_CFG_BASE_ID:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources WHERE CFG_ID=?;\";\n\t\t\t}\n\t\t\tdefault:{\n\t\t\t\treturn this.name();\n\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "29dd34def1fbc35c80bf6ee68edd3d63", "score": "0.54366314", "text": "public String toString() {\n String s = \"Message <ReportAckMsg> \\n\";\n try {\n s += \" [dest=0x\"+Long.toHexString(get_dest())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "title": "" }, { "docid": "3221526a7c7df44410bb1bc76e615069", "score": "0.54364836", "text": "@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }", "title": "" }, { "docid": "233957c6e877a5c03303b9871ff7deb1", "score": "0.54294884", "text": "public String toString() {\n // Introducing StringBuilder\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"\\nThis stack has %d elements and %d of them are used\",\n this.foundation.length, this.usage));\n sb.append(\"\\n\\t[ \");\n for (int i = this.foundation.length - this.usage; i < this.foundation.length; i++) {\n sb.append(String.format(\"%s \", foundation[i]));\n }\n sb.append(\"]\");\n return sb.toString();\n }", "title": "" }, { "docid": "c4c353b44a41459fabb142b002768001", "score": "0.5423503", "text": "public String toDetailedString() {\n \t\tStringJoiner joiner = new StringJoiner(\"\\r\\n\");\n \t\tfor (MethodInfo method : methods) {\n \t\t\tjoiner.add(method.toString());\n \t\t}\n \t\treturn joiner.toString();\n \t}", "title": "" }, { "docid": "250ff3cc71814e0675a90f01b141cbd9", "score": "0.5421724", "text": "public String toString(){\r\n\t\tif (modifiers == 1) return \"O-O (w)\";\r\n\t\telse if (modifiers == 2) return \"O-O (b)\";\r\n\t\telse if (modifiers == 3) return \"O-O-O (w)\";\r\n\t\telse if (modifiers == 4) return \"O-O-O (b)\";\r\n\t\tString st = \"\";\r\n\t\tst += x88ToString(start_sq);\r\n\t\tst += x88ToString(end_sq);\r\n\t\tif (modifiers == 5) st += \"e.p.\";\r\n\t\telse if (modifiers == 6) st += \"=R\";\r\n\t\telse if (modifiers == 7) st += \"=N\";\r\n\t\telse if (modifiers == 8) st += \"=B\";\r\n\t\telse if (modifiers == 9) st += \"=Q\";\r\n\t\treturn st;\r\n\t}", "title": "" } ]
f38976f490345f4ee4c79890f0a81ee6
Creates a new instance of ScolBean
[ { "docid": "85465322fa6e06850f9c2ce73bbf7960", "score": "0.79906386", "text": "public ScolBean() {\r\n }", "title": "" } ]
[ { "docid": "0ba688d7f38853eaa8ca9812d1888987", "score": "0.65527004", "text": "public ChequeSingleBean() {\n }", "title": "" }, { "docid": "3011f633c5cd6d46bdfd7b8028737b40", "score": "0.64709044", "text": "protected abstract T newBean(YasdicContainer c);", "title": "" }, { "docid": "ef1b796d470064934db7b82369ea3aac", "score": "0.6220676", "text": "private StudyBean createStudyBean() {\n FormProcessor fp = new FormProcessor(request);\n StudyBean newStudy = new StudyBean();\n newStudy.setName(fp.getString(\"name\"));\n newStudy.setOfficialTitle(fp.getString(\"officialTitle\"));\n newStudy.setIdentifier(fp.getString(\"uniqueProId\"));\n newStudy.setSecondaryIdentifier(fp.getString(\"secondProId\"));\n newStudy.setPrincipalInvestigator(fp.getString(\"prinInvestigator\"));\n\n newStudy.setSummary(fp.getString(\"description\"));\n newStudy.setProtocolDescription(fp.getString(\"protocolDescription\"));\n\n newStudy.setSponsor(fp.getString(\"sponsor\"));\n newStudy.setCollaborators(fp.getString(\"collaborators\"));\n\n return newStudy;\n\n }", "title": "" }, { "docid": "edab1c942eee97569cbc0ff8eff0851f", "score": "0.621344", "text": "public beanSolicitud() {\r\n }", "title": "" }, { "docid": "c0db5f7546dbf04db3e2d0b7772c4ce3", "score": "0.61456907", "text": "protected TestBean createTestBean() {\n\t\tthis.rob = new TestBean();\n\t\tthis.rob.setName(\"Rob\");\n\t\tthis.rob.setMyFloat(new Float(12.34));\n\n\t\tTestBean sally = new TestBean();\n\t\tsally.setName(\"Sally\");\n\t\tthis.rob.setSpouse(sally);\n\n\t\treturn this.rob;\n\t}", "title": "" }, { "docid": "3c100aeb65980c78a508b834626a08b4", "score": "0.6089285", "text": "CustomerBean()\n {\n }", "title": "" }, { "docid": "01117dcb3b4d538739f77cad4a308f90", "score": "0.6071781", "text": "public UserBean() {\r\n }", "title": "" }, { "docid": "ebdecf3a2f0d0b302f17e85a64164454", "score": "0.6066928", "text": "public SpeciesFactSheetBean() {}", "title": "" }, { "docid": "778308ea294922844c6663a4a5bc511b", "score": "0.60342014", "text": "public DynamicGridBean() {\n }", "title": "" }, { "docid": "85bd2279c90fbce075428b2cf7cdb98d", "score": "0.60054743", "text": "public SE001Bean() {\r\n\t\tsuper(\"SE001\", false);\r\n\t}", "title": "" }, { "docid": "5bb2ca9541f1482a1122428baa594aa0", "score": "0.5968431", "text": "public ItemComandaBean() {}", "title": "" }, { "docid": "7ca987ae92eca6296f49cbfe7aa9132a", "score": "0.5968188", "text": "public MsgObject newInstance()//create a new Bean\n {\n return new MsgObject(new String(),100);\n }", "title": "" }, { "docid": "a9c7d90fdea5421668feff6e2f19a8c1", "score": "0.59599423", "text": "public CustomersBean() {\n }", "title": "" }, { "docid": "96239033d0edbeb90a45a1221b1e1281", "score": "0.5952844", "text": "public UserBean() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "b32fa3a49c600d2b9d47d31bc7b78754", "score": "0.59400934", "text": "public PersonBean() {\n name = \"\";\n age = 0;\n }", "title": "" }, { "docid": "cbda3c22bd86975edbdb638b1df7674c", "score": "0.59262615", "text": "public NoteBean() {\n\t}", "title": "" }, { "docid": "c1ca4017afbc67692d74ebe74b302d17", "score": "0.59215266", "text": "public JavaBean() {\n\t\t\n\t}", "title": "" }, { "docid": "08471797a8e6009207bc1e4dfb568510", "score": "0.591825", "text": "public PurchaseHistoryBean() {\n\t}", "title": "" }, { "docid": "3c2c41f65fab2ced3c89e4a86e0abb96", "score": "0.5909189", "text": "public EstudiosCrudBean() {\r\n }", "title": "" }, { "docid": "c4b6ab53615563db68fec60168560a22", "score": "0.5877348", "text": "public UserDataBean() {\n\n\t}", "title": "" }, { "docid": "08bf17902e38debfebf3b87c48a8f2ca", "score": "0.58515835", "text": "public CloneDataBean()\n {\n \n }", "title": "" }, { "docid": "0cc6864af8888de09c994f235a0a408f", "score": "0.580745", "text": "protected T callNewBean(YasdicContainer c, String id) {\n\t\t\treturn newBean(c);\n\t\t}", "title": "" }, { "docid": "b5383529260fff1357acd81b73a3ef1b", "score": "0.58026147", "text": "public ClienteBean() {\n }", "title": "" }, { "docid": "19547a2215a0b18cb3cae69f4ec2db00", "score": "0.5761797", "text": "public RoutineBean() {\r\n }", "title": "" }, { "docid": "fb54bb35077130ca38c1922f459d18ad", "score": "0.57592285", "text": "public BeanTest() {\r\n }", "title": "" }, { "docid": "7a9f7aac46fa19d59245e40c6682d170", "score": "0.57435334", "text": "void createStudent(StudentBean studentBean);", "title": "" }, { "docid": "8c971ca6c97bf1a261380ed43a2dde57", "score": "0.5741154", "text": "public MaestrosBean() {\r\n }", "title": "" }, { "docid": "67edfc411fc99f32fa2b4e636e2ce6a0", "score": "0.57322913", "text": "public RegistroBean() {\n }", "title": "" }, { "docid": "8ebcb87e1633336336e4896eb016ad78", "score": "0.5715017", "text": "public ChangelogBean createChangelogBean()\n {\n return new ChangelogBean();\n }", "title": "" }, { "docid": "499d387fa983ee1ddebacca567c71c86", "score": "0.5713263", "text": "public TicketsBean() {\r\n \r\n }", "title": "" }, { "docid": "7b93d6f2786a9e0cee594f6915d2a281", "score": "0.5708116", "text": "private BeanTable createBeanTable(DeployBeanInfo<?> info) {\n/* 610 */ DeployBeanDescriptor<?> deployDescriptor = info.getDescriptor();\n/* 611 */ DeployBeanTable beanTable = deployDescriptor.createDeployBeanTable();\n/* 612 */ return new BeanTable(beanTable, this);\n/* */ }", "title": "" }, { "docid": "81cd902df645da0f7b877cd72bac9151", "score": "0.56916165", "text": "public AccountCreateBean() {\n }", "title": "" }, { "docid": "5f8b83f0cc970ab645f6f92a4eadc41b", "score": "0.5676376", "text": "public DashboardBean() {\n }", "title": "" }, { "docid": "c45cb0e6b472d711647e1d321c7524cd", "score": "0.56371355", "text": "@Deprecated\n T createBean() throws InstantiationException, IllegalAccessException;", "title": "" }, { "docid": "ac1e26b432c42c2fb102e378f1e5782c", "score": "0.56367296", "text": "public EventBean() {\n }", "title": "" }, { "docid": "6b337a3bf27bdc5dff4ddcbd70a930f1", "score": "0.5631522", "text": "public StockBean() {\n this.bm = new BackingModel();\n this.loadData();\n }", "title": "" }, { "docid": "d2d4f4e7983c7ab32ca2b1c05ba2e281", "score": "0.56289345", "text": "public CostCenreBean() {\n }", "title": "" }, { "docid": "489c75f564053914a4b515138934f25f", "score": "0.5616204", "text": "public InscrireBean() {\r\n \r\n }", "title": "" }, { "docid": "1dcdb2759caebd5c2262ba94f549e5e7", "score": "0.56071246", "text": "public Object createVanillaBean() {\n/* 1513 */ return this.beanReflect.createVanillaBean();\n/* */ }", "title": "" }, { "docid": "5a66389e151fac35c7704b4bc68070fc", "score": "0.5606687", "text": "public RhSeccaoTrabalhoBean ()\n {\n }", "title": "" }, { "docid": "042f44888fa699ce0c7b58f7bc0f8677", "score": "0.5605889", "text": "public DatosXMLBean() {\n }", "title": "" }, { "docid": "e45169ed1ecba646f050a239d53ef644", "score": "0.5598888", "text": "public TranshipmentBean() {\n }", "title": "" }, { "docid": "032212747f90e90d604a81a752b820ca", "score": "0.55920607", "text": "public ShoppingCartBean() {\n }", "title": "" }, { "docid": "146ece964f112ecd28fc0bdb2bd8875c", "score": "0.5591804", "text": "public RestablecerBean() {\r\n }", "title": "" }, { "docid": "f7d03d3d4453bb49c1703895ef85a855", "score": "0.55817693", "text": "public ProvinciaBean(){\n\t}", "title": "" }, { "docid": "804236e0896329d1e462d8d528bf01a9", "score": "0.55753887", "text": "public FrameBean(String beanId) {\n super(FRAME_TABLE);\n this.beanId = beanId;\n }", "title": "" }, { "docid": "aa2775678b539edd95920bde51fcb95a", "score": "0.55721384", "text": "public SessionBean() {\n }", "title": "" }, { "docid": "aa2775678b539edd95920bde51fcb95a", "score": "0.55721384", "text": "public SessionBean() {\n }", "title": "" }, { "docid": "28b400bd3552309f8f69be002ff894e6", "score": "0.5550386", "text": "public PostBean() {}", "title": "" }, { "docid": "b44c4191f875cf77132a6caf49b52df2", "score": "0.553859", "text": "public conductorfunBean() {\n\t}", "title": "" }, { "docid": "1ba938f763c1b5aca9e591716976c5b8", "score": "0.55224085", "text": "public AccountBean() {\n }", "title": "" }, { "docid": "c609812d2bdd1ac071d91145822429ce", "score": "0.55140597", "text": "public DbAPIBean() {\n }", "title": "" }, { "docid": "38ca2067c67111e0de9c5143684dc170", "score": "0.5512943", "text": "public FreelanceDashboardBean() {\r\n\r\n }", "title": "" }, { "docid": "d3424a933da7ece7a0388acacf62f7f8", "score": "0.55099183", "text": "public PeriodeBean() { \n \n }", "title": "" }, { "docid": "cac113bc558ad675513d6d9e6acebce5", "score": "0.5499252", "text": "public IssueBean() {\n\t}", "title": "" }, { "docid": "df7a9e3752879e59f7353485fbe07efa", "score": "0.5453263", "text": "public FrameBean() {\n super(FRAME_TABLE);\n }", "title": "" }, { "docid": "24c3cb30e50bda75c477fd0264b05026", "score": "0.54524595", "text": "public ProductoFacturacionBean() {\n\n }", "title": "" }, { "docid": "8accb58ba0d92119f9524942a0b0231e", "score": "0.5442145", "text": "public ERecListBean() {\n\t}", "title": "" }, { "docid": "b92b5805abf1932010706d6ce2dc3df8", "score": "0.54376656", "text": "public LatchBean() {\n }", "title": "" }, { "docid": "5925a9b4e553e28e7a35fe5ca4722901", "score": "0.5434331", "text": "protected InvoiceBean()\r\n {\r\n }", "title": "" }, { "docid": "73b770a0acd963f9fc2b99e9a74e25bf", "score": "0.54266524", "text": "public AllUsersListBean() {\n }", "title": "" }, { "docid": "7dc238168cf0afcf56bbc2c53e169f99", "score": "0.54134417", "text": "public JavaBean() {\n pcs = new PropertyChangeSupport(this);\n }", "title": "" }, { "docid": "4093806bdc228f4aef0e357ac5dc5fec", "score": "0.5408406", "text": "public ValueDateBean() {\n }", "title": "" }, { "docid": "37dbab0794d274e80909ea242ac8f2fd", "score": "0.5397989", "text": "public SimpleWorksheetBuilder() {\n worksheet = new Worksheet();\n }", "title": "" }, { "docid": "c3be65d9063784ab40047a1f8a7d55cd", "score": "0.53845537", "text": "public MovieBean() {\n }", "title": "" }, { "docid": "c1aee77036562f8d642068b6a7c57fe8", "score": "0.5382972", "text": "public ViewProjectBean() {\n\n }", "title": "" }, { "docid": "968896d94a91d038b8c8a3c3b9264142", "score": "0.53571975", "text": "ExtravalBean()\n {\n }", "title": "" }, { "docid": "8b2549af9965c0f07de3712d0d42db57", "score": "0.5346612", "text": "public CollectionsBean() {\n super();\n this.sb = (SessionBean) BeanHelper.getSessionBean(SessionBean.class);\n }", "title": "" }, { "docid": "d75fa1ca94cb5be6e012374d76f77073", "score": "0.5280271", "text": "public ScheduleBean() {\n appSched = new CoopAppSched();\n }", "title": "" }, { "docid": "0b94120b5b09162fb4d610a7841e1cfe", "score": "0.5278331", "text": "public Object createBean(boolean vanillaMode) {\n/* 1503 */ return vanillaMode ? createVanillaBean() : createEntityBean();\n/* */ }", "title": "" }, { "docid": "3b9154d6fcfc918c791eb130f23fd206", "score": "0.52596855", "text": "public LoginBean() {\n }", "title": "" }, { "docid": "3b9154d6fcfc918c791eb130f23fd206", "score": "0.52596855", "text": "public LoginBean() {\n }", "title": "" }, { "docid": "d2281669ba84d25d90819dd676268060", "score": "0.5257982", "text": "public HREducationLevelBean() {\n }", "title": "" }, { "docid": "7b7660338232f3e3b8d9fdeed62741fa", "score": "0.52573186", "text": "public UserBean() {\n\t\tinjector = super.getInjector();\n\t\tserviciosHistorialEquipos = injector.getInstance(serviciosHistorialEquipos.class);\n\t}", "title": "" }, { "docid": "1857621f03fd4a236873bae0ad00b6ec", "score": "0.5254706", "text": "public AuthorBean() {\n }", "title": "" }, { "docid": "b1cb7fe1aa2caccd2423795afc6a1fb9", "score": "0.5244045", "text": "public CommentBean() {\n }", "title": "" }, { "docid": "6439e970a636d3bb404f4719a15d3a93", "score": "0.5233846", "text": "public DbAccessBean() {\n\t}", "title": "" }, { "docid": "4f9c9216f3ca00626dfb71acaed53d51", "score": "0.5232994", "text": "public AutorBean() {\r\n }", "title": "" }, { "docid": "693829fefb9ca1c079a057a0c438b6b4", "score": "0.5192765", "text": "public exportimportBean() {\r\n }", "title": "" }, { "docid": "3bd8e92be7e5bab22b1a99ddc17bbe37", "score": "0.51887023", "text": "@Bean(\"book\")//hello is name of the bean\n\t\n\tpublic Book getBook() {//method returning an object ie factory method\n\t\tBook b= new Book();\n\t\tb.setAuthor(getAuthor());\n\t\tb.setBookname(\"science\");\n\t\treturn b;\n\t\t//we have to configure this method as bean\n\t}", "title": "" }, { "docid": "49c476fe41413f6259e1ff0f89c7c3f7", "score": "0.5181265", "text": "public EMCBusinessBean() {\n }", "title": "" }, { "docid": "a188ebd986ddc842b2fbc2e1ff7fd11a", "score": "0.517951", "text": "public BeanQueryExample() {\r\n\t\t// Create a descriptor defining a common name space, BeanHelloWorld2, and automatically set instance id.\r\n\t\tIApplicationDescriptor appDesc = new ApplicationDescriptor(\"BeanQueryExample\");\r\n\t\t\r\n\t\t// Create the shared bean platform and assign it the application namespace and instance id.\r\n\t\tplatform = new SharedBeanPlatform(appDesc);\r\n\t}", "title": "" }, { "docid": "eaea1938647d77533236f9a55c7a1ade", "score": "0.516916", "text": "public FlPersonGroupBean createBean()\n {\n return new FlPersonGroupBean();\n }", "title": "" }, { "docid": "c194231ce1255e6da73bf76a71f4ef9d", "score": "0.5165783", "text": "public IndexRequestBean() {\n }", "title": "" }, { "docid": "c6c3710a15261be35d750f340908ecb0", "score": "0.5149119", "text": "public UserServiceBean() {\n }", "title": "" }, { "docid": "43e12d40a5f2e1f8da6be0562bbc0096", "score": "0.5148716", "text": "public TbMedicamentoBean()\n {\n }", "title": "" }, { "docid": "c281e09288cfc812a04b9e6c4e195ff1", "score": "0.5146305", "text": "public VentaEntradaBean() {\r\n }", "title": "" }, { "docid": "05464704eeb9c74fbdd6a40d359f8a8f", "score": "0.51417726", "text": "@Override\r\n\t\tpublic ShippingBean createFromParcel(Parcel source) {\n\t\t\tShippingBean shipping = new ShippingBean();\r\n\t\t\tshipping.shippingID = source.readString();\r\n\t\t\tshipping.shippingCode = source.readString();\r\n\t\t\tshipping.shippingName = source.readString();\r\n\t\t\tshipping.shippingDesc = source.readString();\r\n\t\t\tshipping.ordering = source.readString();\r\n\t\t\tshipping.basicFee = source.readString();\r\n\t\t\tshipping.stepFee = source.readString();\r\n\t\t\tshipping.transitTime = source.readString();\r\n\t\t\tshipping.freeLimit = source.readString();\r\n\t\t\tboolean[] boo = new boolean[1];\r\n\t\t\tsource.readBooleanArray(boo);\r\n\t\t\tshipping.isVisible = boo[0] ;\r\n\t\t\treturn shipping;\r\n\t\t}", "title": "" }, { "docid": "7e320851dad25552be4ffccad8b77642", "score": "0.5123384", "text": "public ManagedProjectBean() {\n }", "title": "" }, { "docid": "7e8c63d296c937b0bac866d9852cc670", "score": "0.51214564", "text": "public EventModBean() \n {\n }", "title": "" }, { "docid": "df1f47282ff6464ea15a0babf5e60c9f", "score": "0.5118924", "text": "@Bean(\"hello\")//hello is name of the bean\n\t@Scope(\"prototype\")//bydefault it is singleton//map the scope..\n\tpublic Hello getHello() {//method returning an object ie factory method\n\t\tHello hello= new Hello();\n\t\thello.setMsg(\"i love shri\");\n\t\treturn hello;\n\t\t//we have to configure this method as bean\n\t}", "title": "" }, { "docid": "f16c71c851242b770beb2db2df774488", "score": "0.51100105", "text": "public OverbookingManagedBean() {\n }", "title": "" }, { "docid": "f6a7a6c2ec12868caf3f89d0a37155e4", "score": "0.5094569", "text": "public CreateUserManagedBean() {\n }", "title": "" }, { "docid": "d4f4676dbc0e0d328b28c3f07ac533a2", "score": "0.50921875", "text": "public PlayerDetailsBean() {\r\n }", "title": "" }, { "docid": "36f69ae1d278e863d96d7f5dee27c72f", "score": "0.50735396", "text": "AutoBean<User> makeUser();", "title": "" }, { "docid": "2089ade2acc2202a0d07c770cf9a7dc5", "score": "0.507038", "text": "Object getBean();", "title": "" }, { "docid": "24e654762c107c563466ccf4979cb812", "score": "0.50698805", "text": "public CartBean() {\n\t\tthis.book = new String[0];\n\t\tthis.cart = new ArrayList<Integer>();\n\t}", "title": "" }, { "docid": "ccd0eb47664eda8b94e362dbdd5de81d", "score": "0.5063227", "text": "public ServiceBean() {\r\n this.service = new Service();\r\n this.services = metier.listerService();\r\n }", "title": "" }, { "docid": "6ded0d403c964fae4e45ffbdcaa2a45e", "score": "0.5057039", "text": "public HistoriaClinicaBean() {\n cita = new Cita();\n persona = new Persona();\n examenFisico = new ExamenFisico();\n profesional = new ProfesionalEncargado();\n patronSueno = new PatronDescanso();\n patronCog = new PatronCognitivo();\n cuidador = new Cuidador();\n examenFisicoList = new ArrayList<DetalleExamenFisico>();\n medicamentoList = new ArrayList<Medicamento>();\n impresionDiagnosticaList = new ArrayList<ImpresionDiagnostica>();\n registroHistoriaClinicaService = new RegistroHistoriaClinicaServiceImplement();\n fkAntecedente = new Ante();\n pacienteService = new PersonaServiceImplement();\n inicializarListas();\n lstCie10 = new ArrayList<Cie10>();\n cie10Service = new Cie10ServiceImplement();\n consultarCie10();\n }", "title": "" }, { "docid": "fed0cb3252fbed694554186afaa50985", "score": "0.5055123", "text": "public Bean() {\r\n gene = new int[] {0, 0, 0, 0};\r\n }", "title": "" } ]
15e1a49a081a5f89ff3c0627d78ab20a
Exits the Nimsys program and store data in .dat file
[ { "docid": "75ca6dfcd240c3ea2d39e66ebac53cb0", "score": "0.59145206", "text": "public void exit() {\r\n\t\t// Delete the original file and create a new blank file with the same name\r\n\t\tfil.delete();\r\n\t\tfil = new File(url + \"players.dat\");\r\n\r\n\t\t// Write all current player data to this file\r\n\t\twrite_data(fil, player);\r\n\t\tSystem.out.println();\r\n\t\tSystem.exit(0);\r\n\t}", "title": "" } ]
[ { "docid": "1787dec996397adc9085e89c21798ac4", "score": "0.56986344", "text": "void quit(){\n Configuration.writeConfigFile();\n System.exit(0);\n }", "title": "" }, { "docid": "0aa04f45abda2d6655b516b0e29b9c80", "score": "0.5512449", "text": "public static void main(String[] args) throws Exception{\n\t\tFile a=new File(\"Readdata.txt\");\n\t\ta.createNewFile();\n\t\tDataInputStream in=new DataInputStream(new FileInputStream(a));\n\t\tDataOutputStream out=new DataOutputStream(new FileOutputStream(a));\n\t\tout.writeDouble(9.0);\n\t\tout.writeInt(1);\n\t\tout.writeUTF(\"yes\");\n\t\tSystem.out.println(in.readInt());\n\t\tSystem.out.println(in.readDouble());\n\t\tSystem.out.println(in.readUTF());\n\t\tin.close();\n\t}", "title": "" }, { "docid": "79fdf3b0bf6dd9d03e2a2f3ed272d182", "score": "0.55055285", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e)\r\n\t{\r\n\t\tmainSystem.writeData();\r\n\t\tSystem.exit(JFrame.EXIT_ON_CLOSE);\r\n\t}", "title": "" }, { "docid": "3d3ddc00bbe4ab7c0b0decac15d75070", "score": "0.5457804", "text": "public void bye() throws IOException {\n Duke.respond = \"Bye. Hope to see you again soon!\\nYour data is saved!\\n\" +\n \"Click [X] to exit the program!\";\n System.out.println(\"Program terminated!\");\n Storage.save();\n }", "title": "" }, { "docid": "e9f69b0a5d2cdac622d19cd12327ec66", "score": "0.54392", "text": "public void executeSysExit()\r\n\t{\r\n\t\tsData.executeOutput();\r\n\t}", "title": "" }, { "docid": "4da898b5f2dc3aad645630659dc1d7f5", "score": "0.54160905", "text": "public static void main(String[] args) {\n Savings sav = new Savings();\n sav.showInfo();\n sav.writeData();\n }", "title": "" }, { "docid": "d275550d44043a8abc70b65351f6fd9e", "score": "0.5369053", "text": "public static void save() \n {\n\n try \n {\n \t\n \tFileOutputStream file = new FileOutputStream(\"Lunar.ser\");\n \tObjectOutputStream outStream = new ObjectOutputStream (file);\n\n outStream.writeObject(database); \n \toutStream.close();\n \t\n } \n catch (Exception e)\n {\n System.out.println(\"Error: Unable to write data to file.\");\n }\n System.out.println(\"System state saved, system shut down for maintenance.\");\n System.exit(0);\n }", "title": "" }, { "docid": "de733183ec22235879465966a7280533", "score": "0.5365903", "text": "public static void main(String [] args) {\n\t\tFile dataFile = new File(\"data.dat\");\r\n\t\tScanner dataFileScanner = null;\r\n\t\ttry {\r\n\t\t\tdataFileScanner = new Scanner(dataFile);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdouble pi = dataFileScanner.nextDouble();\r\n\t\tdataFileScanner.nextLine();\r\n\t\tc_speed = dataFileScanner.nextDouble();\r\n\t\tdataFileScanner.nextLine();\r\n\t\tr_earth = dataFileScanner.nextDouble();\r\n\t\tdataFileScanner.nextLine();\r\n\t\tdouble sDay = dataFileScanner.nextDouble();\r\n\t\tdataFileScanner.nextLine();\r\n\t\tdataFileScanner.close();\r\n\r\n\t\tdouble [] Xv = {0,0,0};\r\n\t\t PrintStream print = null;\r\n try {\r\n FileOutputStream fos = new FileOutputStream(\"receiver.log\");\r\n print = new PrintStream(fos);\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString screenData=\"G\";\r\n\r\n\t\ttry{\r\n\t\t int sat =-1;\r\n\t\t ArrayList<String> satList= new ArrayList<String>();\r\n\t\t while((screenData=br.readLine())!=null){\r\n\t\t\tString satNumber = screenData.substring(0, screenData.indexOf(\" \"));\r\n\t\t\tint nextSat= Integer.parseInt(satNumber);\r\n\t\t\tif(nextSat>sat){\r\n\t\t\t sat=nextSat;\r\n\t\t\t satList.add(screenData);\r\n\t\t\t}else if(satList.size()>=4){\r\n\t\t\t sat = nextSat;\r\n\t\t\t double [][] satMatrix = sat(satList);\r\n\t\t\t satList = new ArrayList<String>();\r\n\t\t\t satList.add(screenData);\r\n\t\t\t double [] Xvnext= vehiclePos(satMatrix, Xv);\r\n\t\t\t double time = vehicleTime(satMatrix, Xvnext);\r\n\t\t\t int t = (int)(time*100);\r\n\t\t\t time = t*.01;satList.add(screenData);\r\n\t\t\t int mag =(int) Vector.normTwo(Xvnext);\r\n\t\t\t if(mag>100000){\r\n\t\t\t Exercise5CartecianToGPS obj = new Exercise5CartecianToGPS(Xvnext[0],Xvnext[1],Xvnext[2]);\r\n\t\t\t System.out.println(time +\" \"+obj+\" \"+(mag-r_earth));\r\n\t\t\t print.println(time+\" \"+obj+\" \"+(mag-r_earth));}\r\n\t\t\t}\r\n\t\t\t//System.out.println(sat);\r\n\t\t }\r\n\t\t if(((screenData=br.readLine())==null)&& satList.size()>4)\r\n\t\t\t {\r\n\t\t\t\tdouble [][] satMatrix = sat(satList);\r\n\t\t\t\tdouble [] Xvnext= vehiclePos(satMatrix, Xv);\r\n\t\t\t\tdouble time =vehicleTime(satMatrix, Xvnext);\r\n\t\t\t\tint t = (int)(time*100);\r\n\t\t\t\ttime = t*.01;satList.add(screenData);\r\n\t\t\t\tint mag = (int) Vector.normTwo(Xvnext);\r\n\t\t\t\tif(mag>100000){\r\n\t\t\t\tExercise5CartecianToGPS obj = new Exercise5CartecianToGPS(Xvnext[0],(Xvnext[1]),Xvnext[2]);\r\n\t\t\t\tSystem.out.println(time +\" \"+obj+\" \"+(mag-r_earth));\r\n\t\t\t\tprint.println(time+\" \"+obj+\" \"+(mag-r_earth));}\r\n\t\t\t }\r\n\t\t}catch (Exception e){\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\tprint.close();\r\n\t}", "title": "" }, { "docid": "774b5006484fbef5ea8754e0be676050", "score": "0.53410405", "text": "public static void sendData(Program ProgramCur, Patient pat) throws Exception {\n String path = Programs.getProgramPath(ProgramCur);\n //ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum); ;\n String version4or5 = ProgramProperties.getPropVal(ProgramCur.ProgramNum,\"MediaDent Version 4 or 5\");\n if (StringSupport.equals(version4or5, \"4\"))\n {\n sendData4(ProgramCur,pat);\n return ;\n }\n \n if (pat == null)\n {\n try\n {\n Process.Start(path);\n }\n catch (Exception __dummyCatchVar0)\n {\n //should start Mediadent without bringing up a pt.\n MessageBox.Show(path + \" is not available.\");\n }\n \n }\n \n String infoFile = ProgramProperties.getPropVal(ProgramCur.ProgramNum,\"Text file path\");\n try\n {\n StreamWriter sw = new StreamWriter(infoFile, false);\n try\n {\n {\n String id = \"\";\n if (StringSupport.equals(ProgramProperties.getPropVal(ProgramCur.ProgramNum,\"Enter 0 to use PatientNum, or 1 to use ChartNum\"), \"0\"))\n {\n id = pat.PatNum.ToString();\n }\n else\n {\n id = pat.ChartNumber;\n } \n sw.WriteLine(pat.LName + \", \" + pat.FName + \" \" + pat.Birthdate.ToShortDateString() + \" \" + id);\n sw.WriteLine();\n sw.WriteLine(\"PN=\" + id);\n sw.WriteLine(\"LN=\" + pat.LName);\n sw.WriteLine(\"FN=\" + pat.FName);\n sw.WriteLine(\"BD=\" + pat.Birthdate.ToString(\"MM/dd/yyyy\"));\n if (pat.Gender == PatientGender.Female)\n {\n sw.WriteLine(\"SX=F\");\n }\n else\n {\n sw.WriteLine(\"SX=M\");\n } \n }\n }\n finally\n {\n if (sw != null)\n Disposable.mkDisposable(sw).dispose();\n \n }\n }\n catch (Exception __dummyCatchVar1)\n {\n MessageBox.Show(\"Unable to write to text file: \" + infoFile);\n return ;\n }\n\n try\n {\n Process.Start(path, \"@\" + infoFile);\n }\n catch (Exception __dummyCatchVar2)\n {\n MessageBox.Show(path + \" is not available.\");\n }\n \n }", "title": "" }, { "docid": "07605239818d9ab952a67ab638ddbf80", "score": "0.52986616", "text": "public void saveData() {\n try {\n FileOutputStream fos = openFileOutput(\"data.dat\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n\n oos.writeObject(genealogy.getData());\n\n oos.close();\n fos.close();\n } catch(Exception e) {\n Log.e(\"saveData()\", e.getMessage());\n }\n }", "title": "" }, { "docid": "516b42639b8d4251e97e95a9019bd006", "score": "0.52424735", "text": "private void handleExit() {\n persistDataController.writeData();\n appFrame.dispose();\n }", "title": "" }, { "docid": "c23f74519962b35233b63af071186dcf", "score": "0.52402735", "text": "public static void main(String[] args) throws Exception {\n \r\n int code=10056;\r\n double sal=89600.50;\r\n boolean married=true;\r\n //to write to a file we always need FileOutputStream\r\n FileOutputStream fos=new FileOutputStream(\"g:/data/emp.txt\");\r\n DataOutputStream dos=new DataOutputStream(fos);\r\n dos.writeInt(code);\r\n dos.writeDouble(sal);\r\n dos.writeBoolean(married);\r\n dos.close();\r\n fos.close();\r\n System.out.println(\"Data Stored Successfully..........!!\");\r\n }", "title": "" }, { "docid": "145d527f31a36320095b5e5dfe07ed25", "score": "0.5209752", "text": "@Override\n public void close() throws IOException {\n if (dataPath == null) return;\n System.out.println(\"start to store information in dedu\");\n String fileName = Constant.round + DATA_FILE_NAME;\n File f = this.dataPath.resolve(fileName).toFile();\n if (f.exists()) {//if the data saving file belongs to current round has existed, exit directly\n System.out.println(\"the data saving file belongs to current round has existed, exit directly\");\n return;\n }\n\n //if the data saving file belongs to current round hasn't been created, create it and write into it\n try (ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream(f))) {\n outputStream.writeObject(deduSet);\n }\n System.out.println(\"store information in dedu finish\");\n\n }", "title": "" }, { "docid": "ada2df7ed4789b44b36c22529c1ed257", "score": "0.519607", "text": "public void saveData() {\n System.out.println(\"Saving data to file....\");\n attendantManagerController.save();\n receiptController.save();\n carparkController.save();\n }", "title": "" }, { "docid": "5354d94a996c955d93fe979a8feb94e6", "score": "0.5185645", "text": "public void closeProgram()\r\n {\r\n fio = null;\r\n }", "title": "" }, { "docid": "1618f2b25661b23bff1011a0fb4257ae", "score": "0.513824", "text": "public void closeProgram(){\n Restaurant.getRestaurantInstance().SaveFiles();\n\n }", "title": "" }, { "docid": "9c79041c8ea73810b3a820cba18228cd", "score": "0.5121847", "text": "public static void main(String[] args) {\r\n DATATOOL.userEditable = true;\r\n DATATOOL.exitOnClose = true;\r\n DATATOOL.saveChangesOnClose = true;\r\n if((args!=null)&&(args.length>0)&&(args[0]!=null)) {\r\n DATATOOL.open(args[0]);\r\n } else {\r\n DATATOOL.addTab((Data) null);\r\n }\r\n DATATOOL.setVisible(true);\r\n }", "title": "" }, { "docid": "f1c203ebcf6a4f5b836ec25237d5b479", "score": "0.51192427", "text": "public static void main(String[] args) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(\"C:/Windows/win.ini\");\n\t\tFileOutputStream fos = new FileOutputStream(\"c:/temp/data5.txt\");\n\t\t\n\t\tint ch;\n\t\t\n\t\twhile((ch= fis.read())!=-1)\n\t\t\tfos.write((byte)ch);\n\t\tSystem.out.println();\n\t\t\n\t\tfis.close();\n\t\tfos.close();\n\t\t\n\t}", "title": "" }, { "docid": "551f574b28a982363b3008e61bf3f78a", "score": "0.5106792", "text": "void storeData(String filename) throws IOException, FileNotFoundException{\n\t\tFileOutputStream f;\n\t\ttry {\n\t\t f = new FileOutputStream(filename);\n\t\t\tDataOutputStream d = new DataOutputStream(f);\n\t\t\tfor (int k = 0; k < inx3; k++) {\n\t\t\t\tfor (int j = 0; j < inx2; j++) {\n\t\t\t\t\tfor (int i = 0; i < inx1; i++) {\n\t\t\t\t\t\td.writeInt(matrix[i][j][k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tf.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t System.out.println(\"Reinfo.storeData(\" + filename\n\t\t\t\t\t\t\t + \"): exception \" + e);\n\t\t}\n }", "title": "" }, { "docid": "6a717bce3a7e5e6b69aaff46e890a5c7", "score": "0.50944173", "text": "void create() {\n Scanner sc = new Scanner(System.in);\n try {\n datafile = new FileWriter(\"database\", true);\n } catch (IOException a) {\n System.out.println(\"harinathreddy\");\n }\n try {\n System.out.println(\"enter a username\");\n datafile.write(sc.nextLine()+COMMA_DELIMITER);\n System.out.println(\"set password\");\n datafile.write(sc.nextLine()+COMMA_DELIMITER);\n System.out.println(\"enter a security question\");\n datafile.write(sc.nextLine()+COMMA_DELIMITER);\n System.out.println(\"entr the answer for security question\");\n datafile.write(sc.nextLine()+NEW_LINE_SEPARATOR);\n datafile.close();\n } catch (IOException a) {\n System.out.println(a.getMessage());\n }\n }", "title": "" }, { "docid": "15039a7b601e451189c28530135d805e", "score": "0.508938", "text": "private static void CloseProgram() {\n System.out.println(\"You have successfully exited.See you soon.\");\n }", "title": "" }, { "docid": "788aa4953e6f3b676fb87eb958ca72fa", "score": "0.5074611", "text": "public static void main(String[] args) {\n\t\tFileWriter fw = null;\n\t\ttry {\n//\t\t\tfw = new FileWriter(\"save2.dat\", true);\n\t\t\tfw.write('B');\n\t\t\tfw.flush();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"ファイル書き込みエラーです\");\n\t\t} finally {\n\t\t\tif(fw != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfw.close();\n\t\t\t\t} catch(IOException e2) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "319819f3df9255cdd972b1d6f19f1650", "score": "0.50571907", "text": "public static void main(String[] args) {\n\t StudentDataManager sd=new StudentDataManager();\r\n\t sd.populateData(\"StudentDetails.txt\");\r\n\t}", "title": "" }, { "docid": "f161d7fa92953507c267e36f27428150", "score": "0.5056003", "text": "public static void main(String[] args) throws IOException {\n\n String inputPath = System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\test_generator.edf\";\n //String inputPath = System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\Newtest17-256.bdf\";\n var dataBuffer = new DataBuffer(inputPath);\n\n // Test header reading\n dataBuffer.PrintFileHeader();\n dataBuffer.PrintChannelLabels();\n\n\n\n // Test signal reading with channel selection\n // dataBuffer.readChannelData(7,0,1);\n // dataBuffer.printChannelData(7);\n\n // Test signal reading for all channels\n dataBuffer.readAllChannelData(0, 0);\n //dataBuffer.writeAllChannelData();\n //dataBuffer.printAllChannelData();\n\n // Test header writing\n String outputPath = System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\newtest_output.edf\";\n dataBuffer.WriteFileHeader(outputPath);\n dataBuffer.writeAllChannelData(outputPath);\n\n }", "title": "" }, { "docid": "60caa1495e9ad32e5a51bc5332cc84a2", "score": "0.50344783", "text": "public void onQuit(Event e){\r\n\t\tDataManager.writeSerial();\r\n\t\tSystem.exit(1);\r\n\t}", "title": "" }, { "docid": "4b57d9af9fe9109fda6c6d907f39fd34", "score": "0.50322527", "text": "private static void sendData4(Program ProgramCur, Patient pat) throws Exception {\n String path = Programs.getProgramPath(ProgramCur);\n //Usage: mediadent.exe /P<Patient Name> /D<Practitioner> /L<Language> /F<Image folder> /B<Birthdate>\n //Example: mediadent.exe /PJan Met De Pet /DOtté Gunter /L1 /Fc:\\Mediadent\\patients\\1011 /B27071973\n ArrayList ForProgram = ProgramProperties.getForProgram(ProgramCur.ProgramNum);\n ;\n if (pat == null)\n {\n return ;\n }\n \n String info = \"/P\" + cleanup(pat.FName + \" \" + pat.LName);\n Provider prov = Providers.getProv(Patients.getProvNum(pat));\n info += \" /D\" + prov.FName + \" \" + prov.LName + \" /L1 /F\";\n ProgramProperty PPCur = ProgramProperties.getCur(ForProgram,\"Image Folder\");\n info += PPCur.PropertyValue;\n PPCur = ProgramProperties.getCur(ForProgram,\"Enter 0 to use PatientNum, or 1 to use ChartNum\");\n ;\n if (StringSupport.equals(PPCur.PropertyValue, \"0\"))\n {\n info += pat.PatNum.ToString();\n }\n else\n {\n info += cleanup(pat.ChartNumber);\n } \n info += \" /B\" + pat.Birthdate.ToString(\"ddMMyyyy\");\n try\n {\n //MessageBox.Show(info);\n //not used yet: /inputfile \"path to file\"\n Process.Start(path, info);\n }\n catch (Exception __dummyCatchVar3)\n {\n MessageBox.Show(path + \" \" + info + \" is not available.\");\n }\n \n }", "title": "" }, { "docid": "fe42518272ba2202bb315028faf48c78", "score": "0.50154305", "text": "public static void New() throws FileNotFoundException\n {\n PrintWriter outFile = new PrintWriter(\"Data\\\\Characters\\\\Character\" + Stats.charNum + \"\\\\Inventory.dat\");\n\n outFile.printf(\"Slot1: ------%n\");\n outFile.printf(\"Slot2: ------%n\");\n outFile.printf(\"Slot3: ------%n\");\n outFile.printf(\"Slot4: ------%n\");\n outFile.printf(\"Slot5: ------%n\");\n\n outFile.close();\n readIn();\n }", "title": "" }, { "docid": "f46df0895cf70aa6706c9c93565e2e58", "score": "0.49927586", "text": "public void loadData() {\n try {\n FileInputStream fis = openFileInput(\"data.dat\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n\n genealogy = new Genealogy((HashMap<String, Person>)ois.readObject());\n\n fis.close();\n ois.close();\n } catch(Exception e) {\n Log.e(\"loadData()\", e.getMessage());\n genealogy = new Genealogy();\n }\n }", "title": "" }, { "docid": "17d253e7546a7d973da9cea12b1ee810", "score": "0.49915215", "text": "public static void main( String[] args ) \n {\n System.out.println( MSG_ABOUT );\n /*\n Global variables\n */\n String message;\n boolean validInput = false;\n boolean validInternal = false;\n boolean validOutput = false;\n SystemManager sm;\n DatabaseManager dm;\n OperationManager om = null;\n String nameIn;\n String nameOut = null;\n /*\n Check command line parameters: (1) input file name, (2) output file name.\n Initializing database manager, system manager, operation manager,\n load input binary file and application internal resoures.\n */\n if ( ( args == null ) || ( args.length != 2 ) )\n { // wrong arguments count, error\n message = MSG_LINE_ERROR;\n }\n else\n { // 2 arguments found, continue\n nameIn = args[0];\n nameOut = args[1];\n System.out.println( \"Input file = \" + nameIn );\n System.out.println( \"Output file = \" + nameOut );\n sm = new SystemManager( nameIn );\n if ( sm.getOperationStatus().getStatusFlag() )\n {\n validInput = true;\n System.out.println( String.format\n ( \"Mapped %d bytes from %s\\r\\nInitializing database...\",\n sm.getMappedSize(), nameIn ) );\n dm = new DatabaseManager( RESOURCE_FILE );\n if( dm.getOperationStatus().getStatusFlag() )\n {\n om = new OperationManager( sm, dm );\n if ( om.getOperationStatus().getStatusFlag() )\n {\n validInternal = true;\n message = dm.getOperationStatus().getStatusString();\n }\n else\n {\n message = om.getOperationStatus().getStatusString();\n }\n }\n else\n {\n message = dm.getOperationStatus().getStatusString();\n }\n }\n else\n {\n message = sm.getOperationStatus().getStatusString();\n }\n }\n System.out.println( message );\n /*\n Generating text report, arguments:\n loaded binary file: MCFG image\n internal resource PCI database file: vendors, devices, registers fields\n */\n if ( validInput && validInternal )\n {\n System.out.println( \"Build report...\" );\n if ( om != null )\n {\n om.buildSystemInfo();\n validOutput = om.getOperationStatus().getStatusFlag();\n if ( ! validOutput )\n {\n System.out.println\n ( om.getOperationStatus().getStatusString() );\n }\n }\n }\n /*\n Saving text report to output text file and exit application.\n */\n if ( validOutput && ( om != null )&&( om.getOperationStatus() != null )&&\n ( nameOut != null ) )\n {\n System.out.println( \"Saving report...\" );\n String s = MSG_ABOUT + \"\\r\\n\" + \"Report file.\" + \"\\r\\n\\r\\n\" + \n om.getOperationStatus().getStatusString();\n byte[] reportData = s.getBytes();\n try\n {\n Path reportPath = Paths.get( nameOut );\n Files.write( reportPath, reportData );\n }\n catch ( IOException e )\n {\n System.out.println( \"Error saving report: \" + e );\n validOutput = false;\n }\n }\n message = validOutput ? \"Result saved OK.\" : \"Error(s) occurred.\";\n System.out.println( message );\n System.exit( 0 );\n }", "title": "" }, { "docid": "b760a3a46dc38ee81c48283e855fdcca", "score": "0.49778587", "text": "public static void main(String[] args) {\n\t\tnew readData();\n\t\treadData.getDataset();\n\t}", "title": "" }, { "docid": "a6c4569ba40716c45d3f5fb1dcdca99c", "score": "0.49768487", "text": "private void doExit() {\n\t\tsaveFirst();\n\t\tSystem.exit(NORMAL);\n\t}", "title": "" }, { "docid": "0cf544112ec435522c011dfcfaa9fd52", "score": "0.49670267", "text": "public void salva(){\n\t\t//una volta finite tutte le interazioni... salvo su file\n\t\tSystem.err.println(\"Salvataggio dati...\");\n\t\n\t\tFileOutputStream fileOut;\n\t\ttry {\n\t\t\tfileOut = new FileOutputStream(\"DB/magazzino.obj\");\n\t\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n \t\tout.writeObject(this);\n \t\tout.close();\n \t\tfileOut.close();\n \t\t\n \t\tPrintWriter fOut = new PrintWriter(new FileWriter(FILE_PATH));\n \t\tfOut.println(String.valueOf(Disco.getCodice()));\n \t\t\n \t\tfOut.close(); \t\t\n \t\t\n\t\t} catch (IOException exc) {\n\t\t\texc.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4adadfbb91f7e23b03cc85de5da8bb0e", "score": "0.49634433", "text": "public static void reset()\n {\n\n FileOutputStream outFile = null;\n ObjectOutputStream outStream = null;\n FileOutputStream outFile1 = null;\n ObjectOutputStream outStream1 = null;\n\n try\n {\n outFile = new FileOutputStream(\"res/saves/Mappa.dat\");\n outFile1 = new FileOutputStream(\"res/saves/Player.dat\");\n\n outStream = new ObjectOutputStream(outFile);\n outStream1 = new ObjectOutputStream(outFile1);\n\n outStream.writeObject(null);\n outStream1.writeObject(null);\n\n }\n catch (Exception e)\n {\n System.out.println(e);\n }\n\n }", "title": "" }, { "docid": "c84a1623ba73b558a174d975603d60db", "score": "0.49420792", "text": "public void init()\n\t{\n\t\tdataRead = new Scanner(System.in);\n\t\t\n\t}", "title": "" }, { "docid": "8c1d6ee92a6883597d7335b00007d423", "score": "0.49380946", "text": "private void storeData()\n {\n try{\n \n FileOutputStream fOut = new FileOutputStream(\"save_data.dat\");\n ObjectOutputStream out = new ObjectOutputStream(fOut);\n out.writeObject(this.courses);\n out.close(); \n fOut.close();\n \n System.out.println(\"file saved correctly\");\n }\n catch(IOException e)\n {\n System.out.println(e.toString());\n }\n }", "title": "" }, { "docid": "49b40a6391f58bef33238cd472e2a87c", "score": "0.49366602", "text": "private void callingSingularityFunction(){\r\n\t\t/**If singularity_out already exists, delete it before proceeding.*/\r\n\t\tFile singularity_out = new File(ClassLoader.getSystemResource(\"org/ica/resources/\").getFile(),\"singularity_out.txt\");\r\n\t\tif (singularity_out.exists() && singularity_out.canRead()) {\r\n\t\t\tif (singularity_out.delete()) {\r\n\t\t\t\r\n\t\t\t\tsetReport(\"\\nsingularity_out.txt out deleted\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile singularity_in = new File(ClassLoader.getSystemResource(\"org/ica/resources/\").getFile(),\"singularity_in.txt\");\r\n\r\n\t\tif (singularity_in.exists() && singularity_in.canRead()) {\r\n\t\t\t/**Testing a call to singularity.exe*/\r\n\t\t//\tSystem.out.println(\"Reading singularity_in.txt\");\r\n\t\t\tsetReport(\"\\nReading singularity_in.txt\");\r\n\t\t\tString singularity_exe = ClassLoader.getSystemResource(\"org/ica/resources/singularity.exe\").getFile();\r\n\t\t\t\r\n\t\t\t/*Get the Directory which contains the matching.exe and set it as the process default directory*/\r\n\t\t\tFile current = new File(ClassLoader.getSystemResource(\"org/ica/resources/\").getFile());\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tProcessBuilder processBuilder = new ProcessBuilder(singularity_exe);\r\n\t\t\t\t\t//Setting the working directory to the current working directory;\r\n\t\t\t\t\tprocessBuilder.directory(current);\r\n\t\t\t\t\tProcess process = processBuilder.start();\r\n\t\r\n\t\t\t\t\tInputStream errorStream = process.getErrorStream();\r\n\t\t\t\t\tInputStream inputStream = process.getInputStream();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(inputStream);\r\n\t\t\t\t\tInputStreamReader errorStreamReader = new InputStreamReader(errorStream);\r\n\t\t\t\t\tBufferedReader reader = new BufferedReader(inputStreamReader);\r\n\t\t\t\t\tBufferedReader erroReader = new BufferedReader(errorStreamReader);\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tString line,e_line = \"\";\r\n\t\t\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\tsetReport(line+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\twhile ((e_line = erroReader.readLine()) != null) {\r\n\t\t\t\t\t\tSystem.err.println(e_line);\r\n\t\t\t\t\t\tsetErrorLog(e_line+\"\\n\");\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\tcatch (IOException |SecurityException |IllegalArgumentException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\r\n\t\t}\r\n\t\tsetProgress(80);\r\n\t}", "title": "" }, { "docid": "97c92b1390aeab61122b036237b251af", "score": "0.49332783", "text": "public static void guardarDatos(String[] args) {\n\n\t\tFile f = new File \n\t}", "title": "" }, { "docid": "58f199954ab156906511da8c05406f6b", "score": "0.49284106", "text": "private static void quit() {\n\t\tnotQuit = false;\n\t\tpack.setChannel(\"\");\n\t\tpack.setMessage(\"\");\n\t\tpack.setName(\"\");\n\t\t//System.out.println(\"quit command not yet implemented\");\n\t\ttry {\n\t\t\ts.close();\n\t\t} catch (IOException e1) {\n\t\t\tSystem.out.println(e1);\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "b780636f1885156c15861c038d535cb4", "score": "0.49241406", "text": "public static void main(String[] args) {\n String fileName = \"data.txt\";\n\n Sensor sensor1 = new Sensor(\"Spring\");\n Sensor sensor2 = new Sensor(\"Sommer\");\n writeData(sensor1, sensor2, fileName);\n\n readData(fileName);\n }", "title": "" }, { "docid": "2f98772a090ffca4e5b321dc7c620008", "score": "0.49201384", "text": "public void startKaldiProgram() throws IOException {\n\t\t\n\t\tlog.debug(\"Starting Kaldi Program \" + this.program);\n\t\tlog.debug(\"Options are: \"\n\t\t\t\t+ \"\\nkaldi_root > \" + this.kaldi_root\n\t\t\t\t+ \"\\nprogram > \" + this.program \n\t\t\t\t+ \"\\nAC_Model > \" + this.ac_model);\n\t\t\n\t\tthis.eventBus = STTEventBus.getInstance(); \n\t\t\n\t\tString model = this.ac_model + \"/model\"; \n\t\tString fst = this.ac_model + \"/HCLG.fst\"; \n\t\tString words = this.ac_model + \"/words.txt\"; \n\t\tString sils = \"1:2:3:4:5\"; \n\t\t\n\t\tif( !isProgramAvailable() ) {\n\t\t\tlog.fatal(\"Given Kaldi program is not available or executable.\"); \n\t\t\treturn; \n\t\t}\n\t\t\n\t\tthis.runtime = Runtime.getRuntime();\n\t\tString[] commands = {this.program, \"--acoustic-scale=0.3\", \"--rt-min=0.3\", \"--rt-max=0.6\", \"--beam=14\", \"--max-active=4000\", model, fst, words, sils, ac_model + \"/matrix\"};\n\t\tthis.process = runtime.exec(commands);\n\t\t\n\t\tKaldiPluginState.setPluginState(PluginState.RUNNING);\n\n\t\tthis.stdInput = new BufferedReader(new \n\t\t InputStreamReader(this.process.getInputStream()));\n\n\t\tthis.stdError = new BufferedReader(new \n\t\t InputStreamReader(this.process.getErrorStream()));\n\n\t\t// read the output from the command\n\t\ttry {\n\t\t\tif( this.stdInput != null ) {\n\t\t\t\tString hypothesis = null;\n\t\t\t\twhile (!isClosing && (KaldiPluginState.getPluginState() == PluginState.RUNNING) &&(hypothesis = this.stdInput.readLine()) != null) {\n\t\t\t\t \n\t\t\t\t\tif( KaldiPluginState.getPluginState() == PluginState.INTERRUPTED ) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.wait();\n\t\t\t\t\t\t\tcontinue; \n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\tlog.catching(Level.DEBUG, e);\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif( this.isRequestedResult ) {\n\t\t\t\t\t\tthis.isRequestedResult = false; \n\t\t\t\t\t\tthis.resultListener.addResultString(hypothesis);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif( !hypothesis.equals(\"\") && !this.isRequestedResult && !isClosing ) {\n\t\t\t\t\t\tlog.debug(\"Recognized Utterance: \" + hypothesis);\n\t\t\t\t\t\tthis.eventBus.fireUtteranceRecognizedEvent(new UtteranceRecognizedEvent(hypothesis));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tif( !isClosing ) {\n\t\t\t\tthrow e; \n\t\t\t}\n\t\t}\n\n\t\t\t\n\t\t// read any errors from the attempted command\n\t\tif( this.stdError != null ) {\n\t\t\tString err = null; \n\t\t\twhile ((err = this.stdError.readLine()) != null && !isClosing) {\n\t\t\t log.error(err); \n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.debug(\"Recognition loop terminated.\");\n\t}", "title": "" }, { "docid": "3dbf2fa302b547e70d4a5ecf7feb4fe7", "score": "0.4915574", "text": "private ApplicationData() {\n dataFileEncrypted = (System.getProperty(\"user.dir\")+File.separator+DATA_FILE_ENCRYPTED);//(\"java.class.path\")\n dataFileName = (System.getProperty(\"user.dir\")+File.separator+DATA_FILE_NAME);\n dataFileBck = (System.getProperty(\"user.dir\")+File.separator+DATA_FILE_BCK);\n passwordFile = (System.getProperty(\"user.dir\")+File.separator+PASSWORD_FILE);\n fileRun = (System.getProperty(\"user.dir\")+File.separator+FILE_RUN);\n cyphDadosTxt = (System.getProperty(\"user.dir\")+File.separator+CYPH_DADOS_TXT);\n \n D.deb(\"New ApplicationData();\");\n passwords = new ArrayList<>();\n passwords_Cy = new ArrayList<>();\n \n D.deb(\"new Arraylist<Password> passwords\"); \n }", "title": "" }, { "docid": "ce042fa7790e005e12fa705d8b8029e8", "score": "0.4910659", "text": "public void salir() {\n System.exit(0);\n }", "title": "" }, { "docid": "1f2c390f33d9e5301487e948113c5074", "score": "0.49072874", "text": "public static void main(String[] args) throws IOException, SQLiteException, ParseException {\n\t\tDataBank db1 = CodePackFactory.eINSTANCE.createDataBank();\n\t\tDataBank db2 = CodePackFactory.eINSTANCE.createDataBank();\n\t\t\n\t loadDatabase();\n\t \n\n\t ManagementHandler mh = BackendFactory.eINSTANCE.createManagementHandler();\n\t \n\t \n\t System.out.println(\"DONE\");\n\t \n\t CodePackFactory.eINSTANCE.createCheckInMachine().startUI();\n\t CodePackFactory.eINSTANCE.createStaffGUI().startUI();\n\t \n\t\tSystem.out.println(\"######### TEST ########\");\n\t\tSystem.out.println(db2.getRoomList().get(0));\n\t\tRoom r = db2.getRoomList().get(0);\n\t\tdb2.getRoomList().indexOf(r);\n\t\tdb2.getRoomList().get(db2.getRoomList().indexOf(r)).setDescription(\"null and void\");\n\t\tSystem.out.println(db2.getRoomList().get(0));\n\t\t//db2.getRoomList().remove(r);\n\n\t for (RoomType rx : db2.getRoomTypeList()){\n\t \tSystem.out.println(rx);\n\t }\n\t for (Room rx : db2.getRoomList()) {\n\t \tSystem.out.println(rx);\n\t }\n\t for (Booking b : db2.getBookingList()){\n\t \tSystem.out.println(b);\n\t }\n\t for (RoomBooked rx : db2.getRoomBookedList()){\n\t \tSystem.out.println(rx);\n\t }\n\t for (Customer c : db2.getCustomerList()){\n\t \tSystem.out.println(c);\n\t }\n\t for (PaymentData pd : db2.getPaymentDataList()){\n\t \tSystem.out.println(pd);\n\t }\n\t for (StaffMember sm :db2.getStaffMemberList()){\n\t \tSystem.out.println(sm);\n\t }\n\t for (StaffRole sr : db2.getStaffRoleList()){\n\t \tSystem.out.println(sr);\n\t }\n\t}", "title": "" }, { "docid": "43f543bf63ea86426ba8ff6836164164", "score": "0.490631", "text": "public static void main(String[] args) throws IOException{\n \n //create a file(if the file doesnt exist)\n File binaryFile = new File(\"src/Exercises/chap19/part1/Exercise19_01.dat\");\n File textFile = new File(\"src/Exercises/chap19/part1/Exercise19_01.txt\");\n \n //wrap binary file in a dataOutputStream to write primitives in binary (this is binary I/O afterall)\n DataOutputStream binaryOutput = new DataOutputStream(new FileOutputStream(binaryFile));\n\n //wrap text file in print writer to write the text to\n PrintWriter textOutput = new PrintWriter(textFile);\n \n //for loop to add the 200 random integers seperated by a comma\n Random rand = new Random();\n int temp = 0;\n for (int i = 0; i < 200; i++) {\n //strore the random integer (lets say 0-999)\n temp = rand.nextInt(1000);\n \n //write the integer to the binary file\n binaryOutput.writeInt(temp);\n //write the integer to the text file\n textOutput.print(temp);\n \n //write the comma to the binary file\n binaryOutput.writeUTF(\",\");\n //write the comma to the text file\n textOutput.print(',');\n \n }\n \n //close streams\n binaryOutput.close();\n textOutput.close();\n }", "title": "" }, { "docid": "e21bd4424f2e0ef98aeacb55941a9e0b", "score": "0.49052083", "text": "public void Salir(){\n \n System.exit(0);\n }", "title": "" }, { "docid": "dc7e727c9e36d1c66acf397760869e59", "score": "0.48973265", "text": "public static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\tLog.Info(\"Parsing command line settings...\");\n\t\t\tSettings.ParseCommandLineSettings(args);\n\t\t\tSettings.Check();\n\t\t\t\n\t\t\tLog.Info(\"Loading data from input files...\");\n\t\t\tSingletons.DatabaseFilePath = Settings.TEMP_DIR + \"/\" + MiscUtilities.GetUniqueID() + \".db\";\t\t\t\n\t\t\tSingletons.DatabaseWriter = PalDB.createWriter(new File(Singletons.DatabaseFilePath));\n\t\t\tInstanceManager.LoadDataInstances();\n\t\t\tSingletons.DatabaseWriter.close();\n\t\t\t\n\t\t\tLog.Info(\"Refining data instances...\");\n\t\t\t\n\t\t\tConfiguration config = PalDB.newConfiguration();\n\t\t\tconfig.set(Configuration.COMPRESSION_ENABLED, \"true\");\n\t\t\tSingletons.DatabaseReader = PalDB.createReader(new File(Singletons.DatabaseFilePath), config);\n\n\t\t\tInstanceManager.RefineDataInstances();\n\n\t\t\tif (!Settings.OUTPUT_DATA_FILE_PATH.equals(\"\"))\n\t\t\t\tInstanceManager.SaveOutputDataFile();\n\t\t\t\n\t\t\tif (!Settings.OUTPUT_PREDICTIONS_FILE_PATH.equals(\"\") || !Settings.OUTPUT_FEATURES_FILE_PATH.equals(\"\") || !Settings.OUTPUT_BENCHMARK_FILE_PATH.equals(\"\"))\n\t\t\t{\n\t\t\t\tLog.Info(\"Starting analysis...\");\n\t\t\t\tPerformAnalysis();\n\t\t\t}\n\t\t\t\n\t\t\tSingletons.DatabaseReader.close();\n\t\t\t\n\t\t\tFileUtilities.DeleteFile(Singletons.DatabaseFilePath);\n\n\t\t\tLog.PrintOut(\"Successfully completed!\");\n\t\t\t\n\t\t\tSystem.exit(0); // Not sure if this is necessary, but keeping it just in case\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tLog.PrintOut(Log.GetStackTrace(ex));\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (Singletons.DatabaseWriter != null)\n\t\t\t\t\tSingletons.DatabaseWriter.close();\n\t\t\t}\n\t\t\tcatch (Exception ex2) {}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (Singletons.DatabaseReader != null)\n\t\t\t\t\tSingletons.DatabaseReader.close();\n\t\t\t}\n\t\t\tcatch (Exception ex3) {}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (Singletons.DatabaseFilePath != null && FileUtilities.FileExists(Singletons.DatabaseFilePath))\n\t\t\t\t\tFileUtilities.DeleteFile(Singletons.DatabaseFilePath);\n\t\t\t}\n\t\t\tcatch (Exception ex4) {}\n\n\t\t\tSystem.exit(1); // Not sure if this is necessary, but keeping it just in case\n\t\t}\n\t}", "title": "" }, { "docid": "fe5afb1672fc1f74cb3a50fddf2c6d12", "score": "0.4878371", "text": "public void initMethode() throws IOException {\n Tools myTools = new Tools();\n myTools.initParameter(\"test.dat\");\n taille = myTools.nbTransaction;\n nbtransaction = myTools.nbTransaction;\n nbitems = myTools.itemNembers;\n // construct db\n getconfig();\n itemsets = getDataSet(\"test.dat\");\n itemsets.clear();\n // end of construction db\n item = null;\n dataset = duplique(itemsets);\n affiche(dataset);\n // getAllColum(dataset, item, 1, taille);\n\n // DeltaDb = algoTEDOneDataSequence(dataset, 1);\n Set<Integer> keySet = initBD.keySet();\n List<Integer> l = new ArrayList<>(keySet);\n Collections.sort(l);\n // algoTED(l);\n algoTED1(l);\n// FileWriter fw = new FileWriter(new File(\"out.dat\"));\n// fw.write(\"seuil\" + \" \" + \"items\" + \" \" + \"transaction\" + \" \" + \"duree\" + \" \" + \" nombre de motif\" + \"\\n\");\n// fw.flush();\n// fw.write(\"\\n\");\n// fw.flush();\n }", "title": "" }, { "docid": "e45f072bd6f54b1d5ee37372e7bd6cba", "score": "0.48774636", "text": "public void setupData() throws IOException{\n\t}", "title": "" }, { "docid": "2f0e484f1d92fc145b7312e53fa8cc39", "score": "0.48774144", "text": "public static void main(String[] args) throws IOException {\n \tloadInitialData();\n\t\t/* Display the welcome splash screen */\n\t\tsplashScreen();\n\t\t\n\t\t/* \n\t\t * Manually create a binary data file for the single hardcoded \n\t\t * table. It inserts 5 hardcoded records. The schema is inherent \n\t\t * in the code, pre-defined, and static.\n\t\t * \n\t\t * An index file for the ID field is created at the same time.\n\t\t */\n\t\thardCodedCreateTableWithIndex();\n\n\t\t/* \n\t\t * The Scanner class is used to collect user commands from the prompt\n\t\t * There are many ways to do this. This is just one.\n\t\t *\n\t\t * Each time the semicolon (;) delimiter is entered, the userCommand String\n\t\t * is re-populated.\n\t\t */\n\t\tScanner scanner = new Scanner(System.in).useDelimiter(\";\");\n\t\tString userCommand; // Variable to collect user input from the prompt\n\n\t\tdo { // do-while !exit\n\t\t\tSystem.out.print(prompt);\n\t\t\tuserCommand = scanner.next().trim();\n\t\t\t/*\n\t\t\t * This switch handles a very small list of commands of known syntax.\n\t\t\t * You will probably want to write a parse(userCommand) method to\n\t\t\t * to interpret more complex commands. \n\t\t\t */\n\t\t\tswitch (userCommand) {\n\t\t\t\tcase \"show tables\":\n\t\t\t\tcase \"SHOW TABLES\":\n\t\t\t\t\tshowTables(userCommand);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"show schemas\":\n\t\t\t\tcase \"SHOW SCHEMAS\":\n\t\t\t\t\tshowSchemas();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"help\":\n\t\t\t\tcase \"HELP\":\n\t\t\t\t\thelp();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"version\": \n\t\t\t\tcase \"VERSION\":\n\t\t\t\t\tversion();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(userCommand.contains(\"use\") || userCommand.contains(\"USE\")){\n\t\t\t\t\t\tuseSchema(userCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse if(userCommand.contains(\"create schema\") || userCommand.contains(\"CREATE SCHEMA\")){\n\t\t\t\t\t\tcreateSchema(userCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse if(userCommand.contains(\"select * from\") || userCommand.contains(\"SELECT * FROM\")){\n\t\t\t\t\t\tselectOperation(userCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse if(userCommand.contains(\"create table\") || userCommand.contains(\"CREATE TABLE\")){\n\t\t\t\t\t\tcreateTable(userCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse if(userCommand.contains(\"insert into table\") || userCommand.contains(\"INSERT INTO TABLE\")){\n\t\t\t\t\t\tinsertInto(userCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse if(userCommand.contains(\"drop table\") || userCommand.contains(\"DROP TABLE\"))\n\t\t\t\t\t\tdropTable(userCommand);\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"I didn't understand the command: \\\"\" + userCommand + \"\\\"\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t} while(!userCommand.equals(\"exit\"));\n\t\tSystem.out.println(\"Exiting...\");\n\t \n }", "title": "" }, { "docid": "fdf18798eef6512b64191e24ea1dd413", "score": "0.48753032", "text": "public static void main(String args[]) throws FileNotFoundException, IOException, InvalidFormatException, DataFrame.DataFrameException {\n DataFrame df = ImportData.importXLS(\"G:/Recerca/EIO_RECERCA/New CoDaPack/Halimba.xls\", true);\n\n while(df.size() > 3) df.remove(df.get(df.size()-1).getName());\n\n CoDaPackMain main = new CoDaPackMain();\n\n main.addDataFrame(df);\n\n PrincipalComponentMenu biplot = new PrincipalComponentMenu(main);\n\n DataSelector dataSel = biplot.getDataSelector();\n\n DefaultListModel list = (DefaultListModel)dataSel.getAvailableData();\n // Prenem les 5 primeres dades\n int n = 5;\n while(list.getSize() > n)\n list.removeElementAt(list.getSize()-1);\n\n dataSel.setSelectedData(list);\n\n biplot.acceptButtonActionPerformed();\n //binaryMenu.setData(names);\n\n \n //ilr.setVisible(true);\n }", "title": "" }, { "docid": "a3bcf28d6385c172883e32ab8db1df87", "score": "0.48713112", "text": "private static void initSysData() {\n\t\tSysData.getInstance().loadData(DataType.FINISHED_GAMES);\n\t\tSysData.getInstance().loadQuestions(null);\n\t\tSysData.getInstance().loadData(DataType.PAUSED_GAMES);\n\t\tSysData.getInstance().loadData(DataType.RULES);\n\t}", "title": "" }, { "docid": "1976715bf3eda9ac2de8cf21e203d0e2", "score": "0.48681813", "text": "public static void end_program() {\n\n System.out.println(\"Thank you for using this application, Goodbye!!\");\n\n }", "title": "" }, { "docid": "6abd7e2101d5200dcac00e20c5e4cd5f", "score": "0.48637632", "text": "public void finishData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a142e77a579355d43f5813cafbc14cff", "score": "0.48625195", "text": "private Simpletron(){\n System.out.println(\"*** Welcome to Simpletron! ***\");\n System.out.println(\"*** Please enter your program one instruction ***\");\n System.out.println(\"*** (or data word) at a time. I will display ***\");\n System.out.println(\"*** the location number and a question mark (?). ***\");\n System.out.println(\"*** You then type the word for that location. ***\");\n System.out.println(\"*** Type -99999 to stop entering your program. ***\");\n System.out.println();\n loadInstructions();\n System.out.println();\n System.out.println(\"*** Program loading completed ***\");\n System.out.println(\"*** Program execution begins ***\");\n System.out.println();\n executeInstructions();\n }", "title": "" }, { "docid": "8629161f55c326144356da7a9663b7ae", "score": "0.486054", "text": "public void salir() {\n \n System.exit(0);\n\n }", "title": "" }, { "docid": "f6f397e0ab8b9f444c3433a1432237d5", "score": "0.4860242", "text": "protected void menuOptionQuitProgram() {\n TicketFileIO openTickets = new TicketFileIO();\n openTickets.unresolvedTickets(ticketStore.getAllTickets());\n\n }", "title": "" }, { "docid": "bedfc7465af18c87640ffeaeeccefae5", "score": "0.48511896", "text": "private SystemDB(){\n\n this.currentDummyData();\n this.savingsDummyData();\n \n }", "title": "" }, { "docid": "3458980d183e047d58d897df56bb0dcf", "score": "0.48441803", "text": "private static void exitProgram() {\n ui.displayGoodbyeMessage();\n System.exit(0);\n }", "title": "" }, { "docid": "84e943f7c7eca78b623635d36413a019", "score": "0.48420534", "text": "public static void main(String[] args) throws IOException {\n\t\tString path = \"/Users/amit/Documents/FileOutput/Sample.txt\";\n\t\t//File file = new File(path);\n\t\t//boolean isCreated = file.createNewFile();\n\t\t//if(isCreated) {\n\t\tFileOutputStream fs = new FileOutputStream(path,true);\n\t\t//FileOutputStream fs = new FileOutputStream(file);\n\t\tSystem.out.println(\"Enter the Data to Write in a file.\");\n\t\tString data = new Scanner(System.in).nextLine();\n\t\tbyte bytes[] = data.getBytes();\n\t\tfs.write(bytes);\n\t\tfs.close();\n\t\tSystem.out.println(\"Data Store...\");\n\t\t/*}\n\t\telse {\n\t\t\tSystem.out.println(\"Can't Write in a File\");\n\t\t}*/\n\n\t}", "title": "" }, { "docid": "9c19f713a35fc314ae6c650f5ab1aeef", "score": "0.48395076", "text": "public void init() {\n\t\tSystem.out.println(\"Initial importData!\");\r\n\t}", "title": "" }, { "docid": "f9830ee84e94d067a3031338c840e792", "score": "0.48390678", "text": "private static void saveAllData() {\n\tUtility.writeToFile(Clinic.getClinic());\n }", "title": "" }, { "docid": "09461dec36443dbf0be876bf1198ddf4", "score": "0.48360762", "text": "private void runFile(){\n\t\tsaveFile();\n\t\t// 2. get teadmusbaas location\n\t\tString p = selectedFile.getAbsolutePath();\n\t\t// 3. switch tabs\n\t\tmw.switchToTreeTab();\n\t\t// 4. run haskell program with teadmusbaas location\n\t\tString output = getHaskellOutputForFullTreeNodes(p);\n\t\t// 5. display output in tree tab\n\n\t\t//System.out.println(\"WE got haskell output length \" + output.length());\n\t\t\n\t\tString endStates = getHaskellOutputForEndStates(p);\n\t\t\n\t\tmw.displayOutput(output, endStates);\n\t}", "title": "" }, { "docid": "4868ca7017d99ed471dd72f174923846", "score": "0.48273727", "text": "public void saveData(){\r\n\t\t//map data\r\n\t\ttry{\r\n\t\t\tFile f_map = new File(\"C:/USim2k15/map.udat\");\r\n\t\t\t\r\n\t\t\tif(!f_map.exists()){\r\n\t\t\t\tFile directory = new File(f_map.getParentFile().getAbsolutePath());\r\n\t\t\t\tdirectory.mkdirs();\r\n\t\t\t\t\r\n\t\t\t\tf_map.createNewFile();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileWriter fw = new FileWriter(f_map.getAbsoluteFile());\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < mapIndex.size(); i++){\r\n\t\t\t\tbw.write(Integer.toString(mapIndex.get(i)) + \" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbw.close();\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//game data\r\n\t\ttry{\r\n\t\t\tFile f_dat = new File(\"C:/USim2k15/save.udat\");\r\n\t\t\t\r\n\t\t\tif(!f_dat.exists()){\r\n\t\t\t\tFile directory = new File(f_dat.getParentFile().getAbsolutePath());\r\n\t\t\t\tdirectory.mkdirs();\r\n\t\t\t\t\r\n\t\t\t\tf_dat.createNewFile();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileWriter fw = new FileWriter(f_dat.getAbsoluteFile());\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\r\n\t\t\tbw.write(money + \" \");\r\n\t\t\tbw.write(students + \" \");\r\n\t\t\tbw.write(date.getTime() + \" \");\r\n\t\t\tbw.write(upkeep + \" \");\r\n\t\t\tbw.write(tuition + \" \");\r\n\t\t\tbw.write(happiness + \" \");\r\n\t\t\t\r\n\t\t\tbw.close();\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1ac05122dc40f795931b0e9002427837", "score": "0.48263073", "text": "private void exitBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitBtnActionPerformed\n \n try\n {\n FileOutputStream fileOut = new FileOutputStream(\"user.txt\");//creates file in output stream\n ObjectOutputStream out = new ObjectOutputStream(fileOut);//routes object into output stream\n \n out.writeObject(user);//writes user data to file\n out.close(); //closes data path\n fileOut.close(); //closes data path\n }\n catch(IOException i)//catches exception in case file to be written to does not exist\n {\n }\n \n System.exit(0); //closes application\n \n }", "title": "" }, { "docid": "8c852a9df414a3709dcf8af4a6f3633a", "score": "0.48199064", "text": "void filesave() {\n\t\tnp.savefile();\n\t}", "title": "" }, { "docid": "6779928ab3c783e2dbef0887bf7b572d", "score": "0.48188192", "text": "public void run() {\n try {\n Main.writeDataToFile(filename); // Calls writeDataToFile method\n }\n catch(IOException e) { // Catches all IO erros\n System.out.println(\"ERROR: Cannot open file\");\n }\n }", "title": "" }, { "docid": "21a223e6647cb32d516d698af6f37a82", "score": "0.48160222", "text": "public void terminate()\n {\n if(statsSaver.savedData != null)\n statsSaver.save();\n\n // Dispose of the screen manager\n screensManager.dispose();\n // Dispose all of the loaded resources\n resourcesManager.dispose();\n // Dispose of the graphics manager\n graphicsManager.dispose();\n }", "title": "" }, { "docid": "9a17569a059d41d78c27375ab5351549", "score": "0.48154765", "text": "public static void loadInitialData(){\n\n\t\ttry {\n\t\t\t/* FIXME: Put all binary data files in a separate subdirectory (subdirectory tree?) */\n\t\t\t/* FIXME: Should there not be separate Class static variables for the file names? \n\t\t\t * and just hard code them here?\n\t\t\t */\n\t\t\t/* TODO: Should there be separate methods to checkfor and subsequently create each file \n\t\t\t * granularly, instead of a big bang all or nothing? \n\t\t\t */\n\t\t\tRandomAccessFile schemataTableFile = new RandomAccessFile(\"information_schema.schemata.tbl\", \"rw\");\n\t\t\tRandomAccessFile tablesTableFile = new RandomAccessFile(\"information_schema.tables.tbl\", \"rw\");\n\t\t\tRandomAccessFile columnsTableFile = new RandomAccessFile(\"information_schema.columns.tbl\", \"rw\");\n\n\t\t\t/*\t\n\t\t\t * Create the SCHEMATA table file.\n\t\t\t * Initially it has only one entry:\n\t\t\t * information_schema\n\t\t\t */\n\t\t\t// ROW 1: information_schema.schemata.tbl\n\t\t\tschemataTableFile.writeByte(\"information_schema\".length());\n\t\t\tschemataTableFile.writeBytes(\"information_schema\");\n\n\t\t\t/*\n\t\t\t * Create the TABLES table file.\n\t\t\t * Remember!!! Column names are not stored in the tables themselves\n\t\t\t * The column names (TABLE_SCHEMA, TABLE_NAME, TABLE_ROWS)\n\t\t\t * and their order (ORDINAL_POSITION) are encoded in the\n\t\t\t * COLUMNS table.\n\t\t\t * Initially it has three rows (each row may have a different length):\n\t\t\t */\n\t\t\t// ROW 1: information_schema.tables.tbl\n\t\t\ttablesTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\ttablesTableFile.writeBytes(\"information_schema\");\n\t\t\ttablesTableFile.writeByte(\"SCHEMATA\".length()); // TABLE_NAME\n\t\t\ttablesTableFile.writeBytes(\"SCHEMATA\");\n\t\t\ttablesTableFile.writeLong(1); // TABLE_ROWS\n\n\t\t\t// ROW 2: information_schema.tables.tbl\n\t\t\ttablesTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\ttablesTableFile.writeBytes(\"information_schema\");\n\t\t\ttablesTableFile.writeByte(\"TABLES\".length()); // TABLE_NAME\n\t\t\ttablesTableFile.writeBytes(\"TABLES\");\n\t\t\ttablesTableFile.writeLong(3); // TABLE_ROWS\n\n\t\t\t// ROW 3: information_schema.tables.tbl\n\t\t\ttablesTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\ttablesTableFile.writeBytes(\"information_schema\");\n\t\t\ttablesTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\ttablesTableFile.writeBytes(\"COLUMNS\");\n\t\t\ttablesTableFile.writeLong(7); // TABLE_ROWS\n\n\t\t\t/*\n\t\t\t * Create the COLUMNS table file.\n\t\t\t * Initially it has 11 rows:\n\t\t\t */\n\t\t\t// ROW 1: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"SCHEMATA\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"SCHEMATA\");\n\t\t\tcolumnsTableFile.writeByte(\"SCHEMA_NAME\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"SCHEMA_NAME\");\n\t\t\tcolumnsTableFile.writeInt(1); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 2: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLES\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLES\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLE_SCHEMA\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLE_SCHEMA\");\n\t\t\tcolumnsTableFile.writeInt(1); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 3: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLES\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLES\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLE_NAME\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLE_NAME\");\n\t\t\tcolumnsTableFile.writeInt(2); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 4: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLES\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLES\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLE_ROWS\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLE_ROWS\");\n\t\t\tcolumnsTableFile.writeInt(3); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"long int\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"long int\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 5: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLE_SCHEMA\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLE_SCHEMA\");\n\t\t\tcolumnsTableFile.writeInt(1); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 6: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"TABLE_NAME\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"TABLE_NAME\");\n\t\t\tcolumnsTableFile.writeInt(2); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 7: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMN_NAME\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMN_NAME\");\n\t\t\tcolumnsTableFile.writeInt(3); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 8: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"ORDINAL_POSITION\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"ORDINAL_POSITION\");\n\t\t\tcolumnsTableFile.writeInt(4); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"int\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"int\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 9: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMN_TYPE\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMN_TYPE\");\n\t\t\tcolumnsTableFile.writeInt(5); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(64)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(64)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 10: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"IS_NULLABLE\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"IS_NULLABLE\");\n\t\t\tcolumnsTableFile.writeInt(6); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(3)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(3)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t\t// ROW 11: information_schema.columns.tbl\n\t\t\tcolumnsTableFile.writeByte(\"information_schema\".length()); // TABLE_SCHEMA\n\t\t\tcolumnsTableFile.writeBytes(\"information_schema\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMNS\".length()); // TABLE_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMNS\");\n\t\t\tcolumnsTableFile.writeByte(\"COLUMN_KEY\".length()); // COLUMN_NAME\n\t\t\tcolumnsTableFile.writeBytes(\"COLUMN_KEY\");\n\t\t\tcolumnsTableFile.writeInt(7); // ORDINAL_POSITION\n\t\t\tcolumnsTableFile.writeByte(\"varchar(3)\".length()); // COLUMN_TYPE\n\t\t\tcolumnsTableFile.writeBytes(\"varchar(3)\");\n\t\t\tcolumnsTableFile.writeByte(\"NO\".length()); // IS_NULLABLE\n\t\t\tcolumnsTableFile.writeBytes(\"NO\");\n\t\t\tcolumnsTableFile.writeByte(\"\".length()); // COLUMN_KEY\n\t\t\tcolumnsTableFile.writeBytes(\"\");\n\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "title": "" }, { "docid": "7557489402ae824867963e9a0ea720fc", "score": "0.48124126", "text": "public void exec() throws IOException\r\n\t{\r\n\t\tEnter();\r\n\t\tSave();\r\n\t\tgetCode();\r\n\t\tChange();\r\n\t\tUpdate();\r\n\t\tsendMsg();\r\n\t\tAddNewGroup();\r\n\t\taddNew();\r\n\t}", "title": "" }, { "docid": "dc86b2dc16b06a12b175b562ad72b9ba", "score": "0.48015323", "text": "public static void main(String[] args) {\n\n\t\tFileInputStream fis = null;\n\t\tObjectInputStream ois = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tfis =\n\t\t\t\t\tnew FileInputStream(\"C:/Nexon/dbsavefile.txt\"); //파일에 대하여\n\t\t\tois = \n\t\t\t\t\tnew ObjectInputStream(fis); // fis에 대하여 object stream\n\t\t\tHashMap<Integer,String> map =\n\t\t\t\t\t(HashMap<Integer,String>)ois.readObject(); // 최상위 object 형태를 casting 시켜주어야 한다.\n\t\n\t\t\tint size = map.size();\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(map.get(i+1));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch ( Exception e ) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\t// 사실 안전하게 하기 위하여 fos, oos를 닫기 전에 닫을 수 있는지를 검사하여야 한다\n\t\t\ttry {\n\t\t\t\tois.close();\n\t\t\t\tfis.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(\"프로그램 종료\");\t\t\n\n\n\t}", "title": "" }, { "docid": "4ee74c3906f8e816bb65c5bada9df158", "score": "0.47992143", "text": "public void saveData() throws Exception {\n FileWriter fileWriter = new FileWriter(\"info.conf\");\n }", "title": "" }, { "docid": "f03fd9572e0e353178252bbd6218c8c4", "score": "0.47941855", "text": "public void run()\r\n {\n\tFileDialog dialog = new FileDialog(new Frame(), \"Save Datatable\", FileDialog.SAVE);\r\n\r\n\t// Only allow the extension used to create\r\n\tdialog.setFile(\"*.csv\");\r\n\r\n\t// Show the dialog.\r\n\tdialog.setVisible(true);\r\n\r\n\t// Wait for the user to select a file, or select 'CANCEL'\r\n\tString filename = dialog.getFile();\r\n\r\n\t// If no file was specified notify the user and exit.\r\n\tif (filename == null)\r\n\t{\r\n\t JOptionPane.showMessageDialog(null, \"No screenshot saved.\");\r\n\t return;\r\n\t}\r\n\r\n\t// Build the full path of the file.\r\n\tString separator = System.getProperty(\"file.separator\");\r\n\tString filepath = dialog.getDirectory() + separator + filename;\r\n\r\n\t// Create the file object...\r\n\tFile file = new File(filepath);\r\n\r\n\t// Create the Output stream\r\n\tPrintStream output = null;\r\n\ttry\r\n\t{\r\n\t output = new PrintStream(file);\r\n\t}\r\n\tcatch (FileNotFoundException e)\r\n\t{\r\n\t JOptionPane.showMessageDialog(null, \"Error saving data to file: \\n\" + e.getMessage());\r\n\t return;\r\n\t}\r\n\r\n\t// Unload the DataTable.\r\n\tsaveTo(output);\r\n\r\n\t// Close everything up.\r\n\toutput.flush();\r\n\toutput.close();\r\n }", "title": "" }, { "docid": "d122f8a58a55529602d94e1b4562c30d", "score": "0.47829127", "text": "public void storeData() {\r\n\t}", "title": "" }, { "docid": "b4e1e1d3a7a185c0efd3db50f1d4fe50", "score": "0.4777076", "text": "protected void endOfData() {\n IAnalysisFactory af = IAnalysisFactory.create();\n IHistogramFactory hf = af.createHistogramFactory(af.createTreeFactory().create());\n IHistogram1D[] bottomSlices = new IHistogram1D[25];\n IHistogram1D[] topSlices = new IHistogram1D[25];\n for (int i = 0; i < 25; ++i) {\n bottomSlices[i] = hf.sliceY(\"bottom slice \" + i, trkAtEcalXvsNSigmaBottom, i);\n topSlices[i] = hf.sliceY(\"top slice \" + i, trkAtEcalXvsNSigmaTop, i);\n }\n }", "title": "" }, { "docid": "eb8be6257e3efaa3eedd047d3b102b1e", "score": "0.47716704", "text": "public void fileIO() {\n try {\n System.out.println(\"\\t1. WriteContactInFile \\n\\t2. PrintData \\n\\t3. Count entries \\n\\t4. Read entries\") ;\n int choice = sc.nextInt();\n switch (choice) {\n case 1:\n String bookName = getInput(\"BookName\");\n if (bookMap.containsKey(bookName))\n new AddressBookFileIO().write(bookMap.get(bookName));\n break;\n case 2:\n new AddressBookFileIO().printData();\n break;\n case 3:\n System.out.println(\"Count: \" + new AddressBookFileIO().countEntries());\n break;\n case 4:\n bookMap.put(\"File\", (ArrayList<Contact>) new AddressBookFileIO().readData());\n break;\n default:\n System.out.println(\"Invalid choice\");\n break;\n }\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n }", "title": "" }, { "docid": "017e0f6602b9c76ca18f03298dadabe4", "score": "0.4771288", "text": "public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOutputStream(\"e:/data/trial.txt\");\r\n //step-2 (write the data on stream)\r\n String msg=\"hello user\";\r\n byte b[]=msg.getBytes();\r\n //fos.write(b);\r\n fos.write(b, 1, 5);\r\n \r\n //step-3 (close the stream)\r\n fos.close();\r\n \r\n System.out.println(\"Data Stored Successfully.....\");\r\n }", "title": "" }, { "docid": "4a526254dda7ef18dabecc0dff977d32", "score": "0.47703126", "text": "public static void main(String[] args) {\n Instances generatedData = generateData(100);\n System.out.println(generatedData);\n ArffSaver saver = new ArffSaver();\n saver.setInstances(generatedData);\n try {\n saver.setFile(new File(\"Baeume.arff\"));\n saver.writeBatch();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "cc28bdb19c67ef3794571f8a60dab039", "score": "0.4765339", "text": "public static void save()\n\t{\n\t\tPrintWriter fout;\n\t\ttry\n\t\t{\n\t\t\tfout = new PrintWriter(midi_file + \".data\", \"utf-8\");\n\t\t\tfor(int i = 0; i < savestates.length; i++)\n\t\t\t\tfout.println(savestates[i]);\n\t\t\tfor(int i = 0; i < track_muted.length; i++)\n\t\t\t\tfout.println(track_muted[i]);\n\t\t\tfout.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"Error: cannot save data.\");\n\t\t}\n\t\tcatch (UnsupportedEncodingException e)\n\t\t{\n\t\t\tSystem.out.println(\"Error: cannot save data.\");\n\t\t}\n\t}", "title": "" }, { "docid": "15c0c5f935a9e4e02189dc72e83cd301", "score": "0.475619", "text": "public static void main(String[] args) {\n StockExCenter stockExCenter = null;\n try {\n FileInputStream fileIn = new FileInputStream(\"StockExCenter.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n stockExCenter = (StockExCenter) in.readObject();\n System.out.println(\"StockExCenter object is read successfully\");\n //stockExCenter.getCurClient().getLoggedStkPrcStack().peek().setToTodayAndTimeAt10am();\n in.close();\n fileIn.close();\n } catch (IOException i) {\n System.out.println(\"StockExCenter.ser not found, instantiating new StockExCenter object\");\n stockExCenter = new StockExCenter();\n } catch (ClassNotFoundException c) {\n System.out.println(\"StockExCenter object not found, instantiating new one\");\n stockExCenter = new StockExCenter();\n }\n\n Menu menu = new Menu(stockExCenter);\n while (true) {\n menu.startMenu();\n// System.out.print(\"Press ENTER to continue: \");\n// ReadData.readString();\n }\n\n }", "title": "" }, { "docid": "f80086c02278a13ba0d54655a48ee313", "score": "0.47555512", "text": "public void exit() {\n OutputDeviceWorker.getDescriber().describeString(\"The program finished\");\n }", "title": "" }, { "docid": "f42477c51118e98b240bfc7163452c9c", "score": "0.47542343", "text": "public void lutSave() {\n out.println(\"Save LUT Data !!!!\");\n try {\n lutData.lutSaveFile(getDataFile(\"data.txt\"));\n } catch (Exception e) {\n out.println(\"Exception trying to write: \" + e);\n }\n }", "title": "" }, { "docid": "46ef0e9bb57688a636cdd12d43ca04aa", "score": "0.47476315", "text": "public void openForInput () \n throws IOException {\n openForInput (new DataDictionary());\n }", "title": "" }, { "docid": "279c0a41f5effbef1ea007fc77541d52", "score": "0.47451416", "text": "public void finish() {\n printData();\n }", "title": "" }, { "docid": "a9e5d0262167d2d13bf915141b0affd8", "score": "0.47390908", "text": "public static void main(String[] args) {\r\n //Iniciamos un objeto tipo Data\r\n Data data=new Data();// objeto que almacena los datos\r\n Data aux=ADTarea02.recoverData();// Intentamos cargar los datos\r\n if(aux!=null){data=aux;}// Si damos instanciado el auxiliar a partir de la carga de un JSON, lo igualamos al objeto principal, si no, nos quedamos con el data con constructor por defecto.\r\n menu(data);//ejecuta el menu\r\n\r\n }", "title": "" }, { "docid": "25bbeafcd7ea5e8518ea915b329e4534", "score": "0.4731221", "text": "public void saveToFile() throws IOException {\n\t\ttry {\n\t\t\tFileOutputStream fOs = new FileOutputStream(new File(\"QuestionData.dat\"));\n\t\t\tObjectOutputStream oOs = new ObjectOutputStream(fOs);\n\t\t\toOs.writeObject(gC.qBank);\n\t\t\toOs.flush();\n\t\t\toOs.close();\n\t\t\tJOptionPane.showMessageDialog(gC.qGUI, \"Save SuccessFul!\");\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(gC.qGUI, \"Error, Problem Saving Data.\");\n\t\t\tSystem.err.println(\"Error: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "2c2c6a5ea9dcbbebf005423a7d44915d", "score": "0.47225684", "text": "public static void main(String[] args) throws IOException {\n\t\tString path = \"/Users/chenyifan/Desktop/SOGFS/code/hyper.txt\";\n\t\tBufferedReader reader = bufferReader(path);\n\t\tpath = \"/Users/chenyifan/Desktop/SOGFS/code/run\";\n\t\tBufferedWriter writer = bufferWriter(path);\n\t\tString line;\n\t\tString command = \"matlab -nodisplay -nosplash -nodesktop -r \\\"run('dir','../dataset','maxiter',10,'gpu',1,'out','SOGFS_%d',%s); exit;\\\"\";\n\t\tint i = 1;\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\twriter.write(String.format(command, i, line));\n\t\t\twriter.newLine();\n\t\t\ti++;\n\t\t}\n\t\treader.close();\n\t\twriter.close();\n\t}", "title": "" }, { "docid": "2f598d84fa890c62760d00d7aab31565", "score": "0.47158363", "text": "public void saveData(String pFilename)\n{\n\n IniFile jobInfoFile;\n\n //if the ini file cannot be opened and loaded, exit without action\n try {\n jobInfoFile = new IniFile(pFilename, fileFormat);\n jobInfoFile.init();\n }\n catch(IOException e){\n logSevere(e.getMessage() + \" - Error: 504\");\n return;\n }\n\n String section = \"Identifying Information\";\n\n //save all items which have been defined\n\n for (int i=0; i < NUMBER_OF_ITEMS; i++) {\n if (items[i] != null){\n\n //use the label text as the key, the value is the text in the box\n jobInfoFile.writeString(section, items[i].labelText,\n items[i].textField.getText());\n\n }\n }// for (int i=0; i < NUMBER_OF_ITEMS; i++)\n\n jobInfoFile.save(); //save to disk\n\n}", "title": "" }, { "docid": "ebb3100e7fe7d20547aa1368db66e2ab", "score": "0.47122663", "text": "public static void main(String[] args) throws Exception{\n ShippingStore ss = new ShippingStore(\"packages.txt\");\n ss.openFile(ss.getFile());\n Scanner sc = new Scanner(System.in);\n String option;\n int choice;\n do{\n System.out.println(\"1. Show all existing package records in the \"\n + \"database (in any order).\");\n System.out.println(\"2. Add new package record to the database.\");\n System.out.println(\"3. Delete package record from a database.\");\n System.out.println(\"4. Search for a package \"\n + \"(given its tracking number).\");\n System.out.println(\"5. Show a list of packages within a given \"\n + \"weight range.\");\n System.out.println(\"6. Exit program.\");\n option = sc.nextLine();\n while(option.matches(\"^(\\\\D+\\\\d*)$\")){\n System.out.println(\"Please input a number.\");\n option = sc.nextLine();\n }\n choice = Integer.parseInt(option);\n switch(choice){\n case 1:\n ss.showAll();\n break;\n case 2:\n ss.add();\n break;\n case 3:\n ss.delete();\n break;\n case 4:\n ss.search();\n break;\n case 5:\n ss.showWeight();\n break;\n case 6:\n ss.quit(ss.getFile());\n break;\n default: \n System.out.println(\"Incorrect choice: please type an input\"\n + \" between 1-6\");\n }\n }while (choice != 6);\n }", "title": "" }, { "docid": "f6139cb3b4d66804a25ca975f472e874", "score": "0.47118905", "text": "public void loadSim() { \n \n //Get load location\n FileChooser chooser = new FileChooser();\n File chosenFile = chooser.showOpenDialog(null);\n \n //If valid file was chosen\n if (chosenFile != null) {\n \n //Load working simulation data from file\n SimLoader simLoader = new SimLoader();\n SimData loadedData = null;\n \n try {\n \n //Load and retrieve data\n loadedData = simLoader.load(chosenFile.getAbsolutePath());\n } catch (Exception e) {\n \n e.printStackTrace();\n \n //Log error\n logEvent(\"Simulation file: '\" + chosenFile.getAbsolutePath() + \"' could not be successfully loaded\");\n }\n \n //If load was successful\n if (loadedData != null) {\n \n //Setup data\n BusifixAppData.SetWorkingData(loadedData);\n \n //Perform secondary initialization\n initializeSimulation();\n \n //Log successful load\n logEvent(\"Simulation file: '\" + chosenFile.getAbsolutePath() + \"' successfully loaded\");\n }\n }\n }", "title": "" }, { "docid": "2f1874bb3ff9a1b5d0f0f9845846feb6", "score": "0.47065386", "text": "public static void main(String args[]) {\n\t\ttry {\n\t\t\tClient client = new Client();\n\t\t\tclient.connect();\n\t\t\tclient.receiveFile(\"frequencyInformation.txt\");\n\t\t\tSystem.out.println(\"Frequency Information Received\");\n\t\t\tclient.receiveFile(\"modulatedStream.txt\");\n\t\t\tSystem.out.println(\"Modulated Stream Received\");\n\t\t\tclient.close();\n\t\t}catch (Exception exception) {\n\t\t\tSystem.out.println(exception.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t\n\t\t//Initialize a JFrame\n\t\tJFrame frame = new JFrame(\"Demodulator\");\n\t\tframe.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);\n\t\tframe.setSize(1250, 500); //SET IT TO SCREEN SIZE\n\t\tframe.setLocation(0, 250);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setVisible(true);\n\t\t\n\t\t//Demodulate signal\n\t\tDemodulateSignal demodulateSignal = new DemodulateSignal();\n\t\t//Read the frequency information.\n\t\ttry {\n\t\t\tdemodulateSignal.setFrequencyInfoFromFile(\"FrequencyInformation.txt\");\n\t\t}catch(IOException IOE) {\n\t\t\tSystem.out.println(IOE.getMessage());\n\t\t}\n\t\t//Read the modulated stream.\n\t\ttry {\n\t\t\tdemodulateSignal.setModulatedStreamFromFile(\"ModulatedStream.txt\");\n\t\t}catch(IOException IOE) {\n\t\t\tSystem.out.println(IOE.getMessage());\n\t\t}\n\t\t//Demodulate\n\t\tdemodulateSignal.demodulate();\n\t\t\n\t\t/*\n\t\t//Create a label to display demodulated bit sequence.\n\t\tJLabel bitStreamLabel = new JLabel(\"The bit stream is: \");\n\t\tframe.add(bitStreamLabel);\n\t\tframe.setVisible(true);\n\t\tbitStreamLabel.setLocation(100, 100);\n\t\tbitStreamLabel.setSize(250, 50);\n\t\tbitStreamLabel.setForeground(new Color(255, 102, 102)); //Red shade\n\t\tbitStreamLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 26));\n\t\t*/\n\t\t\n\t\tString bitString = \"The bit stream is: \";\n\t\tJLabel bitStreamData = new JLabel(bitString);\n\t\tframe.add(bitStreamData);\n\t\tframe.setVisible(true);\n\t\tbitStreamData.setLocation(100, 50);\n\t\tbitStreamData.setSize(500, 50);\n\t\tbitStreamData.setForeground(new Color(255, 102, 102)); //Red shade\n\t\tbitStreamData.setFont(new Font(\"Times New Roman\", Font.BOLD, 26));\n\t\t\n\t\tString outputStream = demodulateSignal.getDemodulatedString();\n\t\tJLabel[] outputArray = new JLabel[outputStream.length()/30 + 1];\n\t\tfor(int i = 0, j = 0; i < outputStream.length(); i = i + 30, j++) {\n\t\t\tString data;\n\t\t\ttry {\n\t\t\t\tdata = outputStream.substring(i, i + 30);\n\t\t\t\tSystem.out.println(data);\n\t\t\t}catch(Exception e) {\n\t\t\t\tdata = outputStream.substring(i);\n\t\t\t}\n\t\t\toutputArray[j] = new JLabel(data);\n\t\t\toutputArray[j].setLocation(100, 50 * (j + 2));\n\t\t\toutputArray[j].setSize(500, 50);\n\t\t\toutputArray[j].setForeground(new Color(255, 102, 102)); //Red shade\n\t\t\toutputArray[j].setFont(new Font(\"Times New Roman\", Font.BOLD, 26));\n\t\t\tframe.add(outputArray[j]);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t\n\t\t//Displaying output signal\n\t\tint[] bitStream = demodulateSignal.getDemodulatedStream();\n\t\tDigitalSignal outputSignal = new DigitalSignal();\n\t\toutputSignal.setCode(bitStream);\n\t\t//inputSignal.animateSignal();\n\t frame.add(outputSignal);\n\t outputSignal.start();\n\t outputSignal.setSize(500, 250);\n\t \toutputSignal.setLocation(600, 100);\n\t \toutputSignal.setBackground(Color.BLACK);\n\t frame.setVisible(true);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "478bd02da92a0d71cf21d5857a89ca01", "score": "0.47043875", "text": "public static void main(String[] args) {\n House myHouse = new House(\"myHouse.txt\");\n ApplianceGenerator myGenerator = new ApplianceGenerator(\"myHouse.txt\");\n myGenerator.createArrayLists();\n myGenerator.getValues();\n\n for(Appliance appliance : myGenerator.apps) {\n if(appliance.getType().contains(\"electric\")) {\n myHouse.addElectricAppliance(appliance);\n }\n if(appliance.getType().contains(\"water\")) {\n myHouse.addWaterAppliance(appliance);\n }\n }\n\n/* Main menu\n * Has 5 options:\n * 1. Activate the house\n * 2. See the current appliances\n * 3. Add a new appliance\n * 4. See usage history\n * 5. Quit\n */\n System.out.println(\"\\n\");\n System.out.println(\"Welcome to SmartHome simulator\");\n while(true) {\n System.out.println(\"What would you like to do?\");\n System.out.println(\"1. Activate the house\");\n System.out.println(\"2. See the current appliances\");\n System.out.println(\"3. Add a new appliance\");\n System.out.println(\"4. See usage history\");\n System.out.println(\"5. Quit\");\n\n/* Gets the user input\n * Has to be 1 2 3 4 or 5\n */\n Toolbox myToolbox = new Toolbox();\n String option = myToolbox.readStringFromCmd();\n\n/* Option 1 - Activate the house\n * Default activate - runs for 7 days (168 hours)\n * Activates for 7 days\n * Saves the date, time and cost to the save file\n * Custom activate - runs for a specified time\n * Activates for the number of hours given by the user\n * Saves the date, time and cost the the save file\n * Loops if the input is not 1 or 2\n */ \n if(option.equals(\"1\")) { \n while(true) {\n System.out.println(\"\\n\" + \"What would you like to do?\");\n System.out.println(\"1. Default activate\");\n System.out.println(\"2. Custom activate\");\n option = myToolbox.readStringFromCmd();\n if(option.equals(\"1\")) {\n myHouse.activate();\n myGenerator.save(\"Date: \" + java.time.LocalDate.now() + \"\\n\");\n myGenerator.save(\"Activated for: 168 hours\" + \"\\n\");\n double saveCost = (myHouse.batteryMeter.getCost() + myHouse.waterMeter.getCost());\n saveCost = Math.round(saveCost*100.0)/100.00;\n myGenerator.save(\"Total cost for this time: \" + saveCost + \"\\n\" + \"\\n\");\n break;\n }\n else if(option.equals(\"2\")) {\n System.out.println(\"\\n\" + \"How many hours will you activate for?\");\n Integer time = myToolbox.readIntegerFromCmd();\n myHouse.activate(time);\n myGenerator.save(\"Date: \" + java.time.LocalDate.now() + \"\\n\");\n myGenerator.save(\"Activated for: \" + time + \" hours\" + \"\\n\");\n double saveCost = (myHouse.finalCost);\n saveCost = Math.round(saveCost*100.0)/100.00;\n myGenerator.save(\"Total cost for this time: \" + saveCost + \"\\n\" + \"\\n\");\n break;\n }\n else {\n System.out.println(\"\\n\" + \"This is not an option. Try again\");\n }\n }\n }\n/* Option 2 - See the current appliances\n * Prints the name, meter and type for each appliance in myHouse\n */\n else if(option.equals(\"2\")) {\n System.out.println(\"\\n\" + \"There are \" + myHouse.numAppliances() + \" appliances: \" + \"\\n\");\n for(Appliance appliance : myHouse.appliances) {\n System.out.println(\"Name: \" + appliance.getName());\n System.out.println(\"Meter: \" + appliance.getType());\n System.out.println(\"Type: \" + appliance.getClass().getName() + \"\\n\");\n }\n }\n/* Option 3 - Add a new appliance\n * Adds an appliance to the config file\n * See the addAppliance() method in ApplianceGenerator\n */\n else if(option.equals(\"3\")) {\n myGenerator.addAppliance();\n }\n/* Option 4 - See usage history\n * Prints out the text from the save file\n * This contains the date, time, and cost\n * See the save() and printSave() methods in ApplianceGenerator \n */\n else if(option.equals(\"4\")) {\n myGenerator.printSave();\n }\n/* Option 5 - Quit\n * Quits the program\n */\n else if(option.equals(\"5\")) {\n System.out.println(\"\\n\" + \"Quitting...\");\n System.exit(0);\n } \n else {\n/* The input is not valid\n * The menu will ask for user input again until the user chooses to quit\n * It is important to handle errors so java does not throw exceptions \n */\n System.out.println(\"\\n\" + \"This is not an option. Try again\" + \"\\n\");\n }\n }\n }", "title": "" }, { "docid": "8fcc35e24d2387cb0bb9245005d47a2e", "score": "0.47039142", "text": "public void saveData() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6b44a6ce0d3dbcc0ed888e35d6de9efa", "score": "0.4702812", "text": "public static void main(String[] args)\n {\n Sudoku mySudoku = new Sudoku(N_BY_N_SIZE);\n\n mySudoku.unique();\n mySudoku.row();\n mySudoku.column();\n mySudoku.block();\n mySudoku.printCNF();\n mySudoku.closeFile();\n }", "title": "" }, { "docid": "b1d13072dbd08556ceca31d97d58b9c6", "score": "0.46896085", "text": "@FXML public void exitApplication() {\n saveData();\n Platform.exit();\n }", "title": "" }, { "docid": "8dd8e97ece8fa1c79e5e98593e696c5c", "score": "0.4688928", "text": "private static void saveData() {\n \ttry (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(executionsFile));) {\n \toos.writeObject(executionList);\n } catch(Exception e){\n \te.printStackTrace();\n }\n }", "title": "" }, { "docid": "09898b2c5d96c950dc75e6e82fcdfe07", "score": "0.46886104", "text": "public void ImprimeNodo() {\n System.out.println(data);\n }", "title": "" }, { "docid": "e0dfd34022ebde43cb2a7b681995c373", "score": "0.46881714", "text": "private static void fillFactbaseWithDemoDataMAIN(PrologProcess process) throws PrologProcessException, FileNotFoundException {\n String consultQuery = QueryUtils.bT(\"reconsult\", \"'c:/Users/user/Desktop/Prolog Test/TestPrologPDT/QuestGeneratorMain.pl'\");\n process.queryOnce(consultQuery);\n\n \t\n }", "title": "" }, { "docid": "9b42f6698b7f5322fbf0c112d461d984", "score": "0.46869168", "text": "private void mainMenu() {\n\t\tdo {\n\t\t\tConsoleHelper.printMainMenu();\n\t\t\tint opc = ConsoleHelper.chooseOptionMenu(1, 3);\n\t\t\tswitch (opc) {\n\t\t\tcase 1:\n\t\t\t\tString readPath = ConsoleHelper.getPathandFileMenu(\"read\");\n\t\t\t\tif (readPath != null) {\n\t\t\t\t\treadTable = ReadWrite.readFile(readPath);\n\t\t\t\t\tshowReadFormat();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"An error occured (could not load file)\");\n\t\t\t\t\tmainMenu();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tString writePath = ConsoleHelper.getPathandFileMenu(\"write\");\n\t\t\t\tif (writePath != null) {\n\t\t\t\t\tcreateWeathersLoop();\n\t\t\t\t\tif (writeTable != null && writeTable.size() > -1) {\n\t\t\t\t\t\tboolean done = ReadWrite.writeFile(writePath, writeTable);\n\t\t\t\t\t\tif (done) {\n\t\t\t\t\t\t\tSystem.out.println(\"File write succesfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"An error occurred while trying to write the file (Bad path or bad file type).\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"You need to fill with atleast 1 month data before write a new file.\");\n\t\t\t\t\t\tmainMenu();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"An error occured...\");\n\t\t\t\t\tmainMenu();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t} while (ConsoleHelper.yesNo(\"Do more? Yes (1) No (0)\"));\n\n\t}", "title": "" }, { "docid": "0d3aaa2ea5a8049c69c9ceace39d30c6", "score": "0.46835285", "text": "public static void programExit(){\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "dd3fe2e4217f9f43d661572da15671f3", "score": "0.46832672", "text": "public static void main(String[] args) {\n\t\tAdministrador jefe=new Administrador(\"Brenda\", 80000,2005,12,15);\n\t\tjefe.setIncentivo(500);\n\t\t\n\t\tEmpleado[] personal=new Empleado[3];\n\t\tpersonal[0]=jefe;\n\t\tpersonal[1]=new Empleado(\"Ana\", 25000,2008,10,1);\n\t\tpersonal[2]=new Empleado(\"Luis\", 18000,2012,9,15);\n\t\t\n\t\ttry{\n\t\t\tObjectOutputStream escribiendoFichero=new ObjectOutputStream(new FileOutputStream(\"C:/Users/BrendaLeticia/Desktop/serializando_java/empleado.dat\"));\n\t\t\tescribiendoFichero.writeObject(personal);\n\t\t\tescribiendoFichero.close();\n\t\t\t\n\t\t\tObjectInputStream recuperandoFichero=new ObjectInputStream(new FileInputStream(\"C:/Users/BrendaLeticia/Desktop/serializando_java/empleado.dat\"));\n\t\t\t//este metodo devuelve un objeto por lo que es necesario aplicar un casting de arreglo especificamente de empleado\n\t\t\tEmpleado[] personalRecuperado=(Empleado[]) recuperandoFichero.readObject();\n\t\t\trecuperandoFichero.close();\n\t\t\t\n\t\t\tfor(Empleado e : personalRecuperado){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\t\n\t\t}\n\t}", "title": "" } ]
6270cedda27824b4bc17aab19e12ce0f
ON SETUP LES ELEMENTS QUI VONT ETRE NECESSAIRES (ACTIVITE LISTNEIGHBOURACTIVITY, INJECTION DE L'API, RECUPERATION DE LA LISTE DE VOISINS...)
[ { "docid": "7c11c5f0b849c43639806458445328e4", "score": "0.60447556", "text": "@Before\n public void setUp() {\n mActivity = mActivityRule.getActivity();\n assertThat(mActivity, notNullValue());\n mService = DI.getNeighbourApiService();\n mNeighbourList = mService.getNeighbours();\n ITEMS_COUNT = mNeighbourList.size();\n }", "title": "" } ]
[ { "docid": "6ccc1e5bb8564b956fc8356cbd3c3591", "score": "0.6036107", "text": "private void prepare()\r\n {\r\n addObject(botonPortada,825,625);\r\n }", "title": "" }, { "docid": "55e03d4bb8e23605965c1554c48f46ff", "score": "0.5974135", "text": "private void setActivos()\n {\n activos = libroMayor.getActivos();\n }", "title": "" }, { "docid": "80e09d4194e667a60f5613b5bc503b42", "score": "0.583574", "text": "void set6A()\n {\n Element oxygen = new Element( 8, 8, \"http://periodic.lanl.gov/8.shtml\" );\n Element sulfur = new Element( 16, 16, \"http://periodic.lanl.gov/16.shtml\" );\n Element selenium = new Element( 34, 45, \"http://periodic.lanl.gov/34.shtml\" );\n Element tellurium = new Element( 52, 76, \"http://periodic.lanl.gov/51.shtml\" );\n Element polonium = new Element( 84, 125, \"http://periodic.lanl.gov/83.shtml\" );\n Element livermorium = new Element( 116, 175, \"http://periodic.lanl.gov/116.shtml\" );\n a6.add( oxygen );\n a6.add( sulfur );\n a6.add( selenium );\n a6.add( tellurium );\n a6.add( polonium );\n a6.add( livermorium );\n }", "title": "" }, { "docid": "a8883a2148c69f62cc8a138fce059972", "score": "0.58234966", "text": "void initViewElements() {\n mEndInfoLayout = (LinearLayout) findViewById(R.id.navInfoLayout);\n mEndInfoLayout.setVisibility(View.INVISIBLE);\n\n mEndInfo = (TextView) findViewById(R.id.destInfoText);\n\n mRoutingInfoLayout = (LinearLayout) findViewById(R.id.routingInfoLayout);\n mRoutingInfoLayout.setVisibility(View.INVISIBLE);\n\n mRoutingInfo = (TextView) findViewById(R.id.routingInfoText);\n\n // install button listener;\n Button searchBttn = (Button) findViewById(R.id.searchButton);\n searchBttn.setOnClickListener(mSearchButtonListener);\n\n Button navButton = (Button) findViewById(R.id.navButton);\n navButton.setOnClickListener(mNavButtonListener);\n }", "title": "" }, { "docid": "ec21f32f46761493da9429ac7875e4bd", "score": "0.578957", "text": "private void setOtros(){\n\n Adaptador_Otros adaptador = new Adaptador_Otros(getActivity(),arrayComplementos);\n\n StaggeredGridLayoutManager cardAdapter = new StaggeredGridLayoutManager(NUM_COLUMNS, LinearLayoutManager.VERTICAL);\n\n recyclerView.setLayoutManager(cardAdapter);\n\n //Adaptamos el contenido\n recyclerView.setAdapter(adaptador);\n\n }", "title": "" }, { "docid": "25c4ae60375bf05bc6d85344ca99f706", "score": "0.5740639", "text": "public void initPositionElementsGraphiques(){\n titleCreneauTab.setLayoutX(posx * 12 / 100);\n titleCreneauTab.setLayoutY(posy * 20 / 100);\n\n numCreneau.setLayoutX(posx * 100 / 100);\n numCreneau.setLayoutY(posy * 30 / 100);\n\n //Je definis la taille de mes colonnes, multiply par 1 = 100% de la taille du tableview, 0.9 = 90% ...\n prenomh.prefWidthProperty().bind(listHommes.widthProperty().multiply(1));\n prenomf.prefWidthProperty().bind(listFemmes.widthProperty().multiply(1));\n prenomh.setCellValueFactory(new PropertyValueFactory<IParticipants,String>(\"prenom\"));\n prenomf.setCellValueFactory(new PropertyValueFactory<IParticipants,String>(\"prenom\"));\n\n\n //Je règle les propriétés de mon tableview de creneaux\n listHommes.setLayoutX(posx * 64 / 100);\n listHommes.setLayoutY(posy * 75 / 100);\n listHommes.setMaxWidth(250.0);\n listHommes.setMaxHeight(500.0);\n listHommes.setEditable(false);\n\n listFemmes.setLayoutX(posx * 162 / 100);\n listFemmes.setLayoutY(posy * 75 / 100);\n listFemmes.setMaxWidth(250.0);\n listFemmes.setMaxHeight(500.0);\n listFemmes.setEditable(false);\n\n allCreneaux.setLayoutX(posx );\n allCreneaux.setLayoutY(posy * 5);\n creneauCourant.setLayoutX(allCreneaux.getLayoutX());\n creneauCourant.setLayoutY(allCreneaux.getLayoutY()+ 30);\n creneauSuivant.setLayoutX(creneauCourant.getLayoutX()+200);\n creneauSuivant.setLayoutY(creneauCourant.getLayoutY());\n creneauPrecedent.setLayoutX(allCreneaux.getLayoutX()+200);\n creneauPrecedent.setLayoutY(allCreneaux.getLayoutY());\n validerCreneau.setLayoutX(creneauPrecedent.getLayoutX()+200);\n validerCreneau.setLayoutY(creneauPrecedent.getLayoutY());\n //J'autorise la multi selection des items\n //listCreneaux.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "title": "" }, { "docid": "90020e81e46e2268c0280f93884589a8", "score": "0.5735249", "text": "private void elementInitialization(Map<String, Route> routes, Map<String, Trip> trips, Map<String, Stop> stops,\n\t\t\t\t\t\t\t\t\t String mode, String id) {\n\t\tif (!elementStage.isShowing()) {\n\t\t\telementStage.setTitle(id);\n\t\t\telementStage.show();\n\t\t} else {\n\t\t\tif (id.equals(elementStage.getTitle())) {\n\t\t\t\telementStage.hide();\n\t\t\t\telementStage.setTitle(\" \");\n\t\t\t} else {\n\t\t\t\telementStage.setTitle(id);\n\t\t\t}\n\t\t}\n\t\tif (id != null) {\n\t\t\tswitch (mode) {\n\t\t\t\tcase \"stops\":\n\t\t\t\t\tStop stop = stops.get(id);\n\t\t\t\t\tif (stop == null) {\n\t\t\t\t\t\tthrow new NullPointerException(\"Stop \" + id + \" displayed in ListView could not be found\");\n\t\t\t\t\t}\n\t\t\t\t\telementController.initialize()\n .setData(stop)\n\t\t\t\t\t\t\t.fillData(true);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"routes\":\n\t\t\t\t\tRoute route = routes.get(id);\n\t\t\t\t\tif (route == null) {\n\t\t\t\t\t\tthrow new NullPointerException(\"Route \" + id + \" displayed in ListView could not be found\");\n\t\t\t\t\t}\n elementController.initialize()\n .setData(route)\n .fillData(true);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"trips\":\n\t\t\t\t\tTrip trip = trips.get(id);\n\t\t\t\t\tif (trip == null) {\n\t\t\t\t\t\tthrow new NullPointerException(\"Trip \" + id + \" displayed in ListView could not be found\");\n\t\t\t\t\t}\n elementController.initialize()\n .setData(trip)\n .fillData(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"modeLabel for ApplicationDriver.fxml is improper. \" +\n\t\t\t\t\t\t\t\"Must have stops, trips or routes as second word in modeLabel.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5ae44baf82bf4aadee436c2cb1f631c6", "score": "0.5699447", "text": "private void adicionarItens(){\r\n\t\t//Cria modelo de lista\r\n\t\tDefaultListModel<String> listModel = new DefaultListModel<String>();\r\n\t\t//Adiciona os elementos\r\n\t\tif(valores!=null){\r\n\t\t\tfor (int i = 0; i < valores.length; i++) {\r\n\t\t\t\tlistModel.addElement(valores[i]+\": \"+tipos[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Seta o novo modelo\r\n\t\tsetModel(listModel);\r\n\t}", "title": "" }, { "docid": "4c3b77bf217bccf7bd0d5c38abc1776e", "score": "0.5675299", "text": "public void initialLists() {\n\n LVLeiter lvLeiter = new LVLeiter(\"Schartner\", 33);\n Lehrveranstaltung lehrveranstaltung = new Lehrveranstaltung(620004, Lehrveranstaltung.Typ.VK, \"Syssec\", 3, lvLeiter, Lehrveranstaltung.Slot.F8);\n\n listModeF8.addElement(lehrveranstaltung.LVtoString());\n\n /*\n Iterieren über jede jList\n */\n for (JList jList : listJlisten\n ) {\n jList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n jList.setDragEnabled(true);\n jList.setTransferHandler(lh);\n jList.setDropMode(DropMode.INSERT);\n setMappings(jList);\n }\n\n\n }", "title": "" }, { "docid": "5a7a5efe501cc313446e1c55f6f0617e", "score": "0.56689376", "text": "public static void reloadListePossibilites() {\n\t\tfor (int y = 0; y <= 4; y++) {\n\t\t\tfor (int x = 0; x <= 6; x++) {\n\t\t\t\tif (Partie.getTableDuJeu()[y][x] != null) Plateau.ajouterCoordonneePossible(x, y);\n\t\t\t}\n \t\t}\n\t\tPlateau.determinerFormeDuTapis(cartesJouees);\n\t}", "title": "" }, { "docid": "e5f15502b5ba02d8171292bf53a29589", "score": "0.5667803", "text": "public void SetElements() {\n RefreshTable();\n listComponents.add(_scrollPane);\n }", "title": "" }, { "docid": "2b55b95dce311b476e6da060ee66a0ac", "score": "0.56649405", "text": "public VistaElementoscomunescarrito() {\n // You can initialise any data required for the connected UI components here.\n }", "title": "" }, { "docid": "e20e0433fd087f90137eda993164110a", "score": "0.5662529", "text": "public void init()\n{\nsuper.init();\n\n\n////////////////////////////////////////////////////////////////////////////\n// Déclaration des variables locales au traitement\n// (En WLangage les variables sont encore visibles après la fin du bloc dans lequel elles sont déclarées)\n////////////////////////////////////////////////////////////////////////////\nWDObjet vWD_res = new WDBooleen();\n\n\n\n// res is boolean\n\n\n// res = HExecuteQuery(QRY_Filtro_TomaFisica,hQueryDefault,\"\")\nvWD_res.setValeur(WDAPIHF.hExecuteRequete(WDAPIHF.getRequeteSansCasseNiAccent(\"qry_filtro_tomafisica\"),new WDEntier(0),new WDObjet[] {new WDChaineU(\"\")} ));\n\n// TableDisplay(TABLE_QRY_Filtro_TomaFisica) //NO PUEDE FALTAR\nWDAPITable.tableAffiche(mWD_TABLE_QRY_Filtro_TomaFisica);\n\n// ScreenFirst(EDT_Partida)\nWDAPIDivers.ecranPremier(mWD_EDT_Partida);\n\n}", "title": "" }, { "docid": "e24a7d1a87fe8434e008c72434554713", "score": "0.5659658", "text": "private void setearBasicos() {\n \ttravelsControler.setCostoBasico(precioBasico);\n\t}", "title": "" }, { "docid": "0aa04d21185b5a77642f274bce608bd5", "score": "0.56102604", "text": "void setupElements() {\n client = Mqtt5Client.builder().identifier(UUID.randomUUID().toString()).serverHost(host).buildBlocking();\n btnSpezi = findViewById(R.id.btnSpezi);\n btnASchorle = findViewById(R.id.btnGinTonic);\n btnASchorle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n publish(\"bartender\",\"Apfelschorle\");\n }\n });\n btnSpezi.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n publish(\"bartender\", \"Spezi\");\n }\n });\n\n //Connect to the online broker\n connectToHiveMqttBroker();\n }", "title": "" }, { "docid": "66b2efeb54a8fa141ed2e06529bef082", "score": "0.56052554", "text": "private void _init(){\n\n prefferenceManager = PrefferenceManager.getFeaturePreference(AMCLIST.this);\n\n\n motor_servicing = (LinearLayout) findViewById(R.id.motor_servicing);\n only_servicing = (LinearLayout) findViewById(R.id.only_servicing);\n no_data = (TextView) findViewById(R.id.no_data);\n listview = (ListView) findViewById(R.id.listview);\n\n mToolbar = (Toolbar) findViewById(R.id.toolbar);\n\n setSupportActionBar(mToolbar);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n mToolbar.setTitle(\"AMC List\");\n mToolbar.setNavigationIcon(R.drawable.ic_back);\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\n only_servicing.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n only_servicing.setBackgroundColor(Color.parseColor(\"#1c7768\"));\n motor_servicing.setBackgroundColor(Color.parseColor(\"#d4d4d4\"));\n\n getOnlyServicingList();\n }\n });\n\n motor_servicing.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n motor_servicing.setBackgroundColor(Color.parseColor(\"#1c7768\"));\n only_servicing.setBackgroundColor(Color.parseColor(\"#d4d4d4\"));\n\n getMotorServicingList();\n }\n });\n\n getOnlyServicingList();\n\n\n\n }", "title": "" }, { "docid": "85ad4e114b58a07a8a46e6bf0c5f5bb8", "score": "0.5564922", "text": "void set3A()\n {\n Element boron = new Element( 5, 6, \"http://periodic.lanl.gov/5.shtml\" );\n Element aluminum = new Element( 13, 14, \"http://periodic.lanl.gov/13.shtml\" );\n Element gallium = new Element( 31, 39, \"http://periodic.lanl.gov/31.shtml\" );\n Element indium = new Element( 49, 66, \"http://periodic.lanl.gov/49.shtml\" );\n Element thallium = new Element( 81, 123, \"http://periodic.lanl.gov/81.shtml\" );\n Element nihonium = new Element( 113, 167,\"http://periodic.lanl.gov/113.shtml\" );\n a3.add( boron);\n a3.add( aluminum);\n a3.add( gallium );\n a3.add( indium );\n a3.add( thallium );\n a3.add( nihonium );\n }", "title": "" }, { "docid": "140fcc854c911448be02fa51313c7dcc", "score": "0.55648285", "text": "private void prepareElementos() throws SQLException {\n fondo = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"/Imagenes/transert.jpg\"));\n ArrayList<Salon> laboratorios = frame.ideasServices.getSalones();\n for (Iterator<Salon> iterator = laboratorios.iterator(); iterator.hasNext();) {\n Salon next = iterator.next();\n jComboBox1.addItem(next.getNombre());\n jComboBox2.addItem(next.getNombre());\n }\n }", "title": "" }, { "docid": "0773defc1910fbcd5fe8fd6c59690894", "score": "0.55626535", "text": "private void setElements() {\n\t\t\n\t\tDBAdapter database = new DBAdapter(this);\n\t\tdatabase.open();\n Cursor c = database.getAllCategories();\n \n int i = 0;\n Group2 group = new Group2(\" \" + c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_CATNAME)));\n \tint par_index = Integer.parseInt(c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_CATID)));\n \tCursor s = database.getCategories(par_index);\n \tString parcat = \"Buscar en \" + c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_CATNAME)) + \":\" + par_index;\n \tgroup.children.add(parcat);\n \twhile(s.moveToNext()){\n \t\tgroup.children.add(s.getString(s.getColumnIndexOrThrow(DBAdapter.KEY_CATNAME)) + \":\" + s.getString(s.getColumnIndexOrThrow(DBAdapter.KEY_CATID)));\n \t\t\n \t}\n \tgroups.append(i, group);\n i++;\n \n while(c.moveToNext()){\n \tgroup = new Group2(\" \" + c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_CATNAME)));\n \tpar_index = Integer.parseInt(c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_CATID)));\n \ts = database.getCategories(par_index);\n \tparcat = \"Buscar en \" + c.getString(c.getColumnIndexOrThrow(DBAdapter.KEY_CATNAME)) + \":\" + par_index;\n \tgroup.children.add(parcat);\n \twhile(s.moveToNext()){\n \t\tgroup.children.add(s.getString(s.getColumnIndexOrThrow(DBAdapter.KEY_CATNAME)) + \":\" + s.getString(s.getColumnIndexOrThrow(DBAdapter.KEY_CATID)));\n \t\t\n \t}\n \tgroups.append(i, group);\n \ti++;\n }\n\t\tdatabase.close();\n\t\t\n\t\tImageButton btn_addfav = (ImageButton)findViewById(R.id.btn_add_favorite);\n\t\tbtn_addfav.setVisibility(ImageButton.GONE);\n\t\t\n\t\tImageButton btn_prizes = (ImageButton)findViewById(R.id.btn_prizes3);\n\t\tbtn_prizes.setVisibility(ImageButton.GONE);\n\t}", "title": "" }, { "docid": "59f2e2f7d573aa53a37e9645eae2d39a", "score": "0.5557303", "text": "public void inicializaLargada(){\n\t\t\n\t\tfor (int i = 1; i < jogadores.getJogadores().size(); i++)\n\t\t\tjogadores.getJogadores().get(i).setJogPosicao(tabuleiro.posicaoStart());\n\t\t\n\t}", "title": "" }, { "docid": "9188ea31224df74840944456ec72a163", "score": "0.55566424", "text": "private void Initialise()\n {\n classlable.setVisible(false);\n classfield.setVisible(false);\n \n model=(DefaultTableModel) jTable1.getModel();\n //Create list of element for input argument\n createlist();\n }", "title": "" }, { "docid": "2e2b059bc85be50ef733e8f30c6f49fd", "score": "0.5552617", "text": "@FXML\r\n\tpublic void initialize() {\r\n\t\t// UN STAGE VA DE 1 └ 6 MOIS\r\n\t\tfor (int i = 1; i < 7; i++) {\r\n\t\t\tduree.getItems().add(i);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entreprise e : Main.gst.importEnt()) {\r\n\t\t\tif (e.getIDEntreprise().equals(Main.gst.getId())) {\r\n\t\t\t\tnomDeL_Entreprise.setText(e.getNomEnt());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e9a50d63965f75df1fd3b81ae0d84981", "score": "0.5532413", "text": "private void fill_liste_cercle() {\n for (int i = 0; i < NOMBRE_COTE; i++) {\n if (i == DROITE || i == GAUCHE) {\n if (!tab_bordure[i].getEst_plat()) {\n Collections.reverse(tab_bordure[i].liste_cercle);\n Collections.reverse(tab_bordure[i].liste_cercle_controle);\n }\n }\n if (niveau == 5) {\n if (i % 2 == 0) { // HAUT et BAS -> 0 et 2\n setListOnListAll(tab_bordure[i]);\n }else{\n setListOnListNFL(tab_bordure[i]);\n }\n }else{\n setListOnList(tab_bordure[i]);\n }\n }\n //dernier point == premier point donc ajoute le tout premier point en plus\n this.liste_cercle.add(this.liste_cercle.get(0));\n }", "title": "" }, { "docid": "567dd40087ba73bd5493fd63397f4031", "score": "0.5518677", "text": "void set2A()\n {\n Element beryllium = new Element( 4, 5, \"http://periodic.lanl.gov/4.shtml\" );\n Element magnesium = new Element( 12, 12, \"http://periodic.lanl.gov/12.shtml\" );\n Element calcium = new Element( 20, 20, \"http://periodic.lanl.gov/20.shtml\" );\n Element strontium = new Element( 38, 50, \"http://periodic.lanl.gov/38.shtml\" );\n Element barium = new Element( 56, 81, \"http://periodic.lanl.gov/56.shtml\" );\n Element radium = new Element( 88, 138, \"http://periodic.lanl.gov/88.shtml\" );\n a2.add( beryllium );\n a2.add( magnesium );\n a2.add( calcium );\n a2.add( strontium );\n a2.add( barium );\n a2.add( radium );\n }", "title": "" }, { "docid": "6489a4034a22a21e9046b2737ed4ee4d", "score": "0.55130374", "text": "private void initialize() {\n\t\tcontrolador=new Controlador();\n\t\tcrearFrame();\n\n//-----\tETIQUETAS -------------\t\t\t\n\t\tcreaEVertices(); \n\t\tcreaEAristas();\n\t\tcreaEOrigen();\n\t\tcreaEDestino();\n\t\tcreaEAristas2();\n\t\tcreaEVertices2();\n\t\tcreaEOpciones(); \n\t\tcreaEGrafo();\n\t\tcreaEDestino2();\n\t\tcreaEOrigen2();\n\t\tcreaELoop();\n\t\tcreaEVertice();\n\t\t\n//----- CAJAS DE TEXTO-------------\t\t\n\t\tcreaCOrigen();\n\t\tcreaCDestino();\n\t\tcreaCOrigenEliminar();\n\t\tcreaCDestinoEliminar();\n\t\tcrearCVertice();\n\n//----- BOTONES -------------\t\n\t\tcrearBotonAgregarArista();\n\t\tcrearBotonEliminarArista();\n\t\tcrearBotonGrafoOp1();\n\t\tcrearBotonGrafoOp2(); \n\t\tcrearBotonGrafoOp4();\n\t\tcrearBotonGrafoOp3();\n\t\tcrearBotonCdm();\n\t\tcreaBotonAgregarVertice();\n\t}", "title": "" }, { "docid": "435de87f399bc80b06e7f2cd7808cfdc", "score": "0.5510008", "text": "public void setup(){\n for (int i =0; i<this.jeu.getGrille().getNC(); i++){\n for (int j =0; j<this.jeu.getGrille().getNL(); j++){\n this.add(new Case(this.jeu.getGrille().getGrille()[i][j]));\n }\n }\n }", "title": "" }, { "docid": "1b57413a23ad8ec3d125c5a6f4d94abe", "score": "0.55097055", "text": "public void robotInit() {\n \tcontrolLoop.addLoopable(driveTrain);\n \tcontrolLoop.addLoopable(manipulator);\n\n\t operationModeChooser = new SendableChooser();\n\t operationModeChooser.addDefault(\"Test\", OperationMode.TEST);\n\t operationModeChooser.addObject(\"Competition\", OperationMode.COMPETITION);\n\t\tSmartDashboard.putData(\"Operation Mode\", operationModeChooser);\n\t\t\n\t\tmanipulatorChooser = new SendableChooser();\n\t\tmanipulatorChooser.addDefault(\"Portcullis\", Manipulator.Attachment.PORTCULLIS);\n\t\tmanipulatorChooser.addObject(\"Cheval de Frise\", Manipulator.Attachment.CHEVAL_DE_FRISE);\n\t\tSmartDashboard.putData(\"Manipulator\", manipulatorChooser);\n\t\t\n\t\tautonPositionChooser = new SendableChooser();\n\t\tautonPositionChooser.addObject(\"Spy\", AutonPosition.SPY);\n\t\tautonPositionChooser.addDefault(\"Low bar\", AutonPosition.LOW_BAR);\n\t\tautonPositionChooser.addObject(\"Position 2\", AutonPosition.TWO);\n\t\tautonPositionChooser.addObject(\"Position 3\", AutonPosition.THREE);\n\t\tautonPositionChooser.addObject(\"Position 4\", AutonPosition.FOUR);\n\t\tautonPositionChooser.addObject(\"Position 5\", AutonPosition.FIVE);\n\t\tautonPositionChooser.addObject(\"Position 6\", AutonPosition.SIX);\n\t\tSmartDashboard.putData(\"AutonPosition\", autonPositionChooser);\n\t\t\n\t\tautonDefenseChooser = new SendableChooser();\n\t\tautonDefenseChooser.addObject(\"Spy\", AutonDefense.SPY);\n\t\tautonDefenseChooser.addDefault(\"Low bar\", AutonDefense.LOW_BAR);\n\t\tautonDefenseChooser.addObject(\"Portcullis\", AutonDefense.PORTCULLIS);\n\t\tautonDefenseChooser.addObject(\"Cheval de Frise\", AutonDefense.CDF);\n\t\tautonDefenseChooser.addObject(\"Ramparts\", AutonDefense.RAMPARTS);\n\t\tautonDefenseChooser.addObject(\"Moat\", AutonDefense.MOAT);\n\t\tautonDefenseChooser.addObject(\"Rockwall\", AutonDefense.ROCKWALL);\n\t\tautonDefenseChooser.addObject(\"Rough Terrain\", AutonDefense.ROUGH_TERRAIN);\n\t\tSmartDashboard.putData(\"AutonDefense\", autonDefenseChooser);\n\t\t\t\t\n\t\tautonTaskChooser = new SendableChooser();\n\t\tautonTaskChooser.addDefault(\"Shoot left high\", AutonTask.SHOOT_LEFT_HIGH);\n\t\tautonTaskChooser.addObject(\"Shoot center high\", AutonTask.SHOOT_CENTER_HIGH);\n\t\tautonTaskChooser.addObject(\"Shoot right high\", AutonTask.SHOOT_RIGHT_HIGH);\n\t\tautonTaskChooser.addObject(\"Cross and return\", AutonTask.CROSS_AND_RETURN);\n\t\tSmartDashboard.putData(\"AutonTask\", autonTaskChooser);\n\n\t\tsetupAutonTable();\n\t\t\n\t\tupdateStatus();\n }", "title": "" }, { "docid": "f02b57684b8e6e1fd5594b615c587d8a", "score": "0.55083764", "text": "public void genererFichierVoitures(){\n Element racine = new Element(\"Voitures\");\n Document document = new Document(racine);\n for(Voiture v : this.lesVoituresExistantes){\n Element voiture = new Element(\"Voiture\");\n Element numV = new Element(\"Num_Voiture\").setText(Integer.toString(v.getNumVoiture()));\n voiture.addContent(numV);\n Element couleur = new Element(\"Couleur_voiture\").setText(v.getCouleur());\n voiture.addContent(couleur);\n Element nbTours = new Element(\"nb_tours_relai\").setText(Integer.toString(v.getNbToursParRelai()));\n voiture.addContent(nbTours);\n Element active = new Element(\"Voiture_active\").setText(Boolean.toString(v.getVoitureActive()));\n voiture.addContent(active);\n //test if à enlever\n Element piloteAct;\n if(v.getPiloteActuel()!=null){\n piloteAct = new Element(\"Pilote_actuel\").setText(v.getPiloteActuel().getNom()+\"-\"+v.getPiloteActuel().getPrenom());\n }\n else{\n piloteAct = new Element(\"Pilote_actuel\").setText(\"null\");\n }\n voiture.addContent(piloteAct);\n //liste des pilotes\n Element pilotes = new Element(\"Les_pilotes\");\n for(Pilote p : v.getListP()){\n Element idPilote = new Element(\"nomP-PrenomP\").setText(p.getNom()+\"-\"+p.getPrenom());\n pilotes.addContent(idPilote);\n }\n voiture.addContent(pilotes);\n racine.addContent(voiture);\n }\n \n String fic = path+\"/listeVoitures.xml\";\n creerFichier(fic,document);\n }", "title": "" }, { "docid": "485cbf0ba313d5fc435f437572895827", "score": "0.54933184", "text": "private void \n\t_Setup_SetList() {\n\n\t\t// photo\n\n\t\t////////////////////////////////\n\t\tTextView tv_Color = \n\t\t\t\t(TextView) this.findViewById(R.id.actv_sensors_2_tv_photo_color);\n\t\t\n\t\ttv_Color.setBackgroundColor(Color.rgb(0, 0, 255));\n\t\t\n//\t\tTextView tv_Photo = (TextView) findViewById(R.id.actv_sensors_2_tv_photo_val);\n\t\t\n\t\t\n//\t\tString[] choices = {\n////\t\t\t\tactv.getString(R.string.dlg_db_admin_item_exec_sql),\n//\t\t\t\t\n//\t\t\t\tthis.getString(R.string.actv_sensors_photo),\n//\t\t\t\tthis.getString(R.string.actv_sensors_magnetic),\n//\t\t\t\tthis.getString(R.string.actv_sensors_temp),\n//\t\t\t\t\n//\t\t};\n//\t\t\n//\t\tList<String> list = new ArrayList<String>();\n//\t\t\n//\t\tfor (String item : choices) {\n//\t\t\t\n//\t\t\tlist.add(item);\n//\t\t\t\n//\t\t}\n//\t\t\n//\t\t////////////////////////////////\n//\n//\t\t// adapter\n//\n//\t\t////////////////////////////////\n//\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n//\t\t\t\tthis,\n////\t\t\t\tR.layout.dlg_db_admin,\n////\t\t\t\tandroid.R.layout.simple_list_item_1,\n//\t\t\t\tR.layout.list_row_simple_1,\n//\t\t\t\tlist\n//\t\t\t\t);\n//\n//\t\tListView lv = this.getListView();\n//\t\t\n//\t\tlv.setAdapter(adapter);\n\t\t\n\t}", "title": "" }, { "docid": "29a523c050bb2e4d117499caa445f2ee", "score": "0.5470794", "text": "private void fillCentriVaccinali(){\n List<String> centriVaccinali = getCentriVaccinaliList();\n \n for(int i=0; i<centriVaccinali.size(); i++){\n centroVaccinale_RegistrazioneCittadino.addItem(centriVaccinali.get(i));\n }\n }", "title": "" }, { "docid": "e06631c0bbfb9937cf498596f7e8ebdf", "score": "0.54662234", "text": "private void initElements() {\n title = driver.getTitle().toString();\r\n registrationButton = driver.findElement(By.cssSelector(\".navbar.navbar-default.navbar-static-top .blue_btn\"));\r\n loginButton = driver.findElement(By.cssSelector(\".navbar.navbar-default.navbar-static-top .transp_white_btn\"));\r\n }", "title": "" }, { "docid": "4cf48963d48ad501aa6ff242aa404998", "score": "0.54637814", "text": "public void prepare_local() throws Exception {\n\t\tbean=new Tdsperquisites();\r\n\t\tbean.setMenuCode(729);\r\n\r\n\t}", "title": "" }, { "docid": "ddcd96185c190f776d97f830e95fc520", "score": "0.5462122", "text": "void initProperties() {\n mModel = new String[]{\"R-DOOR\",\"SLOCK\"};\n buttonWifi = findViewById(R.id.buttonWifi);\n linearLayoutMain = findViewById(R.id.linearLayoutmain);\n mMemory = new MyDataMemory();\n\n mapImage = new HashMap<>();\n\n buttonWifi.setOnClickListener(this);\n }", "title": "" }, { "docid": "ee7173deaea3e4c60f03aaed0ea92471", "score": "0.5459644", "text": "private void create_componentes() {\n\t\tInterfaceDinamica interfaceDinamica = new InterfaceDinamica(getActivity());\n\t\t\n\t\ttry {\n\t\t\tsuperficies=dm.getOT_Aperturas_superficieAll();\t\t\n\t\t\tUtil.Log(\"superficies=>\"+superficies.length);\n\t\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Nro Ord. Trabajo \"+confirmar.getOt_relacionada().getTitulo()));\t\n\t\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\n\t\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Trabajos Ejecutados:\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tUtil.Log(\"error=>\"+e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<confirmar.getTrabajos_ejecutados().size();i++){\n\t\t\tCheckBox chk =interfaceDinamica.get_check_box(confirmar.getTrabajos_ejecutados().get(i).getId_servicio() + \"-\"+confirmar.getTrabajos_ejecutados().get(i).getDesc_servicio());\n\t\t\tchk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tString s=(String) arg0.getText();\n\t\t\t\t\tint c=s.indexOf(\"-\");\n\t\t\t\t\tif(c>0){\n\t\t\t\t\t\t//Utils.showDialog(getActivity(), \"Esta por eliminar este item \"+arg0.getText() );\n\t\t\t\t\t\tconfirmar.borrar_trabajos_ejecutados(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\tborrar_items();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}});\n\t\t\tly.addView(chk);\n\n\t\t}\n\t\t\t\t\n\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\n\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Mano de Obra:\"));\n\t\t\n\t\tfor(int i=0;i<confirmar.getOperarios().size();i++){\t\t\n\t\t\t CheckBox chk = interfaceDinamica.get_check_box(confirmar.getOperarios().get(i).getId()+\"-\"+confirmar.getOperarios().get(i).getNombre());\n\t\t\t chk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tString s=(String) arg0.getText();\n\t\t\t\t\tint c=s.indexOf(\"-\");\n\t\t\t\t\tif(c>0){\n\t\t\t\t\t\t//Utils.showDialog(getActivity(), \"Esta por eliminar este item \"+arg0.getText() );\n\t\t\t\t\t\tconfirmar.borrar_operario(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\t//dm.delete_operario(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\t//confirmar= dm.getObjectConfirmacion();\n\t\t\t\t\t\tOperarioList op=new OperarioList();\n\t\t\t\t\t\top.data=confirmar.getOperarios();\n\t\t\t\t\t\tdm.setOperariosActuales(op);\n\t\t\t\t\t\tconfirmar= dm.getObjectConfirmacion();\n\t\t\t\t\t\tborrar_items();\n\t\t\t\t\t}\n\t\t\t\t}});\n\t\t\t \n\t\t\t ly.addView(chk);\n\t\t}\n\t\t\n\t\t\n\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\n\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Movilidad/Equipos:\"));\n\t\t\n\t\tfor(int i=0;i<confirmar.getEquipos().size();i++){\t\n\t\t\tCheckBox chk = interfaceDinamica.get_check_box(confirmar.getEquipos().get(i).getId()+\"-\"+ confirmar.getEquipos().get(i).getDescripcion());\n\t\t\tchk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\tString s=(String) arg0.getText();\n\t\t\t\t\t\tint c=s.indexOf(\"-\");\n\t\t\t\t\t\tif(c>0){\n\t\t\t\t\t\t\t//Utils.showDialog(getActivity(), \"Esta por eliminar este item \"+arg0.getText() );\n\t\t\t\t\t\t\tconfirmar.borrar_equipo(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\t\tborrar_items();\n\t\t\t\t\t\t}\n\t\t\t\t\t}});\n\t\t\tly.addView(chk);\n\t\t}\n\t\n\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\t\n\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Aperturas:\"));\n\t\tfor(int i=0;i<confirmar.getAperturas_calzada().size();i++){\n\t\t\tif(confirmar.getAperturas_calzada().get(i).getTipo_apertura().contains(\"C\")){\t\t\t\t\n\t\t\t\tly.addView(interfaceDinamica.get_label(\"Tipo\", \"Calzada\"));\n\t\t\t}else{\n\t\t\t\tly.addView(interfaceDinamica.get_label(\"Tipo\", \"Vereda\"));\n\t\t\t}\n\t\t\tly.addView(interfaceDinamica.get_label(\"Ancho\" , confirmar.getAperturas_calzada().get(i).getAncho()));\t\t\t\t\t\t\n\t\t\tly.addView(interfaceDinamica.get_label(\"Largo\" , confirmar.getAperturas_calzada().get(i).getLargo()));\n\t\t\tly.addView(interfaceDinamica.get_label(\"Profundidad\", confirmar.getAperturas_calzada().get(i).getProfundidad()));\t\t\t\t\t\t\n\t\t\tly.addView(interfaceDinamica.get_label(\"Material\", superficies[(int)confirmar.getAperturas_calzada().get(i).getId_tipo_material()].getDescripcion()));\t\t\t\n\t\t\t\t\t\t\n\t\t\tCheckBox chk = interfaceDinamica.get_check_box(confirmar.getAperturas_calzada().get(i).get_id()+\"-N\");\n\t\t\tchk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\t\t\t\t@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\t\n\t\t\t\t\tString s=(String) arg0.getText();\n\t\t\t\t\tint c=s.indexOf(\"-\");\n\t\t\t\t\t\n\t\t\t\t\tif(c>0){\t\t\t\t\t\t\n\t\t\t\t\t\t//confirmar.borrar_aperturas_calzada(Integer.parseInt(s.substring(0, c)));\t\t\t\t\t\t\n\t\t\t\t\t\t//Utils.showDialog(getActivity(),\"Borrar:\"+Integer.parseInt(s.substring(0, c)) );\n\t\t\t\t\t\tdm.delete_apertura(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\tconfirmar= dm.getObjectConfirmacion();\n\t\t\t\t\t\t//borrar_el_item(arg0.getId());\n\t\t\t\t\t\tborrar_items();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tly.addView(chk);\n\t\t\tly.addView(interfaceDinamica.get_linea_item());\t\n\t\t}\n\t\t\n\t\t\n\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\t\n\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Materiales:\"));\n\t\tfor(int i=0;i<confirmar.getMateriales().size();i++){\t\t\t\n\t\t\tCheckBox chk = interfaceDinamica.get_check_box(confirmar.getMateriales().get(i).getId()+\"-\"+ confirmar.getMateriales().get(i).getMaterialesot());\n\t\t\tchk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tString s=(String) arg0.getText();\n\t\t\t\t\tint c=s.indexOf(\"-\");\n\t\t\t\t\tif(c>0){\n\t\t\t\t\t\tconfirmar.borrar_materiales(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\tborrar_items();\n\t\t\t\t\t}\n\t\t\t\t}});\n\t\t\tly.addView(chk);\n\t\t\tly.addView(interfaceDinamica.get_label(\"Cantidad\",confirmar.getMateriales().get(i).getCantidad() ));\n\t\t\n\t\t}\n\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\t\n\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Respuesta:\"));\n\t\tUtil.Log(\"id res=>\"+confirmar.getId_res());\n\t\tif(confirmar.getId_res()!=0){\n\t\t\tRespuestasot respuesta=dm.getRespuestaOne(confirmar.getId_res());\n\t\t\tif(respuesta!=null){\n\t\t\t\tCheckBox chk = interfaceDinamica.get_check_box(respuesta.getDesc_res());\n\t\t\t chk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tdm.RESPUESTA_ULTIMA_SET(getActivity(),0);\n\t\t\t\t\t\n\t\t\t\t}});\n\t\t\t ly.addView(chk);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tly.addView(interfaceDinamica.get_espacio_en_blanco());\t\n\t\tly.addView(interfaceDinamica.get_linea_secciones());\t\n\t\tly.addView(interfaceDinamica.get_titulo_seccion(\"Finalizacion/Proxima Orden Trabajo:\"));\n\t\t\n\t\tfor(int i=0;i<confirmar.getDerivacionesot().size();i++){\n\t\t\tCheckBox chk = interfaceDinamica.get_check_box(confirmar.getDerivacionesot().get(i).getId_mot_prox() +\"-\"+ confirmar.getDerivacionesot().get(i).getDesc_motivo());\n\t\t\tchk.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(){\n\t\t\t\t@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\t\n\t\t\t\t\tString s=(String) arg0.getText();\n\t\t\t\t\tint c=s.indexOf(\"-\");\n\t\t\t\t\tif(c>0){\n\t\t\t\t\t\tconfirmar.borrar_derivaciones_ot(Integer.parseInt(s.substring(0, c)));\n\t\t\t\t\t\tborrar_items();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tly.addView(chk);\n\t\t\t\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "ffbba4614dd6bcef1fe4c6e63e41279c", "score": "0.5458797", "text": "@RequiresApi(api = Build.VERSION_CODES.M)\n void initButton(String[] models) {\n\n for (String item : models) {\n //TODO: lay du lieu tu bo nho\n String tempString = mMemory.Get(this,item);\n if (tempString != null) {\n //TODO: add button and set event\n final Button button = MyButton.BasicButton(this,item,mapImage.get(item));\n linearLayoutMain.addView(button);\n\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(!IsEnabled)\n {\n String model = button.getText().toString();\n showActivity(model);\n }\n else\n {\n Toast.makeText(MainActivity.this, \"You must connect wifi kit\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }\n\n }", "title": "" }, { "docid": "278a6184fc4d563db13fd65512ea3f9f", "score": "0.5453996", "text": "private void inicializaElementos()\r\n {\r\n consultaHistoricoPanelTodo= new JPanel();\r\n \r\n consultaHistoricoPanelTodo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n aceptarJButton = new JButton(I18N.get(\"RegistroExpedientes\",\r\n \"Catastro.RegistroExpedientes.ConsultarHistorico.aceptarJButton\"));\r\n aceptarJButton.addActionListener(new ActionListener()\r\n {\r\n public void actionPerformed(java.awt.event.ActionEvent evt)\r\n {\r\n aceptarJButtonActionPerformed();\r\n }\r\n });\r\n\r\n inicializaTablaConsultarHistorico();\r\n\r\n consultaHistoricoPanelTodo.add(aceptarJButton,new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 330, 100, 30));\r\n consultaHistoricoPanelTodo.setPreferredSize(new Dimension(520,400));\r\n getContentPane().add(consultaHistoricoPanelTodo);\r\n setSize(new Dimension(530,410));\r\n this.setMaximizable(false);\r\n int w=(this.desktop.getWidth()/2)- (this.getWidth()/2);\r\n int d= (this.desktop.getHeight()/2) - (this.getHeight()/2)-30;\r\n this.setLocation(w,d);\r\n this.setMaximumSize(new Dimension(530,410));\r\n setTitle(I18N.get(\"RegistroExpedientes\",\r\n \"Catastro.RegistroExpedientes.MainCatastro.consultarHistoricoMenuItem\"));\r\n }", "title": "" }, { "docid": "624ec226c0a7f2fdc6e64a9481334f29", "score": "0.5452736", "text": "private void inicializarComponentes() {\n\n cpNomecompleto = findViewById(R.id.cpNomeCompleto);\n cpEnderecoCompleto = findViewById(R.id.cpEnderecoCompleto);\n\n\n }", "title": "" }, { "docid": "a500d7fd79f9c29f460ab3ec1adb1ded", "score": "0.5443638", "text": "@Override\n public void setMuodostelma() {\n \n super.getMuodostelma().alustaMuodostelma();\n\n List<Maalivahtivertailu> maalivahdit = this.maalivahtienVertailu();\n List<Puolustajavertailu> puolustajat = this.puolustajienVertailu();\n List<Keskikenttavertailu> keskikenttapelaajat = this.keskikenttaVertailu();\n List<Hyokkaajavertailu> hyokkaajat = this.hyokkaajienVertailu();\n\n int puolustajia = 0;\n int keskikenttapelaajia = 0;\n int hyokkaajia = 0;\n Random arpoja = new Random();\n\n this.lisaaMaalivahti(maalivahdit);\n\n while (puolustajia + keskikenttapelaajia + hyokkaajia < 7) {\n\n int pelipaikka = arpoja.nextInt(3);\n\n if (pelipaikka == 0 && puolustajia < 3) {\n\n this.lisaaPuolustaja(puolustajat, arpoja);\n puolustajia++;\n } else if (pelipaikka == 1 && keskikenttapelaajia < 3) {\n\n this.lisaaKeskikenttapelaaja(keskikenttapelaajat, arpoja);\n keskikenttapelaajia++;\n } else if (pelipaikka == 2 && hyokkaajia < 1) {\n\n this.lisaaHyokkaaja(hyokkaajat, arpoja);\n hyokkaajia++;\n }\n }\n\n while (puolustajia + keskikenttapelaajia + hyokkaajia < 10) {\n\n int pelipaikka = arpoja.nextInt(3);\n\n if (pelipaikka == 0 && puolustajia < 5) {\n\n this.lisaaPuolustaja(puolustajat, arpoja);\n puolustajia++;\n } else if (pelipaikka == 1 && keskikenttapelaajia < 5) {\n\n this.lisaaKeskikenttapelaaja(keskikenttapelaajat, arpoja);\n keskikenttapelaajia++;\n } else if (pelipaikka == 2) {\n\n this.lisaaHyokkaaja(hyokkaajat, arpoja);\n hyokkaajia++;\n }\n }\n\n }", "title": "" }, { "docid": "506dcd47d90d4e48d69c03116c72d6f1", "score": "0.54237443", "text": "public void init() {\n // initialisation de la matrice des couleurs\n Arrays.fill(mCouleurs, mFond);\n mSuspendu = false;\n }", "title": "" }, { "docid": "9decd63e1e6eca6536d54323210184d2", "score": "0.54209715", "text": "private void inicializarComponentes() {\n edtText = findViewById(R.id.edtText);\n btnGenerar = findViewById(R.id.btnGenerar);\n miQR = findViewById(R.id.imgQR);\n }", "title": "" }, { "docid": "5ba4bcab85968e21664f0d01187500b9", "score": "0.54181135", "text": "public void loadModeElements() {\n ConstraintLayout layout = (ConstraintLayout) home.findViewById(R.id.hud_layout);\n List<TextView> elements;\n for(ModeElement hudItem: hudItems) {\n Position itemPosition = hudItem.getPosition();\n Format elementFormat = getFormat(hudItem);\n if(elementFormat != null) {\n List<String> huds = itemPosition.getScreen();\n\n for(String hud: huds) {\n switch(hud.toLowerCase()) {\n case \"hud1\":\n elements = hud1.addItemToGrid(hudItem, elementFormat);\n if(elements != null) {\n addElementToLayout(layout, elements);\n viewsHud1.add(new IdMapper(itemPosition, setElementsIds(elements)));\n }\n break;\n case \"hud2\":\n elements = hud2.addItemToGrid(hudItem, elementFormat);\n if(elements != null) {\n addElementToLayout(layout, elements);\n setElementsIds(elements);\n viewsHud2.add(new IdMapper(itemPosition, setElementsIds(elements)));\n\n elements = hud3.addItemToGrid(hudItem, elementFormat);\n addElementToLayout(layout, elements);\n setElementsIds(elements);\n viewsHud3.add(new IdMapper(itemPosition, setElementsIds(elements)));\n }\n break;\n\n case \"hud3\":\n elements = hud3.addItemToGrid(hudItem, elementFormat);\n if(elements != null) {\n addElementToLayout(layout, elements);\n setElementsIds(elements);\n viewsHud3.add(new IdMapper(itemPosition, setElementsIds(elements)));\n\n elements = hud2.addItemToGrid(hudItem, elementFormat);\n addElementToLayout(layout, elements);\n setElementsIds(elements);\n viewsHud2.add(new IdMapper(itemPosition, setElementsIds(elements)));\n }\n break;\n\n case \"hud4\":\n elements = hud4.addItemToGrid(hudItem, elementFormat);\n if(elements != null) {\n addElementToLayout(layout, elements);\n setElementsIds(elements);\n viewsHud4.add(new IdMapper(itemPosition, setElementsIds(elements)));\n }\n\n break;\n }\n\n }\n }\n }\n }", "title": "" }, { "docid": "dea81bd2680435b5dec81a1ab259497d", "score": "0.54167664", "text": "public final void initElements() {\n\n new FrameToFile(this, btnClose);\n new UColor();\n\n TableFieldFilter filterTable = new TableFieldFilter(0, tab2, tab3, tab4, tab5, tab7);\n south.add(filterTable, 0);\n filterTable.getTxt().grabFocus();\n\n panDesign.add(scene, java.awt.BorderLayout.CENTER);\n UGui.setDocumentFilter(3, txt17, txt22, txt23, txt24, txt26);\n List.of(btnIns, btnDel, btnRef).forEach(b -> b.addActionListener(l -> UGui.stopCellEditing(tab2, tab3, tab4, tab5)));\n DefaultTreeCellRenderer rnd = (DefaultTreeCellRenderer) sysTree.getCellRenderer();\n rnd.setLeafIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img16/b038.gif\")));\n rnd.setOpenIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img16/b007.gif\")));\n rnd.setClosedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img16/b006.gif\")));\n DefaultTreeCellRenderer rnd2 = (DefaultTreeCellRenderer) winTree.getCellRenderer();\n rnd2.setLeafIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img16/b038.gif\")));\n rnd2.setOpenIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img16/b007.gif\")));\n rnd2.setClosedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img16/b006.gif\")));\n sysTree.getSelectionModel().addTreeSelectionListener(tse -> selectionTree1());\n winTree.getSelectionModel().addTreeSelectionListener(tse -> selectionTree2());\n tab4.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent event) {\n if (event.getValueIsAdjusting() == false) {\n UGui.setSelectedIndex(tab7, UGui.getIndexRec(tab4));\n }\n }\n });\n tab7.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent event) {\n if (event.getValueIsAdjusting() == false) {\n UGui.setSelectedIndex(tab4, UGui.getIndexRec(tab7));\n }\n }\n });\n tab5.getSelectionModel().addListSelectionListener(it -> selectionTab5());\n DefaultTreeModel model = (DefaultTreeModel) winTree.getModel();\n ((DefaultMutableTreeNode) model.getRoot()).removeAllChildren();\n model.reload();\n }", "title": "" }, { "docid": "e0ad28f75577dfc8ef811d70c884f672", "score": "0.5404474", "text": "private void inicializarAyuda() {\r\n\r\n\t this.setAyudaAciertos(new ArrayList<String>());\r\n\t this.setAyudaGral(new ArrayList<String>());\r\n\t this.setAyudaIntercambios(new ArrayList<String>());\r\n\t this.setAyudaSeleccion(new ArrayList<String>());\r\n\t this.getAyudaAciertos().add(\"Introduce el valor del \\n\" +\r\n\t\t \t\t\"símbolo que consideres correcto, \\n\"\r\n\t\t\t\t+\"teniendo como guía la \\n\" \r\n\t\t\t +\"sumatoria de filas y columnas.\\n\"+\r\n\t\t \t\t\"Este valor se encuentra \\n\" +\r\n\t\t \t\t\"en un rango de valores \\n\" +\r\n\t\t \t\t\"del 0 al 10.\");\r\n\t\t this.getAyudaAciertos().add(\"/Imagenes/AyudaAciertos.jpg\");\r\n\t\t this.getAyudaGral().add(\"Cada símbolo del tablero tiene \\n\" +\r\n\t\t \t\t\"un valor, en cada fila y columna\\n\" +\r\n\t\t \t\t\"se muestra la sumatoria de estos.\\n\" +\r\n\t\t \t\t\"Se pueden intercambiar, y se \\n\" +\r\n\t\t \t\t\"actualizaran los valores de las\\n\" +\r\n\t\t \t\t\"sumatorias, teniendo como \\n\" +\r\n\t\t \t\t\"obstaculo una pregunta. \\n\" + \r\n\t\t \t\t\"Finalizara la partida\\n\" +\r\n\t\t \t\t\"actual del juego, cuando se logre\\n\" +\r\n\t\t \t\t\"descubrir el valor de los 5 \\n\" +\r\n\t\t \t\t\"símbolos antes de que se \\n\" +\r\n\t\t \t\t\"terminen las 5 vidas. \\n\");\r\n\t\t this.getAyudaGral().add(\"/Imagenes/AyudaGral.jpg\");\r\n\t\t this.getAyudaIntercambios().add(\"Debes seleccionar dos símbolos, \\n\" +\r\n\t\t \t\t\"teniendo en cuenta que en una \\n\" +\r\n\t\t \t\t\"fila o columna no debe haber \\n\" +\r\n\t\t \t\t\"más de 3 símbolos iguales.\\n\" +\r\n\t\t \t\t\"El intercambio se efectuará \\n\" +\r\n\t\t \t\t\"si respondes correctamente \\n\" +\r\n\t\t \t\t\"la pregunta que aparecera, \\n\" +\r\n\t\t \t\t\"de lo contrario perderás una vida.\\n\");\r\n\t\t this.getAyudaIntercambios().add(\"/Imagenes/AyudaIntercambio.jpg\");\r\n\t\t this.getAyudaSeleccion().add(\"Seleccionaras un símbolo \\n\" +\r\n\t\t \t\t\"haciendo un click con el \\n\" +\r\n\t\t \t\t\"mouse sobre el mismo, \\n\" +\r\n\t\t \t\t\"este se coloreara en verde,\\n\" +\r\n\t\t \t\t\"y para deseleccionarlo has \\n\" +\r\n\t\t \t\t\"otro click sobre el mismo.\\n\");\r\n\t\t this.getAyudaSeleccion().add(\"/Imagenes/AyudaSeleccion.jpg\");\r\n\r\n\t\t}", "title": "" }, { "docid": "149f4f9ad8249249b16c7cc082af2792", "score": "0.5399659", "text": "public void setListData(List<XmlSiniestros> values) {\n\n mAdapter = new AdapterEstadoSiniestro(values);\n mRecyclerView.setAdapter(mAdapter);\n mAdapter.SetOnItemClickListener(new OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position) {\n\n /* final String generic_field_1 = ((TextView) view.findViewById(R.id.generic_field_1)).getText().toString();\n final String generic_field_2 = ((TextView) view.findViewById(R.id.generic_field_2)).getText().toString();\n final String generic_field_3 = ((TextView) view.findViewById(R.id.generic_field_3)).getText().toString();\n final String generic_field_4 = ((TextView) view.findViewById(R.id.generic_field_4)).getText().toString();\n final String generic_field_5 = ((TextView) view.findViewById(R.id.generic_field_5)).getText().toString();\n\n Bundle bundleProyecto = new Bundle();\n bundleProyecto.putString(\"FIELD_PARTIDO_NOMBRE\", generic_field_1);\n bundleProyecto.putString(\"FIELD_PARTIDO_DESC\", generic_field_2);\n bundleProyecto.putString(\"FIELD_DESC_CORTA\", generic_field_3);\n bundleProyecto.putString(\"FIELD_DESC_LARGA\", generic_field_4);\n bundleProyecto.putString(\"FIELD_IMAGEN\", generic_field_5);*/\n\n\n }\n });\n\n }", "title": "" }, { "docid": "02bbcc3772f53ea99b8b8a98b0f61fcf", "score": "0.53974587", "text": "private void fill_tab_bordure(ArrayList<Forme_Bordure> liste_bordure, double hauteur, double longueur) {\n for (int i = 0; i < NOMBRE_COTE; i++) {\n if (liste_bordure.get(i) == null) {\n //si pas de contrainte alors on met une dent\n // ou un creux mais pas de bordure plate --- pcq pas de bord\n tab_bordure[i] = randoms_Bordure(i, hauteur , longueur,liste_bordure);\n gestion_placement(tab_bordure[i],i);\n } else if (liste_bordure.get(i).getClass() == Dents.class) {\n //Main.consumer.accept(\"listebordure.get(i).class == Dents\");\n ArrayList<Circle> liste1 = liste_bordure.get(i).getListe_cercle();\n ArrayList<Circle> liste2 = liste_bordure.get(i).getListe_cercle_controle();\n if (i == BAS || i == HAUT) {\n Collections.reverse(liste1);\n Collections.reverse(liste2);\n }\n tab_bordure[i]= new Creux(liste1,liste2); // pas besoin de la placer normalement\n\n } else if (liste_bordure.get(i).getClass() == Creux.class) {\n //Main.consumer.accept(\"listebordure.get(i).class == Creux\");\n ArrayList<Circle> liste1 = liste_bordure.get(i).getListe_cercle();\n ArrayList<Circle> liste2 = liste_bordure.get(i).getListe_cercle_controle();\n if (i == BAS || i == HAUT) {\n Collections.reverse(liste1);\n Collections.reverse(liste2);\n }\n tab_bordure[i]= new Dents(liste1, liste2);\n } else if (liste_bordure.get(i).getClass() == Bordure_Plate.class) {\n tab_bordure[i] = new Bordure_Plate(i, posX ,posY, hauteur, longueur);\n gestion_placement(tab_bordure[i],i);\n //true pcq la bordure est plate\n }\n }\n }", "title": "" }, { "docid": "4a62389251f2cff886d3e7c541ff06a6", "score": "0.5393224", "text": "void init_all() {\n Tid = findViewById(R.id.order);\n Tdate = findViewById(R.id.date);\n Tstatus = findViewById(R.id.status);\n Ttype_of_repair = findViewById(R.id.type_of_repair);\n Tsn = findViewById(R.id.serial_number);\n Timei = findViewById(R.id.imei);\n Tunique_number = findViewById(R.id.unique_number);\n Tproduct = findViewById(R.id.product);\n Tdate_of_warranty = findViewById(R.id.date_of_warranty);\n Tappearance = findViewById(R.id.appearance);\n Tadditional_description = findViewById(R.id.additional_description);\n Tmalfunction = findViewById(R.id.malfunction);\n Tcontractor = findViewById(R.id.contractor);\n Tcontact_person = findViewById(R.id.contact_person);\n Tphone = findViewById(R.id.phone);\n Tmail = findViewById(R.id.mail);\n Tadress = findViewById(R.id.adress);\n Tcostwork = findViewById(R.id.cost_work);\n\n Tcomment = findViewById(R.id.comments);\n btncomment = findViewById(R.id.comments_button);\n btnwork = findViewById(R.id.button);\n Tparts_cost = findViewById(R.id.parts_cost);\n btnworkdelete = findViewById(R.id.button3);\n btnworkedit = findViewById(R.id.button2);\n }", "title": "" }, { "docid": "38610eb8b29438e98ae786cbd40f411e", "score": "0.5391837", "text": "public void initializeElements(Object obj) {\n\tPageFactory.initElements(DriverManager.getDriver(), obj);\n }", "title": "" }, { "docid": "c9b104a368bb239be625f3025d28023d", "score": "0.5391508", "text": "protected void initData() {\n mSingleChoicAdapter = new SingleChoicAdapter<String>(mContext, mOkClickListener, this, mList, R.drawable.selector_checkbox2);\n mListView.setAdapter(mSingleChoicAdapter);\n mListView.setOnItemClickListener(mSingleChoicAdapter);\n\n AbViewUtil.setListViewHeightBasedOnChildren(mListView);\n\n }", "title": "" }, { "docid": "414d700ebffff2328bbaa2c5f99ec2c3", "score": "0.538772", "text": "private void ObjectsInitialisations() {\n noida = findViewById(R.id.noida1);\n patna = findViewById(R.id.patna1);\n guwahati = findViewById(R.id.guwahati1);\n bengalore = findViewById(R.id.bengalore1);\n kolkata = findViewById(R.id.kolkata1);\n }", "title": "" }, { "docid": "797cf4292978c8f2bd34fbf2a3d5caca", "score": "0.5375209", "text": "public void inicializar(){\r\n for(int i=0;i<ventanaDispositivos.getBotonesProductos().size();i++){\r\n ventanaDispositivos.getBotonesProductos().get(i).addActionListener(this);\r\n }\r\n dispositivos= new ArrayList();\r\n ventanaDispositivos.getBRegresar().addActionListener(this);\r\n ventanaDispositivos.setVisible(true); \r\n ventanaDispositivos.setLocationRelativeTo(null);\r\n //Buscar las imagenes de la categoria de dispositivo\r\n ArrayList<String[]>busqueda = Conexion.buscar(\"productos\", ID, \"id_tipoproducto\");\r\n if(Conexion.elementoBuscado){\r\n for(int i=0;i<busqueda.size();i++){\r\n String[] busquedaArray = busqueda.get(i);\r\n Dispositivo dispositivo = new Dispositivo(); \r\n dispositivo.setId(busquedaArray[0]); \r\n dispositivo.setNombre(busquedaArray[1]); \r\n dispositivo.setPrecioVenta(Double.parseDouble(busquedaArray[2])); \r\n dispositivo.setPrecioCompra(Double.parseDouble(busquedaArray[3])); \r\n dispositivo.setDescripcion(busquedaArray[4]); \r\n dispositivo.setNoArticulos(Integer.parseInt(busquedaArray[5])); \r\n dispositivo.setMarca(busquedaArray[6]); \r\n dispositivo.setCategoria(Integer.parseInt(busquedaArray[7]));\r\n dispositivos.add(dispositivo); \r\n } \r\n mostrarProductos();\r\n }else{\r\n for(int i=0;i<ventanaDispositivos.getBotonesProductos().size();i++){\r\n ventanaDispositivos.getBotonesProductos().get(i).setEnabled(false); \r\n }\r\n JOptionPane.showMessageDialog(null, \"Error al cargar los productos\");\r\n }\r\n }", "title": "" }, { "docid": "f8d37c157f597cb531b84f68e0378722", "score": "0.53730947", "text": "private void updateNeighborsList(){\n\n List<String> neighborsList=Neighbor.getAllNeighborsStringList();\n lvnNighbousList.getItems().clear();\n\n for(String n:neighborsList){\n lvnNighbousList.getItems().add(n);\n }\n\n }", "title": "" }, { "docid": "f9e9fcb3db336c71c962e72832d3c8b6", "score": "0.5371739", "text": "private void init() {\n latyout_home_line = (RelativeLayout) getView().findViewById(\n R.id.latyout_home_line);\n latyout_home_line.setOnClickListener(this);\n latyout_home_phone = (RelativeLayout) getView().findViewById(\n R.id.latyout_home_phone);\n latyout_home_phone.setOnClickListener(this);\n latyout_home_mz = (RelativeLayout) getView().findViewById(\n R.id.latyout_home_mz);\n latyout_home_mz.setOnClickListener(this);\n unread_line_number = (TextView) getView().findViewById(\n R.id.unread_line_number);\n line_number = (TextView) getView().findViewById(R.id.line_number);\n\n unread_phone_number = (TextView) getView().findViewById(\n R.id.unread_phone_number);\n phone_number = (TextView) getView().findViewById(R.id.phone_number);\n\n unread_mz_number = (TextView) getView().findViewById(\n R.id.unread_mz_number);\n mz_number = (TextView) getView().findViewById(R.id.mz_number);\n }", "title": "" }, { "docid": "a6360a8cc30590d8be054d63a318f4ea", "score": "0.5370993", "text": "public void chargerExistantsVoiture(){\n try {\n \n //on s'occupe de la liste des evenements\n SAXBuilder builder = new SAXBuilder();\n File fic = new File(path+\"listeVoitures.xml\");\n if(fic.exists() && fic.length()!=0){\n Document document = builder.build(new File(path+\"/listeVoitures.xml\"));\n Element racine = (Element) document.getRootElement();\n\n List fils = racine.getContent();\n Iterator iterator = fils.iterator();\n //pour chaque element <Voiture>\n while (iterator.hasNext()) {\n Object objetFils = iterator.next();\n if (objetFils instanceof Element) {\n Element elementFils = (Element) objetFils;\n int num = Integer.parseInt(elementFils.getChildren().get(0).getText());\n String couleur = elementFils.getChildren().get(1).getText();\n int nb = Integer.parseInt(elementFils.getChildren().get(2).getText());\n boolean active = Boolean.parseBoolean(elementFils.getChildren().get(3).getText());\n String piloteAct = elementFils.getChildren().get(4).getText();\n Pilote p = null;\n if(piloteAct.compareTo(\"null\")==0){\n p = null;\n }\n else{\n String nomP = piloteAct.split(\"-\")[0];\n String prenonP = piloteAct.split(\"-\")[1];\n p = this.getUnPilote(nomP, prenonP);\n }\n\n Voiture v = new Voiture(num,p,couleur,nb,active);\n /*\n *on charge la liste des pilotes associés\n */\n List lesPilotes = elementFils.getChildren().get(5).getContent();\n Iterator iterator2 = lesPilotes.iterator();\n //pour chaque element <Pilote>\n while (iterator2.hasNext()) {\n Object objetFils2 = iterator2.next();\n if (objetFils2 instanceof Element) {\n Element unPilote = (Element) objetFils2;\n //System.out.println(unPilote.getText());\n String nomP2 = unPilote.getText().split(\"-\")[0];\n String prenomP2 = unPilote.getText().split(\"-\")[1];\n Pilote p2 = this.getUnPilote(nomP2, prenomP2);\n v.addListP(p2);\n }\n }\n this.lesVoituresExistantes.add(v);\n }\n }\n }\n } catch (JDOMException ex) {\n Logger.getLogger(GestionnaireExistant.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionnaireExistant.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "91d4ebdbe9da297e119e763d8e38055b", "score": "0.5366516", "text": "private Parametros() { \r\n\r\n this.c1PontoAzul = \"Button 1\";\r\n this.c2PontosAzul = \"Button 2\";\r\n this.c1PontoVermelho = \"Button 0\";\r\n this.c2PontosVermelho = \"Button 3\"; \r\n \r\n this.idControle1 = 0;\r\n this.idControle2 = 1;\r\n this.idControle3 = 2;\r\n this.idControle4 = 3;\r\n \r\n // Criando o pool de threads\r\n poolThreads = Executors.newCachedThreadPool();\r\n \r\n }", "title": "" }, { "docid": "5c217195632c588af6b0ea1c316517cb", "score": "0.5364076", "text": "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_wyssc_js, R.string.can_kjjs_lksc, R.string.can_mute_mode, R.string.can_lkhzdsc};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH};\n this.mSetData = new CanDataInfo.RenaulWcCarSetData();\n }", "title": "" }, { "docid": "d03c33cb338b55a914779993d89e6404", "score": "0.5358104", "text": "void set8A()\n {\n Element helium = new Element( 2, 2, \"http://periodic.lanl.gov/2.shtml\" );\n Element neon = new Element( 10, 10, \"http://periodic.lanl.gov/10.shtml\" );\n Element argon = new Element( 18, 22, \"http://periodic.lanl.gov/18.shtml\" );\n Element krypton = new Element( 36, 48, \"http://periodic.lanl.gov/36.shtml\" );\n Element xenon = new Element( 54, 77, \"http://periodic.lanl.gov/54.shtml\" );\n Element radon = new Element( 86, 136, \"http://periodic.lanl.gov/86.shtml\" );\n Element oganesson = new Element( 118, 167, \"http://periodic.lanl.gov/118.shtml\" );\n a8.add( helium );\n a8.add( neon );\n a8.add( argon );\n a8.add( krypton );\n a8.add( xenon );\n a8.add( radon );\n a8.add( oganesson );\n }", "title": "" }, { "docid": "c8c47038e3151af65ab1ca0fbfd6b549", "score": "0.5345838", "text": "public void inicializarElementosBusquedasSeguridad() {\n\t}", "title": "" }, { "docid": "e26f45f2bfa75e8f72298fa93f8ce970", "score": "0.5344781", "text": "private void SetupViews(){\n noConnection_iv = findViewById(R.id.no_connection_iv);\n beerList_rv = findViewById(R.id.beer_list_rv);\n beerList_rv.setLayoutManager(new LinearLayoutManager(this));\n //beerList_rv.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));\n beerList_rv.addItemDecoration(new SimpleDividerItemDecoration(this));\n }", "title": "" }, { "docid": "d37ae785e7f25d58715d7b7f2b502bff", "score": "0.5343991", "text": "public void InitUI() {\n CanScrollList manager = new CanScrollList(this);\n this.mItemFwdSw = manager.addItemCheckBox(R.string.can_env_light, 1, this);\n this.mItemZylrSw = manager.addItemCheckBox(R.string.can_zylrkg, 2, this);\n this.mItemFwddtsz = manager.addItemCheckBox(R.string.can_fwddtsz, 3, this);\n this.mItemFwdkzfs = manager.addItemPopupList(R.string.can_fwdkzfs, mFwdkzfsArray, 4, (CanItemPopupList.onPopItemClick) this);\n this.mItemFwdjtsz = manager.addItemPopupList(R.string.can_fwdjtsz, mFwdjtszArray, 5, (CanItemPopupList.onPopItemClick) this);\n this.mItemFwddtcys = manager.addItemPopupList(R.string.can_fwddtcys, mFwddtcysArray, 6, (CanItemPopupList.onPopItemClick) this);\n this.mItemFwdlddj = manager.addItemProgressList(R.string.can_fwdlddj, 7, (CanItemProgressList.onPosChange) this);\n this.mItemFwdlddj.SetStep(1);\n this.mItemFwdlddj.SetMinMax(1, 7);\n this.mItemFwdjtllhcys = manager.addItemProgressList(R.string.can_fwdjtllhcys, 8, (CanItemProgressList.onPosChange) this);\n this.mItemFwdjtllhcys.SetStep(1);\n this.mItemFwdjtllhcys.SetMinMax(0, 255);\n this.mItemFwdjtlzhcys = manager.addItemProgressList(R.string.can_fwdjtlzhcys, 9, (CanItemProgressList.onPosChange) this);\n this.mItemFwdjtlzhcys.SetStep(1);\n this.mItemFwdjtlzhcys.SetMinMax(0, 255);\n this.mItemFwddtsd = manager.addItemProgressList(R.string.can_fwddtsd, 10, (CanItemProgressList.onPosChange) this);\n this.mItemFwddtsd.SetStep(1);\n this.mItemFwddtsd.SetMinMax(0, 255);\n }", "title": "" }, { "docid": "5801f1ef23130f1339ab53addeeaa71a", "score": "0.5332565", "text": "public void initDetailElement(){\n lbName.setText(\"\");\n lbLocation.setText(\"\");\n lbCredit.setText(\"\");\n lbWay.setText(\"\");\n lbIsMust.setText(\"\");\n lbCode.setText(\"\");\n lbRandNum.setText(\"\");\n textPs.setText(\"\");\n }", "title": "" }, { "docid": "c9814d435cfdda4942686b11a465cd3b", "score": "0.53303486", "text": "public void inizializza() {\n /* variabili e costanti locali di lavoro */\n Modulo moduloCat = null;\n Campo campoOrdineCat = null;\n Modulo moduloFisso = null;\n Campo campoOrdineFisso = null;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n /*\n * regola l'ordine della lista\n * Ordina per categoria del piatto e poi per ordine di riga\n */\n moduloCat = Progetto.getModulo(Categoria.NOME_MODULO);\n campoOrdineCat = moduloCat.getCampoOrdine();\n moduloFisso = this.getModulo();\n campoOrdineFisso = moduloFisso.getCampoOrdine();\n Ordine ordine = new Ordine();\n ordine.add(campoOrdineCat);\n ordine.add(campoOrdineFisso);\n this.getLista().setOrdine(ordine);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "title": "" }, { "docid": "de07aaad5ffe0319279a78fcf1b9be95", "score": "0.5326005", "text": "public void initUtilHudElements(UtilityManager um) {\n this.um = um;\n createLeftStick();\n }", "title": "" }, { "docid": "9140d72f541198f6b417daed4cd3ff02", "score": "0.532578", "text": "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_vehi_setup, R.string.can_vehi_status, R.string.can_vehicle_slope, R.string.can_seat_status, R.string.can_amp_set};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.TITLE, CanScrollCarInfoView.Item.TITLE, CanScrollCarInfoView.Item.TITLE, CanScrollCarInfoView.Item.TITLE, CanScrollCarInfoView.Item.TITLE};\n }", "title": "" }, { "docid": "1436a2bb7c7e4a3a944a8bb3968defd5", "score": "0.53250325", "text": "void setElementsOnStart() {\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n if (row % 2 != col % 2) {\n if (row < 3) {\n board[row][col] = BLACK;\n } else if (row > 4) {\n board[row][col] = WHITE;\n } else {\n board[row][col] = EMPTY;\n }\n } else {\n board[row][col] = EMPTY;\n }\n }\n }\n }", "title": "" }, { "docid": "640953c9e55e25a02829207e5b21397e", "score": "0.53229", "text": "private void initComponentesVentana() {\n a = new AsistenciaDaoImp().getAsistencia(idAsistencia);\n Empleado e = new EmpleadoDaoImp().getEmpleado(legajo);\n cmbEstado.setSelectedItem(a.getEstado());\n txtEmpleado.setText(e.getApellido()+\" \"+e.getNombre());\n txtFecha.setText(FechaUtil.getDateDDMMAAAA(a.getFecha()));\n txtHora.setText(FechaUtil.getHora(a.getHora()));\n txtLegajo.setText(String.valueOf(e.getLegajo()));\n //imagen de asistencia\n\n ImageIcon img = new ImageIcon(a.getImagen());\n adaptarTamaño(lblFotoAsistencia, img.getImage());\n //imagen de alta empleado\n // esta un try xq puede no tener cargado una foto el empleado\n try{\n ImageIcon img2 = new ImageIcon(e.getImagen());\n adaptarTamaño(lblFotoAlta, img2.getImage());\n \n }catch(java.lang.NullPointerException enull){\n lblFotoAlta.setText(\"No Disponible\");\n }\n if (a.getCorrecto()) {\n rbtnSi.setSelected(true);\n } else {\n rbtnNo.setSelected(true);\n }\n //botones\n btnGuardar.setEnabled(false);\n btnReporte.setEnabled(true);\n btnCancelar.setEnabled(true);\n }", "title": "" }, { "docid": "77bd25c29d338e8730da678fd540549d", "score": "0.53197294", "text": "@PostConstruct\n\tpublic void init() {\n\t\trecupererTousLesPointRelais();\n\t}", "title": "" }, { "docid": "cb8c1cb2ba45dc0f6e8050f9ddc4dff8", "score": "0.53194755", "text": "private void realizarInsertsAdaptationModel(List<RcsopAdNetLayerSp> listaRcsopAdNetLayerSp,\r\n\t\t\tList<RcsodAdapOperationType> listaRcsodAdapOperationType, List<RcsopAdapOperation> listaRcsopAdapOperation,\r\n\t\t\tList<RcsoaAdOpTran> listaRcsoaAdOpTran, List<RcsodLockVoiceType> listaRcsodLockVoiceType,\r\n\t\t\tList<RcsorAdNetLaySpExeOp> listaRcsorAdNetLaySpExeOp, List<RcsopAdapSerLineSp> listaRcsopAdapSerLineSp,\r\n\t\t\tList<RcsorAdapSeLiTrRfsSp> listaRcsorAdapSeLiTrRfsSp, List<RcsopAdapNetSerSp> listaRcsopAdapNetSerSp,\r\n\t\t\tList<RcsodAdNetSeTypeSp> listaRcsodAdNetSeTypeSp, List<RcsorAdNetSSpSuby> listaRcsorAdNetSSpSuby,\r\n\t\t\tList<RcsorAdNSerTrRfsSp> listaRcsorAdNSerTrRfsSp, List<RcsorAdNetSSPTby> listaRcsorAdNetSSPTby,\r\n\t\t\tList<RcsorAdNetSSpTbyRec> listaRcsorAdNetSSpTbyRec, List<RcsorAdNSspUseFacSp> listaRcsorAdNSspUseFacSp,\r\n\t\t\tList<RcsorAdSeliSpUseNetse> listaRcsorAdSeliSpUseNetse, List<RcsorAdapNetSeSpRel> listaRcsorAdapNetSeSpRel,\r\n\t\t\tList<RcsopAdapEquipRoleSp> listaRcsopAdapEquipRoleSp,\r\n\t\t\tList<RcsorAdEqRoRelIsTriBy> listaRcsorAdEqRoRelIsTriBy, List<RcsorANetSeHEquRoSp> listaRcsorANetSeHEquRoSp,\r\n\t\t\tList<RcsodAdNetSerSpReTy> listaRcsodAdNetSerSpReTy, List<RcsoaAdTaskStepSp> listaRcsoaAdTaskStepSp,\r\n\t\t\tList<RcsopAdapAccSpec> listaRcsopAdapAccSpec, List<RcsorAdAcSpURSpChVal> listaRcsorAdAcSpURSpChVal,\r\n\t\t\tList<RcsorAdAccSpULogRSp> listaRcsorAdAccSpULogRSp, List<RcsorAdSerLiUseAcSp> listaRcsorAdSerLiUseAcSp,\r\n\t\t\tList<RcsorAdAccUseEqRoSp> listaRcsorAdAccUseEqRoSp, List<RcsodAdapFaSpecType> listaRcsodAdapFaSpecType,\r\n\t\t\tList<RcsopAdapFacSpec> listaRcsopAdapFacSpec, List<RcsorAdFaSHResS> listaRcsorAdFaSHResS,\r\n\t\t\tList<RcsorAdFaPsChVa> listaRcsorAdFaPsChVa, List<RcsorAdFacSpTrtoRsc> listaRcsorAdFacSpTrtoRsc,\r\n\t\t\tList<RcsorAdFacSpTrSeSCv> listaRcsorAdFacSpTrSeSCv, List<RcsorAdFacSpTrtoEi> listaRcsorAdFacSpTrtoEi,\r\n\t\t\tList<RcsorAdEqRoUseFacSp> listaRcsorAdEqRoUseFacSp, List<RcsorAdSlSpUseFaSp> listaRcsorAdSlSpUseFaSp,\r\n\t\t\tList<RcsorAdapFacSpRel> listaRcsorAdapFacSpRel, List<RcsorAdAccUseFacSpec> listaRcsorAdAccUseFacSpec,\r\n\t\t\tList<RcsopAdFacValueSpec> listaRcsopAdFacValueSpec, List<RcsorAdFVaSpTrtoGa> listaRcsorAdFVaSpTrtoGa,\r\n\t\t\tList<RcsorAdapFacVaSusby> listaRcsorAdapFacVaSusby, List<RcsorAdFaVaPsChVa> listaRcsorAdFaVaPsChVa,\r\n\t\t\tList<RcsorAdFVaSpTrtoSsc> listaRcsorAdFVaSpTrtoSsc, List<RcsorAdFVaSpTrtoRsc> listaRcsorAdFVaSpTrtoRsc,\r\n\t\t\tList<RcsopAdapTransportSpec> listaRcsopAdapTransportSpec, List<RcsopAdapTrailSp> listaRcsopAdapTrailSp,\r\n\t\t\tList<RcsorAdNSeReqTrailSp> listaRcsorAdNSeReqTrailSp, List<RcsopAdapNetTrailSp> listaRcsopAdapNetTrailSp,\r\n\t\t\tList<RcsorAdNetTrUseFaSp> listaRcsorAdNetTrUseFaSp, List<RcsorAdNetTrUseEqRo> listaRcsorAdNetTrUseEqRo,\r\n\t\t\tList<RcsopAdapParameter> listaRcsopAdapParameter, List<RcsorAdTrailSpULrSp> listaRcsorAdTrailSpULrSp,\r\n\t\t\tList<RcsorNetLayerHTrail> listaRcsorNetLayerHTrail, List<RcsorNetLayHasSeLine> listaRcsorNetLayHasSeLine,\r\n\t\t\tList<RcsorNetLayUseAc> listaRcsorNetLayUseAc, List<RcsorAdapNssIsTrigBy> listaRcsorAdapNssIsTrigBy,\r\n\t\t\tList<RcsorNetLayerHasFac> listaRcsorNetLayerHasFac, List<RcsorNeLayerHNetServ> listaRcsorNeLayerHNetServ,\r\n\t\t\tList<RcsorNeLayHEqRole> listaRcsorNeLayHEqRole, List<RcsorAdNssHasFacVal> listaRcsorAdNssHasFacVal,\r\n\t\t\tList<String> fix29) {\n\t\tinsertarTypesNivel0(listaRcsodAdapOperationType, listaRcsodLockVoiceType, listaRcsodAdNetSeTypeSp,\r\n\t\t\t\tlistaRcsodAdNetSerSpReTy, listaRcsodAdapFaSpecType, listaRcsopAdapParameter);\r\n\t\t// Nivel 1 Insertamos las tablas de nivel 1\r\n\r\n\t\tinsertarNivel1(listaRcsopAdNetLayerSp, listaRcsopAdapSerLineSp, listaRcsopAdapAccSpec,\r\n\t\t\t\tlistaRcsopAdapTransportSpec, listaRcsopAdapTrailSp, listaRcsoaAdTaskStepSp);\r\n\r\n\t\tinsertarNivel2(listaRcsopAdapOperation, listaRcsorAdNetLaySpExeOp, listaRcsorAdapSeLiTrRfsSp,\r\n\t\t\t\tlistaRcsorAdSeliSpUseNetse, listaRcsopAdapEquipRoleSp, listaRcsorAdAcSpURSpChVal,\r\n\t\t\t\tlistaRcsorAdAccSpULogRSp, listaRcsorAdSerLiUseAcSp, listaRcsopAdapNetTrailSp, listaRcsopAdapNetSerSp,\r\n\t\t\t\tlistaRcsopAdapFacSpec, listaRcsorAdTrailSpULrSp, listaRcsorNetLayerHTrail, listaRcsorNetLayHasSeLine,\r\n\t\t\t\tlistaRcsorNetLayUseAc);\r\n\r\n\t\tinsertarNivel3(listaRcsoaAdOpTran, listaRcsorAdNetSSpSuby, listaRcsorAdNSerTrRfsSp, listaRcsorAdNetSSPTby,\r\n\t\t\t\tlistaRcsorAdNetSSpTbyRec, listaRcsorAdNSspUseFacSp, listaRcsorAdSeliSpUseNetse,\r\n\t\t\t\tlistaRcsorAdEqRoRelIsTriBy, listaRcsorANetSeHEquRoSp, listaRcsorAdAccUseEqRoSp, listaRcsorAdFaSHResS,\r\n\t\t\t\tlistaRcsorAdFaPsChVa, listaRcsorAdFacSpTrtoRsc, listaRcsorAdFacSpTrSeSCv, listaRcsorAdFacSpTrtoEi,\r\n\t\t\t\tlistaRcsorAdEqRoUseFacSp, listaRcsorAdSlSpUseFaSp, listaRcsorAdapFacSpRel, listaRcsorAdAccUseFacSpec,\r\n\t\t\t\tlistaRcsorAdNSeReqTrailSp, listaRcsorAdNetTrUseFaSp, listaRcsorAdNetTrUseEqRo, fix29,\r\n\t\t\t\tlistaRcsopAdFacValueSpec, listaRcsorAdapNssIsTrigBy, listaRcsorAdapNetSeSpRel, listaRcsorNetLayerHasFac,\r\n\t\t\t\tlistaRcsorNeLayerHNetServ, listaRcsorNeLayHEqRole);\r\n\r\n\t\tinsertarNivel4(listaRcsorAdFVaSpTrtoGa, listaRcsorAdapFacVaSusby, listaRcsorAdFaVaPsChVa,\r\n\t\t\t\tlistaRcsorAdFVaSpTrtoSsc, listaRcsorAdFVaSpTrtoRsc, listaRcsorAdNssHasFacVal);\r\n\r\n\t}", "title": "" }, { "docid": "097d0e0fde28c4d94d6c15c9b82202ff", "score": "0.53188974", "text": "private void initialize() {\r\n cargarDatos();\r\n initCmbTipo();\r\n mostrarDetValCot();\r\n }", "title": "" }, { "docid": "5471d6bb17bcee45f909ecef68179aa1", "score": "0.53183407", "text": "void set4A()\n {\n Element carbon = new Element( 6, 6, \"http://periodic.lanl.gov/6.shtml\" );\n Element silicon = new Element( 14, 14,\"http://periodic.lanl.gov/14.shtml\" );\n Element germanium = new Element( 32, 41, \"http://periodic.lanl.gov/32.shtml\" );\n Element tin = new Element( 50, 69, \"http://periodic.lanl.gov/50.shtml\" );\n Element lead = new Element( 82, 125, \"http://periodic.lanl.gov/82.shtml\" );\n Element flerovium = new Element( 114, 169, \"http://periodic.lanl.gov/114.shtml\" );\n a4.add( carbon );\n a4.add( silicon );\n a4.add( germanium );\n a4.add( tin );\n a4.add( lead );\n a4.add( flerovium );\n }", "title": "" }, { "docid": "e2118665e4052bfcaacfc516c09cb413", "score": "0.53139275", "text": "@Override\n public void robotInit() {\n RobotMap.init();\n drivetrain = new Drivetrain();\n power_Cube_Cannon = new Power_Cube_Cannon();\n pull_up_Hook = new Pull_up_Hook();\n //pigeonBoard = new PigeonBoard();\n \n oi = new OI();\n \n String[] autonomousCommands = new String[3];\n \t autonomousCommands[0] = \"leftSwitch\";\n \t autonomousCommands[1] = \"rightSwitch\";\n\t autonomousCommands[2] = \"driveStraight\";\n\t SmartDashboard.putStringArray(\"Auto List\", autonomousCommands);\n \t \n chooser.addDefault(\"Autonomous Command\", new Drivee_Timed(3) );\n\n SmartDashboard.putData(\"Auto mode\", chooser);\n }", "title": "" }, { "docid": "7c94c6a8613c2b31a88a93c1603854ff", "score": "0.5305131", "text": "private void iniciarComponente() {\n bt_sair = findViewById(R.id.bt_sair);\n btSend = findViewById(R.id.bt_send);\n etTo = findViewById(R.id.et_to);\n etSubject = findViewById(R.id.et_subject);\n etMessage = findViewById(R.id.et_message);\n }", "title": "" }, { "docid": "b48a0f42f933972c6327e96e44273585", "score": "0.5305079", "text": "public ListaDoblementeEnlazada() \n\t { \n\t\t cabeza = null; \n\t\t fin = null; \n\t }", "title": "" }, { "docid": "66a4cd871fd1dbbb026cfc89f639b195", "score": "0.5303411", "text": "private void initConnectedRobotList() {\n connectedRobots = app.getConnectedRobotList();\n connectedRobots.addListener(new ListChangeListener<Robot>() {\n @Override\n public void onChanged(ListChangeListener.Change<? extends Robot> c) {\n c.next();\n if (c.wasAdded()) {\n addRobotPanel(c.getAddedSubList().get(0));\n } else if (c.wasRemoved()) {\n removeRobotPanel(c.getRemoved().get(0));\n }\n updateRobotList();\n }\n });\n gbc = new GridBagConstraints();\n gbc.anchor = GridBagConstraints.SOUTH;\n gbc.gridy = 0;\n }", "title": "" }, { "docid": "4192df7db1c1bbaee85b3dd2676c2b3c", "score": "0.53033024", "text": "public void getPerRequestComponent(){\n \n if (listaInmebles == null) {\n listaInmebles = Repositorio.listaBusquedaBienes(1, 1);\n } \n if (listaTransportes == null) {\n listaTransportes = Repositorio.listaBusquedaBienes(1,2);\n } \n if (listaElectronicos == null) {\n listaElectronicos = Repositorio.listaBusquedaBienes(1, 3);\n } \n if (listaValores == null) {\n listaValores = Repositorio.listaBusquedaBienes(1, 4);\n } \n if (listaControladas == null) {\n listaControladas = Repositorio.listaBusquedaBienes(1,5);\n } \n if (listaSemovientes == null) {\n listaSemovientes = Repositorio.listaBusquedaBienes(1, 6);\n } \n if (listaArmas == null) {\n listaArmas = Repositorio.listaBusquedaBienes(1, 7);\n } \n if (listaOtros == null) {\n listaOtros = Repositorio.listaBusquedaBienes(1, 8);\n } \n \n }", "title": "" }, { "docid": "b4305a60eccc73fd475764deb9a9215f", "score": "0.5299193", "text": "public void initialize() {\n ArrayList<Movie>tempMovieList = new ArrayList<>();\n tempMovieList.addAll(MovieData.getInstance().getMovieListItems());\n for(int i = 0; i<tempMovieList.size(); i++){\n movieList.addMovie(tempMovieList.get(i));\n }\n areaField.setText(movieList.showCurrent());\n }", "title": "" }, { "docid": "b12d1baa4bc209b956051faab861f8ed", "score": "0.5298198", "text": "public void setList() {\n\t\t\n\t\twhile(!elementsList.isEmpty()) {\n\t\t\tfor (int i = 0 ; i<elementsList.size(); i++) {\n\t\t\t\telementsList.remove(i);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "04a06e5c56040710b98d58f329ff782e", "score": "0.5283921", "text": "private void setItens(ArrayList<ItemCarrinho> itens) {\n this.itens = itens;\n }", "title": "" }, { "docid": "0b3c7cac0a31db72d08a901e2e99828d", "score": "0.5280234", "text": "private ArrayList<VistaElemento> espandiCampoLinkato() {\n /* variabili e costanti locali di lavoro */\n ArrayList<VistaElemento> listaElementi = null;\n VistaElemento elementoEspansione = null;\n Campo unCampo;\n CampoDB unCampoDB;\n String nomeVistaLink;\n String nomeColonnaLinkata;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera alcune informazioni dal campo */\n unCampo = (Campo)this.getContenuto();\n unCampoDB = unCampo.getCampoDB();\n nomeVistaLink = unCampoDB.getNomeVistaLink();\n nomeColonnaLinkata = unCampoDB.getNomeColonnaListaLinkata();\n\n /* crea la lista elementi da ritornare */\n listaElementi = new ArrayList<VistaElemento>();\n\n /*\n * Recupera il nome dell'elemento associato al campo.\n * L'elemento conterra':\n * - Se ha una vista linkata, il nome della la vista linkata\n * - Se ha una colonna linkata, il nome del campo linkato\n */\n if (Lib.Testo.isValida(nomeVistaLink)) { // ha Vista\n elementoEspansione = this.elementoDaNomeVista();\n } else { // non ha Vista\n /* verifica se ha o meno una colonna linkata */\n if (Lib.Testo.isValida(nomeColonnaLinkata)) { // ha colonna\n elementoEspansione = this.elementoDaNomeColonna();\n }// fine del blocco if\n }// fine del blocco if-else\n\n /* riempie la lista elementi da ritornare */\n if (elementoEspansione != null) {\n\n /* aggiunge se stesso all'elenco da ritornare */\n listaElementi.add(this);\n /* regola la visibilita' della parte originale */\n this.setVisibile(this.isVisibileOriginale());\n /* aggiunge la parte espansa all'elenco da ritornare */\n listaElementi.add(elementoEspansione);\n /* regola la visibilita' della parte espansa */\n elementoEspansione.setVisibile(this.isVisibileEspansione());\n\n } else { // non esiste espansione\n\n /* aggiunge se stesso all'elenco da ritornare */\n listaElementi.add(this);\n\n }// fine del blocco if-else\n\n /* contrassegna l'elemento originale come espanso */\n this.setEspanso(true);\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return listaElementi;\n }", "title": "" }, { "docid": "f324c61e0b2c0fa9d68f51dfba200685", "score": "0.52763504", "text": "private void initialize() {\n \n for(IncidentBoardModel_obj ibmo : theModel.getModelObjects()) {\n\n addDocElement(\"------------------ BULLETIN \" \n + String.valueOf(ibmo.bulletinNum) \n + \" \" + ibmo.date \n + \" \" + ibmo.time\n + \" ---------------------\\n\", \n TEXT_STYLES.CYAN);\n \n addDocElement(ibmo.message + \"\\n\", \n TEXT_STYLES.CYAN);\n }\n\n }", "title": "" }, { "docid": "fecf6badb3abbfbeb40d9c7626c4de7a", "score": "0.52703285", "text": "protected void checkAndObtainListaNaturaOnere() {\n\t\tList<NaturaOnere> listaNaturaOnere = sessionHandler.getParametro(BilSessionParameter.LISTA_NATURA_ONERE);\n\t\tif(listaNaturaOnere == null) {\n\t\t\tRicercaNaturaOnere request = model.creaRequestRicercaNaturaOnere();\n\t\t\tRicercaNaturaOnereResponse response = documentoService.ricercaNaturaOnere(request);\n\t\t\t// Controllo gli errori\n\t\t\tif(response.hasErrori()) {\n\t\t\t\t//si sono verificati degli errori: esco.\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//metto in sessione la lista trovata\n\t\t\tlistaNaturaOnere = response.getElencoNatureOnere();\n\t\t\tsessionHandler.setParametro(BilSessionParameter.LISTA_NATURA_ONERE, listaNaturaOnere);\n\t\t}\n\t\t//metto nel model la lista trovata\n\t\tmodel.setListaNaturaOnere(listaNaturaOnere);\n\t}", "title": "" }, { "docid": "037243bdc1c5284fa01b4e37f8627331", "score": "0.5266703", "text": "public void inizializza() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n\n super.inizializza();\n\n /* crea il monitor stato e lo aggiunge al portale */\n MonitorDatiCliente monitor = new MonitorDatiCliente(MonitorDatiCliente.TipoMonitor.istat);\n monitor.addListener(PannelloBase.Evento.modifica, new AzClienteModificato());\n this.setMonitorCliente(monitor);\n this.getPortaleNavigatore().add(monitor);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "title": "" }, { "docid": "de8d80ac3745d67d44c924f455bc1bd8", "score": "0.5264084", "text": "private void gestionHero() {\n\t\t//Hero hero = new Hero();\n\t\tString heroSurVillage;\n\t\tWebElement lienHero = compte.getDriver().findElement(By.xpath(\"//*[@id=\\\"heroImageButton\\\"]\"));\n\t\tActions builder = new Actions(compte.getDriver());\n\t\tbuilder.moveToElement(lienHero);\t\t\n\t\tbuilder.perform();\n\t\trandomsleep.court();\n\t\n\t\ttry {\n\t\t\theroSurVillage = compte.getDriver().findElement(By.xpath(\"//*[@class=\\\"tip-contents\\\"]\")).getText().split(\"revient au village \")[1].split(\"\\\\.\")[0]; //(\"rattachement de \")\n\t\t\thero.setVillageAffecte(heroSurVillage);\n\t\t}catch (Exception e){\n\t\t\tt.ecrireDansConsole(\"[gestionHeroProd] Hero en mouvement ou echec lecture de l'infobulle : garde l'ancienne valeur -code 1\", true);}\n\t\t\n\t\ttry {\n\t\t\theroSurVillage = compte.getDriver().findElement(By.xpath(\"//*[@class=\\\"tip-contents\\\"]\")).getText().split(\"rattachement \")[1].split(\"\\\\.\")[0]; //(\"rattachement de \")\n\t\t\thero.setVillageAffecte(heroSurVillage);\n\t\t}catch (Exception e){\n\t\t\tt.ecrireDansConsole(\"[gestionHeroProd] Hero en mouvement ou echec lecture de l'infobulle : garde l'ancienne valeur -code 2\", true);}\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tString villageHero = hero.getVillageAffecte();\n\n\n\t\tfor(Village villageCandidat : listeDeVillages){\n\t\t\tif(villageCandidat.getNom().equals(villageHero)){\n\n\n\n\n\n\n\n\n\t\t\t\t//updateRessources(); //update le village en cours : a develloper\n\t\t\t\tint stockbois = villageCandidat.getBois();\n\t\t\t\tint stockargile = villageCandidat.getArgile();\n\t\t\t\tint stockfer = villageCandidat.getFer();\n\t\t\t\tint stockcereales = villageCandidat.getCereales();\n\n\t\t\t\tHashMap<String, Integer> stockbafc = new HashMap<String, Integer>();\n\t\t\t\tstockbafc.put(\"bois\", stockbois);\n\t\t\t\tstockbafc.put(\"argile\", stockargile);\n\t\t\t\tstockbafc.put(\"fer\", stockfer);\n\t\t\t\tstockbafc.put(\"cereales\", stockcereales);\n\n\t\t\t\t/* ecrireDansConsole(\"Before Sorting:\");\n\t Set set = stockbafc.entrySet();\n\t Iterator iterator = set.iterator();\n\t while(iterator.hasNext()) {\n\t Map.Entry me = (Map.Entry)iterator.next();\n\t System.out.print(me.getKey() + \": \");\n\t ecrireDansConsole(me.getValue());\n\t }*/\n\t\t\t\tMap<String, Integer> map = sortByValues(stockbafc); \n\t\t\t\t// ecrireDansConsole(\"After Sorting:\");\n\t\t\t\tSet set1 = map.entrySet();\n\t\t\t\tSet set2 = map.entrySet();\n\t\t\t\tIterator iterator1 = set1.iterator();\n\t\t\t\tIterator iterator2 = set2.iterator();\n\t\t\t\tMap.Entry min = (Map.Entry)iterator2.next();\n\t\t\t\tString min2 = min.getKey().toString();\n\n\n\t\t\t\t////Si la prod du hero est differente, on la corrige\n\t\t\t\tif (!hero.getModeProduction().equals(min2)){\n\t\t\t\t\thero.setModeProduction(min.getKey().toString());\n\n\t\t\t\t\tString token = hero.getModeProduction();\n\t\t\t\t\tString token2 = null;\n\n\t\t\t\t\tif (token.equals(\"bois\")) {token2 = \"1\";}\n\t\t\t\t\tif (token.equals(\"argile\")) {token2 = \"2\";}\n\t\t\t\t\tif (token.equals(\"fer\")) { token2 = \"3\";}\n\t\t\t\t\tif (token.equals(\"cereales\")) {token2 = \"4\";}\n\n\t\t\t\t\tcompte.getDriver().get(compte.getServer()+\"hero.php\"); //hero_inventory.php\n\t\t\t\t\trandomsleep.court();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcompte.getDriver().findElement(By.xpath(\"//*[@class=\\\"openCloseSwitchBar\\\"]\")).click();\n\t\t\t\t\t\trandomsleep.court();\n\t\t\t\t\t\tcompte.getDriver().findElement(By.xpath(\"//*[@id=\\\"resourceHero\"+token2 +\"\\\"]\")).click();\n\t\t\t\t\t}catch(Exception e) {\n\t\t\t\t\t\trandomsleep.court();\n\t\t\t\t\t\tcompte.getDriver().findElement(By.xpath(\"//*[@class=\\\"openCloseSwitchBar\\\"]\")).click();\n\t\t\t\t\t\trandomsleep.court();\n\t\t\t\t\t\tcompte.getDriver().findElement(By.xpath(\"//*[@id=\\\"resourceHero\"+token2 +\"\\\"]\")).click();\n\t\t\t\t\t}\n\t\t\t\t\trandomsleep.court();\n\t\t\t\t\tcompte.getDriver().findElement(By.xpath(\"//*[@id=\\\"saveHeroAttributes\\\"]/div/div[2]\")).click();\n\t\t\t\t\trandomsleep.court();\n\t\t\t\t\tecrireDansConsole(\"[gestionHeroProd] Hero boost : \" + min.getKey().toString(), true);\n\t\t\t\t\twhile(iterator1.hasNext()) {\n\t\t\t\t\t\tMap.Entry me2 = (Map.Entry)iterator1.next();\n\t\t\t\t\t\tt.ecrireDansConsole((\"|\" + me2.getKey() + \": \" + me2.getValue() + \"|\"), true); \n\t\t\t\t\t}\n\t\t\t\t\t// ecrireDansConsole(\"\"); \n\t\t\t\t\tcompte.getDriver().get(compte.getServer()+\"dorf1.php\");\n\t\t\t\t\trandomsleep.court(); \n\t\t\t\t}else {ecrireDansConsole(\"[gestionHeroProd] Hero boost deja la bonne ressource : \" +hero.getModeProduction(), true) ;}\n\n\t\t\t}\n\t\t}\n\n\t\t//on replace le curseur sur une zone neutre\n\t\tActions builder2 = new Actions(compte.getDriver());\n\t\tbuilder.moveByOffset(0, 50);\t\t\n\t\tbuilder.perform();\n\t}", "title": "" }, { "docid": "32a7b369f0d40e234fa5fa845c1da52d", "score": "0.52583367", "text": "private void generarPantallasVentas() {\n this.registrarventaInternaFrame = new RegistrarVentaInternalFrame(this);\n this.generarreporteventaInternalFrame = new GenerarReporteVentaInternalFrame(this);\n this.generarsaldosInternalFrame = new GenerarSaldosInternalFrame(this);\n this.generarreporteventasaldoInternalFrame = new GenerarReporteVentaSaldosInternalFrame(this);\n\n this.add(this.registrarventaInternaFrame);\n this.add(this.generarreporteventaInternalFrame);\n this.add(this.generarsaldosInternalFrame);\n this.add(this.generarreporteventasaldoInternalFrame);\n\n }", "title": "" }, { "docid": "750d5b434524ee5a1edb8ff0155205c6", "score": "0.5257748", "text": "public void SetFeaturesToList(){\n\t\tfor (int i = 0; i < this.anomaly.Features.length; i++) {\r\n\t\t\tListFeatures = (this.anomaly.Features[i]);\r\n\t\t\tIfPlugInRunning = true;\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t}\r\n\t\tListDone = true;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t\tIfPlugInRunning = false;\r\n\t}", "title": "" }, { "docid": "95eef64e738b7208f8ad17a45673c623", "score": "0.5253519", "text": "public void setListJualBeli()\n {\n\n recyclerViewJualBeli = findViewById(R.id.list_jual_beli);\n recyclerViewJualBeli.setHasFixedSize(true);\n\n gridLayoutManager = new GridLayoutManager(this, 2);\n gridLayoutManager.setOrientation(GridLayoutManager.VERTICAL);\n\n recyclerViewJualBeli.setLayoutManager(gridLayoutManager);\n\n Call<ListJualBeliResponse> listHewan = apiRequest.getListJualBeli();\n\n listHewan.enqueue(new Callback<ListJualBeliResponse>() {\n @Override\n public void onResponse(Call<ListJualBeliResponse> call, Response<ListJualBeliResponse> response) {\n if(!response.isSuccessful())\n {\n Log.d(\"Recycler\", \"JualBeliModel : \" + response.message());\n }\n else\n {\n jualBeliModel = response.body().getJualBeli();\n\n adapterListJualBeli = new AdapterListJualBeli(ActivityListJualBeli.this,\n R.layout.recyclerlist_jual_beli, jualBeliModel);\n recyclerViewJualBeli.setAdapter(adapterListJualBeli);\n }\n }\n\n @Override\n public void onFailure(Call<ListJualBeliResponse> call, Throwable t) {\n Log.d(\"Recycler\", \"JualBeliModel : \" + t.getMessage());\n }\n });\n }", "title": "" }, { "docid": "aaacdc6a5995843ae70fd5555f07e484", "score": "0.5249368", "text": "void set1A()\n {\n Element hydrogen = new Element( 1, 0, \"http://periodic.lanl.gov/1.shtml\" );\n Element lithium = new Element( 3, 4, \"http://periodic.lanl.gov/3.shtml\" );\n Element sodium = new Element( 11, 12, \"http://periodic.lanl.gov/11.shtml\" );\n Element potassium = new Element( 19, 20, \"http://periodic.lanl.gov/19.shtml\" );\n Element rubidium = new Element( 37, 48, \"http://periodic.lanl.gov/37.shtml\" );\n Element cesium = new Element( 55, 78, \"http://periodic.lanl.gov/55.shtml\" );\n Element francium = new Element( 87, 136, \"http://periodic.lanl.gov/87.shtml\" );\n a1.add( hydrogen );\n a1.add( lithium );\n a1.add( sodium );\n a1.add( potassium );\n a1.add( rubidium );\n a1.add( cesium );\n a1.add( francium );\n }", "title": "" }, { "docid": "d7462d2d1df028fdd864ab347846e475", "score": "0.5249236", "text": "@Override\n\tpublic void initPageElements() {\n\t\tthis.tabDisplaySettings = new Element(getLocator(\"tabDisplaySettings\").getBy());\n\t\tthis.radChart = new Element(getLocator(\"radChart\").getBy());\n\t\tthis.radIndicator = new Element(getLocator(\"radIndicator\").getBy());\n\t\tthis.radReport = new Element(getLocator(\"radReport\").getBy());\n\t\tthis.radHeatMap = new Element(getLocator(\"radHeatMap\").getBy());\n\t\tthis.txtDisplayName = new Element(getLocator(\"txtDisplayName\").getBy());\n\t\tthis.cbbDataProfile = new Element(getLocator(\"cbbDataProfile\").getBy());\n\t\tthis.btnOK = new Element(getLocator(\"btnOK\").getBy());\n\t\tthis.btnCancel = new Element(getLocator(\"btnCancel\").getBy());\n\t\t\n\t\t//In Chart Panel\n\t\tthis.txtChartTitle = new Element(getLocator(\"txtChartTitle\").getBy());\n\t\tthis.cbbChartType = new Element(getLocator(\"cbbChartType\").getBy());\n\t\tthis.radChartStyle2D = new Element(getLocator(\"radChartStyle2D\").getBy());\n\t\tthis.radChartStyle3D = new Element(getLocator(\"radChartStyle3D\").getBy());\n\t\tthis.chkShowTitle = new Element(getLocator(\"chkShowTitle\").getBy());\n\t\tthis.cbbCategoryField = new Element(getLocator(\"cbbCategoryField\").getBy());\n\t\tthis.cbbSeriesField = new Element(getLocator(\"cbbSeriesField\").getBy());\n\t\tthis.txtCategoryCaption = new Element(getLocator(\"txtCategoryCaption\").getBy());\n\t\tthis.txtSeriesCaption = new Element(getLocator(\"txtSeriesCaption\").getBy());\n\t\tthis.radLegendsNone = new Element(getLocator(\"radLegendsNone\").getBy());\n\t\tthis.radLegendsTop = new Element(getLocator(\"radLegendsTop\").getBy());\n\t\tthis.radLegendsRight = new Element(getLocator(\"radLegendsRight\").getBy());\n\t\tthis.radLegendsBottom = new Element(getLocator(\"radLegendsBottom\").getBy());\n\t\tthis.radLegendsLeft = new Element(getLocator(\"radLegendsLeft\").getBy());\n\t\tthis.chkDataLabelsSeries = new Element(getLocator(\"chkDataLabelsSeries\").getBy());\n\t\tthis.chkDataLabelsCategories = new Element(getLocator(\"chkDataLabelsCategories\").getBy());\n\t\tthis.chkDataLabelsValue = new Element(getLocator(\"chkDataLabelsValue\").getBy());\n\t\tthis.chkDataLabelsPercentage = new Element(getLocator(\"chkDataLabelsPercentage\").getBy());\n\t\t\n\t\t//In Indicator panel\n\t\tthis.txtIndicatorTitle = new Element(getLocator(\"txtIndicatorTitle\").getBy());\n\t}", "title": "" }, { "docid": "c911538b1764af31a606224064914c81", "score": "0.52467704", "text": "private void init() {\n ConnectionBDD connectionBDD = new ConnectionBDD();\n\n // mapping de la connexion de l'annuaire \"this.connection\" avec la connexion retournee par \n // connectionBDD.openConnectionBDD()\n this.connection = connectionBDD.openConnectionBDD();\n\n // Creation (instantiation) d'un DAO en utilisant le\n // constructeur qui prend en parametre \n // la connexion de l'annuaire \"this.connection\" \n recettesDAO = new RecettesDAO(connection);\n\n aperitifsDAO = new AperitifsDAO((connection));\n\n entreesDAO = new EntreesDAO(connection);\n\n dessertsDAO = new DessertsDAO(connection);\n\n platsDAO = new PlatsDAO(connection);\n\n insertrecettes = new InsertRecette();\n insertrecettes.setVisible(true);\n\n // recuperation de la liste des recettespojo mappee avec la liste \"listerecetttepojo\" \n // en executant la requête \"select_all\" definie dans la methode findAllArrondissement() du DAO\n List<RecettesPOJO> listeRecettesPOJOs = recettesDAO.findAllRecettes();\n\n jComboBoxTypeRecette.addItem(\"\");\n\n // boucle sur la liste des arrondissements et ajout d'un item dans la combo box de\n // l'arrondissement courant\n for (RecettesPOJO listeRecettesPOJO : listeRecettesPOJOs) {\n jComboBoxTypeRecette.addItem(listeRecettesPOJO.getNomRecettes());\n\n }\n }", "title": "" }, { "docid": "d92a1f7b17d6b03b25e2f73edf6b8111", "score": "0.5242594", "text": "private void initComposants() {\n \n //Grille 5 X 3 avec hgap = 0 et vgap = 10\n this.setLayout(new GridLayout(5, 3, 0, 10));\n \n //Ajout des 9 premiers boutons au panneau\n for (int i = 0; i < 9; i++) {\n this.add(new JButton(i + 1 + \"\"));\n }\n \n //Ajout des autres boutons\n this.add(new JButton(\"*\"));\n this.add(new JButton(\"0\"));\n this.add(new JButton(\"#\"));\n this.add(new JPanel()); //pas de bouton ici, mais il faut mettre qqchose\n this.add(new JButton(\"SEND\"));\n this.add(new JPanel()); //pas de bouton ici, mais il faut mettre qqchose\n \n }", "title": "" }, { "docid": "1d9cd28050a6d7a9a937cc1e2b7f4c63", "score": "0.5237589", "text": "private void prepare()\n {\n\n MapButton mapButton = new MapButton(1);\n addObject(mapButton,58,57);\n GraceIvanova graceIvanova = new GraceIvanova();\n addObject(graceIvanova,1011,430);\n LaptopCart cart = new LaptopCart();\n addObject(cart,700,490);\n\n Hair hair = new Hair();\n addObject(hair,689,455);\n }", "title": "" }, { "docid": "a346d9842089ac7f7914407474a4bbf2", "score": "0.52365243", "text": "public void prepareElementosDialogo() {\r\n int anchoBotonGeneral = CargaImagenes.anchoBotonGeneral;\r\n int altoBotonGeneral = CargaImagenes.altoBotonGeneral;\r\n\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n double ancho = screenSize.getWidth();\r\n double altura = screenSize.getHeight();\r\n int ANCHO_PANTALLA = (int) ancho;\r\n int ALTO_PANTALLA = (int) altura - 35;\r\n\r\n ventanaEmergente = new JDialog(framePadre, true);\r\n ventanaEmergente.setTitle(\"Joption\");\r\n ventanaEmergente.setSize(ANCHO_PANTALLA / 2, ALTO_PANTALLA / 4);\r\n ventanaEmergente.setLocationRelativeTo(null);\r\n ventanaEmergente.setUndecorated(true);\r\n Imagenes.fondoDialog(NombreImagenes.imFondoD, ANCHO_PANTALLA / 2, ALTO_PANTALLA / 4, ventanaEmergente);\r\n\r\n int posicionX = ventanaEmergente.getWidth() / 40 * 17;\r\n posicionY = ventanaEmergente.getHeight() / 10 * 8;\r\n\r\n btn_tiempo = new JButton();\r\n\r\n btn_aceptar = new Boton(NombreImagenes.imBGeneral1, NombreImagenes.imBGeneral2, \"Aceptar\");\r\n btn_aceptar.setSize(anchoBotonGeneral, altoBotonGeneral);\r\n btn_aceptar.setLocation(posicionX, posicionY);\r\n btn_aceptar.setToolTipText(\"Aceptar\");\r\n ventanaEmergente.add(btn_aceptar);\r\n\r\n btn_si = new Boton(NombreImagenes.imBGeneral1, NombreImagenes.imBGeneral2, \"Si\");\r\n btn_si.setSize(anchoBotonGeneral, altoBotonGeneral);\r\n btn_si.setLocation(posicionX - anchoBotonGeneral / 2 - 5, posicionY);\r\n btn_si.setToolTipText(\"Si\");\r\n ventanaEmergente.add(btn_si);\r\n\r\n btn_no = new Boton(NombreImagenes.imBGeneral1, NombreImagenes.imBGeneral2, \"No\");\r\n btn_no.setSize(anchoBotonGeneral, altoBotonGeneral);\r\n btn_no.setLocation(posicionX + anchoBotonGeneral / 2 + 5, posicionY);\r\n btn_no.setToolTipText(\"No\");\r\n ventanaEmergente.add(btn_no);\r\n\r\n lbl_detalle = new CampoLabel(\"<html><u>Detalles</u></html>\", CampoLabel.labelVariable);\r\n lbl_detalle.setLocation(30, posicionY);\r\n lbl_detalle.setSize(100, 20);\r\n ventanaEmergente.add(lbl_detalle);\r\n lbl_detalle.setVisible(false);\r\n\r\n lbl_mensaje1 = new CampoLabel(\"\", CampoLabel.labelVariable);\r\n lbl_mensaje1.setLocation(ventanaEmergente.getWidth() / 3, ventanaEmergente.getHeight() / 10 * 2);\r\n lbl_mensaje1.setSize(ventanaEmergente.getWidth(), 30);\r\n ventanaEmergente.add(lbl_mensaje1);\r\n\r\n lbl_mensaje2 = new CampoLabel(\"\", CampoLabel.labelVariable);\r\n lbl_mensaje2.setLocation(ventanaEmergente.getWidth() / 3, lbl_mensaje1.getY() + altoBotonGeneral / 2);\r\n lbl_mensaje2.setSize(ventanaEmergente.getWidth(), 30);\r\n ventanaEmergente.add(lbl_mensaje2);\r\n\r\n lbl_pregunta = new CampoLabel(\"\", CampoLabel.labelVariable);\r\n lbl_pregunta.setLocation(ventanaEmergente.getWidth() / 15, 15);\r\n lbl_pregunta.setSize(ventanaEmergente.getWidth(), ventanaEmergente.getHeight() / 3 * 2);\r\n Imagenes.fondoLabel(NombreImagenes.imLblPregunta, lbl_pregunta);\r\n ventanaEmergente.add(lbl_pregunta);\r\n lbl_pregunta.setVisible(false);\r\n\r\n lbl_advertencia = new CampoLabel(\"\", CampoLabel.labelVariable);\r\n lbl_advertencia.setLocation(ventanaEmergente.getWidth() / 15, 15);\r\n lbl_advertencia.setSize(ventanaEmergente.getWidth(), ventanaEmergente.getHeight() / 3 * 2);\r\n Imagenes.fondoLabel(NombreImagenes.imLblAdvertencia, lbl_advertencia);\r\n ventanaEmergente.add(lbl_advertencia);\r\n lbl_advertencia.setVisible(false);\r\n\r\n lbl_informacion = new CampoLabel(\"\", CampoLabel.labelVariable);\r\n lbl_informacion.setLocation(ventanaEmergente.getWidth() / 15, 15);\r\n lbl_informacion.setSize(ventanaEmergente.getWidth(), ventanaEmergente.getHeight() / 3 * 2);\r\n Imagenes.fondoLabel(NombreImagenes.imLblInformacion, lbl_informacion);\r\n ventanaEmergente.add(lbl_informacion);\r\n lbl_informacion.setVisible(false);\r\n\r\n lbl_error = new CampoLabel(\"\", CampoLabel.labelVariable);\r\n lbl_error.setLocation(ventanaEmergente.getWidth() / 15, 15);\r\n lbl_error.setSize(ventanaEmergente.getWidth(), ventanaEmergente.getHeight() / 3 * 2);\r\n Imagenes.fondoLabel(NombreImagenes.imLblError, lbl_error);\r\n ventanaEmergente.add(lbl_error);\r\n lbl_error.setVisible(false);\r\n\r\n txta_error = new CajaTextoArea(CajaDeTexto.textoLetrasNumeros);\r\n scroll_errores = new JScrollPane(txta_error);\r\n scroll_errores.setBounds(ventanaEmergente.getWidth() / 20, ventanaEmergente.getHeight() / 4,\r\n (ventanaEmergente.getWidth() / 20) * 18, (ventanaEmergente.getHeight() / 10) * 4);\r\n scroll_errores.setViewportView(txta_error);\r\n txta_error.setEditable(false);\r\n txta_error.setColumns(5);\r\n txta_error.setRows(5);\r\n txta_error.setAutoscrolls(false);\r\n txta_error.setLineWrap(true);\r\n ventanaEmergente.add(scroll_errores);\r\n txta_error.grabFocus();\r\n txta_error.setBounds(ventanaEmergente.getWidth() / 20, ventanaEmergente.getHeight() / 4,\r\n (ventanaEmergente.getWidth() / 20) * 18, (ventanaEmergente.getHeight() / 10) * 4);\r\n scroll_errores.setVisible(false);\r\n }", "title": "" }, { "docid": "303249efdd9564277df47f710e2f1967", "score": "0.52334553", "text": "private void setElementList(com.google.search.now.ui.piet.ElementsProto.ElementList value) {\n if (value == null) {\n throw new NullPointerException();\n }\n elements_ = value;\n elementsCase_ = 6;\n }", "title": "" }, { "docid": "b6dfda477818bc366f28f367a2f7f718", "score": "0.523269", "text": "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n this.setTitolo(\"Riclassificazione città\");\n this.setMessaggio(\n \"Sostituisce una lista di città non verificate con una città verificata\");\n\n pan = this.creaPanRiclassificare();\n this.addPannello(pan);\n campo = this.creaCampoCitta();\n this.addCampo(campo);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "title": "" }, { "docid": "a2cb2ba64722d30784d0d9eb1fbc8236", "score": "0.52285683", "text": "public void InitUI() {\n this.mManager = new CanScrollList(this);\n for (int i = 1; i <= 10; i++) {\n InitItem(i);\n }\n }", "title": "" }, { "docid": "eac0d55bec31075d93c13e69704f2868", "score": "0.52277327", "text": "public static void tourSuivant(){\n\t\tif(Equipe.liste.size() == 1){\n\t\t\tvictoire(Equipe.liste.get(0));\n\t\t}else{\n\t\tequipeActive = Equipe.aQuiLeTour() ;\n\t\tequipeActive.reinitialiser();\n\t\tactif = equipeActive.membre.get(0);\n\t\tp.afficher();\n\t\tif(equipeActive.ia){\n\t\t\tIA.jouer(equipeActive);\n\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2e9a269c487a9c300f1998e1868a922a", "score": "0.52272797", "text": "private void initListBat(){\n selecBat.addItem(\"\");\r\n BatSelectionne.addItem(\"\");\r\n Gestionnaire forBatList = new Gestionnaire();\r\n this.bdd.selectListeBateaux();\r\n for(Bateau unBateau : this.bdd.getBatList()) {\r\n selecBat.addItem(unBateau.getNomBat());\r\n }\r\n }", "title": "" }, { "docid": "6b1f14ec79f9428f8c34b1676b5f9c2d", "score": "0.52272093", "text": "private void initialiseUI() {\n // Prompt\n TextView prompt = findViewById(R.id.prompt);\n if (requestCode == Constants.RESULT_REQUEST)\n prompt.setText(R.string.choose_results);\n else\n prompt.setText(R.string.place_bets);\n\n // Player input list\n playerInputListAdapter = new PlayerInputListAdapter(this, gameInput.getPlayerInputs());\n ListView playerInputList = findViewById(R.id.playerInputList);\n playerInputList.setAdapter(playerInputListAdapter);\n ((TextView)findViewById(R.id.textViewNrOfHands)).setText(getResources().getString(R.string.out_of_number, gameInput.getNrOfHands()));\n\n // Grid\n ConstraintLayout grid = findViewById(R.id.grid);\n for(int i=0;i<=8;i++){\n Button button = (Button) grid.getChildAt(i);\n final int value = i;\n button.setOnClickListener(view -> advance(value));\n }\n }", "title": "" }, { "docid": "a65dea8488356607af97591047a4936d", "score": "0.52265096", "text": "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n chassisfrontLeft = new VictorSP(0);\n LiveWindow.addActuator(\"chassis\", \"frontLeft\", (VictorSP) chassisfrontLeft);\n \n chassisbackLeft = new VictorSP(2);\n LiveWindow.addActuator(\"chassis\", \"backLeft\", (VictorSP) chassisbackLeft);\n \n chassisfrontRight = new VictorSP(1);\n LiveWindow.addActuator(\"chassis\", \"frontRight\", (VictorSP) chassisfrontRight);\n \n chassisbackRight = new VictorSP(3);\n LiveWindow.addActuator(\"chassis\", \"backRight\", (VictorSP) chassisbackRight);\n \n chassisrobotDrive = new RobotDrive(chassisfrontLeft, chassisbackLeft,\n chassisfrontRight, chassisbackRight);\n \n chassisrobotDrive.setSafetyEnabled(true);\n chassisrobotDrive.setExpiration(0.1);\n chassisrobotDrive.setSensitivity(0.5);\n chassisrobotDrive.setMaxOutput(1.0);\n\n chassistoteSensor = new DigitalInput(2);\n LiveWindow.addSensor(\"chassis\", \"toteSensor\", chassistoteSensor);\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "title": "" }, { "docid": "f850768d6c995b682728a8ffac06d502", "score": "0.5225612", "text": "private void iniciarComponentes() {\r\n\t\tthis.setLayout(new GridLayout(tam, tam));\r\n\t\ttableroBtns = new JButton[tam][tam];\r\n\t}", "title": "" }, { "docid": "bc5dedd3be46036a7aa619b91b4e23a2", "score": "0.5225139", "text": "public static void main(String[] args){\n\t\tFritzConnection fc = new FritzConnection(ip,user,password);\n\t\ttry {\n\t\t\t//The connection has to be initiated. This will load the tr64desc.xml respectively igddesc.xml \n\t\t\t//and all the defined Services and Actions. \n\t\t\tfc.init();\n\t\t} catch (ClientProtocolException e2) {\n\t\t\t//Any HTTP related error.\n\t\t\te2.printStackTrace();\n\t\t} catch (IOException e2) {\n\t\t\t//Any Network related error.\n\t\t\te2.printStackTrace();\n\t\t} catch (JAXBException e2) {\n\t\t\t//Any xml violation.\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 1; i<=3 ;i++){\n\t\t\t//Get the Service. In this case WLANConfiguration:X \n\t\t\tService service = fc.getService(\"WLANConfiguration:\" + i);\n\t\t\t//Get the Action. in this case GetTotalAssociations\n\t\t\tAction action = service.getAction(\"GetTotalAssociations\");\n\t\t\tResponse response1 = null;\n\t\t\ttry {\n\t\t\t\t//Execute the action without any In-Parameter.\n\t\t\t\tresponse1 = action.execute();\n\t\t\t} catch (UnsupportedOperationException | IOException e1) {\n\t\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tint deviceCount = -1;\n\t\t\ttry {\n\t\t\t\t//Get the value from the field NewTotalAssociations as an integer. Values can have the Types: String, Integer, Boolean, DateTime and UUID\n\t\t\t\tdeviceCount = response1.getValueAsInteger(\"NewTotalAssociations\");\n\t\t\t} catch (ClassCastException | NoSuchFieldException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tSystem.out.println(\"WLAN \" + i + \":\" + deviceCount);\n\t\t\tfor (int j = 0; j < deviceCount; j++){\n\t\t\t\t//Create a map for the arguments of an action. You have to do this, if the action has IN-Parameters.\n\t\t\t\tHashMap <String, Object> arguments = new HashMap<String, Object>();\n\t\t\t\t//Set the argument NewAssociatedDeviceIndex to an integer value.\n\t\t\t\targuments.put(\"NewAssociatedDeviceIndex\", j);\n\t\t\t\ttry {\n\t\t\t\t\tResponse response2 = fc.getService(\"WLANConfiguration:\" + i).getAction(\"GetGenericAssociatedDeviceInfo\").execute(arguments);\n\t\t\t\t\tSystem.out.println(\" \" + response2.getData());\n\t\t\t\t} catch (UnsupportedOperationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" } ]
9f6799f6d5491c0bee75049a4607717d
Load an AxisConfiguration from the repository directory specified
[ { "docid": "43e03a0dd2574ffb171b3b147c078602", "score": "0.4861698", "text": "public void init(String repoLocation) throws ServerException {\n if (repoLocation == null) {\n throw new ServerException(\"Axis2 repository not specified!\");\n }\n\n // Check whether this is a URL\n isUrlRepo = MicroIntegratorBaseUtils.isURL(repoLocation);\n\n if (isUrlRepo) { // Is repoLocation a URL Repo?\n try {\n new URL(repoLocation).openConnection().connect();\n } catch (IOException e) {\n throw new ServerException(\"Cannot connect to URL repository \" + repoLocation, e);\n }\n this.repoLocation = repoLocation;\n } else { // Is repoLocation a file repo?\n File repo = new File(repoLocation);\n if (repo.exists()) {\n this.repoLocation = repo.getAbsolutePath();\n } else {\n this.repoLocation =\n System.getProperty(\"wso2wsas.home\") + File.separator +\n repoLocation;\n repo = new File(this.repoLocation);\n if (!repo.exists()) {\n this.repoLocation = null;\n throw new ServerException(\"Repository location '\" + repoLocation +\n \"' not found!\");\n }\n }\n }\n\n axis2xml = MicroIntegratorBaseUtils.getAxis2Xml();\n\n isUrlAxis2Xml = MicroIntegratorBaseUtils.isURL(axis2xml);\n\n if (!isUrlAxis2Xml) { // Is axis2xml a URL to the axis2.xml file?\n File configFile = new File(axis2xml);\n if (!configFile.exists()) {\n //This will fallback to default axis2.xml\n this.axis2xml = null;\n //Thus default\n }\n } else {\n try {\n URLConnection urlConnection = new URL(axis2xml).openConnection();\n urlConnection.connect();\n } catch (IOException e) {\n throw new ServerException(\"Cannot connect to axis2.xml URL \" + repoLocation, e);\n }\n isInitialized = true;\n }\n }", "title": "" } ]
[ { "docid": "2ce0144fe1b104f3f12434f1fee208df", "score": "0.63575673", "text": "@Override\n public void loadRepository(String repoDir) throws DeploymentException {\n File axisRepo = new File(repoDir);\n if (!axisRepo.exists()) {\n throw new DeploymentException(\n Messages.getMessage(\"cannotfindrepo\", repoDir));\n }\n setDeploymentFeatures();\n prepareRepository(repoDir);\n // setting the CLs\n setClassLoaders(repoDir);\n repoListener = new RepositoryListener(this, false);\n org.apache.axis2.util.Utils\n .calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig);\n try {\n try {\n if (axisConfig.getRepository() == null) {\n //we set\n axisConfig.setRepository(axisRepo.toURL());\n }\n } catch (MalformedURLException e) {\n log.info(e.getMessage());\n }\n axisConfig.validateSystemPredefinedPhases();\n } catch (AxisFault axisFault) {\n throw new DeploymentException(axisFault);\n }\n }", "title": "" }, { "docid": "33863f43016d54a27ebb8db766bef7b4", "score": "0.60151017", "text": "public AxisConfiguration getAxisConfiguration() throws AxisFault {\n axisConfig = null;\n try {\n axisConfig = populateAxisConfiguration(getAxis2XmlInputStream());\n } catch (DeploymentException e) {\n throw new AxisFault(\"Exception occured while loading the Axis configuration \" +\n \"from \" + axis2xml, e);\n }\n\n axisConfig.setConfigurator(this);\n // Registering Axis2 Configuration services in axis2config\n if (bundleContext != null) {\n configServiceListener = new Axis2ConfigServiceListener(axisConfig, bundleContext);\n }\n\n //reading deployers for virtual hosts\n ServiceTracker deployerServiceTracker = null;\n\n try {\n deployerServiceTracker = new ServiceTracker(bundleContext,\n Axis2DeployerProvider.class.getName(), null);\n deployerServiceTracker.open();\n\n } finally {\n if (deployerServiceTracker != null) {\n deployerServiceTracker.close();\n }\n }\n\n globallyEngagedModules = axisConfig.getEngagedModules();\n if (repoLocation != null && repoLocation.trim().length() != 0) {\n try {\n if (isUrlRepo) {\n URL axis2Repository = new URL(repoLocation);\n axisConfig.setRepository(axis2Repository);\n loadRepositoryFromURL(axis2Repository);\n } else {\n axisConfig.setRepository(new URL(\"file://\" + repoLocation));\n loadRepository(repoLocation);\n }\n } catch (MalformedURLException e) {\n throw new AxisFault(\"Invalid URL\", e);\n }\n } else {\n loadFromClassPath();\n }\n\n for (Object globallyEngagedModule : globallyEngagedModules) {\n AxisModule module = (AxisModule) globallyEngagedModule;\n if (log.isDebugEnabled()) {\n log.debug(\"Globally engaging module: \" + module.getName());\n }\n }\n if (carbonContextRoot != null) {\n Parameter contextRootParam = new Parameter(\"contextRoot\", carbonContextRoot);\n axisConfig.addParameter(contextRootParam);\n }\n updateHotDeploymentParameter();\n return axisConfig;\n }", "title": "" }, { "docid": "0d71a5e1de9ca6bfcf1d68e4e671d49b", "score": "0.5895834", "text": "private void parseRepositoryConfiguration()\r\n {\n \r\n logger.info(\"parsing configuration...\");\r\n try\r\n {\r\n Document doc =\r\n XmlReader.readXml(getClass().getClassLoader().getResourceAsStream(\r\n REPO_CONFIG_FILE_NAME));\r\n ArrayList<String> repositoryClassNames = new ArrayList<String>();\r\n NodeList nodeList = doc.getElementsByTagName(REPO_CONFIG_NODE_NAME);\r\n Node node = null;\r\n for (int index = 0; index < nodeList.getLength(); index++)\r\n {\r\n node = nodeList.item(index);\r\n repositoryClassNames.add(node.getTextContent());\r\n }\r\n for (String clazz : repositoryClassNames)\r\n {\r\n registerRepository((Class<? extends DatabaseRepository>) Class.forName(clazz));\r\n }\r\n }\r\n catch (SAXException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n catch (IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n catch (ParserConfigurationException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n catch (ClassNotFoundException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "1c2cecc68d7e86d7974df0c406bb9cc4", "score": "0.5565215", "text": "public abstract void loadConfiguration();", "title": "" }, { "docid": "181d7cb8db00fd9b8ff19d7516e19d17", "score": "0.55054474", "text": "public void loadConfig() {\n File file = new File(NetworkConstants.CONFIGURATION_FILE);\n if (!file.exists())\n try {\n file.createNewFile();\n } catch (IOException e1) {\n Logger.error(\"Error creating config file\");\n }\n try {\n FileInputStream stream = new FileInputStream(Constants.CONFIGURATION_FILE);\n configuration.load(stream);\n stream.close();\n } catch (Throwable e) {\n Logger.error(\"Error loading config file\");\n }\n }", "title": "" }, { "docid": "687ea489ee0dd47d30f1936d880f10ef", "score": "0.5411597", "text": "public Configuration load() {\r\n return load(CONFIGURATION_PATH);\r\n }", "title": "" }, { "docid": "d1e03409c33eec4b385349e3a6052efc", "score": "0.5376587", "text": "private void loadConfiguration(String adapterid) throws FileNotFoundException {\n String filepath = DBProxyOrchestrator.getConfigurationFile(adapterid);\n logger.info(\"ConfigParser-->loadConfig from: \" + filepath);\n if (filepath.endsWith(\"xml\")) { // Compatibility mode\n xml = true;\n schemes = new HashMap<String, HashMap<String, String>>();\n DocumentBuilderFactory DOMfactory = DocumentBuilderFactory.newInstance();\n DOMfactory.setCoalescing(true);\n DocumentBuilder DOMbuilder;\n Document doc = null;\n try {\n DOMbuilder = DOMfactory.newDocumentBuilder();\n doc = DOMbuilder.parse(filepath); ///media/ubuntu/disk2/workspace/paasword-framework/database-proxy/src/main/resources/config/ManualDistributionAdapterConfig.xml\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n conf = getXMLRootMapping(doc,adapterid);\n //store result\n configmap.put(filepath, this);\n }//if\n }", "title": "" }, { "docid": "3d23ac603e028db1dcc89af1754dd56f", "score": "0.53461593", "text": "private static ConfigurationImpl load(Context context)\n {\n ConfigurationImpl config = null;\n try\n {\n\n File configFile = null, localizedFile = null;\n\n // CONFIGURATION\n long lastUpdate = context.getPackageManager()\n .getPackageInfo(context.getApplicationContext().getPackageName(), 0).lastUpdateTime;\n\n File assetFolder = AlfrescoStorageManager.getInstance(context).getConfigurationFolder();\n String configName = context.getString(R.string.config_asset_prefix) + \"_\"\n + context.getString(R.string.config_asset_file);\n configFile = new File(assetFolder, configName);\n\n if (!configFile.exists() || configFile.lastModified() < lastUpdate)\n {\n String assetfilePath = context.getString(R.string.config_asset_path) + configName;\n org.alfresco.mobile.android.api.utils.IOUtils.copyFile(context.getAssets().open(assetfilePath),\n configFile);\n }\n\n // LOCALIZATION\n String localizedName = context.getString(R.string.asset_folder_prefix) + \"_\"\n + context.getString(R.string.config_asset_messages_file);\n localizedFile = new File(assetFolder, localizedName);\n\n if (!localizedFile.exists() || localizedFile.lastModified() < lastUpdate)\n {\n try\n {\n org.alfresco.mobile.android.api.utils.IOUtils.copyFile(\n context.getAssets()\n .open(context.getString(R.string.config_asset_messages_path) + localizedName),\n localizedFile);\n }\n catch (IOException e)\n {\n // No messages file. we ignore translation\n }\n }\n StringHelper stringConfig = StringHelper.load(localizedFile);\n\n // Try to retrieve configuration data\n FileInputStream inputStream = new FileInputStream(configFile);\n Map<String, Object> json = JsonUtils.parseObject(inputStream, \"UTF-8\");\n\n // Try to retrieve the configInfo if present\n ConfigInfo info = null;\n if (json.containsKey(ConfigTypeIds.INFO.value()))\n {\n info = ConfigInfoImpl.parseJson(JSONConverter.getMap(json.get(ConfigTypeIds.INFO.value())));\n }\n\n // Finally create the configuration\n config = ConfigurationImpl.parseJson(null, json, info, stringConfig);\n if (AlfrescoAccountManager.getInstance(context).getDefaultAccount() != null)\n {\n config.setPersonId(AlfrescoAccountManager.getInstance(context).getDefaultAccount().getUsername());\n }\n }\n catch (Exception e)\n {\n Log.w(TAG, Log.getStackTraceString(e));\n }\n return config;\n }", "title": "" }, { "docid": "e778a61abaca6748529995ddad702525", "score": "0.5314296", "text": "public static Configuration loadConfiguration() {\n\t\treturn loadConfiguration(\"config\");\n\t}", "title": "" }, { "docid": "ec13e9c8bae22cc41ec1ac247202b110", "score": "0.52819353", "text": "public void loadConfig(String config) {}", "title": "" }, { "docid": "045a21384504489e25fffe308e6152d4", "score": "0.5276319", "text": "public void load() {\r\n // Load config values from the default location application.conf\r\n logger.info(\"Loading config data...\");\r\n Config conf = ConfigFactory.load();\r\n Currency c = Currency.getInstance(conf.getString(\"expense-manager.currency\"));\r\n state.setCurrency(c);\r\n state.addAccounts(load(file_accounts, new TypeToken<List<Account>>() {}.getType()));\r\n state.addBudgets(load(file_budgets, new TypeToken<List<Budget>>() {}.getType()));\r\n state.addCategories(load(file_categories, new TypeToken<List<Category>>() {}.getType()));\r\n }", "title": "" }, { "docid": "9165f1d5e257a2d08181eb73e6154a72", "score": "0.5274305", "text": "public AxisConfiguration getAxisConfiguration() throws AxisFault {\n //ClassLoader origTccl = Thread.currentThread().getContextClassLoader();\n //Thread.currentThread().setContextClassLoader(getClass().getClassLoader());\n log.info(\"Creating tenant AxisConfiguration for tenant: \" +\n getTenantString(tenantDomain, tenantId));\n PrivilegedCarbonContext.startTenantFlow();\n try {\n PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n carbonContext.setTenantId(tenantId);\n carbonContext.setTenantDomain(tenantDomain);\n\n //TODO Refactor the code use only one mechanism to populate CarbonContext.\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(tenantDomain, true);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantId(tenantId);\n\n if (log.isDebugEnabled()) {\n log.debug(\"Axis2 repo: \" + repoLocation);\n }\n populateAxisConfig();\n addDeployer(new ModuleDeployer(), repoLocation + File.separator +\n \"axis2modules\", \"mar\");\n axisConfig.setConfigurator(this);\n\n //TODO: May need to set certain parameters into the AxisConfig\n\n // Hot deployment & update should be turned on for tenants\n axisConfig.addParameter(new Parameter(DeploymentConstants.TAG_HOT_DEPLOYMENT,\n \"true\"));\n axisConfig.addParameter(new Parameter(DeploymentConstants.TAG_HOT_UPDATE,\n \"true\"));\n\n globallyEngagedModules = axisConfig.getEngagedModules();\n loadRepository(repoLocation);\n\n // set the service class loader in the axisConfig, this is needed due to ghost deployer\n // as the service deployer is no longer treated as a special case, we have to do this\n File axis2ServicesDir = new File(repoLocation,\n CarbonUtils.getAxis2ServicesDir(axisConfig));\n if (axis2ServicesDir.exists()) {\n axisConfig.setServiceClassLoader(\n Utils.getClassLoader(axisConfig.getSystemClassLoader(), axis2ServicesDir,\n axisConfig.isChildFirstClassLoading()));\n }\n\n for (Object globallyEngagedModule : globallyEngagedModules) {\n AxisModule module = (AxisModule) globallyEngagedModule;\n if (log.isDebugEnabled()) {\n log.debug(\"Globally engaging module: \" + module.getName());\n }\n }\n\n // Remove all the transports made available in the tenant's axis2.xml\n axisConfig.getTransportsOut().clear();\n\n // Remove all in-transports made available in the tenant's axis2.xml\n axisConfig.getTransportsIn().clear();\n\n // Add the transports that are made available in the main axis2.xml file\n TenantAxisUtils.setTenantTransports(mainAxisConfig, tenantDomain, axisConfig);\n\n } finally {\n PrivilegedCarbonContext.endTenantFlow();\n //Thread.currentThread().setContextClassLoader(origTccl);\n }\n return axisConfig;\n }", "title": "" }, { "docid": "eaf17f6e30b45f9ddf665cc7c693d4c2", "score": "0.5249543", "text": "public FindConfig() {\n try {\n props = new Properties();\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n java.io.InputStream inputstream = null;\n if (cl != null) {\n // inputstream = cl.getResourceAsStream(ConfigUrl);\n inputstream = getClass().getResourceAsStream(ConfigUrl);\n }\n if (inputstream == null) {\n System.out.println(\"inputstream is null in FindInConfig \");\n } else {\n props.load(inputstream);\n }\n } catch (Exception exception) {\n System.out.println(\"file not find in FindInConfig\" + exception.toString());\n return;\n }\n }", "title": "" }, { "docid": "0921318b5b98389f90fbc3653d1565d9", "score": "0.52261835", "text": "public MuConfigurationSource(String path) throws FileNotFoundException {setConfigurationFile(path);}", "title": "" }, { "docid": "01d4421034716284fbcd0e0da22bee55", "score": "0.5183002", "text": "private void loadConfiguration(Handler<AsyncResult<JsonObject>> resultHandler) {\n\t\tLOGGER.info(\"Loading configuration from config.json.\");\n\t\tConfigStoreOptions fileStore = new ConfigStoreOptions().setType(\"file\")\n\t\t\t\t.setConfig(new JsonObject().put(\"path\", \"config/config.json\"));\n\t\tConfigRetrieverOptions options = new ConfigRetrieverOptions().addStore(fileStore);\n\n\t\tConfigRetriever retriever = ConfigRetriever.create(vertx, options);\n\n\t\tretriever.getConfig(ar -> {\n\t\t\tif (ar.failed()) {\n\t\t\t\tLOGGER.error(\"Failed to read the configuration from config.json.\");\n\t\t\t} else {\n\t\t\t\tJsonObject config = ar.result();\n\t\t\t\tresultHandler.handle(Future.succeededFuture(config));\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "58d231dbac6fae0bacacd8b21ca98d8a", "score": "0.5171942", "text": "ConfigData get(String path);", "title": "" }, { "docid": "07b50b25a06b17feba449b5e6ca2bfdc", "score": "0.5118595", "text": "public static void loadConfig()\r\n\t{\r\n\t\tloadConfig(DIR_PATH + DEFAULT_CFG_FILE_NAME);\r\n\t}", "title": "" }, { "docid": "85cf82cb9772a3f65ae2785e39bc6e58", "score": "0.51139194", "text": "@Test\r\n public void testFindConfigurationByPath() {\r\n ConfigurationRepositoryJson repo = new ConfigurationRepositoryJson();\r\n Configuration conf = repo.findConfigurationByPath(\"classpath://conf.json\");\r\n assertNotNull(conf);\r\n assertEquals(5, conf.getUris().size());\r\n }", "title": "" }, { "docid": "ee5c5495f9edc89a4bed7361ea580bec", "score": "0.51047844", "text": "public static void readConfig() {\n Configuration cfg = CommonProxy.config;\n try {\n cfg.load();\n initRoadBlockConfig(cfg);\n initShoeConfig(cfg);\n } catch (Exception e1) {\n RoadRunnerMod.logger.log(Level.ERROR, \"Problem loading config file!\", e1);\n } finally {\n if (cfg.hasChanged()) {\n cfg.save();\n }\n }\n }", "title": "" }, { "docid": "5a4d2a9e8287d7e31f4dc9d0510993e1", "score": "0.51047564", "text": "public Configuration(String configPath){\n this.properties = new Properties();\n this.configPath = configPath;\n ClassLoader classLoader = getClass().getClassLoader();\n try (InputStream in = classLoader.getResourceAsStream(configPath)) {\n properties.load(in);\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "feba9976dff736cfb34f3ae6fafe50b8", "score": "0.5090107", "text": "public String getConfigPath();", "title": "" }, { "docid": "552d47bb9c2b3ffec9d58c0baf42da5e", "score": "0.5080077", "text": "public Queries load() throws MonitorIOException\n {\n log.info(\"Loading config from: \"+this.filePath);\n\n try{\n //FileReader reader = new FileReader(filePath);\n\n InputStream is = JaxbConfigPersister.class.getClassLoader().getResourceAsStream(this.filePath);\n InputStreamReader reader = new InputStreamReader(is, \"utf-8\");\n\n\n JAXBContext jc = JAXBContext.newInstance( Queries.class );\n Unmarshaller mc = jc.createUnmarshaller();\n Queries config = (Queries) mc.unmarshal(reader);\n\n\t\t\t\t return config;\n }\n\t\tcatch (/*JAXB*/Exception ex) {\n\t\t\tthrow new MonitorIOException( ex );\n\t\t}\n }", "title": "" }, { "docid": "0d8fd2c58a2299386b6991e699a8b74c", "score": "0.5069402", "text": "public Configuration loadConfiguration() throws IOException {\n String configFile = getConfigFile();\n LOGGER.info(\"Loading configuration from {}\", configFile);\n ObjectMapper mapper = new ObjectMapper();\n File infile = new File(configFile);\n return mapper.readValue(infile, Configuration.class);\n }", "title": "" }, { "docid": "0f10fb4e97eaf7d15aec4d05c399ce7b", "score": "0.50544405", "text": "public void testReadConfigurationNoNamespace() throws Exception {\r\n try {\r\n Util.readConfiguration(JiraManagerWebServiceDelegate.DEFAULT_CONFIG_PATH, \"no_such_namespace\");\r\n fail(\"JiraManagerConfigurationException expected.\");\r\n } catch (JiraManagerConfigurationException ex) {\r\n // success\r\n }\r\n }", "title": "" }, { "docid": "04fb72a6e5036333a4583de2292c456b", "score": "0.50422", "text": "protected File resolveConfigurationFile() {\n File configFile = null;\n try {\n configFile = _configFile.getFile();\n } catch (IOException ex) {\n throw new IllegalArgumentException(\"Cannot find bundle config file : \" + getConfigFile() + \" in the classpath\");\n }\n return configFile;\n }", "title": "" }, { "docid": "f9c1eab1673d1e8b06917c1c422caa2c", "score": "0.50324374", "text": "protected abstract void loadConfig(Context context);", "title": "" }, { "docid": "21f9be5fed6c27c24528c2ba1c415c0a", "score": "0.50061786", "text": "protected abstract void loadConfiguration(String configurationString);", "title": "" }, { "docid": "55ec9f88c72fb5c8bbf57927b2736711", "score": "0.49781522", "text": "public ConfigureInterface locateConfigureInterface (String rootDir, String configPath);", "title": "" }, { "docid": "9579cd801ee84f7ca3981bdd2d1d8ccd", "score": "0.49615875", "text": "private void readConfiguration() throws java.io.IOException, java.io.FileNotFoundException {\r\n\tFile configFile = new File(\"ServerManager\" + getServerName() + \".config\");\r\n\tsetServerConfiguration(new ServerConfiguration(configFile));\r\n\ttimeLastReadConfigFile = System.currentTimeMillis();\r\n}", "title": "" }, { "docid": "0604bac4e67e17391f224110b5f72bbd", "score": "0.49458763", "text": "public void loadConfig(String path) throws IOException{\n\t Reader fileReader = new InputStreamReader(this.getClass()\n .getClassLoader()\n .getResourceAsStream(path));\n\t JsonObject jConfig = Json.parse(fileReader).asObject();\n\t GameConfig.getInstance().setConfig(jConfig.get(\"NEWGAME_TIMEOUT\").asLong(), jConfig.get(\"MAX_PLAYERS\").asInt());\n\t}", "title": "" }, { "docid": "d4860c6e77cbbd7bbf5b472e4e712aa9", "score": "0.49258313", "text": "private static SpyglassConfiguration loadSpyglassConfig(final File configFile) {\r\n \t\tlog.debug(\"Initializing. Reading config from file: \" + configFile);\r\n \t\tSpyglassConfiguration config = null;\r\n \t\t\r\n \t\tif (!configFile.isFile()) {\r\n \t\t\tthrow new RuntimeException(\"Can't find config file '\" + configFile + \"'\");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\tfinal Serializer serializer = new Persister();\r\n \t\t\tconfig = serializer.read(SpyglassConfiguration.class, configFile);\r\n \t\t\t\r\n \t\t\tif (config == null) {\r\n \t\t\t\tthrow new RuntimeException(\"Can't load configuration.\");\r\n \t\t\t}\r\n \t\t\treturn config;\r\n \t\t\t\r\n \t\t} catch (final Exception e) {\r\n \t\t\tMessageDialog.openError(Display.getDefault().getActiveShell(),\r\n \t\t\t\t\t\"Unable to load the SpyGlass configuration\", \"The configuration file '\"\r\n \t\t\t\t\t\t\t+ configFile.getName() + \"' is invalid!\\r\\n\" + e.getLocalizedMessage());\r\n \t\t\tlog.error(\"Unable to load configuration input: \" + e, e);\r\n \t\t\treturn null;\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "89285c8b699d1b5f8808b9f43af8544c", "score": "0.4915632", "text": "private static void loadConfig(){\n\ttry {\n\t config.load(EarthquakeDetector.class.getClassLoader().getResourceAsStream(\"config.properties\"));\n\t} catch (IOException ioe) {\n\t ioe.printStackTrace();\n\t}\n }", "title": "" }, { "docid": "7edfb457bd3678b664c3eb4cc107e544", "score": "0.4907421", "text": "private void loadConfig() throws Exception\n {\n _config = ConfigurationManager.getInstance().getConfig(_xmlConfig.getConfigName());\n if (_config == null)\n throw new Exception(_xmlConfig.getConfigName()+ \" Xml configuration file not found!\");\n\n readConfig();\n }", "title": "" }, { "docid": "90f0f0044d43cb72e6510ded0fd72c7e", "score": "0.48873505", "text": "public void loadConfig()\n {\n if(configFileIsExists()) // check if the config file is exists\n loadConfigFromXmlFile( configuration, CONFIG_DIR+CONFIG_XML_FILENAME);\n else // load from default setting then write it to config file\n {\n configuration = ColorPairsDefaultConfiguration.getDefaultConfiguration();\n writeConfigToXmlFile(configuration , CONFIG_DIR+CONFIG_XML_FILENAME);\n }\n }", "title": "" }, { "docid": "d590332b519e36d74eb70974b2625bab", "score": "0.48608002", "text": "public void load() {\n\t\t System.out.println(\"[Configuration] Loading...\");\n\t\t\n\t\ttry {\n\t\t\tFileReader configurationFile = new FileReader(CFG_FILE);\n\t\t JSONObject obj = (JSONObject) new JSONParser().parse(configurationFile);\n\n\t\t\tfor(Iterator iterator = obj.keySet().iterator(); iterator.hasNext();) {\n\t\t\t String key = (String) iterator.next();\n\t\t\t SAVE_VALUES.put(key, obj.get(key));\n\t\t\t System.out.println(key + \" - \" + obj.get(key));\n\t\t\t}\n\t\t System.out.println(\"[Configuration] Loaded!\\n\\n\");\n\t\t} catch(Exception e) {\n\t\t System.out.println(\"[Configuration] Failed!\\n\\n\");\n\t\t e.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3fc10f4f70dfae5bd6e5799c7783a1ef", "score": "0.48504028", "text": "private Config getConfig() {\n\n // config from the file system\n Config configFile = ConfigFactory.parseFile(new File(configFileName));\n\n // application configuration from the classpath without resolving, this is done after the merge\n ConfigParseOptions parseOptions = ConfigParseOptions.defaults();\n ConfigResolveOptions resolveOptions = ConfigResolveOptions.defaults().setAllowUnresolved(true);\n Config configAll = ConfigFactory.load(\"application\", parseOptions, resolveOptions);\n\n // merge and then resolve\n configAll = configFile.withFallback(configAll).resolve();\n\n configApp = configAll.getConfig(\"com.sothawo.akkabatch\");\n return configAll;\n }", "title": "" }, { "docid": "9a8b6dd3fe766d435ca150a47f80cd4e", "score": "0.4845762", "text": "private void createDefaultConfiguration(File config)\n throws ServletException {\n try {\n OutputStream output = new FileOutputStream(config);\n try {\n InputStream input =\n RepositoryImpl.class.getResourceAsStream(\"repository.xml\");\n try {\n byte[] buffer = new byte[8192];\n int n = input.read(buffer);\n while (n != -1) {\n output.write(buffer, 0, n);\n n = input.read(buffer);\n }\n } finally {\n input.close();\n }\n } finally {\n output.close();\n }\n } catch (IOException e) {\n throw new ServletException(\n \"Failed to copy default configuration: \" + config, e);\n }\n }", "title": "" }, { "docid": "9e439c12655330e9bf043c543c0f2f5f", "score": "0.48419356", "text": "private static Configuration readConfigFile(String name, String dir, Configuration.Schema... schemas) throws IOException {\n\t\tConfiguration.Schema schema = Configuration.toCombinedSchema(schemas);\n\t\tDirectoryRoot root = new DirectoryRoot(dir, BOOT_REGISTRY);\n\t\tPath.Entry<ConfigFile> config = root.get(Trie.fromString(name), ConfigFile.ContentType);\n\t\tif (config == null) {\n\t\t\treturn Configuration.EMPTY(schema);\n\t\t}\n\t\ttry {\n\t\t\t// Read the configuration file\n\t\t\tConfigFile cf = config.read();\n\t\t\t// Construct configuration according to given schema\n\t\t\treturn cf.toConfiguration(schema);\n\t\t} catch (SyntacticException e) {\n\t\t\te.outputSourceError(System.out, false);\n\t\t\tSystem.exit(-1);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "1d3f5476fb8650233dcdee8e364f6870", "score": "0.48378664", "text": "void loadRepoFromXML(String repoXMLPath, boolean toDeleteExistingRepo)\n throws DataAlreadyExistsException, ErrorCreatingNewFileException,\n IOException, InvalidDataException, FileErrorException, JAXBException {\n String errorMsg;\n String currentRepo = getRootPathAsString();\n\n try {\n File file = new File(repoXMLPath);\n JAXBContext jaxbContext = JAXBContext.newInstance(\"Parser\");\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n MagitRepository newMagitRepo = (MagitRepository) jaxbUnmarshaller.unmarshal(file);\n String localRepoName = newMagitRepo.getName();\n\n\n if (MagitUtils.isRepositoryExist(newMagitRepo.getLocation()) && !toDeleteExistingRepo){\n errorMsg = \"The repository already exists in the system!\";\n throw new DataAlreadyExistsException(errorMsg);\n }\n\n if (MagitUtils.isRepositoryExist(newMagitRepo.getLocation()) && toDeleteExistingRepo){\n deleteWC(newMagitRepo.getLocation(), toDeleteExistingRepo);\n File rootFile = new File(newMagitRepo.getLocation());\n rootFile.delete();\n }\n\n XMLValidator validation = new XMLValidator(newMagitRepo, repoXMLPath);\n XMLValidationResult validationResult = validation.StartChecking();\n\n if(validationResult.isValid()) {\n currentBranchs.clear();\n currentObjects.clear();\n currentBranchesNames.clear();\n createNewRepository(newMagitRepo.getLocation(),localRepoName, false);\n setRootPath(newMagitRepo.getLocation());\n updateMainPaths();\n loadBranchesDataFromMagitRepository(newMagitRepo);\n setRepoName(localRepoName);\n MagitRepository.MagitRemoteReference remoteRepo = newMagitRepo.getMagitRemoteReference();\n if(remoteRepo != null){\n localAndRemote.put(Paths.get(newMagitRepo.getLocation()).toString(),remoteRepo.getLocation());\n fetch(remoteRepo.getName());\n }\n\n }\n else {\n throw new InvalidDataException(validationResult.getMessage());\n }\n }\n catch (JAXBException e) {\n errorMsg = \"Error while trying to load a repository from xml file!\\n\" +\n \"Error msg: \" + e.getMessage();\n throw new JAXBException(errorMsg);\n }\n catch (DataAlreadyExistsException e){\n throw e;\n }\n catch (Exception e){\n if(currentRepo.equals(\"Undefined\")) {\n errorMsg = \"Something went wrong while trying to load a new repository from XML file!\\n\" +\n \"Error message: \" + e.getMessage();\n throw new FileErrorException(errorMsg);\n }\n changeRepo(currentRepo, repoName.getValue());\n }\n }", "title": "" }, { "docid": "e761cf878406c88e48fc8e6dd7e5a632", "score": "0.48353145", "text": "public static synchronized FileConfiguration getConfig() {\n if (_config == null) {\n _config = _initConfig(); // read specified .djrava file into _config\n }\n return _config;\n }", "title": "" }, { "docid": "d23e4087f87a1abe686067eb48d8c87b", "score": "0.4829194", "text": "void loadConfig(){\n file = new File(Config.PROPERTIES_FILE_NAME);\n if(file.exists()){ \n try{\n //Loading Config\n FileInputStream fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n properties = (Config)ois.readObject();\n ois.close();\n fis.close();\n }catch(IOException ioe){\n // code for handling exception\n System.out.println(\"Error loading config\\n\" + ioe);\n }\n catch(Exception e){\n // code for handling exception\n System.out.println(\"Error loading config\\n\" + e);\n }\n \n if (!properties.getDbURL().equals(\"\")){\n txtPath.setText(properties.getDbURL());\n }\n \n if(properties.getLocalPort() >= 0 ){\n txtPort.setText(String.valueOf(properties.getLocalPort()));\n }\n }\n \n }", "title": "" }, { "docid": "9bd970ce3f4921e28b294c1686ae6960", "score": "0.4789101", "text": "public static Configuration loadConfigProperties() {\n\n Configuration conf = new Configuration();\n\n LOGGER.info(\"Loading... \" + Constant.AUTH_CONF_PROPERTIES);\n\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n\n Properties properties = new Properties();\n\n try {\n\n properties.load(classLoader.getResourceAsStream(Constant.AUTH_CONF_PROPERTIES));\n\n } catch(IOException e) {\n\n LOGGER.error(\"Exception Caught : \" + e);\n throw new AuthException(HttpServletResponse.SC_BAD_REQUEST, ErrorCode.AUTH_LOAD_FAILED);\n\n }\n\n conf.setIpAddr(properties.getProperty(Constant.AUTH_CONF_IP));\n\n conf.setPortNo(properties.getProperty(Constant.AUTH_CONF_PORT));\n\n conf.setService(properties.getProperty(Constant.AUTH_CONF_SERVICE));\n\n conf.setPolicy(properties.getProperty(Constant.AUTH_CONF_POLICY));\n\n conf.setRights(properties.getProperty(Constant.AUTH_CONF_RIGHTS));\n\n LOGGER.info(\"Service Name = \" + conf.getService());\n\n return conf;\n }", "title": "" }, { "docid": "98bc26050aea8b5f522a8b66d9f4dadf", "score": "0.47845736", "text": "public static Object loadConfig() throws ConfigSingletonException {\n\t\tif(getInstance().configPath == null) {\n\t\t\t// System.out.println(\"configPath not set. Use setConfigPath() to set it.\");\n\t\t\tthrow new ConfigSingletonException(\"configPath not set. Use setConfigPath() to set it.\");\n\t\t}\n\t\t\n\t\tYaml yaml = new Yaml();\n\t\tString document = null;\n\t\tFileReader fr = null;\n\t\t\n\t\ttry {\n\t\t\tfr = new FileReader(getInstance().configPath);\n\t\t}\n\t\t\n\t\tcatch (FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn new Object();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\treturn yaml.load(fr);\n\t\t}\n\t\t\n\t\tcatch (YAMLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn new Object();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e9ecb227f37f88c9d56a1ffb2dbcedc2", "score": "0.47744718", "text": "public void loadConfiguration( String configFile, String sourceFolder ) throws Exception { What are the locale to handle?\n //\n localeList = new ArrayList<>();\n rootDirectories = new ArrayList<>();\n filesToAvoid = new ArrayList<>();\n xmlFolders = new ArrayList<>();\n\n FileObject file = KettleVFS.getFileObject( configFile );\n if ( file.exists() ) {\n try {\n Document doc = XMLHandler.loadXMLFile( file );\n Node configNode = XMLHandler.getSubNode( doc, \"translator-config\" );\n\n referenceLocale = XMLHandler.getTagValue( configNode, \"reference-locale\" );\n\n singleMessagesFile = XMLHandler.getTagValue( configNode, \"single-messages-file\" );\n\n Node localeListNode = XMLHandler.getSubNode( configNode, \"locale-list\" );\n int nrLocale = XMLHandler.countNodes( localeListNode, \"locale\" );\n if ( nrLocale > 0 ) {\n localeList.clear();\n }\n for ( int i = 0; i < nrLocale; i++ ) {\n Node localeNode = XMLHandler.getSubNodeByNr( localeListNode, \"locale\", i );\n String locale = XMLHandler.getTagValue( localeNode, \"code\" );\n localeList.add( locale );\n }\n\n Node phrasesNode = XMLHandler.getSubNode( configNode, \"scan-phrases\" );\n int nrPhrases = XMLHandler.countNodes( phrasesNode, \"scan-phrase\" );\n scanPhrases = new String[nrPhrases];\n for ( int i = 0; i < nrPhrases; i++ ) {\n Node phraseNode = XMLHandler.getSubNodeByNr( phrasesNode, \"scan-phrase\", i );\n scanPhrases[i] = XMLHandler.getNodeValue( phraseNode );\n }\n\n Node rootsNode = XMLHandler.getSubNode( configNode, \"source-directories\" );\n int nrRoots = XMLHandler.countNodes( rootsNode, \"root\" );\n if ( nrRoots > 0 ) {\n rootDirectories.clear();\n }\n for ( int i = 0; i < nrRoots; i++ ) {\n Node rootNode = XMLHandler.getSubNodeByNr( rootsNode, \"root\", i );\n String directory = XMLHandler.getNodeValue( rootNode );\n directory = sourceFolder + File.separator + directory;\n rootDirectories.add( directory );\n }\n\n Node filesNode = XMLHandler.getSubNode( configNode, \"files-to-avoid\" );\n int nrFiles = XMLHandler.countNodes( filesNode, \"filename\" );\n if ( nrFiles > 0 ) {\n filesToAvoid.clear();\n }\n for ( int i = 0; i < nrFiles; i++ ) {\n Node fileNode = XMLHandler.getSubNodeByNr( filesNode, \"filename\", i );\n String filename = XMLHandler.getNodeValue( fileNode );\n filesToAvoid.add( filename );\n }\n\n Node foldersToScanNode = XMLHandler.getSubNode( configNode, \"xml-folders-to-scan\" );\n int nrFolders = XMLHandler.countNodes( foldersToScanNode, \"xml-folder-to-scan\" );\n if ( nrFolders > 0 ) {\n xmlFolders.clear();\n }\n for ( int i = 0; i < nrFolders; i++ ) {\n Node folderToScanNode = XMLHandler.getSubNodeByNr( foldersToScanNode, \"xml-folder-to-scan\", i );\n String folderName = sourceFolder + File.separator + XMLHandler.getTagValue( folderToScanNode, \"folder\" );\n String wildcard = XMLHandler.getTagValue( folderToScanNode, \"wildcard\" );\n String keyPrefix = XMLHandler.getTagValue( folderToScanNode, \"key-prefix\" );\n SourceCrawlerXMLFolder xmlFolder = new SourceCrawlerXMLFolder( folderName, wildcard, keyPrefix );\n\n Node elementsNode = XMLHandler.getSubNode( folderToScanNode, \"elements-to-scan\" );\n int nrElements = XMLHandler.countNodes( elementsNode, \"element-to-scan\" );\n for ( int j = 0; j < nrElements; j++ ) {\n Node elementNode = XMLHandler.getSubNodeByNr( elementsNode, \"element-to-scan\", j );\n String element = XMLHandler.getTagValue( elementNode, \"element\" );\n String tag = XMLHandler.getTagValue( elementNode, \"tag\" );\n String attribute = XMLHandler.getTagValue( elementNode, \"attribute\" );\n xmlFolder.getElements().add( new SourceCrawlerXMLElement( element, tag, attribute ) );\n }\n\n String defaultPackage = XMLHandler.getTagValue( folderToScanNode, \"package-default\" );\n xmlFolder.setDefaultPackage( defaultPackage );\n String defaultSourceFolder = XMLHandler.getTagValue( folderToScanNode, \"package-source-folder\" );\n xmlFolder.setDefaultSourceFolder( sourceFolder + File.separator + defaultSourceFolder );\n\n Node packageExceptionsNode = XMLHandler.getSubNode( folderToScanNode, \"package-exceptions\" );\n int nrExceptions = XMLHandler.countNodes( packageExceptionsNode, \"package-exception\" );\n for ( int j = 0; j < nrExceptions; j++ ) {\n Node packageExceptionNode = XMLHandler.getSubNodeByNr( packageExceptionsNode, \"package-exception\", j );\n String startsWith = XMLHandler.getTagValue( packageExceptionNode, \"starts-with\" );\n String packageName = XMLHandler.getTagValue( packageExceptionNode, \"package\" );\n xmlFolder.getPackageExceptions().add( new SourceCrawlerPackageException( startsWith, packageName ) );\n }\n\n xmlFolders.add( xmlFolder );\n }\n\n System.out.println( BaseMessages.getString( PKG, \"i18n.Log.XMLFoldersToScan\", xmlFolders.size() ) );\n for ( SourceCrawlerXMLFolder xmlFolder : xmlFolders ) {\n System.out.println( BaseMessages.getString( PKG, \"i18n.Log.Folder\", xmlFolder.getFolder(), xmlFolder\n .getWildcard(), xmlFolder.getElements().size() ) );\n }\n } catch ( Exception e ) {\n log.logError( \"Translator\", \"Error reading translator.xml\", e );\n }\n }\n }", "title": "" }, { "docid": "01d68714e70b42856946cec2822fa9dd", "score": "0.47682112", "text": "private void load(String name) throws FileAccessException, NoResultException {\n // Get the configuration file\n File file = mFiles.get(name);\n\n // Check configuration file's existence\n if( file != null ) {\n // Get the corresponding factory\n IFactory factory = mFactories.get(name);\n\n // Determine the experiment dictionary according to given path\n if (!file.exists()) {\n throw new NoResultException(\"Configuration file for '\" + \n factory.getPluginLabel() + \"' plug-in doesn't exist:\\n\" + \n file.getAbsolutePath()\n );\n }\n\n // Parse the XML configuration file\n SAXBuilder xmlFile = new SAXBuilder(XMLReaders.DTDVALIDATING);\n Document config;\n try {\n config = xmlFile.build(file);\n }\n catch (JDOMException e1) {\n throw new FileAccessException(\"Error while to parsing the configuration!\\n\" + file.getAbsolutePath() + \"\\n\" + e1.getMessage(), e1);\n }\n catch (IOException e1) {\n throw new FileAccessException(\"An I/O error prevent parsing configuration!\\n\" + file.getAbsolutePath() + \"\\n\" + e1.getMessage(), e1);\n }\n\n // Get the XML file root\n Element root = config.getRootElement();\n\n // Load global section: parameters for all configurations of that plugin\n List<ConfigParameter> params = loadGlobalSection(root);\n\n // Load each data model configuration\n List<?> nodes = root.getChildren(\"dataset-model\");\n Element elem;\n Vector<ConfigGeneric> configurations = new Vector<ConfigGeneric>();\n ConfigGeneric conf;\n for( Object node : nodes ) {\n elem = (Element) node;\n conf = new ConfigGeneric(elem, params);\n configurations.add(conf);\n }\n mConfigurations.put(name, configurations);\n mInitialized.put(name, true);\n }\n }", "title": "" }, { "docid": "9d62a31100d229af6fc74b277ef90cfc", "score": "0.4747077", "text": "public static Configuration initialize() throws Exception{\n\t\tXMLService xml = XMLService.getInstance();\n\t\tURL path = Thread.currentThread().getContextClassLoader().getResource(\"\");\n\t\tPath p = Paths.get(path.toURI());\n\t\tSystem.out.println(p);\n\t\tp.resolve(\"SysConfig.xml\");\n\t\tString location = p.toString() + \"/SysConfig.xml\";\n\t\tp = Paths.get(location);\n\t\tSystem.out.println(p);\n\t\tURI Path = p.toUri();\n\t\tURL xmlPath = Path.toURL();\n\t\tConfiguration c = xml.parseXML(xmlPath.openStream());\n\t\tPath pluginInfo = Paths.get(c.getChild(\"Locationofplugininfoxml$1\").getText());\n\t\tString frequencyLocation = c.getChild(\"frequencyfileLocation$1\").getText();\n\t\tmapper = Mapping.getOneInstance(pluginInfo.toUri(), frequencyLocation);\n\t\treturn c;\n\t}", "title": "" }, { "docid": "c3787eaeade0f130c557f61821667f34", "score": "0.47385544", "text": "public void readCfg(String cfgPath) {\n }", "title": "" }, { "docid": "83215e4d54e4f54c5a2f3214c63c60d6", "score": "0.4735734", "text": "@Override\n public void init() {\n InputStream file;\n Yaml yaml = new Yaml();\n try {\n file = getClass().getClassLoader().getResourceAsStream(ymlFileName);\n\n if (file == null) {\n file = getClass().getClassLoader().getResourceAsStream(yamlFileName);\n }\n\n if (file != null) {\n log.info(\"Loading configuration from YAML file.\");\n\n Object yamlParsed = yaml.load(file);\n\n if (yamlParsed instanceof Map) {\n config = (Map<String, Object>) yamlParsed;\n } else {\n log.info(\"Configuration YAML is malformed as it contains an array at the root level. Skipping.\");\n }\n\n file.close();\n }\n } catch (IOException e) {\n log.info(\"Couldn't successfully process the YAML configuration file.\" +\n \"All your properties may not be correctly loaded\");\n }\n\n // parse yaml file to Map<String, Object>\n if (config == null) {\n\n try {\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propertiesFileName);\n\n if (inputStream != null) {\n\n log.info(\"Loading configuration from .properties file \" + propertiesFileName);\n\n properties = new Properties();\n properties.load(inputStream);\n }\n\n inputStream.close();\n } catch (Exception e) {\n log.info(\"Properties file not found.\");\n }\n\n }\n if (config != null || properties != null) {\n log.info(\"Configuration successfully read.\");\n } else {\n log.info(\"Unable to load configuration from file. No configuration files were found.\");\n }\n }", "title": "" }, { "docid": "0d5977f9806ecbfb268fafc48f83ebb0", "score": "0.4734031", "text": "private static AgentConfiguration load() throws FileNotFoundException, IOException\n\t{\n\t\tif (!EXTERNAL) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(new File(\"loupe.properties\"))) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\tAgentConfiguration config = new AgentConfiguration(props);\n\t\t\t\tconfig.sanitize();\n\t\t\t\treturn config;\n\t\t\t}\n\t\t} else {\n\t\t\treturn new AgentConfiguration();\n\t\t}\n\t}", "title": "" }, { "docid": "97875b9e2acd71a82afabe1ce789600a", "score": "0.4715818", "text": "public static ArtemisConfiguration fromFile(String path) {\n Path configPath = Paths.get(path);\n try {\n return new ArtemisConfiguration(Configuration.fromToml(configPath, schema));\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "title": "" }, { "docid": "30ed2b16d98c3cf483d487cc40888b1c", "score": "0.47050765", "text": "public static void LoadConfig() throws IOException {\n\t\tFile f=new File(\"D:\\\\workspace\\\\workspace\\\\workspace\\\\GloBoard-api\\\\src\\\\com\\\\resrAssured\\\\gloBoard\\\\config\\\\config.properties\");\n\t\ttry {\n\t\t\tfs = new FileInputStream(f);\n\t\t\tconfig = new Properties();\n\t\tconfig.load(fs);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tfs.close();\n\t\t}\n\t}", "title": "" }, { "docid": "96601b6ca9fba8b20ff037ef171ef63d", "score": "0.4695489", "text": "private void readConfigFile(String path) {\n List<String> cache = new ArrayList<String>(); // cache configuration parameters\n try{\n BufferedReader br = new BufferedReader(new FileReader(path));\n String line = null;\n\n while((line = br.readLine()) != null) {\n cache.add(line);\n }\n br.close();\n\n } catch(IOException e) {\n e.printStackTrace();\n }\n\n // set up configurations\n this.mConfigs = new Config(cache);\n this.mConfigs.setCONFIGPATH(path);\n\n }", "title": "" }, { "docid": "a3728db283a5b7404a4c9da3961edb9a", "score": "0.46888012", "text": "public void testReadConfigurationForNoFile() throws Exception {\r\n try {\r\n Util.readConfiguration(\"a\", \"any_namespace\");\r\n fail(\"JiraManagerConfigurationException expected.\");\r\n } catch (JiraManagerConfigurationException ex) {\r\n // success\r\n }\r\n }", "title": "" }, { "docid": "e4fab96f6230268abc8fbfba46ec3640", "score": "0.46800184", "text": "private Config readConfig() {\n\t\tConfig config = null;\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\n\t\t\t\t\tconfig.getConfigFileName());\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tconfig = (Config) in.readObject();\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t} catch (IOException i) {\n\t\t\ti.printStackTrace();\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Config class not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\n\t\treturn config;\n\t}", "title": "" }, { "docid": "43c1b190bfdab2fa8a4821b52c66ee92", "score": "0.46725833", "text": "private void loadApiClientConfiguration(int apiPort) throws IOException, InterruptedException, JSONException, NoSuchAlgorithmException, KeyManagementException {\n\n Yaml yaml = new Yaml();\n InputStream inputStream = new FileInputStream(\"src/test/resources/\" + environment.getConfigName());\n yamlMap = yaml.load(inputStream);\n String oktaUrl = yamlMap.get(\"okta-url\");\n baseUrl = yamlMap.get(\"base-url\");\n\n // With a local url add the API port to the domain name (localhost)\n if (environment == Environment.CI || environment == Environment.LOCAL) {\n baseUrl += \":\" + apiPort;\n }\n\n String oktaClientId = System.getenv(\"OKTA_CLIENT_ID\");\n String oktaPassword = System.getenv(\"OKTA_CLIENT_PASSWORD\");\n\n apiClient = new APIClient(baseUrl, oktaUrl, oktaClientId, oktaPassword);\n\n // add in later\n //uploadOrgStructureReport();\n //uploadAttestationReport();\n }", "title": "" }, { "docid": "0cc49a724c5f36c7f8c6747e7f05478a", "score": "0.4666349", "text": "public void loadConfig(String fileName) throws IOException {\n String workingDir = System.getProperty(\"user.dir\") + \"\\\\config\\\\\" + fileName;\n try (BufferedReader br = new BufferedReader(new FileReader(workingDir))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] splitLine = line.split(\"\\t\");\n stringParser(splitLine);\n }\n } catch (FileNotFoundException f) {\n createConfig(workingDir);\n loadConfig(fileName);\n }\n }", "title": "" }, { "docid": "9877b7d751b0939f3205ed294463bc70", "score": "0.46635687", "text": "private Configuration load(Path file)\n throws FileTypeException, IOException {\n return this.filesaver.generateFile(file).importConfiguration();\n }", "title": "" }, { "docid": "3a236ba5bc1eb91f454e86d60578698b", "score": "0.46596152", "text": "public static Configuration readConfiguration(String srcPath) {\n\n logger.info(\"Reading configuration file \" + srcPath );\n Map<String, String> map = new HashMap<String, String>(); //Hash map with JSON values\n //Object that process JSON data\n org.codehaus.jackson.map.ObjectMapper jacksonMapper = new org.codehaus.jackson.map.ObjectMapper();\n\n File src; //configuration file\n Configuration config = new Configuration(); //Configuration POJO object\n\n if(srcPath == null || srcPath.isEmpty()) {\n src = new File(\"./config.json\"); //Default file config\n } else {\n src = new File(srcPath);\n }\n try {\n config = jacksonMapper.readValue(src, Configuration.class);\n config.getFilter().createAllowedInstanceIdsHashSet();\n config.getFilter().createAllowedMetricNamesHashSet();\n System.out.println(config.toString());\n\n //if there is an error reading configuration, program finish\n } catch (JsonParseException e) {\n logger.log(Level.SEVERE, \"Error reading JSON configuration file, exiting...\", e);\n e.printStackTrace();\n System.exit(1);\n } catch (IOException e) {\n logger.log(Level.SEVERE, \"Input/Output Error when try to read configuration file, exiting...\", e);\n e.printStackTrace();\n System.exit(1);\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"Error reading JSON configuration file, exiting...\", e);\n e.printStackTrace();\n System.exit(1);\n }\n return config;\n }", "title": "" }, { "docid": "a6fda085addea80475635957e1bedcf8", "score": "0.46538115", "text": "public void readConfig() {\n if (configPath.toFile().exists()) {\n try {\n String[] temp = Files.readString(configPath).split(\"&&&\");\n boolean isHostSet = false;\n boolean isPortSet = false;\n boolean isRepoPathSet = false;\n\n for (int i = 0; i < temp.length; i++) {\n if (temp[i].equals(\"host\")) {\n host = temp[i + 1];\n isHostSet = true;\n }\n if (temp[i].equals(\"port\")) {\n port = Integer.parseInt(temp[i + 1]);\n isPortSet = true;\n }\n if (temp[i].equals(\"repo\")) {\n Path repo = Paths.get(temp[i + 1]);\n if (Files.notExists(repo)) {\n repo.toFile().mkdir();\n }\n repoPath = repo.toString();\n isRepoPathSet = true;\n }\n }\n if (!isHostSet || !isPortSet || !isRepoPathSet) setDefaults();\n LOGGER.info(\"Network settings initialized: \" + host + \" | \" + port);\n System.out.println(String.format(\"Network settings initialized: host - %1$s, port - %2$d\", host, port));\n return;\n } catch (IOException e) {\n LOGGER.error(TO_CON, \"SWW reading config file.\", LOGGER.throwing(e));\n }\n }\n setDefaults();\n }", "title": "" }, { "docid": "d9d017ba6840d9e6efe4b70c4dcea970", "score": "0.46345934", "text": "public static BotConfiguration loadConfiguration(String[] argv) {\n CommandLine cmd = getCommandLine(argv);\n BotConfiguration config = null;\n\n if (cmd.hasOption(\"help\")) {\n AppController.printHelp(OPTS);\n System.exit(0);\n } else if (cmd.hasOption(\"version\")) {\n AppController.printVersion();\n System.exit(0);\n }\n\n if (cmd.hasOption(\"configuration\")) {\n String configPath = cmd.getOptionValue(\"configuration\");\n config = BotConfiguration.fromYaml(configPath);\n } else {\n config = new BotConfiguration();\n }\n\n if (cmd.hasOption(\"debug\")) {\n config.setDebug(true);\n }\n\n String args[] = cmd.getArgs();\n\n if (config.isDebug()) {\n // TODO\n }\n\n return config;\n }", "title": "" }, { "docid": "ee4c933d20e02ddea3de1e4a33e4b835", "score": "0.46248552", "text": "@Override\r\n\tpublic void configure(String configPath) {\n\r\n\t}", "title": "" }, { "docid": "3a3d5af1a0327ad55be57c79f8c71dad", "score": "0.46211296", "text": "public static void loadNamespaces() throws Exception {\n ConfigManager configManager = ConfigManager.getInstance();\n\n try {\n releaseNamespaces();\n configManager.add(CONFIG_FILE);\n } catch (ConfigManagerException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e63b7f8968e1e1de469b4d2a792b7b5a", "score": "0.4617867", "text": "private OMElement initializeOMElement(String absoluteFilePath) throws\n UserStoreConfigurationDeployerException {\n StAXOMBuilder builder;\n InputStream inStream = null;\n try {\n inStream = new FileInputStream(absoluteFilePath);\n builder = new StAXOMBuilder(inStream);\n return builder.getDocumentElement();\n } catch (FileNotFoundException e) {\n String errMsg = \" Secondary storage file Not found in given repo \" + absoluteFilePath;\n throw new UserStoreConfigurationDeployerException(errMsg, e);\n } catch (XMLStreamException e) {\n String errMsg = \" Secondary storage file reading for repo = \" + absoluteFilePath + \" failed \";\n throw new UserStoreConfigurationDeployerException(errMsg, e);\n } finally {\n IdentityIOStreamUtils.closeInputStream(inStream);\n }\n }", "title": "" }, { "docid": "6f4d39c2f4f6530ea56550fc142587cf", "score": "0.46163234", "text": "public Config loadConfig(final String configfile) {\n\t\tConfig config;\n\t\tif (configfile != null) {\n\t\t\tconfig = ConfigUtils.loadConfig(configfile);\n\t\t} else {\n\t\t\tconfig = new Config();\n\t\t\tconfig.addCoreModules();\n\t\t}\n\t\tthis.outputDirectory = getOutputDirectory();\n\t\tconfig.controler().setOutputDirectory(this.outputDirectory);\n\t\treturn config;\n\t}", "title": "" }, { "docid": "c11d42edc2e5eea965abe9f516767f14", "score": "0.4611318", "text": "private void readConfigFile() throws Exception {\n java.net.URL configURL = this.getClass().getResource(config_file);\n if (configURL == null) {\n System.out.println(\"Config file not found \" + config_file);\n System.exit(-1);\n }\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(configURL.getFile())));\n String line;\n String left, right;\n int i;\n while ((line = in.readLine()) != null) {\n line = line.intern();\n if (line == \"\") continue;\n i = line.indexOf(\" \");\n if (i < 0) {\n System.out.println(\"Unrecognised line ignored: \" + line);\n continue;\n }\n left = line.substring(0, i).toLowerCase().trim().intern();\n right = line.substring(i + 1).trim().intern();\n if (left.charAt(0) == '#') {\n continue;\n } else if (left == \"soa\") {\n SOA = right.toUpperCase();\n } else if (left == \"policyoid\") {\n OID = right;\n } else if (left == \"pkc\") {\n PKC = right;\n } else if (left == \"ldap\") {\n LDAP = right;\n } else if (left == \"downgradeable\") {\n downgradeable = right == \"1\";\n } else if (left == \"rootldap\") {\n rootDN = right;\n } else if (left == \"passwordldap\") {\n rootPass = right;\n } else if (left == \"signkeypath\") {\n SIGN_KEY_PATH = right;\n } else if (left == \"signkeypassword\") {\n SIGN_KEY_PASSWORD = right;\n } else if (left == \"ldapattributecertificateattribute\") {\n AC_attribute = right;\n } else if (left == \"attributelocation\") {\n DIS_AC_LOCATION = right;\n } else if (left == \"verbose\") {\n verbose = (right == \"true\");\n } else if (left == \"trusted\") {\n trustedProxy.add(issrg.utils.RFC2253NameParser.toCanonicalDN(right));\n } else if (left == \"timeout\") {\n TIME_OUT = (new Integer(right)).intValue();\n } else {\n System.out.println(\"Unrecognised line ignored: \" + line);\n }\n }\n } catch (FileNotFoundException fnfe) {\n throw new FileNotFoundException(\"Config file not found\" + config_file);\n } catch (IOException ioe) {\n throw new IOException(\"Error reading configuration file\");\n }\n }", "title": "" }, { "docid": "5c82ca0496f0809ed2900834a0c0991c", "score": "0.45845687", "text": "public void restoreConfigFromWD(WorkDirectory wd) throws Fault {\n // This code would better belong to BasicSession\n // but it uses some gui features :(\n\n FileHistory h = FileHistory.getFileHistory(wd, \"configHistory.jtl\");\n File latestConfigFile = h.getRelativeLatestEntry(wd.getRoot().getPath(), wd.getPrevWDPath());\n\n // validate location of session file if needed\n if (latestConfigFile != null) {\n if (!cm.getAllowConfigLoadOutsideDefault()) {\n File defaultConfigLoadPath = InterviewEditor.checkLoadConfigFileDefaults(cm);\n\n File dir = new File(latestConfigFile.getAbsolutePath().substring(\n 0, latestConfigFile.getAbsolutePath().\n lastIndexOf(File.separator)));\n\n boolean isMatch = true;\n\n if (dir != null && defaultConfigLoadPath != null) {\n try {\n isMatch = dir.getCanonicalPath().indexOf\n (defaultConfigLoadPath.getCanonicalPath()) == 0;\n } catch (IOException ioe) {\n // use logging subsystem instead when available\n // Internal error in ExecToolManager: exception thrown:\n uif.showError(\"exec.internalError\", ioe);\n return;\n }\n }\n\n if (!isMatch) {\n // resetWorkDirectory();\n uif.showError(\"ce.load.notAllowedDir\", defaultConfigLoadPath);\n return;\n }\n }\n loadInterviewFromFile(wd, latestConfigFile);\n h.add(latestConfigFile);\n\n // final long time = System.currentTimeMillis();\n // interviewParams.load(latestConfigFile);\n //logLoadTime(\"exec.log.iload\",System.currentTimeMillis()-time,\n // workDir, latestConfigFile.getAbsolutePath());\n\n }\n }", "title": "" }, { "docid": "dc2f5af04b0b3600651bde4fda9e4743", "score": "0.45843226", "text": "public void loadConfig(){\n if(appDimension != null && appName != null){\n throw new IllegalStateException(\"Config already loaded\");\n }\n try (var input = new FileInputStream(configPath)) {\n Properties prop = new Properties();\n prop.load(input);\n var windowHeight = Integer.parseInt(prop.getProperty(\"windowHeight\"));\n var windowWidth = Integer.parseInt(prop.getProperty(\"WindowWidth\"));\n gridMargin = Integer.parseInt(prop.getProperty(\"GridMargin\"));\n appDimension = new Dimension(windowWidth, windowHeight);\n appName = prop.getProperty(\"windowName\");\n } catch (IOException ex) {\n logger.log(Level.SEVERE, ex.getMessage());\n return;\n }\n }", "title": "" }, { "docid": "5327ba409ab0f0f75aacaa2eb9b8e283", "score": "0.45833927", "text": "private static ConfigurationBundle loadConfiguration(File ini) {\n SplAccessConfiguration accessConfig = loadAccessConfiguration(ini);\n SplEvaluatorConfiguration evaluatorConfig = loadEvaluatorConfiguration(ini);\n SplDeploymentConfiguration deploymentConfig = loadMeasurementConfiguration(ini);\n\n ConfigurationBundle config = new ConfigurationBundle(accessConfig, evaluatorConfig, deploymentConfig);\n\n return config;\n }", "title": "" }, { "docid": "f32ed4294b1f74932ea5ef5a805edf00", "score": "0.4570771", "text": "@Override\r\n public void init(String configPath) throws Exception {\n \r\n }", "title": "" }, { "docid": "9b07890781faaecf1832630493b2d9e3", "score": "0.45641303", "text": "private void loadProperties() {\n properties = new Properties();\n InputStream input = null;\n try {\n if (configFilePath == null || \"\".equals(configFilePath)) {\n configFilePath = DEFAULT_CONFIG_PATH;\n }\n input = new FileInputStream(configFilePath);\n // load a properties file\n properties.load(input);\n kubernetesMasterUrl = properties.getProperty(\"kubernetes.master.url\");\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "728e12ab40b077b3c326d45da6edb2fd", "score": "0.45504254", "text": "private void loadConfigurations() {\n if (containerConfigs.isEmpty()) {\n loadContainerConfig();\n }\n }", "title": "" }, { "docid": "69d21b4117698169bfa426bc36e92969", "score": "0.45475537", "text": "public File getRepositoryDirectory(String _repo_name);", "title": "" }, { "docid": "5b6fb326c44a4ddc77bf6ec7ae8714ac", "score": "0.45460266", "text": "private void loadSources() throws FileNotFoundException, IOException {\r\n\t\tBufferedReader sourcesConf;\r\n\t\tBufferedReader diseqcConf;\r\n\t\tBufferedReader rotorConf;\r\n\t\tSourceRepository sr;\r\n\r\n\t\tsourcesConf = null;\r\n\t\tdiseqcConf = null;\r\n\t\trotorConf = null;\r\n\r\n\t\ttry {\r\n\t\t\tsourcesConf = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(\"sources.conf\"), \"UTF-8\"));\r\n\t\t\tdiseqcConf = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(\"diseqc.conf\"), \"UTF-8\"));\r\n\t\t\trotorConf = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(\"rotor.conf\"), \"UTF-8\"));\r\n\r\n\t\t\tsr = new SourceRepository(em);\r\n\t\t\tsr.load(ap.getUserId(), sourcesConf, diseqcConf, rotorConf);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tif (sourcesConf != null) {\r\n\t\t\t\tsourcesConf.close();\r\n\t\t\t}\r\n\t\t\tif (diseqcConf != null) {\r\n\t\t\t\tdiseqcConf.close();\r\n\t\t\t}\r\n\t\t\tif (rotorConf != null) {\r\n\t\t\t\trotorConf.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "337915d601479eab9536414fbcff2ec4", "score": "0.45403808", "text": "public static void getConfig(){\n\n try {\n // Import the desired xml configuration file\n SAXBuilder builder = new SAXBuilder();\n Document doc = builder.build(new File(System.getProperty(\"user.dir\") + \"/config.xml\").getAbsoluteFile());\n Element root = (Element) doc.getRootElement();\n\n // Create a list of all the its elements\n List<Element> elements = root.getChildren();\n\n // Iterate through the elements of the file and parse their values\n for(Element el : elements){\n if(\"keepResults\".equalsIgnoreCase(el.getName())){\n keepResults = Boolean.parseBoolean(el.getText());\n }else if(\"rScriptPath\".equalsIgnoreCase(el.getName())){\n String path = el.getText();\n RInvoker.R_BIN_PATH = path;\n }else if(\"threadDepth\".equalsIgnoreCase(el.getName())){\n OptimalParallelBenchmarkAnalyzer.MAX_DEPTH = Integer.parseInt(el.getText());\n }\n }\n } catch (JDOMException e) {\n System.out.println(e.getMessage());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "d78f6f400d4e0b27394e90da902bcf92", "score": "0.45326668", "text": "private void loadChannels() throws FileNotFoundException, IOException {\r\n\t\tBufferedReader channelsCfg;\r\n\t\tChannelRepository cr;\r\n\t\tSourceRepository sr;\r\n\t\tSource source;\r\n\r\n\t\tchannelsCfg = null;\r\n\r\n\t\ttry {\r\n\t\t\tchannelsCfg = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(\"channels.cfg\"), \"ISO-8859-1\"));\r\n\r\n\t\t\tcr = new ChannelRepository(em);\r\n\t\t\tif (ap.getSourceName().equals(\"ALL_SOURCES\")) {\r\n\t\t\t\tcr.load(ap.getUserId(), null, channelsCfg);\r\n\t\t\t} else {\r\n\t\t\t\tsr = new SourceRepository(em);\r\n\t\t\t\tsource = sr.findByName(ap.getUserId(), ap.getSourceName());\r\n\r\n\t\t\t\tif (source != null) {\r\n\t\t\t\t\tcr.load(ap.getUserId(), source, channelsCfg);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.err.println(\"Can't find Source named '\"\r\n\t\t\t\t\t\t\t+ ap.getSourceName() + \"'\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tif (channelsCfg != null) {\r\n\t\t\t\tchannelsCfg.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "667eecba26e3dea98ec670e1727c796a", "score": "0.4522206", "text": "private FileConfiguration getConfig(String folder, String name)\n\t{\n\t\tfile = new File(MMobPlugin.getInstance().getDataFolder() + \"/\" + (folder != null ? folder : \"\"), name);\n\t\tif (!file.exists())\n\t\t{\n\t\t\twasCreated = true;\n\t\t\tLog.log(\"Didn't find file '\" + name + \"', creating it...\");\n\t\t}\n\t\treturn YamlConfiguration.loadConfiguration(file);\n\t}", "title": "" }, { "docid": "c7185a81cd511dbe368b84632c546037", "score": "0.45209685", "text": "DynamicConfig getConfig() throws WorkspaceCommunicationException, CorruptWorkspaceDBException;", "title": "" }, { "docid": "ba7bab8fb499bbd90ede1e8860a34007", "score": "0.45127082", "text": "public ConfigServerProtocol(ConfigRepository conf){\n this.conf = conf;\n }", "title": "" }, { "docid": "143dff8fa913fda9b1940d1ebb92893b", "score": "0.45044175", "text": "private void initializeRepository(KIMBridge bridge, String name, RepositoryConfiguration config) throws ConfigurationException, StateRestoreException {\n\t\tIRepositoryFactory factory = factories.get(config.getFactoryName());\n\t\tif (factory == null) {\n\t\t\tthrow new ConfigurationException(\"Invalid factory name.\");\n\t\t}\n\t\tIDocumentRepository repository = factory.createRepository(name, config);\n\t\tbridge.registerRepository(repository);\n\t}", "title": "" }, { "docid": "edc47d55e14e96cfc00b8671028105a2", "score": "0.45007294", "text": "public static void loadConfig(String path) throws IOException, XMLStreamException {\n\t\tif (path == null) {\n\t\t\tpath = DEFAULT_CONFIG_FILE_NAME;\n\t\t}\n\n\t\t// Create a new XMLInputFactory\n\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t// Create eventReader\n\t\tInputStream in = new FileInputStream(path);\n\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\n\t\twhile (eventReader.hasNext()) {\n\t\t\tXMLEvent event = eventReader.nextEvent();\n\n\t\t\tif (event.isStartElement()) {\n\n\t\t\t\tif (event.asStartElement().getName().getLocalPart().equals(GAME_VERSION)) {\n\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\tsetGameVersion(GameVersion.getEnum(event.asCharacters().getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (event.asStartElement().getName().getLocalPart().equals(BOT_TIME)) {\n\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\tsetBotTime(Integer.parseInt(event.asCharacters().getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (event.asStartElement().getName().getLocalPart().equals(DICTIONARY)) {\n\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\tsetDictionaryFilePath(event.asCharacters().getData());\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eee05b74ca53d75a82e15aa9ac8452e2", "score": "0.44871372", "text": "@Override\n public void loadDataDirConfig() throws InvalidConfigException {\n LOG.info(\"Reading DATA DIRECTORY: \" + dataDir.getDataDir().getAbsolutePath());\n\n LOG.info(\"Loading IPT config ...\");\n cfg.loadConfig();\n\n LOG.info(\"Reloading log4j settings ...\");\n reloadLogger();\n\n if (cfg.getProxy() != null) {\n LOG.info(\"Configuring http proxy ...\");\n try {\n setProxy(cfg.getProxy());\n } catch (InvalidConfigException e) {\n warnings.addStartupError(e);\n }\n }\n\n LOG.info(\"Loading user accounts ...\");\n userManager.load();\n\n LOG.info(\"Loading vocabularies ...\");\n vocabManager.load();\n\n LOG.info(\"Ensure latest versions of default vocabularies are installed...\");\n vocabManager.installOrUpdateDefaults();\n\n File vocabDir = dataDir.configFile(VocabulariesManagerImpl.CONFIG_FOLDER);\n File deprecatedVocabFile = new File(vocabDir, DEPRECATED_VOCAB_PERSISTENCE_FILE);\n if (deprecatedVocabFile.exists()) {\n LOG.info(\"Perform 1-time event: delete deprecated vocabularies.xml file\");\n FileUtils.deleteQuietly(deprecatedVocabFile);\n }\n\n LOG.info(\"Loading extensions ...\");\n extensionManager.load();\n\n if (!dataDir.configFile(RegistrationManagerImpl.PERSISTENCE_FILE_V2).exists()) {\n LOG.info(\"Perform 1-time event: migrate registration.xml into registration2.xml with passwords encrypted\");\n registrationManager.encryptRegistration();\n }\n\n LOG.info(\"Loading registration configuration...\");\n registrationManager.load();\n\n LOG.info(\"Loading resource configurations ...\");\n // default creator used to populate missing resource creator when loading resources\n User defaultCreator = userManager.list(Role.Admin).isEmpty() ? null : userManager.list(Role.Admin).get(0);\n File resourcesDir = dataDir.dataFile(DataDir.RESOURCES_DIR);\n checkResourcesDirAtStartup(resourcesDir);\n resourceManager.load(resourcesDir, defaultCreator);\n\n // start publishing monitor\n LOG.info(\"Starting Publishing Monitor...\");\n publishingMonitor.start();\n }", "title": "" }, { "docid": "a5fe7c001b7d0b68ba61aab3fbfa17c8", "score": "0.4483614", "text": "@Create\r\n\tpublic void init() {\n\t\tconfigFilePath = System.getProperty(KEY_CONFIG_FILE);\r\n\r\n\t\t// sino existe lo busco en el directorio de jboss o home de usuario\r\n\t\tif (configFilePath == null) {\r\n\t\t\tString dirBase = System.getProperty(KEY_JBOSS_CONF_URL);\r\n\r\n\t\t\t// sino esta definido el directorio de jboss uso el directorio home\r\n\t\t\tif (dirBase == null) {\r\n\t\t\t\tdirBase = System.getProperty(KEY_USER_HOME);\r\n\t\t\t} else {\r\n\t\t\t\tdirBase = dirBase + File.separator + \"conf\";\r\n\t\t\t}\r\n\r\n\t\t\tconfigFilePath = dirBase + File.separator + DEFAULT_CONFIG_FILE;\r\n\t\t}\r\n\r\n\t\t// Obtengo el archivo de configuracion\r\n\t\tFile configFile = new File(configFilePath);\r\n\t\tconfig = new Properties();\r\n\t\tif (!configFile.exists()) {\r\n\t\t\t// Sino existe el arhivo de configuracion usa el default del\r\n\t\t\t// classpath\r\n\t\t\ttry {\r\n\t\t\t\tlog.warn(\"No se encuentra archivo de configuraci�n \"\r\n\t\t\t\t\t\t+ configFile.getAbsolutePath());\r\n\t\t\t\tlog.warn(\"Se usar�n archivo de configuraci�n por defecto: \"\r\n\t\t\t\t\t\t+ DEFAULT_CONFIG_FILE);\r\n\t\t\t\tInputStream is = Thread.currentThread().getContextClassLoader()\r\n\t\t\t\t\t\t.getResourceAsStream(DEFAULT_CONFIG_FILE);\r\n\t\t\t\tReader reader = new InputStreamReader(is);\r\n\t\t\t\tconfig.load(reader);\r\n\t\t\t\tlog.info(\"Archivo de configuraci�n cargado correctamente!\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"No se puede cargar archivo de configuracion \"\r\n\t\t\t\t\t\t+ DEFAULT_CONFIG_FILE, e);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t// cargo el archivo definido en config\r\n\t\t\tlog.info(\"Se usa archivo de configuraci�n: \"\r\n\t\t\t\t\t+ configFile.getAbsolutePath());\r\n\t\t\ttry {\r\n\t\t\t\tReader fin = new FileReader(configFile);\r\n\t\t\t\tconfig.load(fin);\r\n\t\t\t\tlog.info(\"Archivo de configuraci�n cargado correctamente!\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"No se puede cargar archivo de configuracion \"\r\n\t\t\t\t\t\t+ configFile.getAbsolutePath(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\tconfig.list(System.out);\r\n\t\t// log.info(this.toString());\r\n\r\n\t}", "title": "" }, { "docid": "0e4c7a18049b485c526c3cd952569d92", "score": "0.4478691", "text": "public ConfigFileReader(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\t\tproperties = new Properties();\n\t\t\ttry{\n\t\t\tproperties.load(reader);\n\t\t\treader.close();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\"Configuration.properties file not found at \"+ filePath);\n\t\t}\n\t}", "title": "" }, { "docid": "a9387b9a750ec6813dfeb229d70829c8", "score": "0.44783443", "text": "public static synchronized void init() {\n File file = new File(CONFIG_PATH);\n if (file.exists()) {\n isConfigured = true;\n FileInputStream inputStream = null;\n ObjectInputStream objectInputStream = null;\n try {\n inputStream = new FileInputStream(file);\n objectInputStream = new ObjectInputStream(inputStream);\n ConnectionConfiguration configuration = (ConnectionConfiguration) objectInputStream.readObject();\n if (configuration.getConfig_type() != null) {\n String configType = EncodeHelperUtil.decodeInstall(configuration.getConfig_type());\n if (CONFIG_TYPE_CONFIG.equalsIgnoreCase(configType)) {\n connectionType = ConnectionType.CONFIG;\n } else if (CONFIG_TYPE_HALF_CONFIG.equalsIgnoreCase(configType)) {\n connectionType = ConnectionType.HALF_CONFIG;\n } else {\n connectionType = ConnectionType.LOGIN;\n }\n } else {\n connectionType = ConnectionType.LOGIN;\n }\n if (Constants.BLANK.equals(configuration.getConfig_password())) {\n configuration.setConfig_password(null);\n }\n if (configuration.getConfig_host() != null) {\n configuration.setConfig_host(EncodeHelperUtil.decodeInstall(configuration.getConfig_host()));\n }\n if (configuration.getConfig_port() != null) {\n configuration.setConfig_port(EncodeHelperUtil.decodeInstall(configuration.getConfig_port()));\n }\n if (configuration.getConfig_username() != null) {\n configuration.setConfig_username(EncodeHelperUtil.decodeInstall(configuration.getConfig_username()));\n }\n if (configuration.getConfig_password() != null) {\n configuration.setConfig_password(EncodeHelperUtil.decodeInstall(configuration.getConfig_password()));\n }\n config = new Config(configuration.getConfig_host(), configuration.getConfig_port(),\n configuration.getConfig_username(), configuration.getConfig_password());\n\n } catch (IOException e) {\n } catch (ClassNotFoundException e) {\n } catch (EncodingException e) {\n } finally {\n if (objectInputStream != null) {\n try {\n objectInputStream.close();\n } catch (IOException e) {\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n }\n }\n }\n } else {\n isConfigured = false;\n connectionType = null;\n config = null;\n }\n }", "title": "" }, { "docid": "ee9757304a03c5612ddc166ffb79e08f", "score": "0.44780436", "text": "FileArchiveConfig findFileArchiveConfig(Long fileArchiveConfigId) throws UnifyException;", "title": "" }, { "docid": "0bf4a760259c4938bef7c03881db8386", "score": "0.44765288", "text": "protected ClassLoader getConfigClassLoader()\n {\n return m_loader;\n }", "title": "" }, { "docid": "2b753acfe8ee79d3f9784b5e4a2b37b1", "score": "0.44764143", "text": "public static void createITUConfigurationRepository(String path){\n\t\tNOpenFileUtil.createRepository(NOpenFileUtil.ituConfigurationJSONFolder + path);\t\n\t}", "title": "" }, { "docid": "63915b706592996961e07a1855899a50", "score": "0.44650567", "text": "private void fetchConfiguration()\n\t{\n\t\ttry\n\t\t{\n\t\t\tInputStream inProps = new FileInputStream(propFile);\n\t\t\temailConfiguration.load(inProps);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tlog.error(e);\n\t\t}\n\t}", "title": "" }, { "docid": "f2a9b10ecbe5f245c86c3c2e91bc2637", "score": "0.4457212", "text": "public Config() {\n String workingDir = System.getProperty(\"user.dir\");\n configFullPath = workingDir + File.separator + \"config\" + File.separator + configFileName;\n configProps = new java.util.Properties();\n\n try {\n InputStream is = new FileInputStream(configFullPath);\n configProps.load(is);\n setConfig();\n } catch (Exception eta) {\n eta.printStackTrace();\n }\n }", "title": "" }, { "docid": "2375757a0cb04b41a768c38f12479524", "score": "0.44566885", "text": "public static MysqlDataSource loadConnectionConfig(String rbLocation) {\n Properties props = new Properties();\n FileInputStream fis;\n MysqlDataSource mysqlDS = null;\n try {\n fis = new FileInputStream(rbLocation);\n props.load(fis);\n mysqlDS = new MysqlDataSource();\n mysqlDS.setURL(props.getProperty(\"MYSQL_DB_URL\"));\n mysqlDS.setUser(props.getProperty(\"MYSQL_DB_USERNAME\"));\n mysqlDS.setPassword(props.getProperty(\"MYSQL_DB_PASSWORD\"));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Failed to load database connection information from file.\");\n }\n return mysqlDS;\n }", "title": "" }, { "docid": "af37a768c4dfc4fad9eb8aa0e1844c31", "score": "0.44454956", "text": "@Test\r\n public void testBuildConfigurationFromJson() {\r\n ConfigurationRepositoryJson repo = new ConfigurationRepositoryJson();\r\n Configuration conf = repo.buildConfigurationFromJson(jsonConf2);\r\n assertNotNull(conf);\r\n assertEquals(0, conf.getGlobalPort());\r\n assertEquals(\"localhost\", conf.getGlobalHost());\r\n assertEquals(5, conf.getUris().size());\r\n assertNotNull(conf.getConfigurationUri(\"/services/service1\"));\r\n assertEquals(true, conf.getConfigurationUri(\"/services/service1\").isValidationActive());\r\n assertEquals(\"http://www.google.fr/soap\",\r\n conf.getConfigurationUri(\"/services/service1\").getTargetUrl().toString());\r\n assertNotNull(conf.getConfigurationUri(\"/services/service2\").getTargetUrl());\r\n assertTrue(\r\n conf.getConfigurationUri(\"/services/service2\").getTargetUrl().toString().startsWith(\r\n conf.getGlobalProtocol() + \"://\" + conf.getGlobalHost() + \"/\"));\r\n }", "title": "" }, { "docid": "fda7cdf285fd05f2036e101889f8c5fb", "score": "0.44452265", "text": "public void loadConfiguration(String location)\n throws IOException, InvalidConfigurationException {\n\n //\tNot implemented in the base class\n throw new IOException(\"Not implemented\");\n }", "title": "" }, { "docid": "4655a26de3818d15394570b0bfa10105", "score": "0.44450745", "text": "@Bean\n @Scope(\"singleton\")\n public Config getConfig() {\n Config config = null;\n try {\n config = getObjectMapper().readValue((new ClassPathResource(\"reporting-config.json\")).getFile(), Config.class);\n log.info(\"REPORTING CONFIG LOADED\");\n } catch (IOException e) {\n log.error(\"FAILED TO LOAD REPORTING CONFIG\", e);\n }\n return config;\n }", "title": "" }, { "docid": "e760bde46b30c60cd98af131548d2332", "score": "0.44320023", "text": "public void testReadConfiguration() throws Exception {\r\n ConfigurationObject config = Util.readConfiguration(JiraManagerWebServiceDelegate.DEFAULT_CONFIG_PATH,\r\n JiraManagerWebServiceDelegate.DEFAULT_NAMESPACE);\r\n assertEquals(\"log name\", \"my_log\", config.getChild(\"default\").getPropertyValue(\"log_name\"));\r\n assertNotNull(\"factory config\", config.getChild(\"spec_factory_config\"));\r\n }", "title": "" }, { "docid": "25f1cba425061ca93148e60f5485ae46", "score": "0.44299394", "text": "protected URL getDomainXml(ServerEnvironmentImpl env) throws IOException {\n return new File(env.getConfigDirPath(), ServerEnvironmentImpl.kConfigXMLFileName).toURI().toURL();\n }", "title": "" }, { "docid": "aa59ce19114c6afb78ee683f922bba44", "score": "0.441634", "text": "public static void loadConfig() throws IOException, XMLStreamException {\n\t\tloadConfig(DEFAULT_CONFIG_FILE_NAME);\n\t}", "title": "" }, { "docid": "4830d23b427dad30a280a7bd9e6003cb", "score": "0.44117224", "text": "@Test(expected=ConfigurationNotFoundException.class)\r\n\tpublic void testGetConfigurationReadConfigurationNull() throws Exception {\r\n\t\tdoReturn(null).when(mockYamlFile).getConfiguration(TestConfiguration2.class);\r\n\t\t\r\n\t\tconfigurationManager.getConfiguration(TestConfiguration2.class);\r\n\t}", "title": "" }, { "docid": "3d31dfddd3aad65f2d8f52fa714b6b68", "score": "0.44110677", "text": "public static ClientConfiguration loadConfiguration(String[] args) {\r\n\t\tClientConfiguration config = null;\r\n\t\tFile configFile = new File(CONFIG_FILE_NAME);\r\n\t\tif (!configFile.exists()) {\r\n\t\t\t// creates a new configuration file from the arguments (if possible)\r\n\t\t\tOutput.out(\"no config file found, creating a new config file.\");\r\n\t\t\tif (args.length < 4) {\r\n\t\t\t\tOutput.out(true, \"not enough arguments create a new config file.\");\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconfigFile.createNewFile();\r\n\t\t\t\t\tFileWriter fw = new FileWriter(configFile);\r\n\t\t\t\t\tfw.write(\"#Configuration file for A Client\\ntype=VEHICLE\\nversion=1.0\\nname=\" + args[0]\r\n\t\t\t\t\t\t\t+ \"\\npublickey=\" + args[1] + \"\\nprivatekey=\" + args[2] + \"\\nlicense=\" + args[3] + \"\\nport=\"\r\n\t\t\t\t\t\t\t+ \"40021\");\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t\tconfig = new ClientConfiguration(ClientType.VEHICLE, \"1.0\", args[0], args[1], args[2], args[3],\r\n\t\t\t\t\t\t\t40021);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tOutput.out(true, \"an error occurred when creating a new config file: \" + e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// loads the properties of the config file into a config object\r\n\t\t\ttry {\r\n\t\t\t\tInputStream inputStream = new FileInputStream(configFile);\r\n\t\t\t\tProperties properties = new Properties();\r\n\t\t\t\tif (inputStream != null) {\r\n\t\t\t\t\tproperties.load(inputStream);\r\n\t\t\t\t}\r\n\t\t\t\tconfig = new ClientConfiguration(\r\n\t\t\t\t\t\tproperties.getProperty(\"type\").equals(\"VEHICLE\") ? ClientType.VEHICLE : ClientType.RSU,\r\n\t\t\t\t\t\tproperties.getProperty(\"version\"), properties.getProperty(\"name\"),\r\n\t\t\t\t\t\tproperties.getProperty(\"publickey\"), properties.getProperty(\"privatekey\"),\r\n\t\t\t\t\t\tproperties.getProperty(\"license\"), Integer.parseInt(properties.getProperty(\"port\")));\r\n\r\n\t\t\t\tinputStream.close();\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tOutput.out(true, \"couldn't find the config file: \" + e);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tOutput.out(true, \"an error occurred when reading the config file: \" + e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn config;\r\n\t}", "title": "" }, { "docid": "e9e5aad65a3bdb4f93664512911f4dc7", "score": "0.4408853", "text": "private static Properties readConfigFile() {\n Properties properties = new Properties();\n\n // Get property file stream from classpath\n LOG.info(\"Configuration file being loaded: \" + CONFIG_FILE\n + \". Found in classpath at \"\n + MawoConfiguration.class.getClassLoader().getResource(CONFIG_FILE));\n InputStream inputStream = MawoConfiguration.class.getClassLoader()\n .getResourceAsStream(CONFIG_FILE);\n\n if (inputStream == null) {\n throw new RuntimeException(CONFIG_FILE + \" not found in classpath\");\n }\n\n // load the properties\n try {\n properties.load(inputStream);\n inputStream.close();\n } catch (FileNotFoundException fnf) {\n LOG.error(\n \"No configuration file \" + CONFIG_FILE + \" found in classpath.\");\n } catch (IOException ie) {\n throw new IllegalArgumentException(\n \"Can't read configuration file \" + CONFIG_FILE, ie);\n }\n\n return properties;\n }", "title": "" }, { "docid": "073f4dcd67f94c3a26ee79ef40acb035", "score": "0.44034278", "text": "public boolean loadConfig() {\n File dataFolder = LaserCore.getLaserCore().getDataFolder();\n if(!dataFolder.exists()) {\n try {\n boolean success = dataFolder.mkdir();\n if(!success) {\n System.out.println(\"Cloud not create DataFolder directory\");\n return false;\n }\n } catch (SecurityException securityException) {\n System.out.println(\"Cloud not create DataFolder directory:\");\n securityException.printStackTrace();\n return false;\n }\n }\n //make sure config.json exists\n configFile = new File(dataFolder.getAbsolutePath()+\"/config.json\");\n if(!configFile.exists()) {\n try {\n boolean success = configFile.createNewFile();\n if(!success) {\n System.out.println(\"Cloud not create config.json\");\n return false;\n }\n } catch (SecurityException | IOException securityException) {\n System.out.println(\"Cloud not create config.json:\");\n securityException.printStackTrace();\n return false;\n }\n }\n //read the file data into json object\n readConfigFile();\n //add defaults\n addDefaults();\n //write defaults\n writeConfigFile();\n //load values into variables\n loadValues();\n return true;\n }", "title": "" } ]
6ea8c4043a75e77646122998c75aa811
Retrieve song object from byte array
[ { "docid": "7ed6ff691e6b12c38740157db4e35a4f", "score": "0.7068017", "text": "public static Song deserialize(byte[] data) throws IOException,\n\t\t\tClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t\tObjectInputStream is = new ObjectInputStream(in);\n\t\tSong s = (Song) is.readObject();\n\t\tis.close();\n\t\tin.close();\n\t\treturn s;\n\t}", "title": "" } ]
[ { "docid": "1f8830759087868ba5e52d7a0559478e", "score": "0.6459286", "text": "public Object getObject(byte[] bytes) {\n Log.d(TAG, \"getObject() called with: bytes = [\" + bytes + \"]\");\n Object object = null;\n //Probably we catch an exception\n try {\n ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);\n ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);\n object = objectInputStream.readObject();\n } catch (Exception e) {\n Log.e(TAG, \"getObject: \", e);\n }\n Log.d(TAG, \"getObject() returned: \" + object);\n return object;\n }", "title": "" }, { "docid": "9e2f982cab78a48f179bfa70b3d39f66", "score": "0.6285487", "text": "public static Object readFromStream(byte[] bytes){;\r\n\t\tByteArrayInputStream bins = new ByteArrayInputStream(bytes);\r\n\t\tObjectInputStream ois = null;\r\n\t\ttry {\r\n\t\t\tois = new ObjectInputStream(bins);\r\n\t\t\tObject object = ois.readUnshared();\r\n\t\t\treturn object;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (ois != null)\r\n\t\t\t\t\tois.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "abcf8475892b6c9ae30984b67468bd3f", "score": "0.6179635", "text": "protected Object getObjectFromMessage(byte[] buffer)\r\n\t\t\tthrows IOException, ClassNotFoundException {\n\t\tByteArrayInputStream bais = new ByteArrayInputStream(buffer); // bais - byte array input stream\r\n\t ObjectInputStream message = new ObjectInputStream(bais); // create Input Stream object of type Byte\r\n\t return message.readObject();\r\n\t}", "title": "" }, { "docid": "ee7ad9d21a3a112955abdfa9b0256b70", "score": "0.59952295", "text": "public static Object fromByteArray(byte[] data) {\n return fromByteArray(data, Object.class, null);\n }", "title": "" }, { "docid": "a57b406d9ec4eaf6337a7db84306f2e8", "score": "0.5816904", "text": "private Object bytesToObject(byte[] bytes) throws IOException,\n\t\t\tClassNotFoundException {\n\t\tByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n\t\tObjectInputStream is = new ObjectInputStream(bais);\n\t\treturn is.readObject();\n\t}", "title": "" }, { "docid": "ca7eb801bc7373adbf8445f007eef509", "score": "0.5783188", "text": "public Object fromBytes(byte[] b)\n\t{\n\t\t\n\t\ttry {\n\t\t\treturn PojoMapper.fromJson(new String(b), this.getClass());\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn b;\n\t}", "title": "" }, { "docid": "ca396d17e9f64eb1b0df69b1e5534213", "score": "0.57796896", "text": "public Song getSong(Song song)\n {\n return logicLayer.getSong(song);\n }", "title": "" }, { "docid": "b0551448c45b762ec85fc1f7c4de277e", "score": "0.5775825", "text": "private Object deserialize (byte[] bytes) throws IOException, \n ClassNotFoundException {\n ByteInputStream bIn = new ByteInputStream();\n ObjectInputStream oIn = new ObjectInputStream(bIn);\n return oIn.readObject();\n }", "title": "" }, { "docid": "7c2cefa29b3840b51aba54a6303d0bd8", "score": "0.5699542", "text": "public static BSONObject decode(final byte[] bytes) {\n return new BasicBSONDecoder().readObject(bytes);\n }", "title": "" }, { "docid": "0e37e8042b3fbdd672ed295377bb2748", "score": "0.567132", "text": "public static Object bytesToObject(byte[] bytes) {\r\n\t\tif (bytes.length == 0)\r\n\t\t\treturn null;\r\n\t\tObject object = null;\r\n\t\ttry {\r\n\t\t\tobject = new ObjectInputStream(new ByteArrayInputStream(bytes)).readObject();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn object;\r\n\t}", "title": "" }, { "docid": "683b1376adbab17d2c1afc4b21a51061", "score": "0.5624664", "text": "public static byte[] serialize(Song obj) {\n\t\tByteArrayOutputStream out = null;\n\t\ttry {\n\t\t\tout = new ByteArrayOutputStream();\n\t\t\tObjectOutputStream os = new ObjectOutputStream(out);\n\t\t\tos.writeObject(obj);\n\t\t\tos.close();\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn out.toByteArray();\n\t}", "title": "" }, { "docid": "b58e942e06b65384538d0d9451106621", "score": "0.56116056", "text": "T deserialize(byte[] in);", "title": "" }, { "docid": "a78e18c918c663f17065d89386682f63", "score": "0.55950254", "text": "private Object deserialize(byte[] value) {\n ByteArrayInputStream b = new ByteArrayInputStream(value);\n ObjectInputStream o = null;\n try {\n o = new ObjectInputStream(b);\n return o.readObject();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n catch (OptionalDataException e) {\n e.printStackTrace();\n }\n catch (StreamCorruptedException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n try {\n o.close();\n b.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "title": "" }, { "docid": "6f479228602f57bcfee344c8effeffe7", "score": "0.5575735", "text": "public static Object deserialize(byte[] data) {\n ByteArrayInputStream in = new ByteArrayInputStream(data);\n ObjectInputStream is;\n Object result = null;\n try {\n is = new ObjectInputStream(in);\n result = is.readObject();\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n return result;\n }", "title": "" }, { "docid": "c93888e8dff24ab09bb49357f4285318", "score": "0.5545076", "text": "com.google.protobuf.ByteString\n getArtistBytes();", "title": "" }, { "docid": "05ecdd6aa88a324037c8f1fb0f8fa95a", "score": "0.55036956", "text": "public static Object byteArrayToObject(byte[] data) {\n\t\tByteArrayInputStream byteIn = new ByteArrayInputStream(data);\n\t\tObject result = null;\n\t\tObjectInputStream inputStream;\n\t\ttry {\n\t\t\tinputStream = new ObjectInputStream(byteIn);\n\t\t\tresult = (Object) inputStream.readObject();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c8fbbe07dacbc0d44fa70d583d65fe1e", "score": "0.54958534", "text": "public static Object byteArrayToObject(byte[] data) {\n\t\tByteArrayInputStream byteIn = new ByteArrayInputStream(data);\n\t\tObject result = null;\n\t\tObjectInputStream in;\n\t\ttry {\n\t\t\tin = new ObjectInputStream(byteIn);\n\t\t\tresult = (Object) in.readObject();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1f12e3a3c7613828ea9fe44495c6aab0", "score": "0.54949737", "text": "public static Object deserialize(byte[] bytes)\n/* */ {\n/* 60 */ if (bytes == null) {\n/* 61 */ return null;\n/* */ }\n/* */ try {\n/* 64 */ ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bytes));\n/* 65 */ return ois.readObject();\n/* */ }\n/* */ catch (IOException ex) {\n/* 68 */ throw new IllegalArgumentException(\"Failed to deserialize object\", ex);\n/* */ }\n/* */ catch (ClassNotFoundException ex) {\n/* 71 */ throw new IllegalStateException(\"Failed to deserialize object type\", ex);\n/* */ }\n/* */ }", "title": "" }, { "docid": "4bf4c7db48314a053eb0073e90ce9904", "score": "0.5471164", "text": "byte[] retrieve(Pointer pointer) throws IOException;", "title": "" }, { "docid": "f087bf7c4815ffb2aac160c4ea78f9e0", "score": "0.5463895", "text": "com.google.protobuf.ByteString\n getFromBytes();", "title": "" }, { "docid": "2c1bb04cf95233cd089028d7e0b8eb42", "score": "0.5450045", "text": "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t ByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t return is.readObject();\n\t}", "title": "" }, { "docid": "02a42f46c47b948b60a2b927a12e9e3b", "score": "0.5447777", "text": "public Song getSong()\n {\n return song;\n }", "title": "" }, { "docid": "0e31fd58db9a03c473d939ff247529d0", "score": "0.54062414", "text": "public SongRecord getSong(int position) throws IllegalArgumentException {\n\t\tif (!((1 <= position) && (position <= size)))\n\t\t\tthrow new IllegalArgumentException(\"Invalid range\");\n\t\treturn songs[position-1];\n\t}", "title": "" }, { "docid": "116b5fa3e6ab876d0223f42d9e223700", "score": "0.5394981", "text": "<E> E parse(byte[] source, Class<E> objectClazz);", "title": "" }, { "docid": "49f985ec3e73a705b2a1d3e8170319e6", "score": "0.5371257", "text": "void onSongReceived(Song song);", "title": "" }, { "docid": "36747ca0186fece59a04bade1c35ccf4", "score": "0.5344539", "text": "public Song getSong() {\n return song;\n }", "title": "" }, { "docid": "a61d5412f899232be63322afd9a6ecc9", "score": "0.53285515", "text": "public Object getAlbumByTitle(String title){\n\t\tObject album=null;\n\t\tSystem.out.println(\"Client: client requests \"+title+\"information..\");\n\t\ttry {\n\t\t\tpout.println(\"GetAlbumDetail\");\n\t\t\tpout.flush();\n\t\t\tpout.println(title);\n\t\t\tpout.flush();\n\t\t\tSystem.out.println(\"Client: reading server returned information..\");\n\t\t\tSystem.out.println(\"Client: client' connection situation:\"+socket.isConnected()+\" disconnection situation:\"+socket.isClosed());\n\t\t\toin=new ObjectInputStream(socket.getInputStream());\n\t\t\twhile((album=oin.readObject())==null) ;\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn album;\n\t}", "title": "" }, { "docid": "3180ffbf64b96f46ceb70b2560ab3968", "score": "0.5310083", "text": "D decode(byte[] encoded) throws IOException;", "title": "" }, { "docid": "2afb594ea5245ad6486486b7830f39c6", "score": "0.52990884", "text": "Object read() throws IOException;", "title": "" }, { "docid": "63a1ff9a72ea45100289417e9c3047a1", "score": "0.52966666", "text": "public static Object fromByteArrayKryo(byte[] data) {\n return fromByteArrayKryo(data, Object.class, null);\n }", "title": "" }, { "docid": "85a9f125fa34152adaa54df68868e093", "score": "0.5262978", "text": "public SongInfo peekNxtSong()\n {\n return queue.peek(); // grab the next song and extract the song name and return that to the calling class.\n }", "title": "" }, { "docid": "478895f222587bca81a013afb520a176", "score": "0.5255773", "text": "byte[] get(String fileId);", "title": "" }, { "docid": "ed3e0e1a1e1cd40cfe250293b0b981db", "score": "0.5234929", "text": "public static TikaInputStream get(byte[] data) {\n return get(data, new Metadata());\n }", "title": "" }, { "docid": "8ad24af328c99dbd18e8fd2bba2207f2", "score": "0.5233591", "text": "public byte[] load(String name);", "title": "" }, { "docid": "c186661882627b60a6690df364feb960", "score": "0.52283645", "text": "public static <T> T deserialize(byte[] objectData) {\n/* 250 */ if (objectData == null) {\n/* 251 */ throw new IllegalArgumentException(\"The byte[] must not be null\");\n/* */ }\n/* 253 */ return deserialize(new ByteArrayInputStream(objectData));\n/* */ }", "title": "" }, { "docid": "c11770de7963ebb742cf5c4c26d44a5b", "score": "0.52216315", "text": "public static Object parse(ByteBuffer buffer) {\n\t\tint length = buffer.getInt();\n\t\tbyte type = buffer.get();\n\t\tbyte[] data;\n\t\tswitch (type) {\n\t\tcase TYPE_ROCKET_STREAM:\n\t\t\tlong msb = buffer.getLong();\n\t\t\tlong lsb = buffer.getLong();\n\t\t\tUUID uuid = new UUID(msb, lsb);\n\t\t\tRocketStream rs = new RocketStream(uuid);\n\t\t\treturn rs;\n\t\tcase TYPE_INT:\n\t\t\treturn buffer.getInt();\n\t\tcase TYPE_BYTE:\n\t\t\treturn buffer.get();\n\t\tcase TYPE_DOUBLE:\n\t\t\treturn buffer.getDouble();\n\t\tcase TYPE_FLOAT:\n\t\t\treturn buffer.getFloat();\n\t\tcase TYPE_SHORT:\n\t\t\treturn buffer.getShort();\n\t\tcase TYPE_LONG:\n\t\t\treturn buffer.getLong();\n\t\tcase TYPE_STRING:\n\t\t\tdata = new byte[length];\n\t\t\tbuffer.get(data);\n\t\t\treturn new String(data, Charset.forName(\"UTF-8\"));\n\t\tcase TYPE_BYTE_ARRAY:\n\t\tdefault:\n\t\t\tdata = new byte[length];\n\t\t\tbuffer.get(data);\n\t\t\treturn data;\n\t\t}\n\t}", "title": "" }, { "docid": "47a8ee3fec54a0db207f8b68b26689c7", "score": "0.5184103", "text": "public abstract byte[] getByteContents();", "title": "" }, { "docid": "85ada9a6bc7029b7bb50803046f760f8", "score": "0.51799756", "text": "public Song(){}", "title": "" }, { "docid": "7b576b5213c0261e06014b14d60da40c", "score": "0.51778173", "text": "@Field(7)\n\tpublic Pointer<Byte > album() {\n\t\treturn this.io.getPointerField(this, 7);\n\t}", "title": "" }, { "docid": "d00aca775497dfc23dc006a2ac65e773", "score": "0.5174247", "text": "public static AvroBookShop fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "title": "" }, { "docid": "72bb6fe784c83df13b908573238a2793", "score": "0.5157149", "text": "public com.vh.locker.ejb.MusicFile getMusicFile();", "title": "" }, { "docid": "8eb7f91bc7412cecc82af5ba8743e1a9", "score": "0.51491725", "text": "public Song findSong(String tittle){\n\t\tSong objSearch=null;\n\t\tboolean findSo=false;\n\t\tfor (int i=0;i<MAX_SONGS && !findSo;i++){\n\t\t\tif (song[i]!=null && song[i].getTittle().equalsIgnoreCase(tittle)){\n\t\t\t\tobjSearch=song[i];\n\t\t\t\tfindSo=true;\t\n\t\t\t}\n\t\t}\n\t\treturn objSearch;\n\t}", "title": "" }, { "docid": "96d7e4b12a7cc719647aef6abcda634f", "score": "0.5135219", "text": "public static Player fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "title": "" }, { "docid": "453a1fdc06a5375efb3d419808f4e318", "score": "0.5102568", "text": "com.google.protobuf.ByteString\n getAblumArtistBytes();", "title": "" }, { "docid": "ebf04e59315432902b9a95627b30d8a4", "score": "0.5102315", "text": "public Byte getByteObject() {\n return byteObject;\n }", "title": "" }, { "docid": "386fa19a2fadc348e76027373dba99af", "score": "0.5085131", "text": "byte[] getPersistentBinaryData();", "title": "" }, { "docid": "3c48e076ca41f9cc399baa3da64c4f7b", "score": "0.5084265", "text": "public native Object3D parse(Uint8Array content);", "title": "" }, { "docid": "de4561df65923ce2ed9a4d8ec511ed96", "score": "0.50805664", "text": "public FileInfo toFileInfo(byte[] data)\n {\n FileInfo fileInfo = new FileInfo();\n fileInfo.Name = \"file\";\n fileInfo.MimeType = \"application/octet-stream\";\n fileInfo.file = data;\n return fileInfo;\n }", "title": "" }, { "docid": "63bf66c513af7ddf2d49cc27bbfc2345", "score": "0.50767595", "text": "Song selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "452f6b75f44194c07e09e96ec7863dd1", "score": "0.50759137", "text": "protected abstract E readObjectImpl(InputStream input) throws ContentDecodingException, IOException;", "title": "" }, { "docid": "798c5180b684997f434eaf8f6d4f9e47", "score": "0.50746095", "text": "D decode(InputStream stream) throws IOException;", "title": "" }, { "docid": "d0f659acb8cf76a52ad129259ad5154e", "score": "0.5056344", "text": "@Field(4)\n\tpublic Pointer<Byte > artist() {\n\t\treturn this.io.getPointerField(this, 4);\n\t}", "title": "" }, { "docid": "52a78db3df89f3c4ddd5a49e8fa13196", "score": "0.5055678", "text": "public int getSong(){\n\t\treturn iSong;\n\t}", "title": "" }, { "docid": "cfc7e92e5ae15760c35609fdeca6812e", "score": "0.504558", "text": "@Override\n\tpublic T deserialize(String s, byte[] bytes) {\n\t\treturn gson.fromJson(new String(bytes), type);\n\t}", "title": "" }, { "docid": "93de1f645aada35ae97ca61a65126a6f", "score": "0.5025639", "text": "public Song parseJSONObjToSong(JSONObject resultItem){\n Song newSong = null;\n String judul = null, album = null, artist = null, albumArtURL = null;\n try {\n judul = resultItem.getString(\"trackName\");\n album = resultItem.getString(\"collectionName\");\n artist = resultItem.getString(\"artistName\");\n albumArtURL = resultItem.getString(\"artworkUrl100\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n newSong = new Song(judul,album,artist,albumArtURL);\n return newSong;\n }", "title": "" }, { "docid": "e373c65c83c4bd62be8e02d750d9b79f", "score": "0.50150365", "text": "long getAudioDataBytes();", "title": "" }, { "docid": "b51068027817455cfa61e12014c36548", "score": "0.5013146", "text": "private Object fromString(String s) throws IOException, ClassNotFoundException {\n byte[] data = Base64.decode(s, Base64.DEFAULT);\n ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\n Object o = ois.readObject();\n ois.close();\n return o;\n }", "title": "" }, { "docid": "dd57b3c0c178aafe02235a47218edc6a", "score": "0.5005565", "text": "public void push(TrackName trackName) {\n new Thread() {\n @Override\n public void run() {\n Queue<MusicFile> chunks = new LinkedList<>();\n int totalBytes = 0;//the sum of bytes which the MusicFile objects will have\n\n Socket requestSocket = null;\n ObjectOutputStream out = null;\n ObjectInputStream in = null;\n\n for (BrokerNode broker: brokers) {\n if (trackName.hashCode()%maxBrokerHashKey <= hashKey(broker)) {\n //makes a socket connection with the broker\n try {\n requestSocket = new Socket(broker.getIpAddress(), broker.getPort());\n out = new ObjectOutputStream(requestSocket.getOutputStream());\n in = new ObjectInputStream(requestSocket.getInputStream());\n\n JSONObject json = new JSONObject();\n json.put(\"TYPE\",\"TRACKNAME\");\n json.put(\"ARTIST\",trackName.getArtistName());\n json.put(\"TRACK\",trackName.getTrackName());\n json.put(\"SAVE\",trackName.save());\n\n out.writeObject(json.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n }\n }\n\n while (true) {\n try {\n JSONObject result = new JSONObject((String) in.readObject());\n if (result.get(\"BYTES\") == \"\") {\n System.out.println(\"File not found!\");\n break;\n } else {\n String[] bytes = result.get(\"BYTES\").toString().split(\",\");\n byte[] chunk = new byte[bytes.length];\n for (int i = 0; i < bytes.length; i++)\n chunk[i] = Byte.parseByte(bytes[i]);\n\n chunks.add(new MusicFile(result.get(\"TRACKNAME\").toString(),result.get(\"ARTIST\").toString(),result.get(\"ALBUM\").toString(),result.get(\"GENRE\").toString(),chunk));\n totalBytes += chunk.length;\n\n System.out.println(new MusicFile(result.get(\"TRACKNAME\").toString(),result.get(\"ARTIST\").toString(),result.get(\"ALBUM\").toString(),result.get(\"GENRE\").toString(),chunk));\n\n if ((boolean) result.get(\"LAST\") == true) {\n if ((boolean) result.get(\"SAVE\") == true) {\n //merge all chunks into one file and save it to temporary folder\n File tempFile = File.createTempFile(result.get(\"TRACKNAME\").toString(), \".mp3\", null);\n FileOutputStream fos = new FileOutputStream(tempFile);\n\n System.out.println(\"Saved to: \" + tempFile.getAbsolutePath());\n\n byte[] musicBytes = new byte[totalBytes];\n\n int i = 0;\n while (!chunks.isEmpty()) {\n for (int j = 0; j < chunks.peek().getMusicFileExtract().length; j++)\n musicBytes[i++] = chunks.peek().getMusicFileExtract()[j];\n chunks.poll();\n }\n\n fos.write(musicBytes);\n fos.close();\n }\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n }\n }.start();\n }", "title": "" }, { "docid": "093c6a4504d40e288edc042f0380fd37", "score": "0.50047225", "text": "byte[] getData();", "title": "" }, { "docid": "093c6a4504d40e288edc042f0380fd37", "score": "0.50047225", "text": "byte[] getData();", "title": "" }, { "docid": "8ae6e8b50d57f7da33264cf41c8337e9", "score": "0.5002354", "text": "public static HoodieRestoreMetadata fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "title": "" }, { "docid": "88e95f533f056ef46acfc8612ad2f279", "score": "0.49862522", "text": "public String getSongLine(){\n return songLine;\n }", "title": "" }, { "docid": "ab48910a8474e2712c4ca767005d1bf5", "score": "0.49746993", "text": "public static TrackData getTrackData(String file)\n\t{\n\t\tTrackData trackData = new TrackData();\n\n\t\tMP4Container cont;\n\n\t\ttry \n\t\t{\n\t\t\tcont = new MP4Container(new RandomAccessFile(file, \"r\"));\n\t\t\tfinal Movie movie = cont.getMovie();\n\n\t\t\tif (movie.containsMetaData()) {\n\t\t\t\tfinal Map<MetaData.Field<?>, Object> data = movie.getMetaData()\n\t\t\t\t\t\t.getAll();\n\t\t\t\tfor (MetaData.Field<?> key : data.keySet()) \n\t\t\t\t{\n\t\t\t\t\tif (key.equals(MetaData.Field.COVER_ARTWORKS)) \n\t\t\t\t\t{\n\t\t\t\t\t\t//final List<?> l = (List<?>) data.get(MetaData.Field.COVER_ARTWORKS);\n\t\t\t\t\t\t//System.out.println(\"\\t\\t\" + l.size() + \" Cover Artworks present\");\n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"\\t\\t\" + key.getName() + \" = \" + data.get(key));\n\t\t\t\t\t\tif(key.getName().equals(\"Genre\"))\n\t\t\t\t\t\t\ttrackData.genre = (String) data.get(key);\n\t\t\t\t\t\tif(key.getName().equals(\"Track Number\"))\n\t\t\t\t\t\t\ttrackData.track_number = (Integer) data.get(key);\n\t\t\t\t\t\tif(key.getName().equals(\"Title\"))\n\t\t\t\t\t\t\ttrackData.title = (String) data.get(key);\n\t\t\t\t\t\tif(key.getName().equals(\"Composer\"))\n\t\t\t\t\t\t\ttrackData.composer = (String) data.get(key);\n\t\t\t\t\t\tif(key.getName().equals(\"Album\"))\n\t\t\t\t\t\t\ttrackData.album = (String) data.get(key);\n\t\t\t\t\t\tif(key.getName().equals(\"Artist\"))\n\t\t\t\t\t\t\ttrackData.artist = (String) data.get(key);\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} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(file + \" not found!\");\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn trackData;\n\t}", "title": "" }, { "docid": "54e2730dcdadd1f36e2cfda1ee1e4030", "score": "0.49737766", "text": "public Song readFile(String iFile) throws ID3Exception {\n\t\tSong readSong = null;\n File oSourceFile = new File(iFile);\n\n // create an MP3File object representing our chosen file\n MediaFile oMediaFile = new MP3File(oSourceFile);\n\n // any tags read from the file are returned, in an array, in an order which you should not assume\n ID3Tag[] aoID3Tag = oMediaFile.getTags();\n // let's loop through and see what we've got\n // (NOTE: we could also use getID3V1Tag() or getID3V2Tag() methods, if we specifically want one or the other)\n for (int i=0; i < aoID3Tag.length; i++)\n {\n // check to see if we read a v1.0 tag, or a v2.3.0 tag\n if (aoID3Tag[i] instanceof ID3V1_0Tag)\n {\n ID3V1_0Tag oID3V1_0Tag = (ID3V1_0Tag)aoID3Tag[i];\n // does this tag happen to contain a title?\n if (oID3V1_0Tag.getTitle() != null)\n {\n \treadSong.setTitle(oID3V1_0Tag.getTitle());\n System.out.println(\"Title (v1) = \" + oID3V1_0Tag.getTitle());\n }\n else if (oID3V1_0Tag.getYear() != null) {\n \treadSong.setYear(Integer.parseInt(oID3V1_0Tag.getYear()));\n }\n else if (oID3V1_0Tag.getArtist() != null) {\n \treadSong.setArtist(oID3V1_0Tag.getArtist());\n }\n else if (oID3V1_0Tag.getAlbum() != null) {\n \treadSong.setAlbum(oID3V1_0Tag.getAlbum());\n }\n // etc.\n }\n else if (aoID3Tag[i] instanceof ID3V2_3_0Tag)\n {\n ID3V2_3_0Tag oID3V2_3_0Tag = (ID3V2_3_0Tag)aoID3Tag[i];\n // check if this v2.3.0 frame contains a title, using the actual frame name\n if (oID3V2_3_0Tag.getTIT2TextInformationFrame() != null) {\n \treadSong.setTitle(oID3V2_3_0Tag.getTIT2TextInformationFrame().getTitle());\n System.out.println(\"Title = (v2.3) \" + oID3V2_3_0Tag.getTIT2TextInformationFrame().getTitle());\n }\n \n // but check using the convenience method if it has a year set (either way works)\n try\n {\n \treadSong.setYear(oID3V2_3_0Tag.getYear());\n System.out.println(\"Year = \" + oID3V2_3_0Tag.getYear()); // reads TYER frame\n }\n catch (ID3Exception e)\n {\n // error getting year.. if one wasn't set\n System.out.println(\"Could get read year from tag: \" + e.toString());\n }\n // etc.\n }\n }\n\t\treturn readSong;\n\t}", "title": "" }, { "docid": "8b30ace1c507dcbd9ede892b4923cb63", "score": "0.4969706", "text": "public byte[] getPictureData( Album album, Picture picture);", "title": "" }, { "docid": "b17e6cb047a840e2b9908e0f833eac23", "score": "0.49613824", "text": "D decode(ByteBuffer encoded) throws IOException;", "title": "" }, { "docid": "481395567f0a404755a7c4f62eb3df10", "score": "0.49600744", "text": "public final ObjectType m202b(byte[] bArr) throws IOException {\n if (bArr == null) {\n StringBuilder stringBuilder = new StringBuilder(\"Decoding: \");\n stringBuilder.append(this.f345c);\n stringBuilder.append(\": Nothing to decode\");\n throw new IOException(stringBuilder.toString());\n }\n m200d(bArr);\n bArr = (byte[]) new kx(new kv()).mo1368a(new ByteArrayInputStream(bArr));\n String str = f343a;\n StringBuilder stringBuilder2 = new StringBuilder(\"Decoding: \");\n stringBuilder2.append(this.f345c);\n stringBuilder2.append(\": \");\n stringBuilder2.append(new String(bArr));\n kf.m176a(3, str, stringBuilder2.toString());\n return this.f346d.mo1368a(new ByteArrayInputStream(bArr));\n }", "title": "" }, { "docid": "67e212c2af7cf6a77cf883dd14ecec57", "score": "0.49508747", "text": "public Song findSong(Long id) {\n\t\tOptional<Song> optionalSong = songRepo.findById(id);\n\t\tif(optionalSong.isPresent()) {\n\t\t\treturn optionalSong.get();\n\t\t}else\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7fea112a13a5ad93110743019d82c3b6", "score": "0.49504003", "text": "public static _byte parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n _byte object = new _byte();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n // Skip the element and report the null value. It cannot have subelements.\r\n while (!reader.isEndElement())\r\n reader.next();\r\n\r\n object.set_byte(java.lang.Byte.MIN_VALUE);\r\n\r\n return object;\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n while (!reader.isEndElement()) {\r\n if (reader.isStartElement()) {\r\n if (reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\r\n \"byte\").equals(reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (!\"true\".equals(nillableValue) &&\r\n !\"1\".equals(nillableValue)) {\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.set_byte(org.apache.axis2.databinding.utils.ConverterUtil.convertToByte(\r\n content));\r\n } else {\r\n object.set_byte(java.lang.Byte.MIN_VALUE);\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n } // End of if for expected property start element\r\n\r\n else {\r\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" +\r\n reader.getName());\r\n }\r\n } else {\r\n reader.next();\r\n }\r\n } // end of while loop\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "title": "" }, { "docid": "bf782ed0315d09c0ae153fc7b8b8ce99", "score": "0.4946975", "text": "com.google.storage.v2.Object getObject();", "title": "" }, { "docid": "bc18caeaf9b881fadc3ab6ab08f47da6", "score": "0.49425936", "text": "InputStream retrieveBinary(String path) throws IOException;", "title": "" }, { "docid": "ff70d26564f57e698adf3d679a85272d", "score": "0.49370158", "text": "Decoder get(String vin);", "title": "" }, { "docid": "92284c5ee56de25525884c9a6d693063", "score": "0.4934159", "text": "private Song getNextSong(ResultSet result) {\r\n Song s = null;\r\n try {\r\n int id = result.getInt(\"id\");\r\n String name = result.getString(\"name\");\r\n int duration = result.getInt(\"duration\");\r\n int year = result.getInt(\"year_released\");\r\n String singer = result.getString(\"singerName\");\r\n String album = result.getString(\"albumName\");\r\n String url = result.getString(\"url\");\r\n s = new Song(id, name, duration, year, singer, album, url);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DBUtils.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return s;\r\n }", "title": "" }, { "docid": "1c8fb8a2ad3193608f4cd437da4537ab", "score": "0.492824", "text": "public String fromByteArray(byte[] data) throws IOException{\n String str;\n ByteArrayInputStream bIn = new ByteArrayInputStream(data);\n\n DataInputStream dIn = new DataInputStream(bIn);\n\n str=dIn.readUTF();\n\n dIn.close();\n\n return str;\n\n }", "title": "" }, { "docid": "688cb16f34f8b260f2397fec6645d7fc", "score": "0.4926085", "text": "private COPRObject getObject(COHeader coh, byte[] obj) throws CopsException {\n COPRObject result = null;\n\n switch (coh.getCNum()) {\n case COPRObject.PRID:\n result = parsePRID(coh, obj);\n break;\n case COPRObject.PPRID:\n result = parsePPRID(coh, obj);\n break;\n case COPRObject.EPD:\n result = parseEPD(coh, obj);\n break;\n case COPRObject.GPERR:\n result = parseGPERR(coh, obj);\n break;\n case COPRObject.CPERR:\n result = parseCPERR(coh, obj);\n break;\n case COPRObject.ERRORPRID:\n result = parseErrorPRID(coh, obj);\n break;\n default:\n result = parseUnknown(coh, obj);\n break;\n }\n return result;\n }", "title": "" }, { "docid": "55b6c288c74d30072d1584a3eae18ad7", "score": "0.49181864", "text": "@Override\n public String toString() {\n return songObject.toString();\n }", "title": "" }, { "docid": "3266c0466c7b3dbe9f45b22c801d622d", "score": "0.49159884", "text": "private Hand loadFromByteCode(String filename)\n {\n try{\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream in = new ObjectInputStream(fis);\n Hand hand = (Hand)in.readObject();\n in.close();\n fis.close();\n\n System.out.println(filename + \" has been deserialized\");\n\n //evidence that the correct hand has been loaded in\n System.out.println(\"Deserialized hand: \" + hand.toString());\n return hand;\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n //if the card is not found, a random card is returned instead\n System.out.println(\"Error - hand not found. Empty hand created\");\n return new Hand();\n }", "title": "" }, { "docid": "d07ebda4b031aac27f861b2749fdaa1b", "score": "0.48986483", "text": "public Song getSongPlaying()\n {\n return songPlaying;\n }", "title": "" }, { "docid": "fc6158237678df93122f62b8bc89cf1e", "score": "0.4895221", "text": "public static Object fromByteArray(byte[] data, ClassLoader classLoader) {\n return fromByteArray(data, Object.class, classLoader);\n }", "title": "" }, { "docid": "6d9aebbae5d0200aafe283ec0500ffc2", "score": "0.4893676", "text": "Observable<ByteWrapper> getByteAsync();", "title": "" }, { "docid": "7bc70c299e3eace8876cc6cce94fda0b", "score": "0.4871791", "text": "@Override\n public CustomerSale fromBytes(byte[] data)\n {\n try (ByteArrayInputStream bis = new ByteArrayInputStream(data); ObjectInput in = new ObjectInputStream(bis);)\n {\n Object o = in.readObject();\n if (o instanceof CustomerSale)\n {\n return (CustomerSale) o;\n }\n else\n {\n logger.error(\"Unknown instance type while deserializing CustomerSale.\");\n return null;\n }\n }\n catch (IOException | ClassNotFoundException e)\n {\n logger.error(\"Error while deserializing CustomerSale.\", e);\n return null;\n }\n }", "title": "" }, { "docid": "bb8f09fbbb13d202cf3516940f7c8a24", "score": "0.48695934", "text": "public static Object decodeObject(String str) throws KVException {\n\t\tObject obj = null;\n\t\ttry{\n\t byte[] decoded = DatatypeConverter.parseBase64Binary(str);\n\t ObjectInputStream is = new ObjectInputStream(new ByteArrayInputStream(decoded));\n\t obj = is.readObject();\n\t is.close();\n\t\t} catch(IOException e) {\n\t throw new KVException(new KVMessage(\"resp\", \"Unknown Error: Unable to decode object\"));\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t throw new KVException(new KVMessage(\"resp\", \"Unknown Error: Decoding object class not found\"));\n\t\t}\n\t\treturn obj;\n\t}", "title": "" }, { "docid": "36310b2ce0d6fe425aedad44bfc1016c", "score": "0.4869089", "text": "public Object unpack(byte[] bytes) {\n switch (this) {\n default: // c\n return bytes[0];\n case U:\n return new String(bytes).codePointAt(0);\n case s:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getShort();\n case sb:\n return ByteBuffer.wrap(bytes).order(BIG_ENDIAN).getShort();\n case sl:\n return ByteBuffer.wrap(bytes).order(LITTLE_ENDIAN).getShort();\n case l:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getInt();\n case lb:\n return ByteBuffer.wrap(bytes).order(BIG_ENDIAN).getInt();\n case ll:\n return ByteBuffer.wrap(bytes).order(LITTLE_ENDIAN).getInt();\n case q:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getLong();\n case qb:\n return ByteBuffer.wrap(bytes).order(BIG_ENDIAN).getLong();\n case ql:\n return ByteBuffer.wrap(bytes).order(LITTLE_ENDIAN).getLong();\n case D:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getDouble();\n case d:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getDouble();\n case E:\n return ByteBuffer.wrap(bytes).order(LITTLE_ENDIAN).getDouble();\n case G:\n return ByteBuffer.wrap(bytes).order(BIG_ENDIAN).getDouble();\n case F:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getFloat();\n case f:\n return ByteBuffer.wrap(bytes).order(nativeOrder()).getFloat();\n case e:\n return ByteBuffer.wrap(bytes).order(LITTLE_ENDIAN).getFloat();\n case g:\n return ByteBuffer.wrap(bytes).order(BIG_ENDIAN).getFloat();\n case B:\n return ByteUtils.toBinaryString(bytes, true);\n case b:\n return ByteUtils.toBinaryString(bytes, false);\n case H:\n return ByteUtils.toHexString(bytes, true);\n case h:\n return ByteUtils.toHexString(bytes, false);\n }\n }", "title": "" }, { "docid": "0461370632a6d150ee6cf9d7e7b11aad", "score": "0.48663315", "text": "public abstract byte[] getBytes();", "title": "" }, { "docid": "ce9dbbb58b06749a68e076437e95a1dd", "score": "0.48631665", "text": "public Song get(int i) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "0fd4b721651acabed001ed767ffc756c", "score": "0.48590353", "text": "public abstract InputStream getByteStream();", "title": "" }, { "docid": "73c6fb2b055da5f460be37beac5d3a04", "score": "0.48586217", "text": "private Song findSong(String title) { // private because we don't want to give users access to this method.\n\n for (Song s : album) {\n if (s.getTitle() == title) {\n return s;\n }\n }\n return null;\n }", "title": "" }, { "docid": "8d9dd5fd62dceb20cbb7b9b2742c6918", "score": "0.48579857", "text": "public <T> T fromJson(final byte[] bytes, final Class<T> clazz) throws IOException {\n return mapper.readValue(bytes, clazz);\n }", "title": "" }, { "docid": "533ff3065a8f63b0b4fbca66412bcaa0", "score": "0.4856541", "text": "public Song findSong(final Long key) {\n\n\t\tif (key == null)\n\t\t\tthrow new ValidationException(\"Invalid Song id\");\n\n\t\treturn entityManager.find(Song.class, key);\n\t}", "title": "" }, { "docid": "30166f0820ca5f7ce89ac487cdd9068f", "score": "0.4849493", "text": "public Song(String s){\n songLine = s;\n }", "title": "" }, { "docid": "63be4eacf73253fad52627ccc24920f3", "score": "0.4847643", "text": "public Object loadObjectRaw(String fichier) {\n Object obj = null;\n ObjectInputStream in = null;\n try {\n if (!new File(fichier).exists()) {\n return null;\n }\n in = new ObjectInputStream((new FileInputStream(fichier)));\n obj = in.readObject();\n in.close();\n } catch (Exception e) {\n try {\n if (in != null) {\n in.close();\n }\n } catch (Exception e3) {\n }\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n e.printStackTrace(pw);\n String stacktrace = sw.toString();\n pw.close();\n System.err.println(stacktrace);\n }\n return obj;\n }", "title": "" }, { "docid": "dc81896ff5bf1ca6c677ec8ba11717a8", "score": "0.48448125", "text": "public com.google.protobuf.ByteString\n getArtistBytes() {\n java.lang.Object ref = artist_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n artist_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c87837a105e580a231fee256724291b", "score": "0.48358136", "text": "private Image retrieveImage(byte bytes[]) throws IOException\n {\n return ImageIO.read(new ByteArrayInputStream(bytes));\n }", "title": "" }, { "docid": "6cc90c442076d5461f505f38fc49883f", "score": "0.48314404", "text": "com.google.protobuf.ByteString\n getAudioBytes();", "title": "" }, { "docid": "6cc90c442076d5461f505f38fc49883f", "score": "0.48314404", "text": "com.google.protobuf.ByteString\n getAudioBytes();", "title": "" }, { "docid": "708b6cc63fd62482b6c5bdf7cec56e4d", "score": "0.4822414", "text": "V read(R record);", "title": "" }, { "docid": "f2fe5d83561fd94b1e5655e6611ea138", "score": "0.4821843", "text": "public Song getSongById(String trackId) {\n\t\t//TODO: complete method\n\t\treturn this.songMap.get(trackId);\n\t}", "title": "" }, { "docid": "bc0f2a2d799201a3eae7cd7408cca9ac", "score": "0.4817528", "text": "public native Object3D parse(ArrayBuffer content);", "title": "" }, { "docid": "c38cb9c0afe4ffae5effe16dd112f2ae", "score": "0.48143584", "text": "public native @Cast(\"uint8_t*\") BytePointer subtitle_header();", "title": "" }, { "docid": "bed38886b77dd22fcabf76e7a3fdedcf", "score": "0.4813592", "text": "byte[] getQ();", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "b503fc7fa1f36527045b729accf7ab38", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n return true;\n }", "title": "" } ]
[ { "docid": "9813d71a4b724b9d132f23a2cb80322c", "score": "0.70787674", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_activity_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "1d4d5f0b7f637b68b1f2843e12b93b97", "score": "0.7056497", "text": "@Override\n\t public boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main_activity_actions, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t }", "title": "" }, { "docid": "797cada69ce026eb3610079543cb23e3", "score": "0.70531106", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu_activity_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "23fa59e556453058d2bdddd706d81ef5", "score": "0.7040148", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowup=getMenuInflater();\n\t\tblowup.inflate(R.menu.coolmenu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0d248ac9bca93578555acff1c726ea49", "score": "0.6982361", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.layout.amenufavorites_actions, menu);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6ca5cc09a9db267fe09cd935c6bca3d8", "score": "0.69754636", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater=getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "d48074d93cc9fa97e207ded3a9318cf2", "score": "0.6974777", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d9f8dccdf948d8ba404dd4ab8dcf4fab", "score": "0.6955428", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.bar, menu);\n return true;\n }", "title": "" }, { "docid": "5361fca61308505b956341f77c0e301b", "score": "0.6921962", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.mainpage_activity, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6916928", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6b45c019e2a093d89a9093647aa93d8a", "score": "0.6905344", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_bar_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "4cb9e69581fbbd1517d65055054baed5", "score": "0.6903285", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\t\treturn super.onCreateOptionsMenu(menu);\n\t\t}", "title": "" }, { "docid": "e29f41f2c322b6571c12aa1d7475776a", "score": "0.68924403", "text": "@Override\n public boolean onCreateOptionsMenu(android.view.Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2c2541506272d9dcb18cec913484ddca", "score": "0.6881299", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n //getMenuInflater().inflate(R.menu.menu_main, menu);\n //return true;\n }", "title": "" }, { "docid": "b2b4f13c30c3e71ef3d89549d09b2bbd", "score": "0.6874043", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.bar_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.68621665", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "de6168daad2ac8d29d980fc7c3388d94", "score": "0.68467957", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "title": "" }, { "docid": "de6168daad2ac8d29d980fc7c3388d94", "score": "0.68467957", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "title": "" }, { "docid": "973855182fd9a5bfd2c3910b41580942", "score": "0.68430096", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n super.onCreateOptionsMenu(menu);\r\n //folosesc inflaters petnru ca am o metoda deja createa (menu)\r\n //inflater ataseaza o parte de java la o parte de xml\r\n getMenuInflater().inflate(R.menu.app_main_menu, menu);\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "233f0a1dc01f140c2d3d274dee07bb9b", "score": "0.6831944", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n \tsuper.onCreateOptionsMenu(menu);;\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.menu, menu);\n \treturn true;\n }", "title": "" }, { "docid": "3bfe35566bc616404911e8e4a19e37c3", "score": "0.68294567", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2cc05d60945bafa855b419918f481973", "score": "0.68260306", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "130df34064e46b4cd517841f00e04b9d", "score": "0.6824429", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "54dfc1e44acfd64fcd4d9635e999627b", "score": "0.68042976", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.custom_action_bar, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "56d8d832ac3023a5f747878fe5a4a444", "score": "0.68030274", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t menu.add(\"Menu 1a\").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n menu.add(\"Menu 1b\").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n\t}", "title": "" }, { "docid": "5c755a1a2e17389087b52eea3c41d2cb", "score": "0.67956126", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action_bar, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "714da39856e75d5bed48a23456e559fb", "score": "0.67948323", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_bar_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "9d2511f2257f4eaa226d53a72d3a3d28", "score": "0.6790806", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n //inflater.inflate(R.menu.home_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "580c217d5e84d7e768636b69fc9609ca", "score": "0.677577", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main_menu, menu);\n }", "title": "" }, { "docid": "580c217d5e84d7e768636b69fc9609ca", "score": "0.677577", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main_menu, menu);\n }", "title": "" }, { "docid": "b5a712665ab7d060125a9afad44d9554", "score": "0.67726046", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu_main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "2145818ed7d71aa4f1f976519d0381a5", "score": "0.6767149", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\tMenuInflater inflate=getMenuInflater();\n\t\tinflate.inflate(R.menu.menu, menu);\n\t\t\n\t\t\n\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e39652f6f97708e89bb273747717e085", "score": "0.6763062", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater=getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d48e27560cc805dd42c21fcdbf95b6d9", "score": "0.6762991", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.menu_swipe_activity, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "e70abe917fe4d0a552929d81b25da559", "score": "0.6757069", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "9e8d490af5f579bb2cf9a26e01a64612", "score": "0.67531896", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.fruit_info_screen, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aba9d941e02abb6f260e83b3aa1543f2", "score": "0.6746533", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0c16ef8f6e725595a816b7d384ebb81c", "score": "0.67465127", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.fav_menu, menu);\n\n }", "title": "" }, { "docid": "f17d5c94a5450eef6a504fa05d35ef60", "score": "0.67459476", "text": "public void createMenuBar() {\n\t\tfinal IMenuManager menuManager = getViewSite().getActionBars().getMenuManager();\n\t\tmenuManager.add(new AddFolderAction(this));\n\t\tmenuManager.add(new AddCategoryAction(this));\n\t\tmenuManager.add(new Separator());\n\t\tmenuManager.add(new RenameElementAction(this));\n\t\tmenuManager.add(new Separator());\n\t\tmenuManager.add(new CopyTreeComponentAction(this,clipboard));\n\t\tmenuManager.add(new CutTreeComponentAction(this,clipboard));\n\t\tmenuManager.add(new PasteTreeComponentAction(this,clipboard));\n\t\tmenuManager.add(new RemoveElementAction(this));\n\t\tmenuManager.add(new Separator());\n\t\tmenuManager.add(new UpdateViewAction(this));\n\t\tmenuManager.add(new CollapseAllAction(this));\n\t}", "title": "" }, { "docid": "d6a3951f27e73f5f9b7bc97ccbd7f647", "score": "0.6744127", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "d6a3951f27e73f5f9b7bc97ccbd7f647", "score": "0.6744127", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "7677b80d26a474626fe92ea78f0230b7", "score": "0.67418873", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.fresh_menu, menu);\n return true;\n }", "title": "" }, { "docid": "18db5c4fb6cdaffbbce743c847478e55", "score": "0.6732031", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "5fa9c9b92e22f3003ee92b43a421f38e", "score": "0.673141", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67226785", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67226785", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "27fd72537e22e444e0e735fb22cebd45", "score": "0.6721038", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "70cf5cfa728c4168bad2a370e23963d2", "score": "0.67163664", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n return true;\n }", "title": "" }, { "docid": "d1350753f720bf800767ed5f411d29b5", "score": "0.6715242", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main_activity_actions, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.6704564", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "c95cdb5843c5dd6f863bce9f47539159", "score": "0.67030174", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.actualite_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "90b147d6905fe9d27d67d16cf18bcd76", "score": "0.6700756", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "fbe7a9725684068a6d180e2ee9f9dab5", "score": "0.6699406", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\t// generates a Menu from a menu resource file\r\n\t\t// R.menu.main_menu represents the ID of the XML resource file\r\n\t\tinflater.inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7f0b2226645babc37a0eb99ebab02231", "score": "0.6695751", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.appbar, menu);\n return true;\n }", "title": "" }, { "docid": "73348ae1c8922e66029358dab9fe4521", "score": "0.66955817", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu_item, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f0e79b08257047bf78d6f24887ae1e09", "score": "0.6687423", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n\n\n }", "title": "" }, { "docid": "58b51e90d6d0a69b04c4cd210f2e31b4", "score": "0.6686782", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "58b51e90d6d0a69b04c4cd210f2e31b4", "score": "0.6686782", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "06641df4f9ea4023d2982804e61981e8", "score": "0.6684319", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.menu, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "76e905c2f87712b24ccf01a0ef716f48", "score": "0.6684126", "text": "@Override\r\n public boolean onCreateOptionsMenu (Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\r\n return true;\r\n }", "title": "" }, { "docid": "26adc1e57fcbad7bb2a5b6a7d57e2864", "score": "0.66829586", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) { Inflate the menu; this adds items to the action bar if it is present.\n //\n \t/*\n \t * Commenting this out for now, we will need to redo the design a bit if we want this as a menu.\n \t * I will look into a more efficient way of inflating this. Go ahead and just ignore it for now.\n \t */\n \t//getMenuInflater().inflate(R.menu.menu_add_account, menu);\n \t//\n return true;\n }", "title": "" }, { "docid": "dbfd8935cbffea8648348d87a8abf82f", "score": "0.6680558", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_category, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8e732469588d275fa857dc91f372941f", "score": "0.66799873", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.actionbar_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d918dec9691f9389b1e1791fd22adcd7", "score": "0.6675478", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_bar_menu, menu);\n return true;\n }", "title": "" }, { "docid": "e1e1ba6e055593cb2a3e7bf612d2aad0", "score": "0.6672125", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n /* Use the inflater's inflate method to inflate our menu layout to this menu */\n inflater.inflate(R.menu.main, menu);\n /* Return true so that the menu is displayed in the Toolbar */\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6cc5da99a32692d41c31cc394b4bd681", "score": "0.6667702", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "title": "" }, { "docid": "2ee04141f25c0b7dd4efe16fbb659b60", "score": "0.6667679", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home_menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "32f2b30ca557c3111fa2321cd444c8af", "score": "0.6665437", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.66609097", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "48413b5f18107af04ec85f86b8721d4f", "score": "0.6659312", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "title": "" }, { "docid": "40921ff7517ee4a054ac2f20be84a0c0", "score": "0.66582495", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Global.mainActivity.getMenuInflater().inflate(R.menu.main, menu);\n return true;\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6656586", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6656586", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6656586", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "0d4e3aebc4bc5b0c75ee39f00b08e241", "score": "0.665378", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tif (loggedIn) {\n\t\t\tinflater.inflate(R.menu.lookup_and_add, menu);\n\t\t}\n\t\telse {\n\t\t\tinflater.inflate(R.menu.lookup_and_add_logged_out, menu);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d3e1bf0e096ddb62754e800cc4637ec6", "score": "0.6651535", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e6c72ec1b9f32acf0bc40939d970b5e4", "score": "0.6651373", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(edu.dtcc.emailman.cis282listview2.R.menu.menu_main, menu);\n return true;\n }", "title": "" }, { "docid": "4e83c010b9ba4867da4305f1c4f84972", "score": "0.6649166", "text": "@Override\n \t public boolean onCreateOptionsMenu(Menu menu)\n \t {\n \t MenuInflater menuInflater = getMenuInflater();\n \t menuInflater.inflate(R.menu.menu, menu);\n \t return true;\n \t }", "title": "" }, { "docid": "da6b64de551c39fb51c3a659ceaa75de", "score": "0.6644873", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.item_info, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a02cea8b5ad3fe19952c84bf67d82321", "score": "0.66437536", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_activity_add, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "1a453c762ad4f106f8bafd6d4bdcea54", "score": "0.6643071", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.news_mapper, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "54819dae6818a8473fc7ab2591c860f7", "score": "0.6641646", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.init, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6d04a556b823264a818c7c9872de2e24", "score": "0.66386074", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "78b2c983f4a6c6fb0bff3fe0acaa6022", "score": "0.66379666", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //MenuInflater inflater = getMenuInflater();\n //inflater.inflate(R.menu, menu);\n return true;\n }", "title": "" }, { "docid": "4a1dcc16de80916124a40ec94a438a14", "score": "0.6635946", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_wishlist, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6634786", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6634786", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6634786", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d8ce15c753b2f57bb1cc72425602ea9f", "score": "0.6634715", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_appbar, menu);\n return true;\n }", "title": "" }, { "docid": "e13e923456c6b1976e6aaf1a14465816", "score": "0.6633636", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n //setupActionBar();\n return true;\n }", "title": "" }, { "docid": "b09ea401caa9218ecee525659a3c546f", "score": "0.66327494", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.movielistfragment, menu);\n }", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6632049", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "969171cc029ab290016039a5f224aa9a", "score": "0.6632032", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\t\t\tLog.i(\"state\", \"menu button was pushed\");\t\t\t\t\t\t\t\t//============logging=============\r\n\t\t\t\tMenuInflater blowUp = getMenuInflater();\r\n\t\t\t\tblowUp.inflate(R.menu.cool_menu, menu);\r\n\t\t\t\treturn true;\r\n\r\n\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "257f720bbceb69df12a7cafe14f0f300", "score": "0.66311395", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.m1, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "af338d435cb5615924a1f8fbc74396a3", "score": "0.66306764", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu_base, menu);\n\t\tthis.menu = menu;\n//\t\tmenu.findItem(R.id.action_create).setActionProvider(new MyActionProvider(this));\n\t\t\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "86437b2cf081aea9adcb7a4b44938b29", "score": "0.6629388", "text": "@Override\r\n\t public boolean onCreateOptionsMenu(Menu menu) {\n\t \tMenuInflater menuInflater = getMenuInflater();\r\n\t \tmenuInflater.inflate(R.menu.activity_main, menu);\r\n\t \treturn true;\r\n\t }", "title": "" }, { "docid": "ccde3a4c4e24ff63bc4fd7be953efc4a", "score": "0.6629336", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu,MenuInflater inflater) {\n\t\tgetActivity().getMenuInflater().inflate(R.menu.main, menu);\n\t\t\n\t}", "title": "" }, { "docid": "6161f5f4b5cee49bea196c1e40e8d77f", "score": "0.6626987", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6626297", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "277058fcbb6c657f51a16add64c659d8", "score": "0.6626297", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c99b09ab9f8053599448ec9542394560", "score": "0.66218686", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n \n menu.clear();\n \n if( User.getInstance().checkedIn() )\n {\n menu.add(0,0,ACTION_CHECK_OUT,getString(R.string.check_out))\n .setIcon( R.drawable.door)\n .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);\n\n menu.add(0,0,ACTION_REFRESH,getString(R.string.refresh))\n .setIcon( R.drawable.ic_action_refresh)\n .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);\n }\n }", "title": "" } ]
430d326b0acfc76ee5fac6c58f6c4aa3
Converti un message en tableau de bytes, pour envoi par paquet
[ { "docid": "4d5386bde9464bc53446971b4d1588df", "score": "0.60763264", "text": "public abstract byte[] toBytes();", "title": "" } ]
[ { "docid": "b321dfeb924ad382cfa20c950d57cd92", "score": "0.66505677", "text": "public void generateFromByteMessage(byte[] mes);", "title": "" }, { "docid": "1f129a12a3d96ef982c0d51c07a469a6", "score": "0.63639146", "text": "@Test\n public void testCreateBytesMessageFromDataWithEmptyBinaryAndNoContentType() throws Exception {\n Message message = Proton.message();\n Binary binary = new Binary(new byte[0]);\n message.setBody(new Data(binary));\n\n assertNull(message.getContentType());\n\n JmsMessage jmsMessage = AmqpCodec.decodeMessage(mockConsumer, encodeMessage(message)).asJmsMessage();\n assertNotNull(\"Message should not be null\", jmsMessage);\n assertEquals(\"Unexpected message class type\", JmsBytesMessage.class, jmsMessage.getClass());\n\n JmsMessageFacade facade = jmsMessage.getFacade();\n assertNotNull(\"Facade should not be null\", facade);\n assertEquals(\"Unexpected facade class type\", AmqpJmsBytesMessageFacade.class, facade.getClass());\n }", "title": "" }, { "docid": "5125f7132e71de5818c4d3e3c6e4d14c", "score": "0.63453066", "text": "public byte[] getByteMessage();", "title": "" }, { "docid": "045c3f3f732afe8d049d2b84ab2d7c13", "score": "0.632417", "text": "@Test\n public void testCreateAmqpBytesMessageFromAmqpValueWithBinary() throws Exception {\n Message message = Proton.message();\n Binary binary = new Binary(new byte[0]);\n message.setBody(new AmqpValue(binary));\n\n JmsMessage jmsMessage = AmqpCodec.decodeMessage(mockConsumer, encodeMessage(message)).asJmsMessage();\n assertNotNull(\"Message should not be null\", jmsMessage);\n assertEquals(\"Unexpected message class type\", JmsBytesMessage.class, jmsMessage.getClass());\n\n JmsMessageFacade facade = jmsMessage.getFacade();\n assertNotNull(\"Facade should not be null\", facade);\n assertEquals(\"Unexpected facade class type\", AmqpJmsBytesMessageFacade.class, facade.getClass());\n }", "title": "" }, { "docid": "06b5faf8c7e23ffdc8781f266c69c1b7", "score": "0.6223054", "text": "public byte[] serializeMessage( Message message );", "title": "" }, { "docid": "6d262da2a41827145174562c17c22a8e", "score": "0.6190351", "text": "public void testCreateBytesMessageFromDataWithUnknownContentType() throws Exception {\n Message message = Proton.message();\n Binary binary = new Binary(new byte[0]);\n message.setBody(new Data(binary));\n message.setContentType(\"unknown-content-type\");\n\n JmsMessage jmsMessage = AmqpCodec.decodeMessage(mockConsumer, encodeMessage(message)).asJmsMessage();\n assertNotNull(\"Message should not be null\", jmsMessage);\n assertEquals(\"Unexpected message class type\", JmsBytesMessage.class, jmsMessage.getClass());\n\n JmsMessageFacade facade = jmsMessage.getFacade();\n assertNotNull(\"Facade should not be null\", facade);\n assertEquals(\"Unexpected facade class type\", AmqpJmsBytesMessageFacade.class, facade.getClass());\n }", "title": "" }, { "docid": "63521f23ea9cdf9110ceced225dda0e8", "score": "0.6126401", "text": "public byte [] toByteArray() {\n StringBuilder builder=new StringBuilder();\n builder.append(type.getMessagePrefix());\n for (String param : messageParams)\n builder.append(PARAM_DELIM).append(param);\n\n for (Info i : infoAttached) {\n builder.append(INFO_DELIM).append(i.toString());\n }\n\n byte [] ret = builder.toString().getBytes();\n assert ret.length<1024 : \"FATAL ERROR ! byte overflow\";\n return ret;\n }", "title": "" }, { "docid": "e1172105ea063e345464fcc05ae66774", "score": "0.60890543", "text": "@NotNull\n byte[] toBytes(@NotNull T message, @NotNull AMQP.BasicProperties.Builder propertyBuilder) throws IOException;", "title": "" }, { "docid": "c25807019361c517a321905d7c84c38b", "score": "0.6046669", "text": "public byte[] getByteArray(){\n /*\n Calculate the size required for the byte array\n based on the type of the object\n Integer 4 bytes\n String 4 + length of string bytes\n Long 8 bytes\n Byte Array 4 + length of byte array\n OneByteInt 1 byte\n */\n int size = 1;\n for (Object value : values.values()){\n if (value instanceof Integer){\n size += 4;\n }else if (value instanceof String){\n size += 4 + ((String) value).length();\n }else if (value instanceof Long){\n size += 8;\n }else if (value instanceof byte[]){\n size += 4 + ((byte[]) value).length;\n }else if (value instanceof OneByteInt){\n size += 1;\n }\n }\n /*\n Declared a buffer with the size calculated\n */\n byte[] buffer = new byte[size];\n /*\n Perform the conversion of messages\n based on the component and stored in the buffer\n */\n int index = 0;\n for (String property : properties){\n Object value = values.get(property);\n if (value instanceof Integer){\n index = intToByte((Integer) value, buffer, index); /* convert Integer to bytes */\n }else if (value instanceof String){\n index = intToByte(((String) value).length(), buffer, index); /* first integer is the length of string */\n index = stringToByte((String) value, buffer, index); /* convert the content of string to bytes */\n }else if (value instanceof Long){\n index = longToByte((Long) value, buffer, index); /* convert Long to bytes */\n }else if (value instanceof byte[]){\n index = intToByte(((byte[]) value).length, buffer, index); /* first integer is the length of the byte array */\n System.arraycopy(value, 0, buffer, index, ((byte[]) value).length); /* store the bytes into the buffer */\n index += ((byte[]) value).length;\n }else if (value instanceof OneByteInt){\n buffer[index ++] = (byte) (((OneByteInt) value).getValue() & 0xFF); /* convert OneByteInt into bytes */\n }\n }\n /*\n Return the buffer containing the converted message\n */\n return buffer;\n }", "title": "" }, { "docid": "898af85d4c85a10efc2196c68b26f02d", "score": "0.60184646", "text": "public void generateFromByteBufferMessage(ByteBuffer mes);", "title": "" }, { "docid": "1b105a617e4c0819bd7d670182ccb341", "score": "0.59781873", "text": "@Test\n public void testCreateBytesMessageFromNoBodySectionAndNoContentType() throws Exception {\n Message message = Proton.message();\n\n assertNull(message.getContentType());\n\n JmsMessage jmsMessage = AmqpCodec.decodeMessage(mockConsumer, encodeMessage(message)).asJmsMessage();\n assertNotNull(\"Message should not be null\", jmsMessage);\n assertEquals(\"Unexpected message class type\", JmsBytesMessage.class, jmsMessage.getClass());\n\n JmsMessageFacade facade = jmsMessage.getFacade();\n assertNotNull(\"Facade should not be null\", facade);\n assertEquals(\"Unexpected facade class type\", AmqpJmsBytesMessageFacade.class, facade.getClass());\n }", "title": "" }, { "docid": "2f02c4f600479ed42f2410c46f5d82b5", "score": "0.59014547", "text": "ScrabbleBinary to_Binary();", "title": "" }, { "docid": "26468448dbce1c005ee49a36dc39f987", "score": "0.5892252", "text": "public abstract byte[] toBytesRaw();", "title": "" }, { "docid": "3df473a5bc3e5eae4e091246d78204ff", "score": "0.5877067", "text": "public byte[] getByteMessage() throws Exception {\n // Get the header\n byte[] header = getByteHeader(); \n byte[] message = new byte[header.length + dataLength];\n \n // Place the header information\n ByteBuffer buffer = ByteBuffer.wrap(message);\n buffer.put(header);\n \n byte[] address = mcastAddress.getAddress().getAddress();\n \n // Place the contents of this data\n buffer.put((byte)address.length);\n buffer.put(address);\n buffer.putInt(mcastAddress.getPort());\n \n // Put the name\n buffer.putInt(playerName.length());\n buffer.put(playerName.getBytes());\n\n // Put the co-ordinates of the spawn point\n buffer.putInt(sp.getX());\n buffer.putInt(sp.getY());\n buffer.putLong(startTime);\n \n // Return the fully created message\n return message;\n\t}", "title": "" }, { "docid": "1e529113cf4e4c55193ac360b32a8392", "score": "0.58671963", "text": "public abstract void asBytes(ByteBuffer buf);", "title": "" }, { "docid": "d3e90d7ea663cb87b1c1c0e65e9f9a34", "score": "0.5822383", "text": "public static Message parseMessage(byte[] msg) throws Exception {\n // find the index of the sequence \\r\\n\\r\\n\n boolean foundSeq = false;\n int i;\n for (i = 0; i < msg.length - 3 && !foundSeq;) {\n if (msg[i] == '\\r' && msg[i + 1] == '\\n' && msg[i + 2] == '\\r' && msg[i + 3] == '\\n')\n foundSeq = true;\n else\n i++;\n }\n\n // split head and body\n byte[] headRaw = Arrays.copyOf(msg, i - 1);\n byte[] bodyRaw = Arrays.copyOfRange(msg, i + 4, msg.length);\n\n // Split head in fields\n String[] headFields = new String(headRaw, StandardCharsets.US_ASCII).split(\" \");\n\n // get the message type\n String msgType = headFields[0];\n\n msgType=msgType.toUpperCase();\n\n /** all possible fields */\n String version = headFields[1];\n Integer senderId = Integer.parseInt(headFields[2]);\n byte[] fileId = null;\n Integer chunkNo = null;\n Integer replicationDegree = null;\n\n if (msgType.equals(MessageType.PUTCHUNK.toString())) {\n // PUTCHUNK message\n fileId = Message.hexStringToByteArray(headFields[3]);\n chunkNo = Integer.parseInt(headFields[4]);\n replicationDegree = Integer.parseInt(headFields[5]);\n return new PutChunkMessage(version, senderId, fileId, chunkNo, replicationDegree, bodyRaw);\n } else if (msgType.equals(MessageType.STORED.toString())) {\n // STORED message\n fileId = Message.hexStringToByteArray(headFields[3]);\n chunkNo = Integer.parseInt(headFields[4]);\n return new StoredMessage(version, senderId, fileId, chunkNo);\n } else if (msgType.equals(MessageType.GETCHUNK.toString())) {\n // GETCHUNK message\n fileId = Message.hexStringToByteArray(headFields[3]);\n chunkNo = Integer.parseInt(headFields[4]);\n return new GetChunkMessage(version, senderId, fileId, chunkNo);\n } else if (msgType.equals(MessageType.CHUNK.toString())) {\n // CHUNK message\n fileId = Message.hexStringToByteArray(headFields[3]);\n chunkNo = Integer.parseInt(headFields[4]);\n return new ChunkMessage(version, senderId, fileId, chunkNo, bodyRaw);\n } else if (msgType.equals(MessageType.DELETE.toString())) {\n // DELETE message\n fileId = Message.hexStringToByteArray(headFields[3]);\n return new DeleteMessage(version, senderId, fileId);\n } else {\n // unknown\n throw new Exception(String.format(\"Unexpected message type %s\", headFields[0]));\n }\n\n }", "title": "" }, { "docid": "48b1083d64f3f2d25f070c396b0feec7", "score": "0.5814429", "text": "public byte[] serialize(M message);", "title": "" }, { "docid": "1ed998463ebe07733c1471f83c69e8ed", "score": "0.57736206", "text": "@Override // org.eclipse.paho.client.mqttv3.internal.p2325b.MqttWireMessage\n public byte[] bi_() throws MqttException {\n try {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);\n m155293a(dataOutputStream, this.f115069e);\n if (this.f115068d.mo134918c() > 0) {\n dataOutputStream.writeShort(this.f115079b);\n }\n dataOutputStream.flush();\n return byteArrayOutputStream.toByteArray();\n } catch (IOException e) {\n throw new MqttException(e);\n }\n }", "title": "" }, { "docid": "4037df9a315ff7d2034e1a868fa618fe", "score": "0.57716936", "text": "private static void writeBytes(String transCode, OutputStream out) throws Exception {\n\n String headerStr = buildHead(transCode);\n\n// String fixedParams = buildFixedParams(transCode);\n\n String cBlockParams = buildCBlockParams(transCode);\n\n IoBuffer bb = IoBuffer.allocate(256);\n bb.setAutoExpand(true);\n \n \n\n CharsetEncoder encoder = com.runssnail.monolith.socket.Constants.DEFAULT_CHARSET.newEncoder();\n\n int headerLen = headerStr.getBytes(com.runssnail.monolith.socket.Constants.DEFAULT_CHARSET).length;\n \n \n\n //int fixedLen = fixedParams.getBytes(com.runssnail.monolith.socket.Constants.DEFAULT_CHARSET).length;\n\n int cLen = cBlockParams.getBytes(com.runssnail.monolith.socket.Constants.DEFAULT_CHARSET).length;\n \n int len = 4 + headerLen + cLen; // a + b + c = 整个报文长度\n\n// int dLen = headerLen + fixedLen;\n// int bLen = headerLen ;\n\n// bb.putString(StringUtil.alignRight(String.valueOf(bLen), 8, \"0\"), encoder); // a\n \n bb.putInt(len);\n\n// bb.putString(StringUtil.alignRight(String.valueOf(cLen), 8, \"0\"), encoder); // b\n\n// bb.putString(StringUtil.alignRight(\"0\", 16, \"0\"), encoder); // c\n\n bb.putString(headerStr, encoder);\n// bb.putString(fixedParams, encoder);\n\n if (StringUtil.isNotBlank(cBlockParams)) {\n bb.putString(cBlockParams, encoder);\n }\n\n // bb.order(ProtocolDTO.byteOrder);\n // bb.putInt(body.length());\n\n byte[] b = new byte[bb.position()];\n\n System.out.println(\"send bytes=\" + b.length);\n\n bb.flip();\n bb.get(b);\n\n out.write(b);\n }", "title": "" }, { "docid": "90113bbbac0ee4d49d121d1e7b7c384e", "score": "0.57563376", "text": "BigDecimal bytes();", "title": "" }, { "docid": "785017e044ca811eae9af5d07cf73564", "score": "0.5746868", "text": "public static byte[] Encode(bCapPacket msg) throws Throwable\n\t{\n\t\tif(msg == null){\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\t\n\t\tint i;\n\t\tint iDataNum = msg.SizeVariant();\n\t\tint[] iDataSize = GetDataSize(msg, iDataNum);\n\t\t\n\t\t// Calculate Message Size\n\t\tint iSize = m_iDefaultSize + m_iReserveSize;\n\t\tif(iDataNum != 0)\n\t\t{\n\t\t\tfor(i = 0; i < iDataSize.length; i++)\n\t\t\t{\n\t\t\t\tiSize += iDataSize[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\tbyte[] bRet = new byte[iSize];\n\t\t\n\t\t// SOH\n\t\tbRet[0] = 0x1;\n\t\t\n\t\t// Message Length\n\t\tByteBuffer.wrap(bRet, m_iMsgPoint[0], m_iMsgPoint[1] - m_iMsgPoint[0]).order(m_bo).putInt(iSize);\n\t\n\t\t// Serial Number\n\t\tByteBuffer.wrap(bRet, m_iMsgPoint[1], m_iMsgPoint[2] - m_iMsgPoint[1]).order(m_bo).putShort(msg.GetSerial());\n\n\t\t// Reservation Area\n\t\tByteBuffer.wrap(bRet, m_iMsgPoint[2], m_iMsgPoint[3] - m_iMsgPoint[2]).order(m_bo).putShort(msg.GetReserv());\n\t\t\n\t\t// Function ID\n\t\tByteBuffer.wrap(bRet, m_iMsgPoint[3], m_iMsgPoint[4] - m_iMsgPoint[3]).order(m_bo).putInt(msg.GetID());\n\t\t\n\t\t// Number of Arguments\n\t\tByteBuffer.wrap(bRet, m_iMsgPoint[4], m_iMsgPoint[5] - m_iMsgPoint[4]).order(m_bo).putShort((short) iDataNum);\n\t\t\n\t\t// Arguments\n\t\tif(iDataNum != 0)\n\t\t{\n\t\t\tint ipoint = 0;\n\t\t\tfor(i = 0; i < iDataSize.length; i++)\n\t\t\t{\n\t\t\t\tif(i == 0)\n\t\t\t\t{\n\t\t\t\t\tipoint = m_iMsgPoint[5];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tipoint += iDataSize[i - 1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Size of Argument\n\t\t\t\tByteBuffer.wrap(bRet, ipoint, m_iArgPoint[0]).order(m_bo).putInt(iDataSize[i] - m_iArgPoint[0]);\n\t\n\t\t\t\t// Data Type\n\t\t\t\tByteBuffer.wrap(bRet, ipoint + m_iArgPoint[0], m_iArgPoint[1] - m_iArgPoint[0]).order(m_bo).putShort((short) msg.GetVariant(i).VariantGetType());\n\t\n\t\t\t\t// Number of Data\n\t\t\t\tif(((msg.GetVariant(i).VariantGetType() & VARENUM.VT_ARRAY) != 0) && (msg.GetVariant(i).VariantGetObject() != null))\n\t\t\t\t{\n\t\t\t\t\tByteBuffer.wrap(bRet, ipoint + m_iArgPoint[1], m_iArgPoint[2] - m_iArgPoint[1]).order(m_bo).putInt(((SAFEARRAY)(msg.GetVariant(i).VariantGetObject())).SafeArrayGetElemsize());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tByteBuffer.wrap(bRet, ipoint + m_iArgPoint[1], m_iArgPoint[2] - m_iArgPoint[1]).order(m_bo).putInt(1);\n\t\t\t\t}\n\t\n\t\t\t\tbRet = VARIANT2byte(ipoint + m_iArgPoint[2], bRet, msg.GetVariant(i).VariantGetType(), msg.GetVariant(i).VariantGetObject());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Reservation Area\n\t\tfor(i = bRet.length - m_iReserveSize - 1; i < bRet.length - 1; i++)\n\t\t{\n\t\t\tbRet[i] = 0x0;\n\t\t}\n\t\t\n\t\t// EOH\n\t\tbRet[bRet.length - 1] = 0x4;\n\t\t\n\t\treturn bRet;\n\t}", "title": "" }, { "docid": "75581192d66cc78ec36ff7a046eac677", "score": "0.5745753", "text": "public byte[] toBytes(OrderMessage msg) {\n\t\treturn msg.toString().getBytes();\n\t}", "title": "" }, { "docid": "c1112f49923945c68b54afb2be1cd0b4", "score": "0.5733956", "text": "@Nullable\n ByteBuffer encodeMessage(@Nullable T message);", "title": "" }, { "docid": "31d28e270f8a2b8c335efd4deb5090d3", "score": "0.57282734", "text": "public void setByteMessage(byte[] byteMessage);", "title": "" }, { "docid": "638b1be75dcb9a9a0cee0a1c84be29e6", "score": "0.56825775", "text": "public byte[] getBytesFromMessage(Msg msg) throws IOException {\n\t\tbos = new ByteArrayOutputStream();\n\t\toos = new ObjectOutputStream(bos);\n\t\toos.writeObject(msg);\n\t\tbyte[] data = null;\n\t\tdata = bos.toByteArray();\n\t\toos.close();\n\t\tbos.close();\n\t\treturn data;\n\t}", "title": "" }, { "docid": "a0ed26b03cc6ddfbf2e0c5809c5bb8ef", "score": "0.56518763", "text": "public abstract byte getMessageInfo();", "title": "" }, { "docid": "842fe291eafe617b6fa2b0a938de3568", "score": "0.563155", "text": "public byte[] getMessageBytes(){\n return messageBytes;\n }", "title": "" }, { "docid": "8234b3d6bc143087f6ea1a4803a514b8", "score": "0.56279343", "text": "private byte[] converteStremParabyte(InputStream imagem) throws Exception{\n\t\t\t\n\t\t ByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t int reads = imagem.read();\n\t\t while (reads != -1){\n\t\t\t baos.write(reads);\n\t\t\t reads = imagem.read();\n\t\t }\n\t\t \n\t\t return baos.toByteArray();\n\t\t\n\t\t}", "title": "" }, { "docid": "58ab31b1e981086d7f976bb36512e75e", "score": "0.56100583", "text": "public abstract void asSmallBytes(ByteBuffer buf);", "title": "" }, { "docid": "126193169ed097a3fc347910d55599fb", "score": "0.5604488", "text": "@DSSource({DSSourceKind.NFC})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:30:48.063 -0500\", hash_original_method = \"8C1624491EC0DD58CFD007740FE405D8\", hash_generated_method = \"21C9C13EC9FAEFA5F55B3DC8AAE9AA07\")\n \npublic byte[] toByteArray() {\n //TODO: allocate the byte array once, copy each record once\n //TODO: process MB and ME flags outside loop\n if ((mRecords == null) || (mRecords.length == 0))\n return new byte[0];\n\n byte[] msg = {};\n\n for (int i = 0; i < mRecords.length; i++) {\n byte[] record = mRecords[i].toByteArray();\n byte[] tmp = new byte[msg.length + record.length];\n\n /* Make sure the Message Begin flag is set only for the first record */\n if (i == 0) {\n record[0] |= FLAG_MB;\n } else {\n record[0] &= ~FLAG_MB;\n }\n\n /* Make sure the Message End flag is set only for the last record */\n if (i == (mRecords.length - 1)) {\n record[0] |= FLAG_ME;\n } else {\n record[0] &= ~FLAG_ME;\n }\n\n System.arraycopy(msg, 0, tmp, 0, msg.length);\n System.arraycopy(record, 0, tmp, msg.length, record.length);\n\n msg = tmp;\n }\n\n return msg;\n }", "title": "" }, { "docid": "3a74de3c4ba23c89b4463c8a180d5e87", "score": "0.5585719", "text": "public static byte[] buildMessageBytes(Message msg) {\r\n\t\tbyte[] encodedBytes = new byte[BYTES_PER_INT + msg.getData().length];\r\n\r\n\t\tint index = 0;\r\n\t\tfor (byte b : Common.intToByteArray(msg.getRequestType())) {\r\n\t\t\tencodedBytes[index++] = b;\r\n\t\t}\r\n\t\tfor (byte b : msg.getData()) {\r\n\t\t\tencodedBytes[index++] = b;\r\n\t\t}\r\n\t\treturn encodedBytes;\r\n\t}", "title": "" }, { "docid": "24a62eae85d0cc1b9930e896bc8da956", "score": "0.558197", "text": "public void sendBytesMessage(byte[] message) {\n websocket.sendBinary(ByteBuffer.wrap(message), true);\n }", "title": "" }, { "docid": "735f89dd85707843ba1bc9a188df2475", "score": "0.55704415", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "735f89dd85707843ba1bc9a188df2475", "score": "0.55704415", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "735f89dd85707843ba1bc9a188df2475", "score": "0.55704415", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "c6113cddc01490f2686201a6e164bb00", "score": "0.5552302", "text": "public abstract byte[] toBytes(T t);", "title": "" }, { "docid": "42292598588555a3605e68fb52e4bed8", "score": "0.55405664", "text": "@Override\n\tpublic void onMessage(Message message) {\n\t\torg.apache.qpid.client.message.JMSBytesMessage msg = (org.apache.qpid.client.message.JMSBytesMessage)message;\n\t\tBytesMessage byteMsg = (BytesMessage)message;\n\t\ttry {\t\t\n\t\t\tbyte[] byteArray = new byte[1024];\n \tint len = -1;\n \tlen = byteMsg.readBytes(byteArray);\n \tif(len == -1){ \n \t\treturn;\n \t}\n \tTestBO2_OTW receiveBO = new TestBO2_OTW(RPCTool.subBytes(byteArray, 0, len));\n \tSystem.out.println(receiveBO.toString());\n// \tExampleBO_OTW receiveBO = new ExampleBO_OTW();\n \t\n//\t\t\tlog.info(\"receive:{}\",receiveBO.toString());\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "172acaf7d802b40f8c08130cb8850fa1", "score": "0.553406", "text": "public abstract T parseBytes(byte[] bArr);", "title": "" }, { "docid": "52a0e52d5e95f48c65f87f81206f31f4", "score": "0.5529295", "text": "com.google.protobuf.ByteString\n getFromBytes();", "title": "" }, { "docid": "52a0e52d5e95f48c65f87f81206f31f4", "score": "0.5529295", "text": "com.google.protobuf.ByteString\n getFromBytes();", "title": "" }, { "docid": "93716c886ed7872c4017cfd0c23e95fd", "score": "0.5499499", "text": "@Test\r\n public void testToBytes() {\r\n System.out.println(\"toBytes\");\r\n final PacketStruct ps = new PacketStruct();\r\n ps.packetId = 0L;\r\n ps.time = 0L;\r\n ps.packetType = PacketStruct.PACKET_TYPE_AUDIO;\r\n ps.payload = new byte[1];\r\n ps.toBytes();\r\n }", "title": "" }, { "docid": "8800a43873e52fd3d0e285a7526471ca", "score": "0.5499465", "text": "public static String showBytes(MidiMessage msg) {\r\n StringBuilder rs=new StringBuilder();\r\n for (byte b : msg.getMessage()) {\r\n rs.append(Integer.toHexString(b&0x00ff));\r\n rs.append(\" \");\r\n }\r\n return rs.toString();\r\n }", "title": "" }, { "docid": "5bcd9305c0a5c28ed9a805a601628f86", "score": "0.5497371", "text": "public static void m3953b(byte b, String str) {\r\n int i = 0;\r\n Message message = new Message();\r\n Bundle bundle;\r\n JSONObject jSONObject;\r\n JSONObject jSONObject2;\r\n int i2;\r\n JSONArray jSONArray;\r\n int length;\r\n Bundle bundle2;\r\n switch (b) {\r\n case (byte) 28:\r\n bundle = new Bundle();\r\n Bundle bundle3 = new Bundle();\r\n message.what = 0;\r\n try {\r\n JSONObject jSONObject3 = new JSONObject(str);\r\n JSONArray jSONArray2 = new JSONArray(C1340nk.m4156b(jSONObject3.getString(\"L\")));\r\n int length2 = jSONArray2.length();\r\n while (i < length2) {\r\n jSONObject = jSONArray2.getJSONObject(i);\r\n Bundle bundle4 = new Bundle();\r\n bundle4.putByte(\"I\", (byte) jSONObject.getInt(\"I\"));\r\n bundle4.putString(\"N\", jSONObject.getString(\"N\"));\r\n bundle4.putInt(\"PN\", jSONObject.getInt(\"P\"));\r\n bundle4.putInt(\"TN\", jSONObject.getInt(\"T\"));\r\n bundle4.putInt(\"W\", jSONObject.getInt(\"W\"));\r\n bundle3.putBundle(String.valueOf(i), bundle4);\r\n i++;\r\n }\r\n bundle.putBundle(\"L\", bundle3);\r\n bundle.putString(\"U\", jSONObject3.getString(\"U\"));\r\n bundle.putString(\"S\", jSONObject3.getString(\"S\"));\r\n bundle.putInt(\"LV\", jSONObject3.getInt(\"LV\"));\r\n bundle.putInt(\"CL\", jSONObject3.getInt(\"CL\"));\r\n bundle.putInt(\"E\", jSONObject3.getInt(\"E\"));\r\n bundle.putInt(\"X\", jSONObject3.getInt(\"X\"));\r\n bundle.putInt(\"M\", jSONObject3.getInt(\"M\"));\r\n bundle.putString(\"DR\", jSONObject3.getString(\"DR\"));\r\n bundle.putInt(\"CP\", jSONObject3.getInt(\"CP\"));\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHallRoom) {\r\n C1268kt.m4107a();\r\n ((OLPlayHallRoom) C1268kt.m4109b()).f4468s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n return;\r\n }\r\n case (byte) 33:\r\n Bundle bundle5 = new Bundle();\r\n message.what = 2;\r\n try {\r\n bundle5.putString(\"T\", new JSONObject(str).getString(\"T\"));\r\n message.setData(bundle5);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHallRoom) {\r\n C1268kt.m4107a();\r\n ((OLPlayHallRoom) C1268kt.m4109b()).f4468s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n } catch (JSONException e2) {\r\n e2.printStackTrace();\r\n return;\r\n }\r\n case (byte) 34:\r\n bundle = new Bundle();\r\n try {\r\n jSONObject2 = new JSONObject(str);\r\n String string = jSONObject2.getString(\"T\");\r\n //\"type:\" + string;\r\n if (string.equals(\"L\")) {\r\n i2 = jSONObject2.getInt(\"S\");\r\n jSONArray = new JSONArray(C1340nk.m4156b(jSONObject2.getString(\"L\")));\r\n length = jSONArray.length();\r\n if (length > 0) {\r\n while (i < length) {\r\n bundle2 = new Bundle();\r\n jSONObject = jSONArray.getJSONObject(i);\r\n bundle2.putString(\"F\", jSONObject.getString(\"F\"));\r\n bundle2.putInt(\"O\", jSONObject.getInt(\"O\"));\r\n bundle2.putString(\"S\", jSONObject.getString(\"S\"));\r\n bundle2.putInt(\"LV\", jSONObject.getInt(\"LV\"));\r\n bundle.putBundle(String.valueOf(i), bundle2);\r\n i++;\r\n }\r\n }\r\n switch (i2) {\r\n case 0:\r\n message.what = 3;\r\n new Bundle().putBundle(\"L\", bundle);\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHallRoom) {\r\n C1268kt.m4107a();\r\n ((OLPlayHallRoom) C1268kt.m4109b()).f4468s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n case 1:\r\n message.what = 5;\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHall) {\r\n C1268kt.m4107a();\r\n ((OLPlayHall) C1268kt.m4109b()).f4403s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n case 2:\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayRoom) {\r\n message.what = 11;\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n ((OLPlayRoom) C1268kt.m4109b()).f4482G.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n default:\r\n return;\r\n }\r\n } else if (string.equals(\"M\")) {\r\n JSONArray jSONArray3 = new JSONArray(C1340nk.m4156b(jSONObject2.getString(\"L\")));\r\n length = jSONArray3.length();\r\n if (length > 0) {\r\n while (i < length) {\r\n Bundle bundle6 = new Bundle();\r\n JSONObject jSONObject4 = jSONArray3.getJSONObject(i);\r\n bundle6.putString(\"F\", jSONObject4.getString(\"F\"));\r\n bundle6.putString(\"M\", jSONObject4.getString(\"M\"));\r\n bundle6.putString(\"T\", jSONObject4.getString(\"T\"));\r\n bundle6.putInt(\"type\", 0);\r\n bundle.putBundle(String.valueOf(i), bundle6);\r\n i++;\r\n }\r\n }\r\n message.what = 4;\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHallRoom) {\r\n C1268kt.m4107a();\r\n ((OLPlayHallRoom) C1268kt.m4109b()).f4468s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n } else if (string.equals(\"C\")) {\r\n bundle.putString(\"U\", jSONObject2.getString(\"U\"));\r\n bundle.putString(\"S\", jSONObject2.getString(\"S\"));\r\n bundle.putInt(\"LV\", jSONObject2.getInt(\"L\"));\r\n bundle.putInt(\"CL\", jSONObject2.getInt(\"C\"));\r\n bundle.putString(\"DR\", jSONObject2.getString(\"D\"));\r\n bundle.putString(\"IN\", jSONObject2.getString(\"I\"));\r\n bundle.putInt(\"CP\", jSONObject2.getInt(\"P\"));\r\n message.what = 22;\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHallRoom) {\r\n C1268kt.m4107a();\r\n ((OLPlayHallRoom) C1268kt.m4109b()).f4468s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n } else {\r\n return;\r\n }\r\n } catch (Exception e3) {\r\n e3.printStackTrace();\r\n return;\r\n }\r\n case (byte) 36:\r\n bundle = new Bundle();\r\n try {\r\n jSONObject2 = new JSONObject(str);\r\n i2 = jSONObject2.getInt(\"S\");\r\n jSONArray = new JSONArray(C1340nk.m4156b(jSONObject2.getString(\"L\")));\r\n length = jSONArray.length();\r\n if (length > 0) {\r\n while (i < length) {\r\n bundle2 = new Bundle();\r\n jSONObject = jSONArray.getJSONObject(i);\r\n bundle2.putString(\"U\", jSONObject.getString(\"U\"));\r\n bundle2.putString(\"S\", jSONObject.getString(\"S\"));\r\n bundle2.putInt(\"V\", jSONObject.getInt(\"V\"));\r\n bundle2.putInt(\"LV\", jSONObject.getInt(\"LV\"));\r\n bundle2.putInt(\"R\", jSONObject.getInt(\"R\"));\r\n bundle.putBundle(String.valueOf(i), bundle2);\r\n i++;\r\n }\r\n }\r\n switch (i2) {\r\n case 0:\r\n message.what = 7;\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayHall) {\r\n C1268kt.m4107a();\r\n ((OLPlayHall) C1268kt.m4109b()).f4403s.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n case 1:\r\n message.what = 15;\r\n message.setData(bundle);\r\n C1268kt.m4107a();\r\n if (C1268kt.m4109b() instanceof OLPlayRoom) {\r\n C1268kt.m4107a();\r\n ((OLPlayRoom) C1268kt.m4109b()).f4482G.handleMessage(message);\r\n return;\r\n }\r\n return;\r\n default:\r\n return;\r\n }\r\n } catch (Exception e32) {\r\n e32.printStackTrace();\r\n return;\r\n }\r\n default:\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "e744697abe9e9fa64e74fcc89347ad46", "score": "0.549112", "text": "void handleMessage(ByteMessage message);", "title": "" }, { "docid": "a4c33c26952038544f4dbf8622ed74d4", "score": "0.54739845", "text": "void handleMessage(byte[] message);", "title": "" }, { "docid": "e9e0287d17eddf6310638f454dc32427", "score": "0.5458106", "text": "U decode(M message) throws EtiqetException;", "title": "" }, { "docid": "367af79efba27a1ba218ebf1b7a8a1c5", "score": "0.54510075", "text": "public byte[] encode() throws IOException {\n byte[] buffer = new byte[12+252];\n LittleEndianDataOutputStream dos = new LittleEndianDataOutputStream(new ByteArrayOutputStream());\n dos.writeByte((byte)0xFD);\n dos.writeByte(payload_length & 0x00FF);\n dos.writeByte(incompat & 0x00FF);\n dos.writeByte(compat & 0x00FF);\n dos.writeByte(packet & 0x00FF);\n dos.writeByte(sysId & 0x00FF);\n dos.writeByte(componentId & 0x00FF);\n dos.writeByte(messageType & 0x00FF);\n dos.writeByte((messageType >> 8) & 0x00FF);\n dos.writeByte((messageType >> 16) & 0x00FF);\n dos.writeLong(time_usec);\n dos.writeShort(array_id&0x00FFFF);\n for (int i=0; i<10; i++) {\n dos.writeByte(name[i]);\n }\n for (int i=0; i<58; i++) {\n dos.writeFloat(data[i]);\n }\n dos.flush();\n byte[] tmp = dos.toByteArray();\n for (int b=0; b<tmp.length; b++) buffer[b]=tmp[b];\n int crc = MAVLinkCRC.crc_calculate_encode(buffer, 252);\n crc = MAVLinkCRC.crc_accumulate((byte) IMAVLinkCRC.MAVLINK_MESSAGE_CRCS[messageType], crc);\n byte crcl = (byte) (crc & 0x00FF);\n byte crch = (byte) ((crc >> 8) & 0x00FF);\n buffer[262] = crcl;\n buffer[263] = crch;\n dos.close();\n return buffer;\n}", "title": "" }, { "docid": "47103d0a646ef7185bb8353ddec9128e", "score": "0.5440849", "text": "public static DdfMarketBase parseMessage(byte[] array) {\n\n final byte[] baOriginal = array;\n\n boolean showErrorMessage = true;\n\n AbstractMsgBaseMarket msg = null;\n\n try {\n switch (array[0]) {\n case 37: // '%'\n /* JERQ initiating / refresh message */\n String message = new String(array);\n if (message.charAt(1) == '<') {\n // ok\n } else if (message.charAt(1) == '%') {\n /*\n * Compensate for a server bug that sends two % for HTTP sessions\n */\n message = message.substring(1);\n } else {\n log.error(\"format error; message={}\", message);\n break;\n }\n msg = DataRefreshXML.Parse(message);\n break;\n\n case 1: // SOH\n // ddfplus message\n char record = (char) array[1];\n String spreadType = null;\n String[] spreadLegs = null;\n\n if (record == 'S') {\n Object[] o = Codec.stripSpreadPreamble(array);\n record = '2';\n array = (byte[]) o[5];\n spreadType = (String) o[1];\n spreadLegs = (String[]) o[3];\n }\n\n switch (record) { // Record\n case '#':\n // Timestamp\n msg = CtrlTimestamp.Parse(array);\n break;\n case '!':\n /*\n * Timestamp, {soh}!yyyymmddss{etx}\n * \n * Ignore.\n */\n showErrorMessage = false;\n break;\n case 'C':\n case 'S':\n case '2': {\n int pos = getIndexOf(array, ',', 0);\n char subrecord = (char) array[pos + 1];\n\n switch (subrecord) { // Subrecord\n case '0': {\n String symbol = Codec.parseStringValue(array, 2, pos - 2);\n char baseCode = (char) array[pos + 3];\n char exchange = (char) array[pos + 4];\n int delay = Codec.parseIntValue(array, pos + 5, 2);\n\n int pos2 = Codec.getIndexOf(array, ',', pos + 7);\n char element = (char) array[pos2 + 1];\n char modifier = (char) array[pos2 + 2];\n\n switch (element) {\n case '1': // Ask\n msg = new Data28BidAsk(array);\n ((Data28BidAsk) msg)._record = '2';\n ((Data28BidAsk) msg)._subrecord = '8';\n ((Data28BidAsk) msg)._ask = Codec.parseDDFPriceValue(array, pos + 7, pos2 - pos - 7,\n baseCode);\n break;\n case '2': // Bid\n msg = new Data28BidAsk(array);\n ((Data28BidAsk) msg)._record = '2';\n ((Data28BidAsk) msg)._subrecord = '8';\n ((Data28BidAsk) msg)._bid = Codec.parseDDFPriceValue(array, pos + 7, pos2 - pos - 7,\n baseCode);\n break;\n default:\n msg = Data20Parameter.Parse(array);\n break;\n }\n\n msg._symbol = symbol;\n msg._basecode = baseCode;\n msg._exchange = exchange;\n msg._delay = delay;\n\n msg._day = (char) array[pos2 + 3];\n msg._session = (char) array[pos2 + 4];\n msg.setMessageTimestamp(pos2 + 5);\n\n break;\n }\n case '1':\n case '2':\n case '3':\n case '4':\n case '6':\n msg = Data21Refresh.Parse(array);\n break;\n case '5':\n showErrorMessage = false;\n break;\n case '7':\n msg = Data27Trade.Parse(array);\n break;\n case 'Z':\n msg = Data2ZTrade.Parse(array);\n break;\n case '8':\n msg = Data28BidAsk.Parse(array);\n break;\n case '9':\n msg = Data29Condition.Parse(array);\n break;\n case 'F':\n showErrorMessage = false;\n break;\n } // end of sub record\n\n if ((msg != null) && (spreadType != null)) {\n msg._spreadType = spreadType;\n msg._spreadLegs = spreadLegs;\n//\t\t\t\t\t\tmsg._message = baOriginal;\n // We may need re-set the etxpos\n if (msg._etxpos > -1) {\n msg._etxpos += (baOriginal.length - array.length);\n }\n }\n break;\n }\n case '3': {\n int pos = getIndexOf(array, ',', 0);\n switch ((char) array[pos + 1]) { // Subrecord\n case 'B':\n msg = Data3BOrderBook.Parse(array);\n break;\n case 'C':\n msg = Data3XSummary.Parse(array);\n break;\n case 'D':\n showErrorMessage = false;\n break;\n case 'I':\n msg = Data3XSummary.Parse(array);\n break;\n case 'R':\n showErrorMessage = false;\n break;\n case 'S':\n msg = Data3XSummary.Parse(array);\n break;\n case 'T':\n msg = Data3XSummary.Parse(array);\n break;\n case 'V':\n case 'W':\n showErrorMessage = false;\n break;\n }\n\n break;\n }\n }\n }\n } catch (Exception e) {\n log.error(\"Parse failed on message: \" + new String(array) + \" error: \", e);\n }\n\n if ((msg == null) && (showErrorMessage)) {\n log.error(\"Could not parse message: \" + new String(array));\n }\n\n return msg;\n }", "title": "" }, { "docid": "ae4de5c23a8ea856decb8ef6276ac8f6", "score": "0.541839", "text": "protected void write(MessageBytes mb) {\n\n if (mb.getType() == MessageBytes.T_BYTES) {\n ByteChunk bc = mb.getByteChunk();\n write(bc);\n } else if (mb.getType() == MessageBytes.T_CHARS) {\n CharChunk cc = mb.getCharChunk();\n write(cc);\n } else {\n write(mb.toString());\n }\n\n }", "title": "" }, { "docid": "fae5c41c1eecb459edb2d69a1972e5be", "score": "0.5412574", "text": "public byte[] buildMessage() {\n\t\t\n\t\tString content = type.name() + \" \" + version[0]+version[1]+version[2] + \" \" + senderId + \" \" + fileId + \" \";\n\t\t\n\t\tif(type.compareTo(Util.MessageType.DELETE) != 0 || type.compareTo(Util.MessageType.GETINITIATOR) != 0 || type.compareTo(Util.MessageType.INITIATOR) != 0 )\n\t\t\tcontent += chunkNo + \" \";\n\t\t\n\t\tif(type.compareTo(Util.MessageType.PUTCHUNK) == 0)\n\t\t\tcontent += replicationDeg + \" \";\n\t\t\n\t\tif(type.compareTo(Util.MessageType.GETCHUNKENH) == 0)\n\t\t\tcontent += address + \" \" + port + \" \";\n\t\t\n\t\tcontent += LINE_SEPARATOR + LINE_SEPARATOR;\n\t\t\n\t\tif(type.compareTo(Util.MessageType.PUTCHUNK) == 0 || type.compareTo(Util.MessageType.CHUNK) == 0)\n\t\t{\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\ttry \n\t\t\t{\n\t\t\t\tbaos.write(content.getBytes());\n\t\t\t\tbaos.write(body);\n\t\t\t} \n\t\t\tcatch (IOException e) \n\t\t\t{\n\t\t\t\tLogs.exception(\"buildMessage\", \"Message\", e.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tbyte[] a = baos.toByteArray();\n\t\t\t\n\t\t\treturn a;\n\t\t}\n\t\t\n\t\treturn content.getBytes();\n\t}", "title": "" }, { "docid": "fc030f4f85e7ab21d51980460df1648c", "score": "0.54099333", "text": "private String StringToByteString(String s) {\n byte b[] = s.getBytes();\n String t = \"\";\n try {\n t = new String(b);\n System.out.print(t);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return t;\n }", "title": "" }, { "docid": "207c21e75245612462a1b992d5beba4e", "score": "0.54061896", "text": "public Message<byte[]> transform(Message<CenterMindSystemEvent> centerMindSystemEventMessage) {\r\n Message<byte[]> result = null;\r\n String connectionId = isSocketOpen();\r\n if (connectionId != null) {\r\n MessageHeaders headers = centerMindSystemEventMessage.getHeaders();\r\n CenterMindSystemEvent centerMindSystemEvent = centerMindSystemEventMessage.getPayload();\r\n CAPAlarm capEvent = conversionService.convert(centerMindSystemEvent, CAPAlarm.class);\r\n //convert capEvent to Hexdecimal String\r\n boolean isHexMessageValid = validateHexdecimalMsg(capEvent);\r\n\r\n if(isHexMessageValid) {\r\n //trim spaces before converting to byte array\r\n String messageHexString = capEvent.getHexdecimalMessageString().replaceAll(\"\\\\s+\", \"\").toUpperCase();\r\n LOGGER.debug(\"hex message to be sent \"+messageHexString);\r\n //convert hexdecimal string to byte array\r\n byte[] s = DatatypeConverter.parseHexBinary(messageHexString);\r\n MessageBuilder<byte[]> capMessageBuilder = MessageBuilder.withPayload(s).copyHeadersIfAbsent(headers);\r\n\r\n String key = capEvent.getSequenceNumber().replaceAll(\"\\\\s+\", \"\");\r\n capMessageBuilder.setHeader(MESSAGE_ID, key);\r\n capMessageBuilder.setHeader(IpHeaders.CONNECTION_ID, connectionId);\r\n result = capMessageBuilder.build();\r\n\r\n }else{\r\n throw new MessageHandlingException(result,\"Hexdecimal message is not valid : \"+capEvent.getHexdecimalMessageString());\r\n }\r\n\r\n } else {\r\n throw new MessageHandlingException(result, \"Currently there is not open socket on server\");\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "1d0cb82ad7d342e5326007f7a98f4d1e", "score": "0.54041123", "text": "public static byte[] createMessage(String msg) {\n\t\t//construct message\n\t\tbyte[] message = new byte[BUFFER_SIZE];\n\t\tmessage = msg.getBytes();\n\n\t\treturn message;\n\t\t\n\t}", "title": "" }, { "docid": "0329e78e7aa478f06984e4d0d8f55ac5", "score": "0.5396685", "text": "Object encodeMessage();", "title": "" }, { "docid": "9893812e39906926f7c4d90ca32d0bb5", "score": "0.5385091", "text": "public static Message parseMessage(byte[] message, char[] peerVersion)\n\t{\n\t\tMessage parsed = null;\n\n\t\tByteArrayInputStream stream = new ByteArrayInputStream(message);\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(stream));\n\n\t\ttry\n\t\t{\n\t\t\tString header = reader.readLine();\n\t\t\tString[] parts = header.split(\"\\\\s\");\n\n\t\t\tUtil.MessageType type_rcv = validateMessageType(parts[0]);\n\n\t\t\t//Common to all messages types\n\t\t\tchar[] version_rcv = validateVersion(parts[1],peerVersion);\n\t\t\tint senderId_rcv = Integer.parseInt(parts[2]);\n\t\t\tString fileId_rcv = parts[3];\n\n\t\t\t//Exception for the types DELETE, GETINITIATOR, INITIATOR.\n\t\t\tint chunkNo_rcv = -1;\n\t\t\tif(type_rcv.compareTo(Util.MessageType.DELETE) != 0 && type_rcv.compareTo(Util.MessageType.GETINITIATOR) != 0 && type_rcv.compareTo(Util.MessageType.INITIATOR) != 0 )\n\t\t\t\tchunkNo_rcv = Integer.parseInt(parts[4]);\n\n\t\t\t//Exception for type PUTCHUNK\n\t\t\tint replicationDeg_rcv = -1;\n\t\t\tif(type_rcv.compareTo(Util.MessageType.PUTCHUNK) == 0){\n\t\t\t\treplicationDeg_rcv = Integer.parseInt(parts[5]);\n\t\t\t}\n\t\t\t\n\t\t\t//Exception for the type GETCHUNKENH\n\t\t\tString address_rcv = null;\n\t\t\tInteger port_rcv = null;\n\t\t\tif(type_rcv.compareTo(Util.MessageType.GETCHUNKENH) == 0){\n\t\t\t\taddress_rcv = parts[5];\n\t\t\t\tport_rcv = Integer.parseInt(parts[6]);\n\t\t\t}\n\n\t\t\t//Removes the last sequences of white spaces (\\s) and null characters (\\0)\n\t\t\t//String msg_received = (new String(packet.getData()).replaceAll(\"[\\0 \\\\s]*$\", \"\"));\n\t\t\tint offset = header.length() + Message.LINE_SEPARATOR.length()*2;\n\t\t\tbyte[] body = new byte[64000];\n\t\t\tSystem.arraycopy(message, offset, body, 0, 64000);\n\n\t\t\t//Creates the message with the respective attributes\n\t\t\tif(type_rcv.compareTo(Util.MessageType.DELETE) == 0 || type_rcv.compareTo(Util.MessageType.GETINITIATOR) == 0 || type_rcv.compareTo(Util.MessageType.INITIATOR) == 0)\n\t\t\t\tparsed = new Message(type_rcv,version_rcv,senderId_rcv,fileId_rcv);\t\n\t\t\telse if(type_rcv.compareTo(Util.MessageType.GETCHUNK) == 0 || type_rcv.compareTo(Util.MessageType.STORED) == 0 || type_rcv.compareTo(Util.MessageType.REMOVED) == 0 || type_rcv.compareTo(Util.MessageType.GOTCHUNKENH) == 0)\n\t\t\t\tparsed = new Message(type_rcv,version_rcv,senderId_rcv,fileId_rcv,chunkNo_rcv) ;\t\n\t\t\telse if(type_rcv.compareTo(Util.MessageType.PUTCHUNK) == 0)\n\t\t\t\tparsed = new Message(type_rcv,version_rcv,senderId_rcv,fileId_rcv,chunkNo_rcv,replicationDeg_rcv,body);\n\t\t\telse if(type_rcv.compareTo(Util.MessageType.CHUNK) == 0)\n\t\t\t\tparsed = new Message(type_rcv,version_rcv,senderId_rcv,fileId_rcv,chunkNo_rcv,body);\n\t\t\telse if(type_rcv.compareTo(Util.MessageType.GETCHUNKENH) == 0)\n\t\t\t\tparsed = new Message(type_rcv,version_rcv,senderId_rcv,fileId_rcv,chunkNo_rcv,address_rcv,port_rcv);\n\n\t\t\treader.close();\n\t\t\tstream.close();\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tLogs.exception(\"parseMessage\", \"Message\", e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn parsed;\n\t}", "title": "" }, { "docid": "2e025860aaae92339b2bb438b04a4b1d", "score": "0.53653055", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "2e025860aaae92339b2bb438b04a4b1d", "score": "0.53653055", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "2e025860aaae92339b2bb438b04a4b1d", "score": "0.53653055", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "2e025860aaae92339b2bb438b04a4b1d", "score": "0.53653055", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "d609e7545736e01c15446b27a2043e6d", "score": "0.53470147", "text": "@Override public void sendBytesMessage(byte[] bytes) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeByteArray(bytes);\nmRemote.transact(Stub.TRANSACTION_sendBytesMessage, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}", "title": "" }, { "docid": "86936a6b80f1b2511399fc3947a85255", "score": "0.5343009", "text": "private static byte[] convertObjectToBytes(Client_Server_Data object_to_convert) throws IOException {\n //Serializing obj into bytes\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); //This is stream on which object will be serialized\n\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); //We are passing BytesArayStream as input here into ObjectoutputStream\n //this will set bytesArrayStream as target to write on for objectOutStream(which actually serializes the object)\n objectOutputStream.writeObject(object_to_convert); //Writing serialized Object onto BytesArrayStream\n objectOutputStream.flush();//flushing just in case\n return byteArrayOutputStream.toByteArray();\n }", "title": "" }, { "docid": "ba1fe5e8cb6ee55b514f8068f1a2ad43", "score": "0.53394675", "text": "public byte[] convertToBytes()\n\t{\n\t\treturn this.fetchDataBytes();\n\t}", "title": "" }, { "docid": "95f4454c781e957436cab01e561adef2", "score": "0.53249973", "text": "public byte[] toByteArray() {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }", "title": "" }, { "docid": "c51a849c4c8209b4dd5d10367ccb2c87", "score": "0.5321353", "text": "public byte[] toBinary();", "title": "" }, { "docid": "ebcb8a1257a7ae7747899a3db08b7805", "score": "0.53196377", "text": "public static String jmsBytesBodyAsString(Message message) {\r\n Validate.notNull(message, \"Message must not be null\");\r\n\r\n byte[] body = new byte[1024];\r\n int n = 0;\r\n\r\n if (message instanceof BytesMessage) {\r\n try {\r\n BytesMessage bs = (BytesMessage) message;\r\n bs.reset();\r\n n = bs.readBytes(body);\r\n } catch (JMSException ex) {\r\n return ex.toString();\r\n }\r\n } else if (message instanceof StreamMessage) {\r\n try {\r\n StreamMessage sm = (StreamMessage) message;\r\n sm.reset();\r\n n = sm.readBytes(body);\r\n } catch (JMSException ex) {\r\n return ex.toString();\r\n }\r\n }\r\n\r\n if (n <= 0) {\r\n return \"\";\r\n }\r\n\r\n StringBuilder hexBody = new StringBuilder();\r\n hexBody.append(byteArrayToHexString(body));\r\n if (n >= body.length) {\r\n hexBody.append(\"\\n. . .\");\r\n }\r\n\r\n return hexBody.toString();\r\n }", "title": "" }, { "docid": "ab14a0567cf3d032c407c6fa3499c8e1", "score": "0.53184843", "text": "byte[] getBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "51a2cf30e68b7070b4939d0a4bba50af", "score": "0.53126305", "text": "com.google.protobuf.ByteString\n getMessageBytes();", "title": "" }, { "docid": "17c85a562361e710e948096a5943d1ad", "score": "0.530757", "text": "public static BitFieldMessage convertFromBytes(byte[] byteList)\n\t{\n\t\tBitFieldMessage bitFieldMsg = new BitFieldMessage();\n\t\tfor(int i = 0 ; i < byteList.length; i ++)\n\t\t{\n\t\t\tint numMsgTypes = 7;\n\t\t\twhile(numMsgTypes >= 0)\n\t\t\t{\n\t\t\t\tint leftShift = 1 << numMsgTypes;\n\t\t\t\tif(i * 8 + (8-numMsgTypes-1) < bitFieldMsg.pieceSize)\n\t\t\t\t{\n\t\t\t\t\tif((byteList[i] & (leftShift)) != 0)\n\t\t\t\t\t\tbitFieldMsg.pieceList[i * 8 + (8-numMsgTypes-1)].doesPieceExist = 1;\n\t\t\t\t\telse\n\t\t\t\t\t\tbitFieldMsg.pieceList[i * 8 + (8-numMsgTypes-1)].doesPieceExist = 0;\n\t\t\t\t}\n\t\t\t\tnumMsgTypes--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn bitFieldMsg;\n\t}", "title": "" }, { "docid": "0755110035fbbad0e2593fbf97c0db7b", "score": "0.5306821", "text": "public byte[] bytesToSend(){\n\t\t\n\t\tint fullSize = payload.length + A3PCommon.SIZE_OF_NO_PAYLOAD_MESSAGE;\n\t\tbyte[] fullMessage = new byte [fullSize];\n\t\t\n\t\tbyte[] messageTypeBytes = USBCommon.getTwoBytesFromInt(type.code());\n\t\tbyte[] messageNumberBytes = USBCommon.getTwoBytesFromInt(messageNumber);\n\t\tbyte[] payloadLengthBytes = USBCommon.getTwoBytesFromInt(payload.length);\n\t\t\n\t\tfullMessage[0] = A3PCommon.PREAMBLE_HI; \n\t\tfullMessage[1] = A3PCommon.PREAMBLE_LOW;\n\t\t\n\t\tfullMessage[2] = messageTypeBytes[1];\n\t\tfullMessage[3] = messageTypeBytes[0];\n\t\t\n\t\tfullMessage[4] = messageNumberBytes[1];\n\t\tfullMessage[5] = messageNumberBytes[0];\n\t\t\n\t\tfullMessage[6] = sensorID;\n\t\t\n\t\tfullMessage[7] = payloadLengthBytes[1];\n\t\tfullMessage[8] = payloadLengthBytes[0];\n\t\t\n\t\tfor (int i = 0; i < payload.length; i++){\n\t\t\tfullMessage[A3PCommon.SIZE_OF_NO_PAYLOAD_MESSAGE + i - 1] = payload[i];\n\t\t}\n\t\t\n\t\t// The crc code!\n\t\tfullMessage[fullSize - 1] = A3PCommon.calculateCRC(messageTypeBytes, messageNumberBytes, sensorID, payloadLengthBytes, payload);\n\t\t\n\t\treturn fullMessage;\n\t}", "title": "" }, { "docid": "346630c2eead39bde3613cbe6754e369", "score": "0.53031635", "text": "public static byte [] getVideoPieceMessage(int id, byte [] input)\n {\n byte [] output = new byte [input.length + 8];\n byte [] messgeID = ByteBuffer.allocate(4).putInt(id).array();\n byte [] pieceID = ByteBuffer.allocate(4).putInt(2).array();\n\n System.arraycopy(messgeID, 0, output, 0, messgeID.length);\n System.arraycopy(pieceID, 0, output, messgeID.length, pieceID.length);\n System.arraycopy(input, 0, output, messgeID.length + pieceID.length, input.length);\n \n return output;\n }", "title": "" }, { "docid": "933e145e3d3c5e45332749ee4ce8bc90", "score": "0.53010416", "text": "public static Message bytesToMsg(byte[] b, int length) {\r\n\t\tbyte[] data = new byte[length - Common.BYTES_PER_INT];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdata[i] = b[i + Common.BYTES_PER_INT];\r\n\t\t}\r\n\t\treturn new Message(\r\n\t\t\t\tCommon.byteArrayToInt(new byte[]{b[0], b[1], b[2], b[3]}), \r\n\t\t\t\tdata\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "5c92e644fddbf9c0b44eb1dc2d2bac77", "score": "0.5280555", "text": "private byte[] extractDataMessage(ArrayList conversation) {\n Iterator it = conversation.iterator();\n byte[] data = new byte[conversation.size()-8];\n int index = 0;\n while (it.hasNext()) {\n byte[] bytes = (byte[]) it.next();\n //skip the client connection header\n if (index>7) {\n data[index-8] = bytes[0];\n }\n index++;\n }\n return data;\n }", "title": "" }, { "docid": "613f3d3bab554096d665495cae504f16", "score": "0.527308", "text": "public BigInteger messageToBigInt(String message) {\n byte[] bytes = message.getBytes();\n BigInteger msgBigInt = new BigInteger(bytes);\n\n return msgBigInt;\n }", "title": "" }, { "docid": "70d593348ce97ef8f2373a25760452d3", "score": "0.52578115", "text": "public byte[] toBytes() {\n\t\tbyte[] ret = new byte[data.length + 1];\n\t\tret[0] = command;\n\t\tfor (int i=0; i<data.length; i++) ret[i+1] = data[i];\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "a6d55f096357cda9d74d176764cd84c2", "score": "0.5254477", "text": "protected void addBytes(byte[] bytes) {\n/* 1193 */ if (bytes == null) {\n/* */ return;\n/* */ }\n/* 1196 */ for (byte b : bytes) {\n/* 1197 */ this.messageContents[this.currentOutputPosition] = b;\n/* 1198 */ this.currentOutputPosition++;\n/* */ } \n/* */ }", "title": "" }, { "docid": "1ab0133bbcc51f29cad21ff84ef9d049", "score": "0.52303356", "text": "public synchronized void sendByteMessage(byte[] message, boolean success) throws IOException {\n\t\tint len = message.length + 1;\n\t\tbyte returnCode;\n\n\t\tif(success)\n\t\t\treturnCode = 0x00;\n\t\telse\n\t\t\treturnCode = 0x01;\n\n\t\t//Add 1 to account for the return code\n\t\t//2 for 0x0416\n\t\t//4 for the length\n\t\tByteBuffer b = ByteBuffer.allocate(len + 1 + 2 + 4);\n\t\tb.putInt(len);\n\t\tb.putShort((short) 0x0417);\n\t\tb.put((byte) 0xFE);\n\t\tb.put(returnCode);\n\t\tb.put(message);\n\t\toutput.write(b.array());\n\t}", "title": "" }, { "docid": "3520dc10cb60859bbce5b224272af69c", "score": "0.5225689", "text": "byte[] toByteArray() throws SteemInvalidTransactionException;", "title": "" }, { "docid": "aedfd684ee00b6953679c9e406e62b0a", "score": "0.52243876", "text": "public byte[] byteme(){\n\n StringBuilder Test = new StringBuilder();\n Test.append(System.currentTimeMillis());\n Test.append(\";\");\n Test.append(Values.getRate());\n Test.append(\";\");\n Test.append(Values.getBluetoothok());\n Test.append(\"\\n\");\n\n return Test.toString().getBytes();\n }", "title": "" }, { "docid": "24227fef484d7aafcb7683473d00f6f3", "score": "0.5224177", "text": "public byte[] toByteArray()\n {\n ByteBuffer buffer = ByteBuffer.allocate(SIZE);\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n\n buffer.put(header.getBytes());\n buffer.putInt(version);\n buffer.putShort(team);\n buffer.putShort(player);\n buffer.putInt(message);\n return buffer.array();\n }", "title": "" }, { "docid": "333d1b583a19c986ce475036629deb4e", "score": "0.5218406", "text": "public static byte[] toByteArray(SOAPMessage message) {\n try {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n message.writeTo(out);\n return out.toByteArray();\n } catch (Exception ex) {\n logger.error(ex.getMessage(), ex);\n return null;\n }\n }", "title": "" }, { "docid": "58616796c09b0f3d93cd0f440bcbc558", "score": "0.52148443", "text": "public byte[] marshall();", "title": "" }, { "docid": "41839580db048131e577d95920870d0b", "score": "0.52147245", "text": "private static byte[] toBytes(Object input) {\n if (input instanceof byte[]) {\n return (byte[]) input;\n } else if (input instanceof String) {\n String inputString = (String) input;\n return inputString.getBytes();\n } else if (input instanceof Long) {\n Long inputLong = (Long) input;\n return (inputLong == 0) ? ByteUtil.EMPTY_BYTE_ARRAY : asUnsignedByteArray(BigInteger.valueOf(inputLong));\n } else if (input instanceof Integer) {\n Integer inputInt = (Integer) input;\n return (inputInt == 0) ? ByteUtil.EMPTY_BYTE_ARRAY : asUnsignedByteArray(BigInteger.valueOf(inputInt));\n } else if (input instanceof BigInteger) {\n BigInteger inputBigInt = (BigInteger) input;\n return (inputBigInt.equals(BigInteger.ZERO)) ? ByteUtil.EMPTY_BYTE_ARRAY : asUnsignedByteArray(inputBigInt);\n }\n throw new RuntimeException(\"Unsupported type: Only accepting String, Integer and BigInteger for now\");\n }", "title": "" }, { "docid": "53a7ca227efd588cc904ce98c60e6227", "score": "0.52105725", "text": "@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbMessage tbMessage = new TbMessage() ;\n\t\ttbMessage.setId(rs.getInt(\"id\")) ;\n\t\ttbMessage.setIntMessageType(rs.getInt(\"intMessageType\")) ;\n\t\ttbMessage.setDteTime(rs.getTimestamp(\"dteTime\")) ;\n\t\ttbMessage.setIntFromPartment(rs.getInt(\"intFromPartment\")) ;\n\t\ttbMessage.setIntToPartmentId(rs.getInt(\"intToPartmentId\")) ;\n\t\ttbMessage.setStrContent(rs.getString(\"strContent\")) ;\n\t\treturn tbMessage;\n\t}", "title": "" }, { "docid": "dd2a30e6d65d0ef31bd8b72d73a74b0f", "score": "0.51996666", "text": "protected byte[] serializeMessage(Message requestMessage, int maxPacketSize) throws IOException {\n\t\tByteBuffer requestBuffer = ByteBuffer.allocate(maxPacketSize);\n\t\trequestMessage.toBytes(requestBuffer);\n\t\trequestBuffer.flip();\n\n\t\tbyte[] messageBytes = new byte[requestBuffer.limit()];\n\t\trequestBuffer.get(messageBytes);\n\t\treturn messageBytes;\n\t}", "title": "" }, { "docid": "0f87ab0fcd4245b9e02b0266fe8e65b0", "score": "0.5198344", "text": "private byte[][] convertColumnsToBytes(Collection<String> columns) throws InvalidFieldException {\n byte[][] bytes = new byte[columns.size()][];\n int i = 0;\n for (String column : columns) {\n if (schema.getType(column) == null) {\n throw new InvalidFieldException(schema.getTableId(), column);\n }\n bytes[i] = Bytes.toBytes(column);\n i++;\n }\n return bytes;\n }", "title": "" }, { "docid": "811206aa100d2736123250db7ccf7055", "score": "0.51949835", "text": "byte[] encodeBytes(String operationName, Message message, EncodeCallback callback) throws EncoderException;", "title": "" }, { "docid": "7e38963f4c7b46925703e2c25022ae55", "score": "0.51924455", "text": "private byte[] decodeWebSocketFrame(ChannelHandlerContext ctx, WebSocketFrame frame) {\n\t\t\tif (frame instanceof CloseWebSocketFrame) {\n\t\t\t\thandshaker.close(ctx.channel(), (CloseWebSocketFrame) frame.retain());\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tif (frame instanceof PingWebSocketFrame) {\n\t\t\t\tctx.write(new PongWebSocketFrame(frame.content().retain()));\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tif (frame instanceof TextWebSocketFrame) {\n\t\t\t\tTextWebSocketFrame textFrame = (TextWebSocketFrame) frame;\n\t\t\t\treturn parseMessage(textFrame.content());\n\t\t\t}\n\t\t\t\n\t\t\tif (frame instanceof BinaryWebSocketFrame) {\n\t\t\t\tBinaryWebSocketFrame binFrame = (BinaryWebSocketFrame) frame;\n\t\t\t\treturn parseMessage(binFrame.content());\n\t\t\t}\n\t\t\t\n\t\t\tlogger.warn(\"Message format error: \" + frame); \n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "67f23a2ed3986e2fc8fd7434215994b9", "score": "0.5191207", "text": "public static byte[] serialize(Message message) {\n if (message == null) {\n return EMPTY_ARRAY;\n }\n\n return ProtobufIOUtil.toByteArray(message, MSG_SCHEMA, LinkedBuffer.allocate(LinkedBuffer.DEFAULT_BUFFER_SIZE));\n }", "title": "" } ]
d30f32f5567f3e2337a5a1dbc712cd51
Number of Pages Set
[ { "docid": "1908cc6d7b596a9fea4f5f6cbdbbe408", "score": "0.6295733", "text": "public void setNumberOfPages(Integer numberOfPages) {\n\t\tthis.numberOfPages = numberOfPages;\n\t}", "title": "" } ]
[ { "docid": "4a591f70a8d49ad617e2b97dfb777389", "score": "0.8188801", "text": "public int getPageCount();", "title": "" }, { "docid": "0b72c10e75ae2ce5c6b7fced34f86236", "score": "0.79519093", "text": "static int getPagesCount() {\n return pages;\n }", "title": "" }, { "docid": "12f2988293af2578b40df8a501b2c4ac", "score": "0.77090377", "text": "public int knownPageCount();", "title": "" }, { "docid": "fc7edc168c96efed427da6d68e79a14d", "score": "0.75358105", "text": "public int size() {\n return pages.size();\n }", "title": "" }, { "docid": "eb9add1f62010f443a4ba51fac7c6f91", "score": "0.7528255", "text": "public int getPageCount() \r\n {\n return m_countPage; \r\n }", "title": "" }, { "docid": "75e046680a0919c8435c99ef39490434", "score": "0.75091183", "text": "public static int getNumPages() {\n return NUM_PAGES;\n }", "title": "" }, { "docid": "17730caab7788e183ad064cc69685a60", "score": "0.75036937", "text": "private int getNumberPages() {\n return model.getNumberPages();\n }", "title": "" }, { "docid": "20cc2d683e056a776163f63312afc2c5", "score": "0.74791044", "text": "int getNumPages() {\r\n\t\treturn numPages;\r\n\t}", "title": "" }, { "docid": "d87ea4cae2b233227b8564ed5e4b7015", "score": "0.7383801", "text": "public int getPages()\r\n {\r\n return pages;\r\n }", "title": "" }, { "docid": "a3813bf971d3c0c852999c92e3ea5099", "score": "0.7259581", "text": "public int getNumberOfPages() \r\n\t{\r\n\t\treturn numberOfPages;\r\n\t}", "title": "" }, { "docid": "c9745373e046e8e65fa818d83438fe9c", "score": "0.7229805", "text": "public int getPages() {\n\treturn pages;\n }", "title": "" }, { "docid": "9e4b8e2c76df85d1cd91b767c5a11fcf", "score": "0.7221596", "text": "public int getPages() {\n return pages;\n }", "title": "" }, { "docid": "8790b67cc002332845656f5c6e8d0852", "score": "0.7208439", "text": "public int getPageCount()\n\t{\n\t\treturn _pageCount;\n\t}", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.716313", "text": "int getPageSize();", "title": "" }, { "docid": "a2979c231aeebdd0efb91ed39fab463a", "score": "0.71393", "text": "public int getPageCount() {\n return pageCount;\n }", "title": "" }, { "docid": "fce3810e6546b86513255674124f1c22", "score": "0.70768446", "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": "4adec0f493fff48496b0063a69b49195", "score": "0.70506585", "text": "Integer getPageSize();", "title": "" }, { "docid": "5dbe3b8551348aa42554d93bb9a3ab6e", "score": "0.7018418", "text": "public int getPageCount() {\n\t\treturn pageCount;\n\t}", "title": "" }, { "docid": "bc7b71a3073d44f393ff9657e6641ca4", "score": "0.70112044", "text": "public void setNoOfPages(int newNumber)\n {\n noOfPages = newNumber;\n }", "title": "" }, { "docid": "043a4fb5fc4960a9cf7eef82ce87505a", "score": "0.69893646", "text": "public int getTotalPage();", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.6939542", "text": "public int getPageSize();", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.6939542", "text": "public int getPageSize();", "title": "" }, { "docid": "d09046424295758270d083d963d57d80", "score": "0.69360024", "text": "public int getPageCount() {\n return mPageCount;\n }", "title": "" }, { "docid": "7cdd82b2c6408b0095b9152eccaf6219", "score": "0.6912613", "text": "int getPageNo();", "title": "" }, { "docid": "0645029e471cbfa4f0d017ea1fd7e94d", "score": "0.690816", "text": "public int pageCount() {\n return (itemCount()/itemsPerPage)+1;\n }", "title": "" }, { "docid": "efec6a7cab83fe99014a89981cb8d05c", "score": "0.689547", "text": "public Integer getPages() {\n\t\treturn pages;\n\t}", "title": "" }, { "docid": "9939bd55a2cd397ef047acc7f70c4ad2", "score": "0.68944615", "text": "public int totalPages(){\n \treturn pdDoc.getNumberOfPages();\n }", "title": "" }, { "docid": "1239f17ca6fbbe32fff8d528f541abf8", "score": "0.6887336", "text": "public void setPages (int pages)\r\n {\r\n this.pages = pages;\r\n }", "title": "" }, { "docid": "9c3723797bedf94b02b2c63ae3b67360", "score": "0.68734515", "text": "public int numPages() {\n // some code goes here\n try {\n RandomAccessFile br = new RandomAccessFile(this.file, \"r\");\n long len = br.length();\n return (int)len/BufferPool.getPageSize();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "title": "" }, { "docid": "c1bb8a7555b37c8573c6740b010dfcdc", "score": "0.6871956", "text": "int getEstimatedNumberOfPages() {\n return estimatedNumberOfPages;\n\t}", "title": "" }, { "docid": "d5516540397662c612e86489baa51281", "score": "0.6868521", "text": "@Override\n public int getCount() {\n return PageId.values().length;\n }", "title": "" }, { "docid": "c9aac918df495ab9b61e6a5c3a3b047d", "score": "0.68620044", "text": "public int numPages() {\n // some code goes here\n long fileSize = file.length();\n int pageSize = Database.getBufferPool().getPageSize();\n return (int) (fileSize / pageSize);\n }", "title": "" }, { "docid": "b6179cd189822e394f751ad698693dab", "score": "0.6859998", "text": "int getPagination();", "title": "" }, { "docid": "9d1f5bf984f21ff27abc36f30d406665", "score": "0.68410337", "text": "int getPageNum();", "title": "" }, { "docid": "35f1a3444c60512cfc602ed2110449d0", "score": "0.6833052", "text": "public final int getPageCount() {\n return pageCount;\n }", "title": "" }, { "docid": "1a91677322d27ff17a7965ac21e39eed", "score": "0.68223244", "text": "long getPageSize();", "title": "" }, { "docid": "893f6d2a96b352420de0deec16a0a63a", "score": "0.68025184", "text": "@Override\n\tpublic int getPageCount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a3c0d03d319120e616502967de89aed1", "score": "0.6796702", "text": "public int getTotalPages() {\n return totalPages;\n }", "title": "" }, { "docid": "415e0eb038d638754f0ee338d9b4a3a0", "score": "0.6770142", "text": "@Override\n \tpublic int getCount() {\n \t\treturn pageViews.size();\n \t}", "title": "" }, { "docid": "76082b60c9ca570574be9238f3291aae", "score": "0.6739062", "text": "int getPageAll();", "title": "" }, { "docid": "76082b60c9ca570574be9238f3291aae", "score": "0.6739062", "text": "int getPageAll();", "title": "" }, { "docid": "2f5b5562b0f246574d1a80cfcba77c9a", "score": "0.67367715", "text": "public Integer getNumberOfPage() {\n return numberOfPage;\n }", "title": "" }, { "docid": "16673be38915161b03761f540deba662", "score": "0.67283714", "text": "public int pageCount() {\n\t\tint countTotalPages = (this.items.length / this.itemSizePerPage)+1;\n\t\treturn countTotalPages;\n\t}", "title": "" }, { "docid": "84ab22c508ddd0d8f2dd710dbc366341", "score": "0.6701713", "text": "@Override\r\n\tpublic int allCount() {\n\t\treturn pageDao.allCount();\r\n\t}", "title": "" }, { "docid": "d4cf2a93547648e1dd562d033f5a00e9", "score": "0.6694565", "text": "@Override\n\tpublic int getCount() {\n\t\treturn mPages.size();\n\t}", "title": "" }, { "docid": "6e88897da80807484b6575cf65abaf45", "score": "0.6675381", "text": "public void setPages(int numPages) {\n\tpages = numPages;\n }", "title": "" }, { "docid": "8cb5e980113d807f080dbbef1038ba83", "score": "0.6653577", "text": "long getPageNumber();", "title": "" }, { "docid": "42ae11b98a09f0be1a57d8f8f76c3ca7", "score": "0.66460866", "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": "8d57d21ac421e7bd0bf264e487e94bae", "score": "0.65841955", "text": "@Override\n\t\tpublic int getCount() {\n\t\t\treturn mPageViewArray.size();\n\t\t}", "title": "" }, { "docid": "0e5c1d651daba5c940eb49765d420d38", "score": "0.6584181", "text": "@Override\n\tpublic int getTotalPagesNorth() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "98b46ca653ebe7ec7608203cd17fc216", "score": "0.65727866", "text": "protected abstract int getSectionsCount();", "title": "" }, { "docid": "c5fdd06d666a7edd04dc529228124847", "score": "0.65709054", "text": "public static void setTotal_pages(int pages)\n {\n totalPages = pages;\n }", "title": "" }, { "docid": "2997be3d45a657bdded9e56c9797803e", "score": "0.6556429", "text": "public void setPages(int pages) {\n this.pages = pages;\n }", "title": "" }, { "docid": "422d48e168ab168b209682eb8559327a", "score": "0.6552415", "text": "public int pageCount() {\n if (getCollection().size() == 0) return 0;\n return (int) Math.ceil((double) getCollection().size() / getItemsPerPage());\n }", "title": "" }, { "docid": "6b1702674b13855322061a1fe9c19f6a", "score": "0.6548524", "text": "@Override\n public final int getPagesAvail() {\n return(super.getPagesAvail()) >> 1;\n }", "title": "" }, { "docid": "db697b2ec1a74a207b9df79f77aa27ea", "score": "0.65443754", "text": "public int getPage();", "title": "" }, { "docid": "61b257c34f66a6d4849a36908a4fc72b", "score": "0.65110916", "text": "void setNumPages(int newPages) {\r\n\t\tthis.numPages = newPages; //Replaces current number of pages with parameter\r\n\t}", "title": "" }, { "docid": "5d25a8b4f8cd7c08c0a6377f1e82923b", "score": "0.6493996", "text": "int getPage();", "title": "" }, { "docid": "5d25a8b4f8cd7c08c0a6377f1e82923b", "score": "0.6493996", "text": "int getPage();", "title": "" }, { "docid": "e6541f08d06cc02a9d051a0f958391f2", "score": "0.6481443", "text": "void setPageSize(Integer value);", "title": "" }, { "docid": "862cfc028f2ebc965301edeee641bbf2", "score": "0.64781606", "text": "private int getNppResults() {\n\t \n }", "title": "" }, { "docid": "c5575ead2cab78cb6b699334db54bc07", "score": "0.6466008", "text": "public Integer getCountOnPage() {\n return countOnPage;\n }", "title": "" }, { "docid": "9350f61c4c0eada618cf13357a7db275", "score": "0.6463855", "text": "public void setNumberOfPages(int numberOfPages) \r\n\t{\r\n\t\tthis.numberOfPages = numberOfPages;\r\n\t}", "title": "" }, { "docid": "3b364c14e763974cfe1efdfce7502b83", "score": "0.6455246", "text": "public int getPageNumber() {\r\n\t return increment == 0?1:1 + startOffset/increment;\r\n\t}", "title": "" }, { "docid": "77da8198844abb3a19434315c4a489c5", "score": "0.64546716", "text": "public int getPageAll() {\n return pageAll_;\n }", "title": "" }, { "docid": "77da8198844abb3a19434315c4a489c5", "score": "0.64546716", "text": "public int getPageAll() {\n return pageAll_;\n }", "title": "" }, { "docid": "415ea570fe54417b5ba064bd43b58972", "score": "0.64107794", "text": "Integer getPage();", "title": "" }, { "docid": "8f115f0ef238608c873ab030e6d4bcf7", "score": "0.63910043", "text": "public int getAllPageCount() {\r\n return calculateAllPageCount(_allRecordCount, _pageSize);\r\n }", "title": "" }, { "docid": "2de7d6434921d6145ec4ecf8e65f3dbb", "score": "0.6381853", "text": "@Override\n\tpublic int listCount(Page page) {\n\t\treturn goodMapper.listCount(page);\n\t}", "title": "" }, { "docid": "0ee1de628611f63d4951597240bb53fa", "score": "0.6381237", "text": "public static int findNumberOfListingPages() {\n // Visit the INITIAL_URL\n String pageHTML = WebCrawler.readUrlContents(INITIAL_URL);\n\n // Use Jsoup to start parsing the HTML code of the base page\n Document document = Jsoup.parse(pageHTML);\n\n // Find the element with the link to last page (and extract that page number)\n Element paginationElement = document.getElementById(PAGINATION_ID);\n Elements paginationLinks = paginationElement.select(\"ul > li > a\");\n\n // The final page link comes before the last link (that links to next page), so keep second-to-last Element\n Element finalPageElement = paginationLinks.get(paginationLinks.size() - 2);\n\n int nextPageValue = Integer.parseInt(finalPageElement.html());\n return nextPageValue + 1; // Do + 1 to buffer page visits by 1 more\n }", "title": "" }, { "docid": "d97b112dc214486c8c81edf64029d910", "score": "0.63754094", "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": "6790a5c4419e715f9f532f097df2636a", "score": "0.6370847", "text": "private void countPageRankIteration() {\n pageRankVector = pageRankVector.times(matrix);\n }", "title": "" }, { "docid": "763d4c225f2fdd0396d44691d59a46a4", "score": "0.6367617", "text": "public long getPagesPerBatch();", "title": "" }, { "docid": "88b471eaaba95dac1b87ca752217b975", "score": "0.6359496", "text": "abstract public int numberOfOpenSites();", "title": "" }, { "docid": "e8ddcf6eda0b88b8ce9edcefe08826f0", "score": "0.635876", "text": "long getNumberOfEntries ();", "title": "" }, { "docid": "78f1457f097b7b6dab4b2acb2c4e4a8a", "score": "0.63550776", "text": "public void setPages(Integer pages) {\n\t\tthis.pages = pages;\n\t}", "title": "" }, { "docid": "fcb1ca021c673c97b8d4885757858972", "score": "0.6353356", "text": "public int size() { return n; }", "title": "" }, { "docid": "ddf4380cf341ac5cd4efb24dab44565f", "score": "0.6343846", "text": "public int getPageAll() {\n return pageAll_;\n }", "title": "" }, { "docid": "ddf4380cf341ac5cd4efb24dab44565f", "score": "0.6343846", "text": "public int getPageAll() {\n return pageAll_;\n }", "title": "" }, { "docid": "e747623bddc02f8afe554a64af33645b", "score": "0.63393414", "text": "public static int getPageSize() {\r\n return pageSize;\r\n }", "title": "" }, { "docid": "bfbc8a5f34d1f0a76bf51299918c295e", "score": "0.63354033", "text": "@Override\n\tpublic int findPages() throws Exception {\n\t\treturn pointDao.findPages();\n\t}", "title": "" }, { "docid": "f2425f6811c3ee2ef18b13275a8a9f96", "score": "0.6317962", "text": "void setNumberPerPage(int numberPerPage);", "title": "" }, { "docid": "1506281d76b5f35ab8201c53ace9ba46", "score": "0.6310282", "text": "private static int getPageSize() {\n return DEFAULT_PAGE_SIZE;\n }", "title": "" }, { "docid": "0661604f413836c6bebf56aaea51f530", "score": "0.62836176", "text": "public int getNIters() {\n return nIters;\n }", "title": "" }, { "docid": "f11f58bcc2f8adf2b3791a9e6aeeb5cf", "score": "0.6277385", "text": "int getDatasetsCount();", "title": "" }, { "docid": "27f62c283313e42b9d1bd08d68f8ea8c", "score": "0.62754077", "text": "@Override\n public int getPagesUsed() {\n return super.getPagesUsed() + toSpace().reservedPages();\n }", "title": "" }, { "docid": "85d7d17164c2d9d2e5ce8af8bbac50e7", "score": "0.6274341", "text": "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "title": "" }, { "docid": "df105b3f9e501bb103d4cec88f287a7a", "score": "0.627155", "text": "public int getCollectionCount();", "title": "" }, { "docid": "6b79e08ff586199a64c97b010ccaba87", "score": "0.6269495", "text": "int getEntrysCount();", "title": "" }, { "docid": "5a57cda2cd595d2fd59c785e1667cf57", "score": "0.62503445", "text": "public int getTotal()\n {\n int totalPages = 0;\n \n for (Books item : bookList)\n {\n totalPages += item.getPageCount();\n }\n \n return totalPages;\n }", "title": "" } ]
ae400a30e6226cbf2ab4bdcde63a3e4d
/ access modifiers changed from: private / renamed from: b
[ { "docid": "9ac363f3c736433123081bce114afe42", "score": "0.0", "text": "public /* synthetic */ Bitmap m60946b(Bitmap bitmap) throws Exception {\n int i = this.f43540t;\n return Bitmap.createScaledBitmap(bitmap, i, i, false);\n }", "title": "" } ]
[ { "docid": "c630857e429414c34e1b5c8c22fc671e", "score": "0.6619469", "text": "public int b()\r\n/* 38: */ {\r\n/* 39:52 */ return this.b;\r\n/* 40: */ }", "title": "" }, { "docid": "0cdb5e1ef7298679ec9053ee35e34871", "score": "0.66061616", "text": "public void b() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.65603703", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "0a4b3455c84d8dd3a446b91b54ec7bb0", "score": "0.65110445", "text": "protected int b()\r\n/* 15: */ {\r\n/* 16:211 */ return bxg.a(this.u).size();\r\n/* 17: */ }", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6422293", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "f572d31b59d2912e30b58a073503b3f9", "score": "0.64061695", "text": "@Override\r\n\tpublic void methodb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4b6ac4603b01c18af516a35fe5903c0", "score": "0.64013845", "text": "protected aaz b(aqu paramaqu)\r\n/* 69: */ {\r\n/* 70:113 */ return new abb(this, paramaqu);\r\n/* 71: */ }", "title": "" }, { "docid": "3d6cdc1afb7138b4083b3a4a65f01db1", "score": "0.6320854", "text": "public void mo10296b() {\n }", "title": "" }, { "docid": "3e343b7c4fc69eb6a2ef4ef516314c45", "score": "0.6280461", "text": "public abstract void mo1282b();", "title": "" }, { "docid": "55a0dec5398ae16e92de2792580c5149", "score": "0.62712103", "text": "public abstract void mo3539b();", "title": "" }, { "docid": "ee559c204ab86b5502a2c9ea8c3b1574", "score": "0.6259374", "text": "@Override // com.tencent.android.tpush.p857b.AbstractC7386a\n /* renamed from: c */\n public void mo47543c() {\n }", "title": "" }, { "docid": "f138054d94a06bdd61ce75ffdb850a95", "score": "0.6229861", "text": "public abstract void b();", "title": "" }, { "docid": "f138054d94a06bdd61ce75ffdb850a95", "score": "0.6229861", "text": "public abstract void b();", "title": "" }, { "docid": "b738833848675d8b28d1b62df23f9e57", "score": "0.6219443", "text": "public String aL()\r\n/* 875: */ {\r\n/* 876:925 */ return this.b;\r\n/* 877: */ }", "title": "" }, { "docid": "04d5457bdafd709f38651f3ef945486f", "score": "0.62115645", "text": "public abstract void mo19305b();", "title": "" }, { "docid": "26f57b8c5725c59a06c686a60aa19b44", "score": "0.6210003", "text": "public abstract void mo37873b();", "title": "" }, { "docid": "a6755640c3663b9e2032a4711d1030c6", "score": "0.6177617", "text": "public final void mo57094b() {\n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.6148432", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "a28cc5f60e92381ea056f6e65423b0b1", "score": "0.61422193", "text": "protected void a()\r\n/* 43: */ {\r\n/* 44:240 */ this.u.c();\r\n/* 45: */ }", "title": "" }, { "docid": "9572be1b63c08695ec570934d47c72db", "score": "0.6128131", "text": "@Override\n\tpublic void aa() {\n\t\t\n\t}", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.6098732", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b90a85352bff2d76f367ee348156967c", "score": "0.6098133", "text": "public void mo23099b() {\n }", "title": "" }, { "docid": "f1dbe9e15a4d64c273430a433137f3b4", "score": "0.60909206", "text": "public void mo42318a() {\n }", "title": "" }, { "docid": "eb92706b72ad8268a5a760f54d2d5357", "score": "0.60866505", "text": "public abstract void mo1191b();", "title": "" }, { "docid": "2465e48ee05fde9260430e615f669db9", "score": "0.60792965", "text": "protected Item A()\r\n/* 56: */ {\r\n/* 57: 59 */ return ItemList.bE;\r\n/* 58: */ }", "title": "" }, { "docid": "1c7042ba6d728649af3030d0a75ad2d9", "score": "0.6065552", "text": "@Override\r\n\tpublic // cannot reduce visibility \r\n\tvoid use() {\n\r\n\t}", "title": "" }, { "docid": "21df033413aadafd7d41bbc8d957d22a", "score": "0.60582703", "text": "public interface C0103b<T> {\n\n /* renamed from: com.bytedance.android.livesdk.feed.services.b$b$a */\n public static final class a<R> {\n\n /* renamed from: a reason: collision with root package name */\n public R f14387a;\n\n /* renamed from: b reason: collision with root package name */\n boolean f14388b;\n\n public final a<R> a() {\n this.f14388b = true;\n return this;\n }\n\n private a() {\n }\n\n /* synthetic */ a(byte b2) {\n this();\n }\n\n public final a<R> a(R r) {\n this.f14387a = r;\n return this;\n }\n }\n\n @NonNull\n a<T> a(a<T> aVar);\n }", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.60577214", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "773034b76c1d5307f21220d665f42a18", "score": "0.6049472", "text": "private interface C0459e {\n /* renamed from: a */\n void mo2600a(C0001a aVar) throws RemoteException;\n }", "title": "" }, { "docid": "3efbd39d3910414c57eb216d18b3113a", "score": "0.6043848", "text": "public void mo44188b() {\n }", "title": "" }, { "docid": "198e29a1c050a6e313a25b4e7a3b8c97", "score": "0.6035677", "text": "public abstract void mo9322b();", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60288465", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60288465", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "a734b05b6ea077e1a159369c34a1dd5b", "score": "0.6018539", "text": "public int a() {\r\n/* 73 */ return this.b.size();\r\n/* */ }", "title": "" }, { "docid": "788a001a2c56a332aad6793dafd587d3", "score": "0.6006155", "text": "interface C1965b {\n /* renamed from: a */\n void mo3058a(C1977a c1977a, String str, Executor executor, C1979b c1979b);\n }", "title": "" }, { "docid": "6f4a81b45482ab918e2d6fc490698e0d", "score": "0.6000677", "text": "public interface C23261b {\n /* renamed from: a */\n void mo60531a();\n }", "title": "" }, { "docid": "6b89a3ab4c01886ca0676a6f3a8a8808", "score": "0.59953475", "text": "private void m11342g() {\n }", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.59938955", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "12e86e8bf6a25b669ed447f63c284885", "score": "0.59853375", "text": "public void mo88a() {\n }", "title": "" }, { "docid": "eb1c996778e978b0378995a621c052df", "score": "0.5984832", "text": "protected abstract void mo1020a();", "title": "" }, { "docid": "54e5b153e66598112b936e4b7e3ea875", "score": "0.5976767", "text": "protected bed e()\r\n/* 41: */ {\r\n/* 42:51 */ return new bed(this, new IBlockData[] { a });\r\n/* 43: */ }", "title": "" }, { "docid": "d45316c5588f0786bc2458944fbef846", "score": "0.59597754", "text": "public final /* bridge */ /* synthetic */ void mo2222b() {\n super.mo2222b();\n }", "title": "" }, { "docid": "d2bd11c6384dc6487b69df1fad21da7b", "score": "0.59542036", "text": "public int a()\r\n/* 33: */ {\r\n/* 34:48 */ return this.a;\r\n/* 35: */ }", "title": "" }, { "docid": "d48ac35465c27e31c1f21be54513f8f9", "score": "0.5945898", "text": "@Override\r\n\tpublic void pirntA() {\n\r\n\t}", "title": "" }, { "docid": "6e7dc1210d8887a067039c5db7ffcc1f", "score": "0.5917554", "text": "private Simplifier() {}", "title": "" }, { "docid": "4d970774f0fa129b2c1770382b61c76f", "score": "0.5910499", "text": "@Override\n public void internal() {\n }", "title": "" }, { "docid": "087b806a46906f5378c51292b019b70c", "score": "0.58982754", "text": "public d(c.b.a.m r8, c.b.a.c0.l.b r9, c.b.a.c0.k.m r10) {\n /*\n r7 = this;\n java.lang.String r3 = r10.a\n boolean r4 = r10.f586c\n java.util.List<c.b.a.c0.k.b> r0 = r10.b\n java.util.ArrayList r5 = new java.util.ArrayList\n int r1 = r0.size()\n r5.<init>(r1)\n r1 = 0\n r2 = r1\n L_0x0011:\n int r6 = r0.size()\n if (r2 >= r6) goto L_0x0029\n java.lang.Object r6 = r0.get(r2)\n c.b.a.c0.k.b r6 = (c.b.a.c0.k.b) r6\n c.b.a.a0.b.c r6 = r6.a(r8, r9)\n if (r6 == 0) goto L_0x0026\n r5.add(r6)\n L_0x0026:\n int r2 = r2 + 1\n goto L_0x0011\n L_0x0029:\n java.util.List<c.b.a.c0.k.b> r10 = r10.b\n L_0x002b:\n int r0 = r10.size()\n if (r1 >= r0) goto L_0x0042\n java.lang.Object r0 = r10.get(r1)\n c.b.a.c0.k.b r0 = (c.b.a.c0.k.b) r0\n boolean r2 = r0 instanceof c.b.a.c0.j.l\n if (r2 == 0) goto L_0x003f\n c.b.a.c0.j.l r0 = (c.b.a.c0.j.l) r0\n r6 = r0\n goto L_0x0044\n L_0x003f:\n int r1 = r1 + 1\n goto L_0x002b\n L_0x0042:\n r10 = 0\n r6 = r10\n L_0x0044:\n r0 = r7\n r1 = r8\n r2 = r9\n r0.<init>(r1, r2, r3, r4, r5, r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: c.b.a.a0.b.d.<init>(c.b.a.m, c.b.a.c0.l.b, c.b.a.c0.k.m):void\");\n }", "title": "" }, { "docid": "1330e7d2ee626d929b08dab3727a43a1", "score": "0.5897226", "text": "public interface AbstractC0282bj {\n /* renamed from: a */\n void mo3766a();\n}", "title": "" }, { "docid": "fae5ab50f24741c668f6a980611e1afd", "score": "0.5894739", "text": "private A() {\n\t\tthrow new AssertionError();\n\t}", "title": "" }, { "docid": "acca3c01e51d08a4d60d67937f3fd23f", "score": "0.5891362", "text": "public interface C2525a {\n /* renamed from: a */\n void m12672a();\n }", "title": "" }, { "docid": "856c1250a7f14ab0e3db59aaff52f212", "score": "0.58898413", "text": "public interface C2511a {\n /* renamed from: a */\n void mo5636a();\n\n /* renamed from: b */\n void mo5637b();\n }", "title": "" }, { "docid": "86b9e34dd20fbefa67f2701023cbbbd0", "score": "0.58874285", "text": "public interface C32433a {\n /* renamed from: Bj */\n void mo20433Bj();\n }", "title": "" }, { "docid": "0e01f97026bcb1eccefad19da9fa07d2", "score": "0.588527", "text": "public void b()\r\n/* 143: */ {\r\n/* 144:157 */ this.h = bsu.I();\r\n/* 145:159 */ if (a())\r\n/* 146: */ {\r\n/* 147:160 */ int j = this.i.e();\r\n/* 148:161 */ if (j != -1) {\r\n/* 149:162 */ this.i.b(j);\r\n/* 150: */ }\r\n/* 151: */ }\r\n/* 152: */ else\r\n/* 153: */ {\r\n/* 154:165 */ this.i = new car(this);\r\n/* 155: */ }\r\n/* 156: */ }", "title": "" }, { "docid": "c5df9c1656974113834510dc0b4e0e18", "score": "0.5866706", "text": "public abstract C45692b mo6380a(C45692b c45692b);", "title": "" }, { "docid": "4d8290bd131da18c2b6c59a1cc14a676", "score": "0.5863998", "text": "protected void func_190201_b(World worldIn) {\n/* 74 */ super.func_190201_b(worldIn);\n/* 75 */ if (!func_145830_o()) {\n/* 76 */ func_145834_a(worldIn);\n/* */ }\n/* */ }", "title": "" }, { "docid": "63821e766907398da28e3f4f310a97fe", "score": "0.5863577", "text": "public interface C2230a {\n /* renamed from: a */\n void mo7727a();\n }", "title": "" }, { "docid": "564a077d6f81a51d39285e016eee4922", "score": "0.5859297", "text": "public int getB() { return b; }", "title": "" }, { "docid": "b6991105a4e7cbd1e588ff8cdb14842f", "score": "0.58578235", "text": "public final void mo42476a() {\n }", "title": "" }, { "docid": "061b3b6e0dca7401d6dba55feb640729", "score": "0.5857517", "text": "public void Pohyb () {\n\t\t\n\t}", "title": "" }, { "docid": "5dea2be9e9abed2ec48a99b5ce84542d", "score": "0.5840401", "text": "private A(){}", "title": "" }, { "docid": "7dace406f4dfdedfc014041858755d96", "score": "0.583775", "text": "public final /* bridge */ /* synthetic */ void mo12167b() {\n super.mo12167b();\n }", "title": "" }, { "docid": "1c1a6690119d6efa6207f969cfec2a8f", "score": "0.58363223", "text": "public abstract int b(java.lang.Object obj);", "title": "" }, { "docid": "69516b8240d2333941c7c3fe3ed5cb05", "score": "0.5834242", "text": "protected boolean a(int paramInt)\r\n/* 33: */ {\r\n/* 34:230 */ return paramInt == bxg.b(this.u);\r\n/* 35: */ }", "title": "" }, { "docid": "ecf7d9908fa85b59464a792a0702fa59", "score": "0.58277917", "text": "@Override\r\n\tpublic void A() {\n\t\t\r\n\t}", "title": "" }, { "docid": "076c14ab9f61491e1f5c92e5ccee2f9f", "score": "0.5821473", "text": "public interface C0364g {\n\n /* renamed from: c.b.a.c.b.g$a */\n /* compiled from: DataFetcherGenerator */\n public interface a {\n void a(c cVar, Exception exc, d<?> dVar, DataSource dataSource);\n\n void a(c cVar, Object obj, d<?> dVar, DataSource dataSource, c cVar2);\n\n void g();\n }\n\n boolean a();\n\n void cancel();\n}", "title": "" }, { "docid": "9527a325e4b9b57c013af577caa656fc", "score": "0.5821211", "text": "public void method_6044() {}", "title": "" }, { "docid": "1106341a3941130791d5b8d01ae76747", "score": "0.5821045", "text": "interface C4666i {\n /* renamed from: a */\n void mo29984a();\n\n /* renamed from: b */\n void mo29985b();\n }", "title": "" }, { "docid": "80e3055a02b6b4135cc0e4a08d5c890e", "score": "0.5820637", "text": "private Ham(){\r\n throw new UnsupportedOperationException();\r\n }", "title": "" }, { "docid": "6c7e9be625eed7c5ebd0d548b3815543", "score": "0.5818093", "text": "public abstract java.util.Map b();", "title": "" }, { "docid": "3093b1899373591cf267e69ee0a15db6", "score": "0.58064514", "text": "public void b(int paramInt)\n/* */ {\n/* 35 */ this.b = paramInt;\n/* */ }", "title": "" }, { "docid": "8917e7a234280086e20bb5d5e70a45a1", "score": "0.5797908", "text": "@Override\r\n\tpublic void printB() {\n\r\n\t}", "title": "" }, { "docid": "55ca32fb9ff407eccad1d940c66c190e", "score": "0.5785119", "text": "public abstract void mo119735a();", "title": "" }, { "docid": "e1953188e1b8b579ca90b5d819cd980f", "score": "0.578384", "text": "public abstract void zzj(Object obj, B b);", "title": "" }, { "docid": "be838d9cabb22ce38fa4e96f1a956f29", "score": "0.5778862", "text": "public interface C0115a {\n /* renamed from: a */\n void mo1195a();\n }", "title": "" }, { "docid": "f5a0c4f295bbeb9a2542b9f02489e3e3", "score": "0.57786256", "text": "protected bed e()\r\n/* 82: */ {\r\n/* 83:100 */ return new bed(this, new bex[] { a });\r\n/* 84: */ }", "title": "" }, { "docid": "7f1c21d3451b7c07ac5db6c46d4b6f2e", "score": "0.5774997", "text": "@Override\n\tpublic void A() {\n\t\t\n\t}", "title": "" }, { "docid": "ecb942894b3355a19e9e1b6eeed8b1c2", "score": "0.5772635", "text": "public interface C10103b {\n /* renamed from: c */\n void mo36263c();\n\n /* renamed from: d */\n void mo36264d();\n }", "title": "" }, { "docid": "43587da87d1f6e3f654f5812a32e6993", "score": "0.5768094", "text": "public final void mo2619a() {\n }", "title": "" }, { "docid": "31e0a27cc492b5cdc0831a13dff60c1a", "score": "0.57660747", "text": "@Override\r\n\tprotected void impl() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.57654804", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "8f807d9357e4ec191e3c9afab3146580", "score": "0.57610154", "text": "public void a(String paramString)\r\n/* 857: */ {\r\n/* 858:907 */ this.b = paramString;\r\n/* 859: */ }", "title": "" }, { "docid": "ae03cbf9bf5ec80cc4798c30b0f2f746", "score": "0.5756017", "text": "private Oid() {\n\t}", "title": "" }, { "docid": "e867561fda5cc500a058510a39ba8f15", "score": "0.57521325", "text": "public interface C11069d {\n /* renamed from: a */\n void mo23704a(int i);\n\n /* renamed from: b */\n void mo23705b(int i);\n }", "title": "" }, { "docid": "61c94c12360afe2be0dc09399bb84f4d", "score": "0.574625", "text": "public int getB(){return b;}", "title": "" }, { "docid": "4d1f08ec1666692865031a3d645ad684", "score": "0.5738601", "text": "public void mo228g() {\r\n }", "title": "" }, { "docid": "0b5ec8f53273b48128542de9a10a26fa", "score": "0.5734794", "text": "public interface C3536a {\n /* renamed from: a */\n void mo10667a();\n }", "title": "" }, { "docid": "1be77f0e16cf342a609acbe552124c1b", "score": "0.57258016", "text": "@Override\r\n\tpublic void methodc() {\n\t\t\r\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.5722859", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "03548ef8ac3d14f656c0614efb82dcc4", "score": "0.5720184", "text": "public void a() {\n }", "title": "" }, { "docid": "c080f86028737fceb7194748373d80da", "score": "0.57175803", "text": "private b$a() {\n void var2_-1;\n void var1_-1;\n }", "title": "" }, { "docid": "486660155fa232a8f94111442e90b123", "score": "0.5708317", "text": "public interface C0954m extends C0949k0 {\n /* renamed from: a */\n boolean mo4290a(Throwable th);\n}", "title": "" }, { "docid": "1c21cbbfe3acbadbce824e7aba65e770", "score": "0.57057923", "text": "protected void bp()\r\n/* 397: */ {\r\n/* 398:433 */ amj localamj = ((adp)vj.a(this.V, ado.j())).a(this.V);\r\n/* 399:434 */ a(localamj, 1.0F);\r\n/* 400: */ }", "title": "" }, { "docid": "386c2ab8dae24302a644c55d18954dde", "score": "0.570242", "text": "public interface C19874a {\n /* renamed from: a */\n boolean mo35111a(C45718aa c45718aa);\n }", "title": "" }, { "docid": "ca4faad37e1c108d8ff55400620106c0", "score": "0.5696018", "text": "public interface r {\n\n /* renamed from: a reason: collision with root package name */\n public static final r f14766a = new a();\n\n /* compiled from: CookieJar */\n class a implements r {\n a() {\n }\n\n public void a(z zVar, List<q> list) {\n }\n\n public List<q> b(z zVar) {\n return Collections.emptyList();\n }\n }\n\n void a(z zVar, List<q> list);\n\n List<q> b(z zVar);\n}", "title": "" }, { "docid": "87705d30efa1c51fdd531a51ea79aba7", "score": "0.5687282", "text": "private class <init>\n implements com.target.ui.helper.j.\n{\n\n final GoogleNowSendCardHelper this$0;\n\n public void a(a a1)\n {\n q.a(\"GoogleNowSendCardHelper\", \"Error encountered while fetching full lists\");\n }", "title": "" }, { "docid": "fb37f787973670a420102c4c8d309c67", "score": "0.5687261", "text": "public final void mo2302a() {\n }", "title": "" }, { "docid": "71500820b65a07756b5f05388aff1f7c", "score": "0.5686643", "text": "public A(int a) {\r\n this.b = a;\r\n }", "title": "" }, { "docid": "0e4876c253c09998a82ed43f64d0964a", "score": "0.56851786", "text": "public final void b() {\n if (this.B == null) {\n this.B = new eb(this.a);\n }\n if (this.f == null) {\n this.f = new ct(this.a);\n }\n m();\n this.c.b(false);\n this.h = this.c.c();\n this.d.a(false, o());\n this.e.a(this.a);\n this.f.b();\n try {\n if (this.a.checkCallingOrSelfPermission(ad.c(\"EYW5kcm9pZC5wZXJtaXNzaW9uLldSSVRFX1NFQ1VSRV9TRVRUSU5HUw==\")) == 0) {\n this.n = true;\n }\n } catch (Throwable th) {\n }\n this.z = true;\n }", "title": "" }, { "docid": "873cc5faff627302821e25f070f091e8", "score": "0.56842285", "text": "public void mo1150b() {\n }", "title": "" }, { "docid": "6911f088becb687dc42095ef19741ac0", "score": "0.5676793", "text": "protected abstract Object mo4837c();", "title": "" }, { "docid": "0db52aaf6ab115d13bfdb157c49f358b", "score": "0.5675801", "text": "private void loaddatatable() {\n\n }", "title": "" } ]
bb97f39de8c99f5fa969d921232a9d51
Write from an InputStream to an OutputStream NOTE: It is the callers responsibility to close both streams
[ { "docid": "abc55e8002e1501f59a3f4b05cd944b2", "score": "0.66873807", "text": "public static void write (InputStream is, OutputStream out, int bufferSize) throws Exception {\n final String eLabel = \"StreamUtils.write(InputStream, OutputStream): \";\n try {\n if (bufferSize < 1) throw new Exception(\"Invalid buffer size: \" + bufferSize);\n int bytesRead;\n byte[] buffer = new byte[bufferSize];\n while ((bytesRead = is.read(buffer)) != -1) {\n out.write(buffer, 0, bytesRead);\n }\n } catch (Exception e) {\n throw new Exception(eLabel + e);\n }\n }", "title": "" } ]
[ { "docid": "e72c3a6973c9100e14ac50c64f5f785e", "score": "0.68328524", "text": "public void write(OutputStream outStream);", "title": "" }, { "docid": "5452929b15cf1196d0996bc2b8dc1dad", "score": "0.66385543", "text": "public static void inputstreamToOutputstream(InputStream is, OutputStream os, long length) throws IOException {\r\n\t\tinputstreamToOutputstreamNotClosing(is, os, length);\r\n\t\tos.flush();\r\n\t\tos.close();\r\n\t}", "title": "" }, { "docid": "88991d8ca118172d703768ebc3fd62fd", "score": "0.66301703", "text": "public void WriteTo(OutputStream stream)\n\t{\n\t\tif (!this._isOpen)\n\t\t\tthrow new ObjectDisposedException(null, \"Cannot access a closed Stream.\");\n\t\t\n\t\tif (stream == null)\n\t\t\tthrow new ArgumentNullException(\"stream\", \"Stream cannot be null.\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstream.write(m_buffer, _origin, length - _origin);\n\t\t}\n\t\tcatch (java.io.IOException e)\n\t\t{\n\t\t\t// silently catch Java's IOException- C# doesn't throw any either.\n\t\t}\n\t}", "title": "" }, { "docid": "505bf9abd4ba48fcd95a4311533164aa", "score": "0.6627674", "text": "public static void copyInputStream2OutputStream(InputStream in, OutputStream out) {\r\n DataInputStream buffIn;\r\n DataOutputStream buffOut;\r\n try {\r\n buffIn = new DataInputStream(in);\r\n buffOut = new DataOutputStream(out);\r\n byte buffer[] = new byte[256];\r\n int n;\r\n while((n = buffIn.read(buffer)) > -1) \r\n buffOut.write(buffer,0,n);\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\" method error. \" + ioe.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "5026a6ca751682867e5ad25538202f4f", "score": "0.6603139", "text": "public static void write (InputStream is, OutputStream out) throws Exception {\n write(is, out, DEFAULT_BUFFER_SIZE);\n }", "title": "" }, { "docid": "10adc5715fa218c5a8658d9bf7d7a4a2", "score": "0.6395252", "text": "public static final void copyInputStream(InputStream in, OutputStream out)\n\tthrows IOException {\n\t\tbyte[] buffer = new byte[1024];\n\t\tint len;\n\n\t\twhile ((len = in.read(buffer)) >= 0)\n\t\t\tout.write(buffer, 0, len);\n\n\t\tin.close();\n\t\tout.close();\n\t}", "title": "" }, { "docid": "bbcc15cd25c041a198163e6474f02b32", "score": "0.6312241", "text": "public void write( final OutputStream outputStream ) throws IOException\n {\n }", "title": "" }, { "docid": "230da67d86a408b9a227896d0ae31a56", "score": "0.62961537", "text": "public static void copyStream(InputStream is, OutputStream os) throws IOException {\n byte[] bytes = new byte[64];\n int numBytes;\n while ((numBytes = is.read(bytes)) != -1) {\n os.write(bytes, 0, numBytes);\n }\n os.flush();\n os.close();\n is.close();\n }", "title": "" }, { "docid": "96526ad665cbe00f3d2e4a896102d58d", "score": "0.62202513", "text": "public void flushFromInputStreamToOutputStream(InputStream is, OutputStream os, boolean closeStreams) {\r\n\t\ttry{\t\r\n\t\t\tint c = 0;\r\n\t\t\tbyte[] b = new byte[1024];\r\n\t\t\twhile ((c = is.read(b)) != -1) {\r\n\t\t\t\tif (c == 1024)\r\n\t\t\t\t\tos.write(b);\r\n\t\t\t\telse\r\n\t\t\t\t\tos.write(b, 0, c);\r\n\t\t\t}\r\n\t\t\tos.flush();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Exception: \" + ioe);\r\n ioe.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (closeStreams) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (os != null) os.close();\r\n\t\t\t\t\tif (is != null) is.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.err.println(\"Error closing streams: \" + e);\r\n\t\t e.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c93c3646a33fb8a8c163f623c55a43e4", "score": "0.6210676", "text": "public static void pipeStream(InputStream in, OutputStream out, int bufSize)\n throws IOException {\n try {\n byte[] buf = new byte[bufSize];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n } finally {\n try {\n in.close();\n out.close();\n } catch (IOException e) {\n logger.warn(\"Unable to close stream\", e);\n }\n }\n }", "title": "" }, { "docid": "e4d2a3122ca5cec30980ff0f194bec26", "score": "0.6206312", "text": "private void copy(InputStream input, OutputStream output) throws IOException {\n try {\n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead = input.read(buffer);\n while (bytesRead != -1) {\n output.write(buffer, 0, bytesRead);\n bytesRead = input.read(buffer);\n }\n } finally {\n input.close();\n output.close();\n }\n }", "title": "" }, { "docid": "030ddbbb868c06a20de47f784195a8b9", "score": "0.6098767", "text": "static void copy (InputStream in, OutputStream out, int blocksize) {\n\t\tbyte[] buffer = new byte[blocksize];\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((count = in.read(buffer)) > 0) {\n\t\t\t\tout.write(buffer);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"can not close\");\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tin.close();\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"can not close\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "24b68a7ef11dd250f45971c535bf67b4", "score": "0.6077596", "text": "static void copy(InputStream in, OutputStream out) {\n\t\ttry {\n\t\t\twhile(in.read() > 0) {\n\t\t\t\tout.write( in.read() );\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tin.close();\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"can not close\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "779b2f6bce7147bdb8fe449f4e31b949", "score": "0.6065892", "text": "public static void CopyStream(InputStream is, OutputStream os) {\n\t\tfinal int buffer_size = 1024;\n\t\ttry {\n\t\t\tbyte[] bytes = new byte[buffer_size];\n\t\t\tfor (;;) {\n\t\t\t\tint count = is.read(bytes, 0, buffer_size);\n\t\t\t\tif (count == -1)\n\t\t\t\t\tbreak;\n\t\t\t\tos.write(bytes, 0, count);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t}\n\t}", "title": "" }, { "docid": "aee31c13fa74065878c309710ace68c8", "score": "0.60561675", "text": "long writeInto(OutputStream out) throws IOException;", "title": "" }, { "docid": "c4e1390daaee2ddcedab2e3ec7c9b6bd", "score": "0.60503", "text": "private void copyStream(InputStream is, OutputStream os) throws IOException {\n byte[] buf = new byte[4096];\n int n;\n while ((n = is.read(buf)) >= 0) {\n os.write(buf, 0, n);\n }\n }", "title": "" }, { "docid": "15f2b20c16d4dbc0f2157d966fd301dc", "score": "0.60382265", "text": "public static void copyStream(InputStream is, OutputStream os) {\n final int buffer_size = 1024;\n try {\n byte[] bytes = new byte[buffer_size];\n for (; ; ) {\n int count = is.read(bytes, 0, buffer_size);\n if (count == -1)\n break;\n os.write(bytes, 0, count);\n }\n } catch (Exception ex) {\n }\n }", "title": "" }, { "docid": "6b11e974fdec678d9a5618931108a727", "score": "0.60086477", "text": "private static void pipe(InputStream source, OutputStream dest) throws IOException {\n byte[] buf = new byte[1024];\n int read = 0;\n while ( (read = source.read(buf) ) >= 0) {\n if (null != dest) dest.write(buf, 0, read);\n }\n if (null != dest) dest.flush();\n }", "title": "" }, { "docid": "7c3211c1282edb4fc3eb5d55a817317f", "score": "0.59865046", "text": "public void WriteTo(Stream stream)\n\t{\n\t\tif (!this._isOpen)\n\t\t\tthrow new ObjectDisposedException(null, \"Cannot access a closed Stream.\");\n\t\t\n\t\tif (stream == null)\n\t\t\tthrow new ArgumentNullException(\"stream\", \"Stream cannot be null\");\n\t\t\n\t\tstream.Write(m_buffer, _origin, length - _origin);\n\t}", "title": "" }, { "docid": "bfd16924b8ef58b2b92f81d107953094", "score": "0.5963889", "text": "public void setOutputStream(OutputStream os);", "title": "" }, { "docid": "0ac77c840ee2b0b3bb5abffd64f0a0e1", "score": "0.5948589", "text": "private void write(InputStream inputStream, FileOutputStream fileOutputStream){\n\n try {\n byte[] buffer = new byte[4096];\n\n// long fileSize = body.contentLength();\n// long fileSizeDownloaded = 0;\n//\n// inputStream = body.byteStream();\n// outputStream = new FileOutputStream(futureStudioIconFile);\n\n while (true) {\n int read = inputStream.read(buffer);\n\n if (read == -1) {\n break;\n }\n\n fileOutputStream.write(buffer, 0, read);\n\n// fileSizeDownloaded += read;\n\n// Log.d(TAG, \"file download: \" + fileSizeDownloaded + \" of \" + fileSize);\n }\n\n fileOutputStream.flush();\n inputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1729e58c726fa42160a03f795f7feb4d", "score": "0.58948267", "text": "abstract public OutputStream getOutputStream();", "title": "" }, { "docid": "8ead0042f8e17f31c8d1536d99152698", "score": "0.5889194", "text": "private static void shovelInToOut(InputStream in, OutputStream out)\n throws IOException {\n byte[] buffer = new byte[1000];\n int len;\n while ((len = in.read(buffer)) > 0) {\n out.write(buffer, 0, len);\n }\n }", "title": "" }, { "docid": "be1142b6c25f48164dfaf46641316515", "score": "0.5882435", "text": "void streamcopy(InputStream src, OutputStream dst) throws IOException\n {\n byte[] buffer = new byte[2048];\n int len;\n while((len = src.read(buffer)) != -1) dst.write(buffer, 0, len);\n }", "title": "" }, { "docid": "be1142b6c25f48164dfaf46641316515", "score": "0.5882435", "text": "void streamcopy(InputStream src, OutputStream dst) throws IOException\n {\n byte[] buffer = new byte[2048];\n int len;\n while((len = src.read(buffer)) != -1) dst.write(buffer, 0, len);\n }", "title": "" }, { "docid": "be1142b6c25f48164dfaf46641316515", "score": "0.5882435", "text": "void streamcopy(InputStream src, OutputStream dst) throws IOException\n {\n byte[] buffer = new byte[2048];\n int len;\n while((len = src.read(buffer)) != -1) dst.write(buffer, 0, len);\n }", "title": "" }, { "docid": "76206394e036a0256f5146500e10f5c9", "score": "0.5863516", "text": "public static void pipe(InputStream in, OutputStream out)\n throws IOException\n {\n byte[] buf = new byte[4096];\n int n;\n while ((n = in.read(buf, 0, buf.length)) >= 0)\n out.write(buf, 0, n);\n }", "title": "" }, { "docid": "a6abc044f12d07d59db9ae029842518c", "score": "0.5862576", "text": "public InOutCopier(InputStream _is, OutputStream _os) throws IOException {\n this.is = new BufferedInputStream(_is);\n this.os = _os;\n this.enable = true;\n }", "title": "" }, { "docid": "b1923760cfc5e35ba22df5ee4eeea55f", "score": "0.58342016", "text": "private static void copy(InputStream in, OutputStream out , int bufferSize)\n throws IOException\n {\n // Read bytes and write to destination until eof\n byte[] buf = new byte[bufferSize];\n int len = 0;\n while ((len = in.read(buf)) >= 0)\n {\n out.write(buf, 0, len);\n }\n }", "title": "" }, { "docid": "5cdcadc00d1ff62311f666bdbd972aaa", "score": "0.58027655", "text": "private void copy(InputStream is, OutputStream os){\n int i;\n byte[] b = new byte[1024];\n try{\n while((i=is.read(b))!=-1) {\n os.write(b, 0, i);\n }\n }catch(IOException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "bd98ff1a34d8738763034ab33c2cb7e3", "score": "0.5785853", "text": "public static void pipe(InputStream istream, OutputStream ostream) throws IOException {\r\n\t\tif(ostream != null && istream != null) {\r\n\t\t\t/*\r\n\t\t\t * This is the fastest method I know for reading from an\r\n\t\t\t * indeterminate stream. So fast in fact, that it pars fairly well\r\n\t\t\t * with FileChannel stuff in test cases.\r\n\t\t\t * \r\n\t\t\t * Small and simple enough the JIT can grab hold and optimize it,\r\n\t\t\t * but with a large enough buffer to not make reading slow.\r\n\t\t\t */\r\n\t\t\tfinal BufferedInputStream input = new BufferedInputStream(istream);\r\n\t\t\tfinal BufferedOutputStream output = new BufferedOutputStream(ostream);\r\n\t\t\t// final FileOutputStream buffer = new FileOutputStream(file);\r\n\t\t\tfinal byte[] reader = new byte[IO_BUFFER_SIZE];\r\n\t\t\tint r = 0;\r\n\t\t\twhile((r = input.read(reader, 0, IO_BUFFER_SIZE)) != -1) {\r\n\t\t\t\toutput.write(reader, 0, r);\r\n\t\t\t}\r\n\t\t\toutput.flush();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d9ac6ec9763d9ddf3bf82cb0ad9fbc2a", "score": "0.5784341", "text": "public static void transfer(InputStream fromStream, OutputStream toStream) throws IOException {\n int bytesRead;\n byte[] buffer = new byte[BUFFER_SIZE];\n\n while ((bytesRead = fromStream.read(buffer, 0, BUFFER_SIZE)) >= 0) {\n toStream.write(buffer, 0, bytesRead);\n }\n\n toStream.flush();\n }", "title": "" }, { "docid": "b8ccec537b8a43043031d15c4fe34d97", "score": "0.5770228", "text": "public void write(final OutputStream outputStream, final URI baseURI) throws IOException;", "title": "" }, { "docid": "898e52b947882ec3c5e8fb9c720950ee", "score": "0.5753294", "text": "public static void transferStreams(InputStream source, OutputStream destination) throws IOException {\n \t\tsource = new BufferedInputStream(source);\n \t\tdestination = new BufferedOutputStream(destination);\n \t\ttry {\n \t\t\tbyte[] buffer = new byte[8192];\n \t\t\twhile (true) {\n \t\t\t\tint bytesRead = -1;\n \t\t\t\tif ((bytesRead = source.read(buffer)) == -1)\n \t\t\t\t\tbreak;\n \t\t\t\tdestination.write(buffer, 0, bytesRead);\n \t\t\t}\n \t\t} finally {\n \t\t\tdestination.flush();\n \t\t}\n \t}", "title": "" }, { "docid": "27da06cd853d0b8f56b4a7cc45a28d23", "score": "0.57404196", "text": "public static void pipe(final InputStream is, final OutputStream os) {\r\n\t\tpipe(is, os, null);\r\n\t}", "title": "" }, { "docid": "675cbe43d46980c9145033ce68a15a75", "score": "0.5729073", "text": "public void setOutputStream(OutputStream out);", "title": "" }, { "docid": "541b891f4222b5794c334731781071e0", "score": "0.57053566", "text": "public synchronized void writeTo(OutputStream os) throws IOException {\n os.write(buf,0,size); \n }", "title": "" }, { "docid": "4a08e44873f77841c43448befac89898", "score": "0.5669375", "text": "public synchronized void writeTo(OutputStream os) throws IOException {\n os.write(buf,0,size);\n }", "title": "" }, { "docid": "8ff5c555d1fb65adc6c199e056a7d779", "score": "0.5643176", "text": "private static void pump(InputStream in, OutputStream out) throws IOException {\n\n if (in == null) throw new IOException(\"Input stream is null\");\n if (out == null) throw new IOException(\"Output stream is null\");\n\n try {\n try {\n byte[] buffer = new byte[4096];\n for (; ; ) {\n int bytes = in.read(buffer);\n if (bytes < 0) {\n break;\n }\n out.write(buffer, 0, bytes);\n }\n } finally {\n in.close();\n }\n } finally {\n out.close();\n }\n }", "title": "" }, { "docid": "18379ff90a864e25bca36126bc3da982", "score": "0.5641026", "text": "public OutputStream getOutputStream();", "title": "" }, { "docid": "84315e4622a78a084a0dd785aeafc27b", "score": "0.5613434", "text": "public void put(Bitstream bitstream, InputStream inputStream) throws IOException;", "title": "" }, { "docid": "a5043d9c108e76c0755b2f72aaaae403", "score": "0.55995435", "text": "public static void streamCopy(InputStream from, OutputStream to) {\n byte[] buffer = new byte[1024];\n int bytes;\n try {\n while (true) {\n bytes = from.read(buffer);\n if (bytes == -1) {\n return;\n }\n to.write(buffer, 0, bytes);\n }\n } catch (IOException e) {\n e.printStackTrace();\n throw new Error(e);\n }\n }", "title": "" }, { "docid": "fc952eec12e507fd772171dd7c5a9a2f", "score": "0.5598538", "text": "private void encrypt(InputStream input, OutputStream output)\n throws IOException {\n output = new CipherOutputStream(output, encrypt);\n writeBytes(input, output);\n }", "title": "" }, { "docid": "f7acc7a0aea46e534033f626fed09551", "score": "0.5596105", "text": "public static void inputstreamToOutputstreamNotClosing(InputStream is, OutputStream os, long length) throws IOException {\r\n\t\t// initialize\r\n\t\tbyte[] buffer = new byte[1024 * 1024]; // tweaking this number may\r\n\t\t\t\t\t\t\t\t\t\t\t\t// increase\r\n\t\t// performance\r\n\t\tint len;\r\n\t\twhile (length > 0 && (len = is.read(buffer, 0, (int) Math.min(buffer.length, length))) != -1) {\r\n\t\t\tos.write(buffer, 0, len);\r\n\t\t\tlength -= len;\r\n\t\t}\r\n\t\tis.close();\r\n\t}", "title": "" }, { "docid": "c76e75d7b662dae20954518c4ee18fb6", "score": "0.5587862", "text": "public void writeTo(OutputStream os)\n throws IOException {\n os.write(buf,0,count);\n os.flush();\n }", "title": "" }, { "docid": "a21b25b34ca968618c3842aad8d852de", "score": "0.55876976", "text": "@Override\n public void write(OutputStream output) throws IOException,\n WebApplicationException {\n IOUtils.copy(inputStream, output);\n }", "title": "" }, { "docid": "29d405fbd6db8ee001c9f6775c36ac22", "score": "0.5582503", "text": "@NonNull\n OutputStream unwrap() throws IOException;", "title": "" }, { "docid": "ce959a016487fbdb40243aae207affea", "score": "0.55747604", "text": "public static long readAndWrite(InputStream input, OutputStream output) throws IOException {\r\n\t\t\tbyte[] buffer = new byte[BUFFER_SIZE];\r\n\t\t\tlong count = 0;\r\n\t\t\tint n = 0;\r\n\t\t\twhile (-1 != (n = input.read(buffer))) {\r\n\t\t\t\toutput.write(buffer, 0, n);\r\n\t\t\t\tcount += n;\r\n\t\t\t}\r\n\t\t\treturn count;\r\n\t\t}", "title": "" }, { "docid": "edb1b9dc37661eb6ef1124f5d984e09f", "score": "0.55731857", "text": "public interface OutputStreamWritable {\n\n\t/**\n\t * Writes to the given output stream.\n\t * <p>\n\t * Any buffering will likely be done at a higher level and need not be implemented within this method. The given output stream is not closed at the end of\n\t * this operation.\n\t * </p>\n\t * @param outputStream The output stream to which the information will be written.\n\t * @param baseURI The base URI of the data, or <code>null</code> if no base URI is available.\n\t * @throws IOException if there is an error writing the information to the output stream.\n\t */\n\tpublic void write(final OutputStream outputStream, final URI baseURI) throws IOException;\n\n}", "title": "" }, { "docid": "1d1adc1f3d6ae7992a8aa27ae179a741", "score": "0.55549127", "text": "private static void copyInputToOutput(InputStream source, OutputStream sink) throws IOException {\n byte[] buffer = new byte[BUFFER_SIZE];\n int read;\n while ((read = source.read(buffer, 0, BUFFER_SIZE)) >= 0) {\n sink.write(buffer, 0, read);\n }\n }", "title": "" }, { "docid": "b5335466ebfc02c38bf68b3fc895a389", "score": "0.55365705", "text": "public abstract int write(AudioInputStream stream, AudioFileFormat.Type fileType, File out) throws IOException;", "title": "" }, { "docid": "d9bb2bf8a5c6c1cbf0c8dd131eece73f", "score": "0.5528845", "text": "private void copy(InputStream is, OutputStream os) throws Exception {\n byte buf[] = new byte[4096000]; //4G buffer set\n int read = 0;\n while ((read = is.read(buf)) != -1) //reading\n {\n os.write(buf, 0, read); //writing\n }\n }", "title": "" }, { "docid": "0e2b2225517b346fb50c1c66756f1159", "score": "0.55058867", "text": "OutputStream compress(OutputStream is);", "title": "" }, { "docid": "e2abe11baa4203bb9544d4068ed7be57", "score": "0.5496961", "text": "public void write(OutputStream out)\n throws IOException, CMSException;", "title": "" }, { "docid": "4e6588f1dd644184e793d6f668a278e5", "score": "0.5495487", "text": "public static void writeFileToInternal(Context context, \n\t\t\tInputStream inputStream, String destName) throws IOException{\n\t\ttry {\n\t\t\tOutputStream out = \n\t\t\t\t\tcontext.openFileOutput(destName, Context.MODE_PRIVATE);\n\t\t\t// Transfer bytes from in to out\n\t byte[] buf = new byte[1024];\n\t int len = 1;\n\t while ((len = inputStream.read(buf)) > 0) {\n\t out.write(buf, 0, len);\n\t }\n\t inputStream.close();\n\t out.close();\n\t\t} catch (IOException e){\n\t\t\tif (DEBUG){\n\t\t\t\tLog.e(CLASS_NAME, \"For stream: \\\"\"+inputStream+\"\\\"; \"+e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tthrow e;\n\t\t} \n\t}", "title": "" }, { "docid": "4938d0d8feaeaeaf2ee533c607cbf5d2", "score": "0.54883724", "text": "public static void encrypt(String key, InputStream inputStream, OutputStream outputStream) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, IOException\n\t{\n\t\tdoCrypto(ENCRYPT, key, inputStream, outputStream);\n\t}", "title": "" }, { "docid": "df8e6f37d14229953e8086aacce2d4bf", "score": "0.5488215", "text": "public void write(OutputStream arg0) throws IOException {\n\n\t}", "title": "" }, { "docid": "47bfd04f9431614aedcd1704df599200", "score": "0.5468943", "text": "public static void closeStream(InputStream isInput)\r\n {\r\n try\r\n {\r\n if (isInput != null)\r\n {\r\n isInput.close();\r\n }\r\n }\r\n catch (IOException ignored)\r\n {\r\n }\r\n }", "title": "" }, { "docid": "0cdd0460c2b44c26784eb26ba89febc5", "score": "0.54222554", "text": "public static void writeZipStream(final OutputStream os, final File dir) throws IOException {\n writeZipStream(os, dir, null, null);\n }", "title": "" }, { "docid": "6a0f98cc367749c51d44ea39649ba5a8", "score": "0.54214174", "text": "public static void testOutBuf(InputStream inputStream, OutputStream outputStream) throws IOException {\n byte [] buf = new byte[inputStream.available()];\n int length;\n while ((length = inputStream.read(buf)) != -1) {\n System.out.println(\"读取到的字节数:\" + length);\n System.out.println(new String(buf, 0 ,length));\n outputStream.write(buf, 0, length);\n }\n // 最后记得关闭流\n inputStream.close();\n outputStream.close();\n }", "title": "" }, { "docid": "06d10722ab76ee52c4e1e37e0e01b3f5", "score": "0.54031384", "text": "public static void Encrypt(InputStream in, OutputStream out) throws IOException {\n CipherOutputStream cos = new CipherOutputStream(out, ecipher);\n byte[] bytes = new byte[64];\n int numBytes;\n while ((numBytes = in.read(bytes)) != -1) {\n cos.write(bytes, 0, numBytes);\n }\n\n cos.flush();\n cos.close();\n in.close();\n out.close(); \n }", "title": "" }, { "docid": "5368bf461b9e2a83cea8b98987bf1737", "score": "0.5398968", "text": "public static void pipeAndClose(InputStream istream, OutputStream ostream) throws IOException {\r\n\t\tif(ostream != null && istream != null) {\r\n\t\t\ttry {\r\n\t\t\t\t/*\r\n\t\t\t\t * This is the fastest method I know for reading from an\r\n\t\t\t\t * indeterminate stream. So fast in fact, that it pars fairly\r\n\t\t\t\t * well with FileChannel stuff in test cases.\r\n\t\t\t\t * \r\n\t\t\t\t * Small and simple enough the JIT can grab hold and optimize\r\n\t\t\t\t * it, but with a large enough buffer to not make reading slow.\r\n\t\t\t\t */\r\n\t\t\t\tfinal BufferedInputStream input = new BufferedInputStream(istream);\r\n\t\t\t\tfinal BufferedOutputStream output = new BufferedOutputStream(ostream);\r\n\t\t\t\tfinal byte[] reader = new byte[IO_BUFFER_SIZE];\r\n\t\t\t\tint r = 0;\r\n\t\t\t\twhile((r = input.read(reader, 0, IO_BUFFER_SIZE)) != -1) {\r\n\t\t\t\t\toutput.write(reader, 0, r);\r\n\t\t\t\t}\r\n\t\t\t\toutput.flush();\r\n\r\n\t\t\t\tinput.close();\r\n\t\t\t\toutput.close();\r\n\t\t\t} finally {\r\n\t\t\t\tistream.close();\r\n\t\t\t\tostream.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "831e7baf9181141352dfa36cb696d996", "score": "0.5397993", "text": "OutputStream getOutputStream();", "title": "" }, { "docid": "831e7baf9181141352dfa36cb696d996", "score": "0.5397993", "text": "OutputStream getOutputStream();", "title": "" }, { "docid": "831e7baf9181141352dfa36cb696d996", "score": "0.5397993", "text": "OutputStream getOutputStream();", "title": "" }, { "docid": "831e7baf9181141352dfa36cb696d996", "score": "0.5397993", "text": "OutputStream getOutputStream();", "title": "" }, { "docid": "93bcaedf9f516a45a2f0ed5b155581b3", "score": "0.5371914", "text": "static void bwriter (InputStream in, OutputStream out, int blocksize) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out));\n\t\tchar [] output = new char [blocksize];\n\n\t\ttry {\n\t\t\twhile (reader.ready()) {\n\t\t\t\twriter.write(reader.read());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t\twriter.close();\n\t\t\t\tin.close();\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"can not close\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e17add21fc953b4f0310e8c0d9dc0a19", "score": "0.5368325", "text": "protected abstract void write(DataOutputStream stream) throws Exception;", "title": "" }, { "docid": "76257b9e7d3fdbe815eaf5cfd8caa019", "score": "0.53643036", "text": "public static int transferData( InputStream in, OutputStream out){\n //The default EOS sign (Returned by IO systems).\n return transferData( in, out, -1 );\n }", "title": "" }, { "docid": "bbc8f99285b7cdb1ff31e67fb43801e0", "score": "0.53523004", "text": "OutputStream out(int bufferSize) throws IOException;", "title": "" }, { "docid": "871956652f14602b9b3d42e90202411c", "score": "0.5348867", "text": "public static void transfer(InputStream fromStream, OutputStream... toStreams) throws IOException {\n int bytesRead;\n byte[] buffer = new byte[BUFFER_SIZE];\n\n while ((bytesRead = fromStream.read(buffer, 0, BUFFER_SIZE)) >= 0) {\n for (OutputStream out : toStreams)\n out.write(buffer, 0, bytesRead);\n }\n\n for (OutputStream out : toStreams)\n out.flush();\n }", "title": "" }, { "docid": "2d857b57604f54f5469d63c623f9be04", "score": "0.53469414", "text": "@Override\n public int write(InputStream is, int length)\n {\n int writeLength = 0;\n\n TempBuffer tb = TempBuffer.allocate();\n byte []buffer = tb.getBuffer();\n\n try {\n while (length > 0) {\n int sublen;\n\n if (length < buffer.length)\n sublen = length;\n else\n sublen = buffer.length;\n\n sublen = is.read(buffer, 0, sublen);\n\n if (sublen < 0)\n break;\n\n write(buffer, 0, sublen);\n\n writeLength += sublen;\n length -= sublen;\n }\n\n return writeLength;\n } catch (IOException e) {\n throw new QuercusModuleException(e);\n } finally {\n TempBuffer.free(tb);\n }\n }", "title": "" }, { "docid": "02f6ac033808c09cb4c4bd9535bdaa66", "score": "0.5344694", "text": "public static long transferBytesToEndOfStream( InputStream in, OutputStream out,\r\n int closeFlags ) throws IOException\r\n {\r\n\r\n byte[] buf = new byte[ READ_BUFFER_SIZE + 1 ];\r\n\r\n long written = 0;\r\n int count;\r\n while( ( count = in.read( buf ) ) != -1 )\r\n {\r\n out.write( buf, 0, count );\r\n written += count;\r\n }\r\n if( ( closeFlags & CLOSE_IN ) != 0 )\r\n {\r\n streamClose( in );\r\n }\r\n if( ( closeFlags & CLOSE_OUT ) != 0 )\r\n {\r\n\r\n streamClose( out );\r\n }\r\n\r\n buf = null;\r\n\r\n return written;\r\n }", "title": "" }, { "docid": "eef72c410f6d847d4bc6e6da83742c53", "score": "0.5341221", "text": "private static void send(InputStream in, OutputStream out) \n throws IOException {\n int c;\n byte[] buffer = new byte[2048];\n while ((c = in.read(buffer)) > 0)\n out.write(buffer, 0, c);\n }", "title": "" }, { "docid": "5019c71cd902555c953fe2bf0fa94fff", "score": "0.53136826", "text": "public static int copy(InputStream input, OutputStream output)\n\t\t\tthrows IOException {\n\t\tlong count = copyLarge(input, output);\n\t\tif (count > Integer.MAX_VALUE) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn (int) count;\n\t}", "title": "" }, { "docid": "62b37adf99ac72c34d06ceff582788c8", "score": "0.5292865", "text": "static void bcopy (InputStream in, OutputStream out) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tPrintWriter print = new PrintWriter(out);\n\n\t\ttry {\n\t\t\twhile (reader.ready()) {\n\t\t\t\tprint.write(reader.read());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"can not close\");\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t\tprint.close();\n\t\t\t\tin.close();\n\t\t\t\tout.close();\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"can not close\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2463121e166a274bb051fc2eeed4baed", "score": "0.5283009", "text": "public static void closeStream(OutputStream osOutput)\r\n {\r\n try\r\n {\r\n if (osOutput != null)\r\n {\r\n osOutput.close();\r\n }\r\n }\r\n catch (IOException ignored)\r\n {\r\n }\r\n }", "title": "" }, { "docid": "76e782434f4cf4722fb4f062712c4eb1", "score": "0.5278014", "text": "public interface IStreamingOutput {\n void write(OutputStream os);\n}", "title": "" }, { "docid": "e0da5c505dba7ab57cbe0fa8cb49e2d9", "score": "0.5250149", "text": "void outStream(DataOutputStream os, String fileName) throws Exception {\n\t\tos.writeBytes(fileName);\n\n\t}", "title": "" }, { "docid": "128b8d27e82478604c7915bcdead8328", "score": "0.52295387", "text": "public void setOutStream(OutputStream os) throws IOException{\n mOutStream = new ObjectOutputStream(os);\n }", "title": "" }, { "docid": "f5974e0dced5efd75f3b0b13fa002911", "score": "0.5220387", "text": "public void setOutputStream( final OutputStream outputStream ) {\n this.outputStream = outputStream;\n }", "title": "" }, { "docid": "a12cf80e63fc8de58e82c5f4b2ab3293", "score": "0.52128845", "text": "private void writeToFile(InputStream uploadedInputStream,\n String uploadedFileLocation) {\n\n try {\n OutputStream out = new FileOutputStream(new File(\n uploadedFileLocation));\n int read = 0;\n byte[] bytes = new byte[1024];\n\n out = new FileOutputStream(new File(uploadedFileLocation));\n while ((read = uploadedInputStream.read(bytes)) != -1) {\n out.write(bytes, 0, read);\n }\n out.flush();\n out.close();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "b48bb8389a550da426293288140e4aa3", "score": "0.51978695", "text": "@Override\n public void writeTo(OutputStream out) throws IOException {\n try(CloseShieldOutputStream csos = new CloseShieldOutputStream(out);\n OutputStreamWriter w = new OutputStreamWriter(csos, \"UTF-8\")) {\n w.write(str);\n }\n }", "title": "" }, { "docid": "655d5ee910d1ef1eae6b85ab05ecf524", "score": "0.51943475", "text": "@Override\n public void open(OutputStream out) throws IOException\n {\n this.out = out;\n }", "title": "" }, { "docid": "728831fbdff3bb66f4b6e067feb9b223", "score": "0.513719", "text": "public void write(\n OutputStream out)\n throws IOException, CMSException\n {\n FileInputStream fIn = new FileInputStream(file);\n byte[] buf = new byte[BUF_SIZE];\n \n int count = 0;\n while ((count = fIn.read(buf)) > 0)\n {\n out.write(buf, 0, count);\n }\n \n fIn.close();\n }", "title": "" }, { "docid": "e016bab59a91e695bc760f7758125811", "score": "0.51309156", "text": "private static void copyBytes(\n JarEntry entry,\n InputStream inputStream,\n JarOutputStream outputJarStream)\n throws IOException\n {\n outputJarStream.putNextEntry(entry);\n int count;\n byte buffer[] = new byte[2048];\n while ((count = inputStream.read(buffer)) >= 0)\n {\n outputJarStream.write(buffer, 0, count);\n }\n outputJarStream.closeEntry();\n }", "title": "" }, { "docid": "fd4a04ee16cf3185e0e74cb96dc8b9cc", "score": "0.51307577", "text": "public static int copyAndCloseInputStream(java.io.InputStream r6, java.io.OutputStream r7) throws java.io.IOException {\n /*\n r1 = 0\n r4 = 0\n java.io.BufferedInputStream r2 = new java.io.BufferedInputStream // Catch:{ all -> 0x0023 }\n r2.<init>(r6) // Catch:{ all -> 0x0023 }\n r5 = 8192(0x2000, float:1.14794E-41)\n byte[] r0 = new byte[r5] // Catch:{ all -> 0x002f }\n L_0x000b:\n int r3 = r2.read(r0) // Catch:{ all -> 0x002f }\n r5 = -1\n if (r3 == r5) goto L_0x0018\n r5 = 0\n r7.write(r0, r5, r3) // Catch:{ all -> 0x002f }\n int r4 = r4 + r3\n goto L_0x000b\n L_0x0018:\n if (r2 == 0) goto L_0x001d\n r2.close()\n L_0x001d:\n if (r6 == 0) goto L_0x0022\n r6.close()\n L_0x0022:\n return r4\n L_0x0023:\n r5 = move-exception\n L_0x0024:\n if (r1 == 0) goto L_0x0029\n r1.close()\n L_0x0029:\n if (r6 == 0) goto L_0x002e\n r6.close()\n L_0x002e:\n throw r5\n L_0x002f:\n r5 = move-exception\n r1 = r2\n goto L_0x0024\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Utility.copyAndCloseInputStream(java.io.InputStream, java.io.OutputStream):int\");\n }", "title": "" }, { "docid": "5cb65e805b45658302281d75061fb765", "score": "0.51095897", "text": "private void writeToFile(InputStream uploadedInputStream, String uploadedFileLocation)\n\t{\n\t\ttry\n\t\t{\n\t\t\tOutputStream out = new FileOutputStream(new File(uploadedFileLocation));\n\t\t\t\n\t\t\tint read = 0;\n\t\t\tbyte[] bytes = new byte[1024];\n\n\t\t\tout = new FileOutputStream(new File(uploadedFileLocation));\n\t\t\twhile((read = uploadedInputStream.read(bytes)) != -1)\n\t\t\t{\n\t\t\t\tout.write(bytes, 0, read);\n\t\t\t}\n\t\t\t\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\t\t\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3814994db299ba2f710580570abc3e2b", "score": "0.5086064", "text": "public void toOutputStream(OutputStream os) {\r\n\tjava.io.PrintWriter pw = new java.io.PrintWriter(os, true);\r\n\r\n\tpw.print( objectId + \" 0 obj\" + NL );\r\n\tpw.print(\"<<\" + NL);\r\n\tpw.print(\"/Type \" + type + NL);\r\n\tpw.print(\"/Subtype \" + subType + NL);\r\n\tpw.print(\"/Name \" + name + NL);\r\n\tpw.print(\"/Width \" + width + NL);\r\n\tpw.print(\"/Height \" + height + NL);\r\n\tpw.print(\"/BitsPerComponent \" + bitsPerComponent + NL);\r\n\tpw.print(\"/ColorSpace \" + ColorSpace + NL);\r\n\tpw.print(\"/Filter \" + filter + NL);\r\n\tpw.print(\"/Predictor \" + predictor + NL);\r\n\tpw.print(\"/Length \" + imageData.length + NL);\r\n\tpw.print(\">>\" + NL);\r\n\tpw.print(\"stream\" + NL);\r\n\tpw.flush();\r\n\r\n\ttry {\r\n\t\tos.write(imageData);\r\n\t} catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n\r\n\tpw.print(\"endstream\" + NL);\r\n\tpw.print(ENDOBJ + NL);\r\n\tpw.close();\r\n\r\n}", "title": "" }, { "docid": "c1a6f9a4413e73a345b56895c851a24f", "score": "0.5085107", "text": "public static String writeStreamToFile(InputStream in, String outputFileName) throws IOException {\n File file = new File(outputFileName);\n\n // Create the parent directory.\n file.getParentFile().mkdirs();\n\n OutputStream out = new FileOutputStream(file);\n try {\n copy(in, out);\n\n // Return the URL to the output file.\n return file.toURI().toString();\n } finally {\n out.flush();\n out.close();\n }\n }", "title": "" }, { "docid": "9a59f622368fbc3db53e588676d291fb", "score": "0.5083209", "text": "public abstract void writeTo(OutputStream out)\n throws ServiceException, IOException;", "title": "" }, { "docid": "24302e17d7509f337886450671570171", "score": "0.5082551", "text": "private void writeToFile(InputStream uploadedInputStream,\r\n\t\t\tString uploadedFileLocation) {\r\n\r\n\t\ttry {\r\n\t\t\tOutputStream out = new FileOutputStream(new File(\r\n\t\t\t\t\tuploadedFileLocation));\r\n\t\t\tint read = 0;\r\n\t\t\tbyte[] bytes = new byte[1024];\r\n\r\n\t\t\tout = new FileOutputStream(new File(uploadedFileLocation));\r\n\t\t\twhile ((read = uploadedInputStream.read(bytes)) != -1) {\r\n\t\t\t\tout.write(bytes, 0, read);\r\n\t\t\t}\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "25b6687c9031842b23e91e19aff3696f", "score": "0.5070356", "text": "private void copyStream(final InputStream in, final ArchiveOutputStream out,\n final ArchiveEntry entry) throws IOException {\n out.putArchiveEntry(entry);\n IOUtils.copy(in, out);\n out.closeArchiveEntry();\n }", "title": "" }, { "docid": "f9ac8fb86e4360c4acf246bb71735ef7", "score": "0.50649524", "text": "private void copy(Reader in, Writer out) throws IOException {\n Assert.notNull(in, \"No Reader specified\");\n Assert.notNull(out, \"No Writer specified\");\n try {\n char[] buffer = new char[1024];\n int bytesRead;\n while ((bytesRead = in.read(buffer)) != -1) {\n out.write(buffer, 0, bytesRead);\n }\n out.flush();\n }\n finally {\n try {\n in.close();\n }\n catch (IOException ex) {\n logger.warn(\"Could not close Reader\", ex);\n }\n }\n }", "title": "" }, { "docid": "4cfee67caeec15713e23c37a3158df7d", "score": "0.50631833", "text": "protected static long copy(InputStream input, OutputStream output) throws IOException {\n byte[] buffer = new byte[12288]; // 12K\n long count = 0L;\n int n = 0;\n while (-1 != (n = input.read(buffer))) {\n output.write(buffer, 0, n);\n count += n;\n }\n return count;\n }", "title": "" }, { "docid": "91910269760e1dbc3c9b9d66413bf4cb", "score": "0.5052033", "text": "@SuppressWarnings( \"NestedAssignment\" )\n public void copy( RandomAccessFile input, OutputStream output,\n long start, long length, int bufferSize )\n throws IOException\n {\n byte[] buffer = new byte[ bufferSize ];\n int read;\n\n if ( input.length() == length ) {\n // Full write\n while ( ( read = input.read( buffer ) ) > 0 ) {\n output.write( buffer, 0, read );\n }\n } else {\n // Partial write\n input.seek( start );\n long toRead = length;\n\n while ( ( read = input.read( buffer ) ) > 0 ) {\n if ( ( toRead -= read ) > 0 ) {\n output.write( buffer, 0, read );\n } else {\n output.write( buffer, 0, ( int ) toRead + read );\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "35d179b36b1dd02af56d201edb7badac", "score": "0.50518364", "text": "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tfirst.write(out);\n\t\tsecond.write(out);\n\t}", "title": "" }, { "docid": "b07838e31790d0014753c5a7661c37da", "score": "0.5047862", "text": "public void write(DataOutput output) throws IOException;", "title": "" }, { "docid": "e7bd12798b3c40d847eebbd9a61be2c9", "score": "0.5040154", "text": "public void closeOpenedStream() {\n\t\ttry {\n\t\t\tif (bw != null) {\n\t\t\t\tbw.close();\n\t\t\t}\n\t\t\tif (osw != null)\n\t\t\t\tosw.close();\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t} catch (Exception e) {\n\t\t\tLog.d(LOG_TAG, e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "ec27e3384627838ed11a423125206d1b", "score": "0.50355566", "text": "public void copyFile(InputStream in, OutputStream out) throws IOException {\n byte[] buffer = new byte[1024];\n int read = -1;\n while((read = in.read(buffer)) != -1){\n out.write(buffer, 0, read);\n }\n out.flush();\n }", "title": "" } ]
9e2820b9039639b21a8e98702a173190
Returns the value of the 'Integer32' containment reference. If the meaning of the 'Integer32' containment reference isn't clear, there really should be more of a description here...
[ { "docid": "28186e4c45b542f2bc910dbf5bea578b", "score": "0.6700298", "text": "TDataTypes getInteger32();", "title": "" } ]
[ { "docid": "8f050d782940839439569ed2d6493c83", "score": "0.6552441", "text": "public com.google.protobuf.Int32Value getInt32Value1() {\n return int32Value1_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : int32Value1_;\n }", "title": "" }, { "docid": "5b9a4bcb5aea5d1407fbd8ae45f6f1de", "score": "0.6293104", "text": "int getUint32();", "title": "" }, { "docid": "843c6fbb00458e24421247db51800be0", "score": "0.62465644", "text": "public com.google.protobuf.Int32ValueOrBuilder getInt32Value1OrBuilder() {\n return getInt32Value1();\n }", "title": "" }, { "docid": "615041a726cfdfd1a8cffb8476f96a8e", "score": "0.6215634", "text": "int getInt32();", "title": "" }, { "docid": "e95d8739f39a0f34565ea07e8155cb9b", "score": "0.62133694", "text": "int getFixed32();", "title": "" }, { "docid": "e57d0de88c1c77be39b97ab6f272ffdc", "score": "0.61916167", "text": "public com.google.protobuf.Int32Value getInt32Value1() {\n if (int32Value1Builder_ == null) {\n return int32Value1_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : int32Value1_;\n } else {\n return int32Value1Builder_.getMessage();\n }\n }", "title": "" }, { "docid": "5a534c88671e4e4878252d59d8cb7106", "score": "0.608862", "text": "public com.google.protobuf.Int32ValueOrBuilder getInt32Value1OrBuilder() {\n if (int32Value1Builder_ != null) {\n return int32Value1Builder_.getMessageOrBuilder();\n } else {\n return int32Value1_ == null ?\n com.google.protobuf.Int32Value.getDefaultInstance() : int32Value1_;\n }\n }", "title": "" }, { "docid": "a41797f593bd32d1de58741500f37c6e", "score": "0.6013281", "text": "public AgentXInt32(long value)\n {\n if ((value < Integer.MIN_VALUE) || (value > Integer.MAX_VALUE))\n {\n throw new IllegalArgumentException(\"Unable to parse Int32, the supplied integer is outside of the INT32 bounds\");\n }\n myValue = (int)value;\n }", "title": "" }, { "docid": "753a777684faa000bfd00d4d7fcf8750", "score": "0.59984773", "text": "public boolean hasInt32Value1() {\n return int32Value1_ != null;\n }", "title": "" }, { "docid": "1824cbf5e3388d63335c36a93ec2f4a9", "score": "0.5913639", "text": "public com.google.protobuf.Int32Value getInt32Value2() {\n return int32Value2_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : int32Value2_;\n }", "title": "" }, { "docid": "bfa15bde059f5dddf9d53b1d7228cfde", "score": "0.5908779", "text": "int readInt32();", "title": "" }, { "docid": "e8fbd28f8c271a7de007506dd41e256b", "score": "0.5895039", "text": "TDataTypes getUnsigned32();", "title": "" }, { "docid": "8a504fa9247027daa626045b91275573", "score": "0.5818242", "text": "public Long getValueInteger()\n {\n canReadProperty();\n return m_nValueInteger;\n }", "title": "" }, { "docid": "81610971e96121bd68c9c8bada8105aa", "score": "0.5724102", "text": "public final UnsignedInteger32 getUnsignedInteger32(final Argument arg) {\n UnsignedInteger32 value = null;\n if (arg.getValue() != null) {\n value = new UnsignedInteger32((String) arg.getValue());\n }\n return value;\n }", "title": "" }, { "docid": "43a023a8fac042f12d03864426aa8a31", "score": "0.5712575", "text": "boolean hasInt32();", "title": "" }, { "docid": "496d43a362ad7a8b33bb03416350d19b", "score": "0.5701414", "text": "int getSint32();", "title": "" }, { "docid": "539f308e3d60d3a8850f987be84f2c3d", "score": "0.56965506", "text": "@Override\n public Integer getInteger() {\n return (Integer) DataType.INTEGER.getValueIfType(this.getObject());\n }", "title": "" }, { "docid": "e99778c7d6f5e903f6f5f16efac206a9", "score": "0.5639748", "text": "public YangInt32(Number value) throws YangException {\n super(value.intValue());\n setMinMax(Integer.MIN_VALUE, Integer.MAX_VALUE);\n if (!(value instanceof Integer)) {\n YangException.throwException(!valid(value), this);\n }\n }", "title": "" }, { "docid": "26ecb5e88a52a0ffdc36a77d37b88fb0", "score": "0.56043506", "text": "public Integer getIntegerValue() {\r\n\t\treturn _value;\r\n\t}", "title": "" }, { "docid": "57de265d7691262d4764f6cd4a4e19d0", "score": "0.5578002", "text": "public int intValue() {\n/* 182 */ return (int)this.value;\n/* */ }", "title": "" }, { "docid": "ac8e76aee5d283d712c0997175bfe912", "score": "0.5567871", "text": "public com.google.protobuf.Int32ValueOrBuilder getInt32Value2OrBuilder() {\n return getInt32Value2();\n }", "title": "" }, { "docid": "ceb02e60880456e9fc0c7a27d8da0a56", "score": "0.55604863", "text": "public Integer getIntegerValue() {\n\t\t\n\t\treturn this.integerValue;\n\t}", "title": "" }, { "docid": "fd86a45862cd7dc271b5ff1443267151", "score": "0.55581903", "text": "public int getIntValue() {\n if (valueCase_ == 3) {\n return (java.lang.Integer) value_;\n }\n return 0;\n }", "title": "" }, { "docid": "a2fbdfb1642173eb47b23b567bdf1dc5", "score": "0.5546986", "text": "public int getIntValue() {\n if (valueCase_ == 3) {\n return (java.lang.Integer) value_;\n }\n return 0;\n }", "title": "" }, { "docid": "bc1cb18dd95e14054821d905fe277a0a", "score": "0.55463755", "text": "public com.google.protobuf.Int32Value getInt32Value2() {\n if (int32Value2Builder_ == null) {\n return int32Value2_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : int32Value2_;\n } else {\n return int32Value2Builder_.getMessage();\n }\n }", "title": "" }, { "docid": "0329b7c38ad40408ecca06311ddd87f4", "score": "0.5544196", "text": "public boolean hasInt32Value1() {\n return int32Value1Builder_ != null || int32Value1_ != null;\n }", "title": "" }, { "docid": "5fbcb7d709dfa32b1e91a28b6e3d5377", "score": "0.55215764", "text": "@Override\n public IHDF5IntWriter int32();", "title": "" }, { "docid": "1924b5d75134ee019636ba8659925504", "score": "0.5490547", "text": "public int getInteger() throws ValueException;", "title": "" }, { "docid": "2d6a68e9208efbc86506426e2e590b76", "score": "0.5480955", "text": "public EIntegerObjectElements getEIntegerObjectAccess() {\n\t\treturn (pEIntegerObject != null) ? pEIntegerObject : (pEIntegerObject = new EIntegerObjectElements());\n\t}", "title": "" }, { "docid": "75b3c43a6f06fa5608a80af058a1cad7", "score": "0.5477626", "text": "public Integer getValue () { return value; }", "title": "" }, { "docid": "90f9707653a2a46e7280c1a02655faee", "score": "0.5463087", "text": "public int intValue()\n {\n return number.intValue();\n }", "title": "" }, { "docid": "58834e3feedf4360ad0382d8f44c2e95", "score": "0.54475653", "text": "public Long getInteger(Object object) throws KettleValueException;", "title": "" }, { "docid": "93de3010b3017c6e283b8352c6c3e623", "score": "0.5444174", "text": "public int intValue() {\n return (int) longValue();\n }", "title": "" }, { "docid": "35983ddb19c5d6d6db9fe73186790784", "score": "0.5429164", "text": "public final void rule__Int32__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRos.g:15244:1: ( ( 'int32' ) )\n // InternalRos.g:15245:1: ( 'int32' )\n {\n // InternalRos.g:15245:1: ( 'int32' )\n // InternalRos.g:15246:2: 'int32'\n {\n before(grammarAccess.getInt32Access().getInt32Keyword_1()); \n match(input,99,FOLLOW_2); \n after(grammarAccess.getInt32Access().getInt32Keyword_1()); \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": "d3304c45be7c78a04b866da826253fba", "score": "0.5423239", "text": "@Override\n public IHDF5IntWriter uint32();", "title": "" }, { "docid": "bbc5f508ef71dd5345635cc0c654d5c9", "score": "0.54216546", "text": "int getSfixed32();", "title": "" }, { "docid": "c7d2ae53ced279e772cc29e64dd5e77c", "score": "0.54177463", "text": "public int getIntegerValue() {\n/* 234 */ return this.value;\n/* */ }", "title": "" }, { "docid": "ada71037161e570fb28aaf30432ca12e", "score": "0.54135174", "text": "public abstract Integer value();", "title": "" }, { "docid": "ca1fde5d867149e1cf35eab67c019628", "score": "0.5410704", "text": "public com.google.protobuf.Int32ValueOrBuilder getInt32Value2OrBuilder() {\n if (int32Value2Builder_ != null) {\n return int32Value2Builder_.getMessageOrBuilder();\n } else {\n return int32Value2_ == null ?\n com.google.protobuf.Int32Value.getDefaultInstance() : int32Value2_;\n }\n }", "title": "" }, { "docid": "9c3956ebc200dda158c5de78da6e09c6", "score": "0.5409739", "text": "public CINTEGER getCintegerfield()\n {\n return cintegerfield;\n }", "title": "" }, { "docid": "a4dff2cde7d561ba0a58c51f5453a26c", "score": "0.54088074", "text": "public long getI() {\n if (valueCase_ == 3) {\n return (java.lang.Long) value_;\n }\n return 0L;\n }", "title": "" }, { "docid": "987d1665b85a39bf54297e5e96d0cef3", "score": "0.5404637", "text": "public long getI() {\n if (valueCase_ == 3) {\n return (java.lang.Long) value_;\n }\n return 0L;\n }", "title": "" }, { "docid": "60855f1513699f03a5d6b187a77af252", "score": "0.54009295", "text": "public boolean hasInt32Value2() {\n return int32Value2_ != null;\n }", "title": "" }, { "docid": "b90eb15389071fc3b4cd69072bba5f0b", "score": "0.53677076", "text": "private void validate32BitValue(int value) throws NativeException {\n }", "title": "" }, { "docid": "cd819e5bdbc79d6af7594ba0563e51e7", "score": "0.53505164", "text": "static int readVarInt32(final ByteBuf buf) {\n int result = buf.readByte();\n if (result >= 0) {\n return result;\n }\n result &= 0x7F;\n result |= buf.readByte() << 7;\n if (result >= 0) {\n return result;\n }\n result &= 0x3FFF;\n result |= buf.readByte() << 14;\n if (result >= 0) {\n return result;\n }\n result &= 0x1FFFFF;\n result |= buf.readByte() << 21;\n if (result >= 0) {\n return result;\n }\n result &= 0x0FFFFFFF;\n final byte b = buf.readByte();\n result |= b << 28;\n if (b >= 0) {\n return result;\n }\n throw new IllegalArgumentException(\"Not a 32 bit varint: \" + result +\n \" (5th byte: \" + b + \")\");\n }", "title": "" }, { "docid": "921babc8e66a2e5f79ab312a03ad9ae6", "score": "0.53381884", "text": "public abstract void set32(int offset, int value);", "title": "" }, { "docid": "b6d87f83220b6ffdf4084f31ce67377f", "score": "0.5318719", "text": "final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "title": "" }, { "docid": "8d615316d5be899328cf449ed02c5330", "score": "0.53085476", "text": "long readUint32();", "title": "" }, { "docid": "aa1c23be1407c2fbd86ab5fc2caa1734", "score": "0.53081816", "text": "public long getValue() {\n\t\treturn (((long) this.crc) & 0xFFFFL);\n\t}", "title": "" }, { "docid": "92b77c180b9ab08972ae0c5b5812b132", "score": "0.52946335", "text": "public int getUint32Groupcode() {\n return uint32Groupcode_;\n }", "title": "" }, { "docid": "06afdb3c752e9aa12a2d24a4443c8c54", "score": "0.5288654", "text": "public Long getValueObject() {\n\t\treturn (Long) getValue();\n\t}", "title": "" }, { "docid": "807669de20d2c573b4a0f6ef20d69983", "score": "0.5270653", "text": "int getValueAsInt();", "title": "" }, { "docid": "807669de20d2c573b4a0f6ef20d69983", "score": "0.5270653", "text": "int getValueAsInt();", "title": "" }, { "docid": "8253cc1612e1f21b1f86cc6f192ea28a", "score": "0.52698964", "text": "public Integer value() {\n return this.value;\n }", "title": "" }, { "docid": "8253cc1612e1f21b1f86cc6f192ea28a", "score": "0.52698964", "text": "public Integer value() {\n return this.value;\n }", "title": "" }, { "docid": "2b8531dc221be2d7e37f7a97585c2fde", "score": "0.52562153", "text": "public Integer toInteger()\r\n/* */ {\r\n/* 272 */ return Integer.valueOf(this.value);\r\n/* */ }", "title": "" }, { "docid": "81158bf6ecc9d732295ab8711b2269ba", "score": "0.52501655", "text": "public int getUint32Groupcode() {\n return uint32Groupcode_;\n }", "title": "" }, { "docid": "0b21424d21e3336d47948bebedaa7472", "score": "0.5246576", "text": "public int getReference() {\n\t\treturn m_Reference;\n\t}", "title": "" }, { "docid": "346d19daf29bc0528520929ed23c5eed", "score": "0.5242962", "text": "public ModInteger getValue() {\n return new ModInteger(value);\n }", "title": "" }, { "docid": "643341300cb1a5820ff4abe21ac8ef19", "score": "0.5233119", "text": "int getUint32Groupcode();", "title": "" }, { "docid": "3a1e6c3df5a6bf2eeddb9ac5bd36e020", "score": "0.5220975", "text": "public Integer getValue() {\r\n return value;\r\n }", "title": "" }, { "docid": "cfe1990ece963966d2184dbe9e670505", "score": "0.52170354", "text": "public Integer getValue() {\n\treturn value;\n }", "title": "" }, { "docid": "ab7d74b51066e77e9a7d25300ad75d37", "score": "0.52103853", "text": "@Override\n public int intValue() {\n return (int)longValue();\n }", "title": "" }, { "docid": "7ea856034ab40bca5f554854a5cb2432", "score": "0.5207675", "text": "public void pop32() {\n assert (top > 0);\n if (isTypeDst32at(0)) {\n _pop();\n if (logTrace) {\n trace(\"POP 32: stack: \", this);\n }\n } else {\n handler.onStackTypeMismatch();\n }\n }", "title": "" }, { "docid": "e62f7b66d73dd78ba504454a38740576", "score": "0.5203153", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> \n getInt32Value1FieldBuilder() {\n if (int32Value1Builder_ == null) {\n int32Value1Builder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(\n getInt32Value1(),\n getParentForChildren(),\n isClean());\n int32Value1_ = null;\n }\n return int32Value1Builder_;\n }", "title": "" }, { "docid": "8783ce17057fa85033cc2576f7873b68", "score": "0.5200426", "text": "public int getReference() {\n return m_Reference;\n }", "title": "" }, { "docid": "6f2ec078f831b73d55d83962ad55efcf", "score": "0.51997626", "text": "public int getInt() {\n\t\treturn ((Integer) mValue).intValue();\n\t}", "title": "" }, { "docid": "c5e22f8d60893a95cfe197de2e18ed6f", "score": "0.51932526", "text": "public int UnpackInt()\r\n {\r\n return Helpers.BytesToInt32L(UnpackBitsArray(32), 0);\r\n }", "title": "" }, { "docid": "ee878881eade938c7eefda5377a0f5ba", "score": "0.5182043", "text": "public int getIntValue(){\n return _intValue;\n }", "title": "" }, { "docid": "1b12a02d089b333ee4d046c7137a0171", "score": "0.51700824", "text": "public SIGNEDINTElements getSIGNEDINTAccess() {\n\t\treturn pSIGNEDINT;\n\t}", "title": "" }, { "docid": "12342fa72f4bf793ecdb3bd3e9bb6abe", "score": "0.5166416", "text": "public Class getObjClass()\n\t{ return Integer.class; }", "title": "" }, { "docid": "fedb595c68438b2e6878ce9a23e7d4bf", "score": "0.51629907", "text": "public Integer getValue() {\n return value;\n }", "title": "" }, { "docid": "3c2245358dfb2999fe207e497981d163", "score": "0.51416385", "text": "interface NestedInteger {\n // @return true if this NestedInteger holds a single integer, rather than a nested list.\n public boolean isInteger();\n\n // @return the single integer that this NestedInteger holds, if it holds a single integer\n // Return null if this NestedInteger holds a nested list\n public Integer getInteger();\n\n // @return the nested list that this NestedInteger holds, if it holds a nested list\n // Return null if this NestedInteger holds a single integer\n public List<NestedInteger> getList();\n }", "title": "" }, { "docid": "ba296290e1d96675882a68ba300143ba", "score": "0.5141372", "text": "@Override\n\tpublic LogicValue constantInteger(long value) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c60a9088c179edc3504e0afcb8122638", "score": "0.5138004", "text": "public int intValue()\r\n/* */ {\r\n/* 251 */ return this.value;\r\n/* */ }", "title": "" }, { "docid": "99c86022adbbccd93e288161354d8b47", "score": "0.5127376", "text": "public int getValue();", "title": "" }, { "docid": "85f0c46dfe2a6a82805821aad018106c", "score": "0.5123984", "text": "public int toInteger() {\n return values.indexOf(this);\n }", "title": "" }, { "docid": "ca87b541ff3395b2c3e026d3e8a3cca3", "score": "0.5116918", "text": "public boolean getState32() {\n return state32_;\n }", "title": "" }, { "docid": "a4db49fa32cc13c061a53d662b3e6c93", "score": "0.51157176", "text": "private int contentHashCode()\r\n/* 351: */ {\r\n/* 352:570 */ return ObjectUtils.nullSafeHashCode(this.value) * 29 + ObjectUtils.nullSafeHashCode(this.type);\r\n/* 353: */ }", "title": "" }, { "docid": "c9e3bfebd4bf5870df300ff7491d19f0", "score": "0.51116246", "text": "public Long getValueObjectID()\n {\n canReadProperty();\n return m_nValueObjectID;\n }", "title": "" }, { "docid": "eb88388562c8a8280362d37534fe2575", "score": "0.51033014", "text": "public Long getInteger(int key) {\n PebbleTuple tuple = getTuple(key, PebbleTuple.TupleType.INT);\n if (tuple == null) {\n return null;\n }\n return (Long) tuple.value;\n }", "title": "" }, { "docid": "f23fc1cdfd8a126d28dd560999ebd313", "score": "0.5096781", "text": "public String getUdfValue32() {\n\treturn null;\n}", "title": "" }, { "docid": "b2897d915026c9f77bdc61106bebd51c", "score": "0.5096596", "text": "int getRefTypeValue();", "title": "" }, { "docid": "fa1a1d78b3d95bd90790212d8986a804", "score": "0.50931406", "text": "public Integer getL7()\n/* 238: */ {\n/* 239:207 */ return this.l7;\n/* 240: */ }", "title": "" }, { "docid": "89a656f19fbcdb638df6bf26b6178580", "score": "0.50879925", "text": "public Integer getL8()\n/* 248: */ {\n/* 249:215 */ return this.l8;\n/* 250: */ }", "title": "" }, { "docid": "d3f31c62bd1c56929f2e2de3bc785409", "score": "0.50850314", "text": "static Double ToInt32(Object arg) {\n\t\tDouble number = ToNumber(arg);\n\t\tif (number.isNaN() || number.isInfinite() || number == 0.0) {\n\t\t\treturn 0.0;\n\t\t}\n\n\t\tDouble posInt = ToInteger(number);\n\n\t\t// here we have to use BigInteger, because posInt could easily be waaay out of range for int\n\t\t// and the spec specifies how to handle that case\n\t\tBigInteger posIntBig = new BigInteger(PLAIN_INTEGER_FORMAT.format(posInt));\n\t\tBigInteger int32bit = posIntBig.mod(UINT_MAX_VALUE);\n\n\t\tif (int32bit.compareTo(SINT_MAX_VALUE) >= 0) {\n\t\t\treturn int32bit.subtract(UINT_MAX_VALUE).doubleValue();\n\t\t}\n\t\treturn int32bit.doubleValue();\n\t}", "title": "" }, { "docid": "423a0fc6d97cc92909eba20fe5fa6c99", "score": "0.50693035", "text": "public int getPrimitiveType() {\n return nodeKind;\n }", "title": "" }, { "docid": "07d52f9e3e5d9879f249cea4a351a360", "score": "0.5061224", "text": "public Integer readInt() throws IOException\n {\n final BerValue v = readBerValue( INTEGER );\n if ( v == null )\n {\n return null;\n }\n if ( v.id.isConstructed() )\n {\n throw new IOException( \"Invalid INTEGER encoding; should be primitive!\" );\n }\n return convertToInteger( v.content );\n }", "title": "" }, { "docid": "ad8bfc673832047b862db48460aec4f2", "score": "0.5057513", "text": "public IntBound get(LirNode e) {\n return (IntBound)boundTableUW.get(e);\n }", "title": "" }, { "docid": "3771f4c29959638b4c002c76c73943a2", "score": "0.5052783", "text": "abstract int intValue();", "title": "" }, { "docid": "ee91e973430a4dd5d0a35d4a10539525", "score": "0.5038521", "text": "public abstract void write32(int value);", "title": "" }, { "docid": "7d44c2982dbadfd626098cb16156e291", "score": "0.5038355", "text": "public Integer getL3()\n/* 198: */ {\n/* 199:175 */ return this.l3;\n/* 200: */ }", "title": "" }, { "docid": "f2d4df8f6ea5017b0075edc4a06cf43c", "score": "0.50362796", "text": "boolean hasFixed32();", "title": "" }, { "docid": "0b20a8b0ab92f62cacb9081637671cfd", "score": "0.50361603", "text": "public boolean getState32() {\n return state32_;\n }", "title": "" }, { "docid": "52a3a2c8713c6ef82137122065575d3d", "score": "0.5035885", "text": "public Number getCurrentAccessibleValue() {\n return Integer.valueOf(getValue());\n }", "title": "" }, { "docid": "32276b1f7a93136ba62dcda4443bf5cc", "score": "0.50355613", "text": "TDataTypes getInteger48();", "title": "" }, { "docid": "97a4917a6396df6ac935ab7f5c6ce751", "score": "0.5032199", "text": "public int value() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "19aaea99e7330d206a2a7720ddc94d05", "score": "0.5030096", "text": "public int intVal() {\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\n\t\t}", "title": "" }, { "docid": "521ee6ba97e367e77783b12ec906c017", "score": "0.50277865", "text": "public int getNativeValue() { return nativeValue; }", "title": "" }, { "docid": "521ee6ba97e367e77783b12ec906c017", "score": "0.50277865", "text": "public int getNativeValue() { return nativeValue; }", "title": "" } ]
a0b0d0d974f3498bb9175c417d65eb6d
Tests standard case, and case insensitivity
[ { "docid": "f7f28dd1255d9e0d7aea0a3444a09fd2", "score": "0.0", "text": "@Test\n public void testOWinsCol3() {\n TicTacToeBoard board = new TicTacToeBoard(\"xxoexo.uo\");\n assertEquals(Evaluation.Owins, board.evaluate());\n }", "title": "" } ]
[ { "docid": "501325ecbd0c173c3837ac8709e362bd", "score": "0.7557136", "text": "boolean isCaseSensitive();", "title": "" }, { "docid": "c2ccb8139bb48416b0452d5eda9b16b5", "score": "0.7528215", "text": "boolean isIgnoreCase();", "title": "" }, { "docid": "3a83355a4a2e1c4c02d925c578aef137", "score": "0.74423033", "text": "public boolean isCaseSensitive();", "title": "" }, { "docid": "4c8b19ac3407edd49ef2e29159a3f436", "score": "0.71624506", "text": "boolean getIgnoreCase();", "title": "" }, { "docid": "0f4df891e52431e2d6125df7356fa028", "score": "0.6986397", "text": "@Test(groups = \"unit\")\n public void upper_lisp_case_to_lower_camel_case() {\n test(\n NamingConventions.UPPER_LISP_CASE,\n NamingConventions.LOWER_CAMEL_CASE,\n \"MY-XML-PARSER\",\n \"myXmlParser\");\n }", "title": "" }, { "docid": "5ae9ce9a57ae591310e045c8e0f54933", "score": "0.6938618", "text": "@Test(groups = \"unit\")\n public void lower_lisp_case_to_lower_camel_case() {\n test(\n NamingConventions.LOWER_LISP_CASE,\n NamingConventions.LOWER_CAMEL_CASE,\n \"my-xml-parser\",\n \"myXmlParser\");\n }", "title": "" }, { "docid": "95b4c666d0572656d44c9f549ed4d5eb", "score": "0.6865511", "text": "@Test(groups = \"unit\")\n public void upper_snake_case_to_lower_camel_case() {\n test(\n NamingConventions.UPPER_SNAKE_CASE,\n NamingConventions.LOWER_CAMEL_CASE,\n \"MY_XML_PARSER\",\n \"myXmlParser\");\n }", "title": "" }, { "docid": "81702f18fe8d14e5d43b5ee6f1d575d8", "score": "0.6839645", "text": "@Test\n public void containsWordIgnoreCase_validInputs_correctResult() {\n\n // Empty sentence\n assertFalse(StringUtil.containsWordIgnoreCase(\"\", \"abc\")); // Boundary case\n assertFalse(StringUtil.containsWordIgnoreCase(\" \", \"123\"));\n\n // Matches a partial word only\n assertFalse(StringUtil.containsWordIgnoreCase(\"aaa bbb ccc\", \"bb\")); // Sentence word bigger than query word\n assertFalse(StringUtil.containsWordIgnoreCase(\"aaa bbb ccc\", \"bbbb\")); // Query word bigger than sentence word\n\n // Matches word in the sentence, different upper/lower case letters\n assertTrue(StringUtil.containsWordIgnoreCase(\"aaa bBb ccc\", \"Bbb\")); // First word (boundary case)\n assertTrue(StringUtil.containsWordIgnoreCase(\"aaa bBb ccc@1\", \"CCc@1\")); // Last word (boundary case)\n assertTrue(StringUtil.containsWordIgnoreCase(\" AAA bBb ccc \", \"aaa\")); // Sentence has extra spaces\n assertTrue(StringUtil.containsWordIgnoreCase(\"Aaa\", \"aaa\")); // Only one word in sentence (boundary case)\n assertTrue(StringUtil.containsWordIgnoreCase(\"aaa bbb ccc\", \" ccc \")); // Leading/trailing spaces\n\n // Matches multiple words in sentence\n assertTrue(StringUtil.containsWordIgnoreCase(\"AAA bBb ccc bbb\", \"bbB\"));\n }", "title": "" }, { "docid": "4a0b7359cad2442283837232b7fa9caa", "score": "0.67988616", "text": "@Test\r\n\tpublic void testEqualsIgnoreCase01() throws Exception {\r\n\r\n\t\tthis.compareFragmentCodeGeneration(\"sltest/string\", \"equalsIgnoreCase01\");\r\n\t}", "title": "" }, { "docid": "883472fe2839a409ab181e742b1580a8", "score": "0.67884624", "text": "@Test(groups = \"unit\")\n public void lower_snake_case_to_lower_camel_case() {\n test(\n NamingConventions.LOWER_SNAKE_CASE,\n NamingConventions.LOWER_CAMEL_CASE,\n \"my_xml_parser\",\n \"myXmlParser\");\n }", "title": "" }, { "docid": "567a0afb1372f65c72d4fa664515fe39", "score": "0.6784889", "text": "@Test(groups = \"unit\")\n public void upper_camel_case_to_lower_camel_case() {\n test(\n NamingConventions.UPPER_CAMEL_CASE,\n NamingConventions.LOWER_CAMEL_CASE,\n \"MyXmlParser\",\n \"myXmlParser\");\n }", "title": "" }, { "docid": "5101bbe914b53c11a968179f4ecc749b", "score": "0.67686576", "text": "private static boolean containsIgnoreCase(WebDriverWrapper driverWrapper, String actualValue, String inputValue) {\r\n \t\tlog.entry();\r\n \t\ttry {\r\n\t\t\tString actualValueLowerCase = actualValue.toLowerCase().replaceAll(\"[^\\\\w\\\\d]\", \"\");\r\n\t\t\tString inputValueLowerCase = inputValue.toLowerCase().replaceAll(\"[^\\\\w\\\\d]\", \"\");\r\n\t\t\t\r\n\t\t\tif(inputValueLowerCase.contains(actualValueLowerCase)) {\r\n\t\t\t\tlog.info(\"{} matches the expected {} value.\", actualValueLowerCase, inputValueLowerCase);\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\"{} value is NOT equal to the expected {} value.\", actualValueLowerCase, inputValueLowerCase);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(\"Unable to verify text: \", e);\r\n\t\t}\r\n \t\treturn false;\r\n \t}", "title": "" }, { "docid": "094fa77f3a719b5b642c26097bc13c59", "score": "0.6757054", "text": "public boolean equalsIgnoreCase(String s)\n/* */ {\n/* 603 */ byte[] b = this.buff;\n/* 604 */ int len = this.end - this.start;\n/* 605 */ if ((b == null) || (len != s.length())) {\n/* 606 */ return false;\n/* */ }\n/* 608 */ int off = this.start;\n/* 609 */ for (int i = 0; i < len; i++) {\n/* 610 */ if (Ascii.toLower(b[(off++)]) != Ascii.toLower(s.charAt(i))) {\n/* 611 */ return false;\n/* */ }\n/* */ }\n/* 614 */ return true;\n/* */ }", "title": "" }, { "docid": "3f2a143ec67d91b5905cd2e49b8c0603", "score": "0.6708592", "text": "@Test(groups = \"unit\")\n public void lower_camel_case_to_upper_camel_case() {\n test(\n NamingConventions.LOWER_CAMEL_CASE,\n NamingConventions.UPPER_CAMEL_CASE,\n \"myXmlParser\",\n \"MyXmlParser\");\n }", "title": "" }, { "docid": "00225dd7512895e0e53cf4a43b7f2d71", "score": "0.6702874", "text": "public static void main(String[] args) {\r\n\t\t\r\n\t\tString st1= \"Hrithik Roshan\";\r\n\t\tString st3= \"HRITHIKROSHAN\";\r\n\t\tString st2= \"hriThik rOshAn\";\r\n\t\tSystem.out.println(st1.compareTo(st2));\r\n\t\tSystem.out.println(st1.compareToIgnoreCase(st2));\r\n\t\tSystem.out.println(st1.equals(st2));\r\n\t\tSystem.out.println(st1.equalsIgnoreCase(st2));\r\n\t\t\r\n\t\tString patt = \"[A-Z]{1,}\";\r\n\t\tSystem.out.println(\"******************\");\r\n\t\tSystem.out.println(st3.matches(patt));\r\n\t\tSystem.out.println(st1.matches(patt));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e552f2fbcf142cad948683b25446dfb5", "score": "0.66836655", "text": "public boolean isIgnoreCase() {\n return ignorecase.booleanValue();\n }", "title": "" }, { "docid": "c7a88b194a4ef531b92fb85c5e149442", "score": "0.66813785", "text": "public static void main(String[] args) {\n\n String str1 = \"Hello\";\n\n System.out.println(\"is Hello same as Hello \" + str1.equalsIgnoreCase(\"Hello\"));\n System.out.println(\"is Hello same as Hello \" + str1.equalsIgnoreCase(\"hello\"));\n\n\n\n\n }", "title": "" }, { "docid": "90a9cb1dc6a8859c234d962ee9a0f52f", "score": "0.66127425", "text": "public static void main(String[] args) {\n String you=\"tarik\";\n String me=\"aysegul\";\n System.out.println(you.equalsIgnoreCase(\"Tarik\"));// true because its ignore case\n // but string equals da bu onemliydi\n }", "title": "" }, { "docid": "03c57c679296185a3bbf0a4b455becfc", "score": "0.6585272", "text": "@Test\n void testCamelCase() {\n assertEquals(\"id\", CaseUtils.toCamelCase(\"ID\", false));\n assertEquals(\"my_column\", CaseUtils.toCamelCase(\"MY_COLUMN\", false));\n assertEquals(\"my-column\", CaseUtils.toCamelCase(\"MY-COLUMN\", false));\n assertEquals(\"myColumn\", CaseUtils.toCamelCase(\"MY_COLUMN\", false, '_'));\n assertEquals(\"myColumn\", CaseUtils.toCamelCase(\"MY-COLUMN\", false, '-'));\n assertEquals(\"myColumnTestAt\", CaseUtils.toCamelCase(\"MY_COLUMN-TEST_AT\", false, '_', '-'));\n }", "title": "" }, { "docid": "497ecabb3a581acc10fa34bb5a80adef", "score": "0.6570531", "text": "@Test\n public void givenCharactershouldReturnLowercase() {\n String result = character.findCharacter('a');\n //Assert\n assertEquals(\"Lower case\", result);\n }", "title": "" }, { "docid": "f1d58a646ce7880f55ef6c79bb0b4fbe", "score": "0.65603733", "text": "public boolean isCaseSensitive() {\n return caseSensitive;\n }", "title": "" }, { "docid": "68c4570f85f00615902f2e3343d159d6", "score": "0.6508481", "text": "public StringTransformer caseInsensitive() {\n return caseInsensitive(Locale.getDefault());\n }", "title": "" }, { "docid": "e1b76b62af790745e15b348c0d4230ed", "score": "0.64633054", "text": "@org.junit.Test\r\n public void testIsUpperCaseWithString() {\r\n String param0 = null;\r\n boolean booleanResult = TextUtils.isUpperCase(param0);\r\n \r\n // Add assertions\r\n \r\n }", "title": "" }, { "docid": "9fd36850dce0f19fea27ec7a0aadd47d", "score": "0.6425411", "text": "@Test\n public void inputIsALowerCaseLetters() {\n\n \n }", "title": "" }, { "docid": "d9f529a80c38026f80ca44324f2a0d9e", "score": "0.64021266", "text": "public static boolean equalsIgnoreCase(CharSequence name1, CharSequence name2)\r\n/* 582: */ {\r\n/* 583:1301 */ if (name1 == name2) {\r\n/* 584:1302 */ return true;\r\n/* 585: */ }\r\n/* 586:1305 */ if ((name1 == null) || (name2 == null)) {\r\n/* 587:1306 */ return false;\r\n/* 588: */ }\r\n/* 589:1309 */ int nameLen = name1.length();\r\n/* 590:1310 */ if (nameLen != name2.length()) {\r\n/* 591:1311 */ return false;\r\n/* 592: */ }\r\n/* 593:1314 */ for (int i = nameLen - 1; i >= 0; i--)\r\n/* 594: */ {\r\n/* 595:1315 */ char c1 = name1.charAt(i);\r\n/* 596:1316 */ char c2 = name2.charAt(i);\r\n/* 597:1317 */ if (c1 != c2)\r\n/* 598: */ {\r\n/* 599:1318 */ if ((c1 >= 'A') && (c1 <= 'Z')) {\r\n/* 600:1319 */ c1 = (char)(c1 + ' ');\r\n/* 601: */ }\r\n/* 602:1321 */ if ((c2 >= 'A') && (c2 <= 'Z')) {\r\n/* 603:1322 */ c2 = (char)(c2 + ' ');\r\n/* 604: */ }\r\n/* 605:1324 */ if (c1 != c2) {\r\n/* 606:1325 */ return false;\r\n/* 607: */ }\r\n/* 608: */ }\r\n/* 609: */ }\r\n/* 610:1329 */ return true;\r\n/* 611: */ }", "title": "" }, { "docid": "60b5eacf2f03656adf2947ceef947310", "score": "0.63920903", "text": "boolean hasCaseurl();", "title": "" }, { "docid": "11982670a96bcb094d4442a41b0657e5", "score": "0.63746536", "text": "public static void main(String[] args) {\n\t\t\n String a=\"Apple\";\n String b=\"Banna\";\n System.out.println(a.length());\n System.out.println(b.length());\n System.out.println(\"---------------------\");\n \n boolean isEqual=a.equals(b);\n System.out.println(isEqual);\n boolean isEqualTo=b.equalsIgnoreCase(a);\n System.out.println(isEqualTo);\n System.out.println(\"---------------------\");\n\n System.out.println(a.contains(\"Apple\"));\n System.out.println(b.contains(\"Banana\"));\n String sen=\"classes\";\n System.out.println(a.contains(sen));\n System.out.println(\"---------------------\");\n \n System.out.println(a.toLowerCase());\n System.out.println(b.toUpperCase());\n System.out.println(a.toUpperCase());\n System.out.println(\"---------------------\");\n\n\n\n\n\t}", "title": "" }, { "docid": "657cc093cf6e828301db7ae18bcb7e7d", "score": "0.63716114", "text": "@Test\r\n public void signInOutTest() {\r\n \r\n //testing if method encodes both lower and upper case letters \r\n //assertEquals(\"Lipps Xlivi Lsa Evi Csy\",StudentEngine.signInOut(\"Hello There How Are You\",4));//testing lower case and upper case letters\r\n \r\n }", "title": "" }, { "docid": "ca8ea9f6ba5767c53b4892b655691cc0", "score": "0.6363645", "text": "@Test(groups = \"unit\")\n public void lower_camel_case_with_prefix_to_upper_camel_case() {\n test(\n new NamingConventions.LowerCamelCase(\"_\"),\n NamingConventions.UPPER_CAMEL_CASE,\n \"_myXmlParser\",\n \"MyXmlParser\");\n test(\n new NamingConventions.LowerCamelCase(\"_\"),\n NamingConventions.UPPER_CAMEL_CASE,\n \"myXmlParser\",\n \"MyXmlParser\");\n test(\n new NamingConventions.LowerCamelCase(\"_\", \"m\"),\n NamingConventions.UPPER_CAMEL_CASE,\n \"mMyXmlParser\",\n \"MyXmlParser\");\n test(\n new NamingConventions.LowerCamelCase(\"_\", \"m\"),\n NamingConventions.UPPER_CAMEL_CASE,\n \"_MyXmlParser\",\n \"MyXmlParser\");\n }", "title": "" }, { "docid": "70e8d952622bd7a37096ec67b9e2dabc", "score": "0.63559985", "text": "int compareToIgnoreCase(String str);", "title": "" }, { "docid": "1ee450f353ca0d62987b817e5bfa80c8", "score": "0.6340336", "text": "private boolean containsIgnoreCase(String prefix, String current){\n\t\t\n\t\tprefix = prefix.toUpperCase();\n\t\tcurrent = current.toUpperCase();\n\t\t\n\t\treturn current.startsWith(prefix);\n\t}", "title": "" }, { "docid": "c55882d6d8c89e458f05eaa38ad5eb18", "score": "0.633099", "text": "public int compare(String string, boolean caseSensitive) throws CoreException;", "title": "" }, { "docid": "64759234856f19bd60930b468c6e320c", "score": "0.6323666", "text": "public int compare(IString string, boolean caseSensitive) throws CoreException;", "title": "" }, { "docid": "4672097b02e6f26b0c380ebdf17d21ad", "score": "0.63181454", "text": "String toLowerCase();", "title": "" }, { "docid": "56a1875c3b1d7e390ed8d7628144fd32", "score": "0.6258785", "text": "private static String allUpperCaseToLowerCase(String input) {\n if (StringUtils.isAllUpperCase(input)) {\n return input.toLowerCase();\n } else {\n return input;\n }\n }", "title": "" }, { "docid": "86fc7fe06ecfa91cfc13f2e2f8db26ae", "score": "0.62526953", "text": "boolean hasCaseValue();", "title": "" }, { "docid": "8a34635174f9651d86103959b29c196c", "score": "0.62345314", "text": "@Override\n\tpublic void doAlternateCase() throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "ca5305686e6d2e6ad8d3abe366c2857f", "score": "0.6213938", "text": "public boolean isCaseSensitive() {\n\t\treturn caseSensitive;\n\t}", "title": "" }, { "docid": "75397f4340facfc9586f641aeede904b", "score": "0.61720765", "text": "public static void main(String[] args) {\n String s = new String(\"sss\");\n String a = \"sss\";\n //System.out.println(s.toLowerCase().equals(a));\n System.out.println(s == a);\n }", "title": "" }, { "docid": "757b5aac4bf6758668a5c1bc13158bda", "score": "0.6152979", "text": "@Transformation(displayName = \"StringEqualsIgnoreCase\", description = \"Checks if 2 strings are equals, ignores case-sensibility\")\n public static boolean StringEqualsIgnoreCase(String input, String toCompareTo){\n return !(input == null || toCompareTo == null) && input.equalsIgnoreCase(toCompareTo);\n }", "title": "" }, { "docid": "66c21e1567211ed6781ef2246731eade", "score": "0.6050331", "text": "private boolean matchIdentifierIgnoreCase(String lexeme)\n\t{\n\t\tif (!currentIdentifierIgnoreCase(lexeme))\n\t\t\treturn false;\n\t\tnextToken();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f73e06549f68e90701e29dd5fd1ab977", "score": "0.6045583", "text": "public boolean matches(Case e) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5f59e88d8d5f16b0053f355c4c13ff3e", "score": "0.60273594", "text": "public void stringContains() \n {\n \tSystem.out.println(\"===>> stringContains() Method\");\n \t\n \t String str = \"Hello JAvatpoint readers\"; \n boolean isContains = str.contains(\"JAvatpoint\"); \n System.out.println(isContains); \n // Case Sensitive \n System.out.println(str.contains(\"javatpoint\")); // false \n }", "title": "" }, { "docid": "c1778ed461a89d14a34f0f471b025d0d", "score": "0.5986572", "text": "String convertToLowerCase(String text);", "title": "" }, { "docid": "f70769e5fb76f49b258e5f12cf0e8872", "score": "0.59865", "text": "@Test\n public void testAcceptsLowerCaseCommand() {\n CoffeeMakerQuest testGame = new CoffeeMakerQuest();\n String response = testGame.respondToCommand(\"h\");\n assertNotEquals(\"What?\", response);\n }", "title": "" }, { "docid": "43500bf5415130d0247614081441b040", "score": "0.5957888", "text": "@Test\n public void testCamelCaseItLlamaDuck() {\n String[] words = {\"llama\", \"llama\", \"duck\"};\n String expResult = \"llamaLlamaDuck\";\n String result = ArrayExerciseE.camelCaseIt(words);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "ee4d1fc782647037d5ec764ab0c7f0bb", "score": "0.5953681", "text": "private static String toLowerCase(String input){\n return input.toLowerCase();\n }", "title": "" }, { "docid": "b56315794760829ad01f5ddf199bfd02", "score": "0.59505934", "text": "public boolean equals( CharSequence cmpString, Case sensitivity )\n {\n // null?\n if ( cmpString == null )\n return isNull();\n\n // same length?\n if ( cmpString.length() != length )\n return false;\n\n return containsAt( cmpString, 0, sensitivity );\n }", "title": "" }, { "docid": "3d1b39b3616d0b1ef36dc60d32b4a71f", "score": "0.5937696", "text": "@Test\n public void testShanghaiDisneyland(){\n String result = substitutions.getSubstitution(\"Shanghai Disneyland\");\n assertTrue(\"Doesn't contain Shanghai Disneyland\",substitutions.contains(\"Shanghai Disneyland\"));\n assertTrue(\"Shanghai Disneyland didn't map to Shanghai (\"+result+\")\",result.equalsIgnoreCase(\"Shanghai\"));\n }", "title": "" }, { "docid": "91bf3d9e089b23fb02133b028410e9e4", "score": "0.5934141", "text": "public int compareCompatibleWithIgnoreCase(IString string) throws CoreException;", "title": "" }, { "docid": "d85f0f8d28314b7aad4eea8bca192030", "score": "0.5933419", "text": "@Test\r\n\tpublic void testToLowerCase01() throws Exception {\r\n\r\n\t\tthis.compareFragmentCodeGeneration(\"sltest/string\", \"toLowerCase01\");\r\n\t}", "title": "" }, { "docid": "8440c1d5d0304552ab6d757af1a4346c", "score": "0.5930433", "text": "public static boolean isLowerCase(CharSequence cs) {\r\n if (isEmpty(cs)) {\r\n return false;\r\n }\r\n for (int i = 0, end = cs.length(); i != end; ++i) {\r\n if (Character.isUpperCase(cs.charAt(i))) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "5e79f653165139645deba4cf18860aab", "score": "0.59291327", "text": "public boolean startsWithIgnoreCase(String s, int pos)\n/* */ {\n/* 681 */ byte[] b = this.buff;\n/* 682 */ int len = s.length();\n/* 683 */ if ((b == null) || (len + pos > this.end - this.start)) {\n/* 684 */ return false;\n/* */ }\n/* 686 */ int off = this.start + pos;\n/* 687 */ for (int i = 0; i < len; i++) {\n/* 688 */ if (Ascii.toLower(b[(off++)]) != Ascii.toLower(s.charAt(i))) {\n/* 689 */ return false;\n/* */ }\n/* */ }\n/* 692 */ return true;\n/* */ }", "title": "" }, { "docid": "17c022c0c398bd022c4c099f6b3c8ede", "score": "0.5927985", "text": "public boolean matches(String textualRepresentation) {\n return toString().equals(textualRepresentation.toLowerCase());\n }", "title": "" }, { "docid": "9d0e2eebaafa7ba662918e715e9f6448", "score": "0.5927004", "text": "@Test\r\n\tpublic void testMixedCapsString() {\r\n\t\tSpecialString mcs = new MixedCapsString(\"This is also a test\");\r\n\t\tSystem.out.println(mcs);\r\n\t\tassertEquals(\"tHiS Is aLsO A TeSt\", mcs.toString());\r\n\t}", "title": "" }, { "docid": "3f4165f7cdb7dc1d6f9d5fe349630533", "score": "0.5924349", "text": "public boolean equals( String cmpString, Case sensitivity )\n {\n // null?\n if ( cmpString == null )\n return isNull();\n\n // same length?\n if ( cmpString.length() != length )\n return false;\n\n return 0 == compareTo( cmpString, sensitivity, 0, length, 0, length );\n }", "title": "" }, { "docid": "c02f46c955a7744ff1cd4a801c5e5392", "score": "0.59080476", "text": "final public boolean matchTokenString_IgnoreCase(int index, String s) throws NavException {\r\n\t\tint type = getTokenType(index);\r\n\t\tint len =\r\n\t\t\t(type == TOKEN_STARTING_TAG\r\n\t\t\t\t|| type == TOKEN_ATTR_NAME\r\n\t\t\t\t|| type == TOKEN_ATTR_NS)\r\n\t\t\t\t? getTokenLength(index) & 0xffff\r\n\t\t\t\t: getTokenLength(index);\r\n\t\t// upper 16 bit is zero or for prefix\r\n\r\n\t\t//currentOffset = getTokenOffset(index);\r\n\t\t// point currentOffset to the beginning of the token\r\n\t\t// for UTF 8 and ISO, the performance is a little better by avoid\r\n // calling getChar() everytime\r\n\t\treturn compareTokenString_IgnoreCase(getTokenOffset(index), len, s)==0;\r\n\t}", "title": "" }, { "docid": "9b043a55268668a23c737641187e40b0", "score": "0.589225", "text": "private String toProperCase(String str) {\n return str.substring(0, 1).toUpperCase() +\n str.substring(1).toLowerCase();\n }", "title": "" }, { "docid": "11b2cb01d481cb46b410be0ec6307467", "score": "0.58862996", "text": "@Test\n public void testEqualsIgnoreCase() {\n final ViolationId other = new ViolationId(StringUtils.swapCase(violationId.getNamespace()),\n StringUtils.swapCase(violationId.getNamespacedIdentifier()));\n assertThat(violationId).isEqualTo(other);\n assertThat(other).isEqualTo(violationId);\n assertThat(violationId.hashCode()).isEqualTo(other.hashCode());\n }", "title": "" }, { "docid": "04eb3d2e9ab6909729703dd72fd745b6", "score": "0.58850944", "text": "boolean existsByKeyIgnoreCase(String key);", "title": "" }, { "docid": "5fcba316e9043b796a0a04997eb19500", "score": "0.5884679", "text": "public void stringEquals() \n {\n \tSystem.out.println(\"===>> stringEquals() Method\");\n \t\n \tString s1=\"javatpoint\"; \n \tString s2=\"javatpoint\"; \n \tString s3=\"JAVATPOINT\"; \n \tString s4=\"python\"; \n \tSystem.out.println(s1.equals(s2));//true because content and case is same \n \tSystem.out.println(s1.equals(s3));//false because case is not same \n \tSystem.out.println(s1.equals(s4));//false because content is not same \n \n }", "title": "" }, { "docid": "3d88453195933c59dd7cc9dc2eeea089", "score": "0.58763015", "text": "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tchar ch = scn.next().charAt(0);\n\t\tchar q = checkCase(ch);\n\t\tSystem.out.println(q);\n\t}", "title": "" }, { "docid": "a9070bf00bc09bf06e738b99c4da05b0", "score": "0.5874111", "text": "public void testFlagsUpperCase() {\n for (Flag flag : Flag.values()) {\n String name = flag.name();\n assertEquals(name.toUpperCase(), name);\n }\n }", "title": "" }, { "docid": "15727970ec901e0841805d1bab026cd0", "score": "0.58685845", "text": "@Test\n public void check_a_WIErdStriNG_mixedUpperANdLower()throws Exception{\n CeaserCipher testCeaserCipher = new CeaserCipher(\"aB\",1);\n assertEquals(\"bC\",testCeaserCipher.cipheredWord());\n }", "title": "" }, { "docid": "45da3e6d834099d0e63a10d5c880aba7", "score": "0.5863871", "text": "public boolean detectCapitalUse(String word) {\n\t\tif(null == word || word.isEmpty()){\n\t\t\treturn false;\n\t\t}\n\t\tif(word.length() == 1){\n\t\t\treturn true;\n\t\t}\n\n\t\tint l = word.length();\n\t\tboolean result = true;\n\t\tif(word.charAt(0)>='A'&& word.charAt(0)<='Z' && word.charAt(1)>='A' && word.charAt(1)<='Z'){\n\t\t\tint index = 2;\n\t\t\twhile(index < l){\n\t\t\t\tif(word.charAt(index)<'A' || word.charAt(index)>'Z'){\n\t\t\t\t\tresult = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\n\t\tif(word.charAt(0)>='A'&& word.charAt(0)<='Z' && word.charAt(1)>='a'&& word.charAt(1)<='z'){\n\t\t\tint index = 2;\n\t\t\twhile(index < l){\n\t\t\t\tif(word.charAt(index)<'a' || word.charAt(index)>'z'){\n\t\t\t\t\tresult = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\n\t\tif(word.charAt(0)>='a'&&word.charAt(0)<='z'){\n\t\t\tint index = 1;\n\t\t\twhile(index < l){\n\t\t\t\tif(word.charAt(index)<'a' || word.charAt(index)>'z'){\n\t\t\t\t\tresult = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "90e349ca766bccd21b944c00f3ff8010", "score": "0.5857852", "text": "public Boolean isCaseIgnored() {\n return this.caseIgnored;\n }", "title": "" }, { "docid": "3eaf49780fcfeb6572322cc7d60c34bc", "score": "0.58460796", "text": "Boolean isCaseInsensitiveHeaders();", "title": "" }, { "docid": "1dc99294dae13e97552299a419a09f06", "score": "0.5830279", "text": "boolean acceptable(String word);", "title": "" }, { "docid": "5c51a729dca564d2ed82ed6a9a58dd0d", "score": "0.58146596", "text": "@Override\n public boolean equals( Object object )\n {\n return equals( object, Case.SENSITIVE );\n }", "title": "" }, { "docid": "aa986879a96cc2dc2b84082d1ddf698e", "score": "0.58118373", "text": "private boolean isCaseLabel(String word) {\r\n return word.startsWith(\"(\") && word.length() > 1 && Character.isDigit(word.charAt(1));\r\n }", "title": "" }, { "docid": "ecd00aa3a1177e0d202cc869e03173ce", "score": "0.5803243", "text": "@Test\n public void testConvertirMinusculas() {\n String devuelto=CadenaAlumno.convertirMinusculas(\"HOLa\");\n String real=\"HOLa\".toLowerCase();\n assertEquals(real,devuelto);\n }", "title": "" }, { "docid": "c920e9b2bdf21590e9785e4b904a9586", "score": "0.5802918", "text": "@Test\r\n public void test_setter_and_getter_title_allLowerCase() {\r\n testClassDefinition();\r\n SM c = new SM(\"TestAllLowerCase\", 2);\r\n c.setTitle(\"despicable me 3\");\r\n assertEquals(\"Set title to 'despicable me 3'\", \"DESPICABLE ME 3\", c.getTitle());\r\n }", "title": "" }, { "docid": "db4065ca6f88f375198f5e8365cdd24b", "score": "0.5792124", "text": "public boolean upperCase() { /// CAN USE THIS FOR PASSWORD AUTHENTICATION\n\t\tint count = 0;\n\t\tchar temp;\n\t\tint ascii;\n\t\tfor(int i = 0; i < getUser().length(); i++) {\n\n\t\t\tfor(int j = 65; j <= 90; j++) {\n\t\t\t\ttemp = getUser().charAt(i);\n\t\t\t\tascii = (int)temp;\n\n\t\t\t\t\tif(ascii == j)count++;\n\n\t\t\t}\n\n\t\t}\n\t\tif(count <= 1)\n\t\treturn true;\n\t\telse\n\t\treturn false;\n\t}", "title": "" }, { "docid": "17549fde0445ac5e5bb99a2b13b3cb8b", "score": "0.57918775", "text": "public boolean matches(String str) {\n\t\treturn str.toLowerCase(locale).equals(lcKey);\n\t}", "title": "" }, { "docid": "2ccba7372d12d34f6f7af30e8913fb72", "score": "0.57904077", "text": "public boolean isCorrect(String s){\n return this.answer.toString().toLowerCase().equals(s.toLowerCase());\n }", "title": "" }, { "docid": "0e401f5ed5cdfaf71a374e29f9fc99d7", "score": "0.5782274", "text": "public boolean equals( AString cmpString, Case sensitivity )\n {\n // null?\n if ( cmpString == null || cmpString.isNull() )\n return isNull();\n\n // same length?\n if ( cmpString.length != length )\n return false;\n\n return 0 == compareTo( cmpString, sensitivity, 0, length, 0, length );\n }", "title": "" }, { "docid": "b8557589ac11c764cb3d043e52a13cde", "score": "0.57792366", "text": "public int compareCompatibleWithIgnoreCase(char[] chars) throws CoreException;", "title": "" }, { "docid": "f3d23806c3e14e6e63c59722a7c9af0a", "score": "0.57755643", "text": "public String properCase(String str) {\n\t\tint length = str.length();\n\t\tstr = str.substring(0,1).toUpperCase() + str.substring(1,length).toLowerCase();\n\t\treturn str;\n\t\t\n\t}", "title": "" }, { "docid": "022645de1612cff02ab5ae9eb573bf42", "score": "0.57641935", "text": "public abstract boolean matches(String s);", "title": "" }, { "docid": "da84cb35a92268ff37235d26876b3ecd", "score": "0.57625973", "text": "public boolean equals( Substring cmpString, Case sensitivity )\n {\n // null?\n if ( cmpString == null )\n return isNull();\n\n // same length?\n if ( cmpString.length() != length )\n return false;\n\n return containsAt( cmpString, 0, sensitivity );\n }", "title": "" }, { "docid": "d51d0900a07d9e053e039781bae1da84", "score": "0.57549566", "text": "public boolean match(String source);", "title": "" }, { "docid": "fc5ab60c24629f234d726d379d5d8221", "score": "0.5753571", "text": "public static boolean containsIgnoreCase(Collection <String> l, String s) {\r\n Iterator<String> it = l.iterator();\r\n while (it.hasNext()) {\r\n if (it.next().equalsIgnoreCase(s)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "9c900ef6e49de9e6165075cc2e1c98a2", "score": "0.5743583", "text": "private void check_case_insensitiveItemStateChanged(ItemEvent e) {\n }", "title": "" }, { "docid": "d1e8d00ddfc1b6dd0a31c4af4d66dc84", "score": "0.57394296", "text": "@Test\n public void givenCharactershouldReturnUppercase() {\n String result = character.findCharacter('A');\n //Assert\n assertEquals(\"Upper case\", result);\n }", "title": "" }, { "docid": "c195d8f5d3a4f2eb74bc2c3d1c8ed5ae", "score": "0.57364744", "text": "public static boolean isLowercase(String s){\n return s.chars().allMatch(Character::isLowerCase);\n }", "title": "" }, { "docid": "b268cf8140c34e3f9c985f74cf0f214a", "score": "0.57323", "text": "boolean isCaseInsensitivePalindrome(String inputString) {\n\t\treturn new StringBuilder(inputString).reverse().toString().toLowerCase().equals(inputString.toLowerCase());\n}", "title": "" }, { "docid": "c36d12fe11fc18e55a81f17206ecc4fa", "score": "0.57314336", "text": "final public boolean matchTokens_IgnoreCase(int i1, VTDNav vn2, int i2) \r\n\tthrows NavException{\r\n\t return compareTokens_IgnoreCase(i1,vn2,i2)==0;\r\n\t}", "title": "" }, { "docid": "cc6328a2747ee3345a414929797e6e34", "score": "0.5729749", "text": "protected boolean hasMixedCase(String tableName) {\n if (tableName == null) {\n return false;\n }\n return StringUtil.hasUpperCase(tableName) && StringUtil.hasLowerCase(tableName);\n }", "title": "" }, { "docid": "97ebce87225006815f2524f3b6ac7465", "score": "0.5726169", "text": "public boolean isSameAs(final String text) {\n return isSameAs(text, Case.SENSITIVE);\n }", "title": "" }, { "docid": "12d06b0966745f24de34cc5a095ded66", "score": "0.57213855", "text": "private boolean containsIgnoreCase(Collection<String> list, String partialName){\n partialName = partialName.trim().toLowerCase();\n for (String fullName : list) {\n fullName = fullName.trim().toLowerCase();\n if(fullName.contains(partialName) || partialName.contains(fullName))\n return true;\n } \n return false;\n }", "title": "" }, { "docid": "32ad5fd98e1b46e29e286855d7f0d41e", "score": "0.5717651", "text": "public void testValidateStringWithNormalString() {\n assertEquals(\"Failed to implement validateString.\", \"test\", DVHelper.validateString(\"test\", \"test\"));\n }", "title": "" }, { "docid": "7463436b62f4c5796230cf8e318f9cfe", "score": "0.57148737", "text": "@Test\n public void check_Encription_of_SmallCaseLetters()throws Exception{\n CeaserCipher testCeaserCipher = new CeaserCipher(\"ab\",1);\n assertEquals(\"bc\",testCeaserCipher.cipheredWord());\n }", "title": "" }, { "docid": "a2b4c73c7ee674708c6718fee4aaef15", "score": "0.57130075", "text": "public void testAccept() {\r\n //test invalids regex\r\n assertFalse(analyzer.accept(\"\",\"\"));\r\n assertFalse(analyzer.accept(\"!\", \"!\"));\r\n assertFalse(analyzer.accept(\"+\", \"+\"));\r\n \r\n assertTrue(analyzer.accept(\"infO.TxT\", \"Info.txt\"));\r\n assertTrue(analyzer.accept(\"fiLe my\", \"My File.zip\"));\r\n assertFalse(analyzer.accept(\"y.f\", \"My File.zip\"));\r\n assertTrue(analyzer.accept(\" file \", \" My File\"));\r\n\r\n assertTrue(analyzer.accept(\" space two \", \" twO SPACE \"));\r\n assertFalse(analyzer.accept(\" \", \"Some Spaces!\"));\r\n \r\n assertTrue (analyzer.accept(\" turing machine \", \"church turing \"));\r\n \r\n assertFalse (analyzer.accept(\"turing !machine \", \"turing machine\" ));\r\n assertFalse (analyzer.accept(\" !machine turing \", \"turing machine\" ));\r\n assertFalse (analyzer.accept(\"!machine \", \"turing machine\" ));\r\n assertTrue (analyzer.accept(\"turing !machine \", \"church - turing \" ));\r\n assertTrue (analyzer.accept(\" !machine turing\", \"church - turing \" ));\r\n assertFalse (analyzer.accept(\"turing !thesis !church\" , \"church - turing \" ));\r\n assertTrue (analyzer.accept(\"turing !thesis !church\" , \" turing \" ));\r\n assertFalse (analyzer.accept(\"turing !thesis !church\" , \" turing church\" ));\r\n assertFalse (analyzer.accept(\"turing !thesis !church\" , \" turing church thesis\" ));\r\n assertFalse (analyzer.accept(\"turing !thesis church\" , \" turing church thesis\" ));\r\n assertTrue (analyzer.accept(\"turing !thesis church\" , \" turing church\" ));\r\n //this a important test. Even so the regex thesis doesn't exists in a phrase\r\n // \"\" turing church\", the method accept return false, because was used only \r\n // ! operator, otherwise a catastrophic situation may be occur. For example\r\n //the case accept (regex-> !(improbable word), word->(any word)) always \r\n //returns true , and will occur a overload in a system\r\n assertFalse (analyzer.accept(\" !thesis \" , \" turing church \" ));\r\n \r\n assertFalse (analyzer.accept(\" turing+thesis \" , \" turing church\" ));\r\n assertTrue (analyzer.accept(\" turing+thesis \" , \" turing thesis \" ));\r\n assertTrue (analyzer.accept(\" turing+thesis \" , \" turing thesis church\" ));\r\n assertTrue (analyzer.accept(\" turing+thesis foo\" , \" turing thesis \" ));\r\n assertTrue (analyzer.accept(\" turing+thesis machine \" , \" alonzo church machine\" ));\r\n assertFalse (analyzer.accept(\" turing+thesis !church\" , \" turing thesis church\" ));\r\n assertFalse (analyzer.accept(\" turing+thesis church !halt\" , \" turing thesis church halt\" ));\r\n assertTrue (analyzer.accept(\" turing+thesis church !halt\" , \" bla church\" ));\r\n\r\n }", "title": "" }, { "docid": "2851a25a8afcc9821ade4d2b6456058d", "score": "0.5704891", "text": "public static boolean isAuthenticationCaseSensitive(){\r\n XPlannerProperties properties = new XPlannerProperties();\r\n Iterator propertiesIterator = properties.getPropertyNames();\r\n while(propertiesIterator.hasNext()){\r\n String property = (String)propertiesIterator.next();\r\n if(property!=null &&\r\n property.startsWith(LoginModuleLoader.LOGIN_MODULE_PROPERTY_PREFIX + \"[\") &&\r\n property.endsWith(\"].option.userIdCaseSensitive\")){\r\n if(new Boolean(properties.getProperty(property).trim()).booleanValue()){\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "67558594ec2ea4d8827f6de981e1b914", "score": "0.5702933", "text": "private boolean matchUser(String[] data, String input) {\n\t\tif(matchName(input)){\n\t\t\treturn data[1].toLowerCase().contains(input.toLowerCase())\n\t\t\t\t\t|| data[2].toLowerCase().contains(input.toLowerCase())\n\t\t\t\t\t|| data[3].toLowerCase().contains(input.toLowerCase());\n\t\t}\n\n\t\tif(matchNumber(input)){\n\t\t\treturn data[0].toLowerCase().contains(input.toLowerCase());\n\t\t}\n\t\telse{\n\t\t\treturn data[2].toLowerCase().contains(input.toLowerCase());\n\t\t}\n\t}", "title": "" }, { "docid": "0ed15a598c6e81ccdd3f8e20e90936c2", "score": "0.5693472", "text": "public int compare(char[] chars, boolean caseSensitive) throws CoreException;", "title": "" }, { "docid": "dc4054c7bbe754ebeb1e645f56a67429", "score": "0.56805354", "text": "@Test\n public void execute_findCaseInsensitive_success() {\n\n NameContainsKeywordsPredicate predicate = new NameContainsKeywordsPredicate(Arrays.asList(\"alice\"));\n NameContainsKeywordsPredicate testPredicate = new NameContainsKeywordsPredicate(Arrays.asList(\"Alice\"));\n\n ModelManager expectedModel = new ModelManager(new TravelPlanner(model.getTravelPlanner()), new UserPrefs());\n expectedModel.setDirectory(0);\n expectedModel.updateFilteredFriendList(predicate); //expected model uses testPredicate\n int expectedSize = expectedModel.getFilteredFriendList().size();\n String expectedMessage = String.format(MESSAGE_FRIENDS_LISTED_OVERVIEW, expectedSize);\n\n //actual model uses predicate\n FindCommand findFriendCommand = new FindCommand(testPredicate, ParserUtil.FRIEND_INDEX);\n assertFindCommandSuccess(findFriendCommand, ParserUtil.FRIEND_INDEX, model, expectedMessage, expectedModel);\n }", "title": "" }, { "docid": "fd2343b5e2e0f0a71ec9d470db362a1c", "score": "0.56784356", "text": "public static void main(String[] args) {\n\t\tString str=\"Burn your ego before it burns you\";\n\t\t//String str=\"as\";\n\t\tPattern p = Pattern.compile(\"ego\",Pattern.CASE_INSENSITIVE); //'.' represents single character\n\t\tMatcher m=p.matcher(str);\n\t\tboolean result=m.find();\n\t\tif(result)\n\t\t{\n\t\t\tSystem.out.println(\"Pattern matched\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Pattern not matched\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "fed55cf170a57dc6843adf9e3169dd1f", "score": "0.56709045", "text": "@org.junit.Test\r\n public void testCapitalizeWordWithCharSequence() {\r\n CharSequence param0 = null;\r\n CharSequence charSequenceResult = TextUtils.capitalizeWord(param0);\r\n \r\n // Add assertions\r\n \r\n }", "title": "" }, { "docid": "d23e3b9fc8524a02da153568c280202c", "score": "0.56700283", "text": "public void setCaseinsensitive(boolean b) {\n caseInsensitive = b;\n }", "title": "" }, { "docid": "b43ffb9ed83ce0931a4e75ac44b02042", "score": "0.56661475", "text": "@Test\n public void replaceIfCapitalCharIsPresent() {\n String output = object.characterReplace(\"Daily Dry\");\n assertEquals(\"faity fry\", output);\n }", "title": "" } ]
01481e5404ddd652f5f23bd4b466e598
Switch to create product development pop up and enter information.
[ { "docid": "6ccd7e98571a299fe1d5e11fe2db0874", "score": "0.8009833", "text": "public void switchToCreateProductDevelopmentPopUpAndEnterInformation(String productName, String office) {\n\t\tparentWindow = castorHomePg.get_CurrentWindowHandle();\n\t\tcastorHomePg.getWindowHandle();\n\t\tcastorHomePg.txtBox_ProductDevelopmentName.sendKeys(productName);\n\t\ttry{\n\t\t\tcastorHomePg.SelectElementFromDropdown(castorHomePg.sel_owningOffice, \"visibleText\", office);\n//\t\t\tcastorHomePg.SelectElementFromDropdown(castorHomePg.sel_Brand, \"visibleText\", \"HM\");\n\t\t}catch(Exception e){\n\t\t\t\n\t\t}\n\t\tcastorHomePg.btn_Create.click();\n\t\tdriver.switchTo().window(parentWindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tcastorLoginPg.reportLog(\"Product Name :\" + productName + \" and office :\" + office);\n\t}", "title": "" } ]
[ { "docid": "b2d81c333f07e842f5c86fcadffa79f8", "score": "0.71322095", "text": "public void clickOnProductDevelopment() {\n\t\tcastorHomePg.get_Btn_ProductDevlopment().isEnabled();\n\t\tcastorHomePg.checkWeekSliderSpinnerToDisappear();\n\t\tcastorHomePg.get_Btn_ProductDevlopment().click();\n\t\tcastorLoginPg.reportLog(\"Click on product devlopment link\");\n\t}", "title": "" }, { "docid": "146c9439febf34ee72437bb869249fa6", "score": "0.7096931", "text": "public void switchToFrameToGetCreateProductDevelopment() {\n\t\tcastorHomePg.switchToDefaultContent();\n\t\tcastorHomePg.switchToFrame(\"content\");\n\t\tcastorHomePg.switchToFrame(castorHomePg.get_FrameLevel2().getAttribute(\"name\"));\n\t\tcastorHomePg.switchToFrame(castorHomePg.get_FrameLevel3().getAttribute(\"name\"));\n\t\tcastorHomePg.checkWeekSliderSpinnerToDisappear();\n\t\tcastorHomePg.switchToFrame(\"tableContentFrame\");\n\t\tcastorLoginPg.reportLog(\"Switch to frames to intercat with product devlopment\");\n\t}", "title": "" }, { "docid": "4b3f68db04de7bac252abf58d88365c0", "score": "0.66801614", "text": "private void goToNewProduct(){\n\t\tthis.productListController.goTo(\"newProduct\");\n\t}", "title": "" }, { "docid": "c86af675d4f06d87ba7c7accd0e27407", "score": "0.66389704", "text": "public ProductDevelopmentDetailAction(WebDriver driver) {\r\n\t\tproductDevelopmentPg = new ProductDevelopmentDetailPageUI(driver);\r\n\t\tthis.driver = driver;\r\n\t}", "title": "" }, { "docid": "3369c1b53cacc000049ee8b27305e373", "score": "0.65539306", "text": "public void createNewProduct()\n {\n Product newProduct = new Product(name.getText(), information.getText(),Integer.parseInt(price.getText()));\n database.addToProducts(newProduct);\n stage.close();\n }", "title": "" }, { "docid": "e47ae0c4f877cc0d76e61ee9c9d120d6", "score": "0.6517418", "text": "void showProductDetails() \n\t{\n\t\tSystem.out.println(\"Product ID: \"+pid);\n\t\tSystem.out.println(\"Name:\\t\"+name);\n\t\tSystem.out.println(\"Price:\\t\"+price);\n\t\t\n\t\n\t\t\n\tSystem.out.println(\"------------------\");\n\t}", "title": "" }, { "docid": "49dd79dcd1531c445685924d9076dd4d", "score": "0.65060055", "text": "private boolean createproduct(WebDriver driver, String ProductName,\r\n\t\t\tString ProductWeight, String CreateDimensionTag,String Productcode,String SKU,String ProductFamily,String Freight,String Insurance,String Duty,String Others) throws InterruptedException {\n\t\t\tThread.sleep(5000);\r\n\t\t\tdriver.findElement(By.xpath(\"//a[@title='Products']\")).click();\r\n\t\t\tThread.sleep(5000);\r\n\t\t\t//Click on 'New' Button\r\n\t\t\tdriver.findElement(By.xpath(\"(//a[@class='forceActionLink']/descendant::div)[1]\")).click();\r\n\t\t\tThread.sleep(000);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n //Click on Product Name\r\n\t\t\tdriver.findElement(\r\n\t\t\t\t\tBy.xpath(\"(//div[@class='uiInput uiInputText uiInput--default uiInput--input']/descendant::input)[1]\")).sendKeys(ProductName);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t/*\r\n //Click on Product Weight\r\n\t\t\tdriver.findElement(\r\n\t\t\t\t\tBy.xpath(\"html/body/div[5]/div[2]/div[3]/div[2]/div/div[2]/div/div[4]/div/div[1]/div/div/div[1]/div[2]/div/div/div/input\")).sendKeys(ProductWeight);\r\n\t\t\t\r\n\t\t\t//Click on the Create dimension tag---coded \r\n\t\t\tdriver.findElement(By.xpath(\"//div[@class='modal-body scrollable slds-modal__content slds-p-around--medium']/descendant::div[@class='slds-form-element__control'][3]\")).click();\r\n\t\t\tThread.sleep(3000);\r\n\t\t\t//Click on YES in dimension\r\n\t\t\tdriver.findElement(By.xpath(\"html/body/div[9]/div/ul/li[2]/a\")).sendKeys(Keys.ENTER);\r\n\t\t\t\r\n\t\t\tThread.sleep(5000);\r\n\t\t\t//Click on the Product Code\r\n\t\t\tdriver.findElement(By.xpath(\"(//div[@class='uiInput uiInputText uiInput--default uiInput--input']/descendant::input)[2]\")).sendKeys(Productcode);\r\n\t\t\tThread.sleep(5000);\r\n\t\t\t//Click on SKU\r\n\t\t\tdriver.findElement(By.xpath(\"(//div[@class='uiInput uiInputText uiInput--default uiInput--input']/descendant::input)[3]\")).sendKeys(SKU);\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tClick on the Stock Item Checkbox\r\n\t\t\tWebElement ele=driver.findElement(By.xpath(\"(//div[@class='uiInput uiInputCheckbox uiInput--default uiInput--checkbox'])[2]\"));\r\n\t\t\tele.click();\r\n\t\t\t\r\n\t\t\t//WebElement ele1=driver.findElement(By.xpath(\"//div[@class='DESKTOP uiContainerManager']//div[@class='full forcePageBlock forceRecordLayout']/div[2]/div/descendant::div[@class='slds-grid full forcePageBlockSectionRow'][1]/div[1]\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//CheckBox \r\n\t\t\tWebElement ele=driver.findElement(By.xpath(\"html/body/div[5]/div[2]/div[3]/div[2]/div/div[2]/div/div[4]/div/div[1]/div/div/div[9]/div[1]/div/div/div/input\"));\r\n\t\t\t//WebElement ele=driver.findElement(By.xpath(\"div[@class='slds-form-element__control']//input[@type='checkbox'][@data-aura-rendered-by='517:1783;a']\"));\r\n\t\t\tele.click();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tThread.sleep(5000);\r\n\t\t\t\r\n\t\t\tWebElement ele1=driver.findElement(By.xpath(\"(//div[@class=\\\"uiInput uiInputPercent uiInput--default uiInput--input\\\"]/input)[1]\"));\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tele1.click();\r\n\t\t\tele1.sendKeys(Freight);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tWebElement ele2=driver.findElement(By.xpath(\"(//div[@class=\\\"uiInput uiInputPercent uiInput--default uiInput--input\\\"]/input)[2]\"));\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tele2.click();\r\n\t\t\tele2.sendKeys(Insurance);\r\n\t\t\t\r\n\t\t\tWebElement ele3=driver.findElement(By.xpath(\"(//div[@class=\\\"uiInput uiInputPercent uiInput--default uiInput--input\\\"]/input)[3]\"));\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tele3.click();\r\n\t\t\tele3.sendKeys(Duty);\r\n\t\t\t\r\n\t\t\tWebElement ele4=driver.findElement(By.xpath(\"(//div[@class=\\\"uiInput uiInputPercent uiInput--default uiInput--input\\\"]/input)[4]\"));\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tele4.click();\r\n\t\t\tele4.sendKeys(Others);\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tdriver.findElement(By.xpath(\"(//div[@class='slds-has-flexi-truncate slds-p-horizontal_medium full forcePageBlockItem forcePageBlockItemEdit'])[13]/descendant::a[@class='select']\")).click();\r\n\t\t\tThread.sleep(5000);\r\n\t\t //driver.findElement(By.xpath(\"//div[@data-aura-class=\\\"uiPopupTarget uiMenuList uiMenuList--default uiMenuList--left uiMenuList--short\\\"]/div/ul/li\")).click();\r\n\t\t\tList<WebElement> lst=driver.findElements(By.xpath(\"//div[@data-aura-class=\\\"uiPopupTarget uiMenuList uiMenuList--default uiMenuList--left uiMenuList--short\\\"]/div/ul/li\"));\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tSystem.out.println(lst);\r\n\t\t\tfor (WebElement we : lst) {\r\n\t\t\t\tString str = we.getText();\r\n\t\t\t\tif (str.equalsIgnoreCase(ProductFamily))\r\n\t\t\t\t{\r\n\t\t\t\t\twe.click();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//driver.findElement(By.xpath(\"//div[@class='forceModalActionContainer--footerAction forceModalActionContainer']/descendant::button[@title='Save']\")).click();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t//\tClick on Freight\r\n\t\t\tWebElement ele1=driver.findElement(By.xpath(\"//div[@class='DESKTOP uiContainerManager']//div[@class='full forcePageBlock forceRecordLayout']/div[2]/div/descendant::div[@class='slds-grid full forcePageBlockSectionRow'][1]/div[1]\"));\r\n\t\t\tJavascriptExecutor jse = (JavascriptExecutor)driver;\r\n\t\t\t//jse.executeScript(\"arguments[0].value='(222)222-2222';\", ele1);\r\n\t\t\tjse.executeScript(\"document.getElementById('672:4517;a').value='555-55-5555';\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t*/\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.xpath(\"//div[@class='forceModalActionContainer--footerAction forceModalActionContainer']/descendant::button[@title='Save']\")).click();\r\n\t\treturn true;\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "ba84ec25324d986df60e00deaf040ae5", "score": "0.649218", "text": "public static WebElement createNewProductOptionOnInspect(final WebDriver driver) {\n return driver.findElement(By.id(\"create-product\"));\n }", "title": "" }, { "docid": "5863e239475b7f50053458f8cb57c37b", "score": "0.6407585", "text": "private void addNewProduct() {\n DialogFragment dialog = new AddNewProductDialog(this);\n dialog.show(getFragmentManager(), \"add_new_product\");\n }", "title": "" }, { "docid": "5869c4e476d2f19055fe4c77ca588097", "score": "0.63932955", "text": "public void choiceCreateEdit()\n {\n nameWarning.setVisible(false);\n infoWarning.setVisible(false);\n priceWarning.setVisible(false);\n if( !validateName() || !validateInfo() || !validatePrice() )\n {\n return;\n }\n if (mode == 0)\n {\n createNewProduct();\n }\n else\n {\n editProduct();\n }\n\n }", "title": "" }, { "docid": "677d7ea6dc3472b14ca6bcc2ddcd64a7", "score": "0.6322339", "text": "void showProductDetails() \n\t{\n\t\tSystem.out.println(\"Product ID: \"+pid);\n\t\tSystem.out.println(\"Name:\\t\"+name);\n\t\tSystem.out.println(\"Price:\\t\"+price);\n\t\tSystem.out.println(\"Os: \"+os);\n\t\tSystem.out.println(\"RAM:\\t\"+ram);\n\t\tSystem.out.println(\"sdCard:\\t\"+ sdCardsSize);\n\t}", "title": "" }, { "docid": "bbaf6312d607ffa34906642fed32d535", "score": "0.63109267", "text": "private void addProduct() {\n Product currentProduct = PASApplication.getQueryManager().getProduct(product_id);\n\n JLabel lblProductName = new JLabel();\n lblProductName.setText(currentProduct.getName());\n lblProductName.setBounds(20, 60, 500, 20);\n lblProductName.setFont(PASApplication.FONT_16_BOLD);\n add(lblProductName);\n\n JLabel lblDescription = new JLabel();\n lblDescription.setText(currentProduct.getDescription());\n lblDescription.setBounds(20, 80, 500, 20);\n lblDescription.setFont(PASApplication.FONT_10_PLAIN);\n add(lblDescription);\n\n JLabel lblProductPrice = new JLabel();\n lblProductPrice.setText(\"Price: \" + PASApplication.CURRENCY + currentProduct.getPrice());\n lblProductPrice.setBounds(20, 100, 500, 20);\n lblProductPrice.setFont(PASApplication.FONT_10_PLAIN);\n add(lblProductPrice);\n\n JButton btnOrder = new JButton(\"Toevoegen aan Bestelling\");\n btnOrder.setBounds(20, 140, 230, 20);\n btnOrder.setFont(PASApplication.FONT_12_BOLD);\n btnOrder.addActionListener(this);\n add(btnOrder);\n }", "title": "" }, { "docid": "0fca6b811be12473ab66c416832b6306", "score": "0.6279351", "text": "private void addProd() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tdatabase.viewCategories();\r\n\t\tSystem.out.print(\"Category ID: \");\r\n\t\tint cname = in.nextInt();\r\n\t\tSystem.out.print(\"\\nProduct Name: \");\r\n\t\tin.nextLine();\r\n\t\tString pname = in.nextLine();\r\n\t\tSystem.out.print(\"\\nProduct Description: \");\r\n\t\tString pdesc = in.nextLine();\r\n\t\tSystem.out.print(\"\\nQuantity/unit: \");\r\n\t\tint pquantity = in.nextInt();\r\n\t\tSystem.out.print(\"\\nPrice/unit: \");\r\n\t\tint pprice = in.nextInt();\r\n\t\tdatabase.addProduct(getSupplierID(),cname,pname,pdesc,pquantity,pprice);\r\n\t}", "title": "" }, { "docid": "97c7d5cd49c238f02dbae2633cbe1c71", "score": "0.62691325", "text": "public void startProductManage () {\n\t\t\n\t\tif ( productManageDlg!= null ) {\n\t\t\tproductManageDlg.close();\n\t\t}\n\n\t\tif ( !activeProduct.getName().equalsIgnoreCase( \"Default\" ) ||\n\t\t\t productList.size() > 1 ) {\n\t\t\t\n\t\t\tactiveProduct.setOnOff( true );\n\t\t\tactiveProduct.setOnOff( true );\n\t\t\t\n\t\t\tactivateProductManage();\t \n\t\t}\n\t\telse if ( productList.size() == 1 ) {\n\t\t\tstartLayering();\n\t\t}\n\t\telse {\n\t\t\tPgenUtil.setSelectingMode();\t\n\t\t} \t\t\t\t\n\n\t}", "title": "" }, { "docid": "86dca052bf7a78608268605c1e9517ae", "score": "0.623703", "text": "public void openCardToCreate() {\n\t\tpages.unit1ProceedingPage.clickButtonCreateCard();\n\t}", "title": "" }, { "docid": "3418f89fe6be70a73f32d0fa9d36bee4", "score": "0.61883736", "text": "public void newPage(){\r\n\t\tisAdvanced = false;\r\n\t\tsuggestionList.clear();\r\n\t\tselectedPrdct = \"\";\r\n\t\tselectedBrand = \"\";\r\n\t\tisLocListEmpty = true;\r\n\t\tisBrandListEmpty = true;\r\n\t\tisProductListEmpty =true;\r\n\t\tproductPiece = \"\";\r\n\t\tbrandPiece = \"\";\r\n\t\tlocationPiece = \"\";\r\n\t\tselectedLocation = \"\"; //user location\r\n\t\tisBrandSelected = false;\r\n\t\tisLocationSelected = false;\r\n\t\tisProductSelected = false;\r\n\t\tbrandComp.setVisible(false);\r\n\t\tproductComp.setVisible(false);\r\n\t\tbrandTxt.setText(\"\");\r\n\t\tproductTxt.setText(\"\");\r\n\t\tlocationTxt.setText(\"\");\r\n\t\tbtnStart.setEnabled(false);\r\n\t\tbtnAddToCart.setEnabled(false);\r\n\t\tbtnDelete.setEnabled(false);\r\n\t\tbasketList.clearAll();\r\n\t\tadvancedRadioBtn.setSelection(false);\r\n\t\tbasketList.setVisible(true);\r\n\t\tcartList.clear();\r\n\t\tisWayFound = false;\r\n\t\tendComp.setVisible(false);\r\n\t\twayComp.setVisible(false);\r\n\t\tmainComp.setVisible(true);\r\n\t\tbasketList.removeAll();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "86c0a5ba3d2e27a48cd4a2e79a1f4e62", "score": "0.61729896", "text": "protected void popUpForModify() {\n\t\ttry {\r\n\t\t\taccount account = dataUtil.command.getCurrentAccout();\r\n\t\t\tNew_Register_Dialog new_Register_Dialog = new New_Register_Dialog(shlLogin, SWT.OPEN, account.getID(), account.getPASSWORD(), account.getUSER_NAME(), account.getUSER_PHONE(), account.getUSER_EMAIL());\r\n\t\t\tnew_Register_Dialog.open();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bde67fd964b663d813ee402315f0d493", "score": "0.61638325", "text": "public void actionPerformed(ActionEvent evt) {\n\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t \r\n\t\t\tProperties emptyProductInfo = new Properties();\t\t\t\r\n\t\t\tString catalogType = (String)maintainProductCatalog.getcatalogTypeCombo().getSelectedItem();\r\n\t\t\t//String catalogType = maintainProductCatalog.getCatalogGroup();\r\n\t\t\taddEditProduct = new AddEditProduct(GuiUtil.ADD_NEW, catalogType,\r\n\t\t\t\t\temptyProductInfo);\r\n\t\t\ttry {\r\n\t\t\t\t//addEditProduct.getCatalogGroup().removeAllItems();\r\n\t\t\t\t//add in comboBox data from the database\r\n\t\t\t List<String[]> catalognames=prodSS.getCatalogNamesFromNames();//getCatalogNames();\r\n\t\t\t addEditProduct.updateCombocatalog(catalognames);\r\n\t\t\t addEditProduct.getCatalogGroup().setSelectedItem(catalogType);\r\n\t\t\tmaintainProductCatalog.setVisible(false);\r\n\t\t\tmainFrame.getDesktop().add(addEditProduct);\r\n\t\t\taddEditProduct.setVisible(true);\r\n\t\t\t} catch (DatabaseException e) {\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(maintainProductCatalog, \"Database unavailable: \", e.getMessage(),\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "f1565bb24b9f7ba2ca6d8df6fac95119", "score": "0.6144807", "text": "public void showCreatePackageDescription() {\n show(factory.getCreateNewPackagePresenter());\n }", "title": "" }, { "docid": "7c7dfc34c4451572d61663342c9c51d9", "score": "0.61419433", "text": "public static void showModForm(UUID productID) {\n Product prod = InventoryController.getProduct(productID);\n \n //Get the Pane\n Pane modProductPane = new AddModifyProductWindow(Type.MODIFY, prod);\n \n //Create window\n Stage stage = new Stage();\n stage.setTitle(\"Modify Product\");\n stage.setScene(new Scene(modProductPane, Settings.windowWidth * 1.5, Settings.windowHeight));\n stage.show();\n }", "title": "" }, { "docid": "5281a992cb0db23a9278d82825fbe22a", "score": "0.60936946", "text": "protected void popUp() {\n\t\ttry {\r\n\t\t\tNew_Register_Dialog new_Register_Dialog = new New_Register_Dialog(shlLogin, SWT.OPEN);\r\n\t\t\tnew_Register_Dialog.open();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1963d9c0e06dfae657e741a0e5b24f09", "score": "0.60920954", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tProAdmin_form product = new ProAdmin_form();\r\n\t\tproduct.setPid(fields.get(0).getText());\r\n\t\tproduct.setPname(fields.get(1).getText());\r\n\t\tproduct.setCost(fields.get(2).getText());\r\n\t\tproduct.setX(fields.get(3).getText());\r\n\t\tproduct.setY(fields.get(4).getText());\r\n\t\tproduct.setURL(fields.get(5).getText());\r\n\t\t\r\n\t\tproduct.setCid(combos.get(0).getSelectedItem().toString());\r\n\t\tproduct.setCategory(combos.get(1).getSelectedItem().toString());\r\n\t\tproduct.setFloor(combos.get(2).getSelectedItem().toString());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile file = new File(Add_Screen.filePath);\r\n\t\t\tproduct.setImage(file);\r\n\t\t} catch (NullPointerException nulle) {\r\n\t\t\tnulle.printStackTrace();\r\n\t\t}\r\n\r\n\t\tOnePro_admin obj = new OnePro_admin();\r\n\t\tobj.setProductForm(product);\r\n\r\n\t\t// pid 유지를 위한 처리\r\n\t\tif (obj.change(conn) == 0)\r\n\t\t{\r\n\t\t\tfields.get(0).setText(Integer.toString(Integer.parseInt(product.getPid()) + 1));\r\n\t\t\tfields.get(1).setText(null); fields.get(2).setText(null);\r\n\t\t\tfields.get(3).setText(null); fields.get(4).setText(null);\r\n\t\t\tfields.get(5).setText(null); fields.get(6).setText(null);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "333cd14cb73e2cc4801f6fff1c72f325", "score": "0.60806286", "text": "public void clicNewProduct() throws RemoteException {\n clear();\n txtName.setEnabled(true);\n btnSave.setEnabled(true);\n btnDelete.setEnabled(false);\n btnModify.setEnabled(false);\n tableReciper.setEnabled(true);\n btnCancel.setEnabled(true);\n }", "title": "" }, { "docid": "644c4aed0580d799dba35302a900c006", "score": "0.60765195", "text": "private void viewProd() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"\\n[\"+getCompany()+\" PRODUCTS]\");\r\n\t\tdatabase.viewSupplierProducts(getSupplierID());\r\n\t}", "title": "" }, { "docid": "c851d19f10ac0683d71a538e55aab163", "score": "0.6034306", "text": "@Override\r\n\tpublic void view() {\n\t\tint choice;\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.print(\"\\n[SUPPLIER PANEL]\\n\"\r\n\t\t\t\t\t+ \"[0]View Products\\n\"\r\n\t\t\t\t\t+ \"[1]Add Products\\n\"\r\n\t\t\t\t\t+ \"[2]Add Stock\\n\" \r\n\t\t\t\t\t+ \"[3]Sales Report\\n\"\r\n\t\t\t\t\t+ \"[4]Pending order details\\n\"\r\n\t\t\t\t\t+ \"[5]View My Profile\\n\"\r\n\t\t\t\t\t+ \"Choice: \");\r\n\t\t\tchoice = in.nextInt();\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tif (choice == 0) {\r\n\t\t\t\tviewProd();\r\n\t\t\t}\r\n\t\t\telse if (choice == 1) {\r\n\t\t\t\taddProd();\r\n\t\t\t}\r\n\t\t\telse if (choice == 2) {\r\n\t\t\t\taddStock();\r\n\t\t\t}\r\n\t\t\telse if (choice == 3) {\r\n\t\t\t\tsalesReport();\r\n\t\t\t}\r\n\t\t\telse if (choice == 4) {\r\n\t\t\t\taccomplishOrders();\r\n\t\t\t}\r\n\t\t\telse if (choice == 5) {\r\n\t\t\t\tviewMyProfile();\r\n\t\t\t}\r\n\t\t\tpromptEnterKey();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "887d40e0068103df8e0dec237a5122e7", "score": "0.60334426", "text": "private void addProduct() {\n\t\tif (productnametxt.getText().isEmpty() && producttypecmb.getValue() == null) {\r\n\t\t\tproductNameEmpty.setVisible(true);\r\n\t\t\tcmbEmpty.setVisible(true);\r\n\t\t}\r\n\t\t\r\n\t\t// Ingen varenavn\r\n\t\tif (productnametxt.getText().isEmpty() && producttypecmb.getValue() != null) {\r\n\t\t\tproductNameEmpty.setVisible(true);\r\n\t\t\tcmbEmpty.setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t\t// Ingen varetype\r\n\t\telse if (producttypecmb.getValue() == null && !productnametxt.getText().isEmpty()) {\r\n\t\t\tcmbEmpty.setVisible(true);\r\n\t\t\tproductNameEmpty.setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t\t// Udfyldt korrekt\r\n\t\telse if (producttypecmb.getValue() != null && !productnametxt.getText().isEmpty()){\r\n\t\tmenu.statuslbl.setText(productnametxt.getText() + \" er blevet tilføjet\");\r\n\t\tmenu.statuslbl1.setText(productnametxt.getText() + \" er blevet tilføjet\");\r\n\t\tProduct product = new Product(0, productnametxt.getText(), LocalDate.now(), amounttxt.getText(), producttypecmb.getValue(), notetxt.getText());\r\n\t\tproductController.addProduct(product);\r\n\t\tproductnametxt.clear();\r\n\t\tamounttxt.clear();\r\n\t\tnotetxt.clear();\r\n\t\tmenu.productList.add(product);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.5997471", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "bb594603fd9131977a9aeaa2f753ee41", "score": "0.5976689", "text": "public void newProduct (View view) {\n\t DataBase dbHandler = new DataBase(this);\n\t\n\t int quantity = \n Integer.parseInt(quantityBox.getText().toString());\n\t\n\t Product product = new Product();\n\t product.setProductName(productBox.getText().toString());\n\t product.setQuantity(quantity);\n\t \n\t //add the product to the database.\n\t dbHandler.addProduct(product);\n\t productBox.setText(\"\"); //reset the box\n\t quantityBox.setText(\"\"); //reset the box\n\t adapter.add(product);\n\n }", "title": "" }, { "docid": "f8482847f4cd3814bb621e13d557cfad", "score": "0.5965531", "text": "public String create() {\n try {\n FacesContext context = FacesContext.getCurrentInstance();\n Users user;\n // get current user.\n user = (Users)context.getExternalContext().getSessionMap().get(\"user\");\n current.setProductId(AutogetProductId());\n getFacade().create(current);\n JsfUtil.addSuccessMessage(ResourceBundle.getBundle(\"/Bundle\").getString(\"ProductCreated\"));\n \n String msg; \n // generate the message which will be send to JMS\n msg = user.getUsername() + \" adds product(\" + getEntityInfo() + \")\";\n JsfUtil.sendMessage(msg, \"jms/ProductMessageBeanFactory\", \"jms/ProductMessageBean\");\n \n return prepareCreate();\n } catch (Exception e) {\n JsfUtil.addErrorMessage(e, ResourceBundle.getBundle(\"/Bundle\").getString(\"PersistenceErrorOccured\"));\n return null;\n }\n }", "title": "" }, { "docid": "1c4ef9020241d39ec6c271e549686ef8", "score": "0.593767", "text": "@Given(\"^user goes to product options$\")\r\n\tpublic void user_goes_to_product_options() throws InterruptedException {\n\t\tproducts.hiddenbutton3.click();\r\n\t\tThread.sleep(2000);\r\n\t\tproducts.productbutton3.click();\r\n\t \r\n\t}", "title": "" }, { "docid": "2c46d152d789a377ad70d7d27ce3f5f3", "score": "0.5919487", "text": "@Override\n public void actionPerformed(ActionEvent event) {\n Product currentProduct = PASApplication.getQueryManager().getProduct(product_id);\n main.PASApplication.getBasket().addProduct(currentProduct);\n }", "title": "" }, { "docid": "0d70576bec394ae54fd54563e7ae4d7d", "score": "0.5912789", "text": "public void addProductButtonSelected(ActionEvent event) throws IOException {\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"/view/addProduct.fxml\"));\n Scene addProductScene = new Scene(addProductParent);\n\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\n stage.setScene(addProductScene);\n stage.show();\n }", "title": "" }, { "docid": "9d3ac23c9f90d04247273453b2f8e2dc", "score": "0.59020615", "text": "@Override\n public void onClick(View view) {\n new CreateNewProduct().execute();\n }", "title": "" }, { "docid": "e3e10ca37e94a25f10637c78b883ec2c", "score": "0.5874953", "text": "@FXML\n void openAddProduct() throws IOException\n {\n // Create a new menu using the add product fxml file\n MenuContainer<AddProduct> addProductMenu = new MenuContainer<>(\"../view/AddProduct.fxml\");\n // Populate the product ID field and the table view of all parts in the inventory in the add product controller\n addProductMenu.getController().populateData(this.inventory.generateProductId(), this.inventory.getAllParts());\n // Create the close request handler to pull the new product from the add product menu\n addProductMenu.setCloseAction(event ->\n {\n // Get the new product the user created in the add product menu\n final Product newProduct = addProductMenu.getController().getNewProduct();\n // Close the add product menu\n addProductMenu.getStage().close();\n // If the new product is null, then the user exited by canceling or clicking close. Otherwise, if the new\n // product is instantiated, add it to our inventory\n if (newProduct != null) this.inventory.addProduct(newProduct);\n });\n }", "title": "" }, { "docid": "e1960dc9b007294f6ab031309638d41e", "score": "0.585545", "text": "public void setProductName(String product_Name) { this.product_Name = product_Name; }", "title": "" }, { "docid": "d5925e1ca1e76528c7b31ac3c8616480", "score": "0.58386356", "text": "private void newProduto() {\r\n\t\ttry {\r\n\t\t\tthis.produto = new Produto();\r\n\t\t\tthis.produto.setCodigo(this.txtProdutoCodigo.getText().toString());\r\n\t\t\tthis.produto.setDescricao(this.txtProdutoDescricao.getText().toString());\r\n\t\t\tthis.produto.setQuantidade(Float.valueOf(new MascaraQtde().replaceField(this.txtProdutoQtd.getText().toString())));\r\n\t\t\tthis.produto.setPreco(Float.valueOf(new MascaraMonetaria().replaceField(this.txtProdutoPreco.getText().toString())));\r\n\t\t\tthis.produto.set_idOrcamento(this.orcamento.get_id());\t\t\r\n\t\t\tthis.produto.setFoto(\"SEM_FOTO\");\r\n\t\t\tthis.produto.setUnidadeMedida(unidadeMedida);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(LOG,e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7edc15f3eaa76237de1c85ecebddca21", "score": "0.58184177", "text": "private void showProductForm(Integer productId) {\n // determine if we are editing or adding a new part\n boolean isEditing = productId != null;\n\n // if editing grab the part or create a simple one\n Product product = isEditing\n ? inventory.lookupProduct(productId)\n : new Product(0, \"temp\", 0.00, 0, 0, 0);\n\n // create the text fields\n TextField productIdTf = new TextField();\n TextField productNameTf = new TextField();\n TextField productInvTf = new TextField();\n TextField productCostTf = new TextField();\n TextField productMaxTf = new TextField();\n TextField productMinTf = new TextField();\n ObservableList<Part> associatedParts = product.getAllAssociatedParts();\n // we need a backup here as well in case the user cancels\n ObservableList<Part> backupAssociatedParts = FXCollections.observableArrayList(associatedParts);\n\n // populate the form if editing\n if (isEditing) {\n try {\n productIdTf.setText(Integer.toString(product.getId()));\n productNameTf.setText(product.getName());\n productInvTf.setText(Integer.toString(product.getStock()));\n productCostTf.setText(Double.toString(product.getPrice()));\n productMaxTf.setText(Integer.toString(product.getMax()));\n productMinTf.setText(Integer.toString(product.getMin()));\n } catch (Exception e) {\n showError(e.getMessage());\n }\n }\n\n // setup parts tables\n TableView<Part> associatedPartsTable = getPartsTable();\n associatedPartsTable.setItems(associatedParts);\n TableView<Part> allPartsTable = getPartsTable();\n allPartsTable.setItems(inventory.getAllParts());\n associatedPartsTable.setPlaceholder(new Label(\"No parts associated yet with this product.\"));\n allPartsTable.setPlaceholder(new Label(\"No parts found.\"));\n\n // add part button\n Button addPartToProductButton = new Button(\"Add Associated Part\");\n addPartToProductButton.setOnAction(actionEvent -> {\n Part selectedPart = allPartsTable.getSelectionModel().getSelectedItem();\n if (selectedPart == null) {\n showError(\"Please select a part to add.\");\n } else {\n product.addAssociatedPart(selectedPart);\n }\n });\n\n // remove part button\n Button removePartFromProductButton = new Button(\"Remove Associated Part\");\n removePartFromProductButton.setOnAction(actionEvent -> {\n Part selectedPart = associatedPartsTable.getSelectionModel().getSelectedItem();\n if (selectedPart == null) {\n showError(\"Please select a part to remove.\");\n } else {\n // must confirm the delete via confirmation alert\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Dialog\");\n alert.setHeaderText(\"Remove a Part\");\n alert.setContentText(\"Are you sure you want to remove this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n // if the alert is confirmed then delete the part, otherwise close the alert\n if (result.isPresent() && result.get() == ButtonType.OK){\n if(!product.deleteAssociatedPart(selectedPart)) {\n alert.close();\n showError(\"There was an error deleting the part. Please try again later.\");\n }\n } else {\n alert.close();\n }\n }\n });\n\n // setup the dialog\n Dialog<String> addProductDialog = new Dialog<>();\n addProductDialog.setTitle(isEditing ? \"Modify Product\" : \"Add Product\");\n addProductDialog.setResizable(true);\n\n // product id\n productIdTf.setPromptText(\"Auto Gen - Disabled\");\n productIdTf.setDisable(true); // WHY SHOW IT IF ALWAYS DISABLED?\n Label productIdLabel = new Label(\"ID\");\n\n // product name\n productNameTf.setPromptText(\"Product Name\");\n Label productNameLabel = new Label(\"Name\");\n\n // product inventory\n productInvTf.setPromptText(\"0\");\n Label productInventoryLabel = new Label(\"Inventory\");\n // force the field to be numeric only\n productInvTf.textProperty().addListener((observableValue, oldV, newV) -> {\n if (!newV.matches(\"\\\\d*\")) {\n productInvTf.setText(newV.replaceAll(\"[^\\\\d]\", \"\"));\n }\n });\n\n // product cost\n productCostTf.setPromptText(\"0.00\");\n Label productCostLabel = new Label(\"Cost\");\n // force to be double entry only\n productCostTf.textProperty().addListener((observableValue, oldV, newV) -> {\n if (!newV.matches(costRegex)){\n productCostTf.setText(newV.replaceAll(\"[\" + costRegex + \"]\", \"\"));\n }\n });\n\n // product max\n productMaxTf.setPromptText(\"10\");\n Label productMaxLabel = new Label(\"Max\");\n // numbers only\n productMaxTf.textProperty().addListener((observableValue, oldV, newV) -> {\n if (!newV.matches(\"\\\\d*\")) {\n productMaxTf.setText(newV.replaceAll(\"[^\\\\d]\", \"\"));\n }\n });\n\n // product min\n productMinTf.setPromptText(\"1\");\n Label productMinLabel = new Label(\"Min\");\n // numbers only\n productMinTf.textProperty().addListener((observableValue, oldV, newV) -> {\n if (!newV.matches(\"\\\\d*\")) {\n productMinTf.setText(newV.replaceAll(\"[^\\\\d]\", \"\"));\n }\n });\n\n // setup the grid panes\n // this is a nested gridpane structure\n GridPane gridPaneParent = new GridPane();\n GridPane formGridPane = new GridPane();\n GridPane tableViewGridPane = new GridPane();\n ColumnConstraints constraints = new ColumnConstraints();\n constraints.setHgrow(Priority.ALWAYS);\n formGridPane.getColumnConstraints().addAll(new ColumnConstraints(), constraints);\n gridPaneParent.getColumnConstraints().addAll(new ColumnConstraints(), constraints);\n tableViewGridPane.getColumnConstraints().addAll(new ColumnConstraints(), constraints);\n\n formGridPane.setVgap(10);\n formGridPane.setHgap(10);\n formGridPane.setPadding(new Insets(defaultPadding * 3));\n tableViewGridPane.setVgap(10);\n tableViewGridPane.setHgap(10);\n tableViewGridPane.setPadding(new Insets(defaultPadding * 3));\n // add basic text fields\n formGridPane.add(productIdLabel, 0, 0);\n formGridPane.add(productIdTf, 1, 0);\n formGridPane.add(productNameLabel, 0, 1);\n formGridPane.add(productNameTf, 1, 1);\n formGridPane.add(productInventoryLabel, 0, 2);\n formGridPane.add(productInvTf, 1, 2);\n formGridPane.add(productCostLabel, 0, 3);\n formGridPane.add(productCostTf, 1, 3);\n formGridPane.add(productMaxLabel, 0, 4);\n formGridPane.add(productMaxTf, 1, 4);\n formGridPane.add(productMinTf, 2, 4);\n formGridPane.add(productMinLabel, 3, 4);\n\n // right col table view\n tableViewGridPane.add(getAllPartsView(allPartsTable), 0, 0);\n tableViewGridPane.add(allPartsTable, 0, 1);\n tableViewGridPane.add(addPartToProductButton, 0, 2);\n tableViewGridPane.add(associatedPartsTable, 0, 3);\n tableViewGridPane.add(removePartFromProductButton, 0, 4);\n\n // setup parent 2 col view\n gridPaneParent.add(formGridPane, 0, 0);\n gridPaneParent.add(tableViewGridPane, 1, 0);\n\n // set content of the dialog\n addProductDialog.getDialogPane().setContent(gridPaneParent);\n\n // add dialog buttons\n addProductDialog.getDialogPane().getButtonTypes().addAll(ButtonType.CANCEL, ButtonType.OK);\n\n // add button event listeners\n final Button saveButton = (Button) addProductDialog.getDialogPane().lookupButton(ButtonType.OK);\n final Button cancelButton = (Button) addProductDialog.getDialogPane().lookupButton(ButtonType.CANCEL);\n\n // process a cancel/close\n cancelButton.addEventFilter(\n ActionEvent.ACTION,\n event -> {\n associatedParts.clear();\n backupAssociatedParts.forEach(product::addAssociatedPart);\n }\n );\n\n // process the save\n saveButton.addEventFilter(\n ActionEvent.ACTION,\n event -> {\n /**\n * the following will attempt to parse the fields as ints/doubles\n * if it's not an int/double the catch will display an error\n * I'm hoping this will suffice requirement runtime error requirement in the Javadoc\n * @fixme would be nice to validate input fields BEFORE parsing. This will get better UX in the next version.\n */\n try {\n String productName = productNameTf.getText();\n boolean productNameValid = productName.length() > 0;\n int productInventory = Integer.parseInt(productInvTf.getText());\n double productCost = Double.parseDouble(productCostTf.getText());\n boolean productCostValid = productCost >= 0;\n int productMax = Integer.parseInt(productMaxTf.getText());\n boolean productMaxValid = productMax >= 0;\n int productMin = Integer.parseInt(productMinTf.getText());\n boolean productMinValid = productMin >= 0;\n boolean productMinMaxValid = productMaxValid && productMinValid && productMax >= productMin;\n boolean productInventoryValid = productInventory <= productMax && productInventory >= productMin;\n\n // if we passed validation\n if (!productNameValid) {\n showError(\"Please provide a valid product name\");\n event.consume();\n } else if (!productInventoryValid) {\n showError(\"Please provide a valid product inventory. It must be between min and max\");\n event.consume();\n } else if (!productCostValid) {\n showError(\"Pleae provide a valid cost\");\n event.consume();\n } else if (!productMinMaxValid) {\n showError(\"Please provide valid min/max values\");\n event.consume();\n } else {\n Product newProduct = new Product(isEditing ? productId : getNewProductId(), productName, productCost, productInventory, productMin, productMax);\n // now copy all the associated parts\n for(Part myPart : associatedParts) {\n newProduct.addAssociatedPart(myPart);\n }\n if (isEditing) {\n int productIndex = getPartIndexFromPartId(productId);\n inventory.updateProduct(productIndex, newProduct);\n } else {\n inventory.addProduct(newProduct);\n }\n addProductDialog.close();\n }\n } catch (Exception e) {\n showError(e.getMessage());\n event.consume();\n }\n });\n addProductDialog.showAndWait();\n // reset when closing\n addProductDialog.close();\n addProductDialog.hide();\n }", "title": "" }, { "docid": "f0dc3b8996fd95cc4ffc21a36ece52d6", "score": "0.5777827", "text": "@Test(dependsOnMethods = \"navigateToCommingSoonProductTest\", description = \"Add product to the wish list\")\n\tpublic void addProductToTheWishListTest() {\n\t\textentLogger = extent.startTest(\"addProductToTheWishListTest\");\n\t\topenCartProductDetailPage = new OpenCartProductDetailPage(driver);\n\t\topenCartProductDetailPage.addProductToWistList();\n\t\tlogger.info(\"Product is successfully added to the wish list\");\n\t\textentLogger.log(LogStatus.INFO,\"Product is successfully added to the wish list\");\n\t\textentLogger.log(LogStatus.PASS,\"Test Case (addProductToTheWishListTest) is Passed\");\n\t}", "title": "" }, { "docid": "6a22a10afa06936b211e63b086bf16d0", "score": "0.57662106", "text": "CPNProduct createCPNProduct();", "title": "" }, { "docid": "9fcb0221a2c17c1e4985d2f04bec75c1", "score": "0.5761687", "text": "protected void setDetails() {\n\t\tString[] subMenuButtonNames = new String[] {\"Set currency\", \"Set minimum coin input value\", \"Set maximum coin input value\",\n\t\t\"Return to main menu\"};\n\t\t//Instantiate a new frame window and initialize it with a new DisplayProgramConfigurationsPanel window\n\t\tsubMenudialog = new FrameWindow(\"Set Details Sub-Menu\", new DisplayProgramConfigurationsPanel(subMenuButtonNames));\n\t\t//We hide the main window\n\t\tTestCoinSorter.mainDialog.setVisible(false);\n\t\t//show DisplayProgramConfigurationsPanel window\n\t\tsubMenudialog.setVisible(true);\t\n\t}", "title": "" }, { "docid": "592ec6ef470ea2dadc5d5ef2dc482a93", "score": "0.5761063", "text": "private void ProductDetails(){\n frame = new JFrame(\"ProductGUI\");\n frame.setSize(700,650);\n frame.setLayout(null);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n\n title = new JLabel(\"DETAILS OF THE PRODUCT\");\n title.setBounds(250,10,200,40);\n frame.add(title); \n\n /*for add Product*/ \n productNumber = new JLabel(\"Product Number\");\n productNumber.setBounds(30,50,100,30);\n frame.add(productNumber);\n\n tfProductNumber = new JTextField();\n tfProductNumber.setBounds(130,57,150,20);\n frame.add(tfProductNumber);\n\n productName = new JLabel(\"Product Name\");\n productName.setBounds(30,80,100,30);\n frame.add(productName);\n\n tfProductName = new JTextField();\n tfProductName.setBounds(130,87,150,20);\n frame.add(tfProductName);\n\n pricePerUser = new JLabel(\"Price Per User\");\n pricePerUser.setBounds(30,110,100,30);\n frame.add(pricePerUser);\n\n tfPricePerUser = new JTextField();\n tfPricePerUser.setBounds(130,117,150,20);\n frame.add(tfPricePerUser);\n\n btnAddProduct = new JButton(\"Add Product\");\n btnAddProduct.setBounds(90,140,120,30);\n frame.add(btnAddProduct);\n btnAddProduct.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n addProduct();\n } \n });\n /*for Activate License For Product*/\n productNumber = new JLabel(\"Product Number\");\n productNumber.setBounds(350,50,100,30);\n frame.add(productNumber);\n\n tfProductNumber1 = new JTextField();\n tfProductNumber1.setBounds(490,57,150,20);\n frame.add(tfProductNumber1);\n\n clientCompanyName = new JLabel(\"Client Company Name\");\n clientCompanyName.setBounds(350,80,150,30);\n frame.add(clientCompanyName);\n\n tfClientCompanyName = new JTextField();\n tfClientCompanyName.setBounds(490,87,150,20);\n frame.add(tfClientCompanyName);\n\n noOfUser = new JLabel(\"No Of User\");\n noOfUser.setBounds(350,110,100,30);\n frame.add(noOfUser);\n\n tfNoOfUser = new JTextField();\n tfNoOfUser.setBounds(490,117,150,20);\n frame.add(tfNoOfUser);\n\n licenseActivationDate = new JLabel(\"license Activation Date\");\n licenseActivationDate.setBounds(350,140,150,30);\n frame.add(licenseActivationDate);\n\n tfLicenseActivationDate = new JTextField();\n tfLicenseActivationDate.setBounds(490,147,150,20);\n frame.add(tfLicenseActivationDate);\n\n expiryDate = new JLabel(\"Expiry Date\");\n expiryDate.setBounds(350,170,100,30);\n frame.add(expiryDate);\n\n tfExpiryDate = new JTextField();\n tfExpiryDate.setBounds(490,177,150,20);\n frame.add(tfExpiryDate);\n\n activationKey = new JLabel(\"Activation Key\");\n activationKey.setBounds(350,200,100,30);\n frame.add(activationKey);\n\n tfActivationKey = new JTextField();\n tfActivationKey.setBounds(490,207,150,20);\n frame.add(tfActivationKey);\n\n totalPrice = new JLabel(\"Total Price\");\n totalPrice.setBounds(350,240,290,30);\n frame.add(totalPrice);\n\n tfTotalPrice = new JTextField();\n tfTotalPrice.setBounds(490,237,150,20);\n tfTotalPrice.setEditable(false);\n frame.add(tfTotalPrice);\n\n btnActivateLicense = new JButton(\"Activate license for the Product\");\n btnActivateLicense.setBounds(350,280,290,30);\n frame.add(btnActivateLicense);\n btnActivateLicense.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n activateLicense();\n } \n }); \n\n /*Terminate License for the product*/ \n\n btnTerminateLicense = new JButton(\"Terminate License for the product\");\n btnTerminateLicense.setBounds(350,370,290,30);\n frame.add(btnTerminateLicense);\n btnTerminateLicense.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n terminateLicense();\n } \n });\n\n /*set product price per user*/\n productNumber = new JLabel(\"Product Number\");\n productNumber.setBounds(30,330,100,30);\n frame.add(productNumber);\n\n tfProductNumber3 = new JTextField();\n tfProductNumber3.setBounds(130,337,150,20);\n frame.add(tfProductNumber3);\n\n pricePerUser = new JLabel(\"Price Per User\");\n pricePerUser.setBounds(30,360,100,30);\n frame.add(pricePerUser);\n\n tfPricePerUser1 = new JTextField();\n tfPricePerUser1.setBounds(130,367,150,20);\n frame.add(tfPricePerUser1);\n\n btnSetPricePerUser = new JButton(\"set product price per user\");\n btnSetPricePerUser.setBounds(30,400,250,30);\n frame.add(btnSetPricePerUser);\n btnSetPricePerUser.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n setPricePerUser();\n }\n });\n\n /*for Display button*/ \n btnDisplay = new JButton(\"Display\");\n btnDisplay.setBounds(150,500,100,30);\n frame.add(btnDisplay);\n btnDisplay.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n display();\n } \n });\n\n /*for Clear button*/\n btnClear = new JButton(\"Clear\");\n btnClear.setBounds(450,500,100,30);\n frame.add(btnClear);\n btnClear.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n clear();\n } \n });\n\n }", "title": "" }, { "docid": "f623504e66aa3d842a069cd5afd13474", "score": "0.57387584", "text": "public void janCadProduto() {\n if(dlgCadastrarProduto == null){\n dlgCadastrarProduto = new CadastrarProdutoDialog(telaPrincipal, true, this);\n }\n dlgCadastrarProduto.setVisible(true);\n }", "title": "" }, { "docid": "660a0e02e275227c5fec3e3bf4cc5c16", "score": "0.5731347", "text": "public void setProduct(String productName) { \r\n\t \tsearchBox.sendKeys(productName); \r\n\t }", "title": "" }, { "docid": "fcf94738c8ecdb5ace044b91e4c5763b", "score": "0.5726343", "text": "void openOrderEditDialog(Products products, int index);", "title": "" }, { "docid": "e387192db22a605fcaa1b9dc7d5e4886", "score": "0.57164264", "text": "public void buttonBuyStockClick(MouseEvent e) {\n gui.showBuyStockWindow(\"\", \"\", 0); // TODO insert variables to display when window opens\n }", "title": "" }, { "docid": "35dca5dc6ea83ada76fe18b3a625ba6f", "score": "0.5713205", "text": "public static void printProductInfo()\n {\n //get product info\n String text=ProductInfo.getProductInfoPrintout();\n \n //print values\n System.out.println(text);\n }", "title": "" }, { "docid": "9341d3435cf3a64174a259f2c5740ee5", "score": "0.5709909", "text": "public ProductForm()\n {\n \tthis.productBean = new Product();\n \tthis.isNewProduct = true;\n }", "title": "" }, { "docid": "fced79e01b44d812410bd27897868e27", "score": "0.57005966", "text": "private void clickSaveHarvestDetails() {\n if (currentField != null\n && currentField.currentPlanting != null\n && !currentField.currentPlanting.getType().equals(\"Empty\")\n && !currentField.currentPlanting.getType().equals(\"\")\n && currentField.currentPlanting.getType() != null\n && fp4.jdccRecordHarvest.getSelectedDate() != null\n && fp4.jspnYield.getValue() != null) {\n\n fp2.jbl_fieldname.setText(\"View Fields - Field (Empty)\");\n\n currentField.recordNewHarvest(\n new Harvest(new Planting(\n currentField.currentPlanting.getType(),\n currentField.currentPlanting.getPricePerTon()\n ),\n fp4.jdccRecordHarvest.getSelectedDate().getTime(),\n (double) fp4.jspnYield.getValue(),\n fp1.jlPickField.getSelectedIndex()\n )\n );\n\n JOptionPane.showMessageDialog(getContentPane(),\n \"Harvest successfully recorded\");\n\n //currentServer.updateFarmer(currentFarmer);\n layout.show(contentPane, \"fp2\");\n } else {\n JOptionPane.showMessageDialog(getContentPane(),\n \"Failed to record harvest: \"\n + \"Please make sure all \"\n + \"of the required fields are filled in.\");\n }\n }", "title": "" }, { "docid": "9247721870e80d90f073165074a803ca", "score": "0.5697855", "text": "public void testCreation() throws InterruptedException {\n new ActionNoBlock(\"File|New Project\",null).perform(); // NOI18N\n\n NewProjectWizardOperator op = new NewProjectWizardOperator();\n op.selectProject(\"Java Desktop Application\"); // NOI18N\n op.next();\n op.next();\n \n NbDialogOperator newJDAOp = new NbDialogOperator(\"New Desktop Application\"); // NOI18N\n new JTextFieldOperator(newJDAOp,2).setText(getTestProjectName());\n new JButtonOperator(newJDAOp, \"Finish\").push(); // NOI18N\n Thread.sleep(15000);\n \n FormDesignerOperator fdo= new FormDesignerOperator(getTestPackageName()+\"View.java\");\n fdo.editor();\n Thread.sleep(500);\n DocumentsDialogOperator ddo= DocumentsDialogOperator.invoke();\n int[] array={0,1,2};\n ddo.selectDocuments(array);\n Thread.sleep(500);\n ddo.btCloseDocuments().doClick();\n \n }", "title": "" }, { "docid": "1e1ee3aca76a374b24d4bdb03ca94fc6", "score": "0.5684923", "text": "public void addProductListener(ActionEvent event) throws Exception\n {\n // Get FXML for the Product form\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View_Controller/ProductForm.fxml\"));\n Parent root = loader.load();\n\n ProductController controller = loader.getController();\n controller.setFormTitleLabel(\"Add Product\");\n Scene productFormScene = new Scene(root);\n\n // Set scene\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\n window.setScene(productFormScene);\n window.show();\n\n }", "title": "" }, { "docid": "ea8eb487c8712c8249f7d7f69a792f19", "score": "0.56843483", "text": "public void preSave(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ProposalDevelopmentForm pdForm = (ProposalDevelopmentForm) form;\n if (pdForm.isHidePropDevDocDescriptionPanel()) {\n pdForm.getProposalDevelopmentDocument().defaultDocumentDescription();\n }\n }", "title": "" }, { "docid": "474c4160135068c4c6a2f2744702a418", "score": "0.56838906", "text": "public void enterProductIdentifier(String productidentifier)\n\t{\n\t\twaitForVisibility(productIdentifier);\n\t\tproductIdentifier.clear();\n\t\tproductIdentifier.sendKeys(productidentifier);\n\t}", "title": "" }, { "docid": "afc64383dfb7388dd35fd04fa9411000", "score": "0.568224", "text": "public void popUpNow() {\n\t\t\n\n\t\tif (Common.isAdmin) {\n\t\t\t// let the admin choose\t\t\n\t\t\tCommon.foc = this;\n\t\t\t// set it to false so the value changes and the event is triggered\n\t\t\tdefaultValuesStorage.setValue(false);\n\t\t\tdefaultValuesStorage.setValue(true, true);\n\t\t\t\n\t\t\tStorageManagerPortlet.instance.mainDialogBox.popUpSomePanel(this);\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t\n\t\t\tStorageManagerPortlet.instance.sourceAndDestination.setStorageType(side, StorageType.MONGODB);\n\t\t\t\n\t\t\t// and use default values for others\n\t\t\tparams.put(ServiceParameter.CLASS, \"data-transfer\");\n\t\t\tparams.put(ServiceParameter.NAME, \"scheduler-portlet\");\n\t\t\tparams.put(ServiceParameter.ACCESS_TYPE, \"PRIVATE\");\n\t\t\tparams.put(ServiceParameter.AREA_TYPE, \"Persistent\");\n\t\t\tparams.put(ServiceParameter.OWNER, Common.resourceName);\n\t\t\t\n\t\t\tload();\n\t\t}\n\t}", "title": "" }, { "docid": "3339005c33d03818f1d13520d000d138", "score": "0.56797457", "text": "@RequestMapping(path = \"/product/create\", method = { RequestMethod.GET })\n\tpublic String createProduct(Model model) {\n\t\tmodel.addAttribute(\"product\", new Product());\n\t\treturn \"views/productForm\";\n\t}", "title": "" }, { "docid": "409df472bbf05095324bcd2e7fda8331", "score": "0.56673986", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\tSaveProductDetails task2 = new SaveProductDetails();\n\t\t\ttask2.execute();\n\t\t\t}", "title": "" }, { "docid": "6591a57d404d838613093f6c1dcddc2d", "score": "0.5659417", "text": "public static void create() {\n \tJsonObject jobject = getCookieAsJson(VIPR_START_GUIDE);\n \tString isGuideAdd = null;\n \tif (jobject != null && jobject.get(GUIDE_VISIBLE) != null) {\n \t\tisGuideAdd = jobject.get(GUIDE_VISIBLE).getAsString();\n \t}\n \tif( isGuideAdd != null && StringUtils.equalsIgnoreCase(isGuideAdd, \"true\")) {\n \t\taddReferenceDataAllFlash();\n \t}\n \telse {\n \t\taddReferenceData();\n \t}\n StorageSystemForm storageArray = new StorageSystemForm();\n // put all \"initial create only\" defaults here rather than field initializers\n storageArray.type = StorageSystemTypes.VMAX;\n storageArray.useSSL = true;\n storageArray.userName = \"\";\n storageArray.smisProviderUseSSL = false;\n render(\"@edit\", storageArray);\n }", "title": "" }, { "docid": "c00c2f163a3a57d8c4811d9286da24b3", "score": "0.5658628", "text": "@When(\"user clicks on button Create and continue\")\n\tpublic void user_clicks_on_button_Create_and_continue() {\n\t\tNewTaskPage.clickCreateAndContinue();\n\n\t}", "title": "" }, { "docid": "54aeff7955e40ad6943e37391b3fd9ac", "score": "0.5653944", "text": "private void newProject() {\n Toast.makeText(MainActivity.this,\"new project\", Toast.LENGTH_SHORT).show();\n showAddProjectDialog(MainActivity.this);\n }", "title": "" }, { "docid": "88b41e4cdadf6bec5565342cfadd8522", "score": "0.56464005", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tswitch (e.getActionCommand()) {\n\t\t\n\t\tcase \"Add Product\"://if press Select button in the Product Area, we must display add product into shopping cart\n\t\t\t\n\t\t\tint index = productList.getSelectedIndex();//Get the index of the selected product from the List\n\t\t\tProduct currentProduct = AvailableProductFromCompany.get(index);//Get selected product according to its index\n\n\t\t\t//Update the list of product by calling add product to the shopping cart\n\t\t\taddProductIntoShoppingCart(currentProduct);\n\t\t\t\n\t\t\t//Update the screen\n\t\t\tdisplayListOfProducts();\n\t\t\t\n\t\tbreak;\n\t\t\n\t\tcase \"Shopping Cart\"://Go to the shopping cart (next window)\n\t\t\tdisplayShoppingCart();\n\t\tbreak;\n\t\t\n\t\tcase \"Order\":\n\t\t\t//Get customer information from the form\n\t\t\tCustomer customer = new Customer(customerFirstName.getText(), customerLastName.getText(), customerAddress.getText(), customerEmail.getText(), customerPhoneNumber.getText() );\n\t\t\t//Give information to the ShippingEntity\n\t\t\tshippingEntity.UpdateShippingDetails(new Transaction(customer, new Timestamp(new Date().getTime()),ProductShoppingCart,company.getTotalPrice(ProductShoppingCart)));\n\t\t\t\n\t\t\t//Update the Screen\n\t\t\tdisplayValidationArea();\n\t\tbreak;\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "39a70027c4fd27504e64ee56577a4b1b", "score": "0.56437427", "text": "@FXML\n\tprotected void btNewProfessor(ActionEvent event) {\n\n\t\tMain.changeScreen(\"cadProfessor\");\n\n\t}", "title": "" }, { "docid": "21b1691496f1553f62124703a3d9e0db", "score": "0.5639178", "text": "public AdminGUI(ProducerInterface prod)\t{\n \t\tthis.producerCallback = prod;\n \t}", "title": "" }, { "docid": "b1d3133bcffae9e2ad6a12a838d9a4cb", "score": "0.5632747", "text": "public void buttonCreateFolioClick(MouseEvent e) {\n gui.showCreateFolioWindow();\n }", "title": "" }, { "docid": "96261105bd2dc2f124438abcdab5d6e2", "score": "0.5627253", "text": "private void editProduct() {\n if (!name.getText().equals(\"\")){\n this.product.setName(name.getText());\n }\n\n if (!information.getText().equals(\"\"))\n {\n this.product.setInformation(information.getText());\n }\n\n if (!price.getText().equals(\"\")) {\n this.product.setPrice(Integer.parseInt(price.getText()));\n }\n\n\n }", "title": "" }, { "docid": "f17b21eac71b251de93befd721482304", "score": "0.5623256", "text": "@Test(dependsOnMethods = \"navigateToHomePageTest\", description = \"Navigate to auto populated adv. product details page\")\n\tpublic void navigateToCommingSoonProductTest() {\n\t\textentLogger = extent.startTest(\"navigateToCommingSoonProductTest\");\n\t\topenCartYourAccountPage = new OpenCartYourAccountPage(driver);\n\t\topenCartYourAccountPage.navigateToProductDetailPage();\n\t\tlogger.info(\"User has been successfully navigated to auto populated adv. product details page\");\n\t\textentLogger.log(LogStatus.INFO,\"User has been successfully navigated to auto populated adv. product details page\");\n\t\textentLogger.log(LogStatus.PASS,\"Test Case (navigateToCommingSoonProductTest) is Passed\");\n\t}", "title": "" }, { "docid": "17b056ecd25c47858ff17b93a4d25c5f", "score": "0.5619017", "text": "@FXML\n void handleAddProduct(MouseEvent event) {\n try {\n String productName = productNameText.getText();\n String manufacturer = manufacText.getText();\n ItemType itemChoice = itemtype_choice.getValue();\n if (productName.isEmpty()) throw new IllegalArgumentException(\"Product must have a name.\");\n if (manufacturer.isEmpty()) throw new IllegalArgumentException(\"Manufacturer must have a name.\");\n if (itemChoice == null) throw new IllegalArgumentException(\"Must choose an item.\");\n DatabaseManager dm = new DatabaseManager();\n dm.addProductToDB(productName, manufacturer, itemChoice);\n loadProductList();\n } catch (IllegalArgumentException ex) {\n ErrorMessage.popUpCreater(ex.getMessage());\n }\n }", "title": "" }, { "docid": "a12c7cbafcb237f26d768f554bd8c2c4", "score": "0.56130314", "text": "public void enterLicensesAndCertificationsDetails() {\n try {\n waitFor(ExpectedConditions.elementToBeClickable(degreeSkillsName), 15);\n degreeSkillsName.sendKeys(data.getLicenseName());\n waitFor(ExpectedConditions.elementToBeClickable(skillsNumber), 15);\n skillsNumber.sendKeys(data.getLicenseNumber());\n reportWithScreenShot(\"User enter License and Certifications details \");\n } catch (Exception e) {\n reportWithScreenShot(\"Error while entering License and Certifications details:\" + e.getMessage());\n Assert.fail();\n }\n }", "title": "" }, { "docid": "26c7f3e8d140d3214de440adbda67557", "score": "0.5603318", "text": "@Override\n public void productClick(String id) {\n GoodsDetailActivity.start(OrderInfoActivity.this, Integer.parseInt(id));\n\n }", "title": "" }, { "docid": "f3a4a8ecfce6317f556954aab5568d7d", "score": "0.5601573", "text": "public PurchaseProduct(ProductSelectionWindow payWin) {\r\n\t\tproductMap = FileDataWrapper.productMap;\r\n\t\torder = FileDataWrapper.receipt;\r\n\t\tsetTitle(\"Purchase Product\");\r\n\t\tsetSize(500, 339);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tcontentPanel.setBounds(0, 0, 484, 301);\r\n\t\tcontentPanel.setBackground(Color.LIGHT_GRAY);\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\t{\r\n\t\t\tJPanel panel = new JPanel();\r\n\t\t\tpanel.setBounds(5, 5, 474, 221);\r\n\t\t\tpanel.setBorder(new LineBorder(new Color(0, 0, 0), 2));\r\n\t\t\tcontentPanel.add(panel);\r\n\t\t\tpanel.setLayout(null);\r\n\t\t\t{\r\n\t\t\t\tJLabel lblProductBarCode = new JLabel(\"Product Bar Code:\");\r\n\t\t\t\tlblProductBarCode.setFont(new Font(\"Arial\", Font.PLAIN, 17));\r\n\t\t\t\tlblProductBarCode.setBounds(25, 69, 141, 53);\r\n\t\t\t\tpanel.add(lblProductBarCode);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tJLabel lblEnterProductDetails = new JLabel(\"Enter product Details\");\r\n\t\t\tlblEnterProductDetails.setFont(new Font(\"Arial\", Font.BOLD, 18));\r\n\t\t\tlblEnterProductDetails.setBounds(15, 0, 197, 53);\r\n\t\t\tpanel.add(lblEnterProductDetails);\r\n\t\t\t\r\n\t\t\tJSeparator separator = new JSeparator();\r\n\t\t\tseparator.setBounds(10, 55, 450, 4);\r\n\t\t\tpanel.add(separator);\r\n\t\t\t\r\n\t\t\tJLabel lblQuantity = new JLabel(\"Quantity:\");\r\n\t\t\tlblQuantity.setFont(new Font(\"Arial\", Font.PLAIN, 17));\r\n\t\t\tlblQuantity.setBounds(25, 128, 141, 53);\r\n\t\t\tpanel.add(lblQuantity);\r\n\t\t\t\r\n\t\t\tbarCodetext = new JTextField();\r\n\t\t\tbarCodetext.setBounds(181, 82, 206, 26);\r\n\t\t\tbarCodetext.setDocument(new PlainDocument() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\r\n\t\t\t\t\tif (str.matches(\"[0-9]*\"))\r\n\t\t\t\t\t\tsuper.insertString(offs, str, a);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpanel.add(barCodetext);\r\n\t\t\tbarCodetext.setColumns(10);\r\n\t\t\t\r\n\t\t\tproductQnty = new JTextField();\r\n\t\t\tproductQnty.setColumns(10);\r\n\t\t\tproductQnty.setBounds(181, 141, 206, 26);\r\n\t\t\tproductQnty.setDocument(new PlainDocument() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\r\n\t\t\t\t\tif (str.matches(\"[0-9]*\"))\r\n\t\t\t\t\t\tsuper.insertString(offs, str, a);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpanel.add(productQnty);\r\n\t\t}\r\n\t\t{\r\n\t\t\tJPanel buttonPane = new JPanel();\r\n\t\t\tbuttonPane.setBounds(5, 227, 474, 74);\r\n\t\t\tcontentPanel.add(buttonPane);\r\n\t\t\t{\r\n\t\t\t\tJButton okButton = new JButton(\"OK\");\r\n\t\t\t\tokButton.setBounds(68, 11, 150, 50);\r\n\t\t\t\tokButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t/*Code to collect product bar code and Quantity*/\r\n\t\t\t\t\t\tString barCode = barCodetext.getText();\r\n\t\t\t\t\t\tString productQuantityStr = productQnty.getText();\r\n\t\t\t\t\t\tlong productQuantity = 0l;\r\n\t\t\t\t\t\tString validationMsg = orderValidator.validateProductPurchaseInput(barCode,productQuantityStr);\r\n\t\t\t\t\t\tif(validationMsg != null){\r\n\t\t\t\t\t\t\tDisplayUtil.displayValidationError(buttonPane,validationMsg);\r\n\t\t\t\t\t\t}else if(!barCode.equals(\"\") && !productQuantityStr.equals(\"\")){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tproductQuantity = Long.parseLong(productQuantityStr);\r\n\t\t\t\t\t\t\t\t//get the selected product\r\n\t\t\t\t\t\t\t\tvalidationMsg = orderValidator.validateSelectedProduct(barCode,productMap);\r\n\t\t\t\t\t\t\t\tif(validationMsg != null){\r\n\t\t\t\t\t\t\t\t\tDisplayUtil.displayValidationError(buttonPane,validationMsg);\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tProduct product = productMap.get(barCode);\r\n\t\t\t\t\t\t\t\t\tvalidationMsg = orderValidator.validateProductOrder(product,productQuantity);\r\n\t\t\t\t\t\t\t\t\tif(validationMsg != null){\r\n\t\t\t\t\t\t\t\t\t\tDisplayUtil.displayValidationError(buttonPane,validationMsg);\r\n\t\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\t\tLineItem item = new LineItem(product, productQuantity);\r\n\t\t\t\t\t\t\t\t\t\torder.addLineItem(item);\r\n\t\t\t\t\t\t\t\t\t\tpayWin.refreshTable(item.getItemsArray());\r\n\t\t\t\t\t\t\t\t\t\tpayWin.updatedTotal(order);\r\n\t\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}catch(NumberFormatException ne){\r\n\t\t\t\t\t\t\t\tDisplayUtil.displayValidationError(buttonPane, StoreConstants.PRODUCT_QUANTITY_NON_NUMERIC);\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\tbuttonPane.setLayout(null);\r\n\t\t\t\tokButton.setActionCommand(\"OK\");\r\n\t\t\t\tbuttonPane.add(okButton);\r\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\r\n\t\t\t}\r\n\t\t\t{\r\n\t\t\t\tJButton cancelButton = new JButton(\"Cancel\");\r\n\t\t\t\tcancelButton.setBounds(261, 11, 150, 50);\r\n\t\t\t\tcancelButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tcancelButton.setActionCommand(\"Cancel\");\r\n\t\t\t\tbuttonPane.add(cancelButton);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eac3b45688be4fbbd67d07bbb4453321", "score": "0.56000996", "text": "@When(\"user clicks on the new button\")\n\tpublic void user_clicks_on_the_new_button() {\n\t\tSystem.out.println(\"create new account..\");\n\t}", "title": "" }, { "docid": "9989edb50e5ae60ac21ce81b90259619", "score": "0.55966824", "text": "void setProductDetails(int pid, String name, int price,String os, int ram,int sdCardSize)\n\t{\n\t\tthis.pid=pid;\n\t\tthis.name=name;\n\t\tthis.price=price;\n\t\tthis.os=os;\n\t\tthis.sdCardsSize=sdCardSize;\n\t\tthis.ram=ram;\n\t\tSystem.out.println(\"Data written in Product Object\");\t\n }", "title": "" }, { "docid": "44a0309de5716b1a34183d3d11465d5e", "score": "0.55949163", "text": "public void fillClientsNames() throws Exception {\n\n this.product = database.findProductByName((String) comboBoxProducts.getValue());\n name.setPromptText(product.getName());\n information.setPromptText(product.getInformation());\n price.setPromptText(Integer.toString(product.getPrice()));\n }", "title": "" }, { "docid": "be796595e86ff8d9928137fa56596d27", "score": "0.55878884", "text": "public void clickOnProducts()\n\t{\n\t\twaitForVisibility(products);\n\t\tproducts.click();\n\t}", "title": "" }, { "docid": "479d4745dabbb7a37f9bce6f6e8f417d", "score": "0.55842805", "text": "@Test\n public void addingProducts() throws IOException, InterruptedException {\n \tstartServer();\n\t\tAndroidDriver<AndroidElement> driver = Capabilities(\"GeneralStoreApp\");\n\t\n\t\t//Enter \"Your Name\" and then click \"Let's Shop\"\n\t\tFormPage form = new FormPage(driver);\n\t\tform.yourName.sendKeys(\"Hello\"); \t//enter \"Hello\" to Your Name field\n\t\tdriver.hideKeyboard();\t//hide keyboard\n\t\tform.letsShopBtn.click();\t\t//click \"Let's Shop\" button\n\t\t//form.letsShopBtn.sendKeys(\"hello\");\t//fail the test here for negative test\n\t\t\n\t\t//Add product of \"Jordan 6 Rings\"\n\t\tUtilities util = new Utilities(driver);\n\t\tutil.addProduct(\"Jordan 6 Rings\");\n\t\t//System.out.println(prodName + \" is added to shopping cart!\");\n\t\t\n\t\t//Click \"Shopping Cart\" button to check out the selected products\n\t\tdriver.findElementById(\"com.androidsample.generalstore:id/appbar_btn_cart\").click();\n\t\tSystem.out.println(\"The selected products are added to cart!\");\n\t\t\n\t\tstopServer();\n }", "title": "" }, { "docid": "91edfb2dfe7e7d1a68ee638077ae813f", "score": "0.558214", "text": "@FXML\n private void addProductAction(ActionEvent event){\n try{\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"AddProductForm.fxml\"));\n Parent root = (Parent)fxmlLoader.load();\n Scene scene = new Scene(root);\n currentWindow = (Stage)((Node)event.getSource()).getScene().getWindow();\n currentWindow.setTitle(\"Add Product Form\");\n currentWindow.setScene(scene);\n currentWindow.show();\n }catch (Exception e){\n System.out.println();\n System.out.println(\"Not loading form\");\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "c9dec8f9c492ec026ad044a8d46d33e4", "score": "0.5571796", "text": "void editScanProduct(Product product);", "title": "" }, { "docid": "8474b2e8f13c7617d94d9b6ca819c5a7", "score": "0.5571622", "text": "private void newProject()\n {\n JFlavourProjectBean project = new JFlavourProjectBean();\n project.setName(\"New Project\");\n int projectID = getNewProjectID();\n // put the project into the list of available projects and select it\n projectsListModel.addElement(new ProjectListEntry(projectID, project.getName()));\n projectList.setSelectedIndex(projectsListModel.getSize()- 1);\n // also save the new list of projects\n saveProjectIDs();\n // put the project in the cache so we wont need to load it from file again\n projectCache.put(projectID, project);\n setActiveProject(project, projectID);\n tfProjectName.grabFocus();\n // save it to disk\n saveProject(activeProject, projectID);\n }", "title": "" }, { "docid": "1c5eded324aee112e364cf4cbf9e8e16", "score": "0.55715793", "text": "public void enterDetailsInRelationshipInformationModal() {\n try {\n comboBox_ContactType.click();\n waitShortTime();\n WebElement selectDropDownValues = driver.findElement(By.xpath(\"//li[text()='\" + data.getContactType() + \"']\"));\n selectDropDownValues.click();\n waitShortTime();\n comboBox_emergencyContact.click();\n selectDropDownValues = driver.findElement(By.xpath(\"//li[text()='\" + data.getEmergencyContact() + \"']\"));\n selectDropDownValues.click();\n waitShortTime();\n datePicker_EffectiveStartDate.clear();\n datePicker_EffectiveStartDate.sendKeys(getDynamicDate(\"-\", 1));\n datePicker_EffectiveStartDate.sendKeys(Keys.TAB);\n waitShortTime();\n comboBox_Name.click();\n waitShortTime();\n comboBox_selectName.click();\n waitShortTime();\n reportWithScreenShot(\" User enter details of Emergency contact details\");\n } catch (Exception e) {\n reportWithScreenShot(\"Error while enteronh Emergency contact details - \" + e.getMessage());\n Assert.fail();\n }\n }", "title": "" }, { "docid": "61548f83db4d73925587032149da573c", "score": "0.5568963", "text": "private void getProductFormSession(){\r\n\t\tHttpSession session = WebUtil.getHttpSession();\r\n\t\tObject o = session.getAttribute(WebUtil.ProductToEnterNewBug);\r\n\t\tif (o!=null && o instanceof Product){\r\n\t\t\tthis.productObject = (Product)o;\r\n\t\t} else {\r\n\t\t\tlog.error(\"Product from session could not be retrieved!\");\r\n\t\t}\r\n\t\t\r\n\t\tObject o2 = session.getAttribute(WebUtil.ENTER_NEW_BUG_FOR_PRODUCT);\r\n\t\tif (o2!=null && o2 instanceof Boolean){\r\n\t\t\tif ((Boolean)o2 == true){\r\n\t\t\t\tfirstInit();\r\n\t\t\t\tsession.setAttribute(WebUtil.ENTER_NEW_BUG_FOR_PRODUCT, new Boolean(false));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tlog.error(\"Obj from session could not be retrieved!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e0bc436b5fd8046712572ef465f3a82d", "score": "0.5566772", "text": "private void createDebugMenu() {\n\t\tMenu menu = new Menu(menuBar);\n\t\tMenuItem header = new MenuItem(menuBar, SWT.CASCADE);\n\t\theader.setText(\"&Debug\");\n\t\theader.setMenu(menu);\n\n\t\tfinal MenuItem cpu = new MenuItem(menu, SWT.PUSH);\n\t\tcpu.setText(\"CPU Program\");\n\t\tcpu.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\t\n\t\t\t\t// TODO\n\t\t\t\tFileDialog dialog = new FileDialog(shell);\n\t\t\t\tString data = dialog.open();\n\t\t\t\tif (data != null) {\n\t\t\t\t\texeCmdText.setText(data);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tMenuItem gpu = new MenuItem(menu, SWT.PUSH);\n\t\tgpu.setText(\"GPU Program\");\n\t\tgpu.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\t// TODO \n\t\t\t\t\n\t\t\t\t\n\t\t\t\tMtrConfDialog dialog = new MtrConfDialog(shell);\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "title": "" }, { "docid": "dfe2269de024a3e3188db58ae1c1b71f", "score": "0.5565128", "text": "public void displayCreateBanner() {\n io.print(\"===== Create an Order =====\");\n }", "title": "" }, { "docid": "59b682460f18a55cdf2435245a8b1516", "score": "0.55546373", "text": "private void openOnlineShop() {\n\t\tframe = new JFrame(\"OrderShipping\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);//full screen mode \n\t\tframe.setVisible(true);\n\t\t\t\t\n\t\t/*Button interactions*/\n\t\tAddButton.setActionCommand(\"Add Product\");\n\t\tAddButton.addActionListener((java.awt.event.ActionListener) this);\n\t\t\t\t\n\t\tGoShoppingCart.setActionCommand(\"Shopping Cart\");\n\t\tGoShoppingCart.addActionListener((java.awt.event.ActionListener) this);\n\t\t\t\t\n\t\torderButton.setActionCommand(\"Order\");\n\t\torderButton.addActionListener((java.awt.event.ActionListener) this);\n\t}", "title": "" }, { "docid": "a76e47c851ac023739153d9ce51da733", "score": "0.5550706", "text": "private void openCitiesSetupDialog() {\n if (citiesSetupDialog == null || !citiesSetupDialog.isOpen()) {\n citiesSetupDialog = new PshCitiesSetupDialog(getShell());\n }\n citiesSetupDialog.open();\n }", "title": "" }, { "docid": "395765d19323a8abe2fedc19c546395e", "score": "0.5546895", "text": "@Step\n public void chooseEMLPurchaseMenu(){\n actionWithWebElements.clickOnElement(emlPurchaseMenu);\n }", "title": "" }, { "docid": "2095c154891ef76f7e7b8efb1bb90e6e", "score": "0.5546852", "text": "private void showEditCart(HttpServletRequest request, HttpServletResponse response) throws SQLException, ServletException, IOException {\n\t\t\n\t\tSystem.out.println(\"Directing to showEditCart...\");\n\t\t\n\t\tString productname = request.getParameter(\"productname\");\n\t\t\n\t\tProduct existingProduct = new Product();\n\t\t\n\t\ttry (Connection connection = getConnection();\n\t\tPreparedStatement preparedStatement = connection.prepareStatement(SELECT_PRODUCT_BY_NAME);)\n\t\t{\n\t\t\tpreparedStatement.setString(1, productname);\n\t\t\t\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\t\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tproductname = rs.getString(\"productname\");\n\t\t\t\tint productprice = rs.getInt(\"productprice\");\n\t\t\t\texistingProduct = new Product(productname, productprice);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tprintSQLException(e);\n\t\t}\n\t\t//Serve up the product-form.jsp\n\t\trequest.setAttribute(\"product\", existingProduct);\n\t\trequest.getRequestDispatcher(\"/editCart.jsp\").forward(request, response);\n\n\t}", "title": "" }, { "docid": "5c4231dd74571a77a0b53e4262aab701", "score": "0.5545494", "text": "private void popupPropertiesPanel(ClassBean name){\n visualQueryDesignerPanel.showNodePrperties(name);\n final JFrame jFrame = new JFrame(\"Edit Properties\");\n \n JPanel jPanel = new javax.swing.JPanel();\n JButton button = new javax.swing.JButton();\n button.setText(\"Ok\");\n button.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jFrame.setVisible(false);\n }\n });\n jPanel.add(button);\n jFrame.getContentPane().add(jPanel, java.awt.BorderLayout.SOUTH);\n \n \n PropertiesPanel propertiesPanel = new PropertiesPanel();\n propertiesPanel.setMainFrame(visualQueryDesignerPanel.getMainFrame());\n propertiesPanel.showNodeProperties(name);\n jFrame.getContentPane().add(propertiesPanel, java.awt.BorderLayout.CENTER);\n jFrame.setBounds(100,100,300,200);\n jFrame.setVisible(true);\n //\n }", "title": "" } ]
66cca134b2f6c42c181c4a3da7ff1d64
true if JMX is enabled, false otherwise.
[ { "docid": "392d166713fe1c3c570a853e5861e4f8", "score": "0.85565007", "text": "public boolean isJMXEnabled( )\r\n {\r\n return _bJMXEnabled;\r\n }", "title": "" } ]
[ { "docid": "c15566cb68d9362ea59d9b32615b4cab", "score": "0.8529479", "text": "public static boolean isJmxEnabled() {\r\n\t\treturn System.getProperty(JawrConstant.JMX_ENABLE_FLAG_SYSTEL_PROPERTY) != null;\r\n\t}", "title": "" }, { "docid": "4c6aeec1cbe82bd4967e0b94e74247d0", "score": "0.74779826", "text": "public boolean isEnableMonitoring() {\r\n\t\treturn Boolean.parseBoolean( props.getProperty(\"enableMonitoring\", \"false\"));\t\r\n\t}", "title": "" }, { "docid": "73ec063d467e2226c2273037eaf66442", "score": "0.7029829", "text": "public void setJMXEnabled( boolean bJMXEnabled )\r\n {\r\n _bJMXEnabled = bJMXEnabled;\r\n }", "title": "" }, { "docid": "de81287730ed36f0d85a5c3e75f6fc9b", "score": "0.66907996", "text": "public boolean isEnabled()\n {\n return fm.on(\"monitor\");\n }", "title": "" }, { "docid": "28af4482f7ff8ef8702ec7f528b567ba", "score": "0.64839935", "text": "public boolean isManagementActive();", "title": "" }, { "docid": "3c4941452cea192dac01ba43bd5b7d7d", "score": "0.6407315", "text": "public boolean checkValidJMXConnection() {\n\t\tboolean success = true;\n\t\tLOGGER.debug(\"*********************************\");\n\t\tLOGGER.debug(\"****** checkValidJMXConnection...\"); \n\t\tLOGGER.debug(\"Connecting to JMX Server {}...\", new Object[] { config.getJmxUrl() });\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tMXBeanSource streamsBeanSource = connectionPool.getBeanSource();\n\t\t\tLOGGER.debug(\"...Connected\");\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Inital JMX Connection Failed: \", e);\n\t\t\tsuccess = false;\n\t\t}\n\t\treturn success;\n\t}", "title": "" }, { "docid": "ae8b20e3950efc16dfd16a49b6f5f4a0", "score": "0.6226217", "text": "public boolean isXmlRpcEnabled() {\n return properties.getProperty(XML_RPC_ENABLED_KEY).equalsIgnoreCase(TRUE);\n }", "title": "" }, { "docid": "34ff35dab66cb4f7dfbfc854576f74f5", "score": "0.6101581", "text": "protected boolean isAdmPortRunning() {\n try {\n final URL url = new URL(String.format(\"http://%s:%s/internal/running\", getAddress(), admPort));\n info(\"Checking \" + url);\n final HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n try {\n conn.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(1));\n conn.setReadTimeout((int) TimeUnit.SECONDS.toMillis(5));\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n conn.setRequestProperty(\"Accept-Charset\", \"UTF-8\");\n conn.setRequestProperty(\"User-Agent\", \"jboss-maven-plugin\");\n\n final int status = conn.getResponseCode();\n if (status != 200) {\n info(\"status \" + status);\n return false;\n }\n\n final String output = getResponseContent(conn);\n info(output);\n return output.contains(\"OK\");\n } finally {\n conn.disconnect();\n }\n } catch (Throwable e) {\n debug(\"Exception \" + e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "c17218afc2aac817612dd63925a86287", "score": "0.6090457", "text": "boolean hasMonitoringInterval();", "title": "" }, { "docid": "a54ec5a03d132c31c3593bc6388aa227", "score": "0.60863495", "text": "public boolean isEnableMonitor() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b27fb6832b4ff9429d3d06e7fd54a8fa", "score": "0.6063765", "text": "public boolean isIntegrationEnabled() {\n StringAttributeMap config = this.getConfiguration();\n if (config != null) {\n String val = Val.chkStr(config.getValue(\"sdisuite.enabled\"));\n return (val.equalsIgnoreCase(\"true\"));\n }\n return false;\n }", "title": "" }, { "docid": "cae9fa3aa02fb4d9028668b0cadd2f40", "score": "0.60039055", "text": "boolean hasWlanEnabled();", "title": "" }, { "docid": "cae9fa3aa02fb4d9028668b0cadd2f40", "score": "0.60039055", "text": "boolean hasWlanEnabled();", "title": "" }, { "docid": "5b56728226278291a4ac772b8719d16d", "score": "0.5917333", "text": "public boolean isServerEnabled() {\n return serverEnabled;\n }", "title": "" }, { "docid": "e6a792c089a82e350820e2c58726e91b", "score": "0.5913134", "text": "boolean hasWlanConfig();", "title": "" }, { "docid": "e6a792c089a82e350820e2c58726e91b", "score": "0.5913134", "text": "boolean hasWlanConfig();", "title": "" }, { "docid": "fddafa68ee71980ce55caf1126a647fe", "score": "0.59072644", "text": "@java.lang.Override\n public boolean hasMonitoringInterval() {\n return monitoringInterval_ != null;\n }", "title": "" }, { "docid": "d20e06340b60b613ccaaef7b20826d5b", "score": "0.5905038", "text": "public JMXStatisticsConfigurationBuilder enable() {\n this.enabled = true;\n return this;\n }", "title": "" }, { "docid": "f5104f9a7d860f8a23d4f5d933b12834", "score": "0.5850422", "text": "public boolean isMetricsEnabled() {\nreturn ((io.vertx.core.metrics.Measured) this.delegate).isMetricsEnabled();\n }", "title": "" }, { "docid": "aab3e519656a681e8c0703f7d5d2d326", "score": "0.5817555", "text": "public static boolean isServerJBoss() {\n\t\treturn System.getProperty(JBOSS_PROPERTY) != null;\n\t}", "title": "" }, { "docid": "0ff1a14a2d360aaa8137552cf218de8f", "score": "0.5814081", "text": "public boolean isEnabled( ) {\n\t\treturn enabled;\n\t}", "title": "" }, { "docid": "b4302d501f298b6b60e76c628d7c8533", "score": "0.58079743", "text": "public boolean isEnabled() {\n return dsc.isEnabled();\n }", "title": "" }, { "docid": "e67c2b71b9ce69c3c6f9ec264dbd6d44", "score": "0.5795542", "text": "public final boolean isEnabled()\n {\n return ((status & ENABLED) != 0);\n }", "title": "" }, { "docid": "02986eeabfc798ba5604856e47c3e6d6", "score": "0.5789811", "text": "public static boolean isStarted() {\n \treturn enabled && threadMap.get(Thread.currentThread())!=null;\n }", "title": "" }, { "docid": "b4f347bef323bcb10f30fcfb9643e8a8", "score": "0.5785123", "text": "public boolean isEnabled() {\n\t\treturn enabled;\n\t}", "title": "" }, { "docid": "b4f347bef323bcb10f30fcfb9643e8a8", "score": "0.5785123", "text": "public boolean isEnabled() {\n\t\treturn enabled;\n\t}", "title": "" }, { "docid": "864c972cd79c5c77a85294684d1b6593", "score": "0.57746214", "text": "public boolean isHealthEnabled()\n {\n return fm.on(\"health\");\n }", "title": "" }, { "docid": "d88c2c90683b529f8f0a76ed865b7677", "score": "0.5771929", "text": "boolean hasServerName();", "title": "" }, { "docid": "8d31ca14e10cc92c416340b326c3ddf3", "score": "0.5746691", "text": "public boolean hasMonitoringInterval() {\n return monitoringIntervalBuilder_ != null || monitoringInterval_ != null;\n }", "title": "" }, { "docid": "bd2efcd96fbeff35f348af76403bea90", "score": "0.5730538", "text": "boolean enabled();", "title": "" }, { "docid": "2d4e6e2dde12d213418109e766bfb986", "score": "0.57267416", "text": "public boolean isRunning(){\r\n\t\tboolean result = false;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t_lockObject.lock();\r\n\t\t\tresult = _server.isRunning();;\r\n\t\t}finally{\r\n\t\t\t_lockObject.unlock();\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "a1682bf4b518c2488b116534988783cb", "score": "0.5718882", "text": "public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}", "title": "" }, { "docid": "30873dad2ea8e67f72a6ed3ffe5bbf23", "score": "0.5717141", "text": "public boolean isEnabled() {\n try {\n String currentValue = this.retrieveAttributeValueFromConfig(\"enabled\", false);\n return GrouperUtil.booleanValue(currentValue, true);\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "01e776390d46e7a74dc07dbdc84b7245", "score": "0.57065254", "text": "public boolean isStarted() {\r\n return isRunning() && (worker_set != null);\r\n }", "title": "" }, { "docid": "bd5f986e5ff578b0577e9443cdc8c4ea", "score": "0.5699416", "text": "public JMXStatisticsConfigurationBuilder enabled(boolean enabled) {\n this.enabled = enabled;\n return this;\n }", "title": "" }, { "docid": "d53e45a7117df7655c99a1d5ea054e65", "score": "0.5699344", "text": "public boolean isEnableInfoLogs() {\n return enableInfoLogs;\n }", "title": "" }, { "docid": "4df15cb4c3223782930337b3a1770a68", "score": "0.5678479", "text": "public boolean hasJjdm() {\n return result.hasJjdm();\n }", "title": "" }, { "docid": "fc5d968c41e790b5521dae50b89d0441", "score": "0.5676385", "text": "public Boolean isEnable() {\n\t\treturn enable;\n\t}", "title": "" }, { "docid": "78c945de3456e71aef6c110df4b2ff8c", "score": "0.566828", "text": "public interface ProfilingControllerMBean {\n void setEnabled(boolean enabled);\n}", "title": "" }, { "docid": "0a9fc4edf951108d3fef026116772a6b", "score": "0.5667298", "text": "public boolean isEnabled() {\n\t\treturn this.enabled;\n\t}", "title": "" }, { "docid": "0a9fc4edf951108d3fef026116772a6b", "score": "0.5667298", "text": "public boolean isEnabled() {\n\t\treturn this.enabled;\n\t}", "title": "" }, { "docid": "09ef2c9ac3192afea821e28e69b37283", "score": "0.5663571", "text": "public abstract JMXStatisticsConfigurationBuilder enabled(boolean enabled);", "title": "" }, { "docid": "41979e8291b364739e8ed23f3201305e", "score": "0.5645644", "text": "public boolean isSetJobConfig() {\n return this.jobConfig != null;\n }", "title": "" }, { "docid": "b9a9d6eb2e569536ada1132e6908f8cb", "score": "0.56360006", "text": "public boolean isSetJobConfig() {\n return this.jobConfig != null;\n }", "title": "" }, { "docid": "c8099cc9f7c72f16c6526eab92c37e0a", "score": "0.56327313", "text": "public boolean isStatisticsEnabled( )\r\n {\r\n return _bStatisticsEnabled;\r\n }", "title": "" }, { "docid": "9a0eb8d96699c67b87156f075bd7fcdf", "score": "0.56089747", "text": "public boolean isEnabled()\n\t{\n\t\treturn debugEnabled;\n\t}", "title": "" }, { "docid": "da53256c5415980acc0a0973e7ee7cbd", "score": "0.56030697", "text": "public boolean isLoadTestRunning() {\n\t\treturn (jmeterProcess != null);\n\t}", "title": "" }, { "docid": "621bd6b58d06c40c514af3b2c16a4f82", "score": "0.55992764", "text": "public boolean isSAPConfigurationActive();", "title": "" }, { "docid": "e543933409ead4069a4c20105ba41650", "score": "0.55977863", "text": "public abstract JMXStatisticsConfigurationBuilder enable();", "title": "" }, { "docid": "c66f47297bce71ad45b6cd5bdc2739e4", "score": "0.5594612", "text": "@MBeanInfo(\"Show if outbound notifications enabled\")\n boolean getOutboundEnabled();", "title": "" }, { "docid": "7c824823e523ff6ff294f5c0049517ee", "score": "0.5588062", "text": "@IsConfigurationNode\r\n public boolean getEnabled() {\r\n return config.getBoolean(\"enabled\", true);\r\n }", "title": "" }, { "docid": "79c057c6bfe9abbd19686c8a0c30983d", "score": "0.5558388", "text": "public boolean isMetricsEnabled();", "title": "" }, { "docid": "dda6aef8514843ac37419904195171eb", "score": "0.55561846", "text": "public static boolean isDebugEnabled() {\n String debugEnv = System.getenv(DEBUG_CONTROL);\n if (debugEnv != null && Boolean.parseBoolean(debugEnv)) {\n return true;\n }\n\n Boolean debug = DEBUG_CONTROLLER.get();\n if (debug == null) {\n debug = false; // set default to close debug info\n }\n\n return debug;\n }", "title": "" }, { "docid": "49e6ed933128a576f21a8eac87921d7e", "score": "0.5541305", "text": "@Override\n public boolean isEnabled() {\n if (enabled == null) return false;\n return enabled;\n }", "title": "" }, { "docid": "19a62cb0221626fdadfc47cad62821c0", "score": "0.554065", "text": "public boolean isEnabled() {\n return logger.isEnabled();\n }", "title": "" }, { "docid": "b2340e640578b3298345d0a96acdb028", "score": "0.55222785", "text": "public final boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "3b4139cda3bcb60d262d7f009531bdb7", "score": "0.5507812", "text": "public boolean isSessionEnabled()\n {\n return fm.on(\"session\");\n }", "title": "" }, { "docid": "18b45f841dd6908d6a27f6e33c451942", "score": "0.550596", "text": "boolean enabled() {\r\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "14a724e1e90d99ae1d133b5160d63632", "score": "0.54981244", "text": "public static boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "6da2360cbf33ed10ee9afc4d85ee4c57", "score": "0.5486286", "text": "@IsConfigurationNode(order = 100)\r\n public boolean getEnabled() {\r\n return config.getBoolean(\"enabled\", true);\r\n }", "title": "" }, { "docid": "888b86b291857c5715c86553698513b7", "score": "0.54779655", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "888b86b291857c5715c86553698513b7", "score": "0.54779655", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "888b86b291857c5715c86553698513b7", "score": "0.54779655", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "888b86b291857c5715c86553698513b7", "score": "0.54779655", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "71b3f9d13702c29726d9572674f8fc92", "score": "0.54670084", "text": "public static boolean isCacheEnabled() {\n Boolean b = CACHE_ENABLED.get();\n if (b == null) {\n return true;\n }\n\n return b;\n }", "title": "" }, { "docid": "db1b0078586a374abcbecaac34fa8121", "score": "0.54654616", "text": "@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\r\n\t}", "title": "" }, { "docid": "d5f33efaa181adeda3dc0e628e325c17", "score": "0.5463615", "text": "boolean hasSystemInfo();", "title": "" }, { "docid": "bb3b655d2ff028a72892893163e8fd53", "score": "0.5463316", "text": "boolean hasModelDeploymentMonitoringJob();", "title": "" }, { "docid": "496545d4ae76a6c7751795bcdf52784e", "score": "0.5462961", "text": "boolean hasEnabled();", "title": "" }, { "docid": "496545d4ae76a6c7751795bcdf52784e", "score": "0.5462961", "text": "boolean hasEnabled();", "title": "" }, { "docid": "e82f3f7c513b3ef9311be903ab2e5080", "score": "0.5459479", "text": "protected void enableJmx(Object obj) {\n if(enableJmx)\n JmxUtils.registerMbean(serviceName, obj);\n }", "title": "" }, { "docid": "e4b1b15dd93b352416abc22e8c420b4d", "score": "0.54578495", "text": "boolean hasDevport();", "title": "" }, { "docid": "9a45d2e92eea6ab26a52d0766fab6c31", "score": "0.5452506", "text": "public boolean isEnableLogOutput() {\n return enableLogOutput;\n }", "title": "" }, { "docid": "9663bcbc73134450ed4fafcae59b2c94", "score": "0.54522413", "text": "public static boolean startProfiler() {\n if(enabled) {\n \t// Only start the profiler if not already started for the current thread.\n \tThread t = Thread.currentThread();\n \tif(threadMap.get(t)==null) {\n // Thread Map is already synchronized\n threadMap.put(t,mainAggregator);\n return true;\n \t}\n }\n return false;\n }", "title": "" }, { "docid": "c2ce890f9ce205509604b160a781bb03", "score": "0.5450963", "text": "public Boolean isEnabled() {\n\t\treturn this.isEnabled;\n\t}", "title": "" }, { "docid": "4cf8837ce41d35550c4e280578bb899a", "score": "0.54483515", "text": "public boolean hasServerLog() {\n return manager.getTomcatProcess() != null;\n }", "title": "" }, { "docid": "18233906fd0952729be26b63ac1113f2", "score": "0.5444633", "text": "public final boolean isEnabled ()\n {\n\tsynchronized (mySynch)\n\t{\n\t return myEnabled;\n\t}\n }", "title": "" }, { "docid": "85144e3ced02d025a2e98bf86d38c65c", "score": "0.54429096", "text": "@SuppressWarnings( \"unchecked\" )\n public boolean isAvailable()\n {\n if( hasEnabledConfiguration && !( (Configuration<Enabled>) proxy() ).get().enabled().get() )\n {\n return false;\n }\n\n // Ask service if it's available\n return !implementsServiceAvailable || ( (Availability) proxy() ).isAvailable();\n }", "title": "" }, { "docid": "ce4d8f971f82a18c15df9c7fafeb85b2", "score": "0.54376644", "text": "@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}", "title": "" }, { "docid": "084abefd16f6aa3a5f1b71d2e7e234a9", "score": "0.5436756", "text": "public boolean enabled() { \n return true;\n }", "title": "" }, { "docid": "3fea318c1fb738349a9b72caf99458ed", "score": "0.5433619", "text": "public static boolean inServer() {\n\t\treturn isServerJBoss() || isServerTomcat();\n\t}", "title": "" }, { "docid": "89b6bb552f2453d586009ddfc848d568", "score": "0.54287076", "text": "public boolean isEnableDebugLogs() {\n return enableDebugLogs;\n }", "title": "" }, { "docid": "c89be66e3116a08187baf40c46abcefa", "score": "0.5427928", "text": "public static boolean test() {\n\t\tif (MillingCutter._getMillingStatus() == false) {\n\t\t\tErrorHandling.commandImpossibleMillingMachineOff();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9f0b928f5e7f78299a4c15a489a540d4", "score": "0.5423867", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "773242834a67e44bc576c9a25af3cf34", "score": "0.5420211", "text": "boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "27460d4c30da66203e8e2aa16f6cd4b0", "score": "0.5419942", "text": "public boolean isEnabled() throws RemoteException;", "title": "" }, { "docid": "93b498761a7c601711ed254f88ea3005", "score": "0.54169995", "text": "public boolean isStarted() {\n\t\treturn started;\r\n\t}", "title": "" }, { "docid": "8823d2f48b0c81fb7b64c09b257c4198", "score": "0.54158187", "text": "public Boolean getEnableHealthCheck() {\n return this.EnableHealthCheck;\n }", "title": "" }, { "docid": "5f8085b954273c25b770bd29037aff77", "score": "0.5414244", "text": "public boolean isCreateTmx()\n {\n return createTmx;\n }", "title": "" }, { "docid": "0c72e2088fd08a263e5225fffe7c94ef", "score": "0.5413116", "text": "public boolean allowTcp() {\n return startupOptions.getBooleanOption(\n AdminServerOption.ALLOW_TCP, adminServerConfig.allowTcp());\n }", "title": "" }, { "docid": "1d8f27344e767d769e9854edfb69564b", "score": "0.54129016", "text": "boolean getWlanEnabled();", "title": "" }, { "docid": "1d8f27344e767d769e9854edfb69564b", "score": "0.54128146", "text": "boolean getWlanEnabled();", "title": "" }, { "docid": "56ec3dbe1c56c408cc5ab674eaec1bae", "score": "0.54068124", "text": "private boolean areDataServicesAvailable() \n throws MgmtException {\n\tNodeMgrService.Proxy nodeProxy = null;\n\ttry {\n\t nodeProxy = ServiceManager.proxyFor(ServiceManager.LOCAL_NODE);\n\t} catch (Exception ignore) {\n\t //\n\t}\n\treturn nodeProxy != null && nodeProxy.hasQuorum();\n }", "title": "" }, { "docid": "c38aeb01ae8846814bbf209ec99399bd", "score": "0.54006994", "text": "public boolean isEnabled() {\n return _enabled;\n }", "title": "" }, { "docid": "f86fedc6dc6ed699933d32243a3c6801", "score": "0.5398161", "text": "public boolean isListening()\n\t{\n synchronized( generalSync ) {\n\t\t\treturn isListening;\n\t\t}\n\t}", "title": "" }, { "docid": "0160ad25fd905f0dbdeadda7e91c5a64", "score": "0.53971934", "text": "protected static boolean isTestProxyEnabled() {\n return enableTestProxy;\n }", "title": "" }, { "docid": "b34e28f6b068d96d9c3eac3a65bfe50a", "score": "0.5391565", "text": "public boolean isDebugWorkerScheduler() {\r\n\t\treturn Boolean.parseBoolean( props.getProperty(\"debugWorkerScheduler\", \"false\"));\r\n\t}", "title": "" }, { "docid": "120ba0c4b2ee3f9bedd9fc0953226ed1", "score": "0.5383759", "text": "@Schema(description = \"Whether the ScheduledPlan is enabled\")\n public Boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "77fbefca23c4c86c303dfa8a52f96818", "score": "0.5383708", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" }, { "docid": "77fbefca23c4c86c303dfa8a52f96818", "score": "0.5383708", "text": "public boolean isEnabled() {\n return enabled;\n }", "title": "" } ]
36678f5b90ef5f05a9623d710eb91eb9
repeated .movie.Category categories = 2;
[ { "docid": "21b1c905e4c7aca2e2a662bce5cfff55", "score": "0.0", "text": "public Builder setCategories(\n int index, com.ua.mytrinity.tv_client.proto.MovieServer.Category value) {\n if (categoriesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCategoriesIsMutable();\n categories_.set(index, value);\n onChanged();\n } else {\n categoriesBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "8ef03c386cb5262252ecf9aedfcd6cbd", "score": "0.582304", "text": "com.ua.mytrinity.tv_client.proto.MovieServer.Category getCategories(int index);", "title": "" }, { "docid": "0b2815b1625ee08279b1843c06b2ec23", "score": "0.53447276", "text": "void addCategory(Category _Category);", "title": "" }, { "docid": "7848390270e8a8741de082d0e10658fd", "score": "0.52614474", "text": "public VicarLabelCategory()\n {\n\t_flavor = 0;\n\t_sets = new ArrayList();\n }", "title": "" }, { "docid": "fc50c0e2b4d091bac013666931a5e49b", "score": "0.52460974", "text": "@Test\n public void testListCategories() {\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"listCategories\");\n System.out.println(\"\");\n\n Category category = new Category();\n\n\n List<String> cats = new ArrayList();\n\n category.setName(\"Sports\");\n String name = category.getName();\n\n category.setName(\"Politics\");\n String politics = category.getName();\n\n category.setName(\"Weather\");\n String weather = category.getName();\n\n cats.add(name);\n cats.add(politics);\n cats.add(weather);\n\n System.out.println(cats);\n }", "title": "" }, { "docid": "c4cfbbd5987b5eacc5b65bd03de78e14", "score": "0.52102274", "text": "public void setGenre(java.util.Collection aGenre);", "title": "" }, { "docid": "8748b8d8ade6e67bd834ae5fe2f91648", "score": "0.5193555", "text": "int countByExample(MovieExample example);", "title": "" }, { "docid": "fb899f611c7291b13ff7ee55038465f4", "score": "0.51330316", "text": "public int getCategory(){\n return this.category;\n }", "title": "" }, { "docid": "ed4749ea4b8e4652d13a7df071c87a1b", "score": "0.5126725", "text": "private CategoryCollection()\r\n {\r\n listOfCategory=new ArrayList<>();\r\n }", "title": "" }, { "docid": "58761ffb2fb20d42facb2ed6cdf98a61", "score": "0.51238185", "text": "public void trainForCats(){\n this.likesCats = true;\n }", "title": "" }, { "docid": "b549595e323b67acf386360e89ffd939", "score": "0.51065725", "text": "abstract void addCategories() throws DSpaceSWORDException;", "title": "" }, { "docid": "a4d3cc5b59e18ed791bb6ec3212dc8a3", "score": "0.51026976", "text": "MovieGenre getMovieGenre();", "title": "" }, { "docid": "f157efff22a713560533da57172e304f", "score": "0.5086586", "text": "public Theatre(String n){\n name = n;\n movies = new ArrayList<Movie>();\n }", "title": "" }, { "docid": "b580e0f91626fcbae7677dd40dbaa79d", "score": "0.50841427", "text": "public Categories() {\n super();\n this.nb=0;\n }", "title": "" }, { "docid": "bfa63cd50962f52150fecc55eddbebee", "score": "0.50663847", "text": "java.util.List<? extends com.ua.mytrinity.tv_client.proto.MovieServer.CategoryOrBuilder> \n getCategoriesOrBuilderList();", "title": "" }, { "docid": "460bca2180f78ee06b76401c024c9dfa", "score": "0.5064582", "text": "private void addCategries(Packet packet) {\n\t\ttry {\n\t\t\tPreparedStatement stm = (PreparedStatement) connect\n\t\t\t\t\t.prepareStatement(\"select * from Topic\");\n\t\t\tResultSet resultSet = stm.executeQuery();\n\t\t\tArrayList<String[]> categories = new ArrayList<String[]>();\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString[] cat = new String[2];\n\t\t\t\tcat[0] = resultSet.getString(\"id\");\n\t\t\t\tcat[1] = resultSet.getString(\"title\");\n\t\t\t\tcategories.add(cat);\n\t\t\t}\n\t\t\tpacket.setCategories(categories);\n\t\t\tpacket.setPacketType(Packet.Type.CATEGORY);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "be20ef5ffe0de4c42dbbaf764a864b05", "score": "0.50601524", "text": "List<Movie> selectByExample(MovieExample example);", "title": "" }, { "docid": "6612652398c670f6481ce6ef8da7c162", "score": "0.5047933", "text": "void updateCategory(Category _Category);", "title": "" }, { "docid": "7481df9172184b1c2ebc5786b36d331c", "score": "0.50362414", "text": "public void setCategorias(ArrayList<Categoria> list){ this.categorias = list; }", "title": "" }, { "docid": "64180652c2becf3671a04024ee1c71ec", "score": "0.4997256", "text": "public void addMovies(Movie movie) {\n movieList[moviesCount] = movie;\n moviesCount ++;\n }", "title": "" }, { "docid": "2f1bd05b8e2a32f87877a3eacf0fa463", "score": "0.49898687", "text": "public void setCategory(String category);", "title": "" }, { "docid": "598d005d9f3b2cfc5a1b406e21d68cb4", "score": "0.4976847", "text": "public static void main(String[] args) {\n /*\n ArrayList<MovieComposite> selectedMovies = parseOneWord();\n for(MovieComposite m: selectedMovies )\n {\n System.out.print(\"Movies are: \" +m.movie.movie_name+\",\"); \n }\n }\n\n public static ArrayList<MovieComposite> parseOneWord() {\n Hashtable movies = DataAggregator.GetCompositeMovies();\n \n Scanner input = new Scanner(System.in);\n System.out.print(\"Type a keyword to query\");\n String query = input.next();\n\n ArrayList<MovieComposite> parsedTitles = new ArrayList<>();\n \n for(MovieComposite m: movies)\n {\n if(m.plot_summary.summary.toLowerCase().contains(query))\n {\n parsedTitles.add(m);\n }\n else if(m.movie.movie_name.toLowerCase().contains(query))\n {\n parsedTitles.add(m);\n }\n }\n return parsedTitles;\n */\n }", "title": "" }, { "docid": "724565cbfc0726aa784662692c11fc02", "score": "0.4976585", "text": "public List<Movie> getMovies();", "title": "" }, { "docid": "3a6248e715cdf5741c999f2df91a568b", "score": "0.49583155", "text": "public com.ua.mytrinity.tv_client.proto.MovieServer.Category.Builder addCategoriesBuilder() {\n return getCategoriesFieldBuilder().addBuilder(\n com.ua.mytrinity.tv_client.proto.MovieServer.Category.getDefaultInstance());\n }", "title": "" }, { "docid": "7e9fb12e87bcc8ae6d3e9219f2da62ea", "score": "0.49488482", "text": "private void populateCategoryDefinitions() {\n String stringToAppend = null;\n for (int index = 1; index <= 6; index++) {\n stringToAppend = Integer.toString(index);\n categoryDefinitions.add(new CategoryDefinition(\"org.eclipse.category\" + stringToAppend, //$NON-NLS-1$ //$NON-NLS-2$\n \"Category \" + stringToAppend, sourceId, //$NON-NLS-1$\n \"description\"));\n }\n }", "title": "" }, { "docid": "be77a524edbbd301290fa867e6a2f105", "score": "0.49365845", "text": "java.util.List<com.ua.mytrinity.tv_client.proto.MovieServer.Category> \n getCategoriesList();", "title": "" }, { "docid": "3e9ff6f206fb8de2012f9ec99d057859", "score": "0.4923715", "text": "CategorieAnalisiGrammaticale(int i) {\n\n this.word_category = i;\n\n }", "title": "" }, { "docid": "6412869536d42a7163747c5154bfb182", "score": "0.49200144", "text": "public List<Category> categories() { return categories; }", "title": "" }, { "docid": "b59166493b13d4db60d95810df9cd54b", "score": "0.49172625", "text": "com.ua.mytrinity.tv_client.proto.MovieServer.CategoryOrBuilder getCategoriesOrBuilder(\n int index);", "title": "" }, { "docid": "eed80f6a03584f8edf54a3e49ccab750", "score": "0.49102217", "text": "public void addCategory(Category category);", "title": "" }, { "docid": "9f9023a73252f086a3c295403309d66c", "score": "0.490135", "text": "public interface Category extends SchemaObject,GeneralCategory {\r\n\t\r\n /**\r\n * Returns whether this category is universal category, which is comprised of all instances.\r\n * @return\r\n */\r\n public boolean isUniversal();\r\n \r\n}", "title": "" }, { "docid": "4c4dd178c1dbb5fa8989fc7804937e43", "score": "0.48873788", "text": "private void findSpecificMovie() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1c7224fd2e5957a6aef546be0080dfb", "score": "0.48631436", "text": "public void testGetAllMovie() {\r\n\t}", "title": "" }, { "docid": "b58609815d7c8cecdb8b0e5eca8fd5c9", "score": "0.4853006", "text": "private void createCats() {\n for(int i = 0; i< getCatPopulation(); i++) {\n Cat cat = new Cat();\n\n cat.setSpeed(5);\n cat.randLocation();\n cat.setSize(5);\n cat.setColor(Color.BLACK);\n cat.setDirection(randDirection.nextInt(360));\n gameObjList.addToCollection(cat);\n\n }\n }", "title": "" }, { "docid": "afa39246136585a76504e43314122015", "score": "0.48334125", "text": "public CategoryExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "afa39246136585a76504e43314122015", "score": "0.48334125", "text": "public CategoryExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "3f297995f8172e4c8776022afac855de", "score": "0.48172012", "text": "@Test\n public void testAddAndGetOccurrence() {\n ResultsBag bag = getBagObject(String.class);\n bag = getBagObject(String.class);\n ObjectType elementType = bag.getCollectionType().getElementType();\n assertEquals(1, bag.addAndGetOccurence(elementType instanceof StructType\n ? ((Struct) wrap(\"one\", elementType)).getFieldValues() : wrap(\"one\", elementType)));\n bag.add(wrap(\"two\", elementType));\n assertEquals(2,\n bag.addAndGetOccurence(\n elementType instanceof StructType ? ((Struct) wrap(\"two\", elementType)).getFieldValues()\n : wrap(\"two\", bag.getCollectionType().getElementType())));\n bag.add(wrap(\"three\", bag.getCollectionType().getElementType()));\n bag.add(wrap(\"three\", bag.getCollectionType().getElementType()));\n assertEquals(3, bag.addAndGetOccurence(elementType instanceof StructType\n ? ((Struct) wrap(\"three\", elementType)).getFieldValues() : wrap(\"three\", elementType)));\n bag.add(wrap(null, bag.getCollectionType().getElementType()));\n bag.add(wrap(null, bag.getCollectionType().getElementType()));\n assertEquals(3, bag.addAndGetOccurence(elementType instanceof StructType\n ? ((Struct) wrap(null, elementType)).getFieldValues() : wrap(null, elementType)));\n }", "title": "" }, { "docid": "03afb58b0ed04f451e8895efcccd5e0f", "score": "0.48114485", "text": "void addCategory(String name);", "title": "" }, { "docid": "0bbb077aa6179b012c4a3ed75baaacf4", "score": "0.48064366", "text": "Film setName(String name);", "title": "" }, { "docid": "271db0eb833f1c9c7714423bed715285", "score": "0.48043922", "text": "List<Categories> loadCategories();", "title": "" }, { "docid": "409750967c16bd1f2b6c86c28cbd13f5", "score": "0.48013186", "text": "@Test\n\tpublic void getMoviesGenre() throws Exception {\n\t\t\n\t\tMovieImpl mImpl = new MovieImpl();\n\t\tmImpl.setMovieId((long) 1234);\n\t\tmImpl.setMovieName(\"Superman\");\n\t\tmImpl.setMovieGenre(\"Superhero\");\n\t\tmImpl.setMovieRatings(\"good\");\n\t\t\n\t\tMovie t = movieService.addMovie(mImpl);\n\t\t\n\t\tMovieImpl mImpl1 = new MovieImpl();\n\t\tmImpl1.setMovieId((long) 5432);\n\t\tmImpl1.setMovieName(\"Home Alone\");\n\t\tmImpl1.setMovieGenre(\"Comedy\");\n\t\tmImpl1.setMovieRatings(\"good\");\n\t\t\n\t\tMovie t1 = movieService.addMovie(mImpl1);\n\t\tassertThat(movieService.getMoviesByGenre(\"Superhero\"), is(new ArrayList<>(Arrays.asList(t))));\n\t\tassertThat(movieService.getMoviesByGenre(\"Comedy\"), is(new ArrayList<>(Arrays.asList(t1))));\n\n\t}", "title": "" }, { "docid": "0dff571814f07fec8cfa7365771437bf", "score": "0.47717828", "text": "public static void getMovieFromCategory(String category) {\n for (Movie movie : movieArray) {\n if (movie.getCategory().equals(category)) {\n System.out.println(movie.getName());\n }\n }\n }", "title": "" }, { "docid": "f596c809558fb93b2f1deceba4c85efa", "score": "0.4758229", "text": "public VicarLabelCategory(int flavor)\n {\n\t_flavor = flavor;\n\t_sets = new ArrayList();\n }", "title": "" }, { "docid": "510b6db6279d40e6faa65375fc24818d", "score": "0.47440025", "text": "public void setCategory(ItemCategory category)\n {\n this.category=category;\n }", "title": "" }, { "docid": "adef3515900af575f0b32eaeb29ce23d", "score": "0.4732362", "text": "private static void AddMovie() {\n\t\tMovie.addMovie(\"F001\", \"You've Got Mail\", MovieCode.REGULAR);\n\t\tMovie.addMovie(\"F002\", \"Matrix\", MovieCode.REGULAR);\n\t\tMovie.addMovie(\"F003\", \"Cars\", MovieCode.CHILDRENS);\n\t\tMovie.addMovie(\"F004\", \"Fast & Furious X\", MovieCode.NEW);\n\t}", "title": "" }, { "docid": "8c344dfbbac8ecc2cc8d59b0740dd17e", "score": "0.47321996", "text": "int findCategory(List<Category> cats, String name);", "title": "" }, { "docid": "747bfdde870600571c62ea96a73adf45", "score": "0.4728161", "text": "public void feedCats()\n {\n //I used an enhanced for loop to run throught the array of cats.\n for(Cat x: cats)\n {\n System.out.println(x.getName()+ \" is \" + x.getWeight() + \" pounds.\");\n System.out.println(\"I am feeding \" + x.getName() + \" 1 pound of fish.\");\n //I am calling the setter method from the cats class to set the new weight of each cat after eating a pound of fish.\n x.setWeight(1);\n System.out.println(x.getName() + \" now weighs \" + x.getWeight() + \" pounds.\");\n }\n }", "title": "" }, { "docid": "f6ae7108291e8ad46a0ccb462aa5e4bf", "score": "0.47278357", "text": "@Test\n\tpublic void setGenre1v2Test() {\n\t\tMovie movie3 = new Movie(\"1234\", \"Ianderson\", \"1990\", \"9\", \"dogs\", \"puppypic\", null, null, null, null);\n\t\tMovie movie4 = new Movie(\"555\", \"EmilyTrinh\", \"1990\", \"9\", \"dogs\", \"puppypic\", \"Action\", \"Action\", \"Action\", \"Action\");\n\t\tassertEquals(movie3.getGenre1(), null);\n\t\tmovie3.setGenre1(28);\n\t\tassertEquals(movie3.getGenre1(), movie4.getGenre1());\n\t}", "title": "" }, { "docid": "839e259b2cbea558e323a0be5d6ded8e", "score": "0.47243077", "text": "public List<Category> getByCategory();", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47174647", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47174647", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47174647", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47174647", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47174647", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ac6a7c485aa2c2577734d53f3f8ba843", "score": "0.47167987", "text": "public void setCategories(List<Category> categories) {\r\n this.categories = categories;\r\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47164312", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47164312", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "093c93c947ef66cb20583fdfd984ff8d", "score": "0.4716291", "text": "Genre update(Genre genre);", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47159383", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47159383", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49fe8ca72ec9685373e099a0ea5bf7a4", "score": "0.47159383", "text": "public Builder addAllMovies(\n java.lang.Iterable<? extends java.lang.Integer> values) {\n ensureMoviesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, movies_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f565265591651c77822175fea713f65f", "score": "0.47148508", "text": "int getCategories(int index);", "title": "" }, { "docid": "99d228e73ac444b294eb0bf36735315e", "score": "0.471419", "text": "public abstract String[] getCategories();", "title": "" }, { "docid": "d774b9b15c2f83abd5c7e2109999012d", "score": "0.4713458", "text": "public void add(CatMovie catmovie) {\n DAL.addCatMovie(catmovie);\n }", "title": "" }, { "docid": "6eef8c0c852c52fc1b62648e710a2ef5", "score": "0.4709412", "text": "public static void main(String[] args) {\n\t\t\n\tMovie movie1 = new Movie();\n\tmovie1.title = \"Gone with the Wind\";\n\tmovie1.genre = \"Adventure\";\n\tmovie1.rating = 8;\n\t\n\tMovie movie2 = new Movie();\n\tmovie2.title = \"Need for Speed\";\n\tmovie2.genre = \"Action\";\n\tmovie2.rating = 5;\n\t\n\tMovie movie3 = new Movie();\n\tmovie3.title = \"Hello Kitty\";\n\tmovie3.genre = \"Kids\";\n\tmovie3.rating = 3;\n\t\n\tSystem.out.println(\"The highest rated movie is \"+ movie1.title + \" which had a rating of \"+movie1.rating);\n\tmovie1.playMovie();\n\t\n\t\n\t\n\t}", "title": "" }, { "docid": "aae9a432f2b8ae9fb0a24061dd976f34", "score": "0.47083855", "text": "public String getCategory() { return _category; }", "title": "" }, { "docid": "77fe55dfc2bd132fcf2b130985faedf9", "score": "0.4707356", "text": "public interface DelCollectType {\n\n String TYPE_LIVE = \"1\";\n String TYPE_NEWS = \"2\";\n String TYPE_SPEECH = \"3\";\n String TYPE_ARTICLE = \"4\";\n String TYPE_DOCTOR = \"5\";\n\n\n}", "title": "" }, { "docid": "10d0718337f2a7903215a5899a3b8db9", "score": "0.47030848", "text": "List<TbComItemCat> selectByExample(TbComItemCatExample example);", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4700734", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4700734", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4700734", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4700734", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4700734", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.46999478", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4699684", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4699684", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4699684", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddb3b1142dd54cf72efb01dada620ed8", "score": "0.4699684", "text": "public Builder addMovies(int value) {\n ensureMoviesIsMutable();\n movies_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b488d12468519d32c5c00b8c254b1924", "score": "0.46982807", "text": "public List<Movie> findAll();", "title": "" }, { "docid": "1ccaffab7478cf38f27dc9e34a182201", "score": "0.46932334", "text": "public void testAddMovie() {\r\n\t\t \t}", "title": "" }, { "docid": "ce9b20ca4bd5cc7d3d14bf7874c4e6c5", "score": "0.4692516", "text": "List<Category> findAllCategories();", "title": "" }, { "docid": "9e9965af2091494a8dc1c4f7d67bdbcd", "score": "0.46915162", "text": "List<Category> list();", "title": "" }, { "docid": "3299a7e95cb9a8cc2b3546821840f951", "score": "0.46878594", "text": "public Iterator<MediaWiki.CategoryMembership> getCategories(final String title) {\n \t\treturn new MediaWiki.CategoryIterator(title);\n \t}", "title": "" }, { "docid": "eadab60cc19de80fbfa85278522d40ca", "score": "0.46872777", "text": "public void setCategory(VehicleCategory category);", "title": "" }, { "docid": "e8ab767abc0431aa4d6c02fa8fb8af9b", "score": "0.46745673", "text": "public ArrayList<Movie> selectAllMovies();", "title": "" }, { "docid": "e8e0cbe7d0257db74dcac00d3ad9c25d", "score": "0.4667809", "text": "public interface NegativeCategory extends FullScopeCategory{\n}", "title": "" }, { "docid": "4a4d7b6a8bde2880f5b9e20657ae93ae", "score": "0.46650994", "text": "public void upgrapeUserCategoy(){\n \n String clasification;\n \n if(sharedSongs < 3){\n clasification = String.valueOf(Categories.Newbie);\n } else if(sharedSongs < 10){\n clasification = String.valueOf(Categories.LittleContributor);\n } else if(sharedSongs < 30){\n clasification = String.valueOf(Categories.MildContributor);\n } else{\n clasification = String.valueOf(Categories.StarContributor);\n }\n \n category = clasification;\n }", "title": "" }, { "docid": "72722baa43ec4295b507f3e758611b65", "score": "0.46632987", "text": "private void setChildMovies(){\n\n Action_Movies = new ArrayList<>();\n Romantic_Movies = new ArrayList<>();\n Comedy_Movies = new ArrayList<>();\n\n Action_Movies.add(\"Dark Knight\");\n Action_Movies.add(\"Transporter\");\n Action_Movies.add(\"Iron Man\");\n\n Romantic_Movies.add(\"Twilight\");\n Romantic_Movies.add(\"Titanic\");\n Romantic_Movies.add(\"The House Bunny\");\n\n Comedy_Movies.add(\"We are the millers\");\n Comedy_Movies.add(\"Hang over\");\n Comedy_Movies.add(\"Last Night\");\n\n childList = new ArrayList<>();\n\n childList.add(Action_Movies);\n childList.add(Romantic_Movies);\n childList.add(Comedy_Movies);\n\n\n }", "title": "" }, { "docid": "c8eb07a4b31b6908bd8c1974ecf4078d", "score": "0.46632576", "text": "com.ua.mytrinity.tv_client.proto.MovieServer.Collection getCollections(int index);", "title": "" }, { "docid": "a86818ea0b633181ff9252abca282372", "score": "0.46519965", "text": "public void crearCategoria(CategoriaMovimiento categoria);", "title": "" }, { "docid": "9e878e405e5d26a22664450796a3969e", "score": "0.4649994", "text": "@ElementCollection(fetch = FetchType.EAGER) // eager-load due to close association\n @Sort(type = SortType.NATURAL)\n // Override strange defaults.\n @CollectionTable(\n name = \"discrete_numerical_var_category\",\n joinColumns = @JoinColumn(name = \"variable_id\"))\n public SortedSet<Category> getCategories()\n {\n return fCategories;\n }", "title": "" }, { "docid": "d9976c0d526acde34cc30ae9fd6fcc37", "score": "0.4645937", "text": "public void setCategoria(int param){\n \n // setting primitive attribute tracker to true\n localCategoriaTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localCategoria=param;\n \n\n }", "title": "" }, { "docid": "b6466787d291effeae70fda410cdb91f", "score": "0.46447122", "text": "public void access( Element genre ) {\n\n for ( int i = 0; i < genre.getChildren().size(); i++ ) {\n if ( genre.getChildren().get( i ).hasChildren() ) {\n // If its a genre\n access( genre.getChildren().get( i ) );\n // Call function again\n } else if ( genre.getChildren().get( i ).hasChildren() == false ) {\n // If it's an album\n if ( ( (Album) genre.getChildren().get( i ) ).getPerformer()\n .equals( stringToken ) ) {\n // If the performer is equal.\n albumSet.add( genre.getChildren().get( i ) );\n System.out.println( \"I have added \"\n + ( (Album) genre.getChildren().get( i ) )\n .getTitle() + \" to the BY set.\" );\n }\n }\n }\n return;\n }", "title": "" }, { "docid": "8a7f4247e2a74e576f5c3aad67108271", "score": "0.46376288", "text": "public Movie getMovie() {\r\n return movie;\r\n }", "title": "" }, { "docid": "66f3b86d83105f04d446c203a510b281", "score": "0.4632543", "text": "public void moviesNetflix(){\n\n instanceMovies.stream().filter(n-> n.getNetflix().equals(\"1\"))\n .forEach(netflix-> System.out.println(netflix.getTitle()+\"--\"+netflix.getRuntime()));\n\n }", "title": "" }, { "docid": "79f88076844981760c7d47daa512403f", "score": "0.46204153", "text": "@Override\r\n\tpublic Collection<Catagory> getCatagory() {\n\t\tCollection list = new ArrayList();\r\n\t\t\r\n\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\tCatagory catagory = new Catagory();\r\n\t\t\tcatagory.setCatagoryId(String.valueOf(i));\r\n\t\t\tcatagory.setCatagoryDescription(\"类型\"+i);\r\n\t\t\tlist.add(catagory);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "7de6bf53a9bae0d247d212579780cd0e", "score": "0.46179426", "text": "@Test\n\tpublic void setGenre3v2Test() {\n\t\tMovie movie3 = new Movie(\"1234\", \"Ianderson\", \"1990\", \"9\", \"dogs\", \"puppypic\", null, null, null, null);\n\t\tMovie movie4 = new Movie(\"555\", \"EmilyTrinh\", \"1990\", \"9\", \"dogs\", \"puppypic\", \"Action\", \"Action\", \"Action\", \"Action\");\n\t\tassertEquals(movie3.getGenre3(), null);\n\t\tmovie3.setGenre3(28);\n\t\tassertEquals(movie3.getGenre3(), movie4.getGenre3());\n\t}", "title": "" }, { "docid": "43b58c22b003551e7538a205d77a9b62", "score": "0.46170586", "text": "public java.util.Collection getGenre();", "title": "" }, { "docid": "868ca07e5fbc0eb0af5db00006b1e681", "score": "0.4616245", "text": "org.dhis2.ns.schema.dxf2.CategoryOptionsDocument.CategoryOptions addNewCategoryOptions();", "title": "" }, { "docid": "f55330755ce99652ac5316895ff520d0", "score": "0.46137136", "text": "protected void initCategory(){\n\t\tcategory = new HijasonCategory(this);\n\t}", "title": "" }, { "docid": "67489ae60693869430e29380f2c54317", "score": "0.4612704", "text": "private void displayAllMovies() {\n\t\t\r\n\t}", "title": "" }, { "docid": "baba1642c90edef4e2f678221d94f729", "score": "0.46117553", "text": "List<CarBrand> getCategories();", "title": "" } ]
58b0e16c6eaa6b8a44a6f8863e5d56a3
Calculate the cost to travel the same distance with an electric car
[ { "docid": "88e35d9b9a22cd76958fa6b9ed861bb3", "score": "0.6508814", "text": "public void calculateCostTravel(){\n }", "title": "" } ]
[ { "docid": "612024908a1895de7a9e52258fe7aaef", "score": "0.70768917", "text": "private void calculateCostForRoute() {\n route.add(0, startingLocation);\n costForRoute = 0;\n for (int i = 0; i < route.size() - 1; i++) {\n costForRoute += route.get(i).getEdge(route.get(i + 1)).length;\n }\n route.remove(0);\n }", "title": "" }, { "docid": "9068c0ef3b8996063fccb2dea06f4066", "score": "0.688041", "text": "private void computeCost() {\r\n\t\tcostToTile = parent.getCostToTile()\r\n\t\t\t\t+ VectorComputation.getInstance().getDistance(position, parent.getPosition()); // Travelled Distance.\r\n\t\tfloat costToGoal = VectorComputation.getInstance().getDistance(position, goalPosition); // Smart heuristic.\r\n\t\tcost = costToTile + costToGoal; // Sum.\r\n\t}", "title": "" }, { "docid": "c3e9c590edb0515c2333c8d82aec949a", "score": "0.6870009", "text": "private double getCostOfRoute(ArrayList<Integer> route) {\r\n\t\tdouble totalCost = 0.0;\r\n\t\tint startCity = 0;\r\n\t\tint nextCity = 0;\r\n\t\tfor(int i=0; i<route.size()-1; i++){\r\n\t\t\tstartCity = route.get(i);\r\n\t\t\tnextCity = route.get(i+1);\r\n\t\t\ttotalCost += cityLocations[startCity][nextCity];\t\r\n\t\t}\r\n\t\tint firstCity = route.get(0);\r\n\t\tint endCity = route.get(route.size()-1);\r\n\t\ttotalCost += cityLocations[endCity][firstCity];\r\n\t\treturn totalCost;\r\n\t}", "title": "" }, { "docid": "6e237f7ddee74aa7ca35cd20afa77ea0", "score": "0.6749976", "text": "abstract public double calculateCostsOfMovement (final AVehicle vehicle);", "title": "" }, { "docid": "8a1b041b84627e36e56665b3506af9dc", "score": "0.66877997", "text": "public double travelledDistanceCost() {\n\t\treturn DIS_RATE * this.getTravelledDistanceInKM();\n\t}", "title": "" }, { "docid": "eaa20454bbd082df31a4d448afb88827", "score": "0.6615301", "text": "public double calculateCost(int distance) {\n\n\t\tdouble cost = 0;\n\t\tint base = 80;\n\t\tint first = 5, fare = 12;\n\t\tint remdistance = distance - first;\n\t\tint aftermilestones = 10;\n\t\tint milestonedist = 100;\n\t\tif (distance < milestonedist) {\n\t\t\tint calc = (remdistance * fare);\n\t\t\t// System.out.println(calc);\n\t\t\tcost = calc + base;\n\t\t} else {\n\t\t\tcost = distance * aftermilestones;\n\t\t}\n\t\treturn cost;\n\t}", "title": "" }, { "docid": "f8874be8b1461a76610ff71cdb9c6726", "score": "0.656446", "text": "double calculateCost() {\r\n\t\tLOGGER.debug(\"Cost Estimation Started...\");\r\n\t\tLOGGER.debug(\"Cost Estimation Done!!!\");\r\n\t\treturn area*rate[material-1];\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3c3fcd5a1ef00d97c840fca2e6e5361d", "score": "0.65427417", "text": "double cost();", "title": "" }, { "docid": "a1cb3e2f48fe3e3fe5299d651900736a", "score": "0.65260994", "text": "public int getCost() {\n int cost = 1000;\n\n// if (flights.size() == 1) {\n// cost = 500;\n// }\n\n for (Flight flight : flights) {\n\n /*\n * Se um reposicionamento não é ruim para a companhia aerea\n * ( desde que ele reduza o numero de atrasos nos voos regulares )\n * então não tem sentido penaliza-lo.\n */\n if (flight.getReposition()) {\n cost += flight.getFlightTime() + flight.getGroundTime();\n }\n\n cost += flight.getCost();\n }\n\n return cost;\n }", "title": "" }, { "docid": "c51114d317e73aa5212d5a5bd6476f18", "score": "0.6499815", "text": "public TransportationCost calcCostForRoute(Place start, Place destination) {\n PathWrapper path = hopper.route(buildRequest(start,destination)).getBest();\n /*PointList list = path.getWaypoints();\n for(int i = 0; i<list.getSize();i++) {\n System.out.println(\"lon: \" + list.getLon(i) + \" lat: \" + list.getLat(i));\n }\n System.out.println(\"----------------------------------------------------\");*/\n\n /*for(Instruction instruction : path.getInstructions()) {\n System.out.println(instruction.getPoints().getLat(0));\n }\n System.out.println(\"-------------------------------\");*/\n\n return processResults(path);\n\n }", "title": "" }, { "docid": "991585c7577d89c67c77b3252c7c5b8c", "score": "0.64633244", "text": "public double calculateTotalCost() {\n double leftArmChargeCost = robotBus.getLeftArm().getMaxCharge()*0.2/1000;\n double rightFootChargeCost = robotBus.getRightFoot().getMaxCharge()*0.2/1000;\n double rightThighChargeCost = robotBus.getRightThigh().getMaxCharge()*0.2/1000;\n double rightPowerLimbChargeCost = robotBus.getRightPowerLimb().getMaxCharge()*0.2/1000;\n double hipChargeCost = robotBus.getHip().getMaxCharge()*0.2/1000;\n double shoulderChargeCost = robotBus.getShoulder().getMaxCharge()*0.2/1000;\n return leftArmChargeCost+rightFootChargeCost+\n rightThighChargeCost+rightPowerLimbChargeCost+\n hipChargeCost+shoulderChargeCost;\n }", "title": "" }, { "docid": "f7776b7dfffc803990255235eddeaa02", "score": "0.644365", "text": "public double getCost(){\n return (resistance*length);\n }", "title": "" }, { "docid": "3cca4b0e6b4d8f34053ccdcdd641f8d8", "score": "0.6365207", "text": "public double cost();", "title": "" }, { "docid": "4b056b821f48ffe3415a3237039a40e2", "score": "0.632759", "text": "float getCost();", "title": "" }, { "docid": "4b056b821f48ffe3415a3237039a40e2", "score": "0.632759", "text": "float getCost();", "title": "" }, { "docid": "9ed0cfd1585cfb60dd7a0ef0744017d9", "score": "0.6316676", "text": "public long getArcCostForVehicle(long from_index, long to_index, long vehicle) {\n return mainJNI.RoutingModel_getArcCostForVehicle(swigCPtr, this, from_index, to_index, vehicle);\n }", "title": "" }, { "docid": "59d8b347ebfed0e46376d9e36ca9dc8e", "score": "0.63075036", "text": "public void solucion(){\n double dummy = totalDistances[0];\n int flag = 0;\n \n //Creo que me hubiera ahorrado mas tiempo usando Listas en vez de arreglos, pero tenia que llenarlas\n //para luego reemplazarlos con los valores adecuados y eso era un poco molesto.\n for (int i = 0; i < size; i++) {\n if (dummy < totalDistances[i]) {\n dummy = totalDistances[i];\n flag = i;\n }\n }\n \n System.out.println(\"Recorrido mas barato: \" + visitedCities.get(flag));\n for (int i = 0; i <= size; i++) {\n //System.out.print(visitedCities[flag][i] + \" \");\n }\n \n System.out.println(\"\\nCon un costo de:\\n\" + totalDistances[flag]);\n System.out.println(\"Tiempo: \" + time + \" ms\");\n }", "title": "" }, { "docid": "8df833d0f50ff1ca0d207aaa7135b5d7", "score": "0.63023335", "text": "protected double calcCost()\n {\n return cost * output;\n }", "title": "" }, { "docid": "af7a7079533d2d278bb4a17176a21f83", "score": "0.6293136", "text": "public double costo();", "title": "" }, { "docid": "685e4d0eda80e8e06b4b47dc89b506ff", "score": "0.62888175", "text": "public double getCost ()\n {\n return cost / flights;\n }", "title": "" }, { "docid": "f4cef7ec27d75c67fc00f8cbdaae1737", "score": "0.6251808", "text": "double getEndcost();", "title": "" }, { "docid": "d6742639050d783c21faad4062dd694a", "score": "0.62005275", "text": "@Override\n\tpublic double calCost() {\n\t\treturn super.price+d_charges;\n\t}", "title": "" }, { "docid": "c95018dd7cb7aa7d7c60f8e8e6a64dfe", "score": "0.61952007", "text": "public abstract double cost();", "title": "" }, { "docid": "c95018dd7cb7aa7d7c60f8e8e6a64dfe", "score": "0.61952007", "text": "public abstract double cost();", "title": "" }, { "docid": "c95018dd7cb7aa7d7c60f8e8e6a64dfe", "score": "0.61952007", "text": "public abstract double cost();", "title": "" }, { "docid": "b1c43e7cc7e1daaa2f62d1f6b19f37d9", "score": "0.6166285", "text": "public double updateSeqCost() {\n\t\t \t\n\t\t \t/*\tCompute the cost of the current Sequence */\n\t\t \t\n\t \t\tCity myCity=seqVehicle.getCurrentCity();\n\t \t\tEvent myEvent=null;\n\t \t\tArrayList<Event> seqEvents = new ArrayList<Event>(this.getSeqEvents()); //might not work\n\t \t\tseqCost = 0;\n\t \t\tfor(int i=0;i<seqEvents.size();i++)\n\t \t\t{\n\t \t\t\tmyEvent = seqEvents.get(i);\n\t \t\t\tif(myEvent.getStatus()==Status.PICKUP)\n\t \t\t\t{\n\t \t\t\t\tseqCost += myCity.distanceTo(myEvent.getTask().pickupCity);\n\t \t\t\t\tmyCity = myEvent.getTask().pickupCity;\n\t \t\t\t}else \n\t \t\t\t{\n\t \t\t\t\tseqCost += myCity.distanceTo(myEvent.getTask().deliveryCity);\n\t \t\t\t\tmyCity = myEvent.getTask().deliveryCity;\n\t \t\t\t}\n\t \t\t}\n\t \t\tseqCost *= seqVehicle.costPerKm();\n\t \t\treturn seqCost;\n\t\t }", "title": "" }, { "docid": "e3013e41868505ca574196d6b7fee846", "score": "0.6161738", "text": "public double calculateOptimizedCost(Object o) {\n return getTotalDistance(o);\n }", "title": "" }, { "docid": "59d973b0ed928215049bf39ef83542bc", "score": "0.6152924", "text": "public abstract double getCost();", "title": "" }, { "docid": "59d973b0ed928215049bf39ef83542bc", "score": "0.6152924", "text": "public abstract double getCost();", "title": "" }, { "docid": "59d973b0ed928215049bf39ef83542bc", "score": "0.6152924", "text": "public abstract double getCost();", "title": "" }, { "docid": "59d973b0ed928215049bf39ef83542bc", "score": "0.6152924", "text": "public abstract double getCost();", "title": "" }, { "docid": "5e8e7fe4ce03b8622bb4f3ad4a16c6cd", "score": "0.61379635", "text": "void calculateDistanceToDestination();", "title": "" }, { "docid": "aa0ef1116f3dd52da3127940523e7c72", "score": "0.6131568", "text": "public double cost() {\r\n return 20 + room.cost();\r\n }", "title": "" }, { "docid": "606bbea77e46e0e38abba6083b1a025a", "score": "0.61149216", "text": "private void calcEstimatedRentalCost() {\n //getRD();\n screen_lines = SystemInterface.estimatedRentalCost(getRD());\n displayLines(screen_lines);\n System.out.println(\"you did it\");\n\n }", "title": "" }, { "docid": "0de85206193505fcfa3fb1e67dff3318", "score": "0.61106235", "text": "public void calculatingPrice() {\n Iterator<LegEntity> it = legsOfJourney.iterator();\n price = new BigDecimal(0);\n while (it.hasNext()) {\n price = price.add(it.next().getPriceEn().getPrice());\n }\n }", "title": "" }, { "docid": "f12f01627ab8b8881bf0622492528a73", "score": "0.6094074", "text": "@Override\n public double cost() {\n return .20 + beverage.cost();\n }", "title": "" }, { "docid": "5eaad7dcd208887d12fc5d532155bd9b", "score": "0.6065803", "text": "public double travelTime(double distance) {\n\t\treturn distance / speedCar;\n\t}", "title": "" }, { "docid": "7568c04544da7486edf078b50047728d", "score": "0.60609704", "text": "private double distance(CarState cs1, CarState cs2){\n\t\treturn Math.sqrt(Math.pow((cs1.get())[0]-(cs2.get())[0], 2)+Math.pow((cs1.get())[1]-(cs2.get())[1], 2) + \n\t\t\tMath.pow((cs1.get())[2]-(cs2.get())[2], 2));\n\t}", "title": "" }, { "docid": "3ce623e1eb5b884e9e17858894fdb67e", "score": "0.6046978", "text": "public abstract double calculateTotalCost();", "title": "" }, { "docid": "fa15962fdd5b803bdadbae6ac3a2cab8", "score": "0.6041145", "text": "private void calcCost () // this method must return a double\n {\n if (dayCode == 's')\n {\n cost = (startHour * 0.15);\n }\n else if (dayCode == 'm' || dayCode == 't' || dayCode == 'w' || dayCode == 'r' || dayCode == 'f')\n {\n if (startHour > 8 && startHour < 18)\n {\n cost = callLength * .40;\n }\n else if (startHour < 6)\n {\n cost = callLength * .25;\n }\n else if (startHour > 19)\n {\n cost = callLength * .25;\n }\n else\n {\n System.out.println (\"not an option\");\n }\n }\n }", "title": "" }, { "docid": "53d55030bf58560e61c1f60bfd863470", "score": "0.60381687", "text": "public double totalCost(){\r\n return Arrays.stream(availability).filter(x -> x != null)\r\n .mapToDouble(x -> perPersonPrice * x.getPersonCount()).sum();\r\n }", "title": "" }, { "docid": "616b7ac01d98ade98f372323f6a1db21", "score": "0.6035773", "text": "int cost();", "title": "" }, { "docid": "35a8408c2eff9cb26cd65888258b3378", "score": "0.6022826", "text": "private Double calcula_CAP_acost() {\n\n Double vComprimento = Double.parseDouble(vemComprimento.getText().toString());\n Double vLargura = Double.parseDouble(vemLargura.getText().toString());\n Double vEspessura = Double.parseDouble(vemEspessura.getText().toString());\n Double vTaxa = Constants.CAP_PMQ;\n Double cappistaFinal;\n return cappistaFinal = vComprimento * vLargura * vEspessura * vTaxa;\n }", "title": "" }, { "docid": "dc9512a6edfadc27c0e06b1bac604f96", "score": "0.60183585", "text": "private double calculateTransportPrice(Integer transportDistance) {\n if (transportDistance > 0) {\n double price = this.transportServiceClient.getTransportPricePerKilometer();\n return price * transportDistance;\n }\n return 0;\n }", "title": "" }, { "docid": "b52947ea59c7f44c50c446ab846dc40c", "score": "0.6015921", "text": "@Override\r\n public double cost()\r\n {\r\n return 5.00 + this.room.cost();\r\n }", "title": "" }, { "docid": "6628332f17a42e90180ed4ec05801f53", "score": "0.6014655", "text": "public int totalCost() {\n return costSoFar + (BETTER ? manhattanDistance() : tilesOutOfPlace());\n }", "title": "" }, { "docid": "49b18252059f14baf409ff987b454e3b", "score": "0.6013253", "text": "public double cost() {\n return 2.56;\n }", "title": "" }, { "docid": "0ee89cd4c15e0724aa63294050d7ae5c", "score": "0.6011742", "text": "public long getFixedCostOfVehicle(int vehicle) {\n return mainJNI.RoutingModel_getFixedCostOfVehicle(swigCPtr, this, vehicle);\n }", "title": "" }, { "docid": "55dfba20f528899aa7e3043510051550", "score": "0.6008207", "text": "public int getCost(int rental_length) {\n if (this.getModel() == CarType.ECONOMY) {\n return this.selected.getCost(rental_length) + 5;\n }\n else if (this.getModel() == CarType.LUXURY) {\n return this.selected.getCost(rental_length) + 20;\n }\n else if (this.getModel() == CarType.SUV) {\n return this.selected.getCost(rental_length) + 15;\n }\n else if (this.getModel() == CarType.STANDARD) {\n return this.selected.getCost(rental_length) + 10;\n }\n else if (this.getModel() == CarType.MINIVAN) {\n return this.selected.getCost(rental_length) + 10;\n }\n else {\n return -1;\n }\n }", "title": "" }, { "docid": "a551229a48b70413d3b6f443eb2f1112", "score": "0.599979", "text": "public double calcCost () {\n if (size.equals(\"SMALL\")) {\n return 10 + (numberOfCheeseTopping + numberOfPepperoniToppning + numberOfHamTopping) * 3;\n } else if (size.equals(\"MEDIUM\")) {\n return 15 + (numberOfCheeseTopping + numberOfPepperoniToppning + numberOfHamTopping) * 2.5;\n } else if (size.equals(\"LARGE\")) {\n return 20 + (numberOfCheeseTopping + numberOfPepperoniToppning + numberOfHamTopping) * 2;\n } else {\n return 0.00; \n }\n }", "title": "" }, { "docid": "f462ccc3c06c044d3e5e59e8ded57a83", "score": "0.599707", "text": "int totalCost() {\r\n\t\treturn room.cost() * (int)days();\r\n\t}", "title": "" }, { "docid": "ac4a9d65bdc23c577053fc0c8f991eef", "score": "0.59921294", "text": "@Test\n public void testRightNoLightInCar() {\n Coordinate a = new Coordinate(40.750167, (-73.990989));\n Coordinate b = new Coordinate(40.749094, (-73.988049));\n Coordinate c = new Coordinate(40.748509, (-73.988693));\n // A vertex for each. No light.\n IntersectionVertex u = vertex(\"from_v\", a, false);\n IntersectionVertex v = vertex(\"intersection\", b, false);\n IntersectionVertex w = vertex(\"to_v\", c, false);\n // Two edges.\n StreetEdge fromEdge = edge(u, v, 1.0, false);\n StreetEdge toEdge = edge(v, w, 1.0, false);\n // 3rd edge prevents inferral of free-flowingness\n StreetEdge extraEdge = edge(v, u, 1.0, false);\n int turnAngle = costModel.calculateTurnAngle(fromEdge, toEdge, options);\n Assert.assertTrue(costModel.isRightTurn(turnAngle));\n Assert.assertFalse(costModel.isLeftTurn(turnAngle));\n float fromSpeed = 1.0F;\n float toSpeed = 1.0F;\n TraverseMode mode = CAR;\n double traversalCost = costModel.computeTraversalCost(v, fromEdge, toEdge, mode, options, fromSpeed, toSpeed);\n // Cost with default values = 8.0\n Assert.assertEquals(8.0, traversalCost, 0.0);\n }", "title": "" }, { "docid": "ea1b340868d5ea5c3e53fa4db98a9ed8", "score": "0.5979793", "text": "public double getCost(){\n\t\t\r\n\t\treturn cost;\r\n\t}", "title": "" }, { "docid": "181a65dd8b02af3bc7cbf47a5245a94e", "score": "0.59672964", "text": "public double getTotalCost(Object o) {\n return getTotalDistance(o);\n }", "title": "" }, { "docid": "9c30d1931e5dfa31b15098c26142d818", "score": "0.59640926", "text": "private double costG(Cell a, Cell b, DIRECTION aDir) {\n double moveCost = RobotConstants.MOVE_COST; // one movement to neighbor\n\n double turnCost;\n DIRECTION targetDir = getTargetDir(a.getRow(), a.getCol(), aDir, b);\n turnCost = getTurnCost(aDir, targetDir);\n\n return moveCost + turnCost;\n }", "title": "" }, { "docid": "91aa9abc3589b8f60fbab2f0d6061f40", "score": "0.59602904", "text": "@Override\n\tpublic double cost() {\n\t\treturn beverage.cost()+0.8;\n\t}", "title": "" }, { "docid": "3a9fb7f4d0d5480e5a3b54c47c4a4d25", "score": "0.5948246", "text": "@Override\r\n\tpublic double cost() {\n\t\treturn 1.89;\r\n\t}", "title": "" }, { "docid": "d8bf8467eeda640e28824fa8f194ccc2", "score": "0.5944425", "text": "public double calcCost() {\n double totalPrice = width * length *unitPrice;\n if(isPersian){\n totalPrice+=200;\n }\n return totalPrice;\n }", "title": "" }, { "docid": "a41bd8e3cd4ae2ecb0b52a539ba02f02", "score": "0.5936464", "text": "@Test\n public void testStraightNoLightInCar() {\n Coordinate a = new Coordinate((-73.990989), 40.750167);\n Coordinate b = new Coordinate((-73.988049), 40.749094);\n Coordinate c = new Coordinate((-73.984981), 40.747761);\n // A vertex for each. No light.\n IntersectionVertex u = vertex(\"from_v\", a, false);\n IntersectionVertex v = vertex(\"intersection\", b, false);\n IntersectionVertex w = vertex(\"to_v\", c, false);\n // Two edges.\n StreetEdge fromEdge = edge(u, v, 1.0, false);\n StreetEdge toEdge = edge(v, w, 1.0, false);\n // 3rd edge prevents inferral of free-flowingness\n StreetEdge extraEdge = edge(v, u, 1.0, false);\n float fromSpeed = 1.0F;\n float toSpeed = 1.0F;\n TraverseMode mode = CAR;\n double traversalCost = costModel.computeTraversalCost(v, fromEdge, toEdge, mode, options, fromSpeed, toSpeed);\n // Cost with default values = 5.0\n Assert.assertEquals(5, traversalCost, 0.0);\n }", "title": "" }, { "docid": "d70dea133a1b3de7450ad78709db905a", "score": "0.59272003", "text": "@Override\n\tpublic double cost() {\n\t\treturn cake.cost() + 19.99;\n\t}", "title": "" }, { "docid": "b472e327286b0a8d3ad03196814d901d", "score": "0.591882", "text": "float getTargetDistance();", "title": "" }, { "docid": "e0aa3016404f123d263d6e812e6cc5d2", "score": "0.5907387", "text": "float getFixedCost();", "title": "" }, { "docid": "db0868cd86bc469892a4616706f39d9e", "score": "0.59030694", "text": "public double globalCalculateOptimizedCost(Object o) {\n return getTotalDistance(o);\n }", "title": "" }, { "docid": "f5d9eeb1d5d7abec56bfb650d5d7243a", "score": "0.5899158", "text": "public double calculateDistance(String trip){\n\t\t\n\t\tdouble result = 0.0;\n\t\t\n\t\ttrip = Route.formatKey(trip);\n\t\t\n\t\tif(isRouteAvailable(trip)){\n\t\t\t\n\t\t\tRoute route = new Route(trip);\n\t\t\t\n\t\t\tfor(int i=0;i < route.getNumberOfNodes()-1; i++){\n\t\t\t\t\n\t\t\t\tString id\t= route.getKeyOfStop(i);\n\t\t\t\t\n\t\t\t\tRoute r\t\t= getRoute(id);\n\t\t\t\t\n\t\t\t\tif(r!=null){\n\n\t\t\t\t\tresult += r.getDistance();\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tresult = 0.0;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "0e31c398812807de345db1bdcca75b8e", "score": "0.5897661", "text": "public int getPathCost() { return this.cost + this.heuristicCost; }", "title": "" }, { "docid": "5dadd2a4745092fda5432d8337ee46c7", "score": "0.5897637", "text": "private TransportationCost processResults(PathWrapper path) {\n double cost = 0;\n cost += path.getTime()/60000;\n cost += path.getDistance()/1000;\n //System.out.println(cost);\n return new TransportationCost((int)path.getTime()/60000, (int)(path.getDistance()/1000), path.getInstructions());\n }", "title": "" }, { "docid": "e447ef26278578eedcaa0c2e8c0e43fd", "score": "0.5894882", "text": "private void calculateDistances() {\n this.passengerMap.forEach(\n (key, value) -> {\n Airport a = this.airportHashMap.get(value.getSrcAirportCode());\n Airport b = this.airportHashMap.get(value.getDestAirportCode());\n this.flightDistances.put(\n key,\n distance(\n a.getLatitude(), a.getLongitude(),\n b.getLatitude(), b.getLongitude(),\n \"N\"\n )\n );\n }\n );\n\n // Sort the HashMap by value in ascending order\n }", "title": "" }, { "docid": "bf1314ea119d89e228b53f86178e70c9", "score": "0.5893653", "text": "public double getPotentialCost(String destination, FlightCriteria criteria) {\n return (this.getFlight(destination).getDestinationCost(criteria));\n }", "title": "" }, { "docid": "8e871f6772ff7e30f2c93c1f38a4351e", "score": "0.5887505", "text": "public double calculateCost()\n\t{\n\t\tdouble costInCart=0;\t\t\n\t\tfor(int i=0; i<count; i++)\n\t\t{\n\t\t\tcostInCart+= shoppingCart[i].getCost() * shoppingCart[i].getqCustomer(); \n\t\t}\n\t\treturn costInCart;\n\t}", "title": "" }, { "docid": "0c6a20a5d5a168d7295d74bb534a6281", "score": "0.5883605", "text": "Integer cost();", "title": "" }, { "docid": "0c6a20a5d5a168d7295d74bb534a6281", "score": "0.5883605", "text": "Integer cost();", "title": "" }, { "docid": "1148c047c18fdbc8d921be03b920583b", "score": "0.58835804", "text": "public double makeTrip() { //This works out the cost of the trip based on the discount type and vehicle info\n if (discountType == DiscountType.STAFF) {\n return this.Vehicle.calculateBasicTripCost() * 0.5;\n }\n else if (discountType == DiscountType.FRIENDS_AND_FAMILY) {\n return this.Vehicle.calculateBasicTripCost() * 0.9;\n }\n else {\n return this.Vehicle.calculateBasicTripCost();\n }\n }", "title": "" }, { "docid": "af059f7a2a53d8ce5afa4f7a9ea7d6cf", "score": "0.58818966", "text": "public double getSpeed(double currentDistance, double totalDistance);", "title": "" }, { "docid": "a0c382b5ef553498b58ce5689da5cc22", "score": "0.5881331", "text": "@Test\n public void testLeftNoLightInCar() {\n Coordinate a = new Coordinate(40.750167, (-73.990989));\n Coordinate b = new Coordinate(40.749094, (-73.988049));\n Coordinate c = new Coordinate(40.74976, (-73.987749));\n // A vertex for each. No light.\n IntersectionVertex u = vertex(\"from_v\", a, false);\n IntersectionVertex v = vertex(\"intersection\", b, false);\n IntersectionVertex w = vertex(\"to_v\", c, false);\n // Two edges.\n StreetEdge fromEdge = edge(u, v, 1.0, false);\n StreetEdge toEdge = edge(v, w, 1.0, false);\n // 3rd edge prevents inferral of free-flowingness\n StreetEdge extraEdge = edge(v, u, 1.0, false);\n int turnAngle = costModel.calculateTurnAngle(fromEdge, toEdge, options);\n Assert.assertFalse(costModel.isRightTurn(turnAngle));\n Assert.assertTrue(costModel.isLeftTurn(turnAngle));\n float fromSpeed = 1.0F;\n float toSpeed = 1.0F;\n TraverseMode mode = CAR;\n double traversalCost = costModel.computeTraversalCost(v, fromEdge, toEdge, mode, options, fromSpeed, toSpeed);\n // Cost with default values = 8.0\n Assert.assertEquals(8.0, traversalCost, 0.0);\n }", "title": "" }, { "docid": "29e071580f2af49d0d42b130d252a0e7", "score": "0.5873624", "text": "private int estiPrice() {\n // obtaining vehicle type from the vehicles license\n Vehicle vehicle = new Vehicle(this.vLicense);\n int HRate = vehicle.getHRate();\n int WRate = vehicle.getWRate();\n int DRate = vehicle.getDRate();\n int KRate = vehicle.getKRate();\n int WiRate = vehicle.getWiRate();\n int DiRate = vehicle.getDiRate();\n\n long diff = toTime.getTime() - fromTime.getTime();\n\n int week = (int) diff / W;\n diff %= W;\n\n int day = (int) diff / D;\n diff %= D;\n\n int hour = (int) diff / H;\n diff %= H;\n\n int priceEsti = week * WRate + day * DRate + hour * HRate;\n System.out.println(\"YOUR ESTIMATED PRICE IS: \" + priceEsti);\n\n int premEsti = week * WiRate + day * DiRate + hour * KRate;\n System.out.println(\"YOUR ESTIMATED PREMIUM IS: \" + premEsti);\n\n // check RoadStar status of customer (WAITING FOR KATRINA'S CUSTOMER.JAVA)\n// Customer customer = new Customer(dLicense);\n// if (customer.getIsRoadStar()) {\n// priceEsti += premEsti / 2;\n// } else {\n// priceEsti += premEsti;\n// }\n\n // calc additional equipment cost (ADDITIONAL EQUIPMENT NOT DONE)\n// priceEsti += (week * 7 + day) * equipDailyRate;\n// priceEsti += hour * equipHourlyRate;\n\n return priceEsti;\n }", "title": "" }, { "docid": "c799ac3967986c2318bacdc0ce757ea9", "score": "0.58680457", "text": "@Override\r\n\tpublic double getCost() {\n\t\treturn super.getCost() + this.price_toppings;\r\n\t}", "title": "" }, { "docid": "ad6040fcf580b3dafffa5a32fff85dc1", "score": "0.58674383", "text": "private double calculateCost(String cart) {\n\t\tdouble total = 0;\n\n\t\tHashMap<Integer, Integer> parts = new HashMap<Integer, Integer>();\n\n\t\tJSONArray partsJSON;\n\t\ttry {\n\t\t\tpartsJSON = new JSONArray(cart);\n\n\t\t\tfor (int i = 0; i < partsJSON.length(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tparts.put(Integer.parseInt(partsJSON.getJSONObject(i).names().get(0) + \"\"),\n\t\t\t\t\t\t\tpartsJSON.getJSONObject(i).getInt(partsJSON.getJSONObject(i).names().get(0) + \"\"));\n\t\t\t\t} catch (NumberFormatException | JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (JSONException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tfor (Integer x : parts.keySet()) {\n\t\t\ttotal += (DBInterfacer.getPartRecord(x).getPrice() * parts.get(x));\n\t\t}\n\n\t\treturn total;\n\t}", "title": "" }, { "docid": "b28db2d5aec7d0450c7513fe5d6b07fa", "score": "0.5864549", "text": "public double calculateResourceCost(HashMap<Date, Double> travelDistanceDaily) {\n\t\tIterator<Date> iterator = travelDistanceDaily.keySet().iterator();\n\t\tdouble sum = 0;\n\t\twhile (iterator.hasNext()) {\n\t\t\tDate date = iterator.next();\n\t\t\tsum += travelDistanceDaily.get(date);\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "49aee56387384fe8a3f112cdccbc2aca", "score": "0.58633006", "text": "public double cost() {\n\t\t\n\t\treturn 50.00;\n\t}", "title": "" }, { "docid": "b8ea52f4c106f95660d4f6ac1e556eb0", "score": "0.58599174", "text": "long getContractCost();", "title": "" }, { "docid": "4b59895208452138c7dffa65bed32d52", "score": "0.58584", "text": "@Override\n\tpublic double cost() {\n\t\treturn 15;\n\t}", "title": "" }, { "docid": "30f699fdcfe8c133c1278ece7f28f5f5", "score": "0.5857598", "text": "public abstract int getCostMoving();", "title": "" }, { "docid": "4ba2bf4bcd2a33853abdac07eac7a175", "score": "0.5847862", "text": "public double gettcost( int arc ) { return( tcost[arc] );}", "title": "" }, { "docid": "d723836926128c9ee78bd5ca87cca7a3", "score": "0.58472085", "text": "private Distance calcWalkDistance(Vector2 location, int[][] cost) {\n // inittialise dist object\n Distance dist = new Distance(walkable, cost);\n dist.addInitial(location);\n dist.calcDistances(400);\n return dist;\n }", "title": "" }, { "docid": "06537cfd7520e5a61b286dedac5f22d6", "score": "0.5847085", "text": "public double getCost() {\n return cost;\n }", "title": "" }, { "docid": "273ddfc7af6b0bfb0dafde3387a86c35", "score": "0.584622", "text": "private void travelingEast()\n\t{\n\t\tArrayList<Car> cars = road.getCars();\n\t\tArrayList<TrafficLight> lights = road.getTrafficLights();\n\t\tArrayList<Car> carCrashes = new ArrayList<>();\n\t\tArrayList<TrafficLight> stopAtLights = new ArrayList<>();\n\t\tint drivingControl = this.x + speed;\n\t\tif(this.id == 1) \n\t\t{\n\t\t\tif(travelDirection == \"EW\") \n\t\t\t{\n\t\t\t\tint tempSpeed = convertSpeed(this.speed, this.ewLightCount);\n\t\t\t\tthis.car1Speed = String.format(\"%d mph\", tempSpeed);\n\t\t\t\tthis.tfSpeed1.setText(car1Speed);\n\t\t\t}\n\t\t\tthis.x1 = String.format(\"%d\", this.x);\n\t\t\tthis.tfx1.setText(x1);\n\t\t}\n\t\telse if(this.id == 2) \n\t\t{\n\t\t\tif(travelDirection == \"EW\") \n\t\t\t{\n\t\t\t\tint tempSpeed = convertSpeed(this.speed, this.ewLightCount);\n\t\t\t\tthis.car2Speed = String.format(\"%d mph\", tempSpeed);\n\t\t\t\tthis.tfSpeed2.setText(car2Speed);\n\t\t\t}\n\t\t\tthis.x2 = String.format(\"%d\", this.x);\n\t\t\tthis.tfx2.setText(x2);\n\t\t}\n\t\telse if(this.id == 3) \n\t\t{\n\t\t\tif(travelDirection == \"EW\") \n\t\t\t{\n\t\t\t\tint tempSpeed = convertSpeed(this.speed, this.ewLightCount);\n\t\t\t\tthis.car3Speed = String.format(\"%d mph\", tempSpeed);\n\t\t\t\tthis.tfSpeed3.setText(car3Speed);\n\t\t\t}\n\t\t\tthis.x3 = String.format(\"%d\", this.x);\n\t\t\tthis.tfx3.setText(x3);\n\t\t}\n\n\t\t//Distance to travel\n\t\tcars.forEach(car -> \n\t\t{\n\t\t\tif (car.x <= drivingControl && car.x > this.x)\n\t\t\t{\n\t\t\t\tcarCrashes.add(car);\n\t\t\t}\n\t\t});\n\t\tif (carCrashes.size() > 0)\n\t\t{\n\t\t\tslowForSlowCars(carCrashes);\n\t\t}\n\t\t//Intersection\n\t\tlights.forEach(trafficLight -> \n\t\t{\n\t\t\tif (trafficLight.ewLightX <= drivingControl && trafficLight.ewLightX > this.x)\n\t\t\t{\n\t\t\t\tstopAtLights.add(trafficLight);\n\t\t\t}\n\t\t});\n\n\t\t//Follow the laws of the traffic light\n\t\tif (stopAtLights.size() > 0)\n\t\t{\n\t\t\tTrafficLight light = stopAtLights.get(0);\n\t\t\tif (light.ewStatus == TrafficLightColor.RED) \n\t\t\t{\n\t\t\t\t//set spot at light\n\t\t\t\tint stopCount = carCrashes.size() > 0 ? carCrashes.size() : 1;\n\t\t\t\tdriveEast(light.ewLightX - this.x - (10 * stopCount) ); //\n\t\t\t} \n\t\t\telse if(light.ewStatus == TrafficLightColor.GREEN || light.ewStatus == TrafficLightColor.YELLOW)\n\t\t\t{\n\t\t\t\tif(random.nextBoolean())\n\t\t\t\t{\n\t\t\t\t\tdriveEast(this.speed);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdriveEast(this.speed);\n\t\t}\n\t}", "title": "" }, { "docid": "289991e2ccf487a6c70e83f616f653f9", "score": "0.584356", "text": "double getDistance();", "title": "" }, { "docid": "ac1a7c18210deb60733dd9a304d83e86", "score": "0.58367443", "text": "@Test\n public void testCalculateTotalDistance() throws Exception {\n BruteForce brueteTest = new BruteForce();\n brueteTest.shortestRoutes = new ArrayList<RouteBruteForce>();\n RouteBruteForce route = new RouteBruteForce(new ArrayList<City>());\n route.setCities(new ArrayList<City>());\n\n int result = BruteForce.calculateTotalDistance(route);\n\n // assertNotNull(result);\n assertEquals(0, result);\n }", "title": "" }, { "docid": "187f4b7a91e630d9b245e8f053286bb4", "score": "0.5836015", "text": "public double cost() {\n\t\treturn super.cost()*4;\r\n\t}", "title": "" }, { "docid": "95a52efda3cf032f325c5139431b7201", "score": "0.5827764", "text": "protected void calcDistanceToDestination(){\n distance = currentUser.getCurrentBeacon().getCoordinates()\n .distanceToOtherPoint(destination.getCoordinates());\n }", "title": "" }, { "docid": "a99c62207f8cd4fd60106950aa11fb71", "score": "0.5826207", "text": "@Override\r\n\tpublic double cost() {\n\t\treturn 10.0;\r\n\t}", "title": "" }, { "docid": "04a92f327fa9a4fe96137cd28949cbf2", "score": "0.58258474", "text": "public double calculate() {\n\t\treturn weight*distance*priceper1Km;\r\n\t}", "title": "" }, { "docid": "f8f22473f445f88765b84f1740d03c51", "score": "0.58205724", "text": "public double cost() {\n\t\treturn super.cost()*2;\r\n\t}", "title": "" }, { "docid": "492061425895bea237626333f02abf50", "score": "0.5815242", "text": "public double calculateSpeed(Double distance){\n return ((60000 / LOCATION_INTERVAL) * distance) * 60; //distance travelled in 1 minute * 60 = distance/hr\n }", "title": "" }, { "docid": "6ed9117f68939486268f55e8ae6d395f", "score": "0.58039767", "text": "public int tripDistance( Location l1, Location l2) {\n\t\tGlobal g = data.getGlobal(); \n\t\tint distance = 0; \t\n\t\tdistance += g.computeDistance(depot, l1);\n\t\tdistance += g.computeDistance(l1, l2);\n\t\tdistance += g.computeDistance(l2, depot);\n\t\t\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "46b3b5b9b419f249658014db6c294c16", "score": "0.580373", "text": "public double getTotalCost(){\n double totalCost = 0;\n for(int i=0; i<items.length; i++){\n totalCost += items[i].getPrice();\n }\n return totalCost;\n }", "title": "" }, { "docid": "7157ee66d00181c6f3d733e4eb131ee0", "score": "0.5802391", "text": "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "title": "" }, { "docid": "24123e87ff56746fe62eb227ef81f0e1", "score": "0.58016527", "text": "private static int calculateTravelTime(int distance)\n\t{\n\t\t// Assume an average driving speed of 20 MPH\n\t\tint avgMPH = 20;\n\n\t\tdouble timeInHours = (double)distance / avgMPH;\n\t\tint timeInMinutes = (int)(timeInHours * 60);\n\n\t\treturn timeInMinutes;\n\t}", "title": "" }, { "docid": "074d7574d8d8f2d75b1e27c1d069f059", "score": "0.57899356", "text": "float getDistance();", "title": "" }, { "docid": "074d7574d8d8f2d75b1e27c1d069f059", "score": "0.57899356", "text": "float getDistance();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "edf88f3e34a9706c056fd1335fdbd329", "score": "0.0", "text": "@Override\n\tpublic byte TranslateSource(int iSource) {\n\t\tbyte bySource = Source.OFF;\n\n\t\tswitch (iSource) {\n\t\tcase DDef.SOURCE_DEF.Src_radio:\n\t\t\tbySource = Source.TUNER;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_music:\n\t\t\tbySource = Source.USB;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_video:\n\t\t\tbySource = Source.USB;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_bluetooth:\n\t\t\tbySource = Source.PHONE;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_dvd:\n\t\t\tbySource = Source.DISC;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_dvr:\n\t\t\tbySource = Source.AUX;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_dtv:\n\t\t\tbySource = Source.TV;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_atv:\n\t\t\tbySource = Source.TV;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_avin:\n\t\t\tbySource = Source.AUX;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_ipod:\n\t\t\tbySource = Source.IPOD;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_phonelink:\n\t\t\tbySource = Source.OTHER;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_backcar:\n\t\t\tbySource = Source.AUX;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_bt_phone:\n\t\t\tbySource = Source.PHONE;\n\t\t\tbreak;\n\t\tcase DDef.SOURCE_DEF.Src_photo:\n\t\t\tbySource = Source.USB;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbySource = Source.OTHER;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn bySource;\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\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": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "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": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\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": "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": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\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": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\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": "" } ]
5f6875ae05af2c8afa78bab7dc04ee86
Constructor which sets the default scanner.
[ { "docid": "14e9c42816c36fa0d2ea4c1b63e926c4", "score": "0.0", "text": "@Deprecated\n public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" } ]
[ { "docid": "3582728e83dc0de528c9bb3a22573804", "score": "0.7363979", "text": "public static void init() {\n\t\tscanner = new Scanner(System.in);\n\t\treturn;\n\t}", "title": "" }, { "docid": "c102126df1ef6a32a622d3a9f97e1b59", "score": "0.71984017", "text": "public static void setScanner(Scanner s) {\n scanner = s;\n }", "title": "" }, { "docid": "5b3374aa9ca69f6dc1b7cdf9217015a8", "score": "0.7137678", "text": "public static void setInputScanner(InputScanner scanner){\n inputScanner = scanner;\n }", "title": "" }, { "docid": "302ace85af13fac6a9ac33adfe17e458", "score": "0.71248406", "text": "private ConsoleScanner() {}", "title": "" }, { "docid": "f2535e3c6e5e3e372c5120870a845213", "score": "0.70821637", "text": "public MetadataScanner()\n {\n this(\"\");\n }", "title": "" }, { "docid": "ea9b01eac1f07cc9be88d56b161f0638", "score": "0.7008351", "text": "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "title": "" }, { "docid": "d8007046ff11088466b0da7eb192916b", "score": "0.70074767", "text": "public Parser(Scanner scanner) {\n this.scanner = scanner;\n scan();\n }", "title": "" }, { "docid": "3357db0f4a6c31ff3208b6d73bdf1b84", "score": "0.6923786", "text": "public CoolParser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.6865954", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.68472075", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.68472075", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.68472075", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.68472075", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.68472075", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.68472075", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "4af9f8570668235a40cfd0670416bfc2", "score": "0.66874146", "text": "public Scanner(String program) {\n\t\tthis.program=program;\n\t\tpos=0;\n\t\ttoken=null;\n\t\tinitWhitespace(whitespace);\n\t\tinitDigits(digits);\n\t\tinitLetters(letters);\n\t\tinitLegits(legits);\n\t\tinitKeywords(keywords);\n\t\tinitOperators(operators);\n }", "title": "" }, { "docid": "c16da17fb34fca5aa9892fb593914904", "score": "0.66866326", "text": "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "title": "" }, { "docid": "c16da17fb34fca5aa9892fb593914904", "score": "0.66866326", "text": "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "title": "" }, { "docid": "42743dd1ca676c871729dbef94012cd7", "score": "0.6629352", "text": "public static void init()throws IOException{if(fileIO){f=new FastScanner(\"\");}else{f=new FastScanner(System.in);}}", "title": "" }, { "docid": "72b5ea88a2cb5ef28256594858e3f64e", "score": "0.66149765", "text": "public parser(Scanner s) {super(s);}", "title": "" }, { "docid": "1d92b0bc21553a95a1b8376e4e05755f", "score": "0.65839934", "text": "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "1d92b0bc21553a95a1b8376e4e05755f", "score": "0.65839934", "text": "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3a3f651d9b46736696e82a99c0c28394", "score": "0.65691483", "text": "public Menu() {\n scanner = new Scanner(System.in);\n }", "title": "" }, { "docid": "19dd81ac7e1733b8f41f44d03fa98f0c", "score": "0.65468484", "text": "public parserCapas(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "612c28c9a70b8b517f3006e97ca3240a", "score": "0.6510672", "text": "public MJParser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "e99e35d9de1cb22bf199018001da1a67", "score": "0.64418393", "text": "public Scanner(String source) {\n // The source code read in from stdin is stored here as a char array\n // TODO: if source is empty in Sc.java do something??\n this.source = source.toCharArray();\n this.position = 0;\n this.size = source.length();\n this.comments = false;\n this.depth = 0;\n this.called = false;\n }", "title": "" }, { "docid": "8fcd8e584b9ffdbb6f848e39488bc56c", "score": "0.6373399", "text": "public Sintactico(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6894ff12e508909ed7df0ff83c512c10", "score": "0.6371029", "text": "public void setScan(InputStream inStream){\t\t\n\t\tthis.scan = new Scanner (inStream);\t\t\t\t\t\n\t}", "title": "" }, { "docid": "1d6752d84fdd7ddd830ab42b0b0e6ede", "score": "0.6362939", "text": "public LexicalScanner() throws IOException {\n this.codesMap = new CodesMap();\n this.keyWords = loadKeywords();\n this.specialCharacters = loadSpecialCharacters();\n this.identifierAutomata = new FA(IDENTIFIER_AUTOMATA_FILE);\n this.constantAutomata = new FA(CONSTANT_AUTOMATA_FILE);\n }", "title": "" }, { "docid": "940b516c17c078826e151ba486eaae93", "score": "0.63100445", "text": "public CompParser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "c2bab158c38cca1d93170096a197ecf5", "score": "0.6275478", "text": "public FractalParser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "6bd0a8d89b6899ad77e5acb14988348d", "score": "0.6274986", "text": "public XPathParser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "5ff5defbd1e6545af6352019f78fd105", "score": "0.62449527", "text": "public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }", "title": "" }, { "docid": "5db3c5a9030ba2d7ae13dd64717ca65c", "score": "0.61819947", "text": "public Scanner(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "title": "" }, { "docid": "a516765e37c04f189e52806d25ebb272", "score": "0.61553633", "text": "public InputReader() {\n reader = new Scanner(System.in);\n }", "title": "" }, { "docid": "298a2942781b90576f4aaaf8d165a4c8", "score": "0.61318916", "text": "public static void initiate() {\n System.out.println(\n \" Welcome to crawler by sergamesnius \\n\" +\n \" 1. Start \\n\" +\n \" 2. Options \\n\" +\n \" 3. Print top pages by total hits \\n\" +\n \" 4. Exit \\n\" +\n \"------======------\"\n\n\n );\n try {\n int input = defaultScanner.nextInt();\n switch (input) {\n case 1:\n System.out.println(\"Input URL link\");\n Console.start(defaultScanner.next());\n break;\n case 2:\n Console.options();\n break;\n case 3:\n Console.printResultsFromCSV();\n break;\n case 4:\n return;\n }\n } catch (NoSuchElementException e) {\n System.err.println(\"Incorrect input\");\n defaultScanner.next();\n }\n Console.initiate();\n }", "title": "" }, { "docid": "6c75ffa2cedf215109ad0a418a1ce897", "score": "0.61294144", "text": "public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "title": "" }, { "docid": "6c75ffa2cedf215109ad0a418a1ce897", "score": "0.61294144", "text": "public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "title": "" }, { "docid": "aedd329c59e3916d958c94462977274c", "score": "0.612215", "text": "public AnalizadorSintactico(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "8921b5e70f91e3568f66ee5b447941db", "score": "0.60542756", "text": "public PCLParser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "0f28dca994b32077159580dd2b74a01b", "score": "0.60153866", "text": "private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}", "title": "" }, { "docid": "6970355c27ec721cdc745908f61f1e8a", "score": "0.60132724", "text": "public WrongInputDataInScanner() {\n\tsuper();\n\t\n}", "title": "" }, { "docid": "1405f07f14422dd03986ba890238e96c", "score": "0.59660757", "text": "public PasitoScanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "title": "" }, { "docid": "887cf514ce49d57227bc56c974cc6ddf", "score": "0.5958902", "text": "public ContentScanner(\n IContentContext contentContext\n )\n {this(contentContext.getContents());}", "title": "" }, { "docid": "abbaff54c765e265fe76bd2017d60144", "score": "0.5956416", "text": "public LuaGrammarCup(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "b727b0370568a8346d4c1f53d4749226", "score": "0.5949796", "text": "public Scanner(InputStream inStream)\n {\n in = new BufferedReader(new InputStreamReader(inStream));\n eof = false;\n getNextChar();\n }", "title": "" }, { "docid": "430b4b8e2e8435d121711e28d019f167", "score": "0.5946228", "text": "protected Scanner getTagScanner() {\n \tif(scanner == null)\n \t scanner = new Scanner();\n \treturn scanner;\n }", "title": "" }, { "docid": "e23e46a8e6f0b52cd65a56702d8d2686", "score": "0.59172297", "text": "public Game() {\n\t\tsc = new Scanner(System.in);\n\t}", "title": "" }, { "docid": "6a28f03e6702336bd1af6b0940986b41", "score": "0.5889273", "text": "private void setHapScannerPipe () {\n String parameterFileS = \"/Users/feilu/Documents/analysisL/production/parameters_hapScanner.txt\";\n new HapScanner(parameterFileS);\n }", "title": "" }, { "docid": "78e4060311c84c0e60bf110f1b2bc91d", "score": "0.5848429", "text": "public void setScan(ByteArrayInputStream inStream){\t\t\n\t\tthis.programIn= (ByteArrayInputStream) inStream;\t\t\n\t\tthis.scan = new Scanner (programIn);\t\t\n\t}", "title": "" }, { "docid": "85d3a84b602603b1f64414657b2ef4be", "score": "0.58445936", "text": "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "title": "" }, { "docid": "85d3a84b602603b1f64414657b2ef4be", "score": "0.58445936", "text": "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "title": "" }, { "docid": "e0b353ea7e464145fa77be8a17d85d86", "score": "0.58362424", "text": "public In(){\n\t\tscanner=new Scanner(new BufferedInputStream(System.in),CHARSET_NAME);\n\t\tscanner.useLocale(LOCALE);\n\t}", "title": "" }, { "docid": "8dcb079eb4fd7c3d716449a5c0b7119d", "score": "0.58350724", "text": "public Scanner(java.io.Reader in) {\r\n this.zzReader = in;\r\n }", "title": "" }, { "docid": "bc8b7e26a5de615bf67d9067e6f66bd5", "score": "0.58311224", "text": "public Scanner getScanner(){\n\t\t\n\t\tString filename = \"\";\n\t\tfor(int i = 0; i<argList.size(); i++ ){\n\t\t\tif(argList.get(i).equals(\"-f\")){\n\t\t\t\tfilename = argList.get(i+1);\n\t\t\t\t//DIFFERENT FROM OTHER INIT FILE!\n\t\t\t\tfilename = filename.trim().replace(\".s230\", \".S230\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(System.getProperty(\"user.dir\") + \" ... \" + filename);\n\t\tString dirName = System.getProperty(\"user.dir\");\n\t\tdirName = dirName.replace(\"\\\\Program_Files\\\\source\",\"\\\\\").trim();\n\t\tdirName = dirName.replace(\"\\\\Program_Files\\\\classes\",\"\\\\\").trim();\n\t\tdirName = dirName.concat(\"\\\\InputOutputFolder\\\\\");\n\t\tSystem.out.println(dirName+filename);\n\t\tFile file = new File(dirName, filename);\n\t\tScanner toReturn = null;\n\t\ttry {\n\t\t\ttoReturn = new Scanner(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\t}", "title": "" }, { "docid": "ed3c89d9f3ad11746c591e14904f27fe", "score": "0.5825397", "text": "public static synchronized void Initialize() throws FileNotFoundException, UnsupportedEncodingException {\n fileReaderInit(fLocation);\n \n pbr = new PushbackReader(reader, 5);\n \n \n File currentDirFile = new File(\".\");\n String helper = currentDirFile.getAbsolutePath();\n outLocation = \"src/parser_resources/\" + outFile;\n /*scan.nextLine();*/\n \n File f = new File(outLocation);\n\n if (f.exists() && !f.isDirectory()) {\n fWriter = new PrintWriter(outLocation, \"Ascii\");\n System.out.println(\"\\nOutput file initialized for Scanner\");\n System.out.println(\"Scanning output to: \" + helper + \"/\" + outLocation);\n } else {\n System.out.println(\"Error: output file missing please \\\"touch\"\n + \"scanner.out\\\" in parser_resources directory.\");\n }\n }", "title": "" }, { "docid": "17fc8e860ad0c30d5f740052f7db9fda", "score": "0.5809939", "text": "public Scanner(Configuration config) {\r\n\t\tthis.conf = config;\r\n\t\tfileCacheList = new LinkedList<FileObj>();\r\n\r\n\t}", "title": "" }, { "docid": "4291a837737c4aa68692c7ee3d2d8413", "score": "0.58087903", "text": "public FastBarcodeScannerPlugin() {\r\n\t}", "title": "" }, { "docid": "f2fc55f42fb679a63f99b23b756b785c", "score": "0.57866895", "text": "public SintaxAnalysis(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "c32abfff3139514d26eec019f443daec", "score": "0.5767428", "text": "protected StreamParser()\n {\n }", "title": "" }, { "docid": "c72cf0687f86ec536c35b34a9742a526", "score": "0.5760766", "text": "private void initialize() {\n toDoList = new ToDoList(\"To-Do List\");\n scanner = new Scanner(System.in);\n }", "title": "" }, { "docid": "37b21602ae84ae52c217a1e7d4611bc2", "score": "0.5740984", "text": "static InputScanner getInputScanner() {\n return inputScanner;\n }", "title": "" }, { "docid": "8d8fa285ec9b076bc0433e72ff1e8f6e", "score": "0.57304776", "text": "public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }", "title": "" }, { "docid": "3fd19c245f1494120e2ef49f2e18ebaf", "score": "0.572933", "text": "public parser(Scanner s, SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "61fdbc9f341838e26627c0409b172e95", "score": "0.57120824", "text": "public SintacticoH(java_cup.runtime.Scanner s) {\r\n super(s);\r\n }", "title": "" }, { "docid": "77794c0e045baf9f139c9063007fb538", "score": "0.5707943", "text": "@Deprecated\n public Asintactico(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "ef706ff7109932cf481b08f45ad1a41d", "score": "0.56910425", "text": "public AnnotationScanner() {\n File rootDir = this.getClassRootDirectory();\n\n if (rootDir != null) {\n this.allClass = getDirClassList(rootDir, null);\n } else {\n this.initJar();\n }\n }", "title": "" }, { "docid": "e624b104073a9a6a5b72b2a520cddcab", "score": "0.5690231", "text": "public SqlScanner (InputStream input)\n {\n mInputStream = new BufferedInputStream(input);\n }", "title": "" }, { "docid": "a4b9c3f55c2a8caf707fd7e68e65103d", "score": "0.5681371", "text": "Analyzer() {\n\t\tthis(\"\");\n\t}", "title": "" }, { "docid": "87c782c91019fdcd5d7811f1295b0352", "score": "0.5681161", "text": "public Parser(Scanner fileStream) {\n // Save fileStream for later\n this.fileStream = fileStream;\n // Set the delimiter so that actual instructions are read, instead of the whitespace\n this.fileStream.useDelimiter(Pattern.compile(whitespace, Pattern.MULTILINE));\n }", "title": "" }, { "docid": "a18f3adb43dea3048b652ea79f339f28", "score": "0.5675565", "text": "private void init(){\r\n\t\t// already checked that this is a valid file and reader\r\n\t\ttokenizer = new StreamTokenizer(reader);\r\n\t\ttokenizer.slashSlashComments(true);\r\n\t\ttokenizer.slashStarComments(true);\r\n\t\ttokenizer.wordChars('_', '_');\r\n\t\ttokenizer.wordChars('.', '.');\r\n\t\ttokenizer.ordinaryChar('/');\r\n\t\ttokenizer.ordinaryChar('-');\r\n\t\tfillKeywords();\r\n\t\t//tokenChoose = new TokenChooser();\r\n\t}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "841dda970be98cb2debca88d82ca1d62", "score": "0.5671886", "text": "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "624297926cf057e01104d162c5ddd0b0", "score": "0.5671354", "text": "public CoolParser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "e123146de645f256c4ba1065f9f14ca0", "score": "0.56580657", "text": "public Parser() {\n\t\tpopulateMaps();\n\t}", "title": "" }, { "docid": "0b773081e0c4479b141971d9658080fe", "score": "0.5644758", "text": "public OptionParser() {\n\n\t}", "title": "" }, { "docid": "f4c96952d4fef9880601da6356042be7", "score": "0.56422263", "text": "@SuppressLint(\"NewApi\")\n public BleScanner() {\n this.leScanCallback = new LeScanCallback() {\n @Override\n public void onLeScan(final BluetoothDevice device, final int rssi, final byte[] scanRecord) {\n bleSearch(device, rssi);\n }\n };\n this.scanCallback = new ScanCallback() {\n @Override\n public void onScanResult(int callbackType, ScanResult result) {\n super.onScanResult(callbackType, result);\n bleSearch(result.getDevice(), result.getRssi());\n }\n\n @Override\n public void onBatchScanResults(List<ScanResult> results) {\n super.onBatchScanResults(results);\n }\n\n @Override\n public void onScanFailed(int errorCode) {\n super.onScanFailed(errorCode);\n }\n };\n }", "title": "" }, { "docid": "4bb64f3dd55a9f8ecdd2071cd8278d8e", "score": "0.56393486", "text": "public HumanPlayer(Scanner scanner) {\n this.scanner = scanner;\n }", "title": "" }, { "docid": "f77d5b072970e6cbd2809cc8b0dcf657", "score": "0.563641", "text": "public TokenScanner(final File f) throws FileNotFoundException {\n\t\tfileScanner = new Scanner(file = f);\n\t}", "title": "" }, { "docid": "2039315d4427af2008da8b0dff6d5757", "score": "0.56325245", "text": "public UserInput()\n {\n try\n {\n scanner = new Scanner(System.in);\n input = new InputMethods();\n citiesTotal = new CityContainer();\n\n if(scanner != null)\n {\n askUser();\n }\n } catch(Exception ex)\n {\n }\n }", "title": "" }, { "docid": "2a52c1ce5370c7b8efed95e51dbdcbbd", "score": "0.5629161", "text": "public PasitoScanner(java.io.Reader in) {\n this.yy_reader = in;\n }", "title": "" }, { "docid": "3db665589f5edf2010e8bf96a3965364", "score": "0.5625203", "text": "public LintParser(final String defaultEncoding) {\n\t\tsuper(defaultEncoding);\n\t}", "title": "" }, { "docid": "f4672c9d53ad2c58d4137de9ae0a824d", "score": "0.56191975", "text": "private void initializeScanner() throws ScannerException {\n if (mScanner == null && mEmdkManager != null) {\n mBarcodeManager = (BarcodeManager) mEmdkManager.getInstance(EMDKManager.FEATURE_TYPE.BARCODE); // Get the Barcode Manager object\n mScanner = mBarcodeManager.getDevice(BarcodeManager.DeviceIdentifier.DEFAULT); // Get default mScanner defined on the device\n mScanner.addDataListener(this); // Add data and status listeners\n mScanner.addStatusListener(this);\n mScanner.triggerType = Scanner.TriggerType.HARD; // Hard trigger. When this mode is set, the user has to manually press the trigger on the device after issuing the read call.\n mScanner.enable(); // Enable the scanner\n mScanner.read(); // Starts an asynchronous Scan. The method will not turn ON the mScanner. It will, however, put the mScanner in a state in which the mScanner can be turned ON either by pressing a hardware trigger or can be turned ON automatically.\n }\n }", "title": "" }, { "docid": "740741045236d2309b977fdfe202e13d", "score": "0.56120557", "text": "public void init(String inputFile) \n\t{\t\t\n\t\tif (instance != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\ts = new Scanner(new FileReader(inputFile));\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"\\nnot a valid inputFile\");\n\t\t\t}\n\t\t\t//load mapping of reserved words and special symbols\n\t\t\tLoadCoreValues();\n\t\t\tinstance = new Tokenizer();\n\t\t}\n\t}", "title": "" }, { "docid": "d1032ce1a72080a0d853c9ea41af9f31", "score": "0.5610565", "text": "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "d1032ce1a72080a0d853c9ea41af9f31", "score": "0.5610565", "text": "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "d1032ce1a72080a0d853c9ea41af9f31", "score": "0.5610565", "text": "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "d1032ce1a72080a0d853c9ea41af9f31", "score": "0.5610565", "text": "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "d1032ce1a72080a0d853c9ea41af9f31", "score": "0.5610565", "text": "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" } ]
b80040b35c1dce481a0dcf3790b25ed0
This method was generated by MyBatis Generator. This method corresponds to the database table tb_bs_warn
[ { "docid": "e1b1e96dbc0df50e01cc4c97951ef1a5", "score": "0.0", "text": "int deleteByPrimaryKey(Integer id);", "title": "" } ]
[ { "docid": "7590a9a6c2270311f49e75008a12986b", "score": "0.6667463", "text": "@Override\r\n\tpublic SQLWarning getWarnings() throws SQLException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "392ae47f99fbd7be34e668d5ac52e831", "score": "0.666153", "text": "public SQLWarning getWarnings()\n throws SQLException\n {\n return null;\n }", "title": "" }, { "docid": "39d576e116ba86c55350b7696d885d73", "score": "0.6472567", "text": "@Override\r\n\tpublic SQLWarning getWarnings() throws SQLException {\n\t\treturn cn.getWarnings();\r\n\t}", "title": "" }, { "docid": "85d4eecf266f8dd20ed7e826fd456e5f", "score": "0.6390447", "text": "@Override\n public SQLWarning getWarnings() throws SQLException {\n return realResultSet.getWarnings();\n }", "title": "" }, { "docid": "705c9e1f884acd382501ce353bccf4bb", "score": "0.5774607", "text": "BsWarn selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "d7db5a8a78a33c83167eafd8175b4d0f", "score": "0.5705745", "text": "List<BsWarn> selectByExample(BsWarnExample example);", "title": "" }, { "docid": "f3972167281610d9147091e0c3a9e2a4", "score": "0.5629966", "text": "public java.util.List<String> getWarnings() {\n if (warnings == null) {\n warnings = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return warnings;\n }", "title": "" }, { "docid": "a61bddbb8a8d8716e845e3809a4be9e5", "score": "0.5629511", "text": "public java.sql.SQLWarning getWarnings() throws SQLException {\n if (closed) {\n throw new SQLException(invalidHandleStr);\n } else {\n try {\n return this.mc.getWarnings();\n } catch (SQLException sqlException) {\n checkAndFireConnectionError(sqlException);\n }\n }\n\n return null; // we don't reach this code, compiler can't tell\n }", "title": "" }, { "docid": "96e5a042eb92a2aa46b24c761dc9c96b", "score": "0.5624228", "text": "@Override\n public void warning(String message) {\n }", "title": "" }, { "docid": "2c7347baceb13b22a722a2083e321dcc", "score": "0.55947495", "text": "public List<String> getWarningMessages();", "title": "" }, { "docid": "8745f9c30ae6e82698cfe67fefcd1d4e", "score": "0.55777436", "text": "public void warning(String msg) {\n\t\t\r\n\t}", "title": "" }, { "docid": "776c9b9bfab9f13a7066e32e9f4207d4", "score": "0.55198276", "text": "public List<Detail> getWarnings() {\n\t\treturn this.warnings;\n\t}", "title": "" }, { "docid": "2f0edb80773c7f2247334601243791a0", "score": "0.5506353", "text": "public List<String> warnings() {\n return this.innerProperties() == null ? null : this.innerProperties().warnings();\n }", "title": "" }, { "docid": "8d8c6ee873ba0679b2b7c5bfafa0ae84", "score": "0.5501085", "text": "java.lang.String getWarnings(int index);", "title": "" }, { "docid": "c0a0648c6f6009cc2fe5cf16723da613", "score": "0.5443762", "text": "@Override\n protected int setWarnType()\n {\n return 12;\n }", "title": "" }, { "docid": "b2db36aee754bf04972d59bed14a49c1", "score": "0.5410942", "text": "@Override\r\n\t\t\tpublic void onStallWarning(StallWarning arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "c15123ac935d53157b4cbb37cc1862df", "score": "0.539761", "text": "@Override\n public void setWarning() {\n this.state = State.WARNING;\n }", "title": "" }, { "docid": "049545321cb1c22f46ebacd4360971ae", "score": "0.5395486", "text": "@Override\r\n\tpublic void clearWarnings() throws SQLException {\n\r\n\t}", "title": "" }, { "docid": "779fbf8c58e9ce011a3f4c2aa4760d70", "score": "0.5367399", "text": "public void setWarning(){\n\t\tthis.warning = true;\n\t}", "title": "" }, { "docid": "9ebe94db008e5d0e5fcba5b8eab54920", "score": "0.5349013", "text": "public static void atWarning()\n {\n // your code goes here\n\n }", "title": "" }, { "docid": "9ebe94db008e5d0e5fcba5b8eab54920", "score": "0.5349013", "text": "public static void atWarning()\n {\n // your code goes here\n\n }", "title": "" }, { "docid": "c4dc799a2b7ba5c2832f527314369498", "score": "0.534683", "text": "public java.lang.String[] getWarning() {\n return warning;\n }", "title": "" }, { "docid": "74b0390bb6f80c0cf8f4a68cadbd470a", "score": "0.5324238", "text": "static SQLWarning convertShowWarningsToSQLWarnings(Connection connection)\n\t\t\tthrows SQLException {\n\t\treturn convertShowWarningsToSQLWarnings(connection, 0, false);\n\t}", "title": "" }, { "docid": "c490106f8a07240d4886771389e15010", "score": "0.5307595", "text": "int insert(BsWarn record);", "title": "" }, { "docid": "ed8e0ae4738069ac623bfb8f62942ba6", "score": "0.52769", "text": "public List<Warning> getWarnings(Monument monument){\n\n List<Warning> warnings = new ArrayList<Warning>();\n try{\n warnings = WarningDao.getVerifiedWarnings(monument);\n } catch (Exception e){\n e.printStackTrace();\n }\n return warnings;\n }", "title": "" }, { "docid": "f1b3a2305f387b28a0e6ed8ba976845a", "score": "0.5275841", "text": "public void warn(String msg)\n {\n\n }", "title": "" }, { "docid": "c963805da13b1195f955853b47950db6", "score": "0.52747035", "text": "com.google.protobuf.ByteString\n getWarningsBytes(int index);", "title": "" }, { "docid": "5e656ad7a0f967c215d05791ce16eab2", "score": "0.5267813", "text": "String warningMassage();", "title": "" }, { "docid": "38f4492affa28f7b1a93b6b5aa22693e", "score": "0.5266379", "text": "public List<ETLogAnnotation> getWarningLogs() {\n return getLogs(Severity.WARNING);\n }", "title": "" }, { "docid": "16252d591e3864dc05351f0d6c350da9", "score": "0.52653307", "text": "public ITop.ResultLog getWarnings() {\n return warnings;\n }", "title": "" }, { "docid": "0ca51c5ed65ab753bec972216eb220b4", "score": "0.52549535", "text": "@Override\n\t\t\t\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "0ca51c5ed65ab753bec972216eb220b4", "score": "0.52549535", "text": "@Override\n\t\t\t\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "3ef52692f95e3bd13ea1eff010a4f80d", "score": "0.52378803", "text": "protected void warning(String msg) {\n\tSystem.out.println(\"********* WARNING *********\");\n\tSystem.out.println(\"[\" + getClass().getName()+\"]:\\n\" + msg) ;\n\tSystem.out.println(\"***************************\");\n }", "title": "" }, { "docid": "839c65d1c6ec53ed371871f37bd6eed0", "score": "0.52022725", "text": "public void clearWarnings()\n throws SQLException\n {\n }", "title": "" }, { "docid": "f16266edd45d13c64a3f63f83e88956e", "score": "0.5189065", "text": "@Override\n protected String getWarningMarkerID() {\n return PROBLEM_MARKER_ID;\n }", "title": "" }, { "docid": "4231fdf110ae0004c3d95857c1af1b37", "score": "0.5186964", "text": "public final String getWarning() {\n\t\treturn warning;\n\t}", "title": "" }, { "docid": "30ed194b4b078646dc827818779d8e26", "score": "0.5186837", "text": "public String doSetLogWarning() throws Exception\n {\n //ViewPageFilter.logger.setLevel(Level.WARN);\n //ViewPageAction.logger.setLevel(Level.WARN);\n //RedirectFilter.logger.setLevel(Level.WARN);\n CastorDatabaseService.logger.setLevel(Level.WARN);\n CacheController.logger.setLevel(Level.WARN);\n getDeliverCategory().setLevel(Level.WARN);\n getCastorJDOCategory().setLevel(Level.WARN);\n \n return \"cleared\";\n }", "title": "" }, { "docid": "9c7659c516ef75f78bba1334e0d2eb1b", "score": "0.5180542", "text": "public com.google.protobuf.ByteString\n getWarningsBytes(int index) {\n return warnings_.getByteString(index);\n }", "title": "" }, { "docid": "01a8a88c24935f90f6d26442009d98fa", "score": "0.5178894", "text": "public List<String> getWarnings() {\n\t\treturn warnings;\n\t}", "title": "" }, { "docid": "a53059beb30f0e59344f338da7c6dbd7", "score": "0.51784045", "text": "public boolean getShowWarning();", "title": "" }, { "docid": "902308c7018abd0922f20e6b769e52b9", "score": "0.51662016", "text": "@Override\r\n\tpublic void clearWarnings() throws SQLException {\n\t\tcn.clearWarnings();\r\n\t}", "title": "" }, { "docid": "af97bfa5b7811af97f9ada7cc34ac110", "score": "0.5160464", "text": "int insertSelective(BsWarn record);", "title": "" }, { "docid": "faf492be84245234b90925cdf25b2dc7", "score": "0.5158311", "text": "public List<IssueWithParams> getWarnings() {\n return mWarnings;\n }", "title": "" }, { "docid": "3804c8f9bb836c8a72655d413ccd84b0", "score": "0.5150828", "text": "public com.google.protobuf.ByteString\n getWarningsBytes(int index) {\n return warnings_.getByteString(index);\n }", "title": "" }, { "docid": "b18c1828997c0c7213a50fa07940d4db", "score": "0.51392233", "text": "@Override\n\t\t\tpublic void onStallWarning(StallWarning arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "56d5fbd58c517c8bf0d941719bbe10aa", "score": "0.5126763", "text": "@Override\n public void clearWarnings() throws SQLException {\n\n realResultSet.clearWarnings();\n }", "title": "" }, { "docid": "72d7d8cad08d02d0cf179d22c54f7871", "score": "0.5116195", "text": "@Override\n\tpublic List<Invertedwell> getWarningData(List<Long> ids) throws ServiceException {\n\t\treturn this.invertedwellDao.getWarningData(ids);\n\t}", "title": "" }, { "docid": "a6fac1fc7dc37fa7578bf81324ff59d8", "score": "0.5108263", "text": "public List<IssueWithParams> getWarnings() {\n return mWarnings;\n }", "title": "" }, { "docid": "e9eb39828194b74f8ce9dfad951af9dc", "score": "0.5102488", "text": "public abstract void warn(String msg);", "title": "" }, { "docid": "aa0964ac600ef67ae4794509bd7e29ed", "score": "0.5099718", "text": "@Override\n\tpublic void clearWarnings() throws SQLException {\n\t\toriginPreparedStatement.clearWarnings();\n\t}", "title": "" }, { "docid": "f120a1e6ce1085f31a6cbd605bf8e848", "score": "0.50943637", "text": "public void setShowWarning(boolean value);", "title": "" }, { "docid": "5305e4cd3841e91b3858ac39ba0cdfe7", "score": "0.50692385", "text": "public boolean isWarnEnabled()\n {\n return false;\n }", "title": "" }, { "docid": "cf3121acb68538c3b60c751251b8b788", "score": "0.5061956", "text": "void warning(String message);", "title": "" }, { "docid": "cf3121acb68538c3b60c751251b8b788", "score": "0.5061956", "text": "void warning(String message);", "title": "" }, { "docid": "2ccf755d3b1ea9798acb0523d207a0b5", "score": "0.5055258", "text": "public int getNbWarnings() {\n return nbWarnings_;\n }", "title": "" }, { "docid": "706f45d66b76de00de3e50301240eca5", "score": "0.5053816", "text": "@Override\n public void warning(String msg) {\n this.logger.warn(msg);\n }", "title": "" }, { "docid": "becd5582a15a9f89b1d8f47d2200e1ec", "score": "0.50495595", "text": "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\n\t}", "title": "" }, { "docid": "f22ff0f9a4d59ede68e9b00c61e3d106", "score": "0.50486726", "text": "public List<CompilationMessage> getWarnings() {\n return _warnings;\n }", "title": "" }, { "docid": "309d2db73a71f89ec03c1666959fbd90", "score": "0.5046523", "text": "public java.lang.String getWarning()\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(WARNING$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "c49a1a43fdea1b598b519f03d2290bed", "score": "0.50411814", "text": "public java.lang.String getWarnings(int index) {\n return warnings_.get(index);\n }", "title": "" }, { "docid": "d7be8e9f55b74de1f9418c2828b05afa", "score": "0.5039138", "text": "public java.lang.String getWarnings(int index) {\n return warnings_.get(index);\n }", "title": "" }, { "docid": "ce5ccb21c208f0e0f684dd41d647a59d", "score": "0.5036127", "text": "public boolean isWarnEnabled();", "title": "" }, { "docid": "817e20ce0b4cce7460fd20cc3aaa457e", "score": "0.4998162", "text": "public static void warning(String msg) { System.err.println(\"WARNING: \"+msg); }", "title": "" }, { "docid": "2539a2f75eef3f074a4a3755f1696d11", "score": "0.49907365", "text": "public static void addWarn(String keyMessage, String message) {\r\n\t\tFacesContext.getCurrentInstance().addMessage(keyMessage, new FacesMessage(FacesMessage.SEVERITY_WARN, \"Warning!\", message));\r\n\t}", "title": "" }, { "docid": "137950c6edf2de44d5cf982f82ff04fe", "score": "0.49877995", "text": "protected void notifyWarning(String msg) {\n/* 304 */ if (!this.inWarningMode) {\n/* */ \n/* 306 */ this.inWarningMode = true;\n/* 307 */ logger.warning(msg);\n/* 308 */ if (this.notify != null) {\n/* 309 */ String subject = \"DataSourcePool [\" + this.name + \"] warning\";\n/* 310 */ this.notify.notifyWarning(subject, msg);\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "67f1a40247bd6a3febff09ad448072d7", "score": "0.49828026", "text": "@Override\n\tpublic List<Statement> getBilledStatement() {\n\t\t// TODO Auto-generated method stub\n\t\treturn statementRepository.getBilledStatement();\n\t}", "title": "" }, { "docid": "17a33d9830d467f940b41c2869d75db4", "score": "0.4974998", "text": "void warn(String message);", "title": "" }, { "docid": "17a33d9830d467f940b41c2869d75db4", "score": "0.4974998", "text": "void warn(String message);", "title": "" }, { "docid": "17c28b348240b69b39845cc7df0743dd", "score": "0.49741092", "text": "public List<DataRecord> getSqlForUpdateJacks() {\n\n // SELECT DOWNHILL_TABLE, DOWNHILL_KEY,CASE WHEN DOWNHILL_TABLE='pb' THEN DOWNHILL_POSITION\n // ELSE DOWNHILL_KEY END as DOWNHILL_VALUE,\n // UPHILL_TABLE, UPHILL_KEY, CASE WHEN UPHILL_TABLE='pb' THEN UPHILL_POSITION ELSE\n // UPHILL_KEY END as UPHILL_VALUE\n // FROM AFM_TCCN WHERE\n // UPHILL_TABLE NOT IN ('ca','cp','port')\n // AND DOWNHILL_TABLE = 'jk'\n final DataSource dsJacks = DataSourceFactory.createDataSource();\n\n final String jkTableSql = SELECT + LTRIM_RTRIM + DOWNHILL_TABLE_FLD + END_LTRIM_RTRIM\n + ALIAS + DOWNHILL_TABLE_FLD + FIELD_SEPARATOR + LTRIM_RTRIM + DOWNHILL_KEY_FLD\n + END_LTRIM_RTRIM + ALIAS + DOWNHILL_KEY_FLD + FIELD_SEPARATOR + CASE_WHEN\n + LTRIM_RTRIM + DOWNHILL_TABLE_FLD + END_LTRIM_RTRIM + EQUALS + SQL_QUOTE + PB_TABLE\n + SQL_QUOTE + THEN + LTRIM_RTRIM + DOWNHILL_POSITION_FLD + END_LTRIM_RTRIM + ELSE\n + LTRIM_RTRIM + DOWNHILL_KEY_FLD + END_LTRIM_RTRIM + END + ALIAS + DOWNHILL_VALUE\n + FIELD_SEPARATOR + LTRIM_RTRIM + UPHILL_TABLE_FLD + END_LTRIM_RTRIM + ALIAS\n + UPHILL_TABLE_FLD + FIELD_SEPARATOR + LTRIM_RTRIM + UPHILL_KEY_FLD\n + END_LTRIM_RTRIM + ALIAS + UPHILL_KEY_FLD + FIELD_SEPARATOR + CASE_WHEN\n + LTRIM_RTRIM + UPHILL_TABLE_FLD + END_LTRIM_RTRIM + EQUALS + SQL_QUOTE + PB_TABLE\n + SQL_QUOTE + THEN + LTRIM_RTRIM + UPHILL_POSITION_FLD + END_LTRIM_RTRIM + ELSE\n + LTRIM_RTRIM + UPHILL_KEY_FLD + END_LTRIM_RTRIM + END + ALIAS + UPHILL_VALUE + FROM\n + AFM_TCCN_TABLE + WHERE + LTRIM_RTRIM + UPHILL_TABLE_FLD + END_LTRIM_RTRIM + NOT_IN\n + OPEN_PARENTHESIS + TABLES_NOT_MIGRATED + CLOSED_PARENTHESIS + AND + LTRIM_RTRIM\n + DOWNHILL_TABLE_FLD + END_LTRIM_RTRIM + EQUALS + SQL_QUOTE + JK_TABLE + SQL_QUOTE;\n\n this.log.info(SELECT_STATEMENT_MESSAGE + \" for updating Jacks connections: \" + jkTableSql);\n\n dsJacks.addTable(AFM_TCCN_TABLE);\n dsJacks.addVirtualField(AFM_TCCN_TABLE, DOWNHILL_TABLE_FLD, DataSource.DATA_TYPE_TEXT);\n dsJacks.addVirtualField(AFM_TCCN_TABLE, DOWNHILL_KEY_FLD, DataSource.DATA_TYPE_TEXT);\n dsJacks.addVirtualField(AFM_TCCN_TABLE, DOWNHILL_VALUE, DataSource.DATA_TYPE_TEXT);\n dsJacks.addVirtualField(AFM_TCCN_TABLE, UPHILL_TABLE_FLD, DataSource.DATA_TYPE_TEXT);\n dsJacks.addVirtualField(AFM_TCCN_TABLE, UPHILL_KEY_FLD, DataSource.DATA_TYPE_TEXT);\n dsJacks.addVirtualField(AFM_TCCN_TABLE, UPHILL_VALUE, DataSource.DATA_TYPE_TEXT);\n dsJacks.setApplyVpaRestrictions(false);\n dsJacks.setMaxRecords(0);\n dsJacks.addQuery(jkTableSql);\n\n return dsJacks.getRecords();\n }", "title": "" }, { "docid": "7d909c8e75b8ebaa5ea79eee901d22af", "score": "0.4973095", "text": "public String getWarningText() {\n return warningText;\n }", "title": "" }, { "docid": "dac4b628dfbf673454723e943fa2c7bb", "score": "0.49691814", "text": "public BDDExcepcion(String msg) {\n msg=\"Sentencia DML incorrecta\";\n }", "title": "" }, { "docid": "d4cdab9bbda12699b2bf7ca47ccd4d3a", "score": "0.49681896", "text": "private void generateWarnings(Vector<String> warnings) { \n if (warnings.size() > 0) { // there is at least 1 warning\n warningPane.setWarnings(warnings);\n }\n }", "title": "" }, { "docid": "411732cd0a11d53f013896bfe1290fd9", "score": "0.4968085", "text": "public interface Warning extends TimedEntry {\n\n /**\n * The {@link UUID} of the player who issued the warning, or {@link Optional#empty()} if it was the console.\n *\n * @return The UUID of the warning player.\n */\n Optional<UUID> getWarner();\n\n /**\n * When the warning was issued.\n *\n * @return The {@link Instant} the warning was issued.\n */\n Instant getDate();\n\n /**\n * The reason for the warning.\n *\n * @return The reason.\n */\n String getReason();\n\n /**\n * Whether the warning has expired.\n *\n * @return <code>true</code> if so.\n */\n boolean isExpired();\n}", "title": "" }, { "docid": "084ff51ca62b2cfa92aabdc26058c540", "score": "0.49679503", "text": "@Override\n protected void warn(String value, Throwable e) {\n }", "title": "" }, { "docid": "00d2c31311288f70228e31e2e09b748f", "score": "0.49673277", "text": "public void setWarnings(java.util.Collection<String> warnings) {\n if (warnings == null) {\n this.warnings = null;\n return;\n }\n\n this.warnings = new com.amazonaws.internal.SdkInternalList<String>(warnings);\n }", "title": "" }, { "docid": "96caac473d11633d967a4247f5e5c391", "score": "0.49663126", "text": "public void testWithWarning() {\n\t\treport.report(\"warning title\", null, Reporter.WARNING);\n\t}", "title": "" }, { "docid": "28f56a7e4e242a06b30acf7f02c1344e", "score": "0.4952835", "text": "protected void addWarnlMessage(String summary) {\n\t\taddMessage(FacesMessage.SEVERITY_WARN, this.checkProperty(summary), null);\n\t}", "title": "" }, { "docid": "6f94f9d740401479347764d7fba000dd", "score": "0.49519616", "text": "public void printAtWarning(String message);", "title": "" }, { "docid": "54e8af5327dd635437c9426d14d63421", "score": "0.49494597", "text": "private RectF drawWarningIcon(ChipBitmapContainer bitMapResult) {\n if (mWarningIcon == null) {\n return new RectF(0, 0, 0, 0);\n }\n final Canvas canvas = new Canvas(bitMapResult.bitmap);\n final RectF src = new RectF(0, 0, mWarningIcon.getWidth(), mWarningIcon.getHeight());\n final RectF dst = new RectF(bitMapResult.warningIconLeft, bitMapResult.warningIconTop,\n bitMapResult.warningIconRight, bitMapResult.warningIconBottom);\n drawRectanglularIconOnCanvas(mWarningIcon, canvas, src, dst);\n return dst;\n }", "title": "" }, { "docid": "40d0c9b8078ee14499dbcdbc5bbce312", "score": "0.49488845", "text": "public boolean isWarnEnabled()\r\n/* 158: */ {\r\n/* 159:386 */ return this.logger.isLoggable(Level.WARNING);\r\n/* 160: */ }", "title": "" }, { "docid": "6c613749d9094a0892c15cdb18099c2c", "score": "0.49466407", "text": "public abstract void warn(final Object message);", "title": "" }, { "docid": "104bcc1ab51f75d4f7678c34e9d43498", "score": "0.49388555", "text": "@DefaultMessage(\"Feil ved lagring av data\")\n @Key(\"save_failed_badly\")\n String save_failed_badly();", "title": "" }, { "docid": "5c7614088a3c5c7e994cdf5610c1ccc2", "score": "0.49368218", "text": "public void w (String warning){\n if(isLevelAllowed(Level.WARN)) Log.w(getTag(), wrapOutputMessage(warning));\n }", "title": "" }, { "docid": "3b3ff3a1bca39d180b3a020091a5f1c3", "score": "0.49263608", "text": "default void logWarn(String message) {\n\t\t// Step 1: Connect to DataStore\n\t\t// Step 2: Log Warn Message\n\t\t// Step 3: Close the DataStore connection\n\t}", "title": "" }, { "docid": "34d9614e198ec69e22d6bca0cd4b9084", "score": "0.4915672", "text": "protected void addWarnlMessage(String summary, String detail) {\n\t\taddMessage(FacesMessage.SEVERITY_WARN, this.checkProperty(summary), detail);\n\t}", "title": "" }, { "docid": "7d8e1a78c60365b615c72a5c162e9485", "score": "0.49082464", "text": "public void addAdminWarningMessages(Warnings warnings)\r\n {\r\n }", "title": "" }, { "docid": "10e16c30e3ccea3c861d47b28c1c1b6a", "score": "0.49024907", "text": "public String setDamageOld() {\n/* 364 */ return \"UPDATE COINS SET DAMAGE=?, LASTMAINTAINED=? WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "b8127db96ed5daa68c9c5bcf90fbe03a", "score": "0.4893863", "text": "public void warn(Object message) {\n \twarnWithClassMessage(className, message);\n }", "title": "" }, { "docid": "8cef51f51622afb9c169f64a2fdb64a6", "score": "0.4886188", "text": "public static void Warn (String msg) {if(log_level <= 8) {log_out(Log.ansicode.YELLOW, \"[Warn] \"+msg);}}", "title": "" }, { "docid": "dcfdb064fd5936f89568bb882859d0f7", "score": "0.48854202", "text": "void checkBlocked() {\n connectionString = \"jdbc:mysql://\" + arguments.getIp() + \"?user=\" + arguments.getUsername()\n + \"&password=\" + arguments.getPassword();\n int logId;\n File logFile = new File(arguments.getAccessLog());\n String accessLogName = logFile.getName();\n Connection connect = null;\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n\n try {\n connect = DriverManager.getConnection(connectionString);\n preparedStatement = connect\n .prepareStatement(\"Select log_file_id from web_log_data.log_files where log_file_name=?\");\n preparedStatement.setString(1, accessLogName);\n resultSet = preparedStatement.executeQuery();\n resultSet.next();\n logId = resultSet.getInt(1);\n connect.close();\n\n connect = DriverManager.getConnection(connectionString);\n preparedStatement = connect.prepareStatement(\n \"select ip, count from ( select log_file_id, ip, datetime, count(*) as count from \"\n + \"request_log where log_file_id = ? and datetime between ? and \"\n + \"DATE_ADD(?, INTERVAL ? HOUR) group by ip)toblock where count>= ?;\");\n preparedStatement.setInt(1, logId);\n preparedStatement.setString(2, arguments.getStartDate());\n preparedStatement.setString(3, arguments.getStartDate());\n preparedStatement.setInt(4, arguments.getDurationInHours());\n preparedStatement.setInt(5, arguments.getThreshold());\n resultSet = preparedStatement.executeQuery();\n\n preparedStatement =\n connect.prepareStatement(\"Replace into web_log_data.blocked_ips values(?,?,?,?,?,?) \");\n while (resultSet.next()) {\n preparedStatement.setInt(1, logId);\n preparedStatement.setString(2, resultSet.getString(1));\n preparedStatement.setInt(3, arguments.getThreshold());\n preparedStatement.setInt(4, resultSet.getInt(2));\n preparedStatement.setString(5, arguments.getStartDate());\n String message =\n resultSet.getString(1) + \" was blocked because it exceed \" + arguments.getDuration()\n + \" threshold of \" + arguments.getThreshold() + \" at \" + arguments.getStartDate()+\" with number of requests = \" + resultSet.getInt(2);\n System.out.println(message);\n preparedStatement.setString(6, message);\n preparedStatement.addBatch();\n }\n preparedStatement.executeBatch();\n connect.close();\n\n } catch (SQLException e) {\n Logger lgr = Logger.getLogger(MysqlTransactions.class.getName());\n lgr.log(Level.SEVERE, e.getMessage(), e);\n System.exit(-1);\n }\n\n }", "title": "" }, { "docid": "13761e7bf25f3a19551ed0d60f17d557", "score": "0.4873026", "text": "public abstract boolean isWarnEnabled();", "title": "" }, { "docid": "12f95c611213b1d29f25a3ce804c216b", "score": "0.48643297", "text": "public void setWarning(java.lang.String[] warning) {\n this.warning = warning;\n }", "title": "" }, { "docid": "0d2d01db631413f7dcf6b710bc8e5b4f", "score": "0.4862916", "text": "public void showWarningNotification() {\n String str;\n String format = NumberFormat.getPercentInstance().format(((double) this.mCurrentBatterySnapshot.getBatteryLevel()) / 100.0d);\n String string = this.mContext.getString(C2017R$string.battery_low_title);\n if (this.mCurrentBatterySnapshot.isHybrid()) {\n str = getHybridContentString(format);\n } else {\n str = this.mContext.getString(C2017R$string.battery_low_percent_format, new Object[]{format});\n }\n Notification.Builder visibility = new Notification.Builder(this.mContext, NotificationChannels.BATTERY).setSmallIcon(C2010R$drawable.ic_power_low).setWhen(this.mWarningTriggerTimeMs).setShowWhen(false).setContentText(str).setContentTitle(string).setOnlyAlertOnce(true).setDeleteIntent(pendingBroadcast(\"PNW.dismissedWarning\")).setStyle(new BigTextStyle().bigText(str)).setVisibility(1);\n if (hasBatterySettings()) {\n visibility.setContentIntent(pendingBroadcast(\"PNW.batterySettings\"));\n }\n if (!this.mCurrentBatterySnapshot.isHybrid() || this.mBucket < 0 || this.mCurrentBatterySnapshot.getTimeRemainingMillis() < this.mCurrentBatterySnapshot.getSevereThresholdMillis()) {\n visibility.setColor(Utils.getColorAttrDefaultColor(this.mContext, 16844099));\n }\n if (!this.mPowerMan.isPowerSaveMode()) {\n visibility.addAction(0, this.mContext.getString(C2017R$string.battery_saver_start_action), pendingBroadcast(\"PNW.startSaver\"));\n }\n visibility.setOnlyAlertOnce(!this.mPlaySound);\n this.mPlaySound = false;\n SystemUI.overrideNotificationAppName(this.mContext, visibility, false);\n Notification build = visibility.build();\n String str2 = \"low_battery\";\n this.mNoMan.cancelAsUser(str2, 2, UserHandle.ALL);\n this.mNoMan.notifyAsUser(str2, 3, build, UserHandle.ALL);\n }", "title": "" }, { "docid": "254428c6695053144e1acc1bd79d5130", "score": "0.48428473", "text": "public BltNoLeverageColumn() {}", "title": "" }, { "docid": "e657529f8aa0afb52bec24f0f0719187", "score": "0.4841499", "text": "public void dirtyWarning() {\n\t\tif (mappingColumnScreen.getScreenService().getEditingService()\n\t\t\t\t.isDirty()) {\n\t\t\tboolean result = MessageDialog\n\t\t\t\t\t.openQuestion(this.getShell(), \"Save needed\",\n\t\t\t\t\t\t\t\"You have unsaved changes, which will be discarded when not saved, save?\");\n\t\t\tif (result) {\n\t\t\t\tmappingColumnScreen.addData();\n\n\t\t\t} else {\n\t\t\t\tmappingColumnScreen.getScreenService().undoAndFlush();\n\t\t\t}\n\t\t} else {\n\t\t\t// Flush the stack anyway.\n\t\t\tmappingColumnScreen.getScreenService().getEditingService()\n\t\t\t\t\t.getEditingDomain().getCommandStack().flush();\n\t\t}\n\t}", "title": "" }, { "docid": "57dc7a030a207251f8a1e023c7e6c62b", "score": "0.48360702", "text": "public static Object $$$FldINLPReasonBlocked(mContext m$) {\n return (20);\n }", "title": "" }, { "docid": "0a8f0a9df29d7b2a415af2436ad56201", "score": "0.4835485", "text": "public void onStallWarning(StallWarning arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "7c471fb6faa987e4f13bcf985d0f7d36", "score": "0.48281917", "text": "private void doLogWarning(final LogRecord warning) {\n if (className != null) {\n warning.setSourceClassName(className);\n }\n if (methodName != null) {\n warning.setSourceMethodName(methodName);\n }\n logWarning(warning);\n }", "title": "" }, { "docid": "825eb2ef139d9b890d76750d6d014fe0", "score": "0.48275325", "text": "protected void addWarningMessage(String messageID) {\n addMessage(FacesMessage.SEVERITY_WARN, messageID);\n }", "title": "" }, { "docid": "cfc3667b622a6f9922c48692f1f40e7d", "score": "0.48262638", "text": "public String setBless() {\n/* 410 */ return \"UPDATE COINS SET BLESS=? WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "a9b321cf9900d99ddaa9b3158a6f087b", "score": "0.48224092", "text": "protected String failureMessage(String method)\n {\n return LOCALISER.msg(\"041005\",getClass().getName(), method,\n mapping.getMemberMetaData().getFullFieldName());\n }", "title": "" } ]
f242151b8530c140127eb10ef17ae95c
pretend the meta is 3
[ { "docid": "0ee2abe8c0a7afeaf48743f54f0f36ba", "score": "0.0", "text": "@SideOnly(Side.CLIENT)\n @Override\n public Icon getIcon(int side, int meta) {\n return getIconFromSideAndMeta(side, 3);\n }", "title": "" } ]
[ { "docid": "82197fd235fbce67fcd55a43ff8e2447", "score": "0.6571787", "text": "boolean hasMeta();", "title": "" }, { "docid": "82197fd235fbce67fcd55a43ff8e2447", "score": "0.6571787", "text": "boolean hasMeta();", "title": "" }, { "docid": "82197fd235fbce67fcd55a43ff8e2447", "score": "0.6571787", "text": "boolean hasMeta();", "title": "" }, { "docid": "82197fd235fbce67fcd55a43ff8e2447", "score": "0.6571787", "text": "boolean hasMeta();", "title": "" }, { "docid": "7ee5abb30fe100310c70cff0b252cf1c", "score": "0.63759136", "text": "int getMetaInformationCount();", "title": "" }, { "docid": "7ee5abb30fe100310c70cff0b252cf1c", "score": "0.63759136", "text": "int getMetaInformationCount();", "title": "" }, { "docid": "7ee5abb30fe100310c70cff0b252cf1c", "score": "0.63759136", "text": "int getMetaInformationCount();", "title": "" }, { "docid": "462d489bb08f1aad5f18704e22f6dd4d", "score": "0.614192", "text": "public boolean isMeta() {\n\t\treturn meta;\n\t}", "title": "" }, { "docid": "11456268ab41adb6c6c6609535002d8b", "score": "0.6090629", "text": "public boolean hasMeta() {\n return meta_ != null;\n }", "title": "" }, { "docid": "11456268ab41adb6c6c6609535002d8b", "score": "0.6090629", "text": "public boolean hasMeta() {\n return meta_ != null;\n }", "title": "" }, { "docid": "1133ff5646e6a9f04cd32bc2436b3bc0", "score": "0.6050005", "text": "@java.lang.Override\n public boolean hasMeta() {\n return meta_ != null;\n }", "title": "" }, { "docid": "1133ff5646e6a9f04cd32bc2436b3bc0", "score": "0.6050005", "text": "@java.lang.Override\n public boolean hasMeta() {\n return meta_ != null;\n }", "title": "" }, { "docid": "fbc4f4166b2711d48057c9e69a885245", "score": "0.604608", "text": "public String getMetadata3() {\n return this.metadata3;\n }", "title": "" }, { "docid": "d7f1b67f0aae10b36d6c1a6eac8b9457", "score": "0.6041131", "text": "public void setMetadata3(String metadata3) {\n this.metadata3 = metadata3;\n }", "title": "" }, { "docid": "e608ad0941c041a4d9dc4f1e560ca851", "score": "0.6007373", "text": "public int getMetaInformationCount() {\n return metaInformation_.size();\n }", "title": "" }, { "docid": "e608ad0941c041a4d9dc4f1e560ca851", "score": "0.6007373", "text": "public int getMetaInformationCount() {\n return metaInformation_.size();\n }", "title": "" }, { "docid": "e608ad0941c041a4d9dc4f1e560ca851", "score": "0.6007373", "text": "public int getMetaInformationCount() {\n return metaInformation_.size();\n }", "title": "" }, { "docid": "5777ad8b96e521d042bd1f49df07aa63", "score": "0.5962384", "text": "void onMetaChanged();", "title": "" }, { "docid": "0f433a09aaa844ebb27c64e0c8325da5", "score": "0.59419626", "text": "protected boolean hasMetaData() {\n return true;\n }", "title": "" }, { "docid": "7409f161c928eb216bff9c5876dce605", "score": "0.58741677", "text": "private void typeMetaState()\n {\n // if not meta -> call meta-states, maybe they should finish\n for (MetaState metaState : layout.softBoardData.layoutStates.metaStates)\n {\n metaState.type();\n }\n }", "title": "" }, { "docid": "65a640b3755e12b84b37977c8ca7e9c0", "score": "0.58565724", "text": "@Test\n public void testMetaMode() {\n // Clustering<Suggestion> clustering = Clustering\n // .newExistingSuggestionClustering(ImmutableList.of(),\n // Word2VecModel.model);\n //\n // Game game = new Game(1,\n // ImmutableList.of(new QueryResponses(1, \"\", clustering),\n // new QueryResponses(4, \"\", clustering)));\n // User user = new User(null, 1, \"\", false);\n // game.addPlayer(user);\n // game.newRound();\n // game.score(user, \"should be id of one\");\n // game.score(user, \"test\");\n // game.score(user, \"the meta\");\n // game.score(user, \"random response\");\n // game.newRound();\n // game.score(user, \"should be id of 4\");\n // game.score(user, \"okay\");\n // game.score(user, \"very big\");\n // game.endRound();\n // game.endGame();\n }", "title": "" }, { "docid": "760840b9d46a824d0ea1893906ccfde0", "score": "0.5852274", "text": "Meta(){}", "title": "" }, { "docid": "c76ed697ddecf9efd6bc65c6e59dadbf", "score": "0.5821514", "text": "public boolean hasMeta() {\n return metaBuilder_ != null || meta_ != null;\n }", "title": "" }, { "docid": "c76ed697ddecf9efd6bc65c6e59dadbf", "score": "0.5821514", "text": "public boolean hasMeta() {\n return metaBuilder_ != null || meta_ != null;\n }", "title": "" }, { "docid": "c76ed697ddecf9efd6bc65c6e59dadbf", "score": "0.5821514", "text": "public boolean hasMeta() {\n return metaBuilder_ != null || meta_ != null;\n }", "title": "" }, { "docid": "c76ed697ddecf9efd6bc65c6e59dadbf", "score": "0.5821514", "text": "public boolean hasMeta() {\n return metaBuilder_ != null || meta_ != null;\n }", "title": "" }, { "docid": "9eb6bd4be12bb9ad5710f390745d0e11", "score": "0.5750426", "text": "io.dstore.engine.MetaInformation getMetaInformation(int index);", "title": "" }, { "docid": "9eb6bd4be12bb9ad5710f390745d0e11", "score": "0.5750426", "text": "io.dstore.engine.MetaInformation getMetaInformation(int index);", "title": "" }, { "docid": "9eb6bd4be12bb9ad5710f390745d0e11", "score": "0.5750426", "text": "io.dstore.engine.MetaInformation getMetaInformation(int index);", "title": "" }, { "docid": "3af34e88f123e882d8657ff594915e6f", "score": "0.57358444", "text": "@Override\n\t\t\t\t\t\tpublic void meta( final MetaMessage meta )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tMIDISoundTranslator.this.currentMoodAcceleration += (int)((MIDISoundTranslator.this.countSinceLast-100)/50);\n\t\t\t\t\t\t\tMIDISoundTranslator.this.currentMoodAcceleration = (int)Math.signum( MIDISoundTranslator.this.currentMoodAcceleration );\n\t\t\t\t\t\t\tSystem.out.println( MIDISoundTranslator.this.countSinceLast+\" social comments -> \"+MIDISoundTranslator.this.currentMoodAcceleration );\n\n\t\t\t\t\t\t\t// Change mood\n\t\t\t\t\t\t\tMIDISoundTranslator.this.backgroundMusic.setMood(\n\t\t\t\t\t\t\t\tMIDISoundTranslator.this.backgroundMusic.getCurrentMood()\n\t\t\t\t\t\t\t\t\t+MIDISoundTranslator.this.currentMoodAcceleration, MIDISoundTranslator.this.sequencer );\n\n\t\t\t\t\t\t\tMIDISoundTranslator.this.notesToGenerate = MIDISoundTranslator.this.backgroundMusic.getNotesToFitMood( MIDISoundTranslator.this.backgroundMusic.getCurrentMood() );\n\n\t\t\t\t\t\t\t// Loop continuously.\n\t\t\t\t\t\t\tMIDISoundTranslator.this.countSinceLast = 0;\n\n\t\t\t\t\t\t\t// Try and get a new sequence\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMIDISoundTranslator.this.sequencer.setSequence( bi.next() );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch( final InvalidMidiDataException e )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Change the speed if things get more active\n\t\t\t\t\t\t\tMIDISoundTranslator.this.sequencer.setTempoInBPM(\n\t\t\t\t\t\t\t\t\t80 + MIDISoundTranslator.this.backgroundMusic.getCurrentMood()*5 );\n\n\t\t\t\t\t\t\t// Restart the sequencer\n\t\t\t\t\t\t\tMIDISoundTranslator.this.sequencer.setTickPosition(0);\n\t\t\t\t\t\t\tMIDISoundTranslator.this.sequencer.start();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "c4f9536bcf02769c18b365080f05bd86", "score": "0.57341486", "text": "Object metadata();", "title": "" }, { "docid": "ee30cde94cf16645b4b5cc0643d33723", "score": "0.5654245", "text": "public int getMetaFromState(IBlockState state)\r\n {\r\n int i = 0;\r\n i = i | ((BlockFlumeRailBase.EnumRailDirection)state.getValue(SHAPE)).getMetadata();\r\n\r\n return i;\r\n }", "title": "" }, { "docid": "17e3c32a189728455f817a860b2cf655", "score": "0.5620795", "text": "public M getMetaInformation() {\n\t\treturn meta;\n\t}", "title": "" }, { "docid": "c9bfe89d7f63a3c982a0f686791757a8", "score": "0.5616081", "text": "public boolean hasMetadata() {\n return fieldSetFlags()[22];\n }", "title": "" }, { "docid": "f37c4f1ff9b0731bba4555cc4410dc28", "score": "0.56058323", "text": "Meta createMeta();", "title": "" }, { "docid": "413e8a306c0d20a8a2712129d4cd8a41", "score": "0.557403", "text": "@Override\n\tpublic int getMetaFromState(IBlockState state) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7fb773b879dcb1d8de55e191ab776927", "score": "0.55518687", "text": "public abstract boolean inMetadata();", "title": "" }, { "docid": "c88018fecc0aeb6237f77d045fe76603", "score": "0.55359423", "text": "public int getMetaFromState(IBlockState state)\n\t {\n\t int i = 0;\n\t i = i | ((BlockPlanks.EnumType)state.getValue(TYPE)).getMetadata();\n\t return i;\n\t }", "title": "" }, { "docid": "56fd5eec196f3af43ff74c9ef3b902e3", "score": "0.55283886", "text": "@Override\n\tpublic int getType() {\n\t\treturn 3;\n\t}", "title": "" }, { "docid": "9c05c51e1c28822ed511cbe69ef41930", "score": "0.55097437", "text": "@Test\n public void shouldReturnNullWhenGetIntFromMultiValuedProperties() {\n Metadata meta = new Metadata();\n \n meta.set(Metadata.IMAGE_WIDTH, 22);\n assertEquals(22, meta.getInt(Metadata.IMAGE_WIDTH).intValue());\n assertEquals(null, meta.getInt(Metadata.BITS_PER_SAMPLE));\n assertEquals(null, meta.getInt(TikaCoreProperties.CREATED));\n }", "title": "" }, { "docid": "ef61696a00d68880701e8ea7cd65edf4", "score": "0.54931045", "text": "public int getMetaInformationCount() {\n if (metaInformationBuilder_ == null) {\n return metaInformation_.size();\n } else {\n return metaInformationBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "ef61696a00d68880701e8ea7cd65edf4", "score": "0.54931045", "text": "public int getMetaInformationCount() {\n if (metaInformationBuilder_ == null) {\n return metaInformation_.size();\n } else {\n return metaInformationBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "ef61696a00d68880701e8ea7cd65edf4", "score": "0.54931045", "text": "public int getMetaInformationCount() {\n if (metaInformationBuilder_ == null) {\n return metaInformation_.size();\n } else {\n return metaInformationBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "1a4ee0464dfba9ffd7ec9d6923cae29c", "score": "0.5486633", "text": "public int getMetadata(int par1)\n {\n return par1;\n }", "title": "" }, { "docid": "395f7adac904d20ea12367e17842b52e", "score": "0.5485498", "text": "Metadata metadata();", "title": "" }, { "docid": "e061da205493edc9bfde4927f2668998", "score": "0.54253685", "text": "@Override\n protected Integer getTutorialCount() {\n if (pager.getCurrentItem() == 3) {\n return 2;\n }\n return 1;\n }", "title": "" }, { "docid": "bc02d3c40dc11e4b2fe57167b36b4117", "score": "0.5422219", "text": "boolean hasMetaData();", "title": "" }, { "docid": "016958e95eef28f45caaf3f0c61c50c9", "score": "0.5368772", "text": "public int getMetaFromState(IBlockState state) {\n byte var2 = 0;\n int var3 = var2 | ((EnumFacing) state.getValue(field_176426_a)).getIndex();\n\n if (state.getValue(field_176425_b) == BlockPistonExtension.EnumPistonType.STICKY) {\n var3 |= 8;\n }\n\n return var3;\n }", "title": "" }, { "docid": "d3275c96ec070e9327b909fc1650ca4f", "score": "0.53679967", "text": "public boolean hasTau3() {\n return fieldSetFlags()[12];\n }", "title": "" }, { "docid": "39b7390f2b1c6393b3785fff30d35f0b", "score": "0.53645813", "text": "public Meta() {}", "title": "" }, { "docid": "d91afcfff463705530a17fef887222fc", "score": "0.5364056", "text": "boolean isMetaPaket();", "title": "" }, { "docid": "051030171bf48c635f5f3613cebdf558", "score": "0.5362853", "text": "public int getMetaFromState(IBlockState state) {\n\t\tint i = 0;\n\t\tif (((Boolean) state.getValue(POWERED)).booleanValue()) {\n\t\t\ti |= 4;\n\t\t}\n\n\t\treturn i + state.getValue(VOLUME);\n\t}", "title": "" }, { "docid": "55e8799a26be79cabe09e7d4b402a481", "score": "0.5359326", "text": "protected void loadMetaData() {\n \t}", "title": "" }, { "docid": "291b7ee94b46d47e55f3fac9efc81347", "score": "0.53537786", "text": "public abstract boolean prepareMetadata();", "title": "" }, { "docid": "87a2fa8fa3d59e9c4d9692272672b621", "score": "0.5333395", "text": "@Override\n public int getPropertyCount() {\n return 3;\n }", "title": "" }, { "docid": "3c6a777103b3099127778d20dc34c3e7", "score": "0.529836", "text": "public Object nextMeta() throws JSONException {\n while (Character.isWhitespace(var1_1 = this.next())) {\n }\n switch (var1_1) {\n default: {\n break;\n }\n case '\\u0000': {\n throw this.syntaxError(\"Misshaped meta tag\");\n }\n case '<': {\n return XML.LT;\n }\n case '>': {\n return XML.GT;\n }\n case '/': {\n return XML.SLASH;\n }\n case '=': {\n return XML.EQ;\n }\n case '!': {\n return XML.BANG;\n }\n case '?': {\n return XML.QUEST;\n }\n case '\\\"': \n case '\\'': {\n ** GOTO lbl31\n }\n }\n block14 : do {\n if (Character.isWhitespace(var1_1 = this.next())) {\n return Boolean.TRUE;\n }\n switch (var1_1) {\n default: {\n continue block14;\n }\n case '\\u0000': \n case '!': \n case '\\\"': \n case '\\'': \n case '/': \n case '<': \n case '=': \n case '>': \n case '?': \n }\n break;\n } while (true);\n this.back();\n return Boolean.TRUE;\nlbl31: // 1 sources:\n do {\n if ((var2_2 = this.next()) != '\\u0000') continue;\n throw this.syntaxError(\"Unterminated string\");\n } while (var2_2 != var1_1);\n return Boolean.TRUE;\n }", "title": "" }, { "docid": "647a054dd94ef4be22c35ec4aad6593a", "score": "0.5296583", "text": "long getIfMetagenerationNotMatch();", "title": "" }, { "docid": "bdd63968b9ccf6c776a1907696a12c91", "score": "0.52863204", "text": "public int getMetadata(int par1)\n {\n return par1 << 2;\n }", "title": "" }, { "docid": "6835052202389f700ff4dc82cd599738", "score": "0.52841", "text": "public furo.MetaOuterClass.Meta getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? furo.MetaOuterClass.Meta.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "6835052202389f700ff4dc82cd599738", "score": "0.52841", "text": "public furo.MetaOuterClass.Meta getMeta() {\n if (metaBuilder_ == null) {\n return meta_ == null ? furo.MetaOuterClass.Meta.getDefaultInstance() : meta_;\n } else {\n return metaBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "bb16234b31eb238d3dfc8af06bb82f35", "score": "0.5270401", "text": "@Test\n public void cannotSetPropertiesWithMultipleIntAsSingleInt() {\n Metadata meta = new Metadata();\n \n try {\n meta.set(Metadata.BITS_PER_SAMPLE, 1);\n fail(\"Shouldn't be able to set a multi valued property as an int\");\n } catch(PropertyTypeException e) {}\n try {\n meta.set(TikaCoreProperties.CREATED, 1);\n fail(\"Shouldn't be able to set a date property as an int\");\n } catch(PropertyTypeException e) {}\n }", "title": "" }, { "docid": "79292684df6557f296c461816e71fffc", "score": "0.52574897", "text": "public void nukeMeta() {\n this.meta = null;\n }", "title": "" }, { "docid": "f55fe75c641ba9298c25bd84bb075a95", "score": "0.52531123", "text": "public Integer getExtrafield3() {\n return extrafield3;\n }", "title": "" }, { "docid": "879b0dce31d28518aa45ee7965c1b690", "score": "0.52505755", "text": "public furo.MetaOuterClass.Meta getMeta() {\n return meta_ == null ? furo.MetaOuterClass.Meta.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "879b0dce31d28518aa45ee7965c1b690", "score": "0.52505755", "text": "public furo.MetaOuterClass.Meta getMeta() {\n return meta_ == null ? furo.MetaOuterClass.Meta.getDefaultInstance() : meta_;\n }", "title": "" }, { "docid": "b81c98ac378ce06de3fca5973b4b65e1", "score": "0.5250503", "text": "boolean hasMetadata();", "title": "" }, { "docid": "b81c98ac378ce06de3fca5973b4b65e1", "score": "0.5250503", "text": "boolean hasMetadata();", "title": "" }, { "docid": "b81c98ac378ce06de3fca5973b4b65e1", "score": "0.5250503", "text": "boolean hasMetadata();", "title": "" }, { "docid": "b81c98ac378ce06de3fca5973b4b65e1", "score": "0.5250503", "text": "boolean hasMetadata();", "title": "" }, { "docid": "0034d017479e76a1db391cd68cbcbb1b", "score": "0.5249533", "text": "public int getMetaFromState(IBlockState state)\n {\n return ((Integer)state.getValue(AGE)).intValue();\n }", "title": "" }, { "docid": "2cf026b9ffc0d22a955c5c672a430ed7", "score": "0.5248191", "text": "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "title": "" }, { "docid": "2cf026b9ffc0d22a955c5c672a430ed7", "score": "0.5248191", "text": "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "title": "" }, { "docid": "2cf026b9ffc0d22a955c5c672a430ed7", "score": "0.5248191", "text": "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "title": "" }, { "docid": "1c3558c37552a3a97f59c8f7f30b294f", "score": "0.52340996", "text": "int getMetadataCount();", "title": "" }, { "docid": "1c3558c37552a3a97f59c8f7f30b294f", "score": "0.52340996", "text": "int getMetadataCount();", "title": "" }, { "docid": "ce189e97596043e1a2c21b8dc842f8c1", "score": "0.5225127", "text": "public static int giveMeThree() {\n return three;\n }", "title": "" }, { "docid": "87122372029aea4cc43b598966eba673", "score": "0.52200645", "text": "public static final int getMetaState(CharSequence text, int meta) {\n switch (meta) {\n case META_SHIFT_ON:\n return getActive(text, CAP, 1, 2);\n\n case META_ALT_ON:\n return getActive(text, ALT, 1, 2);\n\n case META_SYM_ON:\n return getActive(text, SYM, 1, 2);\n\n case META_SELECTING:\n return getActive(text, SELECTING, 1, 2);\n\n default:\n return 0;\n }\n }", "title": "" }, { "docid": "c4f211f751505d78031c83d14d87cda0", "score": "0.5218802", "text": "public int getMetasCount();", "title": "" }, { "docid": "a48d69bf6e419294f9ca5fde9f1fd8e1", "score": "0.52050924", "text": "protected void loadFromMetaData() {\n \t}", "title": "" }, { "docid": "d9224635318c13ff36950bb5c1b2caf7", "score": "0.5204333", "text": "public void loadMeta(RulesMeta meta) {\n\t\tsetRuleFile(meta.getRuleFile());\n\t\tsetRuleDefinition(meta.getRuleDefinition());\n\t\tsetKeepInputFields(Boolean.toString(meta.isKeepInputFields()));\n\t\t\n\t\tfor(ValueMetaInterface vm : meta.getRuleResultColumns()) {\n\t\t\tColumn c = new Column();\n\t\t\tc.setName(vm.getName());\n\t\t\tc.setType(vm.getTypeDesc());\n\t\t\t\n\t\t\tgetColumnList().add(c);\n\t\t}\n\t}", "title": "" }, { "docid": "e457ebbde02bf5ea8a6d9378de829066", "score": "0.52007157", "text": "Metadata getMetadata();", "title": "" }, { "docid": "5da96d37865adcdb8d5f9ab9341bb171", "score": "0.5177924", "text": "public int getMetaFromState(IBlockState state) {\n\t\treturn getMetaForAxis((EnumFacing.Axis) state.getValue(AXIS));\n\t}", "title": "" }, { "docid": "fe1547a6e477b8674274d22c317d9278", "score": "0.51737756", "text": "private void setMetaInfo(String text, int x, int y){\n metaText = text;\n metaX = x;\n metaY = y;\n }", "title": "" }, { "docid": "2acd0897822ec1eccfe66438eaa19ae8", "score": "0.5170683", "text": "public void rotateMetaSide(){\r\n \tmeta.rotate(rotateSide,rotateDir);\r\n \t}", "title": "" }, { "docid": "2bf643d1b3b0e2c1611197854e0666ce", "score": "0.5144023", "text": "protected abstract String getMetaDescription();", "title": "" }, { "docid": "ac9c7fc3a2733deaf09860934b75a9f1", "score": "0.5142343", "text": "public final boolean hasMetadata() {\n return !(getMatadata().isEmpty());\n }", "title": "" }, { "docid": "59f496060b19519a4782df33291a56f6", "score": "0.5139433", "text": "public int[] getVariantMeta() { return new int[] { 0 }; }", "title": "" }, { "docid": "58168e17730660791441108343e4b2d9", "score": "0.5136906", "text": "FlBaseProto.MetaData getMetaData();", "title": "" }, { "docid": "c7228f4e025fcfc67037109686b618bb", "score": "0.5132656", "text": "public boolean hasMetaData() {\n return metaData_ != null;\n }", "title": "" }, { "docid": "8b68f081535a89671bff6eadd4b1aa0a", "score": "0.5132233", "text": "public boolean isSetMetaId() {\n return libsbmlJNI.SBase_isSetMetaId(swigCPtr, this);\n }", "title": "" }, { "docid": "c535443297ddb6a1d125007e747989ac", "score": "0.512467", "text": "furo.MetaOuterClass.Meta getMeta();", "title": "" }, { "docid": "c535443297ddb6a1d125007e747989ac", "score": "0.512467", "text": "furo.MetaOuterClass.Meta getMeta();", "title": "" }, { "docid": "adcec71e8272f3eb1532e040b75b1dce", "score": "0.5122797", "text": "public boolean hasField3() {\n return fieldSetFlags()[4];\n }", "title": "" }, { "docid": "3ca735af27e6da286f8e4eb56a528620", "score": "0.5119114", "text": "public int getWidth(int meta)\n\t{\n\t\treturn 16 - 4 * (meta % 4);\n\t}", "title": "" }, { "docid": "26df653b88250c10db331433b07a2f61", "score": "0.51157606", "text": "public static boolean isMetaTracker(CharSequence text, Object what) {\n return what == CAP || what == ALT || what == SYM ||\n what == SELECTING;\n }", "title": "" }, { "docid": "6bec8fd044d04893469373040df7e999", "score": "0.511349", "text": "@Override\r\n\tpublic int getPropertyCount() {\n\t\treturn 3;\r\n\t}", "title": "" }, { "docid": "1126c3fa40e0cacf138907d7358a70ac", "score": "0.5099697", "text": "boolean hasIfMetagenerationNotMatch();", "title": "" }, { "docid": "0fdd425cbacd24efa130a327fac17b66", "score": "0.5099083", "text": "public void setExtrafield3(Integer extrafield3) {\n this.extrafield3 = extrafield3;\n }", "title": "" }, { "docid": "4d05aa53f60eec6a079b9e596d5736d9", "score": "0.5093397", "text": "public boolean isMetaAdicionar() {\r\n\t\treturn metaAdicionar;\r\n\t}", "title": "" }, { "docid": "1c8be2aa839ef5d16412e26ba2da9fb7", "score": "0.5080632", "text": "TestCaseMetaInfo getMetaInfo();", "title": "" }, { "docid": "1803bacd65b0da110746f4460d73f26c", "score": "0.5075952", "text": "io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(\n int index);", "title": "" } ]
b75f8a0ffcb389b4690a726b3fd283c0
Test case Verifies booking flow gets completed without issues
[ { "docid": "584286414d4fd20767538b66bbdfa352", "score": "0.73137575", "text": "@Test(priority=1)\r\n public void bookFlight(){\r\n Assert.assertEquals(homePage.bookFlight(\"Boston\",\"London\"),true);\r\n Assert.assertEquals(homePage.selectFlight(),true);\r\n Assert.assertEquals(purchasePage.enterDetails(\"abc\", \"xyz\", \"pune\", \"Mh\", 123, \"Visa\", 123, 05, 11, \"shb\"),true);\r\n String bookingId=purchasePage.verifyPurchase();\r\n if (bookingId.equals(\"\")){\r\n Assert.assertTrue(false,\"Id is null for booking, please refer screenshots for more details\");\r\n }\r\n else{\r\n Assert.assertTrue(true,\"Id is not null for booking: \"+bookingId);\r\n }\r\n\r\n }", "title": "" } ]
[ { "docid": "26496ffb7d3cfdfda4f3ebb708412e66", "score": "0.7723583", "text": "public void verifyBookingDetails() throws Throwable {\n verifyPassengerDetails();\n verfyItineraryDetails();\n //overViewOfBooking();\n logger.log(LogStatus.PASS,\"Booking details verifiction done successfully\");\n }", "title": "" }, { "docid": "59a563120a5cd1e8bc8389a4292805dd", "score": "0.73872185", "text": "public boolean verifyBooking() throws Throwable {\n waitForElementPresent(bookingconfirmMessage,60);\n if (isElementPresent(bookingconfirmMessage) && isElementPresent(bookingOverview)) {\n logger.log(LogStatus.PASS,\"Booking has completed successfully\");\n return true;\n }else {\n logger.log(LogStatus.FAIL,\"Booking has failed\");\n return false;\n\n }\n }", "title": "" }, { "docid": "25e8fe81e982346b65e3d77a3fcaa7e5", "score": "0.7078547", "text": "@Test(priority=3)\r\n public void verifyNoBooking(){\r\n Assert.assertEquals(homePage.bookFlight(\"Boston\",\"London\"),true);\r\n Assert.assertEquals(homePage.selectFlight(),true);\r\n Assert.assertEquals(purchasePage.enterDetails(\"abc\", \"xyz\", \"pune\", \"Mh\", 123, \"Visa\", 123, 05, 11, \"shb\"),true);\r\n String bookingId=purchasePage.verifyPurchase();\r\n if (bookingId.equals(\"\")){\r\n Assert.assertTrue(true,\"Id is null for booking, please refer screenshots for more details\");\r\n }\r\n else{\r\n Assert.assertTrue(false,\"Id is not null for booking: \"+bookingId);\r\n }\r\n\r\n }", "title": "" }, { "docid": "90d41fcbdadfbcfdd550fd4fa8a47bc2", "score": "0.6993701", "text": "@Test(priority = 0)\n\tpublic void bookAticket() throws Exception\n\t{\n\t\tHomePage homePage = new HomePage();\n\t\thomePage.goTo().booATicket(\"2020-07-20\", \"Cameron Highlands\", \"Kuala Lumpur\");\n\n\t\t//Select min fare >> select max of 6 available seat\n\t\tSearchResultPage searchPage = new SearchResultPage();\n\t\tsearchPage.waitTillPageIsReady(\"Cameron Highlands to Kuala Lumpur buses\");\n\t\tsearchPage.selectMinAdultFare();\n\t\tsearchPage.selectAvailableSeats(6);\n\n\t\t//Enter passenger details and submit and assert the alert text\n\t\tBookingDetails bookingDetails = new BookingDetails();\n\t\tbookingDetails.waitTillPageIsReady(\"Booking Process | BusOnlineTicket.com\");\n\t\tbookingDetails.fillPassengerDetails(\"test\", \"9632587412\", \"test@mail.com\");\n\t\tbookingDetails.validateAlertText(\"Please select a payment method\");\n\t}", "title": "" }, { "docid": "e95ed3c3c656f954efe0c3bf1263f096", "score": "0.6940842", "text": "@Test\n\tvoid test1() {\n\t\tString id = BookingValidator.generateUniqueID();\n\t\tBookingValidator.bookSpace(777, \"abc@usermail.com\", 3, id);\n\t\tboolean cancelBooking = CancelBooking.cancelBooking(id);\n\t\tassertEquals(true, cancelBooking);\n\t}", "title": "" }, { "docid": "4f9d776dc54426e5e5f2aa258dd38f62", "score": "0.67203873", "text": "public static void successfulBooking() {\n\t\tSystem.out.println(\"Reservation is made successfully!\");\n\t}", "title": "" }, { "docid": "b677312325ea4050ff70f452c62cee7b", "score": "0.6635295", "text": "@Test\n void addBooking() throws FlightNotFoundException {\n assertEquals(bookingTest,flightBookingService.addBooking(bookingTest));\n }", "title": "" }, { "docid": "661cf4ce9b544e959350a4b3ffd5bc43", "score": "0.6598296", "text": "@Test(priority=2)\r\n public void verifyBookingForSameSourceAndDestination(){\r\n Assert.assertEquals(homePage.bookFlight(\"Boston\",\"Boston\"),false);\r\n\r\n }", "title": "" }, { "docid": "f0b278de0b974f249b21c1523b6ab594", "score": "0.6588844", "text": "public void overViewOfBooking() throws Throwable {\n\n ArrayList<String> addedEssentials=new ArrayList<>();\n ArrayList<String> moreExtrasList=new ArrayList<>();\n String includedServDetails;\n //Verifies Included services\n if(getVisibleText(includedSevicesHeader).contains(\"Included services\")) {\n includedServDetails=getVisibleText(includedSevices);\n Assert.assertTrue(includedServDetails.contains(totalPassengers+\" x \"+6+\" Kg hand luggage\"));\n logger.log(LogStatus.PASS,\"Included services verified successfully\");\n }\n else\n {\n logger.log(LogStatus.FAIL, \"Included services verification failed: \" + logger.addScreenCapture(capture(\"IncludedServicesError\")));\n }\n //Verifies Added essentials\n if(getVisibleText(essentilasHeader).contains(\"Essentials\")) {\n for (WebElement essentilasList : getAllElements(essentilas)) {\n addedEssentials.add(essentilasList.getText());\n }\n for (String temp:addedEssentials){\n String[] essArray=temp.split(\" \");\n switch (essArray[essArray.length-1]){\n case \"Seat\":\n //Verifies added seats in essentials\n try {\n if (passCount.isEmpty()) {\n } else {\n\n Assert.assertTrue(temp.contains(passCount.size() + \"x Seat\"));\n }\n }catch(NullPointerException e){\n Assert.assertTrue(temp.contains(\"No seats\"));\n }\n break;\n case \"meals\":\n //Verifies added meals in essentials\n if(mealsMethodCount==0){\n Assert.assertTrue((temp.contains(\"No meals\")));\n }\n else{\n\n }\n break;\n case \"allowances\":\n //Verifies added baggage in essentials\n if(baggageMethodCount==0){\n Assert.assertTrue((temp.contains(\"No free baggage allowances\")));\n }\n else {\n\n }\n break;\n }\n }\n }\n else{\n logger.log(LogStatus.FAIL, \"Essentials page is not displayed: \" + logger.addScreenCapture(capture(\"EssentialsPageError\")));\n }\n\n //Verifies More Extras\n if(getVisibleText(moreExtrasHeader).contains(\"More extras\")) {\n //commented for time being\n /*for (WebElement ele : getAllElements(moreExtras)) {\n moreExtrasList.add(ele.getText());\n }\n if(!equipments.isEmpty()&&(!moreExtrasList.isEmpty())){\n for (String eq:equipments){\n Assert.assertTrue(moreExtrasList.contains(eq));\n }\n }\n else{\n logger.log(LogStatus.INFO, \"No More extras added\");\n }*/\n }\n else{\n logger.log(LogStatus.FAIL, \"More extras page is noy displayed: \" + logger.addScreenCapture(capture(\"MoreExtrasPageError\")));\n }\n }", "title": "" }, { "docid": "18526890768f2681199c7a12325b564c", "score": "0.65715724", "text": "@Then(\"I should see the booking page being opened\")\n\tpublic void i_should_see_the_booking_page_being_opened() {\n\t\treviewBookingPage = PageManager.getInstance().getReviewBookingPage();\n\t\t\n\t\tHashMap<String, String> expectedData = ExcelUtil.readDataFromExcel(getReviewbookingpage()); \n\t\tReviewBookingPageData rp = new ReviewBookingPageData(expectedData);\n\t\t\n\t\tAssert.assertEquals(rp.getReviewBooking(), reviewBookingPage.reviewBookingTextPresent());\n\t}", "title": "" }, { "docid": "6baf265da44828f94d4e511ee0e67e06", "score": "0.655109", "text": "@Test\n\tvoid test3() {\n\t\tString expiredBookingID = \"9a0c134b\";\n\t\tboolean cancelBooking = CancelBooking.cancelBooking(expiredBookingID);\n\t\t\n\t\tassertEquals(false, cancelBooking);\n\t}", "title": "" }, { "docid": "810d052925abc1f79a6d61af110bcfa8", "score": "0.6540305", "text": "@Test(priority = 3)\n\tpublic void SlackFlowValidateUpgradeNowEmptyFields() throws InterruptedException {\n\t\tThread.sleep(2000L);\n\t\tO365IconPagevalidateOnClick();\n\t\tThread.sleep(2000L);\n\t\toffice365Object.ConnectOffice365Button().click();\n\t\tThread.sleep(4000L);\n\t\tvalidateSignInOffice365AppAssertion();\n\t\tThread.sleep(4000L);\n\t\tOffice365WorkspaceFlow();\n\t\tThread.sleep(1000L);\n\t\toffice365Object.UpgradeNowFeature().click();\n\t\tString actualUpgradeFromText = office365Object.UpgradePlanText().getText();\n\t\tSystem.out.println(actualUpgradeFromText);\n\t\tAssert.assertEquals(actualUpgradeFromText, \"Upgrade from the Free plan to Team or Business plan\");\n\t\tThread.sleep(1000L);\n\t\toffice365Object.UpgradePlanNextButton().click();\n\t\tString actualSetupPaymentText = office365Object.UpgradePlanText().getText();\n\t\tSystem.out.println(actualSetupPaymentText);\n\t\tAssert.assertEquals(actualSetupPaymentText, \"Setup your payment method\");\n\t\toffice365Object.SetUpPaymentNextButton().click();\n\t\tSystem.out.println(office365Object.SetUpAlertMessage().getText());\n\t\tif (office365Object.SetUpAlertMessage().getText() != null) {\n\t\t\tSystem.out.println(\"entering into billing details\");\n\t\t\tvalidateCardValidDetails();\n\t\t\tSystem.out.println(\"Testcase-3 passed since billing details are provided and approved\");\n\t\t}\n\t}", "title": "" }, { "docid": "e226bfcd076a3169792d6748b8dc8c9a", "score": "0.6457858", "text": "@Test\n\tpublic void tryToBookiTwice() throws Exception {\n\t\tRequestBuilder searchForRooms = MockMvcRequestBuilders.get(\"/room?startDate=2017-08-01&endDate=2017-08-03&minPrice=100.00&maxPrice=190.00&city=Szczecin\").accept(MediaType.APPLICATION_JSON);\n\t\tmockMvc.perform(searchForRooms).andDo(print()).andExpect(status().isOk())\n\t\t\t\t.andExpect(content().string(containsString(EXPECTED_ROOM)));\n\n\t\t//Make a booking for the room\n\t\tString bookingBody = \"{\\\"checkIn\\\":\\\"2017-08-01\\\",\\\"checkOut\\\":\\\"2017-08-03\\\",\\\"roomId\\\":\\\"6\\\"}\";\n\t\tRequestBuilder bookIt = MockMvcRequestBuilders.post(\"/booking/client/\" + CLIENT_ID).contentType(MediaType.APPLICATION_JSON).content(bookingBody);\n\t\tMvcResult bookingResult = mockMvc.perform(bookIt).andDo(print()).andExpect(status().isOk()).andReturn();\n\t\tJSONObject bookingResponseBody = new JSONObject(bookingResult.getResponse().getContentAsString());\n\t\t\n\t\t//Second booking should return a CONFLICT response\n\t\tmockMvc.perform(bookIt).andDo(print()).andExpect(status().isConflict()).andReturn();\n\t\t\n\t\t//Cleanup by canceling the booking\n\t\tRequestBuilder cancelBooking = MockMvcRequestBuilders.delete(\"/booking/\" + bookingResponseBody.get(\"id\")).accept(MediaType.APPLICATION_JSON);\n\t\tmockMvc.perform(cancelBooking).andDo(print()).andExpect(status().isOk()).andReturn();\n\t}", "title": "" }, { "docid": "da802f2eb75ab8bade36dd83897af1c4", "score": "0.6427729", "text": "@Test\n\tpublic void cancelBookingTest() throws BookingException{\n\t\t//Booking booking=bookingService.cancelBooking(108);\n\t\t//assertEquals(\"Cancelled\",booking.getStatus());\n\t}", "title": "" }, { "docid": "5d12e03394d695e02a94defaf1be6385", "score": "0.63359344", "text": "@Test\n public void whenUpdatingMyOwnBookingDate_shouldSuccess() {\n LocalDate unAvailableArrivalDate = LocalDate.now().plusDays(12);\n LocalDate unAvailableDepartureDate = LocalDate.now().plusDays(13);\n CreateBookingRequestBody request =\n new CreateBookingRequestBody(\n \"test name\", \"test@mail.com\", unAvailableArrivalDate, unAvailableDepartureDate);\n Long id = this.bookingService.create(request);\n\n UpdateBookingRequestBody updateRequest =\n new UpdateBookingRequestBody(\n null, null, LocalDate.now().plusDays(13), LocalDate.now().plusDays(14));\n\n BookingDTO bookingDTO = this.bookingService.update(id, updateRequest);\n\n assertAll(\n () -> assertEquals(bookingDTO.getArrivalDate(), LocalDate.now().plusDays(13)),\n () -> assertEquals(bookingDTO.getDepartureDate(), LocalDate.now().plusDays(14)));\n }", "title": "" }, { "docid": "a82b4c31225040af3e2555d0639a3e17", "score": "0.6333717", "text": "@Test\n\tpublic void testMaxVehiclebooking() {\n\t\tCarRentalApp carRentalAppTest = new CarRentalApp();\n\t\tint booking = carRentalAppTest.currentBooking();\n\t\tassertEquals(booking,0);\n\t\tfor (Vehicle vehicle : Vehicle.values()) {\n\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\tcarRentalAppTest.bookThisVehicle(vehicle, LocalDate.now().toString(), 2);\n\t\t\t}\n\t\t}\n\t\tbooking = carRentalAppTest.currentBooking();\n\t\tassertEquals(booking,12);\n\t\tSystem.out.println(\"Total booking : \" + booking);\n\t\tSystem.out.println(\"Simple case try to book 6 vehicles of each type from same start/end, PASSED\");\n\t}", "title": "" }, { "docid": "a3ed37b9727a513d9a85d1fed2dd6822", "score": "0.6330645", "text": "@Test\n public void testCheckoutAvailableBook() {\n lc.addBook(new Book(\"Charlotte's web\", \"DE. B. White\", 1954,3.7));\n lc.addBook(new Book(\"Harry Potter\", \"J. Rowling\", 1999,3.8));\n lc.addBook(new Book(\"Mrs Frisby and the rats of NIMH\", \"Robert O'Brien\", 1970,3.9));\n boolean flag = lc.checkoutBook(\"Harry Potter\");\n assertTrue(\"checkoutBook was not able to checkout available book\", flag);\n }", "title": "" }, { "docid": "a9a688b735583ab2a956e40a98134c9c", "score": "0.63059753", "text": "private void addBooking() {\n checkGuestAvailability();\n\n String numberOfGuests;\n Integer roomCapacity;\n\n //check if given room exists and validate the room capacity against the number of guests\n do {\n String roomNumber = checkRoomAvailability();\n Room room = getRoomByRoomNumber(roomNumber);\n roomCapacity = room.getRoomCapacity();\n\n System.out.println(\"Please enter number of guests:\");\n numberOfGuests = scanner.nextLine();\n\n if (Integer.valueOf(numberOfGuests) > roomCapacity) {\n System.out.println(\"Guest count exceeds room capacity of: \" + roomCapacity);\n }\n\n } while (Integer.valueOf(numberOfGuests) > roomCapacity);\n\n\n String checkingMonth;\n do {\n System.out.println(\"Please enter check-in month:\");\n checkingMonth = scanner.nextLine();\n }while(isInvalidMonth(checkingMonth));\n\n }", "title": "" }, { "docid": "260cf3b6287d3b1222bb9d5437f81873", "score": "0.62927634", "text": "@Test(priority=2)\n\tpublic void bookATicket() throws IOException {\n\t\tfindFlightsPage.clickOnOneWay();\n\t\t// Select Departure From\n\t\tfindFlightsPage.selectDepartureFrom(testData.getProperty(\"flyFrom\"));\n\t\t// Select Arrival To\n\t\tfindFlightsPage.selectArrivalTo(testData.getProperty(\"flyTo\"));\n\t\t// Select Class Preference\n\t\tfindFlightsPage.selectClassPreference();\n\t\t// Select Airline Preference\n\t\tfindFlightsPage.selectAirlinePreference(testData.getProperty(\"airlinePreference\"));\n\t\t// Click on 'Find Flights'\n\t\tfindFlightsPage.clickOnFindFlights();\n\t\t// Click on 'Reserve Flight'\n\t\tselectFlightPage.clickOnReserveFlight();\n\t\t// Enter First Name\n\t\tsecurePurchasePage.enterFirstName(testData.getProperty(\"firstname\"));\n\t\t// Enter Last Name\n\t\tsecurePurchasePage.enterLastName(testData.getProperty(\"lastname\"));\n\t\t// Enter Credit Card Number\n\t\tsecurePurchasePage.enterCreditCardNumber(testData.getProperty(\"ccnumber\"));\n\t\t// Click on 'Buy Flights'\n\t\tsecurePurchasePage.clickOnSecurePurchase();\n\t\t// Verify Booking Confirmation Text\n\t\tscreenShotPath = getScreenshotPath(\"bookATicket\");\n\t\tif(flightConfirmationPage.getBookingConfirmationText().contains(testData.getProperty(\"confirmationText\"))) {\n\t\t\textentLogger.log(Status.PASS, \"Ticket has been booked successfully\");\n\t\t\textentLogger.addScreenCaptureFromPath(screenShotPath);\n\t\t}else {\n\t\t\textentLogger.log(Status.FAIL, \"Ticket has not been booked successfully\");\n\t\t\textentLogger.addScreenCaptureFromPath(screenShotPath);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5025c87a8db962bad3f7398e2f332576", "score": "0.6286953", "text": "@Test\r\n\tpublic void testBookBusticket_TC_103()\r\n\t{\n\t\t\t\tString un = ExcelLibrary.readData(\"TC_103\", 1, 0);\r\n\t\t\t\tString pwd = ExcelLibrary.readData(\"TC_103\", 1, 1);\r\n\t\t\t\tString srcDestn = ExcelLibrary.readData(\"TC_103\", 1, 2);\r\n\t\t\t\tString trgtDestn = ExcelLibrary.readData(\"TC_104\", 1, 3);\r\n\t\t\t\tString brdgPnt = ExcelLibrary.readData(\"TC_104\", 1, 4);\r\n\t\t\t\t\r\n\t\t\t\t//Create objects for all the Webpages\r\n\t\t\t\tHomepage hp = new Homepage();\r\n\t\t\t\tBusListPage blp = new BusListPage();\r\n\t\t\t\t\r\n\t\t\t\t//Perform actions\r\n\t\t\t\thp.clickOnLoginRegisterLink();\r\n\t\t\t\thp.enterEmailIdOrMobileNo(un);\r\n\t\t\t\thp.enterPassword(pwd);\r\n\t\t\t\thp.clickOnSignInButton();\r\n\t\t\t\thp.enterSourceDestinationTextbox(srcDestn);\r\n\t\t\t\thp.enterTargetDestinationTextbox(trgtDestn);\r\n\t\t\t\thp.clickOnDateOfJourneyTextbox();\r\n\t\t\t\thp.clickOnSearchButton();\r\n\t\t\t\tblp.selectBoardingDropdownFIlter(brdgPnt);\r\n\t\t\t\tblp.clickOnSelectSeatButton();\r\n\t\t\t\tblp.clickOnSeatIcon();\r\n\t\t\t\tblp.selectBoardingDropdown(brdgPnt);\r\n\t\t\t\tblp.clickOnContinueToPaymentButton();\r\n\t}", "title": "" }, { "docid": "4f805cf2c1c93a44ebe567db61becde0", "score": "0.6246671", "text": "@Test\n\tpublic void tryToBookForUnavailableRoom() throws Exception {\n\t\tString bookingBody = \"{\\\"checkIn\\\":\\\"2010-08-01\\\",\\\"checkOut\\\":\\\"2010-08-03\\\",\\\"roomId\\\":\\\"6\\\"}\";\n\t\tRequestBuilder bookIt = MockMvcRequestBuilders.post(\"/booking/client/\" + CLIENT_ID).contentType(MediaType.APPLICATION_JSON).content(bookingBody);\n\t\tmockMvc.perform(bookIt).andDo(print()).andExpect(status().isConflict()).andReturn();\n\t}", "title": "" }, { "docid": "6220d5e8721de24485431e779fa2cedd", "score": "0.6220311", "text": "@Test\n void viewBookingList() {\n fail(\"This is yet to be implemented\");\n }", "title": "" }, { "docid": "c021cf431752cc33f482fdacd0acb7e5", "score": "0.6218485", "text": "@SuppressWarnings(\"unchecked\")\n public void testProductionRunEarlyReceive() throws Exception {\n // set the organization to use standard costing\n GenericValue org = delegator.findByPrimaryKey(\"PartyAcctgPreference\", UtilMisc.toMap(\"partyId\", organizationPartyId));\n assertNotNull(org);\n org.set(\"costingMethodId\", \"STANDARD_COSTING\");\n org.store();\n \n // Create a production run with createProductionRunProd1 and quantity 5\n String productionRunId = createProductionRunProd1(\"Production Run for Test Early Receive\", 5);\n \n // Note the initial balances\n InventoryAsserts inventoryAsserts = new InventoryAsserts(this, facilityId, organizationPartyId, demowarehouse1);\n FinancialAsserts financialAsserts = new FinancialAsserts(this, organizationPartyId, demofinadmin);\n Map initialBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // Check that OpentapsProductionRun.canProduce() returns false (since it is not running yet)\n OpentapsProductionRun opentapsProductionRun = new OpentapsProductionRun(productionRunId, dispatcher);\n assertFalse(\"OpentapsProductionRun should return false on canProduce() since it is not running yet.\", opentapsProductionRun.canProduce());\n \n // Start the task\n String taskId = startOnlyTask(productionRunId);\n \n // Check that OpentapsProductionRun.canProduce() returns true\n opentapsProductionRun = new OpentapsProductionRun(productionRunId, dispatcher);\n assertTrue(\"OpentapsProductionRun should return true on canProduce() since it is running now.\", opentapsProductionRun.canProduce());\n \n // Produce 1 unit of product\n Map input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", productionRunId);\n input.put(\"productId\", \"PRUNTEST_PROD1\");\n input.put(\"quantity\", new BigDecimal(\"1\"));\n Map result = runAndAssertServiceSuccess(\"opentaps.productionRunProduce\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // Verify the unit cost of the product is $194\n InventoryRepositoryInterface repo = getInventoryRepository(demowarehouse1);\n List<String> inventoryItemIds = (List<String>) result.get(\"inventoryItemIds\");\n assertNotEmpty(\"Should have produced at least one inventory item.\", inventoryItemIds);\n assertEquals(\"Should have produced exactly one inventory item.\", inventoryItemIds.size(), 1);\n InventoryItem inventoryItem = repo.getInventoryItemById(inventoryItemIds.get(0));\n assertEquals(\"Unexpected PRUNTEST_PROD1 unitCost for the produced inventory item\", inventoryItem.getUnitCost(), new BigDecimal(\"194\"));\n \n // Issue inventory required\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1, \"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"issueProductionRunTask\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // Produce 2 more of the product\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", productionRunId);\n input.put(\"productId\", \"PRUNTEST_PROD1\");\n input.put(\"quantity\", new BigDecimal(\"2\"));\n pause(\"Workaround MYSQL Timestamp PK collision\");\n result = runAndAssertServiceSuccess(\"opentaps.productionRunProduce\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // Verify the unit cost of the product is $194\n inventoryItemIds = (List<String>) result.get(\"inventoryItemIds\");\n assertNotEmpty(\"Should have produced at least one inventory item.\", inventoryItemIds);\n assertEquals(\"Should have produced exactly one inventory item.\", inventoryItemIds.size(), 1);\n inventoryItem = repo.getInventoryItemById(inventoryItemIds.get(0));\n assertEquals(\"Unexpected PRUNTEST_PROD1 unitCost for the produced inventory item\", inventoryItem.getUnitCost(), new BigDecimal(\"194\"));\n \n // Declare 1,000,000 of setup time and 2,600,000 of run time for the task\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"productionRunTaskId\", taskId);\n input.put(\"partyId\", demowarehouse1.get(\"partyId\"));\n input.put(\"addSetupTime\", new BigDecimal(\"1000000.0\"));\n input.put(\"addTaskTime\", new BigDecimal(\"2600000.0\"));\n runAndAssertServiceSuccess(\"updateProductionRunTask\", input);\n \n // Complete the task, which should trigger production run completed\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"changeProductionRunTaskStatus\", input);\n \n // Produce 2 more of the product\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", productionRunId);\n input.put(\"productId\", \"PRUNTEST_PROD1\");\n input.put(\"quantity\", new BigDecimal(\"2\"));\n pause(\"Workaround MYSQL Timestamp PK collision\");\n result = runAndAssertServiceSuccess(\"opentaps.productionRunProduce\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // Verify the unit cost of the product is $194\n inventoryItemIds = (List<String>) result.get(\"inventoryItemIds\");\n assertNotEmpty(\"Should have produced at least one inventory item.\", inventoryItemIds);\n assertEquals(\"Should have produced exactly one inventory item.\", inventoryItemIds.size(), 1);\n inventoryItem = repo.getInventoryItemById(inventoryItemIds.get(0));\n assertEquals(\"Unexpected PRUNTEST_PROD1 unitCost for the produced inventory item\", inventoryItem.getUnitCost(), new BigDecimal(\"194\"));\n \n // Complete production run (close it)\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n runAndAssertServiceSuccess(\"changeProductionRunStatus\", input);\n \n /* Verify the GL account balances are:\n MFG_EXPENSE_INTERNAL, -650,\n INVENTORY_ACCOUNT, 970,\n RAWMAT_INVENTORY\", -195\n MFG_EXPENSE_VARIANCE, -125\n WIP_INVENTORY, 0\n These costs are also calculated with EXAMPLE_COST CostComponent (see below).\n */\n Map finalBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n Map expectedBalanceChanges = UtilMisc.toMap(\"MFG_EXPENSE_INTERNAL\", \"-650\",\n \"INVENTORY_ACCOUNT\", \"970\",\n \"RAWMAT_INVENTORY\", \"-195\",\n \"MFG_EXPENSE_VARIANCE\", \"-125\",\n \"WIP_INVENTORY\", \"0\");\n expectedBalanceChanges = UtilFinancial.replaceGlAccountTypeWithGlAccountForOrg(organizationPartyId, expectedBalanceChanges, delegator);\n printMapDifferences(initialBalances, finalBalances);\n assertMapDifferenceCorrect(initialBalances, finalBalances, expectedBalanceChanges);\n \n // set PartyAcctgPreference.costingMethodId back to null\n org.set(\"costingMethodId\", null);\n org.store();\n }", "title": "" }, { "docid": "65889d320e4336da924fdc61d4c23342", "score": "0.6217405", "text": "@Test\n void testCompleteTask() {\n when(scenario.waitsAtEventBasedGateway(\"IsItReady\")).thenReturn(gateway -> {\n System.out.println(\"ReceivedEvent\");\n Map recVariables = new HashMap<String, Object>();\n\n gateway.getEventSubscription(\"IsReady\").receive(recVariables);\n });\n\n\n //this will trigger the BPMN Flow to invoke the cooking process\n Scenario handler = Scenario.run(scenario).startByKey(\"CookMasalaVeggiesNoodles\", variables).execute();\n\n // check the final output if it has all the values\n assertThat(handler.instance(scenario)).variables().containsEntry(Constants.DID_WE_EAT_NOODLES, true);\n\n // check the order of the desired steps in the success flow\n verify(scenario, times(1)).hasFinished(\"Start_Process\"); // process start\n verify(scenario, atMostOnce()).hasCompleted(\"CanWeCook\"); // exclusive gateway\n verify(scenario, atMostOnce()).hasCompleted(\"LetsCook\"); // cooking service step\n verify(scenario, atMostOnce()).hasCompleted(\"IsItReady\"); // check for the event\n verify(scenario, atMostOnce()).hasCompleted(\"LetUsEat\"); // ALl went well so call eat service\n verify(scenario, times(1)).hasFinished(\"End_Process\"); // end event\n\n }", "title": "" }, { "docid": "7254644b03c88aa438adb99c95ffeea8", "score": "0.6208914", "text": "@Test(dependsOnMethods = { \"validateLogin\" })\r\n\tpublic void makeAppt() {\r\n\t\tSystem.out.println(\"JS\");\r\n\r\n\t\t// Click Schedule Appointment on left side options\r\n\t\tdriver.findElement(By.xpath(\"//span[contains(.,'Schedule Appointment')]\")).click();\r\n\r\n\t\t// *****TC#3 Click on the \"Create New Appointment\" button\r\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\r\n\t\t// Select a provider\r\n\t\t// hardcoded - need to change provider code to click button underneath the reqd\r\n\t\t// provider\r\n\t\tdriver.findElement(\r\n\t\t\t\tBy.xpath(\"//button[contains(@onclick,\\\"showUrlInDialog('bookdate.php?id=7&pid='); return false;\\\")]\"))\r\n\t\t\t\t.click();\r\n\r\n\t\t// ***** TC#4 Click \"Book Appointment\" under the Provider Name with whom the\r\n\t\t// appointment is to be scheduled.\r\n\r\n\t\t// String providerName =\r\n\t\t// driver.findElement(By.xpath(\"//h4[contains(text(),'Dr.Annabeth')]\"))\r\n\t\t// .getAttribute(\"value\");\r\n\r\n\t\tString doctorName = (\"Annabeth\");\r\n\t\t// System.out.println(\"providerName \" + doctorName);\r\n\r\n\t\t// Change focus to the new Frame for making New Appointment\r\n\t\tWebElement apptFrame = driver.findElement(By.id(\"myframe\"));\r\n\t\tdriver.switchTo().frame(apptFrame);\r\n\r\n\t\t// ***** TC#5 Enter Date\r\n\t\tWebElement we = driver.findElement(By.id(\"datepicker\"));\r\n\t\twe.sendKeys(\"09/01/2020\");\r\n\r\n\t\tString apptDate = driver.findElement(By.id(\"datepicker\")).getAttribute(\"value\");\r\n\t\t// System.out.println(\"apptDate \" + apptDate);\r\n\t\t// Used tab to tab out of Calendar date field.\r\n\t\twe.sendKeys(Keys.TAB);\r\n\r\n\t\t// ***** TC#6 Enter Time\r\n\t\t// Can write single statement to select time value from ListBox\r\n\t\tWebElement we1 = driver.findElement(By.xpath(\"//option[@value='11Am']\"));\r\n\t\tString apptTime = driver.findElement(By.xpath(\"//option[@value='11Am']\")).getAttribute(\"value\");\r\n\t\t// System.out.println(\"apptTime \" + apptTime);\r\n\t\twe1.click();\r\n\r\n\t\t// Continue button is not interactable. Got error -\r\n\t\t// org.openqa.selenium.ElementNotInteractableException\r\n\t\t// Bcos the Time dropdown is hiding the Continue button\r\n\t\t// Hence write the below code\r\n\r\n\t\t// ***** TC#7 Click the Continue button\r\n\t\tWebDriverWait wait1 = new WebDriverWait(driver, 10);\r\n\t\tWebElement we2 = wait1\r\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//button[@id='ChangeHeatName']\")));\r\n\t\twe2.click();\r\n\r\n\t\t// ***** TC#8 Enter your symptoms and click Submit button\r\n\t\tdriver.findElement(By.id(\"sym\")).sendKeys(\"sore throat\");\r\n\r\n\t\tString symptoms = driver.findElement(By.id(\"sym\")).getAttribute(\"value\");\r\n\t\t// System.out.println(\"symptoms \" + symptoms);\r\n\r\n\t\t// Now that we have all 4 data values - store them in hashMap - makeApptMap\r\n\t\tmakeApptMap.put(\"Doctor\", doctorName);\r\n\t\tmakeApptMap.put(\"Date\", apptDate);\r\n\t\tmakeApptMap.put(\"Time\", apptTime);\r\n\t\tmakeApptMap.put(\"Appointment\", symptoms);\r\n\r\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\r\n\t}", "title": "" }, { "docid": "e6d84d07fc11e921619f24b264a2bf71", "score": "0.6204591", "text": "public static void failedBooking() {\n\t\tSystem.out.println(\"No available tables for this time slot.\");\n\t}", "title": "" }, { "docid": "5f8a182a7d069be65dad6e8b8fd7496f", "score": "0.62023324", "text": "@Test\n\tpublic void testAa_TestNormalBorrowingLendingScenario()\n\t\t\tthrows UserNotFoundException, CustomException, BookNotFoundException {\n\n\t\t// User 1 registers and lends a book\n\t\tUser lender = bookShopDao.registerAnUserInBookShop(\"Lender\", \"Whitefield\", \"Bangalore\",\n\t\t\t\t\"India\", \"12345\");\n\n\t\tSet<String> authorNames = new HashSet<>();\n\t\tauthorNames.add(new String(\"Suresh Kumar\"));\n\t\tlenderDao.lendABook(lender.getUserID(), \"In Quest of Honesty\", authorNames, 12, 100.0);\n\n\t\tAssert.assertEquals(1, BookShop.getInstance().getLendingInfo().size());\n\n\t\tString bookId = bookshop.getLendingInfo().stream()\n\t\t\t\t.filter(l -> l.getUserId().equals(lender.getUserID())).collect(Collectors.toList())\n\t\t\t\t.get(0).getLendedBookId();\n\n\t\t// User 2 registers and borrows the same book\n\t\tUser borrower = bookShopDao.registerAnUserInBookShop(\"Borrower\", \"Whitefield\", \"Bangalore\",\n\t\t\t\t\"India\", \"939939\");\n\n\t\tborrowerDao.borrowABook(borrower.getUserID(), bookId, 12);\n\n\t\tAssert.assertEquals(1, bookshop.getBorrowingInfo().size());\n\n\t\t// After 13 days User 2 returns the book to book shop\n\t\tborrowerDao.returnBook(borrower.getUserID(), bookId,\n\t\t\t\tLocalDate.now().plus(Period.ofDays(13)));\n\n\t\t// As its 1 day late , a fine of Rs.5 should be paid\n\t\tBorrowingInfo borrowingInfo = bookshop.getBorrowingInfo().stream()\n\t\t\t\t.filter(l -> l.getUserId().equals(borrower.getUserID()))\n\t\t\t\t.collect(Collectors.toList()).get(0);\n\t\tAssert.assertEquals(5.0, borrowingInfo.getFinePaid(), 0.0);\n\n\t\t// Borrowing charges will be -> 100(lending charges for 12 days) + 5 * 1(fine) + 1*13 (Rs.1\n\t\t// each day for bookshop = 118\n\t\tAssert.assertEquals(118.0, borrowingInfo.getBorrowingCharges(), 0.0);\n\n\t\t// For each day bookshop will get Rs.1\n\t\tAssert.assertEquals(13.0, bookshop.getBookShopEarnings(), 0.0);\n\n\t\t// After that on 13th day the Admin returns the book back to lender\n\t\tlenderDao.returnTheBookToLenderAfterLendingPeriodIsOver(bookId,\n\t\t\t\tLocalDate.now().plus(Period.ofDays(13)));\n\n\t\t// Lender will get -> 100(lending charges) - 5( 5% book shop commision charges) + 1*5 (fine,\n\t\t// as 1 day late) = 105\n\t\tAssert.assertEquals(105.0,\n\t\t\t\tbookshop.getUsers().stream().filter(u -> u.getUserID().equals(lender.getUserID()))\n\t\t\t\t\t\t.collect(Collectors.toList()).get(0).getEarnings(),\n\t\t\t\t0.0);\n\n\t\t// Book shop earnings will be Rs.5 more which is 13+5 = 18\n\t\tAssert.assertEquals(18.0, bookshop.getBookShopEarnings(), 0.0);\n\n\n\n\t}", "title": "" }, { "docid": "042b1c6014f37f50d43a9f514732dbac", "score": "0.6171744", "text": "public void verifyBookAppointmentForm() {\n waitForVisibility(bookingScreen.NAME_LABEL);\n Log.info(\"Name label visible\");\n waitForVisibility(bookingScreen.NAME_TEXT_FIELD);\n Log.info(\"Name text field visible\");\n waitForVisibility(bookingScreen.PHONE_NO_LABEL);\n Log.info(\"Phone number label visible\");\n waitForVisibility(bookingScreen.PHONE_NO_TEXT_FIELD);\n Log.info(\"Phone number field visible\");\n waitForVisibility(bookingScreen.EMAIL_FIELD);\n Log.info(\"Email field visible\");\n waitForVisibility(bookingScreen.CARS_INTERESTED_LABEL);\n Log.info(\"Cars interested label visible\");\n waitForVisibility(bookingScreen.CARS_INTERESTED_FIELD);\n Log.info(\"Cars interested field visible\");\n waitForVisibility(bookingScreen.APPOINTMENT_DATE_LABEL);\n Log.info(\"Appointment date label visible\");\n waitForVisibility(bookingScreen.APPOINTMENT_DATE_FIELD);\n Log.info(\"Appointment date selection field visible\");\n }", "title": "" }, { "docid": "4aa420b9736808b3047b4b6b47407fdd", "score": "0.6160622", "text": "@Test\n\tpublic void tryToBookForWithWrongDateOrder() throws Exception {\n\t\tString bookingBody = \"{\\\"checkIn\\\":\\\"2017-08-07\\\",\\\"checkOut\\\":\\\"2017-08-05\\\",\\\"roomId\\\":\\\"6\\\"}\";\n\t\tRequestBuilder bookIt = MockMvcRequestBuilders.post(\"/booking/client/\" + CLIENT_ID).contentType(MediaType.APPLICATION_JSON).content(bookingBody);\n\t\tmockMvc.perform(bookIt).andDo(print()).andExpect(status().isBadRequest()).andReturn();\n\t}", "title": "" }, { "docid": "19e02040bb78536d52aac7ee578ec502", "score": "0.61511004", "text": "@Test\n\tvoid test2() {\n\t\tString randomID = \"a382f032\";\n\t\tboolean cancelBooking = CancelBooking.cancelBooking(randomID);\n\t\tassertEquals(false, cancelBooking);\n\t}", "title": "" }, { "docid": "f8516e9fdd4fd1bef669596127c99c71", "score": "0.6149976", "text": "private void handleCheckBooking()\r\n {\r\n checkTime(); \r\n checkDate();\r\n isValidID();\r\n if (timeChecked && dateCheck && idCheck) {\r\n okButton.setEnabled(true);\r\n txtOut.setText(\"Valid Booking parameters\");\r\n book = true;\r\n }\r\n else {\r\n okButton.setEnabled(false);\r\n txtOut.setText(\"Parameters changed\");\r\n JOptionPane.showMessageDialog(dialog, \"Parameters changed\");\r\n book = false;\r\n }\r\n }", "title": "" }, { "docid": "84b99f41b2a9a4216e1743930b7dd51c", "score": "0.6108425", "text": "@Test void initializingBookingInstance(){\r\n\t\t\tBooking newBooking = new Booking(bookDate,bookStart,bookEnd,myCustomer,myBus,myEmp,null);\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "783678478d8b26c5c6ff4a3246e0de4e", "score": "0.6086124", "text": "@Test\n\tvoid testReservation_success() throws Exception {\n\t\tdrain_queues();\n\n\t\tlong starting_balance = 9999L;\n\t\tlong transaction_amount = -4444L;\n\t\tlong expected_balance = starting_balance + transaction_amount;\n\n\t\t// - setup --------------------\n\t\tAccount account = randomAccount(true);\n\t\tOverdraftInstruction overdraft = randomOverdraft(account.getAccountNumber(), true, true);\n\t\tkafkaProducerDao.produceAccount(account);\n\t\tkafkaProducerDao.produceOverdraft(overdraft);\n\t\tresetBalance(account.getAccountNumber(), starting_balance);\n\n\t\t// - prepare --------------------\n\t\tReservationRequest reservationRequest = setupRequest(account, transaction_amount);\n\t\tTraceableMessage<PostingRequest> traceable = setupTraceable(new PostingRequest(reservationRequest));\n\n\t\t// - execute ------------------\n\t\tkafkaProducerDao.produceRequestMessage(traceable);\n\t\tResponseMessage<PostingRequest, PostingResponse> response = responseExchangeQueue.take();\n\n\t\t// - verify ------------------\n\t\tassertNotNull(response);\n\t\tverifyTraceableMessage(traceable, response);\n\t\tassertNotNull(response.getMessageCompletionTime());\n\t\tassertEquals(ResponseMessage.SUCCESS, response.getStatus());\n\t\tassertNull(response.getErrorMessage());\n\n\t\tassertNotNull(response.getRequest());\n\t\tassertNotNull(response.getRequest().getReservationRequest());\n\t\tverifyRequest(reservationRequest, response.getRequest().getReservationRequest());\n\n\t\tassertNotNull(response.getResponse());\n\n\t\tassertEquals(1, response.getResponse().getTransactions().size());\n\n\t\tLoggedTransaction transaction = response.getResponse().getTransactions().get(0);\n\t\tassertEquals(reservationRequest.getAccountNumber(), transaction.getAccountNumber());\n\t\tassertNull(reservationRequest.getDebitCardNumber(), transaction.getDebitCardNumber());\n\t\tassertEquals(reservationRequest.getRequestUuid(), transaction.getRequestUuid());\n\t\tassertNull(transaction.getReservationUuid());\n\t\tassertEquals(expected_balance, transaction.getRunningBalanceAmount());\n\t\tassertEquals(transaction_amount, transaction.getTransactionAmount());\n\t\tassertEquals(reservationRequest.getJsonMetaData(), transaction.getTransactionMetaDataJson());\n\t\tassertNotNull(transaction.getTransactionTime());\n\t\tassertEquals(LoggedTransaction.RESERVATION, transaction.getTransactionTypeCode());\n\t\tassertNotNull(transaction.getTransactionUuid());\n\n\t\tTraceableMessage<LoggedTransaction> tracedTransaction = loggedTransactionExchangeQueue.take();\n\t\tverifyTraceableMessage(traceable, tracedTransaction);\n\t\tverifyTransactions(transaction, tracedTransaction.getPayload());\n\t\t\n\t\ttransactionProcessorExchangeQueue.take();\n\t\treservationByUuidExchangeQueue.take();\n\t}", "title": "" }, { "docid": "34cc8d4be098caebad2a1a77908ca699", "score": "0.608079", "text": "@Test\n void viewBooking() throws BookingNotFoundException {\n assertEquals(booking, flightBookingService.viewBooking(BigInteger.valueOf(455488)));\n }", "title": "" }, { "docid": "47c4668fed9d622f56ee24ab6f7c2c8e", "score": "0.6080252", "text": "@Test\n public void testCheckAvailability() {\n assertTrue(accountBook.checkAvailability(initialBalance - 20));\n assertFalse(accountBook.checkAvailability(initialBalance + 20));\n }", "title": "" }, { "docid": "64cee6279162975eba67aecc1398e03e", "score": "0.60782444", "text": "@Ignore\n\t@Test\n\tpublic void testCreateInValidBooking() throws Exception {\n\t\t HttpURLConnection connection = RestClientHandler.connectServer(URLs.BOOKING, HTTPMethod.POST, HTTPRequestsContentTypes.JSON);\n\t // 2. Prepare Json Object\n\t\t String resquestJSONObject= JSONUtils.readJSONObjectFromFile(FilesPaths.NewBookingMissReqJSONFile);\n\t\t System.out.print(resquestJSONObject);\n\t // 3. Post Request\n\t\t RestClientHandler.sendPost(connection, resquestJSONObject, HTTPRequestsContentTypes.JSON);\n\t\t // 4. validation connection response code \n\t\t assertTrue(\"unable to connect to webservice\", connection.getResponseCode() == 500);\n\t\t}", "title": "" }, { "docid": "2e9599a1a826cfb2e1fe74d4e73de087", "score": "0.6067253", "text": "@Test\n void cancelBooking() throws BookingNotFoundException {\n flightBookingService.addBooking(booking);\n assertEquals(booking, flightBookingService.cancelBooking(BigInteger.valueOf(455488)));\n }", "title": "" }, { "docid": "a55e39242d11628a2845bb0293bb6628", "score": "0.6063375", "text": "@Test\n void checkOutBook() {\n library.addPhysicalBook(book);\n library.addUser(student);\n library.checkOutBook(student, book);\n assertTrue(book.isOnLoan());\n library.returnBook(book, false, \"\");\n assertFalse(book.isOnLoan());\n }", "title": "" }, { "docid": "c848f8e9e624cbaa5802c565f4a260e9", "score": "0.60590184", "text": "@Test\n public void whenUpdatingBookingToUnavailableDate_shouldFail() {\n LocalDate unAvailableArrivalDate = LocalDate.now().plusDays(35);\n LocalDate unAvailableDepartureDate = LocalDate.now().plusDays(36);\n CreateBookingRequestBody request =\n new CreateBookingRequestBody(\n \"test name\", \"test@mail.com\", unAvailableArrivalDate, unAvailableDepartureDate);\n this.bookingService.create(request);\n\n CreateBookingRequestBody secondRequest =\n new CreateBookingRequestBody(\n \"other name\",\n \"other@mail.com\",\n LocalDate.now().plusDays(37),\n LocalDate.now().plusDays(38));\n\n Long id = this.bookingService.create(secondRequest);\n\n UpdateBookingRequestBody updateRequest =\n new UpdateBookingRequestBody(\n null, null, LocalDate.now().plusDays(36), LocalDate.now().plusDays(38));\n\n assertThrows(\n UnavailableBookingDateException.class, () -> this.bookingService.update(id, updateRequest));\n }", "title": "" }, { "docid": "47911c6593c73cec59d7d5012bf655a3", "score": "0.60439956", "text": "@Test\n void testCookingDisasterTask() {\n when(scenario.waitsAtEventBasedGateway(\"IsItReady\")).thenReturn(gateway -> {\n System.out.println(\"Do Nothing to simulate a timeout\");\n });\n\n //this will trigger the BPMN Flow to invoke the cooking process\n Scenario handler = Scenario.run(scenario).startByKey(\"CookMasalaVeggiesNoodles\", variables).execute();\n\n // check the final output if it has all the values\n assertThat(handler.instance(scenario)).variables().containsEntry(Constants.DID_WE_EAT_NOODLES, false);\n\n // check the order of the desired steps in the success flow\n verify(scenario, times(1)).hasFinished(\"Start_Process\"); // process start\n verify(scenario, atMostOnce()).hasCompleted(\"CanWeCook\"); // exclusive gateway\n verify(scenario, atMostOnce()).hasCompleted(\"LetsCook\"); // cooking service step\n verify(scenario, atMostOnce()).hasCompleted(\"IsItReady\"); // check for the event\n verify(scenario, never()).hasStarted(\"LetUsEat\"); // All did not go well so call to eat service fails\n verify(scenario, atMostOnce()).hasCompleted(\"OrderOnline\"); // as it failed eat outside\n verify(scenario, times(1)).hasFinished(\"End_Process\"); // end event\n\n }", "title": "" }, { "docid": "ffc8871a8e5928580fb11936b099ff29", "score": "0.6042382", "text": "@SuppressWarnings(\"unchecked\")\n public void testPartialIssuance() throws Exception {\n String productionRunId = createProductionRunProdCost(\"Production Run for Partial Issuance Testing\", 2);\n InventoryAsserts inventoryAsserts = new InventoryAsserts(this, facilityId, organizationPartyId, demowarehouse1);\n FinancialAsserts financialAsserts = new FinancialAsserts(this, organizationPartyId, demofinadmin);\n \n pause(\"isolate the transaction that we will get after this point\");\n \n // note the time so we can easily find the transaction\n Timestamp start = UtilDateTime.nowTimestamp();\n \n // note the initial inventory quantity and values\n Map originalProdCostInventory = inventoryAsserts.getInventory(\"PROD_COST\");\n Map initInvValues = FastMap.newInstance();\n initInvValues.put(\"MAT_A_COST\", inventoryAsserts.getInventoryValueForProduct(\"MAT_A_COST\", start));\n initInvValues.put(\"MAT_B_COST\", inventoryAsserts.getInventoryValueForProduct(\"MAT_B_COST\", start));\n initInvValues.put(\"PROD_COST\", inventoryAsserts.getInventoryValueForProduct(\"PROD_COST\", start));\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // note the initial balances\n Map initialBalances = financialAsserts.getFinancialBalances(start);\n \n // get the one and only task and start it\n String taskId = startOnlyTask(productionRunId);\n \n // issue 3 of the 4 MAT_A_COST products\n Map input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", taskId);\n input.put(\"productId\", \"MAT_A_COST\");\n input.put(\"quantity\", new BigDecimal(\"3.0\"));\n runAndAssertServiceSuccess(\"issueProductionRunTaskComponent\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // verify it was issued properly by checking the WEGS (reduced by 3 to 1)\n List wegsList = delegator.findByAnd(\"WorkEffortGoodStandard\", UtilMisc.toMap(\"workEffortId\", taskId, \"productId\", \"MAT_A_COST\", \"workEffortGoodStdTypeId\", \"PRUNT_PROD_NEEDED\"));\n assertTrue(wegsList.size() == 1);\n GenericValue wegs = EntityUtil.getFirst(wegsList);\n assertEquals(\"Partial issuance failed when issuing 3 MAT_A_COST out of 4.\", wegs.getDouble(\"estimatedQuantity\").doubleValue(), 1.0);\n \n // issue remainder\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", taskId);\n input.put(\"productId\", \"MAT_A_COST\");\n input.put(\"quantity\", new BigDecimal(\"1.0\"));\n runAndAssertServiceSuccess(\"issueProductionRunTaskComponent\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", taskId);\n input.put(\"productId\", \"MAT_B_COST\");\n input.put(\"quantity\", new BigDecimal(\"6.0\"));\n runAndAssertServiceSuccess(\"issueProductionRunTaskComponent\", input);\n \n // make sure both WEGS are completed\n wegsList = delegator.findByAnd(\"WorkEffortGoodStandard\", UtilMisc.toMap(\"workEffortId\", taskId, \"productId\", \"MAT_A_COST\", \"workEffortGoodStdTypeId\", \"PRUNT_PROD_NEEDED\"));\n assertTrue(wegsList.size() == 1);\n wegs = EntityUtil.getFirst(wegsList);\n assertEquals(\"Partial issuance failed: MAT_A_COST WorkEffortGoodStandard was not marked completed.\", wegs.getString(\"statusId\"), \"WEGS_COMPLETED\");\n \n wegsList = delegator.findByAnd(\"WorkEffortGoodStandard\", UtilMisc.toMap(\"workEffortId\", taskId, \"productId\", \"MAT_B_COST\", \"workEffortGoodStdTypeId\", \"PRUNT_PROD_NEEDED\"));\n assertTrue(wegsList.size() == 1);\n wegs = EntityUtil.getFirst(wegsList);\n assertEquals(\"Partial issuance failed: MAT_B_COST WorkEffortGoodStandard was not marked completed.\", wegs.getString(\"statusId\"), \"WEGS_COMPLETED\");\n \n // finish off the production run (see previous test for what's going on here)\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"changeProductionRunTaskStatus\", input);\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", productionRunId);\n Map results = runAndAssertServiceSuccess(\"productionRunProduce\", input);\n List<String> inventoryItemIds = (List<String>) results.get(\"inventoryItemIds\");\n \n // get the transactions since starting\n Set<String> transactions = getAcctgTransSinceDate(EntityCondition.makeCondition(\"acctgTransTypeId\", EntityOperator.EQUALS, \"MANUFACTURING_ATX\"), start, delegator);\n assertNotEmpty(\"Production run transaction not created.\", transactions);\n \n // assert transaction equivalence with the reference transaction\n assertTransactionEquivalence(transactions, UtilMisc.toList(\"MFGTEST-1\", \"MFGTEST-2\", \"MFGTEST-3\"));\n \n // make sure the PROD_COST inventory went up by 2\n inventoryAsserts.assertInventoryChange(\"PROD_COST\", new BigDecimal(\"2.0\"), originalProdCostInventory);\n \n // make sure the ledger and inventory item costs are the same for all products involved\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // make sure every inventory item produced has the right unit cost\n for (String inventoryItemId : inventoryItemIds) {\n inventoryAsserts.assertInventoryItemUnitCost(inventoryItemId, new BigDecimal(\"164.00\"), \"USD\");\n }\n \n // verify the expected cost change\n Map finalInvValues = FastMap.newInstance();\n finalInvValues.put(\"MAT_A_COST\", inventoryAsserts.getInventoryValueForProduct(\"MAT_A_COST\", UtilDateTime.nowTimestamp()));\n finalInvValues.put(\"MAT_B_COST\", inventoryAsserts.getInventoryValueForProduct(\"MAT_B_COST\", UtilDateTime.nowTimestamp()));\n finalInvValues.put(\"PROD_COST\", inventoryAsserts.getInventoryValueForProduct(\"PROD_COST\", UtilDateTime.nowTimestamp()));\n Map expectedInvValues = UtilMisc.toMap(\"MAT_A_COST\", \"-36\", \"MAT_B_COST\", \"-42\", \"PROD_COST\", \"328\");\n assertMapDifferenceCorrect(initInvValues, finalInvValues, expectedInvValues);\n \n // verify that the difference in balances work out\n Map finalBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n Map expectedBalanceChanges = UtilMisc.toMap(\"INVENTORY_ACCOUNT\", \"328\", \"RAWMAT_INVENTORY\", \"-78\", \"MFG_EXPENSE_INTERNAL\", \"-250\");\n expectedBalanceChanges = UtilFinancial.replaceGlAccountTypeWithGlAccountForOrg(organizationPartyId, expectedBalanceChanges, delegator);\n assertMapDifferenceCorrect(initialBalances, finalBalances, expectedBalanceChanges);\n }", "title": "" }, { "docid": "7c5458072c019087e7cc0ea2011e7cea", "score": "0.6031514", "text": "@Test(priority = 1)\r\n\tpublic void verifyAnEventDate() throws InterruptedException, Exception {\r\n\t\t// Login as employee\r\n\t\tTimesheetLandingPage timesheetLandingPageEmployee = employeeLogin(R.TESTDATA.get(\"employeeLogin.militaryIdTwo\"),\r\n\t\t\t\tR.TESTDATA.get(\"employeeLogin.password\"));\r\n\t\tAssert.assertTrue(timesheetLandingPageEmployee.isPageOpened(),\r\n\t\t\t\t\"Login is not successfull for the employee ' : \" + R.TESTDATA.get(\"employeeLogin.militaryIdTwo\")\r\n\t\t\t\t\t\t+ \"'. The required landing page is not opened on login.\");\r\n\t\tboolean isFilterApplied;\r\n\t\tTimeSheetDetailsCalenderBox timeSheetDetailsCalenderBox = timesheetLandingPageEmployee\r\n\t\t\t\t.getTimeSheetDetailsCalenderBox();\r\n\r\n\t\tTimeSheetDetailsGridBox timeSheetDetailsGridBox = timesheetLandingPageEmployee.getTimeSheetDetailsGridBox();\r\n\r\n\t\ttimesheetLandingPageEmployee.toggleToCalender();\r\n\r\n\t\t// Select the year and month of the required event\r\n\t\tint yearToBeSelected = timesheetLandingPageEmployee.getTimeSheetDetailsCalenderBox()\r\n\t\t\t\t.formatDateAndGetYear(R.TESTDATA.get(\"selectDate.eventDate\"));\r\n\r\n\t\tString monthToBeselected = timesheetLandingPageEmployee.getTimeSheetDetailsCalenderBox()\r\n\t\t\t\t.formatDateAndGetMonth(R.TESTDATA.get(\"selectDate.eventDate\"));\r\n\r\n\t\ttimeSheetDetailsCalenderBox.selectTheRequiredYearInCalenderView(yearToBeSelected);\r\n\r\n\t\ttimeSheetDetailsCalenderBox.selectTheRequiredMonthInCalenderView(monthToBeselected);\r\n\r\n\t\t// Verify the colour\r\n\t\tString backGroundColourOfEvent = timeSheetDetailsCalenderBox\r\n\t\t\t\t.verifyHolidayEvent(R.TESTDATA.get(\"verifyHolidayEvent.event\"));\r\n\r\n\t\tAssert.assertTrue(backGroundColourOfEvent.equals(R.TESTDATA.get(\"verifyHolidayEvent.color\")),\r\n\t\t\t\t\"The color of the holiday event is not as expected.\");\r\n\r\n\t\t// Verify the date is disabled in edit pop up from calender view\r\n\r\n\t\tisFilterApplied = timesheetLandingPageEmployee\r\n\t\t\t\t.applyFilterWithRequiredStatus(R.TESTDATA.get(\"selectFilter.pending\"));\r\n\t\tAssert.assertTrue(isFilterApplied, \"The required filter :\" + R.TESTDATA.get(\"selectFilter.pending\")\r\n\t\t\t\t+ \" is not available in the filter options list.\");\r\n\r\n\t\tEmployeeTaskDetailsMenuBox employeeTaskDetailsMenuBox = timeSheetDetailsCalenderBox\r\n\t\t\t\t.clickTheFirstTimeSheetEntry();\r\n\t\tEmployeeEditTimeSheetBox employeeEditTimeSheetBox = employeeTaskDetailsMenuBox.clickEditButton();\r\n\r\n\t\tDatePickerForEditingTimeSheet DatePickerForEditingTimeSheet = employeeEditTimeSheetBox.clickDateField();\r\n\r\n\t\tboolean IsDateEnabledInEditPopUpFromCalenderView = DatePickerForEditingTimeSheet\r\n\t\t\t\t.verifyTheRequiredDateIsEnabledOrNot(R.TESTDATA.get(\"verifyDate.requiredYear\"),\r\n\t\t\t\t\t\tR.TESTDATA.get(\"verifyDate.requiredMonth\"), R.TESTDATA.get(\"verifyDate.requiredDay\"));\r\n\t\tAssert.assertFalse(IsDateEnabledInEditPopUpFromCalenderView,\r\n\t\t\t\t\"The event with AllowTask Field False is selectable in edit timesheet pop up from calender view.\");\r\n\r\n\t\t// Verify the date is disabled in edit pop up from grid view\r\n\r\n\t\ttimesheetLandingPageEmployee.refresh();\r\n\r\n\t\tisFilterApplied = timesheetLandingPageEmployee\r\n\t\t\t\t.applyFilterWithRequiredStatus(R.TESTDATA.get(\"selectFilter.pending\"));\r\n\t\tAssert.assertTrue(isFilterApplied, \"The required filter :\" + R.TESTDATA.get(\"selectFilter.pending\")\r\n\t\t\t\t+ \" is not available in the filter options list.\");\r\n\r\n\t\ttimeSheetDetailsGridBox.expandTheTaskDetails();\r\n\r\n\t\t// Edit the date, time, id and description\r\n\t\tEmployeeEditTimeSheetBox employeeEditTimeSheetBoxForGrid = timeSheetDetailsGridBox.clickEditTaskButton();\r\n\r\n\t\tDatePickerForEditingTimeSheet datePickerForGrid = employeeEditTimeSheetBoxForGrid.clickDateField();\r\n\r\n\t\tboolean IsDateEnabledInEditPopUpFromGridView = datePickerForGrid.verifyTheRequiredDateIsEnabledOrNot(\r\n\t\t\t\tR.TESTDATA.get(\"verifyDate.requiredYear\"), R.TESTDATA.get(\"verifyDate.requiredMonth\"),\r\n\t\t\t\tR.TESTDATA.get(\"verifyDate.requiredDay\"));\r\n\t\tAssert.assertFalse(IsDateEnabledInEditPopUpFromGridView,\r\n\t\t\t\t\"The event with AllowTask Field False is selectable in edit timesheet pop up from grid view.\");\r\n\r\n\t\ttimesheetLandingPageEmployee.refresh();\r\n\r\n\t\tAddNewTimeSheetBox addNewTimeSheetBox = timesheetLandingPageEmployee.clickAddNewTimeSheetButton();\r\n\t\tDatePickerForAddingTimesheet datePickerForAddingTimesheet = addNewTimeSheetBox.clickTaskDateField();\r\n\r\n\t\tboolean IsDateEnabledInAddPopUp = datePickerForAddingTimesheet.verifyTheRequiredDateIsEnabledOrNot(\r\n\t\t\t\tR.TESTDATA.get(\"verifyDate.requiredYear\"), R.TESTDATA.get(\"verifyDate.requiredMonth\"),\r\n\t\t\t\tR.TESTDATA.get(\"verifyDate.requiredDay\"));\r\n\r\n\t\tAssert.assertFalse(IsDateEnabledInAddPopUp,\r\n\t\t\t\t\"The event with AllowTask Field False is selectable in add timesheet pop up\");\r\n\r\n\t}", "title": "" }, { "docid": "2717e3114c68c1e9a471cbb055cd8a6c", "score": "0.6004756", "text": "@Test\n @Transactional\n public void checkBookingReferenceNumberIsRequired() throws Exception {\n assertThat(customerBookingRepository.findAll()).hasSize(0);\n // set the field null\n customerBooking.setBookingReferenceNumber(null);\n\n // Create the CustomerBooking, which fails.\n restCustomerBookingMockMvc.perform(post(\"/api/customerBookings\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(customerBooking)))\n .andExpect(status().isBadRequest());\n\n // Validate the database is still empty\n List<CustomerBooking> customerBookings = customerBookingRepository.findAll();\n assertThat(customerBookings).hasSize(0);\n }", "title": "" }, { "docid": "7c8b7f2bf5724d0eea5bee91025cbfd8", "score": "0.599138", "text": "@Test\n\tpublic void listBookingTest2() throws BookingException{\n\t\tassertThrows(BookingException.class,()->{\n\t\t\tbookingService.viewBookings(32432434);\n\t\t});\n\t}", "title": "" }, { "docid": "8df9dce44cadae138fa73e4f593e3b53", "score": "0.59876937", "text": "public void verifySubmit() {\n Log.logBanner(\"Approve result page is opened--Verifying Approve is Submitted \");\n Log.altVerify(true, waitForExistence(stMsg()),\n \"Is this Approval result Page\");\n Log.altVerify(true, stMsg().isVisible(), \"Request is submitted\");\n }", "title": "" }, { "docid": "18b946af8990def008b93f21e8eaa544", "score": "0.5965251", "text": "@When(\"^the user is able to book a cruise$\")\n\tpublic void the_user_is_able_to_book_a_cruise() throws Throwable {\n\t\ttry {\n\t\t\tWebElement selectDate = CommonVariables.CommonDriver.get().findElement(bookCruise.selectDate(date));\n\t\t\tactionLib.Click(selectDate, 10, \"selecting date\");\n\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.btnAdults), 10,\n\t\t\t\t\t\"selecting adults\");\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.btnChildrens), 10,\n\t\t\t\t\t\"selecting childrens\");\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.selectFromIcon), 10,\n\t\t\t\t\t\"click Icon\");\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.departureFrom(from)), 10,\n\t\t\t\t\t\"click departure from\");\n\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.destination(to)), 10,\n\t\t\t\t\t\"click destination\");\n\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.btnBookYourTrip), 10,\n\t\t\t\t\t\"click on book your trip\");\n\t\t\tString mainwindow = CommonVariables.CommonDriver.get().getWindowHandle();\n\t\t\tactionLib.switchToLatestWindow(CommonVariables.CommonDriver.get());\n\t\t\tactionLib.WaitForElementVisible(bookCruise.btnVechiclle, 100000, \"clickk on vechicle\");\n\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.btnVechiclle), 10,\n\t\t\t\t\t\"click on vechicle\");\n\t\t\tactionLib.WaitForElementVisible(bookCruise.vechicleIcon, 100000, \"clickk on vechicle\");\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.vechicleIcon), 10,\n\t\t\t\t\t\"click on vechicle Icon\");\n\t\t\tactionLib.WaitForElementVisible(bookCruise.selectCar, 100000, \"clickk on vechicle\");\n\t\t\tList<WebElement> noOfVehicle = CommonVariables.CommonDriver.get().findElements(bookCruise.selectCar);\n\t\t\tfor (int i = 1; i <= noOfVehicle.size(); i++) {\n\t\t\t\tif (!noOfVehicle.get(i).getText().contains(\"SOLD OUT\")) {\n\t\t\t\t\tactionLib.Click(noOfVehicle.get(i), 10, \"Vehicle is Selected\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.clickPlusIcon), 30,\n\t\t\t\t\t\"click on car Icon\");\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.clickPlusIcon), 30,\n\t\t\t\t\t\"click on car Icon\");\n\t\t\tactionLib.Click(CommonVariables.CommonDriver.get().findElement(bookCruise.btnBookTrip), 30,\n\t\t\t\t\t\"click on btnBookTrip\");\n\n\t\t} catch (Exception e) {\n\t\t\ttestCaseFailureReason = \"Failed to complete - \" + \"the user is able to book a cruise\";\n\t\t\tString stackTrace = extentLogs.getStackTraceAsString(\"Test\", testCaseFailureReason, e);\n\t\t\textentLogs.fail(scenarioName, testCaseFailureReason + \"Failed Reason : \" + stackTrace);\n\t\t\ttestCaseStatus = false;\n\t\t}\n\t}", "title": "" }, { "docid": "78e7ca2ea19429e26b08406d82f41649", "score": "0.59590083", "text": "@Test @Parameters(\"client\")\r\n\tpublic void EP_CareProvidersLinksValidation(String employer) throws Exception {\r\n\r\n\t\tString methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\r\n\t\tSystem.out.println(\"Inside - \" + methodName);\r\n\r\n//\t\t// Read test data for based on client 1\r\n//\t\treadTestData(getDataTablePath(\"EP\"), \"TD_EP2\");\r\n//\r\n//\t\t// Launch Employee Portal\r\n//\t\tUtility.launchBrowser(getTestData(\"TD_EP_URL\"));\r\n//\r\n//\t\t// Create an In-home reservation\r\n//\t\tbusinessComponents.EP_InHomeReservation(2, getTestData(\"TD_Dateofreservation2\"));\r\n\t\t\r\n\t\tthis.loginEPPortal(employer); \r\n\t\t\r\n\t\t//Click 'Reservations' link from top navigation menu\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"OL_10\"));\t\t\r\n\t\t\r\n\t\t//Verify the text present on the next page\r\n\t\tCOMMON_METHODS.VerifyTextPresent(getTestObject(\"OL_10\"), \"Reservations\");\r\n\t\t\r\n\t\t// Click on \"View\" link on a reservation (Either Confirm or In Progress)\r\n\t\tCOMMON_METHODS.listBoxSelect(getTestObject(\"Resevation_type\"), \"In Progress\", \"byVisibleText\");\r\n\t\tThread.sleep(10000);\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Resrv_view\"));\r\n\t\t\r\n\t\t//Ensure the system takes you to the reservation review i.e Reservations Details Page\r\n\t\tString str = COMMON_METHODS.getText(getTestObject(\"Help_pg\"));\r\n\t\tSystem.out.println(str);\r\n\t\tif(str.contains(\"RESERVATION:\")){\r\n\t\t\tREPORTER.LogEvent(TestStatus.PASS, \"Verify Reservations Details Page is displayed.\", \"Reservations Details Page is displayed.\", \"\");\r\n\t\t}else{\r\n\t\t\tREPORTER.LogEvent(TestStatus.FAIL, \"Verify Reservations Details Page is displayed.\", \"Reservations Details Page Not displayed.\", \"\");\r\n\t\t}\r\n\t\t\r\n\t\t//Ensure Care Providers links function as desired -- Click the link and closes the pop ups & moves to next link\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Care_Providers1\"));\r\n\t\tThread.sleep(5000);\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Close_Btn\"));\r\n\t\t\r\n\t\t//Ensure Care Providers2 links function as desired -- Click the link and closes the pop ups & moves to next link\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Care_Providers2\"));\r\n\t\tThread.sleep(5000);\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Close_Btn\"));\r\n\t\t\r\n\t\t//Ensure Care Providers3 links function as desired -- Click the link and closes the pop ups & moves to next link\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Care_Providers3\"));\r\n\t\tThread.sleep(5000);\r\n\t\tCOMMON_METHODS.clickElement(getTestObject(\"Close_Btn\"));\r\n\t\t\r\n//\t\t// Logout from Application\t\r\n//\t\tUtility.logout();\r\n\t\t\r\n\t\t//Log to reports\r\n\t\tCOMMON_METHODS.logToReportAfterPass(methodName);\r\n\t}", "title": "" }, { "docid": "f7433cee5404bfd40ea4873e24545f97", "score": "0.59551823", "text": "@Test\n public void VerfiyPlacingOrder() throws InterruptedException {\n\n\t// 1.Click Sign in\n\tHome = new HomePage(driver.get());\n\tHome.ClickLogin();\n\t// 2. Enter Email and Create Account\n\tAuth = new AuthenticationPage(driver.get());\n\tAuth.CreateaccountSendEmail(UserRegestrationData.getEmail());\n\tAuth.ClickCreateAccount();\n\n\t// 3. Fill Registration Form\n\tCreatAccount = new CreateAccountPage(driver.get());\n\tCreatAccount.FillRegestrationForm();\n\t// 4. Navigate to Blouses\n\tHome.HoverOverWomenMenue();\n\tHome.SelectBlouses();\n\t// 5. Add First item To card\n\tBlouses = new BlousesPage(driver.get());\n\tBlouses.HoverOverProductContainer();\n\tBlouses.ClickAddToCard();\n\tBlouses.ClickProceedToCheckOut();\n\t// 6. Proceed to checkout\n\tShopping = new ShoppingCardPage(driver.get());\n\tShopping.CardProceedToCheckOutButton();\n\tShopping.AddProceedToCheckOutButton();\n\tShopping.ClickAgreeOnTerm();\n\tShopping.ShippingProceedToCheckOutButton();\n\t// 7. Confirm order by selecting bank wire option\n\tShopping.SelectBankWire();\n\tShopping.ClickConfirmPayment();\n\tRefrenceCode = Shopping.GetRefrenceCode();\n\t// 8. Validate order was placed from order history page.\n\tMyaccount = new MyAccountPage(driver.get());\n\tHome.ViewMyAccount();\n\tMyaccount.ClickOrderHistory();\n\tOrderHistory = new OrderHistoryPage(driver.get());\n\tAssert.assertTrue(OrderHistory.GetOrderRefrenceList().contains(RefrenceCode));\n\n }", "title": "" }, { "docid": "a7e48d0e8dfee56f33a90f990105a5e7", "score": "0.5949384", "text": "@Test(testName = \"testLoanPrequalificationForm\")\n public void testLoanPrequalificationForm() {\n LandingPage landingPage = new LandingPage(driver);\n landingPage.open(BASE_URL);\n landingPage.goToLoanPurposePage(2000, \"Large Purchase\");\n\n String email = StringRandomGenerator.generateEmail();\n String password = StringRandomGenerator.provideValidPassword(10);\n\n ContactPage contactPage = new ContactPage(driver);\n contactPage\n .enterFirstName(\"Alex\")\n .enterLastName(\"Smith\")\n .enterHomeAddress(\"2227 Clement Street\")\n .enterCityName(\"San Francisco\")\n .enterState(\"CA\")\n .enterZipCode(94121)\n .enterDateOfBirth(\"12/11/1983\")\n .clickContinue();\n\n IncomePage incomePage = new IncomePage(driver);\n incomePage.goToCredentialsPage(150000, 6000);\n\n CredentialsPage credentialsPage = new CredentialsPage(driver);\n credentialsPage.checkYourRate(email, password);\n\n OfferPage offerPage = new OfferPage(driver);\n OfferDto initialOffer = offerPage.getOfferDetails();\n\n offerPage.logOut();\n\n landingPage.open(LOGIN_URL);\n\n LoginPage loginPage = new LoginPage(driver);\n loginPage.signIn(email, password);\n\n OfferDto confirmedOffer = offerPage.reFatchOfferDetails();\n Assert.assertEquals(initialOffer, confirmedOffer, \"Initial and final offers do not match\");\n }", "title": "" }, { "docid": "00a36242180a6944712d9ddb354fc2c5", "score": "0.59329575", "text": "@Test\n void isExactlySameBooking() {\n assertTrue(BOOKING1.isExactlySameBooking(BOOKING1));\n\n // different venue -> returns false\n assertFalse(BOOKING1.isExactlySameBooking(BOOKING2));\n }", "title": "" }, { "docid": "586c14b4b0f13479ec6605faee5b69d8", "score": "0.5927001", "text": "@Test(dataProvider = \"userProvider\")\n\tpublic void createBookingTest(JSONObject user) {\n\t\tResponse res = mod.createBooking(user.get(\"firstname\").toString(), user.get(\"lastname\").toString(),\n\t\t\t\tInteger.valueOf(user.get(\"totalprice\").toString()), Boolean.valueOf(user.get(\"depositpaid\").toString()),\n\t\t\t\tuser.get(\"checkin\").toString(), user.get(\"checkout\").toString(),\n\t\t\t\tuser.get(\"additionalneeds\").toString());\n\t\tAssert.assertEquals(res.getStatusCode(), 200, \" The API status code does not match expected\");\n\t\tListners.getReporter().log(Status.PASS, \"API returned correct status code\" + res.getStatusCode());\n\t\tlog.debug(\"API returned correct status code\" + res.getStatusCode());\n\t\tint bookingID = res.path(\"bookingid\");\n\t\tlog.debug(\"new user created with booking id \" + bookingID);\n\t\tListners.getReporter().log(Status.PASS, \"new user created with booking id \" + bookingID);\n\t}", "title": "" }, { "docid": "26dff13a7a85095fb9b513a11adec0cc", "score": "0.5926166", "text": "@SuppressWarnings(\"unchecked\")\n public void testRevertingProductionRunAfterPartialTask() throws GeneralException {\n \n FinancialAsserts financialAsserts = new FinancialAsserts(this, organizationPartyId, demofinadmin);\n String rawmatInventory = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"RAWMAT_INVENTORY\", delegator);\n String wipInventory = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"WIP_INVENTORY\", delegator);\n String mfgExpenseInternal = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"MFG_EXPENSE_INTERNAL\", delegator);\n String mfgExpenseRevprun = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"MFG_EXPENSE_REVPRUN\", delegator);\n \n InventoryAsserts inventoryAsserts = new InventoryAsserts(this, facilityId, organizationPartyId, demowarehouse1);\n \n \n // set up original inventory values and average costs\n List<String> productIds = createProductBOMAndRoutingSimilarToGzManufactured(\"To be Revert after part issue of the first task, should success\");\n Map[] origInventory = new Map[productIds.size()];\n Map initInvValues = null;\n Timestamp start = null;\n int i = 0;\n \n BigDecimal[] initAvgCost = new BigDecimal[productIds.size()];\n Map expectedInvValues = makeProductIdValueMap(productIds, \"0\");\n \n /**\n * 5. Create a production run for GZ-MANUFACTURED, issue part of the first task, then revert it. Verify PRUN_REVERTED.\n */\n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances before start of production run\n Map initialBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n String productionRunId = createProductionRunSimilarToGzManufacturedAndConfirm(\"To be Revert after part issue of the first task, should success\", 3, productIds);\n String finishedProductId = productIds.get(0); // the first product ID in the list is that of the finished product\n Map input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n \n // get the two tasks\n List<GenericValue> tasks = delegator.findByAnd(\"WorkEffort\", UtilMisc.toMap(\"workEffortParentId\", productionRunId, \"workEffortTypeId\", \"PROD_ORDER_TASK\"), UtilMisc.toList(\"+workEffortId\"));\n assertNotEmpty(\"Production run created for [\" + finishedProductId + \"] has no routing tasks. Cannot finish test.\", tasks);\n assertEquals(\"Template for [\" + finishedProductId + \"] has two tasks.\", tasks.size(), 2);\n \n GenericValue task1 = EntityUtil.getFirst(tasks);\n String taskId = task1.getString(\"workEffortId\");\n \n // note the time so we can easily find the transaction\n start = UtilDateTime.nowTimestamp();\n \n // note the initial inventory quantities\n for (i = 0; i < productIds.size(); i++) {\n origInventory[i] = inventoryAsserts.getInventory(productIds.get(i));\n }\n \n // note the initial inventory values\n initInvValues = FastMap.newInstance();\n for (i = 0; i < productIds.size(); i++) {\n initInvValues.put(productIds.get(i), inventoryAsserts.getInventoryValueForProduct(productIds.get(i), start));\n }\n \n // get the average costs of all the products\n for (i = 0; i < productIds.size(); i++) {\n initAvgCost[i] = UtilCOGS.getProductAverageCost(productIds.get(i), organizationPartyId, demowarehouse1, delegator, dispatcher);\n }\n \n // start the task\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"changeProductionRunTaskStatus\", input);\n \n // issue part of the inventory required\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", taskId);\n input.put(\"productId\", productIds.get(1));\n input.put(\"quantity\", new BigDecimal(\"2.0\"));\n runAndAssertServiceSuccess(\"issueProductionRunTaskComponent\", input);\n \n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances before production run is reverted\n Map beforeRevertBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // verify that change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_INTERNAL) = 0\n List initialList = UtilMisc.toList(initialBalances.get(wipInventory), initialBalances.get(rawmatInventory), initialBalances.get(mfgExpenseInternal));\n List beforeRevertList = UtilMisc.toList(beforeRevertBalances.get(wipInventory), beforeRevertBalances.get(rawmatInventory), beforeRevertBalances.get(mfgExpenseInternal));\n assertDifferenceCorrect(\"change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_INTERNAL)\", initialList, beforeRevertList, BigDecimal.ZERO);\n \n // Revert the production run\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n runAndAssertServiceSuccess(\"revertProductionRunAndSaveAllParts\", input);\n GenericValue productionRun = delegator.findByPrimaryKey(\"WorkEffort\", UtilMisc.toMap(\"workEffortId\", productionRunId));\n assertEquals(\"Production Run [\" + productionRunId + \"] has wrong status.\", \"PRUN_REVERTED\", productionRun.getString(\"currentStatusId\"));\n // verify that the first task is completed but the second task is cancelled\n tasks = delegator.findByAnd(\"WorkEffort\", UtilMisc.toMap(\"workEffortParentId\", productionRunId, \"workEffortTypeId\", \"PROD_ORDER_TASK\"), UtilMisc.toList(\"+workEffortId\"));\n task1 = tasks.get(0);\n taskId = task1.getString(\"workEffortId\");\n assertEquals(\"Production Run [\" + productionRunId + \"] task [\" + taskId + \"] has wrong status.\", \"PRUN_REVERTED\", task1.getString(\"currentStatusId\"));\n GenericValue task2 = tasks.get(1);\n taskId = task2.getString(\"workEffortId\");\n assertEquals(\"Production Run [\" + productionRunId + \"] task [\" + taskId + \"] has wrong status.\", \"PRUN_CANCELLED\", task2.getString(\"currentStatusId\"));\n \n // make sure the inventory quantity changes are correct\n for (i = 0; i < productIds.size(); i++) {\n inventoryAsserts.assertInventoryChange(productIds.get(i), new BigDecimal(\"0.0\"), origInventory[i]);\n }\n \n // verify that the inventory value has not changed\n Map finalInvValues = FastMap.newInstance();\n for (i = 0; i < productIds.size(); i++) {\n finalInvValues.put(productIds.get(i), inventoryAsserts.getInventoryValueForProduct(productIds.get(i), UtilDateTime.nowTimestamp()));\n }\n assertMapDifferenceCorrect(initInvValues, finalInvValues, expectedInvValues);\n \n // verify all the average costs have not changed\n for (i = 0; i < productIds.size(); i++) {\n BigDecimal avgCost = UtilCOGS.getProductAverageCost(productIds.get(i), organizationPartyId, demowarehouse1, delegator, dispatcher);\n assertEquals(\"Production Run [\" + productionRunId + \"] for product [\" + productIds.get(i) + \"] get a modified average cost.\", initAvgCost[i], avgCost);\n }\n \n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances after production run is reverted\n Map finalBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // verify that from before start of production run to after the production run is reverted:\n // change(WIP_INVENTORY) = 0\n // change(RAWMAT_INVENTORY) = 0\n Map expectedBalanceChanges = UtilMisc.toMap(\"WIP_INVENTORY\", \"0\", \"RAWMAT_INVENTORY\", \"0\");\n expectedBalanceChanges = UtilFinancial.replaceGlAccountTypeWithGlAccountForOrg(organizationPartyId, expectedBalanceChanges, delegator);\n assertMapDifferenceCorrect(initialBalances, finalBalances, expectedBalanceChanges);\n \n // change(MFG_EXPENSE_INTERNAL) + change(MFG_EXPENSE_REVPRUN) = 0\n initialList = UtilMisc.toList(initialBalances.get(mfgExpenseInternal), initialBalances.get(mfgExpenseRevprun));\n List finalList = UtilMisc.toList(finalBalances.get(mfgExpenseInternal), finalBalances.get(mfgExpenseRevprun));\n assertDifferenceCorrect(\"change(MFG_EXPENSE_INTERNAL) + change(MFG_EXPENSE_REVPRUN)\", initialList, finalList, BigDecimal.ZERO);\n \n // verify that from before production run is reverted to after the production run is reverted:\n // change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_REVPRUN) = 0\n beforeRevertList = UtilMisc.toList(beforeRevertBalances.get(wipInventory), beforeRevertBalances.get(rawmatInventory), beforeRevertBalances.get(mfgExpenseInternal));\n finalList = UtilMisc.toList(finalBalances.get(wipInventory), finalBalances.get(rawmatInventory), finalBalances.get(mfgExpenseInternal));\n assertDifferenceCorrect(\"change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_REVPRUN)\", beforeRevertList, finalList, BigDecimal.ZERO);\n }", "title": "" }, { "docid": "62e461ccc96e437059365e0a953b0d1d", "score": "0.59213793", "text": "@Then(\"^Annual Leave request should be created$\")\n public void annualLeaveRequestShouldBeCreated() throws Throwable {\n Assert.assertTrue(\"Leave applied successfully !!!\",landingPage.isLeaveapplied());\n }", "title": "" }, { "docid": "aefd765560e8d367b832adee5e2662c4", "score": "0.59164757", "text": "@Test\n\tpublic void verifyCheckoutForm() {\n\t\t\n\t\tWebDriverWait wait = new WebDriverWait(driver, 60);\n\t\twait.until(ExpectedConditions.textToBePresentInElementLocated(\n\t\t\t\tBy.cssSelector(\".x-title-text.x-title-text-default-framed.x-title-item\"),\n\t\t\t\t\"Complete Check Out\"));\n\t\t\n\t\t/*\n\t\t * Input boxes will have dynamic ids but, has unique name attribute so\n\t\t * locating them using name is way to go \n\t\t **/\n\t\tdriver.findElement(By.name(\"firstName\")).sendKeys(\"TestFirst\");\n\t\tdriver.findElement(By.name(\"lastName\")).sendKeys(\"TestLast\");\n\t\tdriver.findElement(By.name(\"email\")).sendKeys(\"test@test.com\");\n\t\tdriver.findElement(By.name(\"phone\")).sendKeys(\"123-123-1234\");\n\t\tdriver.findElement(By.name(\"mailingStreet\")).sendKeys(\"Street Test Address\");\n\t\tdriver.findElement(By.name(\"mailingCity\")).clear();\n\t\tdriver.findElement(By.name(\"mailingCity\")).sendKeys(\"NewYork\");\n\n\t\t/*\n\t\t * This state drop down is not normal dropdown hence, first clicked on textbox of dropdown to get focus then,\n\t\t * clicked on down arrow using css class names which will show list of state name\n\t\t * then select state by locating li by its contain\n\t\t * same strategy applied for month dropdown \n\t\t */\n\t\t/* State in Mailing Address */\n\t\tdriver.findElement(By.name(\"mailingState\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[@class='x-form-trigger x-form-trigger-default x-form-arrow-trigger x-form-arrow-trigger-default x-form-trigger-focus']\")).click();\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\n\t\t//driver.findElement(By.xpath(\"//div[@class='x-boundlist-list-ct x-unselectable']/ul/li[contains(.,'Arizona')]\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[@class='x-boundlist x-boundlist-floating x-layer x-boundlist-default x-border-box']/div/ul/li[contains(.,'Arizona')]\")).click();\n\t\t\n\t\tdriver.findElement(By.name(\"mailingPostalCode\")).sendKeys(\"4007091234\");\n\t\ttry {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ----------------- Billing Address --------------*/\n\t\tdriver.findElement(By.xpath(\"//fieldset[3]/div/div/div/div/div/div/input\")).click();\n\t\ttry {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdriver.findElement(By.name(\"billingStreet\")).clear();\n\t\tdriver.findElement(By.name(\"billingCity\")).clear();\n\t\tdriver.findElement(By.name(\"billingCity\")).sendKeys(\"England\");\n\t\t\n\t\t/* State in Billing Address */\n\t\tdriver.findElement(By.name(\"billingState\")).click();\n\t\tdriver.findElement(\n\t\t\t\tBy.xpath(\"//div[@class='x-form-trigger x-form-trigger-default x-form-arrow-trigger x-form-arrow-trigger-default x-form-trigger-focus']\"))\n\t\t\t\t.click();\n\n\t\t//driver.findElement(By.xpath(\"//div[@class='x-boundlist-list-ct x-unselectable']/ul/li[contains(.,'Delaware')]\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[@class='x-boundlist x-boundlist-floating x-layer x-boundlist-default x-border-box x-boundlist-above']/div/ul/li[contains(.,'Delaware')]\")).click();\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(3000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdriver.findElement(By.name(\"billingPostalCode\")).sendKeys(\"4007091234\");\n\t\t\n\t\t/* ----------------- Billing Address --------------*/\n\t\tdriver.findElement(By.name(\"ccName\")).sendKeys(\"Test Name\");\n\t\tdriver.findElement(By.name(\"ccNumber\")).sendKeys(\"123456789123456\");\n\t\t\n\t\tdriver.findElement(By.name(\"ccExpireMonth\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[@class='x-form-trigger x-form-trigger-default x-form-arrow-trigger x-form-arrow-trigger-default x-form-trigger-focus']\")).click();\n\t\tdriver.findElement(By.xpath(\"//div[@class='x-boundlist-list-ct x-unselectable']/ul/li[contains(.,'May')]\")).click();\n\t\t\n\t\tdriver.findElement(By.name(\"ccExpireYear\")).sendKeys(\"2021\");\n\t\t\n\t\tdriver.findElement(By.linkText(\"Complete Purchase\")).click();\n\t\tdriver.findElement(By.linkText(\"Reset\")).click();\n\n\t}", "title": "" }, { "docid": "6c1db74020225a400b71fa2b783df5c3", "score": "0.5914566", "text": "@Test\r\n\tpublic void testShipmentTracking_NextDayAirSaver()\r\n\t{\r\n\t\tlogger.info(\"Testing Shipment Tracking for next Day Air saver with Status ORIGIN SCAN...\");\r\n\t\tString trackingNum = \"1Z12345E1392654435\";\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//0- Last Activity 1-All Activity\r\n\t\t\ttrackRequestDetails.getRequestOptions().add(\"1\");\r\n\t\t\ttrackRequestDetails.setTrackingNumber(trackingNum);\r\n\t\t\tcustomTrackingRequest.setTrackRequestDetails(trackRequestDetails);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Input tracking request is ::\" + customTrackingRequest);\r\n\t\t\tcustomTrackingResponse = manageTrackingResource.getTrackingDetails(customTrackingRequest);\r\n\t\t\t\r\n\t\t\tassertEquals(SUCCESS, customTrackingResponse.getResponseStatusDescription());\r\n\t\t\tassertEquals(NEXT_DAY_AIR_SAVER, customTrackingResponse.getShipment().get(0).getService().getDescription());\r\n\t\t\tassertEquals(ORIGIN_SCAN, customTrackingResponse.getShipment().get(0).get_package().\r\n\t\t\t\t\tget(0).getActivity().get(0).getStatus().getStatusType().getDescription());\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception occured while tracking..\"+e.getMessage());\r\n\t\t\tlogger.severe(\"Exception occured while tracking..\");\r\n\t\t\tassertEquals(FAILURE, FAILURE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f89a9b1c684807955ecb23d8b8aa727", "score": "0.5906174", "text": "@Test\n\tpublic void buyFlightUseCaseTest() {\n\t\t\n\t\tUserResource userResource = signUpStep();\n\t\t\n\t\t/*\n\t\t * User login\n\t\t */\n\t\t\n\t\tString token = loginStep(userResource);\n\t\t\n\t\t/*\n\t\t * User looks for interesting flights from Malpensa Airport to London Gatwich Airport on 13/05/2019 from 9:00 am\n\t\t */\n\t\t\n\t\tFlightResource[] availableFlights = flightsSearchStep();\n\t\t\n\t\t/*\n\t\t * User adds the flight with id 2 to cart\n\t\t */\n\t\t\n\t\taddFlightToCartStep(availableFlights[0].getFlightId(), userResource.getUsername(), token);\n\t\t\n\t\t/*\n\t\t * User looks at the flights in his cart\n\t\t */\n\t\t\n\t\tFlightReservationResource[] flightsInCart = getFlightsInCartStep(token);\n\t\t\n\t\t/*\n\t\t * User watches details of the flight in which he is interested in\n\t\t */\n\t\t\n\t\tFlightReservationResource selectedFlight = getFlightInCartStep(token, flightsInCart[0].getReservationId());\n\t\t\n\t\t/*\n\t\t * User buys the flight in cart with reservation id 5\n\t\t */\n\t\t\n\t\tbuyFlightStep(token, selectedFlight.getReservationId());\t\n\t}", "title": "" }, { "docid": "a7f303c68642a2e1519d577f10ebf36a", "score": "0.5905387", "text": "@Test\n\tpublic void new_reservation_made_correctly() {\n\t\t\n\t\tLocalDate startingDate = LocalDate.of(2020, 7, 7);\n\t\tLocalDate endingDate = LocalDate.of(2020, 8, 8);\n\t\tLocalDate createdDate = LocalDate.now();\n\n\t\tlong testResId = daoReservation.getNextReservationId();\n\t\t\n\t\tReservation theReservation = getReservation(testResId);\n\t\tdaoReservation.createReservation(theReservation);\n\t\t\n\t\tSite testSite = getSite(TEST_SITE);\n\t\tdaoSite.createSite(testSite);\n\n\t\tReservation actualReservation = daoReservation.makeReservation(\"Steve Miami\", startingDate, endingDate, testSite);\n\t\t\n\t\tassertNotNull(actualReservation);\n\t\tassertReservationsAreEqual(theReservation, actualReservation);\n\t\t\n\t}", "title": "" }, { "docid": "e20e34cfc57d02af2f9efccd48c9beeb", "score": "0.58938", "text": "@Test\n public void testGetPendingAlreadyAgreed() {\n final String filename=\"testLicenseAgreement_v3.zip\";\n TaskInfo taskInfo = initTaskInfoFromZip(filename);\n File licenseFile=getSourceFile(\"gp_server_license.txt\");\n GetEulaFromTaskStub stub = new GetEulaFromTaskStub();\n addLicenseFile(stub, taskInfo, licenseFile);\n \n final String userId=\"gp_user_three\";\n GpContext taskContext=GpContext.getContextForUser(userId);\n taskContext.setTaskInfo(taskInfo);\n eulaMgr.setGetEulaFromTask(stub);\n eulaMgr.setRecordEulaStrategy(recordEulaStub);\n eulaMgr.recordEula(taskContext);\n List<EulaInfo> eulas=eulaMgr.getPendingEulaForModule(taskContext);\n\n Assert.assertEquals(\"pendingEulaForModule.size should be 0 if the current user has already agreed\", 0, eulas.size());\n }", "title": "" }, { "docid": "806c83c706c0baa0d61a7035c8ff194e", "score": "0.58912563", "text": "public void sureButtonClickValidate() throws InterruptedException {\n\t\toffice365Object.CancelButton().click();\n\t\tThread.sleep(2000L);\n\t\tValidateCancelModalHeaderAssertion();\n\t\toffice365Object.ImSureButton().click();\n\t\tThread.sleep(2000L);\n\t\tvalidateManagePageAssertion();\n\t}", "title": "" }, { "docid": "47f175d10368059c665d46de5fb7f430", "score": "0.5880442", "text": "@Test(dataProvider = \"TestParams\")\n public void BasicSanity(String source, String dest, int daysAfter, boolean withStops) {\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n log.info(\"Started test ==== \" + methodName + \" ====\");\n\n WebDriver driver = openBrowser();\n driver.manage().window().maximize();\n driver.get(ConfigFileReader.getValue(\"url\"));\n log.info(\"URL IS: \" + ConfigFileReader.getValue(\"url\"));\n\n landingPage.enterOriginCity(driver, \"DEL\");\n landingPage.enterDestinationCity(driver, \"BLR\");\n landingPage.clickDateWidget(driver);\n landingPage.selectDate(driver, DateUtils.getDateAfterDateObject(daysAfter));\n landingPage.clickSearchButton(driver);\n SeleniumHelper.waitForProgressTracker(driver);\n AirlinesFilter.selectOnlyThisAirline(driver, Airline.SPICEJET);\n bookingPage.sortBy(driver, SortParam.DURATION, SortType.DESC);\n Flight flight = bookingPage.bookLongestDurationFlight(driver, withStops);\n\n if (flight == null) {\n Assert.assertFalse(true, \"Did not get any flights\");\n }\n\n BookingDetails bd =itr.buildBookingDetails(driver, flight);\n\n log.debug(bd.getPrice());\n log.debug(bd.getAirlineName());\n log.debug(bd.getSource());\n log.debug(bd.getDestination());\n log.debug(bd.getDuration());\n log.debug(bd.getDepartureTime());\n log.debug(bd.getArrivalTime());\n\n Assert.assertEquals(bd.getAirlineName(), Airline.SPICEJET.getAirlineTitle());\n Assert.assertEquals(bd.getSource(), source);\n Assert.assertEquals(bd.getDuration(), flight.getDuration());\n Assert.assertEquals(bd.getDepartureTime(), flight.getDepartureTime());\n Assert.assertEquals(bd.getArrivalTime(), flight.getArrivalTime());\n Assert.assertEquals(bd.getDestination(), dest);\n }", "title": "" }, { "docid": "8063ef5c559e341cf6b8b9c7262bb2f8", "score": "0.5868787", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\tbookingResponse = WebService.makeAppoinment(HOSPITAL_ID, doctor_id,\r\n\t\t\t\t\tuser_id, book_time, book_date);\r\n\t\t\tresponseHandler.sendEmptyMessage(BOOK_SUCESS);\r\n\t\t\tsuper.run();\r\n\t\t}", "title": "" }, { "docid": "9bf67b321ba79978836f90767bdb9294", "score": "0.58668107", "text": "@Test\n public void testIsNotAvailable3() {\n List<VehicleBookingInfo> list = new ArrayList();\n\n VehicleBookingInfo v1 = new VehicleBookingInfo();\n v1.setVehicleId(123);\n v1.setPickupDate(getDate(\"12/21/2018\"));\n v1.setReturnDate(getDate(\"12/28/2018\"));\n\n VehicleBookingInfo v2 = new VehicleBookingInfo();\n v2.setVehicleId(123);\n v2.setPickupDate(getDate(\"01/10/2019\"));\n v2.setReturnDate(getDate(\"01/15/2019\"));\n\n list.add(v1);\n list.add(v2);\n VehicleService vehicleService = new VehicleServiceImpl();\n boolean isAvailable = vehicleService.isAvailable(list, getDate(\"12/20/2018\"), getDate(\"01/16/2019\"));\n assertFalse(isAvailable);\n }", "title": "" }, { "docid": "a813f141ec751041a307f152708957d6", "score": "0.5864649", "text": "void verifyTripSummaryBeforeBooking(DataTable params);", "title": "" }, { "docid": "8dbc7fdc8da29943589db572e3965673", "score": "0.5834191", "text": "@Test\n @Tag(\"ui\")\n void showErrorMessageForInvalidForm(){\n //create a flight and add to an arraylist to populate table\n Flight myFlight = new Flight(\"FO001\", \"JetBlue\", \"India\",\"Uk\", \"2019-06-14\",\n \"10:00PM\",\"10:00PM\", \"50000\");\n\n ArrayList <Flight> theFlights = new ArrayList<>();\n theFlights.add(myFlight);\n\n Mockito.when(database.getNextTicketId()).thenReturn(\"\");\n Mockito.when(database.getCustomer(\"CS001\")).thenReturn(new Customer(\"CS001\", \"john\",\n \"Alex\", \"34232222\", \"3443\", \"Uk\", \"1996-06-01\",\n \"Male\", 34324234, null));\n //return the instance of the flight\n Mockito.when(database.searchFlightsBySourceAndDestination(\"India\",\"Uk\")).thenReturn\n (theFlights);\n\n //navigate to Book Ticket screen\n window.menuItem(\"TicketMenuItem\").click();\n window.menuItem(\"BookTicket\").click();\n\n //enter data to search box\n window.textBox(\"customerIDbox\").setText(\"CS001\");\n window.button(\"customerSearchBTN\").click();\n\n //flight details\n window.comboBox(\"flightDepart\").selectItem(2);\n window.button(\"searchFlightBTN\").click();\n window.table(\"searchResultTable\").selectRows(0).click();\n window.spinner(\"chooseNumSeats\").increment();\n window.button(\"bookTicketBTN\").click();\n\n window.dialog().optionPane().requireMessage(\"All fields have not been filled\");\n }", "title": "" }, { "docid": "3823f24e2f03613621f2dd2d2dd7936f", "score": "0.58311045", "text": "public static void bookingFound() {\n\t\tSystem.out.println(\"The reservation is found.\");\n\t}", "title": "" }, { "docid": "17f7a5d8f12683c3a3617b93afb3b173", "score": "0.5824233", "text": "@Test\r\n\tpublic void testShipmentTracking_2ndDayAir_Success()\r\n\t{\r\n\t\tlogger.info(\"Testing Shipment Tracking for 2nd Day Air with Status Delivered...\");\r\n\t\tString trackingNum = \"1Z12345E0291980793\";\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//0- Last Activity 1-All Activity\r\n\t\t\ttrackRequestDetails.getRequestOptions().add(\"1\");\r\n\t\t\ttrackRequestDetails.setTrackingNumber(trackingNum);\r\n\t\t\tcustomTrackingRequest.setTrackRequestDetails(trackRequestDetails);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Input tracking request is ::\" + customTrackingRequest);\r\n\t\t\tcustomTrackingResponse = manageTrackingResource.getTrackingDetails(customTrackingRequest);\r\n\t\t\t\r\n\t\t\tassertEquals(SUCCESS, customTrackingResponse.getResponseStatusDescription());\r\n\t\t\tassertEquals(SECONDDAYAIR, customTrackingResponse.getShipment().get(0).getService().getDescription());\r\n\t\t\tassertEquals(DELIVERED, customTrackingResponse.getShipment().get(0).get_package().\r\n\t\t\t\t\tget(0).getActivity().get(0).getStatus().getStatusType().getDescription());\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception occured while tracking..\"+e.getMessage());\r\n\t\t\tlogger.severe(\"Exception occured while tracking..\");\r\n\t\t\tassertEquals(FAILURE, FAILURE);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5894337daddb9cfd132cfe0c2e851d53", "score": "0.5823123", "text": "@SuppressWarnings(\"unchecked\")\n public void testRevertingProductionRunAfterSecondTask() throws GeneralException {\n FinancialAsserts financialAsserts = new FinancialAsserts(this, organizationPartyId, demofinadmin);\n String rawmatInventory = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"RAWMAT_INVENTORY\", delegator);\n String wipInventory = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"WIP_INVENTORY\", delegator);\n String mfgExpenseInternal = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"MFG_EXPENSE_INTERNAL\", delegator);\n String mfgExpenseRevprun = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"MFG_EXPENSE_REVPRUN\", delegator);\n \n InventoryAsserts inventoryAsserts = new InventoryAsserts(this, facilityId, organizationPartyId, demowarehouse1);\n \n // set up original inventory values and average costs\n List<String> productIds = createProductBOMAndRoutingSimilarToGzManufactured(\"To be Revert after issue all of the first and second task, should success\");\n String finishedProductId = productIds.get(0); // the first product ID in the list is that of the finished product\n \n Map[] origInventory = new Map[productIds.size()];\n Map initInvValues = null;\n Timestamp start = null;\n int i = 0;\n \n BigDecimal[] initAvgCost = new BigDecimal[productIds.size()];\n Map expectedInvValues = makeProductIdValueMap(productIds, \"0\");\n \n /**\n * 4. Create a production run for GZ-MANUFACTURED, issue the first and second task, then revert it. Verify PRUN_REVERTED.\n */\n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances before start of production run\n Map<String, Number> initialBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n String productionRunId = createProductionRunSimilarToGzManufacturedAndConfirm(\"To be Revert after issue all of the first and second task, should success\", 3, productIds);\n Map input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n \n // get the two tasks\n List<GenericValue> tasks = delegator.findByAnd(\"WorkEffort\", UtilMisc.toMap(\"workEffortParentId\", productionRunId, \"workEffortTypeId\", \"PROD_ORDER_TASK\"), UtilMisc.toList(\"+workEffortId\"));\n assertNotEmpty(\"Production run created for [\" + finishedProductId + \"] has no routing tasks. Cannot finish test.\", tasks);\n assertEquals(\"Template for [\" + finishedProductId + \"] has two tasks.\", tasks.size(), 2);\n \n // note the time so we can easily find the transaction\n start = UtilDateTime.nowTimestamp();\n \n // note the initial inventory quantities\n for (i = 0; i < productIds.size(); i++) {\n origInventory[i] = inventoryAsserts.getInventory(productIds.get(i));\n }\n \n // note the initial inventory values\n initInvValues = FastMap.newInstance();\n for (i = 0; i < productIds.size(); i++) {\n initInvValues.put(productIds.get(i), inventoryAsserts.getInventoryValueForProduct(productIds.get(i), start));\n }\n \n // get the average costs of all the products\n for (i = 0; i < productIds.size(); i++) {\n initAvgCost[i] = UtilCOGS.getProductAverageCost(productIds.get(i), organizationPartyId, demowarehouse1, delegator, dispatcher);\n }\n \n i = 0;\n for (GenericValue task : tasks) {\n String taskId = task.getString(\"workEffortId\");\n \n startTaskAndIssueInventory(productionRunId, taskId);\n \n // complete only the first task\n if (i == 0) {\n // complete the task, which should trigger production run completed\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"changeProductionRunTaskStatus\", input);\n }\n i++;\n }\n \n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances before production run is reverted\n Map beforeRevertBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // verify that change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_INTERNAL) = 0\n List initialList = UtilMisc.toList(initialBalances.get(wipInventory), initialBalances.get(rawmatInventory), initialBalances.get(mfgExpenseInternal));\n List beforeRevertList = UtilMisc.toList(beforeRevertBalances.get(wipInventory), beforeRevertBalances.get(rawmatInventory), beforeRevertBalances.get(mfgExpenseInternal));\n assertDifferenceCorrect(\"change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_INTERNAL)\", initialList, beforeRevertList, BigDecimal.ZERO);\n \n // Revert the production run\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n runAndAssertServiceSuccess(\"revertProductionRunAndSaveAllParts\", input);\n GenericValue productionRun = delegator.findByPrimaryKey(\"WorkEffort\", UtilMisc.toMap(\"workEffortId\", productionRunId));\n assertEquals(\"Production Run [\" + productionRunId + \"] has wrong status.\", \"PRUN_REVERTED\", productionRun.getString(\"currentStatusId\"));\n // verify that the first task is completed but the second task is cancelled\n tasks = delegator.findByAnd(\"WorkEffort\", UtilMisc.toMap(\"workEffortParentId\", productionRunId, \"workEffortTypeId\", \"PROD_ORDER_TASK\"), UtilMisc.toList(\"+workEffortId\"));\n GenericValue task1 = tasks.get(0);\n String taskId = task1.getString(\"workEffortId\");\n assertEquals(\"Production Run [\" + productionRunId + \"] task [\" + taskId + \"] has wrong status.\", \"PRUN_COMPLETED\", task1.getString(\"currentStatusId\"));\n GenericValue task2 = tasks.get(1);\n taskId = task2.getString(\"workEffortId\");\n assertEquals(\"Production Run [\" + productionRunId + \"] task [\" + taskId + \"] has wrong status.\", \"PRUN_REVERTED\", task2.getString(\"currentStatusId\"));\n \n // make sure the inventory quantity changes are correct\n for (i = 0; i < productIds.size(); i++) {\n inventoryAsserts.assertInventoryChange(productIds.get(i), new BigDecimal(\"0.0\"), origInventory[i]);\n }\n \n // verify the accounting values of inventory have not changed\n Map finalInvValues = FastMap.newInstance();\n for (i = 0; i < productIds.size(); i++) {\n finalInvValues.put(productIds.get(i), inventoryAsserts.getInventoryValueForProduct(productIds.get(i), UtilDateTime.nowTimestamp()));\n }\n assertMapDifferenceCorrect(initInvValues, finalInvValues, expectedInvValues);\n \n // verify all the average costs have not changed\n for (i = 0; i < productIds.size(); i++) {\n BigDecimal avgCost = UtilCOGS.getProductAverageCost(productIds.get(i), organizationPartyId, demowarehouse1, delegator, dispatcher);\n assertEquals(\"Production Run [\" + productionRunId + \"] for product [\" + productIds.get(i) + \"] get a modified average cost.\", initAvgCost[i], avgCost);\n }\n \n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances after production run is reverted\n Map finalBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // verify that from before start of production run to after the production run is reverted:\n // change(WIP_INVENTORY) = 0\n // change(RAWMAT_INVENTORY) = 0\n Map expectedBalanceChanges = UtilMisc.toMap(\"WIP_INVENTORY\", \"0\", \"RAWMAT_INVENTORY\", \"0\");\n expectedBalanceChanges = UtilFinancial.replaceGlAccountTypeWithGlAccountForOrg(organizationPartyId, expectedBalanceChanges, delegator);\n assertMapDifferenceCorrect(initialBalances, finalBalances, expectedBalanceChanges);\n \n // change(MFG_EXPENSE_INTERNAL) + change(MFG_EXPENSE_REVPRUN) = 0\n initialList = UtilMisc.toList(initialBalances.get(mfgExpenseInternal), initialBalances.get(mfgExpenseRevprun));\n List finalList = UtilMisc.toList(finalBalances.get(mfgExpenseInternal), finalBalances.get(mfgExpenseRevprun));\n assertDifferenceCorrect(\"change(MFG_EXPENSE_INTERNAL) + change(MFG_EXPENSE_REVPRUN)\", initialList, finalList, BigDecimal.ZERO);\n \n // verify that from before production run is reverted to after the production run is reverted:\n // change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_REVPRUN) = 0\n beforeRevertList = UtilMisc.toList(beforeRevertBalances.get(wipInventory), beforeRevertBalances.get(rawmatInventory), beforeRevertBalances.get(mfgExpenseInternal));\n finalList = UtilMisc.toList(finalBalances.get(wipInventory), finalBalances.get(rawmatInventory), finalBalances.get(mfgExpenseInternal));\n assertDifferenceCorrect(\"change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_REVPRUN)\", beforeRevertList, finalList, BigDecimal.ZERO);\n }", "title": "" }, { "docid": "994666a7f5b9b176fedc13aca725dc03", "score": "0.58203423", "text": "public void verifyBookAppointmentTitle() {\n waitForVisibility(bookingScreen.BOOKING_APPOINTMENT_SECTION);\n Log.info(\"Booking Appointment section visible\");\n }", "title": "" }, { "docid": "799dd7954bc78cc55c9bfe9cebb7215b", "score": "0.58174634", "text": "@SuppressWarnings(\"unchecked\")\n public void testRevertingProductionRunAfterFirstTask() throws GeneralException {\n FinancialAsserts financialAsserts = new FinancialAsserts(this, organizationPartyId, demofinadmin);\n String rawmatInventory = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"RAWMAT_INVENTORY\", delegator);\n String wipInventory = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"WIP_INVENTORY\", delegator);\n String mfgExpenseInternal = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"MFG_EXPENSE_INTERNAL\", delegator);\n String mfgExpenseRevprun = UtilFinancial.getOrgGlAccountId(organizationPartyId, \"MFG_EXPENSE_REVPRUN\", delegator);\n \n InventoryAsserts inventoryAsserts = new InventoryAsserts(this, facilityId, organizationPartyId, demowarehouse1);\n \n /**\n * 3. Create a production run for 3 x GZ-MANUFACTURED, start the first task, issue all, then revert it. Verify PRUN_REVERTED.\n */\n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances before start of production run\n Map<String, Number> initialBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // set up original inventory values and average costs\n List<String> productIds = createProductBOMAndRoutingSimilarToGzManufactured(\"To be Revert after issue all of the first task, should success\");\n Map[] origInventory = new Map[productIds.size()];\n Map initInvValues = null;\n Timestamp start = null;\n int i = 0;\n \n BigDecimal[] initAvgCost = new BigDecimal[productIds.size()];\n Map expectedInvValues = makeProductIdValueMap(productIds, \"0\");\n \n String productionRunId = createProductionRunSimilarToGzManufacturedAndConfirm(\"To be Revert after issue all of the first task, should success\", 3, productIds);\n Map input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n \n String finishedProductId = productIds.get(0); // the first product ID in the list is that of the finished product\n \n // get the two tasks\n List<GenericValue> tasks = delegator.findByAnd(\"WorkEffort\", UtilMisc.toMap(\"workEffortParentId\", productionRunId, \"workEffortTypeId\", \"PROD_ORDER_TASK\"), UtilMisc.toList(\"+workEffortId\"));\n assertNotEmpty(\"Production run created for [\" + finishedProductId + \"] has no routing tasks. Cannot finish test.\", tasks);\n assertEquals(\"Template for [\" + finishedProductId + \"] has two tasks.\", tasks.size(), 2);\n \n // note the time so we can easily find the transaction\n start = UtilDateTime.nowTimestamp();\n \n // note the initial inventory quantities\n for (i = 0; i < productIds.size(); i++) {\n origInventory[i] = inventoryAsserts.getInventory(productIds.get(i));\n }\n \n // note the initial inventory values\n initInvValues = FastMap.newInstance();\n for (i = 0; i < productIds.size(); i++) {\n initInvValues.put(productIds.get(i), inventoryAsserts.getInventoryValueForProduct(productIds.get(i), start));\n }\n \n // get the average costs of all the products\n for (i = 0; i < productIds.size(); i++) {\n initAvgCost[i] = UtilCOGS.getProductAverageCost(productIds.get(i), organizationPartyId, demowarehouse1, delegator, dispatcher);\n }\n \n GenericValue task1 = EntityUtil.getFirst(tasks);\n String taskId = task1.getString(\"workEffortId\");\n \n startTaskAndIssueInventory(productionRunId, taskId);\n \n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances before production run is reverted\n Map<String, Number> beforeRevertBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // verify that change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_INTERNAL) = 0\n List initialList = UtilMisc.toList(initialBalances.get(wipInventory), initialBalances.get(rawmatInventory), initialBalances.get(mfgExpenseInternal));\n List beforeRevertList = UtilMisc.toList(beforeRevertBalances.get(wipInventory), beforeRevertBalances.get(rawmatInventory), beforeRevertBalances.get(mfgExpenseInternal));\n assertDifferenceCorrect(\"change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_INTERNAL)\", initialList, beforeRevertList, BigDecimal.ZERO);\n \n // Revert the production run\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n runAndAssertServiceSuccess(\"revertProductionRunAndSaveAllParts\", input);\n \n // verify status of production run header is reverted\n GenericValue productionRun = delegator.findByPrimaryKey(\"WorkEffort\", UtilMisc.toMap(\"workEffortId\", productionRunId));\n assertEquals(\"Production Run [\" + productionRunId + \"] has wrong status.\", \"PRUN_REVERTED\", productionRun.getString(\"currentStatusId\"));\n // verify that the first task is completed but the second task is cancelled\n tasks = delegator.findByAnd(\"WorkEffort\", UtilMisc.toMap(\"workEffortParentId\", productionRunId, \"workEffortTypeId\", \"PROD_ORDER_TASK\"), UtilMisc.toList(\"+workEffortId\"));\n task1 = tasks.get(0);\n taskId = task1.getString(\"workEffortId\");\n assertEquals(\"Production Run [\" + productionRunId + \"] task [\" + taskId + \"] has wrong status.\", \"PRUN_REVERTED\", task1.getString(\"currentStatusId\"));\n GenericValue task2 = tasks.get(1);\n taskId = task2.getString(\"workEffortId\");\n assertEquals(\"Production Run [\" + productionRunId + \"] task [\" + taskId + \"] has wrong status.\", \"PRUN_CANCELLED\", task2.getString(\"currentStatusId\"));\n \n // make sure the inventory quantity changes are correct\n for (i = 0; i < productIds.size(); i++) {\n inventoryAsserts.assertInventoryChange(productIds.get(i), new BigDecimal(\"0.0\"), origInventory[i]);\n }\n \n // verify that inventory values have not changed\n Map<String, BigDecimal> finalInvValues = FastMap.newInstance();\n for (i = 0; i < productIds.size(); i++) {\n finalInvValues.put(productIds.get(i), inventoryAsserts.getInventoryValueForProduct(productIds.get(i), UtilDateTime.nowTimestamp()));\n }\n assertMapDifferenceCorrect(initInvValues, finalInvValues, expectedInvValues);\n \n // verify all the average costs have not changed\n for (i = 0; i < productIds.size(); i++) {\n BigDecimal avgCost = UtilCOGS.getProductAverageCost(productIds.get(i), organizationPartyId, demowarehouse1, delegator, dispatcher);\n assertEquals(\"Production Run [\" + productionRunId + \"] for product [\" + productIds.get(i) + \"] get a modified average cost.\", initAvgCost[i], avgCost);\n }\n \n // Get the RAWMAT_INVENTORY, WIP_INVENTORY, MFG_EXPENSE_INTERNAL, MFG_EXPENSE_REVPRUN gl account balances after production run is reverted\n Map<String, Number> finalBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // verify that from before start of production run to after the production run is reverted:\n // change(WIP_INVENTORY) = 0\n // change(RAWMAT_INVENTORY) = 0\n Map expectedBalanceChanges = UtilMisc.toMap(\"WIP_INVENTORY\", \"0\", \"RAWMAT_INVENTORY\", \"0\");\n expectedBalanceChanges = UtilFinancial.replaceGlAccountTypeWithGlAccountForOrg(organizationPartyId, expectedBalanceChanges, delegator);\n assertMapDifferenceCorrect(initialBalances, finalBalances, expectedBalanceChanges);\n \n // change(MFG_EXPENSE_INTERNAL) + change(MFG_EXPENSE_REVPRUN) = 0\n initialList = UtilMisc.toList(initialBalances.get(mfgExpenseInternal), initialBalances.get(mfgExpenseRevprun));\n List finalList = UtilMisc.toList(finalBalances.get(mfgExpenseInternal), finalBalances.get(mfgExpenseRevprun));\n assertDifferenceCorrect(\"change(MFG_EXPENSE_INTERNAL) + change(MFG_EXPENSE_REVPRUN)\", initialList, finalList, BigDecimal.ZERO);\n \n // verify that from before production run is reverted to after the production run is reverted:\n // change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_REVPRUN) = 0\n beforeRevertList = UtilMisc.toList(beforeRevertBalances.get(wipInventory), beforeRevertBalances.get(rawmatInventory), beforeRevertBalances.get(mfgExpenseInternal));\n finalList = UtilMisc.toList(finalBalances.get(wipInventory), finalBalances.get(rawmatInventory), finalBalances.get(mfgExpenseInternal));\n assertDifferenceCorrect(\"change(WIP_INVENTORY) + change(RAWMAT_INVENTORY) + change(MFG_EXPENSE_REVPRUN)\", beforeRevertList, finalList, BigDecimal.ZERO);\n }", "title": "" }, { "docid": "4193dc79ae6b34ccf75c5d643553913c", "score": "0.5811598", "text": "@Test\n public void testReturnCheckedOutBook() {\n lc.addBook(new Book(\"Charlotte's web\", \"DE. B. White\", 1954,3.7));\n lc.addBook(new Book(\"Harry Potter\", \"J. Rowling\", 1999,3.8));\n lc.addBook(new Book(\"Mrs Frisby and the rats of NIMH\", \"Robert O'Brien\", 1970,3.9));\n boolean flag = lc.checkoutBook(\"Harry Potter\");\n flag = lc.returnBook(\"Harry Potter\");\n assertTrue(\"returnBook was not able to return a book\", flag);\n }", "title": "" }, { "docid": "9708a2f2832e3dfcfea354aca8ed316a", "score": "0.58109546", "text": "@Test\n @Transactional\n public void checkBookingDateTimeIsRequired() throws Exception {\n assertThat(customerBookingRepository.findAll()).hasSize(0);\n // set the field null\n customerBooking.setBookingDateTime(null);\n\n // Create the CustomerBooking, which fails.\n restCustomerBookingMockMvc.perform(post(\"/api/customerBookings\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(customerBooking)))\n .andExpect(status().isBadRequest());\n\n // Validate the database is still empty\n List<CustomerBooking> customerBookings = customerBookingRepository.findAll();\n assertThat(customerBookings).hasSize(0);\n }", "title": "" }, { "docid": "8998a4360a8304cefa97d88ccd372011", "score": "0.58053184", "text": "@Test(priority = 0)\r\n\tpublic void verifyAddandEditTimesheetThroughDevops() throws InterruptedException {\r\n\r\n\t\t// Login to Devops\r\n\t\tDevOpsLoginPage devOpsLoginPage = new DevOpsLoginPage(getDriver());\r\n\t\tDevOpsLandingPage devOpsLandingPage = devOpsLoginPage.devopsEmployeeLogin();\r\n\r\n\t\tAssert.assertTrue(devOpsLandingPage.getProjectCard().isVisible(),\r\n\t\t\t\t\"Devops Login is not successfull for the user : \" + R.TESTDATA.get(\"devopsEmployeeLogin.userName\"));\r\n\r\n\t\tProjectCardBox projectCardBox = devOpsLandingPage.getProjectCardBox();\r\n\r\n\t\t// Select the project and navigate to taskboard\r\n\t\tboolean isProjectSelected = projectCardBox.selectTheRequiredProject(R.TESTDATA.get(\"selectProject.project\"));\r\n\t\tAssert.assertTrue(isProjectSelected, \"The required project : \" + R.TESTDATA.get(\"selectProject.project\")\r\n\t\t\t\t+ \" is not available for the logged in user.\");\r\n\t\tTaskBoardLandingPage taskBoardLandingPage = devOpsLandingPage.navigateToTaskBoard();\r\n\t\tWorkItemsBox workItemsBox = taskBoardLandingPage.getWorkItemsBox();\r\n\r\n\t\t// Add a new task\r\n\t\tworkItemsBox.clickAddWorkItemButton();\r\n\t\tworkItemsBox.selectWorkItem(R.TESTDATA.get(\"selectWorkItem.workItem\"));\r\n\r\n\t\tworkItemsBox.enterTaskTitle(R.TESTDATA.get(\"enterTaskTitle.taskTitle\"));\r\n\r\n\t\t// Open the task added and select the assignee and provide the estimates\r\n\t\tDevOpsTaskDetailsBox devOpsTaskDetailsBox = workItemsBox\r\n\t\t\t\t.selectTheRequiredTask(R.TESTDATA.get(\"enterTaskTitle.taskTitle\"));\r\n\r\n\t\tString idofTheTaskAdded = devOpsTaskDetailsBox.getTaskIdField().getText();\r\n\r\n\t\tdevOpsTaskDetailsBox.selectAssigneeForTheTask(R.TESTDATA.get(\"selectAssigneeForTheTask.assignee\"));\r\n\r\n\t\tdevOpsTaskDetailsBox.provideTheEstimates(R.TESTDATA.get(\"provideTheEstimates.originalEstimate\"),\r\n\t\t\t\tR.TESTDATA.get(\"provideTheEstimates.remainingEstimate\"), R.TESTDATA.get(\"\"));\r\n\r\n\t\tdevOpsTaskDetailsBox.clickSaveAndCloseButton();\r\n\r\n\t\t// Fetch the count of tasks assigned for the required user\r\n\t\tint countOfTasksAssignedInDeVops = workItemsBox.fetchTheCountOfTasksAssignedForTheEmployee(\r\n\t\t\t\tR.TESTDATA.get(\"applyFilterWithTheRequiredAssignee.assignee\"));\r\n\r\n\t\t// Login to HRMS\r\n\t\tTimesheetLandingPage timesheetLandingPage = employeeLogin(R.TESTDATA.get(\"employeeLogin.militaryIdTwo\"),\r\n\t\t\t\tR.TESTDATA.get(\"employeeLogin.password\"));\r\n\t\tTimeSheetDetailsGridBox timesheetDetailsGridBox = timesheetLandingPage.getTimeSheetDetailsGridBox();\r\n\r\n\t\tAssert.assertTrue(timesheetLandingPage.isPageOpened(), \"Login is not successfull for the employee ' : \"\r\n\t\t\t\t+ R.TESTDATA.get(\"employeeLogin.militaryId\") + \"'. The required landing page is not opened on login.\");\r\n\r\n\t\t// Verify PAT token is not required and open the devops task list from the add\r\n\t\t// timesheet popup\r\n\t\ttimesheetLandingPage.clickAddNewTimeSheetButton();\r\n\t\tDevopsTaskDetailsBox devopsTaskDetailsBox = timesheetLandingPage.getAddNewTimeSheetBox().clickDevOpsIcon();\r\n\t\tAssert.assertFalse(timesheetLandingPage.getPatTokenBox().getPatTokenField().isVisible(), \"The user : \"\r\n\t\t\t\t+ R.TESTDATA.get(\"employeeLogin.militaryIdTwo\")\r\n\t\t\t\t+ \" is required to enter the PAT Token. Either the existing token expired or there are no tasks assigned for the employee in DevOps.\");\r\n\t\tdevopsTaskDetailsBox.displayAllRows(\"All\");\r\n\r\n\t\t// Verify the count of tasks assigned for the employee in devops and the count\r\n\t\t// of tasks displayed in HRMS\r\n\t\tint countOfTasksDisplayed = devopsTaskDetailsBox.fetchCountOfTasksDisplayed();\r\n\t\tif (!(countOfTasksAssignedInDeVops == countOfTasksDisplayed)) {\r\n\t\t\tfail(\"The count of tasks displayed for the employee in devops and in HRMS do not match. Expected : \"\r\n\t\t\t\t\t+ countOfTasksAssignedInDeVops + \" Displayed : \" + countOfTasksDisplayed);\r\n\t\t}\r\n\r\n\t\t// Open the task added in the previous steps from the task list displayed for\r\n\t\t// the employee\r\n\t\tDevOpsAddTimeSheetBox devOpsAddTimeSheetBox = devopsTaskDetailsBox\r\n\t\t\t\t.selectTheRequiredTaskForAddingTimeSheet(idofTheTaskAdded);\r\n\r\n\t\t// Verify the fields Task Id, Task Title, Original Estimate, Completed Time and\r\n\t\t// Remaining Time is readonly\r\n\t\tAssert.assertTrue(\r\n\t\t\t\tdevOpsAddTimeSheetBox.getTaskIdField().getAttribute(R.TESTDATA.get(\"getAttribute.attribute\"))\r\n\t\t\t\t\t\t.equalsIgnoreCase(R.TESTDATA.get(\"getAttribute.value\")),\r\n\t\t\t\t\"The field Task Id is not read only in add timesheet through devops popup.\");\r\n\r\n\t\tAssert.assertTrue(\r\n\t\t\t\tdevOpsAddTimeSheetBox.getTaskTitle().getAttribute(R.TESTDATA.get(\"getAttribute.attribute\"))\r\n\t\t\t\t\t\t.equalsIgnoreCase(R.TESTDATA.get(\"getAttribute.value\")),\r\n\t\t\t\t\"The field Task Title is not read only in add timesheet through devops popup.\");\r\n\r\n\t\tAssert.assertTrue(\r\n\t\t\t\tdevOpsAddTimeSheetBox.getOriginalEstimate().getAttribute(R.TESTDATA.get(\"getAttribute.attribute\"))\r\n\t\t\t\t\t\t.equalsIgnoreCase(R.TESTDATA.get(\"getAttribute.value\")),\r\n\t\t\t\t\"The field Original Estimate is not read only in add timesheet through devops popup.\");\r\n\r\n\t\tAssert.assertTrue(\r\n\t\t\t\tdevOpsAddTimeSheetBox.getCompletedTime().getAttribute(R.TESTDATA.get(\"getAttribute.attribute\"))\r\n\t\t\t\t\t\t.equalsIgnoreCase(R.TESTDATA.get(\"getAttribute.value\")),\r\n\t\t\t\t\"The field Completed Time is not read only in add timesheet through devops popup.\");\r\n\r\n\t\tAssert.assertTrue(\r\n\t\t\t\tdevOpsAddTimeSheetBox.getRemainingTime().getAttribute(R.TESTDATA.get(\"getAttribute.attribute\"))\r\n\t\t\t\t\t\t.equalsIgnoreCase(R.TESTDATA.get(\"getAttribute.value\")),\r\n\t\t\t\t\"The field Remaining Time is not read only in add timesheet through devops popup.\");\r\n\r\n\t\t// Select the date and time and provide the description for the task and click\r\n\t\t// the save button\r\n\t\tDatePickerForAddingTimesheet datePickerForAddingTimesheet = devOpsAddTimeSheetBox.clicktaskDateField();\r\n\r\n\t\tdatePickerForAddingTimesheet.selectDate(R.TESTDATA.get(\"selectDate.requiredYearfordevops\"),\r\n\t\t\t\tR.TESTDATA.get(\"selectDate.requiredMonthfordevops\"), R.TESTDATA.get(\"selectDate.requiredDayfordevops\"));\r\n\r\n\t\tdevOpsAddTimeSheetBox.selectTime(R.TESTDATA.get(\"selectTime.requiredTimefordevops\"));\r\n\r\n\t\tdevOpsAddTimeSheetBox.enterTaskDescription(R.TESTDATA.get(\"enterTaskDescription.devopsDescription\"));\r\n\r\n\t\tdevOpsAddTimeSheetBox.clickSaveButton();\r\n\r\n\t\t// Verify the success alert on adding the task\r\n\t\tAssert.assertTrue(devOpsAddTimeSheetBox.getSuccessAlertOnAddingTimesheet().isVisible(),\r\n\t\t\t\t\"Success Alert is not displayed on adding a timesheet through devops.\");\r\n\r\n\t\tAssert.assertTrue(\r\n\t\t\t\tdevOpsAddTimeSheetBox.getSuccessAlertOnAddingTimesheet().getText()\r\n\t\t\t\t\t\t.equalsIgnoreCase(\"Timesheet saved successfully\"),\r\n\t\t\t\t\"The message displayed on the success alert on adding a timesheet through devops is not as expected. The message displayed is : \"\r\n\t\t\t\t\t\t+ devOpsAddTimeSheetBox.getSuccessAlertOnAddingTimesheet().getText());\r\n\r\n\t\ttimesheetLandingPage.refresh();\r\n\r\n\t\t// Select option \"All\" from pagination\r\n\t\ttimesheetDetailsGridBox.displayAllRows();\r\n\r\n\t\t// Expand the task details of the date for which the timesheet was added\r\n\t\ttimesheetDetailsGridBox.expandTimesheetOfRequiredDate(R.TESTDATA.get(\"selectDate.devOpsDate\"));\r\n\r\n\t\t// Selecting option \"All\" from pagination for task details\r\n\t\ttimesheetDetailsGridBox.displayAllRows();\r\n\r\n\t\t// Verfying the timesheet added is present and status is pending\r\n\t\tList<String> detailsFetched = timesheetDetailsGridBox.fetchTaskDetails();\r\n\t\tboolean isTimeSheetAdded = false;\r\n\t\tfor (String details : detailsFetched) {\r\n\t\t\tif (details.contains(idofTheTaskAdded)\r\n\t\t\t\t\t&& details.contains(R.TESTDATA.get(\"selectTime.requiredTimefordevops\"))\r\n\t\t\t\t\t&& details.contains(R.TESTDATA.get(\"enterTaskDescription.devopsDescription\"))) {\r\n\t\t\t\tisTimeSheetAdded = true;\r\n\t\t\t\tSystem.out.println(\"Timesheet has been added succesfully\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (isTimeSheetAdded == false) {\r\n\t\t\tfail(\"Timesheet added is not available in the task list of the employee.\");\r\n\t\t}\r\n\r\n\t\tWebElement statusOfAddedTimeSheet = timesheetDetailsGridBox\r\n\t\t\t\t.verifyStatusOfAddedTimesheet(R.TESTDATA.get(\"enterTaskDescription.devopsDescription\"));\r\n\r\n\t\tAssert.assertTrue(statusOfAddedTimeSheet.getText().equals(\"Pending\"),\r\n\t\t\t\t\"The status of the newly added timesheet is not Pending. The status displayed is :\"\r\n\t\t\t\t\t\t+ statusOfAddedTimeSheet.getText());\r\n\r\n\t\t// Verify the newly added timesheet is updated in the database\r\n\t\tDataBaseQueries dataBaseQueries = new DataBaseQueries(getDriver(), getDriver());\r\n\t\tList<String> taskDetailsListFromDB = dataBaseQueries.fetchTaskDetailsFromDataBase(\r\n\t\t\t\tR.DATABASE.get(\"db.connectionURL\"), R.TESTDATA.get(\"selectDate.dbDate\"),\r\n\t\t\t\tR.TESTDATA.get(\"employeeId.id\"));\r\n\t\tboolean isTaskUpdatedInDB = false;\r\n\t\tfor (String taskDetails : taskDetailsListFromDB) {\r\n\t\t\tSystem.out.println(taskDetails);\r\n\t\t\tif (taskDetails.contains(idofTheTaskAdded)\r\n\t\t\t\t\t&& taskDetails.contains(R.TESTDATA.get(\"enterTaskDescription.devopsDescription\"))\r\n\t\t\t\t\t&& taskDetails.contains(R.TESTDATA.get(\"selectTime.requiredTimefordevops\"))) {\r\n\t\t\t\tisTaskUpdatedInDB = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isTaskUpdatedInDB == false) {\r\n\t\t\tfail(\"The task details of the timesheet added is not properly updated in the DataBase.\");\r\n\t\t}\r\n\r\n\t\t// Login to HRMS again to verify editing the task added above\r\n\r\n\t\tTimesheetLandingPage timesheetLandingpage = employeeLogin(R.TESTDATA.get(\"employeeLogin.militaryIdTwo\"),\r\n\t\t\t\tR.TESTDATA.get(\"employeeLogin.password\"));\r\n\r\n\t\t// Select option \"All\" from pagination\r\n\t\ttimesheetDetailsGridBox.displayAllRows();\r\n\r\n\t\t// Expand the task details of the date for which the timesheet was added\r\n\t\ttimesheetDetailsGridBox.expandTimesheetOfRequiredDate(R.TESTDATA.get(\"selectDate.devOpsDate\"));\r\n\r\n\t\t// Selecting option \"All\" from pagination for task details\r\n\t\ttimesheetDetailsGridBox.displayAllRows();\r\n\r\n\t\tint countOfTasksBeforeEditing = timesheetDetailsGridBox.fetchTheCountOfTasksForTheDate();\r\n\r\n\t\tEmployeeEditTimeSheetBox employeeEditTimeSheetBox = timesheetDetailsGridBox\r\n\t\t\t\t.clickEditButtonOfRequiredTask(idofTheTaskAdded);\r\n\t\tAssert.assertTrue(employeeEditTimeSheetBox.getDevopsButton().isVisible(),\r\n\t\t\t\t\"DevOps button is not available for the task.\");\r\n\r\n\t\tDevopsTaskDetailsBox devopsTaskDetailsbox = employeeEditTimeSheetBox.clickDevOpsButton();\r\n\t\tdevopsTaskDetailsbox.displayAllRows(\"All\");\r\n\r\n\t\tDevOpsEditTimeSheetBox devOpsEditTimeSheetBox = devopsTaskDetailsBox\r\n\t\t\t\t.selectTheRequiredTaskForEditingTimeSheet(idofTheTaskAdded);\r\n\r\n\t\tDatePickerForEditingTimeSheet datePickerForEditingTimeSheet = devOpsEditTimeSheetBox.clickDateField();\r\n\r\n\t\tdatePickerForEditingTimeSheet.selectDate(R.TESTDATA.get(\"selectDate.editedYear\"),\r\n\t\t\t\tR.TESTDATA.get(\"selectDate.editedMonth\"), R.TESTDATA.get(\"selectDate.editedDay\"));\r\n\r\n\t\tdevOpsEditTimeSheetBox.editTimeField(R.TESTDATA.get(\"selectTime.editedTime\"));\r\n\t\tdevOpsEditTimeSheetBox.editTaskDescription(R.TESTDATA.get(\"enterTaskDescription.editeddevopsDescription\"));\r\n\t\tdevOpsEditTimeSheetBox.clickUpdateButton();\r\n\t\ttimesheetLandingpage.refresh();\r\n\r\n\t\ttimesheetDetailsGridBox\r\n\t\t\t\t.expandTimesheetOfRequiredDate(R.TESTDATA.get(\"expandTimesheetOfRequiredDate.editedDate\"));\r\n\r\n\t\ttimesheetDetailsGridBox.displayAllRows();\r\n\r\n\t\t// Verfying the timesheet added is present and status is pending\r\n\t\tList<String> detailsFetchedAfterEditingTimesheet = timesheetDetailsGridBox.fetchTaskDetails();\r\n\t\tboolean isTimeSheetEdited = false;\r\n\t\tfor (String details : detailsFetchedAfterEditingTimesheet) {\r\n\t\t\tif (details.contains(idofTheTaskAdded) && details.contains(R.TESTDATA.get(\"selectTime.editedTime\"))\r\n\t\t\t\t\t&& details.contains(R.TESTDATA.get(\"enterTaskDescription.editeddevopsDescription\"))) {\r\n\t\t\t\tisTimeSheetEdited = true;\r\n\t\t\t\tSystem.out.println(\"Timesheet has been edited succesfully\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (isTimeSheetEdited == false) {\r\n\t\t\tfail(\"Timesheet edit was not successfull. The edited data is not displayed in the task details for the date :\"\r\n\t\t\t\t\t+ R.TESTDATA.get(\"expandTimesheetOfRequiredDate.editedDate\"));\r\n\t\t}\r\n\r\n\t\ttimesheetLandingpage.refresh();\r\n\t\ttimesheetDetailsGridBox.displayAllRows();\r\n\r\n\t\tif (countOfTasksBeforeEditing == 1) {\r\n\t\t\tList<ExtendedWebElement> dateList = timesheetDetailsGridBox.getTaskDateList();\r\n\t\t\tfor (ExtendedWebElement date : dateList) {\r\n\t\t\t\tif (date.getText().equals(R.TESTDATA.get(\"selectDate.devOpsDate\"))) {\r\n\t\t\t\t\tfail(\"The edited task is still available in the previous date.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse if (countOfTasksBeforeEditing > 1) {\r\n\t\t\ttimesheetDetailsGridBox.expandTimesheetOfRequiredDate(R.TESTDATA.get(\"selectDate.devOpsDate\"));\r\n\r\n\t\t\tList<String> detailsFetchedAfterEditing = timesheetDetailsGridBox.fetchTaskDetails();\r\n\t\t\tfor (String details : detailsFetchedAfterEditing) {\r\n\t\t\t\tif (details.contains(idofTheTaskAdded) && details.contains(R.TESTDATA.get(\"selectTime.editedTime\"))\r\n\t\t\t\t\t\t&& details.contains(R.TESTDATA.get(\"enterTaskDescription.editeddevopsDescription\"))) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Timesheet edit is not successfull. The details are still displayed in the old date.\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tList<String> taskDetailsListFromDBAfterEditing = dataBaseQueries.fetchTaskDetailsFromDataBase(\r\n\t\t\t\tR.DATABASE.get(\"db.connectionURL\"), R.TESTDATA.get(\"editDate.dbDate\"), R.TESTDATA.get(\"employeeId.id\"));\r\n\t\tboolean isEditedTaskUpdatedInDB = false;\r\n\t\tfor (String taskDetails : taskDetailsListFromDBAfterEditing) {\r\n\t\t\tSystem.out.println(taskDetails);\r\n\t\t\tif (taskDetails.contains(idofTheTaskAdded)\r\n\t\t\t\t\t&& taskDetails.contains(R.TESTDATA.get(\"enterTaskDescription.editeddevopsDescription\"))\r\n\t\t\t\t\t&& taskDetails.contains(R.TESTDATA.get(\"selectTime.editedTime\"))) {\r\n\t\t\t\tisEditedTaskUpdatedInDB = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isEditedTaskUpdatedInDB == false) {\r\n\t\t\tfail(\"The task details of the timesheet edited is not properly updated in the DataBase.\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "2b5bc359240aac7ef695c078e2eb4362", "score": "0.580506", "text": "public boolean bookTry(Booking booking) {\n if (rulesMatch(booking) && isAvailable(booking)) {\n book(booking);\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e223fa5eebae5901ae3ad2b71847fab2", "score": "0.57985705", "text": "@Override\n\tpublic boolean approveBooking(String bookingID, String tripID) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2aed87d06ecef2075297fe0a099b6ce1", "score": "0.5790771", "text": "@Then(\"^I am taken to the checkout page$\")\n\tpublic void i_am_taken_to_the_checkout_page() throws Throwable {\n\t\ttarg = driver.findElement(By.xpath(\"//*[@id=\\\"wsb-element-00000000-0000-0000-0000-000451990420\\\"]/div/pre/strong/span\"));\n assertEquals(\"Enter your billing information\", targ.getText());\n System.out.println(\"Checkout reached\");\n\n\t}", "title": "" }, { "docid": "2368eaec4df4aad4df7938c9107f1abc", "score": "0.57839894", "text": "@Test\r\n public void testPrescriptions () throws ParseException {\r\n\r\n if ( Patient.getPatient( \"patient\" ) == null ) {\r\n final PatientForm form = new PatientForm();\r\n form.setFirstName( \"patient\" );\r\n form.setPreferredName( \"patient\" );\r\n form.setLastName( \"mcpatientface\" );\r\n form.setEmail( \"bademail@ncsu.edu\" );\r\n form.setAddress1( \"Some town\" );\r\n form.setAddress2( \"Somewhere\" );\r\n form.setCity( \"placecity\" );\r\n form.setState( State.AL.getName() );\r\n form.setZip( \"27606\" );\r\n form.setPhone( \"111-111-1111\" );\r\n form.setDateOfBirth( \"01/01/1901\" );\r\n form.setDateOfDeath( \"01/01/2001\" );\r\n form.setCauseOfDeath( \"Hit by a truck\" );\r\n form.setBloodType( BloodType.ABPos.getName() );\r\n form.setEthnicity( Ethnicity.Asian.getName() );\r\n form.setGender( Gender.Male.getName() );\r\n form.setSelf( \"patient\" );\r\n\r\n final Patient tp = new Patient( form );\r\n tp.save();\r\n }\r\n\r\n final OfficeVisitForm visit = new OfficeVisitForm();\r\n visit.setDate( \"4/16/2048\" );\r\n visit.setTime( \"9:50 AM\" );\r\n visit.setHcp( \"hcp\" );\r\n visit.setPatient( \"AliceThirteen\" );\r\n visit.setNotes( \"Test office visit\" );\r\n visit.setType( AppointmentType.GENERAL_CHECKUP.toString() );\r\n visit.setHospital( \"General Hospital\" );\r\n visit.setDiastolic( 10 );\r\n visit.setSystolic( 10 );\r\n visit.setHouseSmokingStatus( HouseholdSmokingStatus.INDOOR );\r\n visit.setPatientSmokingStatus( PatientSmokingStatus.CURRENT_BUT_UNKNOWN );\r\n visit.setHdl( 40 );\r\n visit.setLdl( 150 );\r\n visit.setTri( 150 );\r\n visit.setHeight( new Float( 10.1 ) );\r\n visit.setWeight( new Float( 10.1 ) );\r\n\r\n /* Create the Office Visit */\r\n final OfficeVisit ov = new OfficeVisit( visit );\r\n ov.save();\r\n\r\n final NDCCode c = new NDCCode( createCodeForm( \"1111-1111-11\", \"Oxicodon\" ) );\r\n c.save();\r\n\r\n final NDCCode persistedC = NDCCode.getByCode( \"1111-1111-11\" );\r\n assertEquals( \"1111-1111-11\", persistedC.getId() );\r\n assertEquals( \"Oxicodon\", persistedC.getName() );\r\n\r\n final Long ovId = OfficeVisit.getForPatient( \"AliceThirteen\" ).get( 0 ).getId();\r\n\r\n final Prescription p = new Prescription( createPrescriptionForm( \"10.1\", \"10/19/2017\", \"10/31/2017\",\r\n \"1111-1111-11\", \"AliceThirteen\", \"20\", ovId + \"\" ) );\r\n p.save();\r\n final Long pid = p.getId();\r\n\r\n final Prescription persistedP = Prescription.getById( pid );\r\n assertEquals( \"10.1\", persistedP.getDosage() + \"\" );\r\n assertEquals( \"1111-1111-11\", persistedP.getNdcCode().getId() );\r\n assertEquals( \"AliceThirteen\", persistedP.getPatient().getSelf().getId() );\r\n assertEquals( \"20\", persistedP.getRenewals() + \"\" );\r\n assertEquals( ovId, persistedP.getOfficeVisit().getId() );\r\n\r\n // Create prescription with non-matching patient and office-visit\r\n try {\r\n new Prescription( createPrescriptionForm( \"10.1\", \"10/19/2017\", \"10/31/2017\", \"1111-1111-11\",\r\n \"BobTheFourYearOld\", \"20\", ovId + \"\" ) );\r\n fail( \"Patient username did not match office visit patient.\" );\r\n }\r\n catch ( final IllegalArgumentException e ) {\r\n assertEquals( \"Patient id does not match office visit patient id.\", e.getMessage() );\r\n }\r\n\r\n // Create prescription with invalid dates\r\n try {\r\n new Prescription( createPrescriptionForm( \"10.1\", \"10/31/2017\", \"10/29/2017\", \"1111-1111-11\",\r\n \"BobTheFourYearOld\", \"20\", null ) );\r\n fail( \"Start date came after end date and no exception was thrown.\" );\r\n }\r\n catch ( final IllegalArgumentException e ) {\r\n assertEquals( \"Start date came after end date.\", e.getMessage() );\r\n }\r\n\r\n // Create prescription with invalid code\r\n try {\r\n new Prescription( createPrescriptionForm( \"10.1\", \"10/20/2017\", \"10/29/2017\", \"8888-1111-11\",\r\n \"AliceThirteen\", \"20\", null ) );\r\n fail( \"Invalid NDC was used.\" );\r\n }\r\n catch ( final IllegalArgumentException e ) {\r\n assertEquals( \"NDCCode specified was not in the system.\", e.getMessage() );\r\n }\r\n\r\n // Test renewing\r\n final Prescription p0 = new Prescription( createPrescriptionForm( \"10.1\", \"10/19/2017\", \"10/31/2019\",\r\n \"1111-1111-11\", \"AliceThirteen\", \"1\", null ) );\r\n assertTrue( p0.renew() );\r\n assertFalse( p0.renew() );\r\n p0.save();\r\n\r\n final Prescription persistedP0 = Prescription.getById( p0.getId() );\r\n assertFalse( persistedP0.renew() );\r\n\r\n final Prescription p1 = new Prescription( createPrescriptionForm( \"10.1\", \"10/19/2016\", \"10/31/2016\",\r\n \"1111-1111-11\", \"AliceThirteen\", \"1\", null ) );\r\n p1.save();\r\n final Prescription persistedP1 = Prescription.getById( p1.getId() );\r\n assertFalse( persistedP1.renew() );\r\n\r\n final Prescription p2 = new Prescription( createPrescriptionForm( \"10.1\", \"10/19/2200\", \"10/31/2200\",\r\n \"1111-1111-11\", \"AliceThirteen\", \"1\", null ) );\r\n p2.save();\r\n final Prescription persistedP2 = Prescription.getById( p2.getId() );\r\n assertFalse( persistedP2.renew() );\r\n\r\n }", "title": "" }, { "docid": "e35a37e9c02b0d3f5ba2006412ac415c", "score": "0.57818645", "text": "@Test\n @Transactional\n public void checkNumberOfSpacesBookedIsRequired() throws Exception {\n assertThat(customerBookingRepository.findAll()).hasSize(0);\n // set the field null\n customerBooking.setNumberOfSpacesBooked(null);\n\n // Create the CustomerBooking, which fails.\n restCustomerBookingMockMvc.perform(post(\"/api/customerBookings\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(customerBooking)))\n .andExpect(status().isBadRequest());\n\n // Validate the database is still empty\n List<CustomerBooking> customerBookings = customerBookingRepository.findAll();\n assertThat(customerBookings).hasSize(0);\n }", "title": "" }, { "docid": "215f84c9a5d4331091fd0147abf09764", "score": "0.57811725", "text": "@Test\n\tpublic void cancelBookingTest2() throws BookingException{\n\t\tassertThrows(BookingException.class,()->{\n\t\t\tbookingService.cancelBooking(32432434);\n\t\t});\n\t}", "title": "" }, { "docid": "2fdf11705f7ff18eccc4e40acb89a425", "score": "0.5778875", "text": "@Test()\r\n\t\t\tpublic void purchaseBundle_US1221_TC1995() throws RowsExceededException,\r\n\t\t\t\t\tBiffException, WriteException, IOException, InterruptedException {\r\n\t\t\t\t/** Variable Section : **/\r\n//\t\t\t\tString userId = LoginTestData.operatorUserId;\r\n\t\t\t\tString userId = LoginTestData.supervisorWithRoleAssignment_SSO_UserId;\r\n\t\t\t\tString password = LoginTestData.supervisorWithRoleAssignment_SSO_Password;\r\n\t\t\t\tString storeId = LoginTestData.supervisorWithRoleAssignmentStoreId;\r\n\t\t\t\tString vendorName=GlobalVariable.vendorName;\r\n\t\t\t\tString wrin=GlobalVariable.createPurchaseWrin;\r\n\t\t\t\tString invoiceNumber=Integer.toString(Base.generateNdigitRandomNumber(4));\r\n\t\t\t\t\t\r\n\t\t\t\t/***********************************/\r\n\t\t\t\tHomePage homePage = PageFactory.initElements(driver, HomePage.class);\r\n\t\t\t\tPurchasesPage purchasesPage = PageFactory.initElements(driver, PurchasesPage.class);\r\n\t\t\t\tManualInvoiceNewPage manualInvoiceNewPage = PageFactory.initElements(driver, ManualInvoiceNewPage.class);\r\n\t\t\t\tManualVendorsPage manualVendorsPage = PageFactory.initElements(driver, ManualVendorsPage.class);\t\t\t\r\n\t\t\t\thomePage.selectUserWithSSOLogin(userId, password).selectLocation(storeId).navigateToInventoryManagement().goToPurchaseLandingPage();\r\n\t\t\t\twait.until(ExpectedConditions.visibilityOf(purchasesPage.Purchases_Label));\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t\tmanualInvoiceNewPage.createAManualPurchase(vendorName, invoiceNumber, wrin,\"2\",\"3\");\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tif(purchasesPage.verifyPendindInvoiceIsPresent(invoiceNumber))\r\n\t\t\t\t{\r\n\t\t\t\t\tReporter.reportPassResult(\r\n\t\t\t\t\t\t\tbrowser,\"purchaseBundle_US1221_TC1995\",\r\n\t\t\t\t\t\t\t\"User shoudl be able to create the manual purchase\",\r\n\t\t\t\t\t\t\t\"Pass\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tReporter.reportTestFailure(\r\n\t\t\t\t\t\t\tbrowser,\"purchaseBundle_US1221_TC1995_Condition1\",\"purchaseBundle_US1221_TC1995\",\r\n\t\t\t\t\t\t\t\"User shoudl be able to create the manual purchase\",\r\n\t\t\t\t\t\t\t\"Fail\");\r\n\t\t\t\t\tAbstractTest.takeSnapShot(\"purchaseBundle_US1221_TC1995_Condition1\");\r\n\t\t\t\t}\r\n\t\t\t\t//Go to Manual Vendor Page\r\n\t\t\t\thomePage.Menu_DD_BT.click();\r\n\t\t\t\twait.until(ExpectedConditions.visibilityOf(homePage.OtherInventoryFunctions_BT));\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t\t//Click on other Inventory function\r\n\t\t\t\thomePage.OtherInventoryFunctions_BT.click();\r\n\t\t\t\twait.until(ExpectedConditions.visibilityOf(homePage.ManualVendors_BT));\r\n\t\t\t\thomePage.ManualVendors_BT.click();\r\n\t\t\t\twait.until(ExpectedConditions.visibilityOf(manualVendorsPage.ManualVendors_Label));\r\n\t\t\t\tThread.sleep(7000);\r\n\t\t\t\t// Click on the edit vendor button\r\n\t\t\t\tWebElement vendor=manualVendorsPage.editVendor_BT(vendorName);\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tvendor.click();\r\n\t\t\t\twait.until(ExpectedConditions.visibilityOf(manualVendorsPage.EditVendorDetails_Title));\r\n\t\t\t\t//click on delete button\r\n\t\t\t\twait.until(ExpectedConditions.elementToBeClickable(manualVendorsPage.Delete_BT)).click();\r\n\t\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='dlgContent']/p[contains(.,'Please finalize all invoices for this vendor before deleting')]\")));\r\n\t\t\t\tif(Base.isElementDisplayed(By.xpath(\"//div[@id='dlgContent']/p[contains(.,'Please finalize all invoices for this vendor before deleting')]\")))\r\n\t\t\t\t{\r\n\t\t\t\t\tReporter.reportPassResult(\r\n\t\t\t\t\t\t\tbrowser,\"purchaseBundle_US1221_TC1995\",\r\n\t\t\t\t\t\t\t\"User should not be able to delete the manual vendor\",\r\n\t\t\t\t\t\t\t\"Pass\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tReporter.reportTestFailure(\r\n\t\t\t\t\t\t\tbrowser,\"purchaseBundle_US1221_TC1995_Condition2\",\"purchaseBundle_US1221_TC1995\",\r\n\t\t\t\t\t\t\t\"User should not be able to delete the manual vendor\",\r\n\t\t\t\t\t\t\t\"Fail\");\r\n\t\t\t\t\tAbstractTest.takeSnapShot(\"purchaseBundle_US1221_TC1995_Condition2\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t}", "title": "" }, { "docid": "3fc8ecc6c4fd5df8a7315acb02d7380b", "score": "0.57726276", "text": "@When(\"^user enters valid details and clicks on Make Payment$\")\r\n\tpublic void user_enters_valid_details_and_clicks_on_Make_Payment() throws Throwable {\n\t throw new PendingException();\r\n\t}", "title": "" }, { "docid": "de69f2e24891e673c6242c4ceea95f1b", "score": "0.5762934", "text": "public void validateCreateAccountAssertion() {\n\t\tString stepCountText = office365Object.StepCount().getText();\n\t\tSystem.out.println(\"Step count is ===> \" + stepCountText);\n\t\tAssert.assertEquals(stepCountText, \"Step 4 of 4\");\n\t}", "title": "" }, { "docid": "abcf337aea9ab03a414ed13ac6934a45", "score": "0.5762063", "text": "public static void main(String[]args){\n Customer customer1 = new Customer(\"Aaron Stott\",17, true);\n Customer customer2 = new Customer(\"Betty Adams\",17, false);\n Customer customer3 = new Customer(\"Corin Child\",16, true);\n Customer customer4 = new Customer(\"Doris Stewart\",25, true);\n Customer customer5 = new Customer(\"Edmond Cheyne\",12, false);\n Customer customer6 = new Customer(\"Fiona Chaney\",7, false);\n Customer customer7 = new Customer(\"Ged Still-Child\",16, true);\n Customer customer8 = new Customer(\"Harry Adamson\",20, false);\n \n \n \n confirmBooking(customer1); \n confirmBooking(customer2); \n confirmBooking(customer3); \n confirmBooking(customer4);\n confirmBooking(customer5); \n confirmBooking(customer6);\n confirmBooking(customer7); \n confirmBooking(customer8);\n \n showBooked(customer1);\n showBooked(customer2);\n showBooked(customer3);\n showBooked(customer4);\n showBooked(customer5);\n showBooked(customer6);\n showBooked(customer7);\n showBooked(customer8) ; \n \n \n }", "title": "" }, { "docid": "a0b50c06b790a1280f9ec654c8b8f744", "score": "0.57582617", "text": "@Test\n\tpublic void TC043PbTR_02() {\n\t\tresult.addLog(\"ID : TC043PbTR_02 : Verify that the entered values in 043Pa Tuning Request Form will display correctly in 043Pb Tuning Request Form Success page\");\n\t\t//result.addLog(\"Failed by PDPP-494: 043Pa Tuning Request Form: The duplicated content is displayed when partner user requests DTS tuning file.\");\n\t\t/*\n\t\t Pre-Condition: Partner user has \"Request accessory tunings\" rights.\n\n\t\t\t1. Log into DTS portal as a partner user\n\t\t\t2. Navigate to \"Accessories\" page\n\t\t\t3. Click \"Add Accessory\" link\n\t\t\t4. Fill valid value into all required fields\n\t\t\t5. Do not upload tuning\n\t\t\t6. Click \"Save\" link\n\t\t\t7. The correct 040P Accessory Detail page is displayed and the \"Request DTS Tuning\" link is displayed.\n\t\t\t8. Click Request DTS Tuning\" link\n\t\t\tVP: The 043Pa Tuning Request Form page is displayed\n\t\t\t9. Fill valid value into all fields\n\t\t\t10. Tick to check \"I understand the terms of this submission\" checkbox\n\t\t\t11. Click \"Submit\" link\n\t\t */\n\t\t//2. Navigate to \"Accessories\" page\n\t\thome.click(Xpath.LINK_PARTNER_ACCESSORIES);\n\t\t//3. Click \"Add Accessory\" link\n\t\thome.click(AccessoryMain.ADD_ACCESSORY);\n\t\t//4. Fill valid value into all required fields\n\t\t//5. Do not upload tuning\n\t\t//6. Click \"Save\" link\n\t\t/*\n\t\tInit data\n\t\t*/\n\t\tHashtable<String, String> data = TestData.accessoryDraft();\n\t\t// Fill value\n\t\thome.addAccessoriesPartner(AddAccessory.getHash(), data);\n\t\tArrayList<String> list_accessory_info = new ArrayList<String>();\n\t\tlist_accessory_info.add(data.get(\"name\"));\n\t\tlist_accessory_info.add(data.get(\"number\"));\n\t\tlist_accessory_info.add(data.get(\"upc\"));\n\t\t//7. The correct 040P Accessory Detail page is displayed and the \"Request DTS Tuning\" link is displayed.\n\t\tAssert.assertEquals(\"Pass\", home.existsElement(PartnerAccessoryInfo.getElementsInfo()).getResult());\n\t\tAssert.assertEquals(home.getTextByXpath(AccessoryInfo.REQUEST_TUNING), \"Request DTS Tuning\");\n\t\t//8. Click Request DTS Tuning\" link\n\t\thome.click(AccessoryInfo.REQUEST_TUNING);\n\t\t/*\n\t\t * VP: The 043Pa Tuning Request Form page is displayed\n\t\t */\n\t\tAssert.assertEquals(home.existsElement(TuningRequestForm.APPROVE_TUNNING_FORM()).getResult(), \"Pass\");\n\t\t//9. Fill valid value into all fields\n\t\t//10. Tick to check \"I understand the terms of this submission\" checkbox\n\t\thome.click(TuningRequestForm.AGREE);\n\t\t//11. Click \"Submit\" link\n\t\thome.click(TuningRequestForm.SUBMIT);\n\t\t/*\n\t\t * The 043Pb Tuning Request Form Success page is displayed and the entered information from 043Pa Tuning Request Form is displayed correctly\n\t\t */\n\t\tString accessory_info = home.getTextByXpath(TuningRequestForm.ACCESSORY_INFO);\n\t\tAssert.assertEquals(home.existsElement(TuningRequestFormSuccess.getSuccessPageInfo()).getResult(),\"Pass\");\n\t\tAssert.assertTrue(DTSUtil.containsListText(accessory_info, list_accessory_info));\n\t}", "title": "" }, { "docid": "9a145f27ac89135adb1d9c592cf7e67d", "score": "0.5754709", "text": "@Test\n public void testAcceptRequest() {\n login(\"pahasa1\", \"abcdefg\");\n makeRequest();\n logout();\n login(\"pahasa\", \"abcdefg\");\n makeRequest();\n clickOnRequest();\n int views = solo.getCurrentViews().size();\n\n // Click on the decline button, automatically return\n solo.clickOnView(solo.getView(R.id.accept_decline_request_accept_button));\n solo.assertCurrentActivity(\"Wrong Activity\", OwnerMapActivity.class);\n solo.clickOnView(solo.getView(R.id.location_confirm));\n solo.assertCurrentActivity(\"Wrong Activity\", ViewRequestsActivity.class);\n\n // Ensure all requests are no longer available (accepted or declined)\n assertNotEquals(views, solo.getCurrentViews().size());\n Database.setBookStatus(\"123456789\", \"available\");\n }", "title": "" }, { "docid": "b87959a008ef8d36e0c62bda22e7e5de", "score": "0.57544255", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Appt appt0 = new Appt(10, 45, 10, 15, 2020, \"Meeting\", \"This is a meeting\", \"work@gmail.com\");\n assertFalse(appt0.isOn(5, 15, 2020));\n }", "title": "" }, { "docid": "4181f1af9c0b1fd46f381e66ed059254", "score": "0.5749424", "text": "public void test30() {\n\t\tcal.add(b2);\n\t\tIterator<Appointment> it = cal.starting(tA);\n\t\tassertEquals(b2,it.next());\n\t}", "title": "" }, { "docid": "332045ac2008926e760945591292dfac", "score": "0.5748263", "text": "@SuppressWarnings(\"unchecked\")\n public void testProductionRunDeclaration() throws Exception {\n String productionRunId = createProductionRunProdCost(\"Production Run for Declaring Production Run Times\", 1);\n InventoryAsserts inventoryAsserts = new InventoryAsserts(this, facilityId, organizationPartyId, demowarehouse1);\n FinancialAsserts financialAsserts = new FinancialAsserts(this, organizationPartyId, demofinadmin);\n \n // note the initial balances\n Map initialBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // get the one and only task, and starts it\n String taskId = startOnlyTask(productionRunId);\n \n // issue inventory required for the first (and only) task, so we can complete the run\n Map input = UtilMisc.toMap(\"userLogin\", demowarehouse1, \"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"issueProductionRunTask\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // declare 1,000,000 of setup time and 800,000 of run time for the task\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"productionRunTaskId\", taskId);\n input.put(\"partyId\", demowarehouse1.get(\"partyId\"));\n input.put(\"addSetupTime\", new BigDecimal(\"1000000.0\"));\n input.put(\"addTaskTime\", new BigDecimal(\"800000.0\"));\n runAndAssertServiceSuccess(\"updateProductionRunTask\", input);\n \n // complete the task, which should trigger production run completed\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"productionRunId\", productionRunId);\n input.put(\"workEffortId\", taskId);\n runAndAssertServiceSuccess(\"changeProductionRunTaskStatus\", input);\n \n // produce the products, which should trigger a posting\n input = UtilMisc.toMap(\"userLogin\", demowarehouse1);\n input.put(\"workEffortId\", productionRunId);\n input.put(\"productId\", \"PROD_COST\");\n runAndAssertServiceSuccess(\"opentaps.productionRunProduce\", input);\n assertAllInventoryValuesEqual(inventoryAsserts);\n \n // get the final balances\n Map finalBalances = financialAsserts.getFinancialBalances(UtilDateTime.nowTimestamp());\n \n // this is the crux of the test\n Map expectedBalanceChanges = UtilMisc.toMap(\"MFG_EXPENSE_INTERNAL\", \"-350\", \"INVENTORY_ACCOUNT\", \"389\", \"RAWMAT_INVENTORY\", \"-39\");\n expectedBalanceChanges = UtilFinancial.replaceGlAccountTypeWithGlAccountForOrg(organizationPartyId, expectedBalanceChanges, delegator);\n assertMapDifferenceCorrect(initialBalances, finalBalances, expectedBalanceChanges);\n }", "title": "" }, { "docid": "b2453c423ef2f9ba572274f65bf16ef9", "score": "0.57347167", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Appt appt0 = new Appt(10, 45, 10, 15, 2020, \"Meeting\", \"This is a meeting\", \"work@gmail.com\");\n assertTrue(appt0.isOn(10, 15, 2020));\n }", "title": "" }, { "docid": "2550fd567022513d19e1b51da458f056", "score": "0.57185125", "text": "@Test(description = \"FP-TC-1140_Add Subject - Registration Code:General flow\", groups = { \" \" })\n\tpublic void FPTC_1140_verifyAddSubjectRegistrationCodeGeneralFlow() {\n\n\t\treportLog(\"1.1: Login in to application\");\n\t\tdashBoardPage = loginPage.loginInApplication(AT_PRODSiteCoordinator, AT_Password);\n\n\t\treportLog(\"2.1: Navigate to study navigator\");\n\t\tstudyNavigatorDashBoardPage = dashBoardPage.selectHorizontalUpperNavMenuItem(StudyDashBoardPage.class, Constants.NavigateText, Constants.StudyText);\n\n\t\treportLog(\"2.2: Select configured study from the drop down\");\n\t\tstudyNavigatorDashBoardPage.selectStudy(studyName,AT_PRODSiteCoordinatorUserName);\n\t\t//studyNavigatorDashBoardPage.selectSite(AT_PRODSiteCoordinatorUserName);\n\n\t\treportLog(\"2.3: Option to add subject is available\");\n\t\tstudyNavigatorDashBoardPage.verifyAddSubjectBtnIsDisplayed();\n\n\t\treportLog(\"3.1:Click on add Subject by selecting the site of Pr#1\");\n\t\tstudyNavigatorDashBoardPage.clickOnAddSubjectBTN();\n\n\t\treportLog(\"3.2:New subject entry screen is displayed \");\n\t\tstudyNavigatorDashBoardPage.verifyAddSubjectPopUpIsDisplayed();\n\n\t\treportLog(\"3.3:Required fields are highlighted​\");\n\t\tstudyNavigatorDashBoardPage.verifyRequiredFieldsAreHighlighted​();\n\n\t\treportLog(\"4.1 Enter not all required subject data​\");\n\t\tstudyNavigatorDashBoardPage.inputNotes(noteText);\n\t\t\n\t\treportLog(\"4.2:Data are entered \");\n\t\tstudyNavigatorDashBoardPage.verifyNotesTextIsEntered(noteText);\n\t\t\n\t\treportLog(\"4.3 Not filled required fields stay highlighted \");\n\t\tstudyNavigatorDashBoardPage.verifyRequiredFieldsAreHighlighted​();\n\n\t\treportLog(\"4.4:Save option is not enabled\");\n\t\tstudyNavigatorDashBoardPage.verifySaveButtonIsDisabled();\n\n\t\treportLog(\"5.1:Enter required subject data and click on 'Save'\");\n\t\tstudyNavigatorDashBoardPage.inputScreeningNum(screeningNumber);\n\t\tstudyNavigatorDashBoardPage.selectSubjectLanguage(studyLanguage);\n\n\t\treportLog(\"5.2:Data entered into subject entry form are validated \");\n\t\tstudyNavigatorDashBoardPage.verifyScreeningNumIsEntered(screeningNumber);\n\t\tsubjectDetailPage=studyNavigatorDashBoardPage.clickOnSaveBTN();\n\n\t\treportLog(\"5.3: New subject record is created \");\n\t\tsubjectDetailPage.verifySubjectDetailAndScreeningIsDisplayed(screeningNumber);\n\n\t\treportLog(\"5.4:List of available visits are displayed along with option to add subject visit \");\n\t\tsubjectDetailPage.verifyVisitGridDisplayed();\n\t\tsubjectDetailPage.clickOnVisitRow(visitName);\n\t\tsubjectDetailPage.verifyAddVisitIconIsDisplayed();\n\n\t\treportLog(\"5.5:Option to edit subject details is available\");\n\t\tsubjectDetailPage.verifySubjectEdtingIconIsDisplayed();\n\n\t\treportLog(\"6.2:QR icon is displayed in Reported Outcomes section\");\n\t\tsubjectDetailPage.verifyReportedOutComeQRCodeForMobileSubjectRegistrationDialogIsDisplayed();\n\t\t\n\t\treportLog(\"6.1:At the Reported Outcomes section select action to open Registration info -> Click on QR icon\");\n\t\tsubjectDetailPage.clickOnReportedOutComeMobileSubjectQrIcon();\n\n\t\treportLog(\n\t\t\t\t\"6.3: Values is Non Editable and Subject Registration pop-up is opened and contains the following information:Registration Code,Control to print Code,Device History enabled,Activate/Deactivate controls,Values are non-editable \");\n\t\tsubjectDetailPage.verifySubjectRegistrationDialogPoUpIsOpened();\n\t\tsubjectDetailPage.verifyInformationInSubjectRegistratiOnPopUp();\n\t\tsubjectDetailPage.checkValuesNonEditableInSubjectRegistrationPopUp();\n\t\t\n\t\treportLog(\"7.1:\tSelect action to close pop-up via Close control\");\n\t\tsubjectDetailPage.clickOnSubjectRegistrationPopUpCloseButton();\n\t\t\n\t\treportLog(\"7.2:\tSubject Registration pop-up is closed\");\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\t\t\t\n\t\treportLog(\"8.1:\tClick on QR icon\");\n\t\tsubjectDetailPage.clickOnReportedOutComeMobileSubjectQrIcon();\n\n\t\treportLog(\"8.2:\tSubject Registration pop-up is opened\");\n\t\tsubjectDetailPage.verifySubjectRegistrationDialogPoUpIsOpened();\n\n\t\treportLog(\"9.1:Select action to close pop-up via cross 'X' control\");\n\t\tsubjectDetailPage.clickOnSubjectResigtrationCrossControl();\n\t\t\n\t\treportLog(\"9.2:Subject Registration pop-up is closed\");\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\n\t\treportLog(\"9.3: User Logout the application\");\n\t\tloginPage.logoutApplication();\n\n\t\treportLog(\"9.4: Verify User Logout the application\");\n\t\tloginPage.verifyUserLogout();\n\n\t}", "title": "" }, { "docid": "ec5e13ec39588e226935107038209d72", "score": "0.57184756", "text": "@Test\n\tpublic void stateDCoverageOne(){\n\t\tassertTrue(accountServer.getAccount(\"SavingsTest2\").deposit(100));\n\t}", "title": "" }, { "docid": "8808e27e855ff5d76a1bdc6ebacb122d", "score": "0.5717571", "text": "@Test\n public void testDispatchCorrectlyWithPendingTransactions() throws Exception {\n verifyDispatchCallsProperMethods(payments.dummyPaymentTwoTransactionsPending(),\n payments.dummyPaymentTwoTransactionsSuccessPending());\n }", "title": "" }, { "docid": "cc3fbea58039ee06388fa7ef7652215c", "score": "0.57095844", "text": "@Test(priority=2)\n\tpublic void TS002_VerifyCreateNewAccountTest() throws InterruptedException\n\t{\n\n\t\thp = new CRMHomePage(driver);\n\t\tap = new CRMAccountsPage(driver);\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS) ;\n\t\t//Select Accounts menu from left navigation bar\n\t\thp.getAccountTab().click();\n\n\t\t//Click on 'New' button\n\t\tap.getAccountNewbtn().click();\n\n\t\t//Fill all the mandatory fields to create new account\n\t\t//Enter Account Name\n\t\tap.getAccDBANametxbox().click();\n\t\t//to create random generated account name\n\t\tap.getAccDBANametxbox().sendKeys(genData.generateRandomAlphaNumeric(10));\n\t\taccnameText= ap.getAccDBANametxbox().getAttribute(\"Value\");\n\t\tSystem.out.println(\"Created Account: \"+accnameText);\n\n\t\tap.getPhone().click();\n\t\tap.getPhone().sendKeys(genData.generateRandomNumber(10));\n\n\t\t//Scroll up the page till Address field\n\t\tact = new Actions(driver);\n\t\tact.moveToElement(ap.getAddress()).perform();\n\n\t\t//Select account type\n\t\tap.getAccTypetxtbx().click();\n\t\tap.getAcctypeExpandbtn().click();\n\t\tap.getAccTypeBuyer().click();\n\t\tap.getAddress().click();\n\n\t\t//Scroll down on the page\n\t\tact.keyDown(Keys.CONTROL).sendKeys(Keys.DOWN).perform();\n\t\tact.keyDown(Keys.CONTROL).sendKeys(Keys.DOWN).release().perform();\n\n\t\t//Enter Street1 address\n\t\tap.getStreet1().sendKeys(prop.getProperty(\"street1\"));\n\n\t\t//Enter City\n\t\tap.getCity().click();\n\t\tap.getCity().sendKeys(prop.getProperty(\"city\"));\n\n\t\t//Enter state\n\t\tap.getState().click();\n\t\tap.getState().sendKeys(prop.getProperty(\"state\"));\n\n\t\t//Enter zipcode\n\t\tap.getZipcode().click();\n\t\tap.getZipcode().sendKeys(prop.getProperty(\"zipcode\"));\n\n\t\t//Enter country\n\t\tap.getCountrytxbx().click();\n\t\tap.getCountrydrpbtn().click();\n\t\tap.getCountryName().click();\n\n\t\t//Click on Save and Close button\n\t\tap.getAccSaveCloseBtn().click();\n\n\t\t//Verify the newly created account\n\t\thp.getSearchAccountField().click();\n\t\thp.getSearchAccountField().sendKeys(accnameText);\n\t\thp.getstartsearch().click();\n\n\t\tString validateAccName = ap.getAccountNameSearchTable().getText();\n\t\tAssert.assertEquals(validateAccName, accnameText);\n\t\tSystem.out.println(\"Searched Account:\"+ validateAccName);\n\n\t\tphoneno = ap.getPhoneinSearchTable().getText();\n\t\tSystem.out.println(\"New account's Phone: \"+phoneno);\n\t\tSystem.out.println(\"New Account is created successfully\");\n\n\t\t//Clear the search term to navigate to active accounts page\n\t\thp.getClearSearch().click();\n\t}", "title": "" }, { "docid": "b7139742bac46c3a165635c56243cff6", "score": "0.5701498", "text": "public boolean payment_arrival() {\n\twait.SingleElementWait(\"//button[text()='Pay on Arrival']\");\n\tPayOnArrivalButton.click();\n\tAlert alert=driver.switchTo().alert();\n\talert.accept();\n\twait.SingleElementWait(\"//b[text()='Reserved']\");\n\tboolean textdisplay=SuccessfulReservationText.isDisplayed();\n\treturn textdisplay;\n\t}", "title": "" }, { "docid": "a91657cb34c24c6e38e4c3bd7000c0d8", "score": "0.56855524", "text": "@Test\n\tpublic void testSlotProfitable()\n\t{\n\t\tint numTimesToRun = 1000000;\n\t\tdouble totalPayoff = 0;\n\t\tSystem.out.println(\"Running the slot \" + numTimesToRun + \" times....\");\n\t\tString error = \"Slot is not profitable, average payoff: \";\n\t\t\n\t\tfor (int i = 0; i < numTimesToRun ;i++)\n\t\t{\n\t\t\tss.doSpin();\n\t\t\ttotalPayoff += ss.payoff();\n\t\t}\n\t\tdouble averagePayoff = totalPayoff/numTimesToRun;\n\t\t\n\t\tSystem.out.println(\"Average Payout is \" +averagePayoff);\n\t\t\n\t\tassertTrue(error+averagePayoff, averagePayoff < 2 );\n\t}", "title": "" }, { "docid": "2da84af1bd8486d06f11601aed14d781", "score": "0.56842184", "text": "@Test\n\tpublic void TC_01_EndOfSeasonSale_PopUp() throws InterruptedException {\n\t\tlogger.info(\"Step-1 : Launch the application URL\");\n\t\tString url = (String) properties.get(\"application.url\");\n\t\tnavigateToURL(url);\n\n\t\t// Step-2 (Check if the subscription prompt is popped up from the bottom of the\n\t\t// page)\n\t\tlogger.info(\"Step-2 : Validating that the subscription prompt is popped up from the bottom of the page\");\n\t\tNineTech_HomePage_PF homepage = new NineTech_HomePage_PF(driver);\n\t\tboolean popup_Status = homepage.getEofy_Popup().isDisplayed();\n\t\tAssert.assertTrue(popup_Status,\n\t\t\t\t\"Validation for the subscription prompt is popped up from the bottom of the page\");\n\t\tlogger.info(\"Capture screenshot for Step-2\");\n\t\tcaptureScreenshot(\"Screenshot_1\");\n\n\t\t// Step-3 (Scroll down to the end of the page)\n\t\tlogger.info(\"Step-3 : Scrolling down to the end of the page\");\n\t\tscrollToBottom();\n\t\tlogger.info(\"Capture screenshot for Step-3\");\n\t\tcaptureScreenshot(\"Screenshot_2\");\n\n\t\t// Step 4 - (Wait for 10 seconds (utmost))\n\t\tlogger.info(\"Step-4 : Wait for 10 seconds (utmost)\");\n\t\tholdScriptForSomeTime(4);\n\t\tlogger.info(\"Capture screenshot for Step-4\");\n\t\tcaptureScreenshot(\"Screenshot_3\");\n\n\t\t// Step 5 - (Verify if the subscription pop up disappears on the same article)\n\t\tlogger.info(\"Step-5 : Validating that the subscription prompt is disappeared\");\n\t\tcaptureScreenshot(\"Screenshot_4\");\n\t\tlogger.info(\"Capture screenshot for Step-5\");\n\t\tAssert.assertFalse(getWebElementStatus(homepage.getEofy_Popup()),\n\t\t\t\t\"Validation for the subscription prompt is disappeared\");\n\n\t}", "title": "" }, { "docid": "086e2923d9731d8113ef6e0ddb8da53f", "score": "0.56826776", "text": "void checkReviewBookingScreenIsDisplayed() throws Exception;", "title": "" }, { "docid": "1494c363bd1c9cb3952e9e48a223fb6c", "score": "0.56823516", "text": "@Test\n\tpublic void TC043PbTR_01() {\n\t\tresult.addLog(\"ID : TC043PbTR_01 : Verify that clicking on Model name in 043Pb Tuning Request Form Success page will return to its detail page\");\n\t\t//result.addLog(\"Failed by PDPP-494: 043Pa Tuning Request Form: The duplicated content is displayed when partner user requests DTS tuning file.\");\n\t\t/*\n\t\t Pre-Condition: Partner user has \"Request accessory tunings\" rights.\n\n\t\t\t1. Log into DTS portal as a partner user\n\t\t\t2. Navigate to \"Accessories\" page\n\t\t\t3. Click \"Add Accessory\" link\n\t\t\t4. Fill valid value into all required fields\n\t\t\t5. Do not upload tuning\n\t\t\t6. Click \"Save\" link\n\t\t\tVP: The correct 040P Accessory Detail page is displayed and the \"Request DTS Tuning\" link is displayed.\n\t\t\t7. Click Request DTS Tuning\" link\n\t\t\tVP: The 043Pa Tuning Request Form page is displayed\n\t\t\t8. Tick to check \"I understand the terms of this submission\" checkbox\n\t\t\t9. Click \"Submit\" link\n\t\t\tVP: The 043Pb Tuning Request Form Success page is displayed\n\t\t\t10. Click on accessory name link on top of page.\n\t\t */\n\t\t//2. Navigate to \"Accessories\" page\n\t\thome.click(Xpath.LINK_PARTNER_ACCESSORIES);\n\t\t//3. Click \"Add Accessory\" link\n\t\thome.click(AccessoryMain.ADD_ACCESSORY);\n\t\t//4. Fill valid value into all required fields\n\t\t//5. Do not upload tuning\n\t\t//6. Click \"Save\" link\n\t\t/*\n\t\t * Init data\n\t\t */\n\t\tHashtable<String, String> data = TestData.accessoryDraft();\n\t\t// Fill value\n\t\thome.addAccessoriesPartner(AddAccessory.getHash(), data);\n\t\t/*\n\t\t * VP: The correct 040P Accessory Detail page is displayed and the \"Request DTS Tuning\" link is displayed.\n\t\t */\n\t\tAssert.assertEquals(home.getTextByXpath(AccessoryInfo.REQUEST_TUNING), AccessoryInfo.REQUEST_DTS_TUNING_ACTION_STRING);\n\t\t//7. Click Request DTS Tuning\" link\n\t\thome.click(AccessoryInfo.REQUEST_TUNING);\n\t\t//VP: The 043Pa Tuning Request Form page is displayed\n\t\tAssert.assertEquals(home.existsElement(TuningRequestForm.APPROVE_TUNNING_FORM()).getResult(), \"Pass\");\n\t\t//8. Tick to check \"I understand the terms of this submission\" checkbox\n\t\thome.click(TuningRequestForm.AGREE);\n\t\t//9. Click \"Submit\" link\n\t\thome.click(TuningRequestForm.SUBMIT);\n\t\t/*\n\t\t * VP: The 043Pb Tuning Request Form Success page is displayed\n\t\t */\n\t\tAssert.assertEquals(home.existsElement(TuningRequestFormSuccess.getSuccessPageInfo()).getResult(),\"Pass\");\n\t\t//10. Click on accessory name link on top of page.\n\t\thome.click(TuningRequestForm.PRODUCT_LINK);\n\t\t/*\n\t\t * The portal is redirected to correct accessory detail page.\n\t\t */\n\t\tAssert.assertEquals(\"Pass\", home.existsElement(PartnerAccessoryInfo.getElementsInfo()).getResult());\n\t\t// Delete Accessory\n\t\thome.doDelete(AccessoryInfo.DELETE);\n\t}", "title": "" }, { "docid": "bb1f586b7d66cf2474fc2250966877cf", "score": "0.56800556", "text": "@Test\r\n public void testSellPlane() {\r\n System.out.println(\"sellPlane\");\r\n PassengerPlane plane = new PassengerPlane(\"StefAir\", 25);\r\n Company comp = new Company();\r\n comp.buyPlane(plane);\r\n int nrOfPlanesBeforeSell = comp.getNumberOfPlanes();\r\n \r\n try {\r\n comp.sellPlane(plane);\r\n } catch (NoPlanesExistsException ex) {\r\n System.err.println(\"NoPlanesExistsException: \" + ex.getMessage());\r\n Logger.getLogger(CompanyTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n int nrOfPlanesAfterSell = comp.getNumberOfPlanes();\r\n assertEquals(nrOfPlanesAfterSell , nrOfPlanesBeforeSell - 1 );\r\n }", "title": "" }, { "docid": "cf95c647a1847b0c073c5f697aeb80c0", "score": "0.5679375", "text": "@Test\n public void testCheckoutNonAvailableBook() {\n lc.addBook(new Book(\"Charlotte's web\", \"DE. B. White\", 1954,3.7));\n lc.addBook(new Book(\"Harry Potter\", \"J. Rowling\", 1999,3.8));\n lc.addBook(new Book(\"Mrs Frisby and the rats of NIMH\", \"Robert O'Brien\", 1970,3.9));\n lc.checkoutBook(\"Harry Potter\");\n boolean flag = lc.checkoutBook(\"Harry Potter\"); // try to checkout again\n assertFalse(\"checkoutBook checked out non-available book\", flag);\n }", "title": "" }, { "docid": "98e08942eeb509351e09dbc0ca0bbc5c", "score": "0.5677017", "text": "@Then(\"i verified the schedule page\")\n public void i_verified_the_schedule_page() {\n String actUrl = driver.getCurrentUrl();\n Assert.assertEquals(\"http://www.whiteboxqa.com/schedule.php\",actUrl);\n }", "title": "" } ]
8a3d2429551275b4ea394849b102996b
If the collection is null, just skip it. This is important because of the way filtering works; if we stored a null then the field would match when filtering for null (same as a null in the list). Also, storing a null would forcibly assign null to the collection field on load, screwing things up if the developer decided to later initialize the collection in the default constructor.
[ { "docid": "fc5b90d604343269e09ac346de054208", "score": "0.0", "text": "@Override\n \t\t\t\tprotected ListNode saveList(Collection<Object> pojo, boolean index, SaveContext ctx) {\n \t\t\t\t\tif (pojo == null)\n \t\t\t\t\t\tthrow new SkipException();\n \t\t\t\t\t\n \t\t\t\t\t// If it's empty, might as well skip it - the datastore doesn't store empty lists\n \t\t\t\t\tif (pojo.isEmpty())\n \t\t\t\t\t\tthrow new SkipException();\n \t\t\t\t\t\n \t\t\t\t\tListNode node = new ListNode(path);\n \n \t\t\t\t\tif (pojo != null) {\n \t\t\t\t\t\tfor (Object obj: pojo) {\n \t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\tEntityNode child = componentTranslator.save(obj, index, ctx);\n \t\t\t\t\t\t\t\tnode.add(child);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tcatch (SkipException ex) {\n \t\t\t\t\t\t\t\t// Just skip that node, no prob\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\treturn node;\n \t\t\t\t}", "title": "" } ]
[ { "docid": "5cdbf9d43a682d08ec8be00eb842acba", "score": "0.59317213", "text": "public static <T> void noNullElements(Collection<T> collection) {\n notEmpty(collection);\n int i = 0;\n for (Iterator<T> it = collection.iterator(); it.hasNext(); i++) {\n if (it.next() == null) {\n throw new IllegalArgumentException(\n \"The validated collection contains null element at index: \" + i);\n }\n }\n }", "title": "" }, { "docid": "35cffb49e5f639f409dc00bcb14d6033", "score": "0.5614855", "text": "public FloatCollectionCollection(FloatCollection collection) {\n/* 74 */ this._collection = null;\n/* */ this._collection = collection;\n/* */ }", "title": "" }, { "docid": "a8e6e8b8417794748af913c6eac54aca", "score": "0.5585397", "text": "public void testFieldMatchCriteria_NullValue() {\r\n new FieldMatchCriteria(FIELD, null);\r\n }", "title": "" }, { "docid": "8b16a593d4306542dc84483d061e8cbe", "score": "0.5469973", "text": "public static <T> void noNullElements(Collection<T> collection, String message) {\n notEmpty(collection);\n for (Iterator<T> it = collection.iterator(); it.hasNext();) {\n if (it.next() == null) {\n throw new IllegalArgumentException(message);\n }\n }\n }", "title": "" }, { "docid": "5224c985c8c19c22d667d9c03a26414d", "score": "0.53655285", "text": "@Override\n public void skipNulls() {\n }", "title": "" }, { "docid": "4755c7194fe0cbc2b018cf09724c901c", "score": "0.5273372", "text": "private void isCollectionSet() {\r\n if (this.collection.contains(STRING_DUMMY)) {\r\n this.isCollectionSet = !this.collection.add(STRING_DUMMY); //will return true if the collection has\r\n // changed, meaning it is not a set.\r\n this.collection.remove(STRING_DUMMY);\r\n } else {\r\n this.collection.add(STRING_DUMMY);\r\n this.isCollectionSet = !this.collection.add(STRING_DUMMY); //will return true if the collection has\r\n // changed, meaning it is not a set.\r\n this.collection.remove(STRING_DUMMY);\r\n this.collection.remove(STRING_DUMMY);\r\n }\r\n }", "title": "" }, { "docid": "3139d6ee40c96727c0bb25c7b8c135e2", "score": "0.5227375", "text": "public boolean getCollection(){\n return localCollection;\n }", "title": "" }, { "docid": "a0c72b4ee77eef90bc8684f37df75b83", "score": "0.50977147", "text": "@NonNull CollectionFilterMode getCollectionFilterMode();", "title": "" }, { "docid": "5820ccfe445c03ae57fb75cb1bb71c34", "score": "0.5073421", "text": "public Object visit(PropertyIsNull filter, Object extraData) {\n LOGGER.debug(\"exporting NullFilter\");\n\n Expression expr = filter.getExpression();\n\n expr.accept((org.opengis.filter.expression.ExpressionVisitor) this, extraData);\n\n queryBuilder = ImmutableMap.of(\"bool\", ImmutableMap.of(\"must_not\", ImmutableMap.of(\"exists\", ImmutableMap.of(\"field\", field))));\n\n return extraData;\n }", "title": "" }, { "docid": "958526469091acd920bd87e7db629ff9", "score": "0.5064359", "text": "public T caseDataCollection(DataCollection object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3921a4a4b1f4c88ce393298f3c2260ef", "score": "0.50624335", "text": "@Override\n\t\t\tpublic Filter<? extends Object> negate() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "bb908c0fd6e8a0e89f6aa64393620786", "score": "0.50379336", "text": "public void ignoreNull() {\n }", "title": "" }, { "docid": "7cfe2deb1124be00468ca6b8f7fe20e9", "score": "0.5011073", "text": "public void setCollection(String collection) {\n this.collection = collection;\n }", "title": "" }, { "docid": "2e6401cb5ffdb74323a062f36211e833", "score": "0.4995611", "text": "public FilterFieldExample() {\r\n\t\toredCriteria = new ArrayList();\r\n\t}", "title": "" }, { "docid": "c1c6ee70cc9def23db9b9532847de59a", "score": "0.499523", "text": "@Test\n public void filter() {\n assertFalse(projection.filter(v -> true).isDefined());\n }", "title": "" }, { "docid": "363094afc674b047ca2a97d9f61446f5", "score": "0.49436453", "text": "public Object visitNullFilter(Object extraData) {\n return extraData;\n }", "title": "" }, { "docid": "a66719cc622516538be8f7ccd0c992ed", "score": "0.493831", "text": "public Object visitNullFilter(Object extraData) {\n return extraData;\n }", "title": "" }, { "docid": "fe2f72fd01c9c8223e4f9cd4ef505d15", "score": "0.4933352", "text": "public final static <E> void addIfNotNull(final Collection<E> c, final E o) {\n if (o != null) {\n c.add(o);\n }\n }", "title": "" }, { "docid": "2554c746e968900995fb39ff798d7b35", "score": "0.49276644", "text": "@Override\n\tpublic Object getFilterObject() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4339dbe1d9819664a80bf8623aa113af", "score": "0.4914614", "text": "public void setNilFilters()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2011.contracts.ArrayOfFilterExpression target = null;\r\n target = (com.microsoft.schemas.xrm._2011.contracts.ArrayOfFilterExpression)get_store().find_element_user(FILTERS$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2011.contracts.ArrayOfFilterExpression)get_store().add_element_user(FILTERS$4);\r\n }\r\n target.setNil();\r\n }\r\n }", "title": "" }, { "docid": "b4f12a7290c8e0a35f4cf4cfb0f52de9", "score": "0.48980117", "text": "public void setCollection(String collection) {\n\t\tthis.collection = collection;\n\t}", "title": "" }, { "docid": "bb85a1e9e19f5ae02a2f05ca1735b781", "score": "0.48901558", "text": "public Collection()\r\n {\r\n this.collec= new ArrayList();\r\n }", "title": "" }, { "docid": "4f029a10505b8a50940d686084440723", "score": "0.4855253", "text": "@Test\n public void nullSetToUnmodifiableNonNullSet() {\n assertEquals(emptySet(), Queries.unmodifiableNonNullSet(null));\n }", "title": "" }, { "docid": "914099b1e1f3f5d23c5a9b897629d8c0", "score": "0.48481038", "text": "public void setCollection(boolean value) {\n this.collection = value;\n }", "title": "" }, { "docid": "79783738ef55dbd07356a0532fa1b4d2", "score": "0.48433015", "text": "public void testConstructor_NullFieldName() {\r\n try {\r\n new ValueFilter(operation, null, value);\r\n fail(\"Creates ValueFilter with null field name\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "18904217b52561e9d1a9d819658118c5", "score": "0.4807708", "text": "@Test(expected = RuntimeException.class)\n public void testNoFilter() {\n Iterator<Entry<Key,Entry<String,Attribute<? extends Comparable<?>>>>> iter = transformAndFilter(data);\n iter.next();\n }", "title": "" }, { "docid": "ff4b459be5d5c4a2740f5f226a2335e2", "score": "0.4798793", "text": "Collection<E> getEmpty();", "title": "" }, { "docid": "10f371a7d12e115e222927bb731e4e9a", "score": "0.4793107", "text": "public MyFlexibleList( )\r\n\t{\r\n\t\ttheCollection = null;\r\n\t\tnumberOfElements = 0;\r\n\r\n\t}", "title": "" }, { "docid": "4d34b59f08f60e5e09996af6f78557d7", "score": "0.4785236", "text": "private boolean removeNullKey() {\n /* template Remove with null elem */ throw new NotGenerated(); /* endtemplate */\n }", "title": "" }, { "docid": "6d290daaff3e69673fb30f437035c759", "score": "0.47787127", "text": "@SuppressWarnings(\"ConstantConditions\")\n @Test\n public void nullListToUnmodifiableNonNullList() {\n List<String> list = null;\n assertEquals(emptyList(), Queries.unmodifiableNonNullList(list));\n }", "title": "" }, { "docid": "b4fa8499b1886bfbaede72f57db8e692", "score": "0.4774671", "text": "Collection<? extends Object> getHasValue();", "title": "" }, { "docid": "6cb39cdbda947a228a0d3361f2d8851f", "score": "0.47667983", "text": "public void test_ctor_fail_CategoriesContainsNull() {\n try {\n new SearchCriteria(1L, null, Arrays.asList((Category) null), null, null, null, null, null, null);\n fail(\"IllegalArgumentException expected as categories cannot contain null\");\n } catch (IllegalArgumentException e) {\n // pass\n }\n }", "title": "" }, { "docid": "d14ee0b80584e81cc04b0252ddf299d9", "score": "0.4760819", "text": "public static boolean isEmpty(Collection<?> col) {\n return (col == null) || col.isEmpty();\n }", "title": "" }, { "docid": "ebda6674c5d17e31c3fe0642535221ee", "score": "0.47596157", "text": "public static <T> void notEmpty(Collection<T> collection) {\n notEmpty(collection,\n \"this collection must not be empty: it must contain at least 1 element\");\n }", "title": "" }, { "docid": "5b9a580ae5d618c0be477cbb0bbeacc6", "score": "0.47549477", "text": "public static Class<?> getCollectionParameter(Field field) {\n if (field != null) {\n Type genericType = field.getGenericType();\n if (genericType instanceof ParameterizedType) {\n Type[] typeArgs =\n ((ParameterizedType) genericType).getActualTypeArguments();\n if (typeArgs.length == 1 && typeArgs[0] instanceof Class<?>) {\n return (Class<?>) typeArgs[0];\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "56da06da6bfd415b66ac96ea82fe3da4", "score": "0.47344586", "text": "@Test(expected = IllegalArgumentException.class)\n public void test_search_filterNull() throws Exception {\n instance.search(null);\n }", "title": "" }, { "docid": "b642f3732e61c2d17445db0ede580f77", "score": "0.4726087", "text": "public static <T> void notEmpty(Collection<T> collection, String message) {\n if (collection == null || collection.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n }", "title": "" }, { "docid": "b29c8bf43f2d26b59c35e6e209d0ce03", "score": "0.472417", "text": "public Builder clearInputCollection() {\n if (inputCollectionBuilder_ == null) {\n inputCollection_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n inputCollectionBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "fee36d4e962aa42b37eb1ceed83b3406", "score": "0.47129002", "text": "@Override\r\n\t\tpublic boolean retainAll(Collection<?> arg0) {\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "92c9e68867fb09f445c92ce299281124", "score": "0.470392", "text": "public void setCollection_object(String collection_object) {\n\t\tthis.collection_object = collection_object == null ? null : collection_object.trim();\n\t}", "title": "" }, { "docid": "d1c8b7ea58a975bf618a1a649ed88f25", "score": "0.4703108", "text": "public String getCollection() {\n return this.collection;\n }", "title": "" }, { "docid": "d1c8b7ea58a975bf618a1a649ed88f25", "score": "0.4703108", "text": "public String getCollection() {\n return this.collection;\n }", "title": "" }, { "docid": "65b5b7c1706e7e73aca7c53c45fb92c4", "score": "0.46999973", "text": "public void setCollection(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n localCollectionTracker = false;\n \n } else {\n localCollectionTracker = true;\n }\n \n this.localCollection=param;\n \n\n }", "title": "" }, { "docid": "0b2a821edf758d66ede8ce709a52d6fd", "score": "0.46925616", "text": "public static boolean isCollectionEmpty(Collection<? extends Object> collection)\n {\n if(collection == null || collection.isEmpty())\n {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "00efe713fc871602a7f730e11b66ae07", "score": "0.46885335", "text": "@Test\n public void testSetOrdersCollection() {\n System.out.println(\"setOrdersCollection\");\n Collection<Orders> ordersCollection = null;\n Customer instance = new Customer();\n instance.setOrdersCollection(ordersCollection);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "title": "" }, { "docid": "0f2197529badcbcfc6815e731f53fd81", "score": "0.46845323", "text": "@Override\npublic Filter getFilter() {\n\treturn null;\n}", "title": "" }, { "docid": "f155ea57e0e296447e46960d82a67f39", "score": "0.4684357", "text": "public static <C extends CharSequence> void addIfNotNullNorEmpty(Collection<C> collection, C added) {\n\t\tif(StringUtils.isNotBlank(added)) {\n\t\t\tcollection.add(added);\n\t\t}\n\t}", "title": "" }, { "docid": "447ab6faf7aa93cc12f744e268c27e9a", "score": "0.4682071", "text": "@Override\r\n\tpublic void setCollection(String collectionName) {\r\n\t\tcollection = collectionName;\r\n\t}", "title": "" }, { "docid": "7de3e1e1fe1f60a289649f68f1238651", "score": "0.46764794", "text": "public static <T> T first(Iterable<T> collection)\n {\n if(collection == null)\n return null;\n Iterator<T> it = collection.iterator();\n if(it.hasNext())\n return it.next();\n return null;\n }", "title": "" }, { "docid": "b29c089b982bfa3fd831d42ad603a264", "score": "0.4673793", "text": "@Override\n\tpublic String filterType() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ec21c31a3116f38d517b0025a168e475", "score": "0.46633038", "text": "public void testFieldMatchCriteria_NullField() {\r\n try {\r\n new FieldMatchCriteria(null, VALUE);\r\n fail(\"Should throw IllegalArgumentException.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "3d748bf9e8444c1158451a38810d453d", "score": "0.46621582", "text": "public void testConstructor_NullOperation() {\r\n try {\r\n new ValueFilter(null, fieldName, value);\r\n fail(\"Creates ValueFilter with null operation\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "08d2278542c396cafa7ac7b61690b9ed", "score": "0.46511027", "text": "public boolean collect() {\n return false;\n }", "title": "" }, { "docid": "688b07ca623d3dc3e55af18eb8806f70", "score": "0.4650145", "text": "boolean isCollection();", "title": "" }, { "docid": "688b07ca623d3dc3e55af18eb8806f70", "score": "0.4650145", "text": "boolean isCollection();", "title": "" }, { "docid": "688b07ca623d3dc3e55af18eb8806f70", "score": "0.4650145", "text": "boolean isCollection();", "title": "" }, { "docid": "d0c79456e59e99a3b437959e2549941a", "score": "0.46460482", "text": "Query<T> isNull(String field);", "title": "" }, { "docid": "239fc363c00deaa3e6cdfca08a35a9f6", "score": "0.46379513", "text": "public void testConstructor_NullValue() {\r\n try {\r\n new ValueFilter(operation, fieldName, null);\r\n fail(\"Creates ValueFilter with null value\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "5220c70a7d6958811c397b4c1458c86a", "score": "0.463416", "text": "public Object visit(Not filter, Object extraData) {\n if (filter.getFilter() instanceof PropertyIsNull) {\n Expression expr = ((PropertyIsNull) filter.getFilter()).getExpression();\n expr.accept(this, extraData);\n } else {\n filter.getFilter().accept(this, extraData);\n }\n\n if (filter.getFilter() instanceof PropertyIsNull) {\n queryBuilder = ImmutableMap.of(\"exists\", ImmutableMap.of(\"field\", field));\n } else {\n queryBuilder = ImmutableMap.of(\"bool\", ImmutableMap.of(\"must_not\", queryBuilder));\n }\n return extraData;\n }", "title": "" }, { "docid": "005f428099338ce046e7997e84d1a0e1", "score": "0.46286365", "text": "@Override\n protected void setChildrenEmptyFlags() {\n this.setIsCursoCollectionEmpty();\n }", "title": "" }, { "docid": "4335005f940177c908603a99034ebc1f", "score": "0.4623738", "text": "@Override\n \t\t\tpublic boolean retainAll(Collection<?> c) {\n \t\t\t\treturn false;\n \t\t\t}", "title": "" }, { "docid": "caa1a52b460217e195a13a1dfa2cb801", "score": "0.4623278", "text": "@Override\n public boolean retainAll(Collection<?> arg0) {\n return false;\n }", "title": "" }, { "docid": "c97ddc43bebafcbdc66e3ddea3685de6", "score": "0.46201965", "text": "@Test\n void filterItems_should_handle_empty_lists_correctly() {\n }", "title": "" }, { "docid": "c301372d2308e2e4065b95c4550a2028", "score": "0.46114862", "text": "@Override\r\n\t\t\tpublic boolean retainAll(Collection<?> c) {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "c8469d6e007b37f2044cf57e8b951d08", "score": "0.46105486", "text": "public void setCollectionName(String collectionName) {\n _collectionName = collectionName;\n }", "title": "" }, { "docid": "c0f642ccd9964c04b30f0efee2e9e9fc", "score": "0.4609333", "text": "public boolean isNotNullItems() {\n return cacheValueIsNotNull(CacheKey.items);\n }", "title": "" }, { "docid": "f0befbfe221c671da4659eb236d7bab9", "score": "0.45995253", "text": "public NotFilter(Filter inFilter)\n\t{\n\t\tfieldFilter = inFilter;\n\t}", "title": "" }, { "docid": "ebb8d56815668f0a9509be41cd1c7eb4", "score": "0.45897388", "text": "public boolean isCollectionQueryKey() {\n return true;\n }", "title": "" }, { "docid": "a1ccd9180b756392410971eef59ae2b5", "score": "0.4581313", "text": "public CollectionFeeRecord() {\n this(DSL.name(\"collection_fee_record\"), null);\n }", "title": "" }, { "docid": "87bcdc8bef638ba2a969d83d5c01ac84", "score": "0.45754296", "text": "public void setInCollection(Collection<Object> inCollection) {\n\t\tthis.inCollection = inCollection;\n\t}", "title": "" }, { "docid": "d0d6328e5b4b662a5ab8d197f8642807", "score": "0.45723504", "text": "@Override\n\tpublic boolean retainAll(Collection<?> arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d0d6328e5b4b662a5ab8d197f8642807", "score": "0.45723504", "text": "@Override\n\tpublic boolean retainAll(Collection<?> arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b29056a51b57dafe60ad59223a3c536c", "score": "0.4569449", "text": "public EmptyCollectionException(String collection){\n\t\tsuper(\"The \" + collection +\" is empty\");\n\t}", "title": "" }, { "docid": "89a0343aca67256fcbed240ea4229db3", "score": "0.45637894", "text": "List<CustomerLegalDTO> findAllWhereCustomerIsNull();", "title": "" }, { "docid": "b7ded32bd0ebbd928c12b34dc4c630ea", "score": "0.45594755", "text": "@Override\n public boolean isNull() {\n return false;\n }", "title": "" }, { "docid": "0acf31797e5df5798ee1691fec26dbc8", "score": "0.45555723", "text": "EventSet internalFilter() {\n if (needsFiltering) {\n return new EventSetImpl(this, true);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "d56245bc2894739c50ed5f435d8d506c", "score": "0.45542252", "text": "public boolean isCollection() {\n return collection;\n }", "title": "" }, { "docid": "d56245bc2894739c50ed5f435d8d506c", "score": "0.45542252", "text": "public boolean isCollection() {\n return collection;\n }", "title": "" }, { "docid": "fe08ecd1b7d234982e8028c23f32c32d", "score": "0.45535946", "text": "public void setCollectionName(String collectionName) {\r\n\t\tthis.collectionName = collectionName;\r\n\t}", "title": "" }, { "docid": "0be40403fa609cd586b73c810dc88ec6", "score": "0.45530963", "text": "public boolean isCollectionType() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "535634cd6ac66b0b7cf8451b3a0f1b1b", "score": "0.4552591", "text": "public static boolean hasSingoloElemento(Collection<?> coll) {\n\t\treturn coll != null && coll.size() == 1;\n\t}", "title": "" }, { "docid": "41b41b47bcf87df606901f0d282a7a41", "score": "0.4547764", "text": "@Override\r\n public boolean retainAll(Collection<?> arg0) {\n return false;\r\n }", "title": "" }, { "docid": "436926365169e38dce5586e3cbadea88", "score": "0.45434463", "text": "@Override\r\n\tprotected List<Criterion> determineRestrictions() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f3ae3b1003fde860c00b25b7790097d8", "score": "0.4542719", "text": "protected int[] getCollectionOwners() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "58472714d1a090beebf86bd3c92138a7", "score": "0.45400864", "text": "@Override\r\n public <E extends Object> List<E> find(String condition, String[] fields, int offset) {\n return null;\r\n }", "title": "" }, { "docid": "b31b5bf06617944db90c07c56eb53af4", "score": "0.4538552", "text": "private static <E> E next(Collection<E> coll) {\n Iterator<E> iter = coll.iterator();\n E r = iter.next();\n iter.remove();\n return r;\n }", "title": "" }, { "docid": "efcc52973b78af2f7e75045393b4aca8", "score": "0.45351243", "text": "@Override\r\n\tpublic Filter getFilter() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bfdc42952f4d98290629bb3caabeb4e5", "score": "0.45295355", "text": "@Override\n public boolean isNull() {\n return true;\n }", "title": "" }, { "docid": "58cf3a5f10ae9790fea07a9ebc17ea11", "score": "0.452128", "text": "static boolean remove(final Collection<?> c, final Object element) {\r\n if (N.isNullOrEmpty(c)) {\r\n return false;\r\n }\r\n\r\n return c.remove(element);\r\n }", "title": "" }, { "docid": "3efa576d30ad53a879854f8107e4b08a", "score": "0.45211372", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic static <S, C extends Collection<S>> C filter(Collection<S> sourceCollection, Filter<S> filter, Class<C> collectionClass) {\n\t\tC destinationCollection;\n\t\ttry {\n\t\t\tdestinationCollection = collectionClass.newInstance();\n\t\t} catch (InstantiationException e) {\n\t\t\tthrow new IllegalArgumentException(\"Instantiation exception for class \" + collectionClass.getSimpleName(), e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new IllegalArgumentException(\"Access exception for class \" + collectionClass.getSimpleName(), e);\n\t\t}\n\t\tif(sourceCollection == null) {\n\t\t\treturn destinationCollection;\n\t\t}\n\t\treturn (C) filter(sourceCollection, filter, destinationCollection);\n\t}", "title": "" }, { "docid": "61aea117083d1c2cdecbb119c336777f", "score": "0.45206234", "text": "@Override\n\tpublic boolean retainAll(Collection arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f833211c43a26cb752203fefe3987928", "score": "0.45131332", "text": "public Record removeNullValueColumns() {\n for ( java.util.Iterator<Entry<String, Object>> it = getColumns().entrySet().iterator(); it.hasNext(); ) {\n Entry<String, Object> e = it.next();\n if ( e.getValue() == null ) {\n it.remove();\n }\n }\n return this;\n }", "title": "" }, { "docid": "ba648c294dc01241827350b172624a8c", "score": "0.45057526", "text": "@Override\n\tprotected Collection getModel(RuntimeRequest request) throws SQLException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "312d86ad387ca76eeba9a584c60eba54", "score": "0.45012698", "text": "@Override\n public boolean retainAll(Collection<?> c) {\n return false;\n }", "title": "" }, { "docid": "312d86ad387ca76eeba9a584c60eba54", "score": "0.45012698", "text": "@Override\n public boolean retainAll(Collection<?> c) {\n return false;\n }", "title": "" }, { "docid": "312d86ad387ca76eeba9a584c60eba54", "score": "0.45012698", "text": "@Override\n public boolean retainAll(Collection<?> c) {\n return false;\n }", "title": "" }, { "docid": "f44afbd7ef5d7764109dde5b6aa7e860", "score": "0.44956145", "text": "@Override\n public boolean isNull() {\n return false;\n }", "title": "" }, { "docid": "f44afbd7ef5d7764109dde5b6aa7e860", "score": "0.44956145", "text": "@Override\n public boolean isNull() {\n return false;\n }", "title": "" }, { "docid": "a9a3d4c76f5f0f2d2b0c2419c59d04f7", "score": "0.44953972", "text": "public void clearNoDocument() {\n if (this.documentTypeCase_ == 1) {\n this.documentTypeCase_ = 0;\n this.documentType_ = null;\n }\n }", "title": "" }, { "docid": "f6cf3022360b4edb76deb060d383f820", "score": "0.4493487", "text": "@Test\n @SuppressWarnings(\"ConstantConditions\")\n public void shouldThrowExceptionWhenCollectionIsNullOrContainsNull() {\n assertThatThrownBy(() -> {\n Singleton.get(Sets.newHashSet(new Object[] {null}));\n }).isInstanceOf(NullPointerException.class);\n assertThatThrownBy(() -> {\n Singleton.get(null);\n }).isInstanceOf(NullPointerException.class);\n }", "title": "" }, { "docid": "afb5c9a0a49153d67b8d75882316258e", "score": "0.44922853", "text": "public static <S> void filter(Collection<S> sourceCollection, Filter<S> filter) {\n\t\tif(sourceCollection == null || filter == null) {\n\t\t\treturn;\n\t\t}\n\t\tIterator<S> iterator = sourceCollection.iterator();\n\t\twhile(iterator != null && iterator.hasNext()) {\n\t\t\tif(!filter.isAcceptable(iterator.next())) {\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
c01cba80732ece9eb1a7ed97bbfa6db5
Add new USER : //
[ { "docid": "2d26c53da754145eeb40609d5c0562c4", "score": "0.0", "text": "@PostMapping(value = \"/\", consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<UsersDTO> createUser(@Valid @RequestBody final UsersDTO user) {\n\t\tlogger.info(\"Creating User : {}\", user);\n\t\tif(userJpaRepository.findByName(user.getName()) != null) {\n\t\t\tlogger.error(\"Unable to create. A User with name {} already exist\",\n\t\t\t\t\tuser.getName());\n\t\t\treturn new ResponseEntity<UsersDTO>(new CustomErrorType(\n\t\t\t\t\t\"Unable to create new User. A user with name \" + \n\t\t\t\t\tuser.getName() + \" already exist.\"),HttpStatus.CONFLICT);\n\t\t}\n\t\tuserJpaRepository.save(user);\n\t\treturn new ResponseEntity<UsersDTO>(user, HttpStatus.CREATED);\n\t}", "title": "" } ]
[ { "docid": "3994a025d1f063b457cb0a945410f147", "score": "0.8327887", "text": "void addUser(User user);", "title": "" }, { "docid": "3994a025d1f063b457cb0a945410f147", "score": "0.8327887", "text": "void addUser(User user);", "title": "" }, { "docid": "16fb34909df46165328234a9e52ff935", "score": "0.83204997", "text": "public void addUser(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9675c7ed57e0c72db200988d10923c7e", "score": "0.83079433", "text": "public void addUser(User user);", "title": "" }, { "docid": "52f81c569af65af0c9b5de68c9bd2ba1", "score": "0.81695026", "text": "public void addUser(UserModel user);", "title": "" }, { "docid": "24d345f39b3ba1556dc8f5b9d8b7bb8c", "score": "0.79212296", "text": "void addUser(String uid, String firstname, String lastname, String pseudo);", "title": "" }, { "docid": "33739bf19e7ad15f204b7866f64d61cd", "score": "0.78976434", "text": "public void insertUser() {}", "title": "" }, { "docid": "a6dfa6eede8cef1d159e27f47d1f57da", "score": "0.7891247", "text": "public void createUser(User user) {\n\n\t}", "title": "" }, { "docid": "079fe5619cae798f353288f50a4cf2ce", "score": "0.78882855", "text": "public void newUser(User user);", "title": "" }, { "docid": "1723f9405ca16e289e20c63bcd8a75c7", "score": "0.7863593", "text": "void registerUser(User newUser);", "title": "" }, { "docid": "292199c00dd3e203b08c88292292957d", "score": "0.7843379", "text": "public void newUser(User user) {\n users.add(user);\n }", "title": "" }, { "docid": "297b8f7efbf0c844db79dbe513c3ffd4", "score": "0.78386813", "text": "@Override\r\n\tpublic void add(User user) {\n\r\n\t}", "title": "" }, { "docid": "7f0beb483bfbe053f8806cfb0ce8edda", "score": "0.77878857", "text": "Boolean registerNewUser(User user);", "title": "" }, { "docid": "362fa671ec905c0df476a207a33f3600", "score": "0.7731097", "text": "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "title": "" }, { "docid": "ef453601f93702cb2771e513e194889e", "score": "0.77024543", "text": "void add(User user) throws SQLException;", "title": "" }, { "docid": "bd591a601b7d89b369484c78ea772da0", "score": "0.76821095", "text": "public void createUser(User user);", "title": "" }, { "docid": "71ae91f24288c1dd93c2f0dd67e62835", "score": "0.76507056", "text": "@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}", "title": "" }, { "docid": "1ad90d4e98258c24a9b2d441ad6e5cb1", "score": "0.76067084", "text": "public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "103953d868f7b4a15a0d5482c6a0742b", "score": "0.76048803", "text": "@Override\r\n\tpublic void add(User1 user) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(user);\r\n\t}", "title": "" }, { "docid": "7f14011f17fdb9a1d6f31e4b79485c01", "score": "0.7598712", "text": "public void addUser(User user){\r\n users.add(user);\r\n }", "title": "" }, { "docid": "39775b93f83f5a7e75bdd395aaf56a4d", "score": "0.7586907", "text": "public Boolean addUser(User user) throws ApplicationException;", "title": "" }, { "docid": "9a676621787a7e0cff9111ac07a63477", "score": "0.7585801", "text": "@Override\r\n\tpublic boolean addNewUser(User user) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "9237911728e7b6d22e5c68b12a0066e8", "score": "0.7552254", "text": "public void addUser(User user){\n loginDAO.saveUser(user.getId(),user.getName(),user.getPassword());\n }", "title": "" }, { "docid": "e80a17b1a67ffc95c49a8eb81100c5c7", "score": "0.7541145", "text": "ResponseMessage addUser(User user);", "title": "" }, { "docid": "044d520bcf3ea1a3b221b28129e20480", "score": "0.75273687", "text": "public void addUser(User user) {\n\t\tSystem.out.println(\"adding user :\"+user.toString());\n\t\tuserList.add(user);\n\t}", "title": "" }, { "docid": "24867957d637798b9655a861de93a6ce", "score": "0.7505445", "text": "public int insertUser(final User user);", "title": "" }, { "docid": "87df4a0b08d7a4383d5701d985ddd8c6", "score": "0.7462509", "text": "public void Adduser(User u1) {\n\t\tUserDao ua=new UserDao();\n\t\tua.adduser(u1);\n\t\t\n\t}", "title": "" }, { "docid": "407106c3959a05a5ffe7c8e7bc02419f", "score": "0.74499077", "text": "private void addNewUser(User user) {\n\t\tSystem.out.println(\"BirdersRepo. Adding new user to DB: \" + user.getUsername());\n\t\tDocument document = Document.parse(gson.toJson(user));\n\t\tcollection.insertOne(document);\n\t}", "title": "" }, { "docid": "58b4dbf88130260c8ec8b22d5e8d33d9", "score": "0.7438026", "text": "public void addUserUI() throws IOException {\n System.out.println(\"Add user: id;surname;first name;username;password\");\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n User user = new User(a[1], a[2], a[3], a[4], \" \");\n user.setId(Long.parseLong(a[0]));\n try\n {\n User newUser = service.addUser(user);\n if(newUser != null)\n System.out.println(\"ID already exists for \" + user.toString());\n else\n System.out.println(\"User added successfully!\");\n }\n catch (ValidationException ex)\n {\n System.out.println(ex.getMessage());\n }\n catch (IllegalArgumentException ex)\n {\n System.out.println(ex.getMessage());\n }\n }", "title": "" }, { "docid": "3d5295052c946aff5c13c2c4826b4d53", "score": "0.7430047", "text": "public void addUser(Customer user) {}", "title": "" }, { "docid": "cf2c80621a203fa1c5576dbfb627925d", "score": "0.7418943", "text": "public eu.aladdin_project.xsd.User addNewUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.xsd.User target = null;\n target = (eu.aladdin_project.xsd.User)get_store().add_element_user(USER$0);\n return target;\n }\n }", "title": "" }, { "docid": "de0bb1baebab229a682cdbd1dc5ffd9c", "score": "0.7414701", "text": "void addNewUser(User user, int roleId) throws DAOException;", "title": "" }, { "docid": "fae4770bc88a83005ebda6c1101b348b", "score": "0.74012065", "text": "@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "d5d32dd98c6f10d0598e2a7eca42baba", "score": "0.7393602", "text": "void addUser(Username username) throws UserAlreadyExistsException;", "title": "" }, { "docid": "8283a8c595bcdcdb68ef2249dcdee5f6", "score": "0.73833925", "text": "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "title": "" }, { "docid": "c92167581c41af7a62e1dd2f5d515bbc", "score": "0.73767364", "text": "User addUser(IDAOSession session, String fullName, String userName,\n\t\t\tString password);", "title": "" }, { "docid": "5b9b326bca7e248da7c3fb675187a8af", "score": "0.73655844", "text": "@Override\r\n\tpublic boolean add(User u) {\r\n\t\treturn executeAndIsModified(INSERT_INTO_USERS, u.getTax_code(),\r\n\t\t\t\tu.getName(),\r\n\t\t\t\tu.getSurname(),\r\n\t\t\t\tu.getPhone(),\r\n\t\t\t\tu.getAddress(),\r\n\t\t\t\tu.getEmail(),\r\n\t\t\t\tu.getPassword(),\r\n\t\t\t\tu.getRole());\r\n\r\n\t}", "title": "" }, { "docid": "d89630b480e195ab9ccd8c30f2810e60", "score": "0.7361842", "text": "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "title": "" }, { "docid": "fb35447193aa77f7b391895098519c20", "score": "0.7351237", "text": "public void addUser() {\n\t\tthis.users++;\n\t}", "title": "" }, { "docid": "ef6be19670017a9212c0f3e34f85319f", "score": "0.73488843", "text": "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "title": "" }, { "docid": "0961732bbee8431369c0061476eb9d1a", "score": "0.73365545", "text": "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5611f7e160df6cc1b04434550dfe62e9", "score": "0.7330803", "text": "boolean addUser(int employeeId, String name, String password, String role);", "title": "" }, { "docid": "4c666219b0b5a91303143fc99a7d3881", "score": "0.73181087", "text": "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1b70f9349a3f96439f4a027aca0a95da", "score": "0.7312319", "text": "public Long addUser(User transientUser) throws Exception;", "title": "" }, { "docid": "6448080fe94992cb8eb021f7fec3ffe1", "score": "0.7311167", "text": "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "title": "" }, { "docid": "ff46d81b010c6cde69d84cd7cb7f90b3", "score": "0.730929", "text": "Integer addUser(ServiceUserEntity user);", "title": "" }, { "docid": "b0c556be855114a690a1db420b1befa2", "score": "0.73026323", "text": "public void new_user(){\n }", "title": "" }, { "docid": "ded4dce2ea2f29bc7b724e4d556be8a9", "score": "0.7299422", "text": "public void newUserAdded(String userID);", "title": "" }, { "docid": "64878ddb493995a0cd52dce60dc6be65", "score": "0.7298485", "text": "public void addAccount(String user, String password);", "title": "" }, { "docid": "9db291ddda10e03efebcd72c6cf4e9cb", "score": "0.72865814", "text": "public boolean addUser(UserDTO user);", "title": "" }, { "docid": "b8e614f144dbc809b215d650cf73f49a", "score": "0.72770554", "text": "public void addUser(User tmpUser, User user) {\n\t\t\n\t}", "title": "" }, { "docid": "56af94006801efde06516821cab3c514", "score": "0.72693515", "text": "@Override\n\tpublic void addUser(User user) {\n mapper.addUser(user);\n\t}", "title": "" }, { "docid": "f74a3cc0f43ed5f9829771175ebcc7f2", "score": "0.7268337", "text": "@Override\n\tpublic boolean addNewUser() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1bb5e2a6c1b0a85281eb422bf33708d1", "score": "0.7266677", "text": "public User addUser(User user) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "96b3118f10d4ea37cb362ab1291cf400", "score": "0.7263698", "text": "void add(User user) throws AccessControlException;", "title": "" }, { "docid": "2d947f6778f1b11f14ab4018226f5e0a", "score": "0.72597504", "text": "public void addUser(String u, String p) {\n \t//users.put(\"admin\",\"12345\");\n users.put(u, p);\n }", "title": "" }, { "docid": "d321f3779255f51ead43c5b70f069696", "score": "0.72549933", "text": "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "title": "" }, { "docid": "e6ba1d053e3a704a9b9b403d1fe0ee58", "score": "0.7253753", "text": "@Override\n\tpublic boolean addUser(User user) {\n\t\tObject object = null;\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tobject = client.insert(\"addUser\", user);\n\t\t\tSystem.out.println(\"添加学生信息的返回值:\" + object);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (object != null) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "a879a0c7a8542410ecb6a21b9209e95b", "score": "0.72454345", "text": "public int add(Userinfo user) {\n\t\treturn userDAO.AddUser(user);\r\n\t}", "title": "" }, { "docid": "fc4e0f83bdc19c4e418bcfadfc7271f6", "score": "0.72418696", "text": "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "title": "" }, { "docid": "b7bfc5256cd5834ededfa0c32f2b6ed4", "score": "0.72388566", "text": "public boolean addUser(User user) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "229e277f45c21c366a3b388e6b584720", "score": "0.7238812", "text": "public void addUser(User user){\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(USER_NAME,user.getName());\n values.put(USER_PASSWORD,user.getPassword());\n db.insert(TABLE_USER,null,values);\n db.close();\n }", "title": "" }, { "docid": "75c31a5eb4f560e942d23a5ce9a30342", "score": "0.72344613", "text": "@Test\n\tpublic void testAddUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"1\");\n\t\tassertFalse(\"User is invalid\", sn.addUser(user3));\n\t\tassertTrue(\"User is valid\", sn.addUser(user1));\n\t\tassertFalse(\"Same user cant be added\", sn.addUser(user1));\n\t\tassertFalse(\"ID already exists\", sn.addUser(user2));\n\t}", "title": "" }, { "docid": "40b835cb7124bdce675a7667464bfaa8", "score": "0.72314435", "text": "private void addUser(){\r\n\t\ttry{\r\n\t\t\tSystem.out.println(\"Adding a new user\");\r\n\r\n\t\t\tfor(int i = 0; i < commandList.size(); i++){//go through command list\r\n\t\t\t\tSystem.out.print(commandList.get(i) + \"\\t\");//print out the command and params\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t\t\t//build SQL statement\r\n\t\t\tString sqlCmd = \"INSERT INTO users VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(4) + \"', '\" + commandList.get(5) + \"', '\"\r\n\t\t\t\t\t+ commandList.get(6) + \"');\";\r\n\t\t\tSystem.out.println(\"sending command:\" + sqlCmd);//print SQL command to console\r\n\t\t\tstmt.executeUpdate(sqlCmd);//send command\r\n\r\n\t\t} catch(SQLException se){\r\n\t\t\t//Handle errors for JDBC\r\n\t\t\terror = true;\r\n\t\t\tse.printStackTrace();\r\n\t\t\tout.println(se.getMessage());//return error message\r\n\t\t} catch(Exception e){\r\n\t\t\t//general error case, Class.forName\r\n\t\t\terror = true;\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(e.getMessage());\r\n\t\t} \r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");//end try\r\n\t}", "title": "" }, { "docid": "2be908f8b7451233180fbc24de4d5ed7", "score": "0.7230306", "text": "public int addUser(Users users);", "title": "" }, { "docid": "f12713e9bc42ec0b826af9774d828685", "score": "0.7228492", "text": "@Override\n\tpublic void addUser(ERSUser user) {\n\t\tuserDao.insertUser(user);\n\t}", "title": "" }, { "docid": "5a85effb77d173f5453fc40c26b47884", "score": "0.7218922", "text": "@Override\n public void addUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.persist(u);\n logger.info(\"User saved successfully, User Details=\"+u);\n }", "title": "" }, { "docid": "49a9251bc6ecd4c877f0cce81905b144", "score": "0.7211649", "text": "public void insert(User user);", "title": "" }, { "docid": "4b725cb4d03d57fd530a8aed4a75aa78", "score": "0.72037166", "text": "public void addUser(String firstName, String lastName, String username, String password, char type)\r\n\t{\r\n\t\tdb.user_addUser(firstName, lastName, username, password, type);\t\r\n\t}", "title": "" }, { "docid": "8cd38562afcd59c2ccc89564fe16ee6d", "score": "0.72008693", "text": "void addUserpan(String userid,String username,String userpwd);", "title": "" }, { "docid": "ffa16e2e28125115e862fb7d0012f86e", "score": "0.7200255", "text": "@Override\n\tpublic User addUser(User user) {\n\t\treturn userDatabase.put(user.getEmail(), user);\n\t}", "title": "" }, { "docid": "847b76f3e3ce4fbacea9253b1a63d59b", "score": "0.7194913", "text": "@Override\n public boolean addUser(User user) {\n return controller.addUser(user);\n }", "title": "" }, { "docid": "4554a0979b92358a3c496b8f3b9e494d", "score": "0.7187385", "text": "@Override\r\n\tpublic boolean addUser(user user) {\n\t\tif(userdao.insert(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "a1c487f4db48204bd6d97b0b32e0ba1c", "score": "0.7181111", "text": "public void addUser(User user) {\n\t\tuserList.addUser(user);\n\t}", "title": "" }, { "docid": "66f95e55582b04414c84ded007297309", "score": "0.71808577", "text": "@Override\r\n\tpublic int addUser(User user) {\n\t\treturn userMapper.addUser(user);\r\n\t}", "title": "" }, { "docid": "5dffb20e3b84549fddd2ffd999025d5d", "score": "0.7178032", "text": "public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }", "title": "" }, { "docid": "343280bcd9d1849f2dc5c5e85b470f6a", "score": "0.7168136", "text": "public void addNewUser(User user) throws SQLException {\n PreparedStatement pr = connection.prepareStatement(Queries.insertNewUser);\n pr.setString(1, user.getUserFullName());\n pr.setString(2, user.getUserEmail());\n pr.setInt(3, user.getPhoneNumber());\n pr.setString(4, user.getUserLoginName());\n pr.setString(5, user.getUserPassword());\n pr.execute();\n pr.close();\n }", "title": "" }, { "docid": "7bcc7d21934a8b58c8592e0ceaf99beb", "score": "0.71672976", "text": "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "title": "" }, { "docid": "edd15dd10c96f50504d259387e40f3d8", "score": "0.71628886", "text": "@Override\n\tpublic void add(UserModel um) throws Exception {\n\t\tuserMapper.insert(um);\n\t}", "title": "" }, { "docid": "bbe9dffe716039ec57dbe1b6e3ecccdc", "score": "0.7141464", "text": "public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}", "title": "" }, { "docid": "658c919b3144408b00341853e1efea03", "score": "0.7133874", "text": "public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }", "title": "" }, { "docid": "5d3d8400e428784542ea6e1d072d97a9", "score": "0.712991", "text": "@Override\n\tpublic int addUser(TbUser user) {\n\t\treturn new userDaoImpl().addUser(user);\n\t}", "title": "" }, { "docid": "ac318e0f1de823fc2bcd90457e3ac256", "score": "0.7123188", "text": "private void addUser(HttpServletRequest req) throws PolygonException {\n //int id = Integer.parseInt(req.getParameter(\"id\"));\n String username = (String) req.getParameter(\"username\");\n String password = (String) req.getParameter(\"password\");\n String password2 = (String) req.getParameter(\"password2\");\n String email = (String) req.getParameter(\"email\");\n String type = (String) req.getParameter(\"type\");\n if (username.length() > 0 && password.length() > 0 && password.equals(password2) && type.length() > 0) {\n User user = new User(username, password, email, type);\n UsersMapper.insertUser(user);\n } else {\n String msg = \"Udfyld alle krævede felter\";\n throw new PolygonException(msg);\n }\n }", "title": "" }, { "docid": "12ee27b5642fcabd57a5cfd83b2c9863", "score": "0.71200675", "text": "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "79b217352356575891c2ced87840a62a", "score": "0.7115881", "text": "void addUser(BlogUser user) throws DAOException;", "title": "" }, { "docid": "1dd3a56ddbfe78223ec22e6eb9c7c7f4", "score": "0.71123916", "text": "void addUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_utilizador, user.getUser()); // Contact Name\n values.put(KEY_pass, user.getPass()); // Contact Phone\n values.put(KEY_Escola, user.getEscola());\n db.insert(tabela, null, values);\n db.close(); // Closing database connection\n }", "title": "" }, { "docid": "8211ebf021a276a1c903c2e85e8553f4", "score": "0.71012163", "text": "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "title": "" }, { "docid": "222e03c1f07baf5ca35fe313ddec281b", "score": "0.7100669", "text": "public void addUser(User user) {\n \t\tuser.setId(userCounterIdCounter);\n \t\tusers.add(user);\n \t\tuserCounterIdCounter++;\n \t}", "title": "" }, { "docid": "c25e9501354f54e2190a534849b2aa93", "score": "0.7099111", "text": "private void addNewUser() throws Exception, UnitException {\n String firstNameInput = firstName.getText();\n String lastNameInput = lastName.getText();\n String unitInput = unitID.getText();\n String accountInput = accountTypeValue;\n String passwordInput = password.getText();\n User newUserInfo;\n\n // Create user type based on the commandbox input\n switch (accountInput) {\n case \"Employee\":\n newUserInfo = new Employee(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n case \"Lead\":\n newUserInfo = new Lead(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n case \"Admin\":\n newUserInfo = new Admin(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + accountInput);\n }\n\n // Try adding this new user information to the database, if successful will return success prompt\n try {\n Admin.addUserToDatabase(newUserInfo);\n\n // If successful, output message dialog\n String msg = \"New User \" + firstNameInput + \" \" + lastNameInput + \" with UserID \"\n + newUserInfo.returnUserID() + \" successfully created\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset Values\n firstName.setText(\"\");\n lastName.setText(\"\");\n unitID.setText(\"\");\n password.setText(\"\");\n } catch (UserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "title": "" }, { "docid": "2870deb893984ca4459242aaebbddc73", "score": "0.70828474", "text": "public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\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().add_element_user(CREATEUSER$0);\n return target;\n }\n }", "title": "" }, { "docid": "4b3fa3ba355c1e0f23d165d704ed7b01", "score": "0.7071844", "text": "@Override\n\tpublic void addPerson(User pUser) {\n\t\t\n\t}", "title": "" }, { "docid": "0db5fb761e4515002c2d4e0e5e087ae2", "score": "0.70704186", "text": "public GraphNode addUser(String user){\n\t\tint intValue = addElement(user, 1);\n\t\t\n\t\tGraphNode userVar = new GraphNode(intValue, 1);\n\t\tauthGraph.addVertex(userVar);\n\t\t//authGraph.addEdgeToRoot(userVar,intValue);\n\t\t\n\t\treturn userVar;\n\t}", "title": "" }, { "docid": "9b70f7ffe76b334dc460121cad7001e2", "score": "0.7069873", "text": "public String addUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "28e8fda7e4b951a1fa6cf70d2f1d0859", "score": "0.70694673", "text": "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "title": "" }, { "docid": "e13d353fc9c90ba347ac80629412eec7", "score": "0.70677453", "text": "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "8572542ae4e315b1c3f18e839e9f253b", "score": "0.7067672", "text": "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "title": "" }, { "docid": "4dc671da40d48b127a6b96cf3157a387", "score": "0.70629936", "text": "public int userAdd(User user) {\n\t\treturn userDao.userAdd(user);\r\n\t}", "title": "" }, { "docid": "308a45ef37ffee43be7fa7b9d39e929a", "score": "0.70608294", "text": "public void addUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_IMAGE, \"\");\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n values.put(COLUMN_USER_CURRMONTH_ID, -16);\n\n // Inserting Row\n db.insert(TABLE_USER, null, values);\n db.close();\n }", "title": "" }, { "docid": "132015901ee8255c01fd3738c47fc8d7", "score": "0.7060036", "text": "public void addUser(User user) {\n\t\tuserDao.addUser(user);\r\n\r\n\t}", "title": "" }, { "docid": "3bb90b11191e81883e35f16c63028c92", "score": "0.705533", "text": "@POST(\"/AddUser\")\n\tint addUser(@Body User user);", "title": "" }, { "docid": "81da72a4e35a21c8937b8a6ddd307de4", "score": "0.70369846", "text": "public User addNewUser(String entity)\n\t{\n\t\tElement userElement = document.createElement(USER_ELEMENT_NAME);\n\t\tUser user = new User(userElement);\n\t\tuser.setEntity(entity);\n\n\t\tusers.appendChild(userElement);\n\t\tusersList.add(user);\n\n\t\treturn user;\n\t}", "title": "" } ]
ce9930f1baadac059f38d87c733edd45
Setter method for the index.
[ { "docid": "66254d7a72e8754193286d25d0590942", "score": "0.7395028", "text": "public void setIndex(int index) {\n\t\tthis.index = index;\n\t}", "title": "" } ]
[ { "docid": "815270eafd63ce3a18b40af847b13df5", "score": "0.81036353", "text": "public void setIndex(int index){\n\n this.Index = index;\n\n }", "title": "" }, { "docid": "c554848958fda3f7d155e662a8d289dc", "score": "0.79443866", "text": "void setIndex(int index);", "title": "" }, { "docid": "c30aa5a75a603a38ce2ff6b8c4ae3ba5", "score": "0.7940672", "text": "public void setIndex(int index);", "title": "" }, { "docid": "27da4de3cd750d29aa2f115dcb96631b", "score": "0.77028424", "text": "public void setIndex(int idx)\n {\n index = idx;\n }", "title": "" }, { "docid": "b640126cff81e501fba24d28ea346626", "score": "0.76835793", "text": "public void setIndex(int index)\n {\n this.index = index;\n }", "title": "" }, { "docid": "5661955ce312458f037636fed8c72f7e", "score": "0.7652972", "text": "public void setIndex(int i){\n this.index = i;\n }", "title": "" }, { "docid": "8ae309410313bea6e5bd2eb7ff96f0ca", "score": "0.7649222", "text": "void setIndex(int index) {\n\t\tthis.index = index;\n\t}", "title": "" }, { "docid": "3179a46fb8a5008fe8e624dbce46f1ea", "score": "0.7635727", "text": "private void setIndex(int index) {\n this._index = index;\n }", "title": "" }, { "docid": "0918707abfaf2b3977d9a5e332e92ced", "score": "0.7598266", "text": "public void setIndex(int index) {\n this.index = index;\n }", "title": "" }, { "docid": "0918707abfaf2b3977d9a5e332e92ced", "score": "0.7598266", "text": "public void setIndex(int index) {\n this.index = index;\n }", "title": "" }, { "docid": "918fa3ac3f2085385fbe395db30c2aca", "score": "0.7527402", "text": "public void setIndex(int value) {\n this.index = value;\n }", "title": "" }, { "docid": "9e215db75d5e0349d062901c026c895c", "score": "0.7370303", "text": "public void setIndex(int i) {\n this.index_ = i;\n }", "title": "" }, { "docid": "f81aa647818fb0b715ac80b0ba7a63de", "score": "0.73012", "text": "public final void setIndex(int i) {\r\n this.index = i;\r\n }", "title": "" }, { "docid": "bced12b82525eefbd45b0a1512fa741f", "score": "0.72916585", "text": "public void setIndex(short index);", "title": "" }, { "docid": "5145ba27d334e25e5092079b4637e849", "score": "0.7250893", "text": "public void setItemIndex(int index) {\n }", "title": "" }, { "docid": "a1dd58d0a0ee0148cd663313304d5ac5", "score": "0.7235034", "text": "public void setIndex(final int i) {\n\t\tindex = i;\n\t}", "title": "" }, { "docid": "6d935b3a4b2e9edfb8b0333486af7990", "score": "0.7201233", "text": "public abstract void set(Index other) throws IOException;", "title": "" }, { "docid": "2a7c2575ccd6cc6a6ed508846917fb16", "score": "0.71908563", "text": "public abstract void setIndexedValue (int indx, Object val) throws\n IllegalAccessException, IllegalArgumentException, InvocationTargetException;", "title": "" }, { "docid": "0a2658361652e9d5a24cb970f3607799", "score": "0.71058977", "text": "@Override\n\t\tpublic void setIndex(int i) {\n\n\t\t}", "title": "" }, { "docid": "7e5b07a8f2bc125823c87157968a02fc", "score": "0.70671576", "text": "public void setIdx(Integer idx) {\n\t\tthis.idx = idx;\n\t}", "title": "" }, { "docid": "d2ca17d2600785c17f0d699fbc288836", "score": "0.7047506", "text": "@JsonProperty(\"index\")\n public void setIndex(Integer index) {\n this.index = index;\n }", "title": "" }, { "docid": "0f588754d0820d433060de29ea2a0a42", "score": "0.7038476", "text": "public void setIdx(int idx) {\n\t\tthis.idx = idx;\n\t}", "title": "" }, { "docid": "a0927b6678502b3db4695d3e7118657c", "score": "0.702686", "text": "void set(int index, int value);", "title": "" }, { "docid": "3454120f790a833d821fb4dbc6dfe60b", "score": "0.7019783", "text": "final public void setIndex(int index)\n {\n if (index == 0)\n {\n this.index = 0;\n }\n else\n {\n this.index = index + 1;\n }\n }", "title": "" }, { "docid": "5e22777a5ac07e245e2d2c36e57c2e58", "score": "0.701065", "text": "public Builder setIndex(int value) {\n \n index_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "22efffcb8734fa3c40fd2296a8c80acd", "score": "0.69806063", "text": "public Builder setIndex(long value) {\n \n index_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6ba664813eeb87bb2cf22c3a5cc4c4a7", "score": "0.6958748", "text": "public void setIndex(int index) {\n\t\tthis.index = index;\n\t\talternateIndex.add(index);\n\t}", "title": "" }, { "docid": "54db65bcbdddb24148ca9e8f205b5b2d", "score": "0.69366443", "text": "void set(int index, Object value);", "title": "" }, { "docid": "5060d72e6f6079681b1b9c7196a3de77", "score": "0.69273573", "text": "public void set(String name, int index, Object value) {\n\n\t}", "title": "" }, { "docid": "7f91db6cce22b8cc4618a84a8778f237", "score": "0.690863", "text": "public void setIndex(int index){\n currentIndex = index;\n }", "title": "" }, { "docid": "c5c28aaf2edc4864d2be3faa58ae5960", "score": "0.6908546", "text": "public void setIdx(Long idx) {\r\n this.idx = idx;\r\n }", "title": "" }, { "docid": "b2aabf223023ff2dca143c5dfdeb75ca", "score": "0.6802248", "text": "public abstract void setInitialIndex(int index);", "title": "" }, { "docid": "5673ba1500be8ae4c4b7695314f373b2", "score": "0.67990834", "text": "public void setIndex(int index) {\n this.textIndex = index;\n }", "title": "" }, { "docid": "37f777e62edf5098ade29354ba228c78", "score": "0.67792886", "text": "@Override\n public Index getIndex() {\n return index;\n }", "title": "" }, { "docid": "d63b1b3fd79f2ca722c470da477e2ed2", "score": "0.67472386", "text": "void set(int index, int object);", "title": "" }, { "docid": "4facb5b8823272adc33511abe9874dd9", "score": "0.6725272", "text": "public Builder setIndex(long value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4facb5b8823272adc33511abe9874dd9", "score": "0.6725272", "text": "public Builder setIndex(long value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4facb5b8823272adc33511abe9874dd9", "score": "0.6725272", "text": "public Builder setIndex(long value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b400a6d7aeaa5b8ac2bdf8f8a5a35a54", "score": "0.67250323", "text": "public void setIndex(int index) {\r\n // sets the index of this block in the chain\r\n this.index = index;\r\n }", "title": "" }, { "docid": "88ad46b858f8d3b218c497fbce2ef46d", "score": "0.67114156", "text": "public void setIndex(int i)\n {\n \tindex = Math.min(maxIndex, Math.max(i, minIndex));\n }", "title": "" }, { "docid": "55ef7c6fb62d1f3c4cb31af7b112a8e7", "score": "0.6710693", "text": "@Accessor(qualifier = \"indexProperty\", type = Accessor.Type.SETTER)\n\tpublic void setIndexProperty(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(INDEXPROPERTY, value);\n\t}", "title": "" }, { "docid": "e6a8794c86e64e1b5be8f8dc473ac8a2", "score": "0.665171", "text": "private IND(int index) {\n this.val = index;\n }", "title": "" }, { "docid": "468549d1f2908283692f64393d33d0dd", "score": "0.66314316", "text": "@Override\n public int getIndex()\n {\n return index;\n }", "title": "" }, { "docid": "8ba9211a717bcf21eca55c31e80ddfe6", "score": "0.6538884", "text": "public void set(int index, int value) {\r\n checkIndex(index);\r\n elementData[index] = value;\r\n }", "title": "" }, { "docid": "ddc870d0c406845050b11608b6c4fdf6", "score": "0.6525719", "text": "public void putIndex(int index) {\n this.index = index;\n }", "title": "" }, { "docid": "12065d829f3c2faa30a137bc44562a18", "score": "0.6501141", "text": "public void set(int index, int val)\r\n {\n if(index<0 || index>=cursor)\r\n throw new IndexOutOfBoundsException();\r\n \r\n // reset value at the index\r\n values[index] = val;\r\n }", "title": "" }, { "docid": "098c1120e172cb188ec514b63b70d771", "score": "0.6476624", "text": "@Override\n public void set(int index, E value) {\n array[index] = value;\n }", "title": "" }, { "docid": "9ceb398d7fdd0fe786b2e873b73857b8", "score": "0.6475942", "text": "@Override\n public void set(final String name, final int index, final Object value) {\n // If its not a property, then create default indexed property\n if (!isDynaProperty(name)) {\n set(name, defaultIndexedProperty(name));\n }\n\n // Get the indexed property\n Object indexedProperty = get(name);\n\n // Check that the property is indexed\n if (!dynaClass.getDynaProperty(name).isIndexed()) {\n throw new IllegalArgumentException\n (\"Non-indexed property for '\" + name + \"[\" + index + \"]'\"\n + dynaClass.getDynaProperty(name).getType().getName());\n }\n\n // Grow indexed property to appropriate size\n indexedProperty = growIndexedProperty(name, indexedProperty, index);\n\n // Set the value in an array\n if (indexedProperty.getClass().isArray()) {\n Array.set(indexedProperty, index, value);\n } else if (indexedProperty instanceof List) {\n @SuppressWarnings(\"unchecked\")\n final\n // Indexed properties are stored in a List<Object>\n List<Object> values = (List<Object>) indexedProperty;\n values.set(index, value);\n } else {\n throw new IllegalArgumentException\n (\"Non-indexed property for '\" + name + \"[\" + index + \"]' \"\n + indexedProperty.getClass().getName());\n }\n }", "title": "" }, { "docid": "72296691a5bf23d16024f7d7c15ca4e6", "score": "0.6472111", "text": "public void set(int index, Object agent) {\n set(index, agent, true);\n }", "title": "" }, { "docid": "694a15b856b79372c3f6e03548f75031", "score": "0.64707094", "text": "void set(int index, Object o);", "title": "" }, { "docid": "d408b3d1ff7cbf87d60f227c9db7631d", "score": "0.6464748", "text": "public void set(int ins,int index){\r\n\t\t\r\n\t\tif(index<size){\r\n\t\t\tcontent[index]=ins;\r\n\t\t\tinstanceChanged();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bad73a90d85c58fba64d08df39a77a69", "score": "0.6462751", "text": "abstract public void\n\tset(int [] index, Object value)\n\t\t\tthrows IOException;", "title": "" }, { "docid": "bd6295735f664cbe3476fa02800367b2", "score": "0.6443494", "text": "public static void resetIndex(){\r\n Index.startIndex = 1000;\r\n }", "title": "" }, { "docid": "9b0f4723988659794d9dfeb833d0fee8", "score": "0.6424192", "text": "@Request(id = 16, retryable = false, response = ResponseMessageConst.DATA)\n Object set(String name, int index, Data value);", "title": "" }, { "docid": "1f370db7f2de39c830e15929b805af9a", "score": "0.6420474", "text": "public void setIndexed(boolean indexed) {\n this.indexed = indexed;\n }", "title": "" }, { "docid": "b2775a5ed2aaf030f2c105ccfd80e8cf", "score": "0.64195895", "text": "public void set(int index, T value){\n\t\tif(index >= size()){ throw new IndexOutOfBoundsException(); }\n\t\tcontent[index] = value;\n\t}", "title": "" }, { "docid": "49c69967b9fd3312716083b9f54eb0b2", "score": "0.64178693", "text": "protected void setValue(int index, int value) {\nCodeCoverCoverageCounter$3xh58fzrezbxv2xcavkkgopcx.statements[32]++;\r\n DateTimeField field = getField(index);\nCodeCoverCoverageCounter$3xh58fzrezbxv2xcavkkgopcx.statements[33]++;\r\n int[] values = field.set(this, index, iValues, value);\r\n System.arraycopy(values, 0, iValues, 0, iValues.length);\nCodeCoverCoverageCounter$3xh58fzrezbxv2xcavkkgopcx.statements[34]++;\r\n }", "title": "" }, { "docid": "042704dc8812de146cd649d1509f8848", "score": "0.6402008", "text": "public void set(T value, int index)\r\n {\r\n if ( isComplex() )\r\n {\r\n throw new IllegalStateException(\"Cannot use this method for Complex matrices\");\r\n }\r\n setReal(value, index);\r\n }", "title": "" }, { "docid": "967abbb71c504e06f8dba2898750ed37", "score": "0.63941485", "text": "public void set(int index, Integer value){\n\tif(index < 0 || index >= size()){\r\n\t throw new IndexOutOfBoundsException();\r\n\t}\r\n\tNode current = getNode(index);\r\n\tcurrent.setValue(value);\r\n }", "title": "" }, { "docid": "f4d43c1f01b3de7b7054a63f2c069443", "score": "0.6386522", "text": "void setRefractiveIndex(double refractiveIndex);", "title": "" }, { "docid": "ce69ef37a3af46189124daab0f5b5ffa", "score": "0.636505", "text": "public void set(int index, Object value) {\n checkIndex(index, size() - 1);\n\n myVersion++;\n getNodeAt(index).element = value;\n }", "title": "" }, { "docid": "34133f389aae988efc74219131e852a2", "score": "0.6360741", "text": "@Override\n\tpublic int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "563f11dfa643fdf2a363c54b04f44659", "score": "0.63571084", "text": "@Override\n public T set(final int index, final T element) throws IndexOutOfBoundsException {\n \tItem<T> temp = getItemByIndex(index);\n \tT oldVal = temp.element;\n \ttemp.element = element;\n return oldVal;\n // END\n }", "title": "" }, { "docid": "54f300d5b6a39eb7c3aa9bc8ebef65a3", "score": "0.6356001", "text": "public void setData(int index, int value, long scn) throws Exception;", "title": "" }, { "docid": "145c0ccba92a050700a4ae3c4651de59", "score": "0.63420683", "text": "void set(int index, String property, Object value);", "title": "" }, { "docid": "90c13251947c87c1da821e592c591048", "score": "0.6341356", "text": "public Builder setEntityIndex(long value) {\n \n entityIndex_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d72f79e3bc3879eccea56978d9f03278", "score": "0.6339695", "text": "public void setIndex(int index) {\n nativeSetDCChangeSpeedLevelIndex(index);\n }", "title": "" }, { "docid": "cdcca5f6a659af646cf67fd0a1899e9e", "score": "0.6337298", "text": "public Long set(int index, Long e) {\n if (index >= 0 && index < doSize()) {\n return Long.valueOf(doSet(index, e.longValue()));\n }\n throw new IndexOutOfBoundsException();\n }", "title": "" }, { "docid": "9825d8918b5779e6498d47fa79c4f183", "score": "0.63269216", "text": "public int getIndex(){\n return this.index;\n }", "title": "" }, { "docid": "db03d093e81e54ca6adbb54ad64b76aa", "score": "0.63214445", "text": "@Override\n public T set(int index, T element) {\n checkIndex(index);\n Node<T> currentNode = getNodeByIndex(index);\n T dataObject = (T) currentNode.dataObject;\n currentNode.dataObject = element;\n modifications++;\n return dataObject;\n }", "title": "" }, { "docid": "1633640b2d08f137db4972eab936fa67", "score": "0.6311806", "text": "public void set(int index, int newValue) {\n\t\tassert index < used;\n\t\tdata[index] = newValue;\n\t}", "title": "" }, { "docid": "161b0dea5fc5d82890776c0dee49661d", "score": "0.6304136", "text": "public void setPath(int index, int value) {\n ensurePathIsMutable();\n this.path_.setInt(index, value);\n }", "title": "" }, { "docid": "161b0dea5fc5d82890776c0dee49661d", "score": "0.6304136", "text": "public void setPath(int index, int value) {\n ensurePathIsMutable();\n this.path_.setInt(index, value);\n }", "title": "" }, { "docid": "3ab27d5e791f887117d12779b331d8b3", "score": "0.63036245", "text": "protected void set(int index, PyObject value) {\n throw Py.TypeError(\"can't assign to immutable object\");\n }", "title": "" }, { "docid": "ce2fdbd45f59895117c1c2e4766324a4", "score": "0.6291133", "text": "public void set(int Index, int Value) {\n values.put(new Integer(Index), new Integer(Value));\n }", "title": "" }, { "docid": "7dbbb1934c47778b731516f0e77f1f59", "score": "0.62871295", "text": "public final void setNameIndex(int name_index) {\n/* 244 */ this.name_index = name_index;\n/* */ }", "title": "" }, { "docid": "b22cfe86193c3de727e382de28951692", "score": "0.6263058", "text": "void setFsIndexName(String aIndexName);", "title": "" }, { "docid": "13757b18a82796496170f592d15ddf0d", "score": "0.62527215", "text": "public Builder setHashIndex(int value) {\n bitField0_ |= 0x00000001;\n hashIndex_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2c1c6d187e10ac347470fac69dcd6f35", "score": "0.62506616", "text": "private void getIndex() {\n String no = tblPatok.getValueAt(tblPatok.getSelectedRow(), 0).toString();\n this.index = Integer.parseInt(no);\n }", "title": "" }, { "docid": "68ff94fa5a4b2df57cd09574a18a07c8", "score": "0.62500554", "text": "void setIndexableClass(final Class<T> indexableClass);", "title": "" }, { "docid": "2301d9ee3c51fca212766987ef4bfe75", "score": "0.62457496", "text": "<T> T set(int index, Object item);", "title": "" }, { "docid": "76146eced2b06725bb6ce6330cc4e624", "score": "0.6242259", "text": "@JsOverlay\n\tpublic default void setAt(final int index, final TNode value) {\n\t\txyz.jsinterop.client.core.JsArrays.setArrayItem(this, index, value);\n\t}", "title": "" }, { "docid": "b8fb0fa063fde0dee1f8dcc30dde557f", "score": "0.6240654", "text": "@Override\n public E set(int index, E element);", "title": "" }, { "docid": "f9074a5da90dfae04dff241082a96f79", "score": "0.62381166", "text": "public AnyType set(int index, AnyType newValue)\n {\n\t Node<AnyType> indexNode = getNode(index);\n\t AnyType oldValue = indexNode.getData();\n\n\t indexNode.setData(newValue);\n\t return oldValue;\n }", "title": "" }, { "docid": "1832b83857b06cd994d0068ba824edd7", "score": "0.6230006", "text": "public void set (int index, Element element);", "title": "" }, { "docid": "7448147cf9ce2fd8a9bb54aacf29d031", "score": "0.6225597", "text": "@Override\n public void set(int index, I item, V value) {\n \n }", "title": "" }, { "docid": "6b8c68d6c34998e988fc2a4a33601c4c", "score": "0.62252164", "text": "@JsonProperty(\"index\")\n public Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "8451ee5a6b9c30e0f9aa1e3ef30a109f", "score": "0.6206735", "text": "public void resetIndex() {\n mIndex = 0;\n }", "title": "" }, { "docid": "79d7b78636ab62d8043fc3493bbd453c", "score": "0.6190751", "text": "public void set(int index, M object){\n items.set(index, object);\n notifyItemChanged(index);\n }", "title": "" }, { "docid": "8c1fb59f98d0f22f6247825bddc52c40", "score": "0.61850345", "text": "public int index() {\n return this.index;\n }", "title": "" }, { "docid": "3196d1cf2c74a0c3e348ce7b0d263f5d", "score": "0.61817235", "text": "@Override\n\tpublic T set(int index, T e) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "880408eba754518480b5fe04caf6d97c", "score": "0.61772656", "text": "public JsonArray set(int index, int value) {\n values.set(index, Json.value(value));\n return this;\n }", "title": "" }, { "docid": "9c42810e8ea9d513baff2fc8701bc3c4", "score": "0.61750495", "text": "public int index()\n {\n return index;\n }", "title": "" }, { "docid": "cb5f7df5c446e3db4a24e5833719fd38", "score": "0.6171719", "text": "public void setIndex () {\n\n\t\ttry {\n\t\t\tIndex= readFile(\"dictionary/IndexDic.txt\",\"utf-8\");\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\tchar current='0';\n\t\tchar previous;\n\t\tString parameter;\n\t\tString sep=\"\"; String number;\n\t\tint begin=-1;int end=-1;\n\t\tint aux;\n\t\tfor(int i=0;i<Index.length();i++){\n\t\t\tprevious=current;\n\t\t\tcurrent=Index.charAt(i);\n\t\t\tif(current != ' ' && current != '\\n'&& current !='\f' && current !='\\r'){\n\t\t\t\tif (begin ==-1){\n\t\t\t\t\tbegin=i;\n\t\t\t\t}\n\t\t\t} else if (previous != ' ' && previous != '\\n' && previous !='\f' && previous !='\\r'){\n\t\t\t\tend=i;\n\t\t\t\tparameter = Index.substring(begin,end);\n\t\t\t\taux=(int)parameter.charAt(0)-(int)'0';\n\t\t\t\tif(aux<10){\n\t\t\t\t\tnumber=parameter;\n\t\t\t\t\tdictionary.add(new Separator(sep,number,-1));\n\t\t\t\t\tbegin=-1;\n\t\t\t\t}else {\n\t\t\t\t\tsep=trimm(parameter);\n\t\t\t\t\tbegin=-1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "58efe46eca0b46cad1028967aab150a8", "score": "0.617076", "text": "public void setField(int index, Field field) {\n model.setField(index, field);\n }", "title": "" }, { "docid": "f92675c3ddf218abf320fee4efa78a5e", "score": "0.61656284", "text": "public void setIndexe(Byte indexe) {\r\n\t\tthis.indexe = indexe;\r\n\t}", "title": "" }, { "docid": "ae178c8f3ca1bb68bd82d7f8bec5552f", "score": "0.61642045", "text": "@Override\n\tpublic void setChildIndex(Object t, int index) {\n\t\t\n\t}", "title": "" }, { "docid": "bd6ec5d65dfe3e28072ac399308cf464", "score": "0.6163497", "text": "@Override\n public void setIndex(int currentIndex) throws IndexOutOfBoundsException{\n if (currentIndex < 0 || currentIndex > replaceable.length()) {\n throw new IndexOutOfBoundsException();\n }\n this.currentIndex = currentIndex;\n }", "title": "" }, { "docid": "0b35c1c6f0e3f522e1682a50377b75d6", "score": "0.61436784", "text": "public void set(int Index, String Value) {\n values.put(new Integer(Index), Value);\n }", "title": "" } ]
88b8fcb427dd9af2822b8a5f5379b993
When a new heart piece is obtained increases health and sets heart pieces to zero.
[ { "docid": "2612f8592bacc7c4b589af496b86500c", "score": "0.8137145", "text": "public void fillHeart() {\n heartPieces = 0;\n maxHealth += 2;\n }", "title": "" } ]
[ { "docid": "af03a495443efc23ea08678f39bd8d1f", "score": "0.6762766", "text": "public void decreaseHealth() { setHealth(getHealth()-1); }", "title": "" }, { "docid": "1ffed08018a2a816c557e69d3a52c1aa", "score": "0.67033035", "text": "@Override\r\n public void increaseHealth() {\r\n health++;\r\n }", "title": "" }, { "docid": "355b84e3896bddbe9ff2c68e1b1d4b00", "score": "0.6556585", "text": "private void heal(){\n if(ge.castle.getHealth()<100){\n Healing h= new Healing(20);\n int diff= ge.getCoins() - h.get_cost();\n if (diff>=0){\n h.affect(ge.castle);\n ge.setCoins(diff);\n }\n\n\n }\n\n\n }", "title": "" }, { "docid": "aa416ef6ec129a7ec1e565a8e175393b", "score": "0.64810663", "text": "public void care() {\r\n\t\tremoveEnergy(10);\r\n\t\taddHealth(10);\r\n\t}", "title": "" }, { "docid": "689f06e74b92958ee63a957491d27557", "score": "0.6456497", "text": "public void heal() {\n if ( canHeal() && isAlive() ) intHealth++;\n }", "title": "" }, { "docid": "e871cffe02e4233ee16fd2365373151f", "score": "0.64197975", "text": "private void gainSomeHealth() {\n Log.d(\"WORM\", \"OMNOMNOMNOMNOMN BACTERIA!!!!!\");\n this.health += Constants.BACTERIA_BONUS;\n }", "title": "" }, { "docid": "f8cbec1f927ba476cc76acc9683f2433", "score": "0.6346825", "text": "public void harm() {\n if ( getHealth() != DEAD ) intHealth--;\n }", "title": "" }, { "docid": "6553b1b80a722dff270f330ea7c4db8f", "score": "0.63170356", "text": "public void reduceHealth() {\n this.lives -= 1;\n }", "title": "" }, { "docid": "9ede43e4bd9697a7e231dbdcb1160884", "score": "0.63117784", "text": "@Override\n\tpublic void tick() {\n\t\tminecraft.thePlayer.setHealth(20.0F);\n\t}", "title": "" }, { "docid": "08de85c74ab90513c7ad696221d8349b", "score": "0.63066626", "text": "@Override\r\n\tpublic void setHealth(double newHealth) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c809e4687045c29028ec533943addb0b", "score": "0.6216158", "text": "@Override\n\tpublic void changeHealth() {\n\n\t}", "title": "" }, { "docid": "53a9855a89f78a7cacc326a488312f18", "score": "0.6208569", "text": "public void heal() {\n heal(MAX_HEALTH);\n }", "title": "" }, { "docid": "d32014a35ca174d31e84f0342a50725f", "score": "0.61974436", "text": "public void addEnemyHealthLoss(int health) {\n this.enemyHealthLoss += health;\n }", "title": "" }, { "docid": "1fbdfc1c550df1543a3d88ccefbb925b", "score": "0.6192714", "text": "protected int gainHealth(){\n return level * HEALTH_BONUS;\n }", "title": "" }, { "docid": "b89f8fefb61a3f25cebf7fc914accbce", "score": "0.6184252", "text": "@Override\n\tpublic void changeHealth() {\n\t\t\n\t}", "title": "" }, { "docid": "42cd06a7fc99171f37403b52e8d7710d", "score": "0.615312", "text": "private void incrementHunger()\n {\n foodLevel--;\n if(foodLevel <= 0) {\n setDead();\n }\n }", "title": "" }, { "docid": "68d126c844bebc01c1e11206b66153a4", "score": "0.6149428", "text": "public void goldenHeartInto() {\n if (goldenHeartInto && goldnum == 1 && firstTimeH) {\n if (!stopped2) {\n noLoop();\n firstTimeH = false;\n fill(248,234,79);\n textFont(createFont((\"PressStart2P-Regular.ttf\"), 12));\n text(\"You got a Golden Heart!\", 30, 195);\n text(\"1.You can have one more life when you die, OR\",30, 220);\n text(\"2.Press [Enter] to get into Super Mode, OR\", 30, 245);\n text(\"3.Press [S] to increase the chance of Super Fire.\", 30, 270);\n text(\"Press [Y] to continue first\", 30, 295);\n stopped2 = true;\n fill(255);\n }\n }\n }", "title": "" }, { "docid": "f24565f1700ef3e9738b55fcd12a6b32", "score": "0.61487633", "text": "public void addHealth(int h){\n health+=h;\n if (health > 100){health = 100;}\n }", "title": "" }, { "docid": "cc24bfe6307bae6846be94608d85663e", "score": "0.6137635", "text": "public void setHealth(int amt);", "title": "" }, { "docid": "134f00386901c348dd1090233702d8d5", "score": "0.6095634", "text": "public int heal(int health) {\r\n\t\tif (this.health + health < 0)\r\n\t\t\tthis.health = 0;\r\n\t\tthis.health += health;\r\n\t\treturn this.health;\r\n\t}", "title": "" }, { "docid": "8f13c8808779451f4f83e83743f8f29a", "score": "0.6092639", "text": "protected void healingPotion() {\n super.setMyCharacter_HealthPoints(randomGen.nextInt(20));\n }", "title": "" }, { "docid": "d4d30c5c9e13fb4672ea0ee4a8aaf218", "score": "0.60644966", "text": "void onNotify(int heartRate);", "title": "" }, { "docid": "1682e899b30623c5bd1840abb66e74a1", "score": "0.60058564", "text": "public void setHeart(Heart heart)\n\t{\n\t\tSystem.out.println(\"heart object===>created\");\n\t\tthis.heart= heart;\n\t}", "title": "" }, { "docid": "1bd2755b95630f770dbc76b1f9a2dd2a", "score": "0.6001503", "text": "public void updateHearts() {\n\t\tint lives = game.getplayer().getNumLives();\n\t\tSpriteBatch batch = game.getBatch();\n\t\tbatch.begin();\n\t\tif (GameInfo.normal) {\n\t\t\tswitch (lives) {\n\t\t\tcase 6:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 60f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 + 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 60f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(halfHeart, GameInfo.WIDTH / 2 + 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 60f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 + 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tbatch.draw(halfHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 60f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 + 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 60f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 + 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(halfHeart, GameInfo.WIDTH / 2 - 60f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 + 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else if (GameInfo.difficult) {\n\t\t\tswitch (lives) {\n\t\t\tcase 4:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 40f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 , GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 40f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(halfHeart, GameInfo.WIDTH / 2 , GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 40f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 , GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbatch.draw(halfHeart, GameInfo.WIDTH / 2 - 40f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbatch.draw(emptyHeart, GameInfo.WIDTH / 2 , GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else if (GameInfo.extream) {\n\t\t\tswitch (lives) {\n\t\t\tcase 2:\n\t\t\t\tbatch.draw(fullHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbatch.draw(halfHeart, GameInfo.WIDTH / 2 - 20f, GameInfo.HEIGHT - 90, 40f, 40f);\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t}\n\t\tbatch.end();\n\t}", "title": "" }, { "docid": "2ea3097b02315e5f5a0e61d103c24eba", "score": "0.5997546", "text": "public void setHealth(int health) {\r\n this.health = health;\r\n }", "title": "" }, { "docid": "f95ed30d366bc43e1e6ba54631ccfbed", "score": "0.5983361", "text": "public void start () {\n if (heart != null)\n heart.heartAttack();\n heart = new MyHeart(300000);\n }", "title": "" }, { "docid": "ee4268d103aad2fb3858e5f29920226b", "score": "0.59824455", "text": "public void setHealth(int h) {\n health = h;\n }", "title": "" }, { "docid": "9d6a86a0fd4f66d43dc6999d6f14c8f8", "score": "0.5965739", "text": "public void eatHumans() {\n System.out.println(\"so- well, never mind, just increase its energy by 25\");\n this.energyLevel += 25;\n }", "title": "" }, { "docid": "ce6e896b8ba73f1e3dedb7971ad03f28", "score": "0.59521973", "text": "public void update(){\n\t\tif(health == 0){\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b19c0c554bd14f1eb77e4feb8067789f", "score": "0.5932597", "text": "public void battleRefresh(){\n\t\tint temphp = this.hp;\n\t\ttemphp += (temphp + 20 > maxhp)? (maxhp-temphp):20;\n\t\tthis.energy = 50;\n\t\tthis.hp = temphp;\n\t\tthis.disable = false;\n\t\tthis.stun = false;\n\n\t}", "title": "" }, { "docid": "202e61f7d414794d3bc7cbeeefde0c31", "score": "0.5926986", "text": "@Override\r\n public int decreasehealth() {\r\n health--;\r\n return health;\r\n }", "title": "" }, { "docid": "949a4371775297fcb2bdfe411ae7ea0a", "score": "0.59243405", "text": "public void heal(){\n\t\tif (hp>0){\r\n\t\t\thp=Math.min(orighp,hp+20);\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0822653d3a3d2c9484e2b9bcc4d7923b", "score": "0.5906156", "text": "public void setHealth(int health) {\r\n\t\tthis.health = health;\r\n\t}", "title": "" }, { "docid": "f95bdf4f89b4b380f2c2522a3cd5d5b8", "score": "0.59003496", "text": "public void addHealth(int health) {\r\n\t\tif (health > 0) {\r\n\t\t\tif ((this.health + health) > 100) {\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t} else {\r\n\t\t\t\tthis.health += health;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce43fb14a0f7a7f606236c12f8624282", "score": "0.588678", "text": "public void setHealth( double decreaseHealth ) {\n int intDecreaseHealth = ( int ) decreaseHealth;\n health = health - intDecreaseHealth;\n if ( health < 0 ) {\n alive = false;\n }\n }", "title": "" }, { "docid": "1568a7095be772d290a936c32824fa81", "score": "0.58714443", "text": "public void addBlackPiece() {\n blackCount++;\n }", "title": "" }, { "docid": "ab9c1afc00bef118124c1ed9ded98bd0", "score": "0.5865708", "text": "public void setHealth(final int health) {\n this.health = health;\n }", "title": "" }, { "docid": "ab9c1afc00bef118124c1ed9ded98bd0", "score": "0.5865708", "text": "public void setHealth(final int health) {\n this.health = health;\n }", "title": "" }, { "docid": "bf52e054862fcdd01f63873eb95e6103", "score": "0.5841578", "text": "public void setHealth(int health) {\r\n\t\tif (health >= 0) {\r\n\t\t\tthis.health = health;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f9fe56e6724177e16dab9859980e9c78", "score": "0.5821638", "text": "public void setEnemyHealth() {\n for(Enemy ene : game.getEnemies()) {\n enemiesHealth += ene.getLife();\n }\n }", "title": "" }, { "docid": "6ebffff65c89f2d73636dbfff49d165c", "score": "0.5784178", "text": "protected void addCrownPiece(){\n myCrownPieces++;\n\n }", "title": "" }, { "docid": "1b0e2fecc97daf70cec1b0a32de1958e", "score": "0.57781667", "text": "public void drawHearts() {\n this.image(golden, 570, 458, 16, 13);\n textFont(createFont((\"PressStart2P-Regular.ttf\"), 14));\n text(\"x\", 590, 471);\n text(String.valueOf(goldnum), 607, 472);\n if (tank.get(0).getHP() == 3) {\n this.image(heart, 490, 457, 16, 16);\n this.image(heart, 515, 457, 16, 16);\n this.image(heart, 540, 457, 16, 16);\n } else if (tank.get(0).getHP() == 2) {\n if (!hit1) {\n hit1 = true;\n blood = true; // invoke getHit();\n }\n this.image(heart, 490, 457, 16, 16);\n this.image(heart, 515, 457, 16, 16);\n } else if (tank.get(0).getHP() == 1) {\n hit2();\n this.image(heart, 490, 457, 16, 16);\n } else if (doIlose()){\n // There will be a change of background even if the tank is destroyed.\n blood = true; // invoke getHit();\n }\n }", "title": "" }, { "docid": "427491540f6f15947fa1363198fd23d0", "score": "0.5777802", "text": "public void increaseHealthPoint(int healthPoints) {\n this.healthPoints += healthPoints;\n }", "title": "" }, { "docid": "c8c44c51cc1510c70db60dc5a3baef37", "score": "0.5776937", "text": "public abstract void setHealth(int health);", "title": "" }, { "docid": "520f36d16d6637e542f47743e03c632c", "score": "0.57647425", "text": "private void updateHealthBar() {\n EntityUtils.updateHealthBar(this, this.getHealthBar());\n }", "title": "" }, { "docid": "8bb7efb713463f545098ef7334de8f9a", "score": "0.57390875", "text": "public void heal(double amount) {\n if (health < 100) {\n if ((health + amount) > 100) {\n health = 100;\n } else {\n health += amount;\n }\n }\n }", "title": "" }, { "docid": "c9c5d743b0d588cad1acaea1646bcbbe", "score": "0.57383126", "text": "public void lostHealth() {\r\n\t\thealthLevel--;\r\n\t\t\r\n\t\t// if current speed is greater than max speed times health level divide by 10\r\n\t\twhile(getSpeed() > (getMaxSpeed() * getHealthLevel() / 10)){\r\n\t\t\tbrake();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ba0c36e6c29c04b2a7f0e3792c5586c7", "score": "0.5732365", "text": "public void recover() {\n healthPoints+=10-(age/10)+Dice.d6(2);\n if(healthPoints>100)\n healthPoints = 100;\n }", "title": "" }, { "docid": "569ed343b63690c8deba895abefbe352", "score": "0.5705815", "text": "public Heart() {\n setImage(HEART_0_PATH);\n }", "title": "" }, { "docid": "b4d67c2b9c8cb424cd5b04b371be2a15", "score": "0.5704892", "text": "public void turnRefresh(){\n\t\tint tenergy = this.energy;\n\t\ttenergy += (tenergy + 10 > 50)?0:10;\n\t\tthis.energy = tenergy;\n\t\tthis.stun = false;\n\t}", "title": "" }, { "docid": "b327a263f47bd7431bd5caa77963c15e", "score": "0.5691144", "text": "public void heal(int h) {\n if (HP + h >= maxHP) {\n HP = maxHP;\n } else {\n HP = HP + h;\n }\n }", "title": "" }, { "docid": "c3d85577ccadcef1f1bf0c1821078ceb", "score": "0.56894743", "text": "public BeholsterBoss()\n {\n healthPoints = 10000;\n healthBar = new HealthBar(600, 25, 10000 , green);\n }", "title": "" }, { "docid": "d9c96ac4f249b56d776cebd28d1f9be2", "score": "0.56853616", "text": "public void increaseHeatUnit() {\n\t\tSystem.out.println(\"increasing heat unit\");\n\t\tif(bodyHeatUnit<6)\n\t\t\tbodyHeatUnit++;\n\t}", "title": "" }, { "docid": "848f84253a4718d5cbbaaf14c23da530", "score": "0.5684462", "text": "protected void addHealingPotion() {\n myHealingPotions++;\n }", "title": "" }, { "docid": "9ed010b8184482da216e09303b011ab5", "score": "0.56694657", "text": "public void setHealth(int health) {\r\n\t\tif (health >= 0 && health <= 100) {\r\n\t\t\tthis.health = health;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "aad4b4c35e8bf72c0579834e3f89dbaf", "score": "0.5663923", "text": "public void increaseHealthLost(double amount){\n\t\tthis.health_lost = this.health_lost + amount;\n\t\tif(this.health_lost >= 1.0){\n\t\t\tthis.health_lost = 1.0;\n\t\t}\n\t}", "title": "" }, { "docid": "07ed002136fedc0bd82b644875309752", "score": "0.56569386", "text": "public abstract void reduceHealth(int d);", "title": "" }, { "docid": "ec0dcba427ca03ef0a4cd5dc5bb6ed48", "score": "0.5654758", "text": "public void takeHealth(int amount){\n\t\tthis.health -= amount;\n\t\t\n\t\tMain.health.setText(\"Health: \" + this.health);\n\t\t\n\t\tif(this.health <= 0){\n\t\t\tthis.remove();\n\t\t\tMain.health.setText(\"Health: 0\");\n\t\t\t\n\t\t\tGame.sound_bigExplosion.play();\n\t\t\t\n\t\t\tGame.instance.reset();\n\t\t}\n\t}", "title": "" }, { "docid": "b3a58862f29ddfa0141880341fc1d11e", "score": "0.56290483", "text": "private void setEnergy(Coffee newCup){\n energy += newCup.getEnergyValue();\n }", "title": "" }, { "docid": "703af2fc8ab0734184fa0f58b80d4426", "score": "0.56190574", "text": "public void generateGodlenHeart() {\n if (!generated) {\n if (level == 1) {\n randomG = 1;\n }\n if (sprites.getDesctoyed() == randomG) {\n goldenCountDown = true; // Invoke goldenCountDown()\n sprites.findThisSprite(randomG).makeItGoldenHeart(golden);\n generated = true;\n }\n }\n }", "title": "" }, { "docid": "a43addffe1172e98c3e7ff9f7acaf33f", "score": "0.5610701", "text": "public void update() {\n\t\tfoodPheromone -= evapRate;\n\t\thomePheromone -= evapRate;\n\t\tif (foodPheromone < 0) {\n\t\t\tfoodPheromone = 0;\n\t\t} else if (homePheromone < 0) {\n\t\t\thomePheromone = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "5246b5b202c84be530f51b5e6040ae01", "score": "0.5607324", "text": "public void updateHealth(int amount) {\n this.health += amount; // update the health\n\n if (this.health > 100) { // level health off at max whenever it goes over\n this.health = 100;\n }\n }", "title": "" }, { "docid": "7bdf762b24e2105024e5e54deb0f0c87", "score": "0.56059015", "text": "public int setEnergy(double newEnergyValue) \r\n { \r\n int i=0;\r\n double now = getTime() ;\r\n \r\n // Compute the time when the battery will be drained with\r\n // the current rate of power drain. Then schedule an event \r\n // to handle the case of battery completely being drained\r\n double totalPower=0.0;\r\n for (i=0; i< MAX_COMPONENT; i++)\r\n totalPower += ( currentRating[i] * VOLTAGE );\r\n newEnergyValue = (newEnergyValue < 0.0)?0.0:newEnergyValue;\r\n newEnergyValue = (newEnergyValue > 100.0)?100.0:newEnergyValue;\r\n energy_= (newEnergyValue/100.0) * totalEnergy;\r\n\r\n if ( isDead() ) \r\n {\r\n batteryOutPort.doSending(\"BATTERY_OUT\");\r\n energy_ = 0.0 ;\r\n return 1;\r\n }\r\n\r\n if (totalPower != 0.0 ) \r\n { // cannot be divided by 0\r\n double timeToZero = energy_*myTable.getCapacity(totalPower*1e3/4)/totalPower;\r\n if ( batteryOutEventTimer != null )\r\n cancelFork(batteryOutEventTimer) ;\r\n batteryOutEventTimer = fork(forkPort, \"BATTERY_OUT\", timeToZero);\r\n }\r\n else\r\n if ( batteryOutEventTimer != null )\r\n cancelFork(batteryOutEventTimer) ;\r\n return 1; \r\n }", "title": "" }, { "docid": "6b7b4162e94fedfd37c3554ebe2546d5", "score": "0.55969334", "text": "public void changeHealth(int i) {\n if (this instanceof Player) {\n if (i < 0 && -i >= health.get()) { // player die\n Player p = (Player) this;\n health.set(health.get() + i);\n p.getDungeon().gameOver();\n return;\n }\n if (i > 0 && health.get() > 5) { // stop over healing\n return;\n }\n PlayerBase p = (PlayerBase) this;\n p.isHurted.set(true);\n }\n \n\n health.set(health.get() + i);\n }", "title": "" }, { "docid": "a9fa6e9a7b7a4abe55239dfcf9077280", "score": "0.55953383", "text": "@EventHandler\n public void playerHungerDamage(FoodLevelChangeEvent e){\n\n // Set the player as the entity involved\n// Player player = (Player) e.getEntity();\n\n /*\n If food level is less than or at 0,\n damage the player every 4 seconds by .5 hearts\n until they eat or reach .5 total health\n */\n/* if (player.getFoodLevel() <= 0) {\n while(e.getEntity().getHealth() > 1){\n\n player.setHealth(player.getHealth() - 1);\n }\n }*/\n }", "title": "" }, { "docid": "147c92475b71092d1c5062e491f7ff42", "score": "0.558741", "text": "public void isGolden() {\n goldnum++;\n had = true;\n goldenCountDown = false;\n goldenHeartInto = true; // Invoke goldenHeartInto();\n fill(255);\n }", "title": "" }, { "docid": "6c175eb763330d6c1719112709621763", "score": "0.5581442", "text": "@Override\r\n public void eat() {\r\n this.health+=10;\r\n System.out.println(\"Yumm\" + this.getName() + \"enjoys eating thier food and now has \" + this.getHealth() + \"heatlh\");\r\n }", "title": "" }, { "docid": "4aec90b73bb89e45bd19e15a0dc1304e", "score": "0.55799264", "text": "public void addHealth(int [] discardPile)\n {\n int cards =0;\n for(int i=0;i<discardPile.length;i++)\n {\n healthDeck[i]=discardPile[i];\n if(discardPile[i]!=0)\n cards++;\n }\n cardsRemaining+=cards;\n }", "title": "" }, { "docid": "c58020f23881e4abbe38bf3c53b82e22", "score": "0.55778444", "text": "public void heal(int heal, int mana, boolean player) {\n if(player) {\n if(checkMana(mana, true)) {\n healthBar.setProgress(healthBar.getProgress() + heal);\n manaBar.setProgress(manaBar.getProgress() - mana);\n updateBar(health_status, healthBar, true);\n updateBar(mana_status, manaBar, false);\n return;\n }\n } else {\n if(checkMana(mana, false)) {\n oppHealthBar.setProgress(oppHealthBar.getProgress() + heal);\n oppManaBar.setProgress(oppManaBar.getProgress() - mana);\n updateBar(opp_health_status, oppHealthBar, true);\n updateBar(opp_mana_status, oppManaBar, false);\n return;\n }\n }\n\n if(player) Toast.makeText(this, \"Not Enough Mana\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "085b0003e4df03179738500e7cef79c6", "score": "0.5573686", "text": "protected void setMyHealth(final int theHP) {\n super.setMyCharacter_HealthPoints(theHP);\n }", "title": "" }, { "docid": "cbfc43cedeeeba52129daff1fc98191c", "score": "0.55723906", "text": "protected void heroTakesDamage() {\n super.setMyCharacter_HealthPoints(-randomGen.nextInt(30));\n }", "title": "" }, { "docid": "54ed3afa708290d54e79696ce2de8e98", "score": "0.55714977", "text": "public void consumeEnergy() {\n if (!world.isRemote && this.getEnergyCost() > 0 &&\n this.getEnergyCurrent() >= this.getEnergyCost()) {\n this.energyStorage.extractEnergy(this.getEnergyCost(), false);\n //it drained, notify client \n this.markDirty();\n }\n }", "title": "" }, { "docid": "782d4b69d5a3537d40bfb64755b52536", "score": "0.5558848", "text": "void removeHealth() {\n if (healthBar != null) {\n healthBar.remove();\n }\n }", "title": "" }, { "docid": "e3166084b48b5482a4088b9122644b05", "score": "0.5557711", "text": "public Builder clearHealth() {\n \n health_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ace173945f3d37cb5a8f0e07e49b026d", "score": "0.55547065", "text": "public void kill() {\n intHealth = DEAD;\n }", "title": "" }, { "docid": "580d178d27c0732d5d6e179cddea6f04", "score": "0.55398", "text": "public void lifeBar(int lifeNum, Graphics g) {\n Image full = Toolkit.getDefaultToolkit().getImage(\"heart_full.png\"); // import image of full heart\n Image empty = Toolkit.getDefaultToolkit().getImage(\"heart_empty.png\"); // import image of empty heart\n lifeNum -= 5; // range of -5 to 0\n\n int fullHeart = 0; // number of full hearts\n\n for (int xpos = 812; xpos < 912 + lifeNum * 20; xpos += 20) { // 5 hearts, number of hearts goes down when lifeNum goes down\n g.drawImage(full, xpos, 250, 20, 20, this); // draw the hearts to depict lifebars\n fullHeart++;\n }\n\n for (int xpos = 892; xpos > 792 + fullHeart * 20; xpos -= 20) {\n g.drawImage(empty, xpos, 250, 20, 20, this); // draw the hearts to depict lifebars\n }\n }", "title": "" }, { "docid": "1d6951aec340f768d48bfbfd157e2707", "score": "0.5538806", "text": "public void setCurrentHealth(float value) {\n this.currentHealth = value;\n }", "title": "" }, { "docid": "2a318d4b8b2b01865f3354725f9c65bd", "score": "0.5524129", "text": "public Builder setHealth(int value) {\n bitField0_ |= 0x00000001;\n health_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8dec32bb1e111a1782ddfa33033f9d27", "score": "0.55240524", "text": "private void createHealth(int hp){\r\n\t\tthis.health=new Health(hp);\r\n\t}", "title": "" }, { "docid": "dc20e9d3a5ab71968045d5e1cd7f4004", "score": "0.55225223", "text": "@EventHandler\r\n public void playerConsumeItem(PlayerItemConsumeEvent event) {\n Player player = event.getPlayer();\r\n double a = Math.random() * 19 + 1;\r\n if (a < player.getHealth()) {\r\n player.setHealth(a);\r\n }\r\n\r\n }", "title": "" }, { "docid": "de12fc94aefa13f49c3008cde2418c28", "score": "0.5510774", "text": "private Player healCharacter(Player player) {\n int newHealth = player.character.getHealth() + 10;\n if (newHealth >= player.character.getTotalHealth()) {\n newHealth = player.character.getTotalHealth();\n }\n player.character.setHealth(newHealth);\n return player;\n }", "title": "" }, { "docid": "5bc991efb775513dd7f5033d74011896", "score": "0.5510386", "text": "@Override\r\n\tpublic void onHealthHeartRate(final HealthHeartRate arg0, HealthHeartRateAndItems arg1) {\n\t\tif (arg0 != null) {\r\n\t\t\tmHandler.postDelayed(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\theartSb.append(arg0.toString()+\"\\n\");\r\n\t\t\t\t\ttvHeartData.setText(\"心率数据:\\n\\n\" + heartSb.toString());\r\n\t\t\t\t}\r\n\t\t\t}, 200);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "23523b7cd8424b1ea26d37cbe3a5fe37", "score": "0.5506646", "text": "public void setHealth(int h){\n\t\thealth =h;\n\t\thealthLabel.setText(\"Health: \" + health);\n\t}", "title": "" }, { "docid": "733f9d99ba6e6387c6cf2ab035ad3b23", "score": "0.54959", "text": "public void burn() {\n\n fuel = fuel - 1;\n }", "title": "" }, { "docid": "725475b21a73ce0b862abae031e98109", "score": "0.548872", "text": "public void updateEnergy(int amount) {\n this.energy += amount; // update the energy\n\n if (this.energy > 100) { // level energy off at max whenever it goes over\n this.energy = 100;\n } else if (this.energy < 0) { // level energy off at 0 whenever it goes under\n this.energy = 0;\n }\n }", "title": "" }, { "docid": "ba96a574ad3ad7c8da6bf060f2f13cc3", "score": "0.5484327", "text": "public static void playGame() \r\n {\r\n if (health.getNumber() <= 90)\r\n {\r\n health.setNumber(health.getNumber() + 10);\r\n System.out.println(\"Health increase!\");\r\n }\r\n else if (health.getNumber() < 100 && health.getNumber() > 90)\r\n {\r\n health.setNumber(100); \r\n System.out.println(\"Health increase!\"); \r\n }\r\n else \r\n {\r\n System.out.println(\"Health increase!\"); \r\n }\r\n }", "title": "" }, { "docid": "dbfb8b7aa68d2c3d443c96dd3f8db649", "score": "0.548368", "text": "public void decEnergy1(){\n this.energy -= 1;\n }", "title": "" }, { "docid": "c98ff76393b0dd0f061b2c562d5809a9", "score": "0.54755664", "text": "@Override\n public Health health() {\n\n if (1+1 != 2) {\n return Health.down().build();\n }\n return Health.up().build();\n }", "title": "" }, { "docid": "9cc07747df22cb975bfba41fbc1c2888", "score": "0.54753864", "text": "public void decreaseHealthPoint(int healthPoints) {\n this.healthPoints -= healthPoints;\n }", "title": "" }, { "docid": "f5bf203dafa9fcdadd1eed53d2da4add", "score": "0.5467178", "text": "public Builder clearHealth() {\n bitField0_ = (bitField0_ & ~0x00000001);\n health_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4b0869ca45077a8a9249d356f8bb2909", "score": "0.54561794", "text": "public void setCurrentHealth(float health) {\n\t\tthis.currentHealth = health;\n\t}", "title": "" }, { "docid": "f0e448597412681a73b468354c397732", "score": "0.54440224", "text": "public void resetHealth(View view) {\n Toast.makeText(MainActivity.this, \"Starting new game...\", Toast.LENGTH_SHORT).show();\n yosiHealth = edyHealth = 200;\n dispEdyDmg(yosiHealth);\n dispYosiDmg(edyHealth);\n setVisibility(true, edyButtonIDs);\n setVisibility(true, yosiButtonIDs);\n }", "title": "" }, { "docid": "d0bc5da61e66824ec95b4d6f98fbd1d9", "score": "0.5442888", "text": "public void update() {\r\n if(board.lose()) {\r\n playing = false;\r\n }\r\n //Collision\r\n if (piece.isCollision(board)) {\r\n backgroundColor = piece.getColor();\r\n board.fillChart(piece);\r\n pieces[numPieces] = piece;\r\n numPieces++;\r\n randomPos = (int)(Math.random() * 8) * getScreenWidth(getContext())/14;\r\n piece = next[0];\r\n next[0] = next[1];\r\n next[1] = next[2];\r\n next[2] = new Piece(getScreenWidth(gameView.getContext()) * 2 / 14 + randomPos, getScreenWidth(gameView.getContext()) * 1 / 14, getScreenWidth(gameView.getContext()));\r\n }\r\n if(!piece.isCollision(board)) {\r\n piece.fall();\r\n }\r\n score += board.clearLine();\r\n }", "title": "" }, { "docid": "7dbbcef3bbc504ae7af72eeae9dc36bb", "score": "0.5439631", "text": "public void setHealthValue(Integer newHealth) {\n\t\tthis.healthValue = newHealth;\n\t}", "title": "" }, { "docid": "705fb9f164f22dea0fddf9455730d9fb", "score": "0.5436245", "text": "public void heal(int i)\n {\n }", "title": "" }, { "docid": "0545d7b5bf461e49e4e50dcd19c9fe13", "score": "0.5411479", "text": "public void incEnergy1(){\n this.energy += 1;\n }", "title": "" }, { "docid": "59ed42162cf1bd716f5a6e5f15166e44", "score": "0.540311", "text": "private void onHeartClicked(DatabaseReference uploadRef) {\n uploadRef.runTransaction(new Transaction.Handler() {\n @Override\n public Transaction.Result doTransaction(MutableData mutableData) {\n Spot p = mutableData.getValue(Spot.class);\n if (p == null) {\n return Transaction.success(mutableData);\n }\n\n if (p.hearts.containsKey(getUid())) {\n // Unlove the upload and remove self from hearts\n p.heartCount = p.heartCount - 1;\n p.hearts.remove(getUid());\n } else {\n // Love the upload and add self to hearts\n p.heartCount = p.heartCount + 1;\n p.hearts.put(getUid(), true);\n }\n\n // Set value and report transaction success\n mutableData.setValue(p);\n return Transaction.success(mutableData);\n }\n\n @Override\n public void onComplete(DatabaseError databaseError, boolean b,\n DataSnapshot dataSnapshot) {\n // Transaction completed\n Log.d(TAG, \"uploadTransaction:onComplete:\" + databaseError);\n }\n });\n }", "title": "" }, { "docid": "7641797ca7a860963bff228d81c6c1ef", "score": "0.54024273", "text": "public void addRedPiece() {\n redCount++;\n }", "title": "" }, { "docid": "58ef99b051d2c1140484cea9c7ff93d7", "score": "0.5399957", "text": "public void setHealth(int health) {\n if ( health > 1 && health <= MAX_HEALTH ) intHealth = health;\n else intHealth = NEUTRAL;\n }", "title": "" }, { "docid": "22b3353bf2a88d8358438260deb6580c", "score": "0.5397511", "text": "public void updateEnergy()\r\n {\r\n double now = getTime() ;\r\n int i;\r\n\r\n if ( energy_ <= 0.0 )\r\n return; \r\n \r\n //subtract the energy spent from the last call to change power \r\n double totalPower=0.0;\r\n for (i=0; i< MAX_COMPONENT; i++)\r\n totalPower += (currentRating[i]*VOLTAGE);\r\n energy_ -= (totalPower)*(now-lastTimeOut)/myTable.getCapacity(totalPower*1e3/4);\r\n\r\n if ( energy_ <= 0.0 )\r\n energy_ = 0.0; \r\n\r\n lastTimeOut=now;\r\n }", "title": "" } ]
485fd2ba1c5a261e997d0c598a7fea9d
end merge() int[] sort(int[]) Sorts input array using mergesort algorithm Returns sorted version of input array (ascending)
[ { "docid": "73e4e6defb443c559c0b95bd470f308f", "score": "0.7696781", "text": "public static int[] sort( int[] arr ) \n {\n\tif(arr.length == 1){\n return arr;\n }\n else{\n return( merge ( sort(Arrays.copyOfRange(arr,0,arr.length/2)) , sort(Arrays.copyOfRange(arr,arr.length/2,arr.length)) ) ); \n }\n }", "title": "" } ]
[ { "docid": "d0ac65aaa25eb31f175b544b54f7d7a1", "score": "0.8343657", "text": "static void mergeSort(int[] arr){\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cab2c415d30b5c3b022ba6b85c6809ba", "score": "0.81487966", "text": "public static int[] mergeSort(int[] in) {\n\t\tint sort[] = in;\n\t\tif (sort.length <= 1) {\n\t\t\treturn sort;\n\t\t}\n\t\t\n\t\tint half = sort.length/2;\n\t\tint arr[] = new int [half];\n\t\tint arr2[] = new int [sort.length - arr.length];\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i] = sort[i];\n\t\t}\n\t\tfor (int i = 0; i < arr2.length; i++) {\n\t\t\tarr2[i] = sort[half++];\n\t\t}\n\t\t\n\t\tarr = mergeSort(arr);\n\t\tarr2 = mergeSort(arr2);\n\t\t\n\t\tint arrT = 0;\n\t\tint arr2T = 0;\n\t\tint j = 0;\n\t\t\n\t\twhile (arrT < arr.length && arr2T < arr2.length) {\n\t\t\t\n\t\t\tif (arr[arrT] < arr2[arr2T]) {\n\t\t\t\tsort[j] = arr[arrT];\n\t\t\t\tarrT++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsort[j] = arr2[arr2T];\n\t\t\t\tarr2T++;\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\twhile (arrT < arr.length) {\n\t\t\tsort[j] = arr[arrT];\n\t\t\tarrT++;\n\t\t\tj++;\n\t\t}\n\t\t\n\t\twhile (arr2T < arr2.length) {\n\t\t\tsort[j] = arr2[arr2T];\n\t\t\tarr2T++;\n\t\t\tj++;\n\t\t}\n\t\treturn sort;\n\t}", "title": "" }, { "docid": "290b2e8342a53c466f84425991fe7f08", "score": "0.8102346", "text": "public static void mergesort(int[] data){\n mergesort(data, 0, data.length - 1);\n }", "title": "" }, { "docid": "37bbaf602a56f3da4e73d17242451557", "score": "0.8099783", "text": "public static int[] mergeSort(int[] a){\n split(a);\n return a;\n\n }", "title": "" }, { "docid": "671cffcccb30ee8510a15ad5257da402", "score": "0.804922", "text": "static void mergeSort(int[] array){\n int low=0;\n int high=array.length-1;\n //array=mergeSortAlgorithm(array, low, high);\n mergeSort3(array, low, high);\n\n System.out.println(\"Merge sort:\");\n System.out.println(Arrays.toString(array));\n }", "title": "" }, { "docid": "175fa9a57cd1edfa63075c0819d3de68", "score": "0.8012355", "text": "public void mergesort()\n\t{\n\t\tint[] wr = new int[arr.length]; //Provides workspace\n\t\trecMergeSort(wr,0,wr.length-1);\n\t}", "title": "" }, { "docid": "d2a5490f801e3b801e03b8d05135cea0", "score": "0.79642314", "text": "public static int[] mergeSort(int[] array) {\n\t\tif (array == null || array.length <= 1) {\n\t\t\treturn array;\n\t\t}\n\t\t//divide separate set into two subset until each subset has only one element.\n\t\tdivide(array, 0, array.length - 1);\n\t\treturn array;\n\t}", "title": "" }, { "docid": "371c4ab3e4236e15f40196c0de880f6b", "score": "0.78979224", "text": "public static void mergeSort(int[] a){\n\t\tmergeSort(a,0,a.length-1);\n\t}", "title": "" }, { "docid": "b4ee771130de8e052ccdf61b70946ef5", "score": "0.7804215", "text": "public static void mergeSort(int[] arr) {\n int[] buf = new int[arr.length];\n mergeHelper(arr, 0, arr.length-1, buf);\n }", "title": "" }, { "docid": "c2bcc285f7f0958258189454ac056810", "score": "0.77741545", "text": "public void mergeSort(int[] array) {\n\t\tint n = array.length;\n\t\tif (n < 2) {\n\t\t\treturn;\n\t\t}\n\t\tint midOfArray = n/2; // 4 2 1\n\t\tint[] leftArray = new int[midOfArray];\n\t\tint[] rightArray = new int[n - midOfArray];\n\t\t\n\t\tfor (int i=0; i < midOfArray; i++) {\n\t\t\tleftArray[i] = array[i]; // 5 4 7 1\n\t\t}\n\t\tfor (int i=midOfArray; i < n; i++) {\n\t\t\trightArray[i-midOfArray] = array[i]; // 8 10 9 2\n\t\t}\n\t\tmergeSort(leftArray);\n\t\tmergeSort(rightArray);\n\t\tmerge(leftArray, rightArray, array);\n\n\t}", "title": "" }, { "docid": "1aea52204823c012d759d2f0a4cb47c7", "score": "0.77661514", "text": "private static int[] sortArray(int[] arr) {\n myMergeSort(arr);\n return arr;\n }", "title": "" }, { "docid": "9c1da402f442c67d7ce756d803606440", "score": "0.7765473", "text": "public void sort(int[] input);", "title": "" }, { "docid": "d05e23a978eafdd0fb35537d8a9ebff9", "score": "0.77553624", "text": "public static int[] mergeSort(int[] a) {\n if(a.length <= 1)\n return a;\n //if not already in its base case, we need to get it there\n else {\n //divide the array into two halves\n int[] l = new int[a.length / 2];\n int[] r = new int[a.length - l.length];\n\n for(int i = 0; i < l.length; i++)\n l[i] = a[i];\n\n for(int i = 0; i < r.length; i++)\n r[i] = a[l.length + i];\n\n l = mergeSort(l);\n r = mergeSort(r);\n\n //create a resulting array that contains the two halves sorted\n int[] result = merge(l, r);\n return result;\n }\n }", "title": "" }, { "docid": "84522a4a183d905520064ee89ec81261", "score": "0.7752859", "text": "public static void mergeSort(int[] arr){\n\t\tmergeSort(arr, 0, arr.length-1);\n\t}", "title": "" }, { "docid": "83d054683de0d4d52b30b4960921d78e", "score": "0.77509075", "text": "public static int[] mergeSort(int[] array) {\r\n if (array.length == 0) {\r\n return array;\r\n }\r\n return mergeSort(array, 0, array.length - 1);\r\n }", "title": "" }, { "docid": "4af12689573b5cdf78072a126ee5a4b8", "score": "0.7721809", "text": "public int iMergeSort(int[] a) {\n\t\tint[] from = a, to = new int[a.length];\n\t\tint count = 0; //added by Ben Sims\n\t\tfor (int blockSize=1; blockSize<a.length; blockSize*=2) {\n\t\t\tfor (int start=0; start<a.length; start+=2*blockSize){\n\t\t\t\tcount++;//added by Ben Sims\n\t\t\t\tmergeWithoutCopy(from, to, start, start+blockSize, start+2*blockSize);\n\t\t\t}\n\t\t int[] temp = from;\n\t\t from = to;\n\t\t to = temp;\n\t\t}\n\t\tif (a != from)\n\t\t\t// copy back\n\t\t for (int k = 0; k < a.length; k++)\n\t\t \ta[k] = from[k];\n\t\t\n\t\treturn count;\n\t}", "title": "" }, { "docid": "16c76d7474f0bec2036ff53bf9244286", "score": "0.77002937", "text": "@Override\n public int[] sort(int[] array) {\n if (array.length <= 1) {\n return array;\n }\n int[] left = new int[array.length / 2];\n int[] right = new int[(array.length+1)/2];\n\n System.arraycopy(array, 0, left, 0, array.length / 2);\n System.arraycopy(array, array.length / 2, right, 0, (array.length+1) / 2);\n\n left = sort(left);\n right = sort(right);\n\n return merge(left,right);\n }", "title": "" }, { "docid": "be4f4586d78a4fac932c780d8494cbda", "score": "0.7694457", "text": "public void mergeSort(Integer[] arr) {\n\t\t// call doMergeSort method using array name, initial index, \n\t\t// final index and initial number of compares\n int compares = doMergeSort(arr, 0, arr.length - 1, 0);\n System.out.println(\"\\nNumber of elements = \" + arr.length +\n \" Number of compares = \" + compares);\n }", "title": "" }, { "docid": "bbd3655d4465d465019651b238aad88d", "score": "0.7691011", "text": "public void mergeSort() {\n\t\t\n\t\tvar array = new int[] { 4, 1, 3, 2, 0, -1, 7, 10, 9, 20 };\n\t\t\n\t\tSystem.out.println(\"Beginning Array: \");\n\t\t\n\t\tfor (int i : array) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"***********************************\");\n\n\t\tdivide(array, 0, 9);\n\t\t\n\t\tSystem.out.println(\"Sorted Array: \");\n\t\t\n\t\tfor (int i : array) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"***********************************\");\n\t}", "title": "" }, { "docid": "5ed6ddb6c3ec3d844e274d209cfd6fdb", "score": "0.76416516", "text": "@Override\n\tpublic int[] sort(int[] array) {\n\t\tif (array == null || array.length == 0 || array.length == 1) {\n\t\t\treturn array;\n\t\t}\n\t\t\n\t\treturn mergesort(array, 0, array.length - 1);\n\t}", "title": "" }, { "docid": "ddec5d9507f6d91a4b0b2f6dd55cbd5f", "score": "0.76088", "text": "public static int[] merge_sort(int[] arr) {\n if (arr.length == 1) {\n return arr;\n }\n int mid = arr.length / 2;\n // (left) - array arr with values from the first element to the middle (mid),\n // that is, the left side of the main array\n int[] left = merge_sort(Arrays.copyOfRange(arr, 0, mid));\n // (right) - array arr with values from mid to final, that is, the right side\n int[] right = merge_sort(Arrays.copyOfRange(arr, mid, arr.length));\n\n return merge_arrays(left, right);\n }", "title": "" }, { "docid": "56fcb1e4b1e6249c3690ee0884c87b2a", "score": "0.75811017", "text": "private static void myMergeSort(int[] array) {\n if (array.length <= 1) {\n return;\n } /*\n\t\tDivide procedure....................\n\t\tHere we go on dividing the unsorted array into n subarray, till we reach down to 1 single element in the array.\n Merge procedure.........................\n Here we merge the sorted lists until we get a single sorted list.\n\t\t\t */\n int middle = array.length / 2;\n int left = middle;\n int right = array.length - middle;\n //Creating 2 temporary arrays\n int[] leftArr = new int[left];\n int[] rightArr = new int[right];\n\n\n //we are copying the elements in these temporary arrays.\n\n for (int i = left; i < array.length; i ++) {\n rightArr[i - left] = array[i];\n }\n for (int i = 0; i < left; i ++) {\n leftArr[i] = array[i];\n }\n myMergeSort(leftArr);//sort left half recursively\n myMergeSort(rightArr);//sort right half recursively\n\n int i = 0;\n int j = 0;\n //procedure for merge step\n while (i < left && j < right) {\n if (leftArr[i] <= rightArr[j]) {\n array[i + j] = leftArr[i];\n i++;\n } else {\n array[i + j] = rightArr[j];\n j++;\n }\n }\n //when one of the left or right list get exhausted\n while (i < left) {\n array[i + j] = leftArr[i];\n i++;\n }\n while (j < right) {\n array[i + j] = rightArr[j];\n j++;\n }\n }", "title": "" }, { "docid": "85286c6375adbc369f3e671fc479ab7a", "score": "0.7563011", "text": "public static void mergeSort(int[] arr) {\n if (arr.length > 1) {\n // splits the array in to two\n int[] leftside = leftHalf(arr);\n int[] rightside = rightHalf(arr);\n \n // recursively sort the two split sides\n mergeSort(leftside);\n mergeSort(rightside);\n \n // merges the sorted sides into a sorted whole\n merge(arr, leftside, rightside);\n }\n }", "title": "" }, { "docid": "a36e8ef5f48ac7a2c6460d8381893b25", "score": "0.7424692", "text": "static void mergeSort(int []array, int left, int right)\r\n\t{\r\n\t\tif (left<right)\r\n\t\t{ \r\n\t\t\tint midpoint = (left+right)/2; //midpoint\r\n\t\t\tmergeSort(array, left, midpoint); // recursively calls the mergeSort function sending in the array of integers, first index, and the midpoint\r\n\t\t\tmergeSort(array, midpoint + 1, right); // recursively calls the mergeSort function sending in the array, midpoint + 1, and the end index of the array\r\n\t\t\tMerge(array, left, midpoint, right);\t// calls the Merge function sending in array, first index, midpoint, and the end index of the array\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "550b96508c7e9b81bcf2b32241dae3fa", "score": "0.7415683", "text": "public abstract void sort(int [] array);", "title": "" }, { "docid": "c8aac1c5f0843918df7e74d15fe7f56f", "score": "0.74106604", "text": "private int[] sort(int[] numbers) {\r\n\t\t// TODO: Implement this\r\n\t\tmergesort(numbers);\r\n\t\treturn numbers;\r\n\t}", "title": "" }, { "docid": "c7f1f416ad1b24fde4510598c294287c", "score": "0.7356459", "text": "public static int[] getMergeSortedArray(int[] inputArray){\n mergeSort(inputArray);\n return mergeSortArray;\n }", "title": "" }, { "docid": "d9f48405d79fef6f6e7ba9cc56b8a0d2", "score": "0.73384744", "text": "public static void sort(int[] a) {\n mergeSort(0, a.length, a);\n }", "title": "" }, { "docid": "da537b2cb07b989c2837b1d5c12dde3d", "score": "0.7313882", "text": "public static int[] merge2Sorted(int[] a, int[] b){\n\t\t//fixing reusable length variables \n\t\tint a_length = a.length;\n\t\tint b_length = b.length;\n\t\tint c_length = a_length + b_length;\n\n\t\t//output array\n\t\tint c[] = new int[c_length];\n\n\t\t//state pointers while merge sorting\n\t\tint a_pointer = 0;\n\t\tint b_pointer = 0;\n\t\tint i=0;\n\n\t\t//loading array 'c' with lowest of two arrays in order\n\t\twhile(a_pointer<a_length && b_pointer<b_length){\n\t\t\tif(a[a_pointer]<b[b_pointer]){\n\t\t\t\tc[i]=a[a_pointer];\n\t\t\t\ta_pointer++;\n\t\t\t}else{\n\t\t\t\tc[i]=b[b_pointer];\n\t\t\t\tb_pointer++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\n\t\t//case when array 'a' is not maxed out\n\t\twhile(a_pointer<a_length){\n\t\t\tc[i] = a[a_pointer];\n\t\t\ta_pointer++;\n\t\t\ti++;\n\t\t}\n\n\t\t//case when array 'b' is not maxed out\n\t\twhile(b_pointer<b_length){\n\t\t\tc[i] = b[b_pointer];\n\t\t\tb_pointer++;\n\t\t\ti++;\n\t\t}\n\t\treturn c;\n\t}", "title": "" }, { "docid": "bcdb18c8f3c780c13fae95df5b9ee19d", "score": "0.73086673", "text": "public static int[] mergeSort (int[] list) {\n //Creates two empty lists half as long as the original\n int[] firstHalf;\n if (list.length%2 == 0) {\n firstHalf = new int[list.length/2];\n }\n else {\n firstHalf = new int[list.length/2 + 1];\n }\n int[] secondHalf = new int[list.length/2];\n \n //If the function receives a one-element long list, it returns that \n //value\n if (list.length == 1) {\n return list;\n }\n \n //Populates the 2 lists with the first and second half of the original\n for (int i = 0, j = 0, k = 0; i < list.length; i++) {\n if (i % 2 == 0) {\n firstHalf[j] = list[i];\n j++;\n }\n else {\n secondHalf[k] = list[i];\n k++;\n }\n }\n //Separately merge sorts the two halves, and takes the returned\n //merged lists once they are sorted\n firstHalf = mergeSort(firstHalf);\n secondHalf = mergeSort(secondHalf);\n //Merges the two and returns the value to the original sort\n return merge(firstHalf, secondHalf);\n }", "title": "" }, { "docid": "2c56d4e654051f8bc6bd51f06fbe1c9d", "score": "0.7307952", "text": "private void mergeSort(int[] input, int low, int high)\n\t{\n\t\tif (low < high)\n\t\t{\n\t\t\t// Work out middle index\n\t\t\tint middle = (int) Math.floor((low + high)/ 2);\n\t\t\t\n\t\t\t// Sub sort each half recursively\n\t\t\tmergeSort(input, low, middle);\n\t\t\tmergeSort(input, middle+1, high);\n\t\t\t\n\t\t\t// Merge halves\n\t\t\tmerge(input, low, middle, high);\n\t\t}\n\t}", "title": "" }, { "docid": "56ac2edd90fbb68b6d558092884a83c3", "score": "0.73034817", "text": "private static int[] mergeSort(int[] array) {\n\n // If we have reached the bottom of the recursion (all elements have been split into partitions of 1),\n // we return the whole array (1 element).\n if(array.length == 1) {\n return array;\n }\n\n // Extract the index, at the middle of the array.\n int halfIndex = array.length / 2;\n\n // The lengths of the two partitions of the array.\n int firstArrayLength = halfIndex;\n int secondArrayLength = array.length - halfIndex;\n\n // The two partitions of the array.\n int[] firstPartition = new int[firstArrayLength];\n int[] secondPartition = new int[secondArrayLength];\n\n // Filling the first partition with values from the main array.\n for (int i = 0; i < firstArrayLength; i++) {\n firstPartition[i] = array[i];\n }\n\n // Filling the second partition with values from the main array.\n for (int i = firstArrayLength; i < firstArrayLength + secondArrayLength; i++) {\n secondPartition[i - firstArrayLength] = array[i];\n }\n\n // Recursively, do the same for each of the two partitions of the array.\n // Each partitions gets split into two, until you reach partitions of one element.\n firstPartition = mergeSort(firstPartition);\n secondPartition = mergeSort(secondPartition);\n\n // From here on, it's the backtrack of the recursion.\n // The main logic after the split of the partitions.\n\n // This is the main index, which will be used to follow the progress on the main array.\n int mainIndex = 0;\n\n // These are the indexes for the two partitions, which will be used to follow the progress on them.\n int firstPartitionIndex = 0;\n int secondPartitionIndex = 0;\n\n // The main comparing algorithm.\n // The loop's condition consists of both indexes, being compared to their corresponding partition lengths.\n // Both partitions's indexes will be increased, until one of the arrays is expired.\n // In other words... This loop will go through both partitions, simultaneously, and will finish\n // only when, one of the two indexes, reaches its partition's length.\n while(firstPartitionIndex < firstArrayLength && secondPartitionIndex < secondArrayLength) {\n // Here is the comparison part.\n // We compare the CURRENT element from the first partition, with the CURRENT element from the second partition.\n // In case the first partition's CURRENT element is lower by comparison, it will be put on the CURRENT position\n // of the MAIN array.\n // If that is NOT the case, the second partition's CURRENT element, will be be put on the CURRENT position\n // of the MAIN array.\n // If you switch the comparing symbol, you might achieve a descending order in the sort.\n // Currently the algorithm sorts in ASCENDING order.\n if(firstPartition[firstPartitionIndex] < secondPartition[secondPartitionIndex]) {\n array[mainIndex] = firstPartition[firstPartitionIndex];\n\n mainIndex++;\n firstPartitionIndex++;\n } else {\n array[mainIndex] = secondPartition[secondPartitionIndex];\n\n mainIndex++;\n secondPartitionIndex++;\n }\n }\n\n // When the loop finishes, naturally, one of the two partitions, should be expired.\n // In other words... One of the two partitions' values, have been traversed totally.\n // That would mean that, the other array would have some leftover values, which is why\n // we need to store even them.\n // Due to the fact we have nothing to compare them with, we just store them in the remaining\n // positions of the main array.\n\n // This loop will go through the remaining elements from the first partition, if there are such.\n while(firstPartitionIndex < firstArrayLength) {\n array[mainIndex] = firstPartition[firstPartitionIndex];\n\n mainIndex++;\n firstPartitionIndex++;\n }\n\n // This loop will go through the remaining elements from the first partition, if there are such.\n while(secondPartitionIndex < secondArrayLength) {\n array[mainIndex] = secondPartition[secondPartitionIndex];\n\n mainIndex++;\n secondPartitionIndex++;\n }\n\n // The other exit point of the recursive algorithm.\n // Return the processed array.\n return array;\n }", "title": "" }, { "docid": "518e52a1d7b3a23fd6101b0b762a6b56", "score": "0.7255809", "text": "@Test\n public void sortedArrayMergeTest() {\n int[] i1 = new int[] {0, 2, 4};\n int[] i2 = new int[] {0, 2, 4};\n Util.println(Arrays.toString(Util.sortedArrayMerge(i1, i2)));\n\n i2 = new int[] {0, 1, 2};\n Util.println(Arrays.toString(Util.sortedArrayMerge(i1, i2)));\n\n i2 = new int[] {1, 4, 5};\n Util.println(Arrays.toString(Util.sortedArrayMerge(i1, i2)));\n }", "title": "" }, { "docid": "56bca841ecedbb726c369816ca7a2d00", "score": "0.72036844", "text": "public int[] merge(int[] a, int[] b) {\n int total = a.length+b.length;\n int[] sorted = new int[total];\n\n if(total <= INSERTION_THRESHOLD){\n InsertionSort insertionSort = new InsertionSort();\n System.arraycopy(a,0, sorted, 0, a.length);\n System.arraycopy(b,0,sorted, a.length, b.length);\n insertionSort.sort(sorted);\n } else {\n int i = 0,j = 0,k = 0;\n while(a.length > i && b.length >j){\n if(a[i]<=b[j]){\n sorted[k] = a[i];\n i++;\n k++;\n } else if (a[i] > b[j]){\n sorted[k] = b[j];\n j++;\n k++;\n }\n }\n if (i<a.length){\n for(int x = i; x<a.length; x++){\n sorted[k] = a[x];\n k++;\n }\n }else if (j<b.length){\n for(int x = j; x<b.length; x++){\n sorted[k] = b[x];\n k++;\n }\n }\n }\n return sorted;\n }", "title": "" }, { "docid": "b863529281f67614a2dcd78999cc8b4c", "score": "0.72005665", "text": "static void mergeSort(int Arr[], int start, int end) {\n\t\t\n\t\tif(start < end) {\n\t\t\tint mid = (start + end) / 2; // optimize to avoid overflow=> mid = start + (end - start)/2;\n\t\t\tmergeSort(Arr, start, mid);\n\t\t\tmergeSort(Arr, mid+1, end);\n\t\t\tmerge(Arr, start, mid, end);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "adb472be6b42c3e20d50a2bc1e2308b9", "score": "0.7181457", "text": "private static void mergeSort(int[] arr, int left, int right){\n\t\tif(left < right){ \n\t\t\tint center = (left + right)/2;\n\t\t\tmergeSort(arr, left, center);\n\t\t\tmergeSort(arr, center+1, right);\n\t\t\t\n\t\t\tmerge(arr, left, center, right);\n\t\t}\n\t}", "title": "" }, { "docid": "42850ebbb387f1e732df190965a0f24e", "score": "0.71781325", "text": "public void mergeSort() {\r\n\t\tmergeSortR(this.data);\r\n\t}", "title": "" }, { "docid": "ebc1a31e0770cb14016cc6578b70a71f", "score": "0.717721", "text": "static void mergeSort(int[] arr, int low, int high) {\n\n int size = arr.length;\n\n if (low < high) {\n int middle = (low + high) / 2;\n mergeSort(arr, low, middle);\n mergeSort(arr, middle + 1, high);\n merge(arr, low, middle, high);\n }\n }", "title": "" }, { "docid": "d5de55ac82a843652d24e16b73b2e88a", "score": "0.7169263", "text": "@Override\n\tpublic void sort(int n, int[] data) {\n\t\tmergeSort1(data);\n\t}", "title": "" }, { "docid": "d78db36632cc21942804656d21b1e7e6", "score": "0.7150036", "text": "public abstract void sort(int[] a, int l, int r);", "title": "" }, { "docid": "6b326bad375c0ac55e338062954c0223", "score": "0.7142865", "text": "public int rMergeSort(int[] list) {\n\t\tint count = 0; //added by Ben Sims for project purposes\n\t\tif (list.length > 1) {\n\t\t\t// Merge sort the first half\n\t\t\tint[] firstHalf = new int[list.length / 2];\n\t \tSystem.arraycopy(list, 0, firstHalf, 0, list.length / 2);\n\t \tcount += rMergeSort(firstHalf);//changed by Ben Sims\n\n\t\t\t// Merge sort the second half\n\t\t\tint secondHalfLength = list.length - list.length / 2;\n\t\t\tint[] secondHalf = new int[secondHalfLength];\n\t\t\tSystem.arraycopy(list, list.length / 2,\n\t\t\t\t\tsecondHalf, 0, secondHalfLength);\n\t\t\tcount += rMergeSort(secondHalf); // Changed by Ben Sims\n\n\t\t\t// Merge firstHalf with secondHalf into list\n\t\t\tmerge(firstHalf, secondHalf, list);\n\t\t\treturn count + 3; // changed by Ben Sims\n\t\t}\n\t\treturn count; // Changed by Ben Sims\n\t}", "title": "" }, { "docid": "ba8922253e7505735b44cfce23726770", "score": "0.7136083", "text": "public static void mergeSort(int[] array, int left, int right) {\n // Base case: empty array.\n if (right - left < 2) {\n return;\n }\n // Divide.\n int middle = (int) Math.floor((right + left) / 2);\n // Conquer.\n mergeSort(array, left, middle);\n mergeSort(array, middle, right);\n // Combine.\n merge(array, left, middle, right);\n }", "title": "" }, { "docid": "0fd1859e01a88af307f198ef583103fd", "score": "0.71172124", "text": "void merge(int arr[],int low,int mid,int high){\n int n1=mid-low+1;\r\n int n2=high-mid;\r\n//decleare two sub arry;\r\n int a1[]=new int[n1];\r\n int a2[]=new int[n2];\r\n//copiing data ti temprory array from main array arr[];\r\n for(int i=0;i<n1;i++){\r\n a1[i]=arr[low+i];\r\n }\r\n for(int j=0;j<n2;j++){\r\n a2[j]=arr[mid+1+j];\r\n }\r\n/*merging the arrays*/\r\n\r\n// intial index of first and second array\r\nint i=0,j=0;\r\n\r\n//intial index of merged subarray\r\nint k=low;\r\nwhile(i<n1 && j<n2){\r\n if(a1[i]<=a2[j]){\r\n arr[k]=a1[i];\r\n i++;\r\n }\r\n else{\r\n arr[k]=a2[j];\r\n j++;\r\n }\r\n k++;\r\n}\r\n//copying remaing element of subarray a1[]\r\nwhile(i<n1){\r\n arr[k]=a1[i];\r\n i++;\r\n k++;\r\n}\r\n//copying remaing element of subarray a2[]\r\n\r\nwhile(j<n2){\r\n arr[k]=a2[j];\r\n j++;\r\n k++;\r\n\r\n}\r\n}", "title": "" }, { "docid": "a521a71bd1e3105277a8196b39145bfd", "score": "0.71107405", "text": "private static void merge(int[] intArray, int startIndex, int midIndex, int endIndex) {\n int i = startIndex;\n int j = midIndex;\n int tempIndex = 0;\n int tempArray[] = new int[endIndex - startIndex];\n while (i < midIndex && j < endIndex) {\n tempArray[tempIndex++] = intArray[i] > intArray[j] ? intArray[j++] : intArray[i++];\n }\n System.arraycopy(intArray, i, intArray, startIndex + tempIndex, midIndex - i);\n System.arraycopy(tempArray, 0, intArray, startIndex, tempIndex);\n\n }", "title": "" }, { "docid": "b3b2593576d1b82ddfb473f74cae5891", "score": "0.71027285", "text": "public static void mergeSort(int[] list)\r\n\t{\r\n\t\tstartTime = System.currentTimeMillis();\r\n\t\tnumberOfComparisons=0;\r\n\t\tnumberOfMovements=0;\r\n\t\tif(list.length>1)\r\n\t\t{\r\n\t\t\tint firsthalf[] = new int[list.length/2];\r\n\t\t\tSystem.arraycopy(list, 0, firsthalf, 0, list.length/2);\r\n\t\t\tmergeSort(firsthalf);\r\n\t\t\t\r\n\t\t\tint secondhalflength = list.length - list.length/2;\r\n\t\t\tint secondhalf[]= new int[secondhalflength];\r\n\t\t\tSystem.arraycopy(list, list.length/2, secondhalf, 0, secondhalflength);\r\n\t\t\tmergeSort(secondhalf);\r\n\t\t\t// Combining both the lists\r\n\t\t\tmerge(firsthalf, secondhalf, list);\r\n\t\t}\r\n\t\tendTime = System.currentTimeMillis()-startTime;\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "a5a3d97554800570d861f549ee810f7d", "score": "0.70803714", "text": "private static int[] merge( int[] a, int[] b ) \n {\n\tint[] retArr = new int[a.length + b.length];\n\tint mergeInd = 0;\n\tint indA = 0;\n\tint indB = 0;\n\n\twhile (indA < a.length && indB < b.length){\n\t if (a[indA] < b[indB]){\n\t retArr[mergeInd] = a[indA];\n\t\tmergeInd+=1;\n\t\tindA+=1;\n\t }\n\t else if (b[indB] < a[indA]){\n\t\tretArr[mergeInd] = b[indB];\n\t\tmergeInd+=1;\n\t\tindB+=1;\n\t }\n\t else {\n\t retArr[mergeInd] = a[indA];\n\t\tretArr[mergeInd + 1] = b[indB];\n\t\tmergeInd += 2;\n\t\tindA+=1;\n\t\tindB+=1;\n\t }\n\t}\n\twhile (indA == a.length && indB < b.length){\n\t retArr[mergeInd] = b[indB];\n\t mergeInd+=1;\n\t indB+=1;\n\t}\n\twhile (indB == b.length && indA < a.length){\n\t retArr[mergeInd] = a[indA];\n\t mergeInd+=1;\n\t indA+=1;\n\t}\n\treturn retArr;\n }", "title": "" }, { "docid": "caa77102fc3c71f1dfd1b6796a47fb8c", "score": "0.70707464", "text": "public static int[] sort(int[] input) {\n for (int i = 0; i < input.length - 1; i++) {\n for (int j = i; j < input.length; j++) {\n if (input[i] < input[j]) {\n int temp = input[i];\n input[i] = input[j];\n input[j] = temp;\n }\n }\n }\n return input;\n }", "title": "" }, { "docid": "d54fbae09fc6b2ebaedd4ca9a54de0c1", "score": "0.70671254", "text": "public static int[] mergeSort(int arr[], int len,int low,int high)\r\n\t{\r\n\t\t\r\n\t\tif(len<2)\r\n\t\t\treturn arr;\r\n\t\telse\r\n\t\t{\r\n\t\t\tint[] ret;\r\n\t\t\tint mid = len/2;\r\n\t\t\t\r\n\t\t\tint[] leftInput = new int[mid];\r\n\t\t\tfor(int i=0;i<mid;i++)\r\n\t\t\t\tleftInput[i]=arr[i];\r\n\t\t\t\r\n\t\t\tint[] rightInput = new int[len - mid];\r\n\t\t\tfor(int j=0,i=mid;i<len;i++,j++)\r\n\t\t\t\trightInput[j]=arr[i];\r\n\t\t\t\r\n\t\t\tint[] left = mergeSort(leftInput,mid,0,mid);\r\n\t\t\tint[] right= mergeSort(rightInput,len-mid,mid+1,high);\r\n\t\t\tret = merge(left,right,mid,len-mid);\r\n\t\t\treturn ret;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d7cd8d1f41e9617db464b50f9b55219d", "score": "0.70503044", "text": "private void merge_sort(ArrayList<Type> array, ArrayList<Type> auxillary, int low, int high) {\r\n\t\t// If array size is small enough, do insertion sort\r\n\t\tif((high-low)<=insertionCutoff){\r\n\t\t\tSort_Utils.insertion_sort(array, low, high+1);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t\tint mid = low + (high - low) / 2;\r\n\t\t\t// Sort left half\r\n\t\t\tmerge_sort(array, auxillary, low, mid);\r\n\t\t\t// Sort right half\r\n\t\t\tmerge_sort(array, auxillary, mid + 1, high);\r\n\t\t\t// Combine halves\r\n\t\t\tcombine(array, auxillary, low, mid, high);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "673bcbf71054618e48e12008f8d15bf6", "score": "0.7043141", "text": "public static int[] sortIntegers(int[] array){\r\n //implement sorting algorithm\r\n int n = array.length;\r\n for(int i= 0;i<n; i++){\r\n int high = array[i];\r\n int indexHigh = i;\r\n for(int j=i;j<n; j++){\r\n if (array[j]>high){\r\n high = array[j];\r\n indexHigh = j;\r\n }\r\n }\r\n array[indexHigh] = array[i];\r\n array[i] = high;\r\n }\r\n return array;\r\n }", "title": "" }, { "docid": "9a36cc59ea16a7fc8fa223c846fbf949", "score": "0.7026764", "text": "public static IntArray sort(IntArray arrayToSort){\n \t\t\n \t\t// The insertion sort runs in 0(N2) time, but is about twice as fast as the bubble sort on average.\n \t\t// The insertion sort is the most commonly used sort of the \"simple\" sorts, and is often used as \n \t\t// the final stage of a more advanced sort, such as the quicksort.\n \t\t\n \t\t// Starting at index 1 (not 0), move the value at that index (outer/inner) to the temp variable. Compare\n \t\t// the value at that index (inner) with the value at marker-1. If the value in temp is smaller than\n \t\t// the value at inner-1, move inner to the left and continue the cycle until the value at temp is no\n \t\t// longer smaller than the value at marker-1, or else the marker has reached index 0. When the final\n \t\t// resting place for the temp value is found, copy the value in temp to that location. Increment outer,\n \t\t// then repeat the whole cycle.\n \t\t\n \t\tint temp = 0;\n \t\t\n \t\t// n is the size of the array\n \t\tint n = arrayToSort.size();\n \t\t\n \t\t// If there are less than two values in the array, the array is already sorted!\n \t\tif(n < 2){ return arrayToSort; }\n \t\t\n \t\t// Loop through remaining unsorted values left to right, starting at index 1\n \t\tfor(int outer = 1; outer < n; outer++){\n \t\t\t\n \t\t\t// Copy the value at outer to temp\n \t\t\ttemp = arrayToSort.get(outer);\n \t\t\t\n \t\t\t// Loop through sorted values, right to left, and find the smallest\n \t\t\t// value to swap with \"outer\"\n \t\t\tfor(int inner = (outer - 1); inner >= 0; inner--){\n \t\t\t\t\n\t\t\t\tif(inner == 0){\n\t\t\t\t\t// Shift the value at inner to the right\n\t\t\t\t\tarrayToSort.set(inner+1, arrayToSort.get(inner));\n\t\t\t\t\t\n\t\t\t\t\t// Copy the value in temp to the inner+1 index\n\t\t\t\t\tarrayToSort.set(inner, temp);\n\t\t\t\t}\n\t\t\t\t\n \t\t\t\tif(arrayToSort.get(inner) > temp){\n \n \t\t\t\t\t// Shift the value at inner to the right\n \t\t\t\t\tarrayToSort.set(inner+1, arrayToSort.get(inner));\n \t\t\t\t} else {\n \t\t\t\t\t\n \t\t\t\t\t// Copy the value in temp to the inner+1 index\n \t\t\t\t\tarrayToSort.set(inner + 1, temp);\n \t\t\t\t\t\n \t\t\t\t\t// Quit looping through the inner loop\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn arrayToSort;\n \t}", "title": "" }, { "docid": "91287432dda184569b1df0af9f576b20", "score": "0.70064956", "text": "private void Merge(int[] a, int start, int end) {\n\t\tif (start == end) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint mid = (start+end)>>1;\n\t\tMerge(a, start, mid);\n\t\tMerge(a, mid+1, end);\n\t\t\n\t\tint leftIndex = mid;\n\t\tint rightIndex = end;\n\t\tint Index = end;\n\t\t\n\t\twhile (leftIndex >= start && rightIndex >= mid+1) {\n\t\t\tif (a[leftIndex] > a[rightIndex]) {\n\t\t\t\tInversePairsNumber += rightIndex-mid;\n\t\t\t\tSortA[Index--] = a[leftIndex--];\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tSortA[Index--] = a[rightIndex--];\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile (leftIndex >= start) {\n\t\t\tSortA[Index--] = a[leftIndex--];\n\t\t}\n\t\t\n\t\twhile (rightIndex >= mid+1) {\n\t\t\tSortA[Index--] = a[rightIndex--];\n\t\t}\n\t\t\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\ta[i] = SortA[i];\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "32c98c2895cd0e0055c266e8d99926fd", "score": "0.7004709", "text": "@Override\n\tpublic int sort(int[] num, int num1) {\n\t\tSystem.out.println(\"calling Bubble sort\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "756a689de79226698d80c50a5ceeaaa1", "score": "0.7004666", "text": "public static void sort(int[] nums) {\n mergeSort(nums, 0, nums.length - 1);\n }", "title": "" }, { "docid": "cd0df198a6e5c9c47521a21162fb565c", "score": "0.70030725", "text": "public static int[] merge_sort(int[] array, int p, int r) {\n if (p < r) {\n // get the mid index\n int mid = (p + r) / 2;\n\n //sort left subarray\n merge_sort(array, p, mid);\n\n //sort the right subarray\n merge_sort(array, mid + 1, r);\n\n //merge the two subarrays\n merge(array, p, mid, r);\n\n }\n return array;\n }", "title": "" }, { "docid": "672809c8e76409fa5d4a25f74b5cae48", "score": "0.6997853", "text": "public static void mergeSort(int intArray[], int startIndex, int endIndex) {\n if (endIndex - startIndex < 2) {\n return;\n }\n int midIndex = (startIndex + endIndex) / 2;\n mergeSort(intArray, startIndex, midIndex);\n mergeSort(intArray, midIndex, endIndex);\n merge(intArray, startIndex, midIndex, endIndex);\n }", "title": "" }, { "docid": "807d2e6ca9cc8f17c8770ec43d63046f", "score": "0.6987626", "text": "public static int[] executeMergeSort(int[] myArray) throws IOException {\n if (isSorted(myArray)) {\n return myArray;\n }\n int[] arrayCopy1 = copyArray(myArray);\n int[] arrayCopy2 = copyArray(myArray);\n MergeSort2SplitsTop sortObj1 = new MergeSort2SplitsTop(arrayCopy1, arrayCopy2);\n sortObj1.mergeSort(myArray);\n return myArray;\n }", "title": "" }, { "docid": "75f8d6cd5fd78a13863e32845b973878", "score": "0.6977735", "text": "private static <T extends Comparable<T>> void mergeSort(T[] array,\n\t\t\tint left, int right) {\n\n\t\tif (left < right) {\n\n\t\t\t// split the array into 2\n\t\t\tint center = (left + right) / 2;\n\n\t\t\t// sort the left and right array\n\t\t\tmergeSort(array, left, center);\n\t\t\tmergeSort(array, center + 1, right);\n\n\t\t\t// merge the result\n\t\t\tmerge(array, left, center + 1, right);\n\t\t}\n\t}", "title": "" }, { "docid": "6595a89d953616f7ff35490a1c7e7fb7", "score": "0.697472", "text": "public static void mergeSort(int[] nums, int start, int end) {\n // check for the base condition\n if (end - start < 2) {\n return;\n }\n // otherwise break the array [10, 2, 6, -12, 5,12,16] into parts\n int mid = (start + end) / 2;\n // now got the mid and array is divided\n // Left array - [10, 2, 6] & Right array - [-12, 5, 12, 16]\n mergeSort(nums, start, mid); //calling mergeSort for left array\n mergeSort(nums, mid, end); //calling mergeSort for right array\n // merge the sorted array\n merge(nums, start, mid, end);\n }", "title": "" }, { "docid": "4f1687cf78d46eb3383a44aa82bb7463", "score": "0.69716674", "text": "void mergeSort(int a[], int l, int r) \n\t{ \n\t if (l < r) \n\t { \n\t // Same as (l+r)/2, but avoids overflow for \n\t // large l and h \n\t int m = l+(r-l)/2; \n\t \n\t // Sort first and second halves \n\t mergeSort(a, l, m); \n\t mergeSort(a, m+1, r); \n\t \n\t merge(a, l, m, r); \n\t } \n\t}", "title": "" }, { "docid": "c3f638fbef56f00976edef6606c298ad", "score": "0.6969984", "text": "void sort(int arr[],int low,int high){\r\n if(low<high){\r\n //finding middle element.\r\n int mid=(low+high)/2;\r\n //sort first and and second sub array\r\nsort(arr,low,mid);\r\nsort(arr,mid+1,high);\r\n//merge the sorted array\r\nmerge(arr,low,mid,high);\r\n }\r\n}", "title": "" }, { "docid": "bba03a2805b0c93aaee22d387f390250", "score": "0.69678086", "text": "public static int[] mergeSort(int[] unsortedArray) {\n int inputLength = unsortedArray.length;\n\n // split array into 2 arrays that diff by size <= 1\n int[] arrayA = Arrays.copyOfRange(unsortedArray, 0, inputLength/2);\n int[] arrayB = Arrays.copyOfRange(unsortedArray, inputLength/2, inputLength);\n int[] sortedArray = new int[inputLength];\n \n // continue to split arrays until they are both size of 1\n if (arrayA.length > 1 || arrayB.length > 1){\n arrayA = mergeSort(arrayA);\n arrayB = mergeSort(arrayB);\n }\n \n int i = 0;\n int j = 0;\n for (int element : sortedArray){\n // if 1 array is already used up just keep adding other array);\n if (i==arrayA.length){\n element = arrayB[j];\n j++;\n continue;\n } else if (j==arrayB.length){\n element = arrayA[i];\n i++;\n continue;\n }\n \n // add the lesser array element to the sorted array\n if (arrayA[i] < arrayB[j]){\n element = arrayA[i];\n i++;\n } else {\n element = arrayB[j];\n j++;\n }\n }\n\n return sortedArray;\n }", "title": "" }, { "docid": "7609932a61bc22fc12969970044b1280", "score": "0.695739", "text": "public static int[] sort( int[] arr )\n { int center = arr.length/2;\n\tif(arr.length <= 1){\n\t return arr;\n\t}\n\tint[] temp = new int[arr.length - center];//arr of first half\n\tint[] temp1 = new int[center];\n\tfor(int i = 0; i < center; i++){\n\t temp1[i] = arr[i];\n\t}\n\tfor(int i = 0; i < temp.length; i++){\n\t temp[i] = arr[center+i];\n\t}\n\treturn merge(sort(temp), sort(temp1));\n }", "title": "" }, { "docid": "ec67193406efc25ff204102f8e7d38bb", "score": "0.69507337", "text": "public static void mergeSort_srt(int array[], int lo, int n) {\n int low = lo;\n int high = n;\n\n if (low >= high) {\n return;\n }\n\n // Find the middle index of the array\n int middle = (low + high) / 2;\n\n /*\n * Partitioning the array\n */\n\n // Send the array, 0 and the middle index of the array [First partition]\n mergeSort_srt(array, low, middle);\n\n // Send the array, the middle index + 1 and the highest index of the array [Second Partition]\n mergeSort_srt(array, middle + 1, high);\n\n /*\n * Merging and sorting the individual partitions\n */\n\n // Store the last index of the first array\n int end_low = middle;\n\n // Store the first index of the second array\n int start_high = middle + 1;\n\n /* If the lowest index is less than or equal to the bottom arrays highest index\n * & the lowest index of the 2nd array is less than or equal to its highest index\n */\n while ((lo <= end_low) && (start_high <= high)) {\n\n System.out.println(\"\\nBOTTOM ARRAY\");\n printSmallArray(array, lo, middle);\n\n System.out.println(\"\\nTOP ARRAY\");\n printSmallArray(array, start_high, high);\n\n printHorzArray(-1, -1, array, 49);\n\n /*\n * If the value in the 1st index of the 1st array is less than the value in the 1st index of the 2nd array\n */\n System.out.println(\"Is \" + array[low] + \" < \" + array[start_high]\n + \"? \" + (array[low] < array[start_high]));\n\n /*\n * Sorting\n */\n if (array[low] < array[start_high]) {\n // Increment to the next index in the 1st array\n low++;\n } else {\n // Store the value in the 1st index of the 2nd array\n int Temp = array[start_high];\n\n System.out.println(\"Temp: \" + Temp);\n\n /*\n * Decrement backwards through the first array starting at the last index in the first array\n */\n for (int k = start_high - 1; k >= low; k--) {\n\n System.out.println(\"array[\" + k + \"] = \" + array[k]\n + \" Stored in array index \" + (k + 1));\n array[k + 1] = array[k];\n }\n\n array[low] = Temp;\n System.out.println(Temp + \" is stored in index \" + low);\n printHorzArray(-1, -1, array, 49);\n\n low++;\n end_low++;\n start_high++;\n }\n }\n printHorzArray(-1, -1, array, 49);\n\n }", "title": "" }, { "docid": "c450878902849b8b66f456a21ed82f94", "score": "0.694194", "text": "public static int[] sort( int[] arr ) {\n \tint[] half1 = new int[arr.length / 2]; //takes the first half of the array to sort\n \tint[] half2 = new int[arr.length - half1.length]; //takes the second half of the array to sort\n\n \tif (arr.length == 1) { //if the length of the array is 1, that means that it is already sorted\n \t\treturn arr; //since the array is sorted, it can be returned\n \t}\n \telse { //if the length of the array is greater than 1\n \t\tfor (int counter = 0 ; counter < half1.length ; counter++) { //for every element in the first half of the array being sorted\n \t\t\thalf1[counter] = arr[counter]; //set the current index of the first half of the array to the current index of the original array\n \t\t}\n \t\tfor (int counter = 0 ; counter < half2.length ; counter++) { //for every element in the second half of the array being sorted\n \t\t\thalf2[counter] = arr[half1.length + counter]; //set the current index of the second half of the array to the current index of the\n \t\t} //original array + the length of the first half since it is now looking at the second half of the original array\n \t}\n \tint[] sorted1 = sort(half1); //sorts the first half of the array\n \tint[] sorted2 = sort(half2); //sorts the second half of the array\n \treturn merge( sorted1 , sorted2 ); //merges the two sorted arrays and returns the final array\n }", "title": "" }, { "docid": "6da0cc8cc954113b994f8933653bbbb8", "score": "0.69319874", "text": "void sort(int arr[], int l, int r) \r\n { \r\n\t//Write your code here\r\n //Call mergeSort from here \r\n if(l < r)\r\n {\r\n int mid = (l + r) / 2;\r\n sort( arr, l, mid );\r\n sort( arr, mid+1, r );\r\n merge( arr, l, mid, r );\r\n }\r\n }", "title": "" }, { "docid": "1f79f126ddc5ba8f8b177226bb860729", "score": "0.6931086", "text": "public static int[] mergeSort(int[] a, int low, int high) {\n\n int N = high - low;\n\n if (N <= 1)\n return a;\n\n int mid = (low + high) / 2;\n\n mergeSort(a, low, mid);\n mergeSort(a, mid, high);\n\n int[] temp = new int[N];\n int i = low, j = mid;\n\n for (int k = 0; k < N; k++) {\n\n if (i == mid)\n temp[k] = a[j++];\n\n else if (j == high)\n temp[k] = a[i++];\n\n else if (a[j] < a[i])\n temp[k] = a[j++];\n\n else\n temp[k] = a[i++];\n }\n\n for (int k = 0; k < N; k++) {\n a[low + k] = temp[k];\n }\n\n return a;\n }", "title": "" }, { "docid": "7cee81660d9748f44b1f09dfbf3e8d67", "score": "0.6925425", "text": "public int[] Sort(int [] array ){\n\t\tint n = array.length;\n int k;\n for (int m = n; m >= 0; m--) {\n for (int i = 0; i < n - 1; i++) {\n k = i + 1;\n if (array[i] > array[k]) {\n \tint temp;\n temp = array[i];\n array[i] = array[k];\n array[k] = temp;\n }\n }\n }\n return array;\n }", "title": "" }, { "docid": "559b932dce94eb63ffda46bccf37ac69", "score": "0.69065607", "text": "public static void merge(int[] array, int left, int mid, int right) {\n\t\t//2.1 define sub arrays \n\t\tint len1 = mid - left + 1;\n\t\tint len2 = right - mid; \n\t\tint[] l = new int[len1];\n\t\tint[] r = new int[len2];\n\t\tfor (int i = 0 ; i < len1 ; i++) {\n\t\t\tl[i] = array[left + i];\n\t\t}\n\t\tfor (int j = 0 ; j < len2 ; j++) {\n\t\t\tr[j] =array[mid + j + 1];\n\t\t}\n\t\t//2.2. find the each minimum number to sort all numbers\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint index = left;\n\t\twhile (i < len1 && j < len2) {\n\t\t\tif (l[i] < r[j]) {\n\t\t\t\tarray[index++] = l[i++];\n\t\t\t} else {\n\t\t\t\tarray[index++] = r[j++];\n\t\t\t}\n\t\t}\n\t\twhile (i < len1) {\n\t\t\tarray[index++] = l[i++];\n\t\t}\n\t\twhile (j < len2) {\n\t\t\tarray[index++] = r[j++];\n\t\t}\n\t}", "title": "" }, { "docid": "3bcb7b20b234bd7dccdf052410d2467c", "score": "0.68958586", "text": "public int[] do_sort(int array[]) {\n int n = array.length;\n int k;\n for (int m = n; m >= 0; m--) {\n for (int i = 0; i < n - 1; i++) {\n k = i + 1;\n if (array[i] > array[k]) {\n swapNumbers(i, k, array);\n }\n } \n }\n \n return array;\n }", "title": "" }, { "docid": "c91beaa771ec9d4650c4b5a084265205", "score": "0.68930316", "text": "public static int[] sort(int[] a) {\n\n int[] b = Arrays.copyOf(a, a.length);\n int[] idxs = sortAndReturnIndexes(b);\n \n return b;\n }", "title": "" }, { "docid": "90f8ac4206658a7e26c55440d2d2edad", "score": "0.6891605", "text": "private static void merge( int[] nums, int start, int mid, int end) {\n // [10, 2, 6, -12, 5,12,16]\n // if last element of left array is smaller than first element of right array\n if (nums[mid - 1] <= nums[mid]) {\n return;\n }\n // now, creating a temporary array to hold the sorted elements\n int i = start; // i points to first index of left array\n int j = mid; // j points to first index of right array\n int tempIndex = 0;\n int[] tempArray = new int[end - start]; //new array to hold the sorted elements.\n while (i < mid && j < end) { // this loop runs as long as we don't finish left and right array\n //now, compare the elements of left array and right array and insert the smallest element to temp array\n // and increment\n tempArray[tempIndex++] = nums[i] <= nums[j] ? nums[i++] : nums[j++];\n }\n // if there any element in left array which is greater than all elements in right array\n // we need to copy that into input array, and that element position will be next position of temp array.\n System.arraycopy(nums, i, nums,start+tempIndex,mid-i);\n // in above step, copying the leftout element of left array which is pointed by i\n //to the new position, that position determined by the last tempIndex+start, lenght is left array.\n\n // now copying complete temp array to input array.\n System.arraycopy(tempArray,0,nums,start,tempIndex);\n\n }", "title": "" }, { "docid": "d809e97d10bdce5e6b8568c7ad2eeadb", "score": "0.68898344", "text": "public static int[] sortArray_mergesort_top_down(int[] nums) {\n final int N = nums.length;\n int[] aux = new int[N];\n sort(nums, aux, 0, N - 1);\n return nums;\n }", "title": "" }, { "docid": "ecbcb1e6ba22748183541003811e6fa2", "score": "0.6888959", "text": "void Merge(int p,int q,int r) \r\n {\n for(int i = p; i <= r; i++)\r\n {\r\n tempSortArray[i] = Array[i];\r\n }\r\n\r\n int i = p, j = q+1, k = p;\r\n\r\n while (i <= q && j <= r) \r\n {\r\n if (tempSortArray[i] <= tempSortArray[j]) \r\n {\r\n Array[k] = tempSortArray[i];\r\n i++;\r\n } \r\n else \r\n {\r\n Array[k] = tempSortArray[j];\r\n j++;\r\n }\r\n k++;\r\n }\r\n\r\n while(i <= q)\r\n {\r\n Array[k] = tempSortArray[i];\r\n k++;\r\n i++;\r\n }\r\n }", "title": "" }, { "docid": "1222e0fedb9ed5f9efc8ec0a82addb23", "score": "0.6875443", "text": "public static <T extends Comparable> void mergeSort(T array[]) {\r\n\tmergeSortRecursive(array,(T[])(new Comparable[array.length]),\r\n\t\t\t 0, array.length-1);\r\n }", "title": "" }, { "docid": "a4a86c0bdb6ca441ba6ce34a91216912", "score": "0.68656784", "text": "public static void main(String[] args) {\n\n int size = 10;\n int[] data = new int[]{5,10,1,6,2,9,3,8,7,4};\n int low = 0; // lower bound of array\n int high = 9; // upper bodund of array\n\n System.out.println(\"Before sorting: \");\n for (int i = 0; i < size; i++)\n System.out.println(data[i]);\n\n mergeSort(data, low, high);\n\n System.out.println(\"\\nAfter sorting: \");\n for (int i = 0; i < size; i++)\n System.out.println(data[i]);\n }", "title": "" }, { "docid": "02daa4e4aa4d4a99442a98d518424bb5", "score": "0.68649465", "text": "static void Sort(int arr[], int start, int right) {\n\t\t if (start < right) {\n\t\t \t\n\t\t //establishing midpoint for splitting array in half\n\t\t int mid = (start + right) / 2;\n\t\t \n\t\t //recursive call for each half of the array \n\t\t \n\t\t //first half\n\t\t Sort(arr, start, mid);\n\t\t //second half\n\t\t Sort(arr, mid + 1, right);\n\t\t \n\t\t //call of merge method to reassemble the arrays\n\t\t merge(arr, start, mid, right);\n\t\t }\n\t\t }", "title": "" }, { "docid": "961d43177e5d8b5e7f1a67822f4665c0", "score": "0.68573594", "text": "public static void mergeSort(int[] array, int p, int r) {\n\n // Write this method\n if (p < r) {\n int q = (p + r)/ 2;\n\n mergeSort(array, p, q);\n mergeSort(array, q + 1, r);\n\n merge(array, p, q, r);\n }\n }", "title": "" }, { "docid": "524d2755cf1461a894cdb071c2dc26c1", "score": "0.6852187", "text": "public static void mergeSort(int[] arr, int leftIndex, int rightIndex){\n if(leftIndex < rightIndex){\n int midIndex = leftIndex + (rightIndex - leftIndex)/2;\n mergeSort(arr, leftIndex, midIndex);\n mergeSort(arr, midIndex+1, rightIndex);\n merging(arr,leftIndex,midIndex,rightIndex);\n }\n }", "title": "" }, { "docid": "e1031f0e76c2286a72eb98222ad25f33", "score": "0.6835666", "text": "private void merge(int[] array, int start, int mid, int end) {\n\t\t\t\t\n\t\tint leftSize = mid - start + 1; \n\t int rightSize = end - mid; \n\t \n\t //Temporary Arrays\n\t int[] leftArray = new int[leftSize];\n\t int[] rightArray = new int[rightSize];\n\t\t\n\t /* copy data to temp arrays */ \n\t for (int i = 0; i < leftSize; i++) {\n\t \tleftArray[i] = array[start + i]; \n\t } \n\t for (int j = 0; j < rightSize; j++) {\n\t \trightArray[j] = array[mid + 1 + j];\n\t } \n\t \n\t int leftIndex = 0; /* initial index of first sub-array */ \n\t int rightIndex = 0; /* initial index of second sub-array */ \n\t int index = start; /* initial index of merged sub-array */ \n\t \n\t while (leftIndex < leftSize && rightIndex < rightSize) \n\t { \n\t if(leftArray[leftIndex] <= rightArray[rightIndex]) \n\t { \n\t array[index] = leftArray[leftIndex]; \n\t leftIndex++; \n\t } \n\t else \n\t { \n\t \tarray[index] = rightArray[rightIndex]; \n\t \trightIndex++; \n\t } \n\t index++; \n\t } \n\t while (leftIndex < leftSize) \n\t { \n\t \tarray[index] = leftArray[leftIndex]; \n\t \tleftIndex++; \n\t \tindex++; \n\t } \n\t \n\t while (rightIndex < rightSize) \n\t { \n\t \tarray[index] = rightArray[rightIndex]; \n\t \trightIndex++; \n\t \tindex++; \n\t } \n\t}", "title": "" }, { "docid": "309bdb87812bf2fb6e097266b539e2f8", "score": "0.6827578", "text": "public static int[] sortArray_mergesort_bottom_up(int[] nums) {\n final int N = nums.length;\n int[] aux = new int[N];\n for (int len = 1; len < N; len *= 2) {\n for (int lo = 0; lo < N - len; lo += len + len) {\n int mid = lo + len - 1;\n int hi = Math.min(lo + len + len - 1, N - 1);\n merge(nums, aux, lo, mid, hi);\n }\n }\n return nums;\n }", "title": "" }, { "docid": "b18c079556996718ea6feed711acfa9b", "score": "0.68117905", "text": "static int MergeSort(int A[],int B[],int p,int r) {\n\t\t// TODO Auto-generated constructor stub\n\t\tint q,h1=0,h2;\n\t\tif (p < r){\n\t\t\tif(r-p > m){\n\t\t\tq= (p+r)/2;\n\t\t\th1 = MergeSort(A,B,p,q);\n\t\t\th2 = MergeSort(A,B,q+1,r);\n\t\t\t/*if (h1!= h2){\n\t\t\t\tSystem.out.println(\"Please enter the number of elements as a power of 2 for sorting.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}*/\n\t\t\t\n\t\t\tif (h1%2 == 1)\n\t\t\t\tMerge(B,A,p,q,r);\n\t\t\telse\n\t\t\t\tMerge(A,B,p,q,r);\n\t\t\t\n\t\t\treturn h1+1;\t\n\t\t}\n\t\t\t else { \n\t\t\t\t // Insertion sort\n\t\t\t\t if(h1%2==0){\n\t\t \t\tfor(int i=p, j=i; i<r; j=++i) {\n\t\t \t\t int ai = A[i+1];\n\t\t \t\t while(ai < A[j]) {\n\t\t \t\t\tA[j+1] = A[j];\n\t\t \t\t\tif (j-- == p) {\n\t\t \t\t\t break;\n\t\t \t\t\t}\n\t\t \t\t }\n\t\t \t\t A[j+1] = ai;\n\t\t \t\t}\n\t\t \t\n\t\t }\n\t\t\t\t else{\n\t\t\t\t\t for(int i=p, j=i; i<r; j=++i) {\n\t\t\t \t\t int ai = B[i+1];\n\t\t\t \t\t while(ai < B[j]) {\n\t\t\t \t\t\tB[j+1] = B[j];\n\t\t\t \t\t\tif (j-- == p) {\n\t\t\t \t\t\t break;\n\t\t\t \t\t\t}\n\t\t\t \t\t }\n\t\t\t \t\t B[j+1] = ai;\n\t\t\t \t\t}\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t return h1;\n\t\t\t }\n\t\t\t\t \n\t\t}\n\t\telse return 0;\n\t}", "title": "" }, { "docid": "4fc30d379b76b57830291f30b4c4770d", "score": "0.6793719", "text": "private void mSort(int[] A,int start, int end) {\n\n if(start!=end){ //i.e. if size of array >1\n //recursively sort the left and right halves of the array and then merge\n int mid = (start+end)/2;\n mSort(A, start, mid);\n mSort(A,mid+1,end);\n merge(A,start,mid,end);\n }\n\n }", "title": "" }, { "docid": "7321dd82e33e50adf655f24eed5f0ece", "score": "0.6785095", "text": "private static int[] merge(int[] a, int[] b) {\n int[] result = new int[a.length+b.length];\n int pointerA = 0;\n int pointerB = 0;\n int count = 0;\n\n while(pointerA < a.length && pointerB < b.length){\n if(a[pointerA] <= b[pointerB]){\n result[count] = a[pointerA];\n pointerA++;\n }\n else{\n result[count] = b[pointerB];\n pointerB++;\n swapCounter++;\n }\n count++;\n }\n while(pointerA < a.length){\n result[count] = a[pointerA];\n pointerA++;\n count++;\n }\n while(pointerB < b.length){\n result[count] = b[pointerB];\n pointerB++;\n count++;\n }\n return result;\n }", "title": "" }, { "docid": "292faf407b5ba5bec8e972cf1b15d34e", "score": "0.67816633", "text": "public ArrayList<Integer> mergesort(ArrayList<Integer> arr){\r\n\t\t\r\n\t\tif(arr.size() <= 1) {\r\n\t\t\treturn arr;\r\n\t\t}\r\n\t\t\r\n\t\tint mid = arr.size()/2;\r\n\t\tArrayList<Integer> leftSide = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> rightSide = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor(int i = 0; i< arr.size(); i++) {\r\n\t\t\tif(i < mid) {\r\n\t\t\t\tleftSide.add(arr.get(i));\r\n\t\t\t} else {\r\n\t\t\t\trightSide.add(arr.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tleftSide = mergesort(leftSide);\r\n\t\trightSide = mergesort(rightSide);\r\n\t\treturn merger(leftSide,rightSide);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "da865ca9bf0beabb2d8d8ac26c063559", "score": "0.6778141", "text": "static void mergeSort(int[] sourceArray, int leftIndex, int rightIndex) {\n if (leftIndex < rightIndex) {\n // Find the middle point\n int middlePos = leftIndex + (rightIndex - leftIndex) / 2;\n\n // Sort first and second halves\n mergeSort(sourceArray, leftIndex, middlePos);\n mergeSort(sourceArray, middlePos + 1, rightIndex);\n\n // Merge the sorted halves\n MergeSortTask.merge(sourceArray, leftIndex, middlePos, rightIndex);\n }\n }", "title": "" }, { "docid": "f40dda958e69d15b7af6da84bea7b036", "score": "0.6771735", "text": "public void mergeSort(){\r\n E[] tmpArray = (E []) new Comparable[data.size()]; \r\n mergeSorting(tmpArray, 0, data.size()-1); // call mergeSorting\r\n }", "title": "" }, { "docid": "44dd67c2007da60dd3ab4af5b0b1e756", "score": "0.6766276", "text": "private static <T extends Comparable> \r\n\t\t\t void mergeSortRecursive(T array[], \r\n\t\t\t\t\t\t T temp[], \r\n\t\t\t\t\t\t int low, int high) {\r\n\tint n = high - low + 1;\r\n\tint middle = low + n/2;\r\n\tint i;\r\n\r\n\tif (n < 2) return;\r\n\t// move lower half of array into temporary storage\r\n\tfor (i = low; i < middle; i++) {\r\n\t temp[i] = array[i];\r\n\t}\r\n\t// sort lower half of array\r\n\tmergeSortRecursive(temp, array, low, middle-1);\r\n\t// sort upper half of array\r\n\tmergeSortRecursive(array, temp, middle, high);\r\n\t// merge halves together\r\n\tmerge(array, temp, low, middle, high);\r\n }", "title": "" }, { "docid": "9d1eb19d9b601b14f0b54c3bf5299c9f", "score": "0.67594993", "text": "public static void mergeSort(int[] values) {\r\n if (values.length == 1)\r\n return;\r\n int mid = values.length / 2;\r\n int[] A = new int[mid];\r\n int[] B = new int[values.length - mid];\r\n //copy to A\r\n for (int i = 0; i < mid; i++)\r\n A[i] = values[i];\r\n //copy to B\r\n for (int i = mid; i < values.length; i++)\r\n B[i - mid] = values[i];\r\n //sort A and B\r\n mergeSort(A);\r\n mergeSort(B);\r\n //Merge A and B back\r\n int vIdx = 0;\r\n int aIdx = 0;\r\n int bIdx = 0;\r\n while (aIdx != A.length || bIdx != B.length) {\r\n if (bIdx == B.length || (aIdx != A.length && A[aIdx] < B[bIdx])) {\r\n values[vIdx] = A[aIdx];\r\n aIdx++;\r\n vIdx++;\r\n } else {\r\n values[vIdx] = B[bIdx];\r\n bIdx++;\r\n vIdx++;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6ac4493f18472d376b2aea163b58c86f", "score": "0.6742789", "text": "private static void merge(int[] A,int start,int mid,int end) {\n int[] temp = new int[mid - start + 1];\n for (int i = start; i <= mid; i++) {\n temp[i - start] = A[i];\n }\n //use pointers to keep track of which elements in the\n //Left and Right subarray we are comparing, and which\n //cell in the answer we are writing to.\n int lPtr=0;\n int rPtr=mid+1; //Right array = A[mid+1...end]\n int ansPtr = start;\n while(lPtr<temp.length && rPtr<=end){ //i.e whilst we haven't reached the end of\n //one of the two subarrays\n\n //compare the two elements in the L and R subarrays and choose the smaller one\n //and move the respective pointer along by one.\n if(temp[lPtr]<=A[rPtr]){\n A[ansPtr++] = temp[lPtr++];\n }\n else {\n A[ansPtr++] = A[rPtr++];\n }\n }\n //if we have reached end of one array, we need to copy across remainder of the\n //other array in sorted order - for the right subarray we don't need to do this\n //since R is stored in original array, but L is in aux. array so we need to\n //copy it.\n while(lPtr<temp.length){\n A[ansPtr++] = temp[lPtr++];\n }\n }", "title": "" }, { "docid": "c91e97712823e85531520effdef249eb", "score": "0.67309517", "text": "@Override\n public void sort(int[] array, int k) {\n }", "title": "" }, { "docid": "e0396a1b7c04d7a1d38fc76f89998922", "score": "0.67290527", "text": "void sort(int[] array, int k);", "title": "" }, { "docid": "5c6138b722324177b30193e5e9360fdb", "score": "0.672447", "text": "public static int[] sort(int[] data) {\n for (int i = 0; i < data.length; i++) {\n int min = MinDiapason.findMin(data, i, data.length - 1);\n int index = FindLoop.indexOf(data, min, i, data.length - 1);\n data[index] = data[i];\n data[i] = min;\n }\n return data;\n }", "title": "" }, { "docid": "0f4896ab8ae995ffd7d0197fc7ddc58c", "score": "0.67147875", "text": "private static void merge(int[] a, int leftIndex, int rightIndex) {\n int lstart = leftIndex;\n int mid = (leftIndex + rightIndex) / 2;\n int rstart = mid + 1;\n int lend = mid;\n int rend = rightIndex;\n\n int index = leftIndex;\n int left = lstart;\n int right = rstart;\n\n while(left <= lend && right <= rend){\n if(a[left] <= a[right]){\n temp[index] = a[left];\n left++;\n }\n else {\n temp[index] = a[right];\n right++;\n invCount += (mid - left) + 1;\n }\n index++;\n }\n\n System.arraycopy(a, left, temp, index, (lend - left) + 1);\n System.arraycopy(a, right, temp, index, (rend - right) + 1);\n System.arraycopy(temp, leftIndex, a, leftIndex, (rightIndex - leftIndex) + 1);\n\n }", "title": "" }, { "docid": "d45efecf73b0f530cb51936b7a9c17cf", "score": "0.6710538", "text": "public void mergeSort(int low, int high) {\n if(low == high) {\n \t return;\t// Single element array. No need to sort.\n }\n else {\n \t System.out.println(\"mergeSort: \" + low + \":\" + high);\n int middle = (low + high) / 2;\n mergeSort(low, middle); // Sort left side.\n mergeSort(middle + 1, high); // Sort right side.\n merge(low, middle, high); // Merge.\n }\n }", "title": "" }, { "docid": "3f44edbc61946411482b595798c8a985", "score": "0.66895694", "text": "@Override\n\tpublic int[] sort(int[] array) {\n\t\tint[] sorted = array.clone();\n\t\tint temp;\n\t\tboolean swapped = false;\n\n\t\tfor (int i = sorted.length; i > 0; i--) {\n\t\t\tfor (int j = 0; j < i - 1; j++) {\n\t\t\t\tif (sorted[j] > sorted[j + 1]) {\n\t\t\t\t\ttemp = sorted[j];\n\t\t\t\t\tsorted[j] = sorted[j + 1];\n\t\t\t\t\tsorted[j + 1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!swapped) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tswapped = false;\n\t\t\t}\n\t\t}\n\n\t\treturn sorted;\n\t}", "title": "" }, { "docid": "9667e962fb26902badbebbe1e0f72bae", "score": "0.66890913", "text": "public static void main(String[] args) {\n int[] arr1 = new int[] {5,4,3,2,1};\n sort(arr1);\n System.out.println(Arrays.toString(arr1));\n \n int[] arr2 = new int[] {4,3,5,6,1,9,28};\n sort(arr2);\n System.out.println(Arrays.toString(arr2));\n \n int[] arr3 = new int[] {4,3,-11,6,1,9,-2};\n sort(arr3);\n System.out.println(Arrays.toString(arr3));\n \n int[] arr4 = new int[] {};\n sort(arr4);\n System.out.println(Arrays.toString(arr4));\n }", "title": "" }, { "docid": "92eb9fed88732bf1d40abac7deabf1ca", "score": "0.66782016", "text": "@Override\n public void sort(int[] array) {\n doParallelSort(array);\n }", "title": "" }, { "docid": "370dc6544a1698ff233f282005bfaef3", "score": "0.6676063", "text": "public static void main(String args[])\n {\n int[] arr = new int[SIZE];\n randomizeArr(arr);\n\n System.out.println(\"Merge Sort in Java\");\n System.out.print(\"Original Array: \");\n printArray(arr);\n\n // sort array\n mergeSort(arr, 0, arr.length - 1);\n\n System.out.print(\"Sorted Array: \");\n printArray(arr);\n }", "title": "" }, { "docid": "eff3881aebb06a60ed2b09e3cff7babf", "score": "0.6672919", "text": "private ArrayList<Integer> simpleMergeSort(ArrayList<Integer> ary) {\n\t\tif (ary.size() <= 1)\n\t\t\treturn ary;\n\t\tList<Integer> a1 = ary.subList(0, ary.size() / 2);\n\t\tList<Integer> a2 = ary.subList(ary.size() / 2, ary.size());\n\t\tArrayList<Integer> sorted = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < ary.size(); i++) {\n\t\t\tif (a1.size() == 0) {\n\t\t\t\tsorted.add(a1.get(0));\n\t\t\t\ta1.remove(0);\n\t\t\t} else if (a2.size() == 0) {\n\t\t\t\tsorted.add(a2.get(0));\n\t\t\t\ta2.remove(0);\n\t\t\t} else {\n\t\t\t\tif (a1.get(0) < a2.get(0)) {\n\t\t\t\t\tsorted.add(a1.get(0));\n\t\t\t\t\ta1.remove(0);\n\t\t\t\t} else {\n\t\t\t\t\tsorted.add(a2.get(0));\n\t\t\t\t\ta2.remove(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sorted;\n\t}", "title": "" } ]
a8268819215015a5dce15995de79d791
Removes EntryFragmentListener when Fragment detached
[ { "docid": "c12a61b423f73d6ed81e0851d9e0a654", "score": "0.68087286", "text": "@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }", "title": "" } ]
[ { "docid": "275a7ddc9954d33c9aa53827addf4f89", "score": "0.6800099", "text": "@Override\n public void onDetach()\n {\n super.onDetach();\n\n listener = null;\n }", "title": "" }, { "docid": "5f5e0c1e01d7fa68f1f641a9d73d56ac", "score": "0.674407", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tlistener = null;\n\t}", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.67292714", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "95167d34225880ee020142032523a0d9", "score": "0.6675274", "text": "@Override\n public void onDetach() {\n Log.i(Constants.LOGTAG, \"onDetach\");\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "f7f3d7ee2235612ce567d17d30431651", "score": "0.66389984", "text": "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n listener = (EntryFragmentListener) context;\n }", "title": "" }, { "docid": "26f24f485156fb239d1e1aed031b1487", "score": "0.65894115", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mCallbacks = null;\n }", "title": "" }, { "docid": "bb161a49d99e65a789bcbeb2247e751a", "score": "0.6543931", "text": "public interface EntryFragmentListener {\n // Called when an entry is selected\n void onEntrySelected(Uri entryUri);\n\n // Called when the add button is pressed\n void onAddEntry();\n }", "title": "" }, { "docid": "a55e1db8b21a841beec51b8bbdae8f3b", "score": "0.64115196", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tLog.d(\"FirstFragment\", \"onDetach\");\n\t}", "title": "" }, { "docid": "b021eadc29c98b59b9143821463055be", "score": "0.63835007", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\ttry {\n\t\t\tField childFragmentManager = Fragment.class\n\t\t\t\t\t.getDeclaredField(\"mChildFragmentManager\");\n\t\t\tchildFragmentManager.setAccessible(true);\n\t\t\tchildFragmentManager.set(this, null);\n\n\t\t} catch (NoSuchFieldException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "67b636c31ec7789d121c1ffc99b9f90e", "score": "0.63420093", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n this.mOnLayoutListener = null;\n }", "title": "" }, { "docid": "be45180c43e8036fe41e1c7b982a2ec2", "score": "0.63288856", "text": "public void detached(DetachEvent e) {\n }", "title": "" }, { "docid": "8b4a7c2119ff6dba95904acd97d7ae74", "score": "0.63215405", "text": "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tlm.removeUpdates(listener);\n\t\tlistener=null;\n\t}", "title": "" }, { "docid": "1527cbc4db22f432d5636d8d6cd1738c", "score": "0.626805", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n this.mHandler.removeCallbacksAndMessages((Object) null);\n }", "title": "" }, { "docid": "dbf0df267fc394cd0557ec7b5d32f2f7", "score": "0.6222498", "text": "@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tLog.d(TAG, \"onDetach------\");\r\n\r\n\t}", "title": "" }, { "docid": "dbf0df267fc394cd0557ec7b5d32f2f7", "score": "0.6222498", "text": "@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tLog.d(TAG, \"onDetach------\");\r\n\r\n\t}", "title": "" }, { "docid": "f249f102952274c406ce01805df07728", "score": "0.616273", "text": "@Override\n public void onDetach() {\n // Avoid leaking,\n mRegisterFinishBtnClickListener = null;\n super.onDetach();\n }", "title": "" }, { "docid": "847aee89805c0700cf250005791163c7", "score": "0.6158393", "text": "public void onDetachedFromWindow() {\n removeCallbacks(this.f44353j);\n super.onDetachedFromWindow();\n }", "title": "" }, { "docid": "d5251e4dcc50ecc39e32638b2588de3e", "score": "0.6102421", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\tif (fragment != null) {\n\t\t\tft.detach(fragment);\n\t\t}\n\t}", "title": "" }, { "docid": "90e9f365d7a55be8d34a252caab9640a", "score": "0.60876703", "text": "public void onDetach() {\n\t\tsuper.onDetach();\n\t}", "title": "" }, { "docid": "1f80bd4d2ded8f036b41a86006793052", "score": "0.60627383", "text": "public void afterDestroy(EntryEvent<K, V> e) {\n }", "title": "" }, { "docid": "34291086a313e92f64e107855cb9e04d", "score": "0.60508025", "text": "@SuppressLint(\"NewApi\")\n\t@Override\n\tprotected void onDetachedFromWindow() {\n\t\tsuper.onDetachedFromWindow();\n\t\tgetViewTreeObserver().removeOnGlobalLayoutListener(this);\n\t}", "title": "" }, { "docid": "81927dc1ab65d5109d8b2608a6b1e7fb", "score": "0.60375416", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tmContactManager.UnregisterContactListChangeListener(this);\n\t}", "title": "" }, { "docid": "7e7d71030a2fdd9a37812688c3af1dcc", "score": "0.60063803", "text": "public interface NewFragmentStateListener {\n public void onFragmentRemoved(BaseFragment frag);\n}", "title": "" }, { "docid": "4733d2162dfbf3da0b34b968d64bb9fd", "score": "0.59896374", "text": "@Override\n public void onDetach() {\n sharedPreferences.unregisterOnSharedPreferenceChangeListener(this);\n super.onDetach();\n }", "title": "" }, { "docid": "efc7aa119775c06610505b655fed0f86", "score": "0.5985661", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t}", "title": "" }, { "docid": "33e221ed952ced64eefdb6a89118cade", "score": "0.5935168", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n a aVar = this.f759h;\n if (aVar != null) {\n aVar.onDetachedFromWindow();\n }\n }", "title": "" }, { "docid": "9c42b5db1b87d7c193c180aeab91ebfb", "score": "0.5917969", "text": "@Override\r\n protected void onDestroy() {\n super.onDestroy();\r\n if (titles_gv != null) {\r\n titles_gv.removeAllViewsInLayout();\r\n titles_gv = null;\r\n }\r\n if (myHandler != null) {\r\n myHandler.removeMessages(UPDATEFRAGMENT);\r\n myHandler.removeMessages(DELAYFINISH);\r\n myHandler = null;\r\n }\r\n if (adapter != null) {\r\n adapter = null;\r\n }\r\n }", "title": "" }, { "docid": "f1bbde96f074c1441b76067d1fc1a023", "score": "0.5916233", "text": "@Override\n public void onDestroy() {\n super.onDestroy();\n Log.e(\"GETFRAGMENT:onDestroy\", \"onDestroy\");\n\n }", "title": "" }, { "docid": "4a73e975366ee171e50992020a5ca910", "score": "0.5883876", "text": "@Override\r\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\tft.remove(fragment);\r\n\t}", "title": "" }, { "docid": "9ae2e55474446e7d9dd9be6ec058c978", "score": "0.5871102", "text": "public void onViewDetachedFromWindow(VH holder) {\n }", "title": "" }, { "docid": "d1ecedbbea4a5a7406cca04cdff1f1b4", "score": "0.58480775", "text": "public void onModuleDetach() {\n \n }", "title": "" }, { "docid": "7cce56cebc4c20bff557f0f540ead46e", "score": "0.5836406", "text": "@Override\n\tprotected void onDetachedFromWindow() {\n\t\tif (mLoadingHelper != null) {\n\t\t\tmLoadingHelper.removeLoadStatusListener(this);\n\t\t}\n\t\tsuper.onDetachedFromWindow();\n\t}", "title": "" }, { "docid": "5406b3ef9b7610938af2175b42e6dd9b", "score": "0.58105254", "text": "public void removeFieldChangedlistener() {\n mListener = null;\n }", "title": "" }, { "docid": "607bcc86e3d4f0a0358f123dd36af750", "score": "0.5795145", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n m17102n();\n }", "title": "" }, { "docid": "d5a0c13badabb8409ba16c1ff79d0307", "score": "0.5773105", "text": "@Override\n public void onDetach() {\n super.onDetach();\n\n }", "title": "" }, { "docid": "3f670360b38dec4e3ab9d2c57c945b0c", "score": "0.57353824", "text": "public final void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n m1410b();\n }", "title": "" }, { "docid": "0905a44d7fb81774d096cb9b499c22a3", "score": "0.5723658", "text": "private void detachGridViewFragment()\n\t{\n\t\tif(m_GridViewFragment == null)\n\t\t\treturn;\n\t\tif(!m_GridViewFragment.isDetached())\n\t\t{\n\t\t\tif(this.get(PROP_STATE) != State.DESTROYED)\n\t\t\t\tthis.getFragmentManager().beginTransaction().detach(m_GridViewFragment).commitAllowingStateLoss();\n\t\t\telse\n\t\t\t\tLog.w(TAG, \"detachGridViewFragment() - Activity has been destroyed, no need to detach fragment\");\n\t\t}\n\t}", "title": "" }, { "docid": "ddb09df2a00492c895058bb0150776a9", "score": "0.5713387", "text": "public final void detach()\n\t{\tThreadManager tm = this.tm.get();\n\t\tif (tm != null)\n\t\t\ttm.removePageListener(this);\n\t}", "title": "" }, { "docid": "f3cff35f5a882ceabcbbff6229749ada", "score": "0.57127535", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n this.lastRequest = null;\n }", "title": "" }, { "docid": "85903668fddce7bc16c499b0d2d9fecc", "score": "0.57107466", "text": "public void removeFragment() {\n\t\tthis.getChildFragmentManager().beginTransaction()\n\t\t\t\t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)\n\t\t\t\t.remove(fragment).addToBackStack(JardineApp.TAG).commit();\n\t}", "title": "" }, { "docid": "e204ab9bd9d787d970038be1a14bf53b", "score": "0.5706897", "text": "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.d(\"FirstFragment\", \"onDestroy\");\n\t}", "title": "" }, { "docid": "b06c82a45a85b1925a50b005f72a7eaf", "score": "0.57057697", "text": "@Override\n protected void onDestroy() {\n notificationListenerRegistration.remove();\n super.onDestroy();\n }", "title": "" }, { "docid": "446a0a0a4b3a75cd93c114598a7e36cc", "score": "0.56990325", "text": "@Override\r\n\tpublic void onDestroy() {\r\n\t\t super.onDestroy();\r\n\t\t/* SupportMapFragment f = (SupportMapFragment) getFragmentManager().findFragmentById(R.id.adsDetMap);\r\n\t\t if (f != null) \r\n\t\t\t getFragmentManager().beginTransaction().remove(f).commit();*/\r\n\t}", "title": "" }, { "docid": "cd7c0e30d75f62133540b3ac0ce7a301", "score": "0.56969404", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, android.app.FragmentTransaction ft) {\n\n\t}", "title": "" }, { "docid": "ad18dddb28f1885c91a1eb34d37576c3", "score": "0.56872284", "text": "@Override\n public void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n }", "title": "" }, { "docid": "37ecf92f6f6f731463400cf2efd80bba", "score": "0.5659741", "text": "@Override\n public void onTabUnselected(Tab tab, FragmentTransaction ft) {\n }", "title": "" }, { "docid": "9ec0c775b97120b1cd2f3b74c60536fd", "score": "0.565308", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\r\n\t\tif (mCallBack != null) {\r\n\t\t\tmHandler.removeCallbacks(mCallBack);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dce0ff218a29bdc5fb33348d1faf4f79", "score": "0.56527543", "text": "public void detach (Observer observer);", "title": "" }, { "docid": "aa30a4fe91955c402b27e94887effe3d", "score": "0.56484634", "text": "@Override\n\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "4ff80fc95cee549ba87cdde04d5f4d0d", "score": "0.56468374", "text": "@Override\npublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\t\n}", "title": "" }, { "docid": "9fd8deae28046bfe5fdc4d0219364f98", "score": "0.5641462", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "title": "" }, { "docid": "9fd8deae28046bfe5fdc4d0219364f98", "score": "0.5641462", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "title": "" }, { "docid": "9fd8deae28046bfe5fdc4d0219364f98", "score": "0.5641462", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "title": "" }, { "docid": "9fd8deae28046bfe5fdc4d0219364f98", "score": "0.5641462", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "title": "" }, { "docid": "dabd606c07a3e797af2546b38a3e9a7e", "score": "0.56393147", "text": "private void onBackPressedListener() {\n if (postDisplayFragment.isVisible()) {\n fragmentManager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n super.onBackPressed();\n } else {\n hideFragment(commentDisplayFragment);\n showFragment(postDisplayFragment);\n }\n }", "title": "" }, { "docid": "9738ffaa8535611396bb4d1759ce96e1", "score": "0.56271666", "text": "@Override\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "84cae54b606ef22a94a7672fe3cbfcba", "score": "0.5626508", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t}", "title": "" }, { "docid": "df105cc9c90177e1d5128d6e3fb585a0", "score": "0.5623368", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "title": "" }, { "docid": "df105cc9c90177e1d5128d6e3fb585a0", "score": "0.5623368", "text": "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "title": "" }, { "docid": "f337025b23fd77a7fc90b2eb8dd15063", "score": "0.5617493", "text": "@Override\n public void onAttachFragment(Fragment fragment) {\n super.onAttachFragment(fragment);\n mFragmentNotAttached = false;\n }", "title": "" }, { "docid": "7ecbee6560e427b58e324121c640f088", "score": "0.56098044", "text": "public void onAfterRemove(AssetEntry assetEntry) throws ModelListenerException { \r\n }", "title": "" }, { "docid": "e83d3d5116318b7a446e658fc1e7c7f7", "score": "0.5604646", "text": "public void cleanUpListener() {\n if(mGeoQuery != null) {\n mGeoQuery.removeAllListeners();\n }\n\n for(String placeId : placeListeners.keySet()) {\n PlaceValueEventListener placeValueEventListener = placeListeners.get(placeId);\n placeValueEventListener.removeItemListeners();\n mDatabaseReference.child(\"places\").child(placeId).removeEventListener(placeValueEventListener);\n }\n placeListeners.clear();\n placeListeners = null;\n\n for(String itemId : globalItemListeners.keySet()) {\n ItemValueEventListener itemValueEventListener = globalItemListeners.get(itemId);\n mDatabaseReference.child(\"items\").child(itemId).removeEventListener(itemValueEventListener);\n }\n globalItemListeners.clear();\n globalItemListeners = null;\n }", "title": "" }, { "docid": "c068ef7018af20aaf3a688ef8bda4177", "score": "0.55940425", "text": "@Override\r\n\tprotected void onDetachedFromWindow() {\n\t\tsuper.onDetachedFromWindow();\r\n\r\n\t}", "title": "" }, { "docid": "499ceb81388bb73bd043a63717063db1", "score": "0.5592222", "text": "@Override\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t}", "title": "" }, { "docid": "499ceb81388bb73bd043a63717063db1", "score": "0.5592222", "text": "@Override\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t}", "title": "" }, { "docid": "d51a3aef8bc4d86e652149c412b0b106", "score": "0.5586582", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n d();\n }", "title": "" }, { "docid": "c9ae7d50fb796e9cf3a9427092ea82a8", "score": "0.55843675", "text": "@Override\n\tprotected void onDetachedFromWindow() {\n\t\tsuper.onDetachedFromWindow();\n\t}", "title": "" }, { "docid": "7f6ee530b11aaa7c548bb955db51f9b5", "score": "0.5579992", "text": "@Override\r\n\tprotected void onDetachedFromWindow() {\n\t\tsuper.onDetachedFromWindow();\r\n\t}", "title": "" }, { "docid": "ed12a9fdc103bddbd87d05e9824b8f68", "score": "0.55775225", "text": "public void onDetachedFromWindow() {\n AppMethodBeat.i(38049);\n super.onDetachedFromWindow();\n AppMethodBeat.o(38049);\n }", "title": "" }, { "docid": "43d796c748cb3bc3c44397018f5580fe", "score": "0.5574748", "text": "@Override\n\t\t\tpublic void onEntryRemovedEvent(EntryRemovedEvent<TimeLimiter> entryRemoveEvent) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ef6781330278c433aeebe7884f366c9a", "score": "0.55727875", "text": "@Override\r\n public void onDestroy() {\n Debug.d(TAG, \"onDestroy\");\r\n super.onDestroy();\r\n MessageReceiver.removeMessageListener(mBroadcastListener);\r\n }", "title": "" }, { "docid": "966f9693faf158c72d58485795daeac3", "score": "0.5572394", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n ((DemoModeController) Dependency.get(DemoModeController.class)).removeCallback(this.mDemoCallback);\n this.mNetworkSpeedController.removeFromViewList(this);\n }", "title": "" }, { "docid": "b43d9315e9cb119a367f340b2648dd97", "score": "0.5552236", "text": "public void onDetachedFromWindow() {\r\n super.onDetachedFromWindow();\r\n }", "title": "" }, { "docid": "5527add15a7e392a478c3e78935c17b8", "score": "0.5540972", "text": "public void cleanupListener() {\n if (mEventListener != null)\n mQueryReference.removeEventListener(mEventListener);\n }", "title": "" }, { "docid": "8f71580056d9cb5313f5b8c8e0878f56", "score": "0.5536788", "text": "@Override\n public void onViewDetachedFromWindow(RecyclerView.ViewHolder holder) {\n if (holder instanceof DataBindingViewHolder) {\n ((DataBindingViewHolder) holder).onDetachItem(\n holder.getLayoutPosition() - getHeaderSize());\n }\n }", "title": "" }, { "docid": "bdcbb0adbef1248588d5eee4f2886684", "score": "0.55273694", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tLog.d(\"FirstFragment\", \"onDestroyView\");\n\t}", "title": "" }, { "docid": "dbd7564c70440e8e8744648177c4cf28", "score": "0.5520771", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(mhandler!=null){\n\t\t\tmhandler.removeCallbacksAndMessages(null);\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "e3caa81e19c1133fecf5987caf5f289a", "score": "0.5517893", "text": "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tSystem.out.println(\"First_OneFragment>>>onDestroy\");\r\n\t}", "title": "" }, { "docid": "8b4411017513fae500e6e4f22e60fc59", "score": "0.55127907", "text": "public void onRemoved()\n {\n\n }", "title": "" }, { "docid": "e058b6dc6486cb76cb585a7e42bdf8f3", "score": "0.5512346", "text": "public void onRemove(Map.Entry<K, V> entry) {\r\n }", "title": "" }, { "docid": "449bfc0a5228a9b1668bde2e59a0bbd4", "score": "0.55073273", "text": "void onListenerRemoved(Address staker);", "title": "" }, { "docid": "3b813daf20e8c36c9b3cb8f7b2f3dbce", "score": "0.54923904", "text": "public void onEntryEvicted();", "title": "" }, { "docid": "daa931191ac9b699471354598fa512a0", "score": "0.54892117", "text": "@PreDestroy\n public void removeEventListener() {\n metadataEventService.removeListener(categoryChangeListener);\n }", "title": "" }, { "docid": "b11ba0d24d4b7caf1dc9e346e43ed0a8", "score": "0.54819465", "text": "void onConnectionFragmentRemove(Connection connection);", "title": "" }, { "docid": "e30b7f0176ced2f8c0c04bc1d3afff43", "score": "0.5478737", "text": "@Override\n\t\t\tpublic void onEntryRemovedEvent(EntryRemovedEvent<Bulkhead> entryRemoveEvent) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6e3562f6273e0f915a69814b63e1fa8f", "score": "0.5475899", "text": "public void bookmarkRemoved(StreamsViewerChangeEvent e);", "title": "" }, { "docid": "2faa0b62a7cc0aec4f51898ed240f1d1", "score": "0.5472957", "text": "@Override\r\n\tpublic void onTabUnselected(Tab arg0, android.app.FragmentTransaction arg1) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f3511d4131b7ff35ff7ed6779da31ea5", "score": "0.54691976", "text": "@Override\n public void onDestroyed(Tab tab) {\n mDestroyedCallback.notifyCalled();\n }", "title": "" }, { "docid": "1a093013c9e5e249497c15ffc08a8355", "score": "0.5448638", "text": "@Override\n\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "1a093013c9e5e249497c15ffc08a8355", "score": "0.5448638", "text": "@Override\n\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "1a093013c9e5e249497c15ffc08a8355", "score": "0.5448638", "text": "@Override\n\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "da9c2ed84dffb30924ac400e975b47ab", "score": "0.5444257", "text": "@Override\r\n\tpublic void entryRemoved(EntryEvent<Long, List<Integer>> event) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6d426ed007bb4b11002f8bdfcc2ff770", "score": "0.54348683", "text": "@Override\r\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\tft.remove(fragmentTab1);\r\n\t\t\t}", "title": "" }, { "docid": "6d75bde32206a045391a96a297cd5990", "score": "0.5433976", "text": "@Override\r\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\tft.remove(fragmentTab2);\r\n\t\t\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ab949a4c9bbf5f29f87ab6e03933b4dc", "score": "0.0", "text": "@Override\n\tpublic String getActionModeTitle(int count) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.7037216", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.68683225", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.6446192", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.6412251", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63880783", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.6346641", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6303464", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.6269351", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.62566763", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.6166928", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6154919", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.61459744", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.6142578", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6141126", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.6100913", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.6074055", "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.60696864", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6062165", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.6055012", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60443264", "text": "protected void method_3848() {}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.6016086", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.60138226", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5963883", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5960806", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5960806", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "90e62de5f767b081d1ecd30f250f7e27", "score": "0.5956729", "text": "@Override\n\t\tpublic void ll() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.5924403", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "1a4f9aa6f736074c80c425a66e966e33", "score": "0.591473", "text": "@Override\n\tpublic void acariciar() {\n\n\t}", "title": "" }, { "docid": "a82715cbd2b63f8780c6a8d4d9ca9642", "score": "0.5904261", "text": "@Override\r\n\tpublic void getBalalnce() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.58759344", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "2b60191c95bfebe3c1552e6c0a013032", "score": "0.58680886", "text": "@Override\r\npublic void generate() {\n\t\r\n}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.5832774", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.5811345", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810397", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5804755", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6296d9cb06e3094b2a07ffb1a50fe1e", "score": "0.5790954", "text": "@Override\n\tpublic void acariciar() {\n\t}", "title": "" }, { "docid": "8bb51b817eb666c4867465105352c93f", "score": "0.5789445", "text": "@Override\r\n\tvoid oracle() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "eaf44b0db9fccdd4e25d11d08215adc0", "score": "0.57868445", "text": "@Override\n\tpublic void zufallsKanteEinfuegen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cdfd4f491038656c3a88e9465c6ba0e6", "score": "0.57737845", "text": "@Override\n\tpublic void reculer() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.57590026", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "24b32615866ab9d1bd9b2e291b95a1c6", "score": "0.5758869", "text": "public void getPheromone() \n {\n\t \n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f4988c898d552b0a5965dcb636a68ca", "score": "0.57391614", "text": "@Override\r\n\tpublic void correr() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a59d3a080703df0c29632666d64e3e65", "score": "0.57377326", "text": "@Override\n\tprotected void initialize()\n {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "18ea513e33a6ccd2005fa08437bc8da3", "score": "0.573015", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "8887ffca90e3cb4fff0262bd3dd5bd82", "score": "0.57280916", "text": "@Override\r\n\tpublic void Y() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8648511042e2a7fd608e085a1fcb7ccf", "score": "0.5726677", "text": "@Override\r\n\tpublic void operation() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.5722229", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "47b0ce2a4738b951bd3c2a4491ec7cd6", "score": "0.57205975", "text": "@Override\n \tpublic String toString() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5712942", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "258fef0e9420b0df779163d8d9cb25a9", "score": "0.5707184", "text": "private void hf() {\n\n\t}", "title": "" }, { "docid": "f720716362bda7cd9a07a11b5f77ac9c", "score": "0.5702897", "text": "public void ObjeyiOlustur() {\n \r\n }", "title": "" }, { "docid": "5e4bdac9e86e82025f9be7b708955d73", "score": "0.56991893", "text": "@Override\n\tprotected void startOfIteration() {\n\n\t}", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.5687978", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.568737", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "1614b26591fe3a156f284f7d7d0238ab", "score": "0.56871134", "text": "public void mo3894c() {\n }", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.56825924", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.567235", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5667161", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "febadec59d2787ed37a521b11b0fe57d", "score": "0.56570727", "text": "public void getdata() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
3b1e0b7042061ad1eb76eab397809b74
Tests that the repository hits the cache and doesn't load from the database each time.
[ { "docid": "1a41628481b4050f0c4368c6d137c80a", "score": "0.69967604", "text": "@Test\n public void getBuildingById_cache() {\n // Initialize cache with an empty table.\n BuildingRepository buildingRepository = BuildingRepository.get(dao);\n\n // Create a building bypassing the cache.\n long wheatFieldId = TestData.createWheatField(dao);\n\n // Check that the building is missing from the cache.\n Building building = buildingRepository.getBuildingById(wheatFieldId);\n\n assertNull(building);\n }", "title": "" } ]
[ { "docid": "64d5b75135979acb159b440095bb677b", "score": "0.69790417", "text": "@Test\n public void testCache() {\n\n }", "title": "" }, { "docid": "cabf5d69f3f0e29914c53ba7e9a8ee71", "score": "0.6658429", "text": "@Test\n\tpublic void shouldNotGetPersonNotInDB() {\n\t\tNamedCache<Long, Person> cache = session.getCache(\"people\");\n\t\tPerson result = cache.get(-1L);\n\t\tassertThat(result, is(nullValue()));\n\t}", "title": "" }, { "docid": "0c676d4b2d1878804209a09aae583780", "score": "0.64987314", "text": "@Test\n public void TestRevenueSource() throws Exception {\n \tRevenueSource revenuesource1 = BusinessObjectDAO.getInstance().create(\"RevenueSource\", \"revenuesource7\");\n revenuesource1.setChargeamount(32.04f);\n revenuesource1.setTypekind(\"Sale\");\n revenuesource1.setTxnid(\"txn1\");\n revenuesource1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n RevenueSource revenuesource2 = BusinessObjectDAO.getInstance().read(\"revenuesource7\");\n assertEquals(revenuesource1.getId().trim(), revenuesource2.getId().trim());\n assertTrue(revenuesource1.getChargeamount() - revenuesource2.getChargeamount() < .01);\n assertEquals(revenuesource1.getTypekind(), revenuesource2.getTypekind());\n assertEquals(revenuesource1.getTxnid(), revenuesource2.getTxnid());\n \n\n revenuesource2.setChargeamount(32.04f);\n revenuesource2.setTypekind(\"Sale\");\n revenuesource2.setTxnid(\"txn1\");\n revenuesource2.save();\n \n Cache.getInstance().clear();\n \n RevenueSource revenuesource3 = BusinessObjectDAO.getInstance().read(\"revenuesource7\");\n //Tests reading from the database\n assertEquals(revenuesource3.getId().trim(), revenuesource2.getId().trim());\n assertTrue(revenuesource3.getChargeamount() - revenuesource2.getChargeamount() < .01);\n assertEquals(revenuesource3.getTypekind(), revenuesource2.getTypekind());\n assertEquals(revenuesource3.getTxnid(), revenuesource2.getTxnid());\n \n\n \n // revenuesource4 should now have been read from the Cache and be the same object\n RevenueSource revenuesource4 = BusinessObjectDAO.getInstance().read(\"revenuesource7\");\n assertEquals(revenuesource3, revenuesource4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(revenuesource2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "36847b5f73dc88261f084a8bf2eee4d3", "score": "0.64872885", "text": "@Test\n public void TestConceptualRental() throws Exception {\n \tConceptualRental conceptualrental1 = BusinessObjectDAO.getInstance().create(\"ConceptualRental\", \"concepprod7\");\n conceptualrental1.setPrice_per_day(12.50f);\n conceptualrental1.setReplacement_price(300.00f);\n conceptualrental1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n ConceptualRental conceptualrental2 = BusinessObjectDAO.getInstance().read(\"conceptualrental7\");\n assertEquals(conceptualrental1.getId().trim(), conceptualrental2.getId().trim());\n assertTrue(conceptualrental1.getPrice_per_day() - conceptualrental2.getPrice_per_day() < 0.1);\n assertTrue(conceptualrental1.getReplacement_price() - conceptualrental2.getReplacement_price() < 0.1);\n \n\n conceptualrental2.setPrice_per_day(214.50f);\n conceptualrental2.setReplacement_price(365.70f);\n conceptualrental2.save();\n \n Cache.getInstance().clear();\n \n ConceptualRental conceptualrental3 = BusinessObjectDAO.getInstance().read(\"conceptualrental7\");\n //Tests reading from the database\n assertEquals(conceptualrental3.getId().trim(), conceptualrental2.getId().trim());\n assertTrue(conceptualrental3.getPrice_per_day() - conceptualrental2.getPrice_per_day() < 0.1);\n assertTrue(conceptualrental3.getReplacement_price() - conceptualrental2.getReplacement_price() < 0.1);\n \n\n \n // conceptualrental4 should now have been read from the Cache and be the same object\n ConceptualRental conceptualrental4 = BusinessObjectDAO.getInstance().read(\"conceptualrental7\");\n assertEquals(conceptualrental3, conceptualrental4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(conceptualrental2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "7cbcec9ed7f3cc3c4446b04f49c39360", "score": "0.6362569", "text": "@Test\n public void TestDebitCredit() throws Exception {\n \tDebitCredit debitcredit1 = BusinessObjectDAO.getInstance().create(\"DebitCredit\", \"dc7\");\n debitcredit1.setDebit(true);\n debitcredit1.setGeneralledgername(\"Cash\");\n debitcredit1.setAmount(321.45f);\n debitcredit1.setJournalentryid(\"je1\");\n debitcredit1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n DebitCredit debitcredit2 = BusinessObjectDAO.getInstance().read(\"dc7\");\n assertEquals(debitcredit1.getId().trim(), debitcredit2.getId().trim());\n assertEquals(debitcredit1.getGeneralledgername(), debitcredit2.getGeneralledgername());\n assertTrue(debitcredit1.getAmount() - debitcredit2.getAmount() < .01);\n assertEquals(debitcredit1.getJournalentryid(), debitcredit2.getJournalentryid());\n \n\n debitcredit2.setDebit(false);\n debitcredit2.setGeneralledgername(\"Commission Expense\");\n debitcredit2.setAmount(51.45f);\n debitcredit2.setJournalentryid(\"je2\");\n debitcredit2.save();\n \n Cache.getInstance().clear();\n \n DebitCredit debitcredit3 = BusinessObjectDAO.getInstance().read(\"dc7\");\n //Tests reading from the database\n assertEquals(debitcredit3.getId().trim(), debitcredit2.getId().trim());\n assertEquals(debitcredit3.getGeneralledgername(), debitcredit2.getGeneralledgername());\n assertTrue(debitcredit3.getAmount() - debitcredit2.getAmount() < .01);\n assertEquals(debitcredit3.getJournalentryid(), debitcredit2.getJournalentryid());\n \n\n \n // debitcredit4 should now have been read from the Cache and be the same object\n DebitCredit debitcredit4 = BusinessObjectDAO.getInstance().read(\"dc7\");\n assertEquals(debitcredit3, debitcredit4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(debitcredit2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "76ece0544dd9e28368c72db3870d9760", "score": "0.63134676", "text": "public void test_isDataInCache_when_there_is_no_data_in_cache() throws InterruptedException, SpiceException, ExecutionException, TimeoutException {\n spiceManager.start(getContext());\n spiceManager.removeDataFromCache(TEST_CLASS, true);\n\n // when\n\n // test\n assertFalse(spiceManager.isDataInCache(TEST_CLASS, TEST_CACHE_KEY, DurationInMillis.ALWAYS_RETURNED).get(SPICE_MANAGER_WAIT_TIMEOUT, TimeUnit.MILLISECONDS));\n }", "title": "" }, { "docid": "a1b67555d0982a917c53bc84ccda8205", "score": "0.628899", "text": "@Test\n public void TestForRent() throws Exception {\n \tForRent forrent1 = BusinessObjectDAO.getInstance().create(\"ForRent\", \"forrent7\");\n forrent1.setTimesrented(5);\n forrent1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n ForRent forrent2 = BusinessObjectDAO.getInstance().read(\"forrent7\");\n assertEquals(forrent1.getId().trim(), forrent2.getId().trim());\n assertEquals(forrent1.getTimesrented(), forrent2.getTimesrented());\n \n\n forrent2.setTimesrented(2);\n forrent2.save();\n \n Cache.getInstance().clear();\n \n ForRent forrent3 = BusinessObjectDAO.getInstance().read(\"forrent7\");\n //Tests reading from the database\n assertEquals(forrent3.getId().trim(), forrent2.getId().trim());\n assertEquals(forrent1.getTimesrented(), forrent2.getTimesrented());\n \n\n \n // forrent4 should now have been read from the Cache and be the same object\n ForRent forrent4 = BusinessObjectDAO.getInstance().read(\"forrent7\");\n assertEquals(forrent3, forrent4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(forrent2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "2a5a77f4c59dda054f57a221592a70a7", "score": "0.6284743", "text": "@Test\n public void checkThatTheCacheCachesThings() {\n // Just picked a reasonable number it really can be any int bigger than zero\n final int numOfElements = 4;\n EchoProvider provider = new EchoProvider();\n Cache<Integer, String> cache = new LRUCache<>(provider, numOfElements);\n fillCache(numOfElements, cache);\n for (int i = 0; i < numOfElements - 1; i++) {\n cache.get(i);\n assertEquals(numOfElements - 1, (int) provider.getLastCall());\n }\n }", "title": "" }, { "docid": "266dd20353136b13ef5ffb72e639e4d0", "score": "0.6265103", "text": "@Test\n\tpublic void refreshCache(){\n\n\t\tAsileBank asileBank = asileBankManager.getById(5L);\n\t\tasileBank.setBankShort(\"ZSYH\");\n\t\tint affectRow = asileBankManager.update(asileBank);\n\t\tSystem.out.println(\"更新影响\"+affectRow+\"条\");\n\t}", "title": "" }, { "docid": "20d1c970c54e74ba22aeee5918c658c4", "score": "0.6216185", "text": "@Test\n public void test_cacheExpiration() throws ExecutionException, InterruptedException {\n cache = new SmallMemoryCache<>(10, 10);\n\n /* when */\n int testValue = cache.getValue(1, () -> {return 1;} );\n Thread.sleep(15);\n // Read value after 15 ms, load the new one.\n testValue = cache.getValue(1, () -> {return 2;} );\n\n /* then */\n assertEquals(2, testValue);\n }", "title": "" }, { "docid": "8e72b8fe05fabe0dc7e6cc12a3446661", "score": "0.6208814", "text": "@Before\n public void setUp() {\n System.out.println(\"******initialise cache\");\n new MVCCTransactionalCacheImpl<Integer, SampleDomainObject>(TESTCACHEMAME, \"InvocationService\");\n }", "title": "" }, { "docid": "3cc1e76db63d1a0e7048321b3bc19ccc", "score": "0.6192718", "text": "@Test\n public void delete_missing() throws Exception {\n Connection connection = DBConnection.getConnection();\n try {\n LocalCacheInfoRepository repo = new LocalCacheInfoRepository(connection);\n assertThat(repo.deleteCacheInfo(\"testing\"), is(false));\n } finally {\n DBConnection.closeConn(connection);\n }\n }", "title": "" }, { "docid": "e60170d30c7dc4a5ff9314b0ae3838a8", "score": "0.61523896", "text": "protected abstract void fillFromCache();", "title": "" }, { "docid": "05e65a658b72aff318afee4d57966e74", "score": "0.615189", "text": "@Test\n public void testCacheServiceInitialisedWithoutTokenBucket() {\n assertTrue(cacheService.isCacheAvailable());\n }", "title": "" }, { "docid": "c6bd3ad36aad724b8a7d78ad468ff85f", "score": "0.61057156", "text": "@Test\n public void TestCommission() throws Exception {\n \tCommission commission1 = BusinessObjectDAO.getInstance().create(\"Commission\", \"commission7\");\n commission1.setEmployeeid(\"emp1\");\n commission1.setAmount(65.45f);\n commission1.setCommdate(SDF.parse(\"2012-5-8\"));\n commission1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n Commission commission2 = BusinessObjectDAO.getInstance().read(\"commission7\");\n assertEquals(commission1.getId().trim(), commission2.getId().trim());\n assertTrue(commission1.getAmount() - commission2.getAmount() < .01);\n assertEquals(commission1.getEmployeeid(), commission2.getEmployeeid());\n assertEquals(commission1.getCommdate(), commission2.getCommdate());\n \n\n commission2.setEmployeeid(\"emp2\");\n commission2.setAmount(78.45f);\n commission2.setCommdate(SDF.parse(\"2012-5-12\"));\n commission2.save();\n \n Cache.getInstance().clear();\n \n Commission commission3 = BusinessObjectDAO.getInstance().read(\"commission7\");\n //Tests reading from the database\n assertEquals(commission3.getId().trim(), commission2.getId().trim());\n assertTrue(commission3.getAmount() - commission2.getAmount() < .01);\n assertEquals(commission3.getEmployeeid(), commission2.getEmployeeid());\n assertEquals(commission3.getCommdate(), commission2.getCommdate());\n \n\n \n // commission4 should now have been read from the Cache and be the same object\n Commission commission4 = BusinessObjectDAO.getInstance().read(\"commission7\");\n assertEquals(commission3, commission4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(commission2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "23f98a2996b2d81088f59400f299b50d", "score": "0.6105651", "text": "@Test\n public void testCacheServiceNotInitialisedWithoutTokenBucket() {\n CacheService.initialised = false;\n assertFalse(cacheService.isCacheAvailable());\n }", "title": "" }, { "docid": "4c831b8c7bdb0cb260db85d50b93c6ab", "score": "0.6100408", "text": "@Test\n public void testMustReturnACacheEntryIfItCanRevalidateIt() throws Exception {\n\n final Instant now = Instant.now();\n final Instant tenSecondsAgo = now.minusSeconds(10);\n final Instant nineSecondsAgo = now.minusSeconds(9);\n final Instant eightSecondsAgo = now.minusSeconds(8);\n\n final Header[] hdrs = new Header[] {\n new BasicHeader(\"Date\", DateUtils.formatStandardDate(nineSecondsAgo)),\n new BasicHeader(\"Cache-Control\", \"max-age=0\"),\n new BasicHeader(\"ETag\", \"\\\"etag\\\"\"),\n new BasicHeader(\"Content-Length\", \"128\")\n };\n\n final byte[] bytes = new byte[128];\n new Random().nextBytes(bytes);\n\n final HttpCacheEntry entry = HttpTestUtils.makeCacheEntry(tenSecondsAgo, eightSecondsAgo, hdrs, bytes);\n\n impl = new CachingExec(mockCache, null, config);\n\n request = new BasicClassicHttpRequest(\"GET\", \"/thing\");\n\n final ClassicHttpRequest validate = new BasicClassicHttpRequest(\"GET\", \"/thing\");\n validate.setHeader(\"If-None-Match\", \"\\\"etag\\\"\");\n\n final ClassicHttpResponse notModified = new BasicClassicHttpResponse(HttpStatus.SC_NOT_MODIFIED, \"Not Modified\");\n notModified.setHeader(\"Date\", DateUtils.formatStandardDate(now));\n notModified.setHeader(\"ETag\", \"\\\"etag\\\"\");\n\n Mockito.when(mockCache.getCacheEntry(Mockito.eq(host), RequestEquivalent.eq(request))).thenReturn(entry);\n Mockito.when(mockExecChain.proceed(RequestEquivalent.eq(validate), Mockito.any())).thenReturn(notModified);\n Mockito.when(mockCache.updateCacheEntry(\n Mockito.eq(host),\n RequestEquivalent.eq(request),\n Mockito.eq(entry),\n ResponseEquivalent.eq(notModified),\n Mockito.any(),\n Mockito.any()))\n .thenReturn(HttpTestUtils.makeCacheEntry());\n\n execute(request);\n\n Mockito.verify(mockCache).updateCacheEntry(\n Mockito.any(),\n Mockito.any(),\n Mockito.any(),\n Mockito.any(),\n Mockito.any(),\n Mockito.any());\n }", "title": "" }, { "docid": "c32d84ff5764aa68c87bf30d66b879cf", "score": "0.6100391", "text": "@Test\n public void TestGeneralLedger() throws Exception {\n \tGeneralLedger generalledger1 = BusinessObjectDAO.getInstance().create(\"GeneralLedger\", \"generalledger7\");\n generalledger1.setAccountname(\"Sales Tax\");\n generalledger1.setBalance(52.47f);\n generalledger1.setTypekind(\"Debit\");\n generalledger1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n GeneralLedger generalledger2 = BusinessObjectDAO.getInstance().read(\"generalledger7\");\n assertEquals(generalledger1.getId().trim(), generalledger2.getId().trim());\n assertEquals(generalledger1.getAccountname(), generalledger2.getAccountname());\n assertTrue(generalledger1.getBalance() - generalledger2.getBalance() < .01);\n assertEquals(generalledger1.getTypekind(), generalledger2.getTypekind());\n \n\n generalledger2.setAccountname(\"Cash\");\n generalledger2.setBalance(520.47f);\n generalledger2.setTypekind(\"Credit\");\n generalledger2.save();\n \n Cache.getInstance().clear();\n \n GeneralLedger generalledger3 = BusinessObjectDAO.getInstance().read(\"generalledger7\");\n //Tests reading from the database\n assertEquals(generalledger3.getId().trim(), generalledger2.getId().trim());\n assertEquals(generalledger3.getAccountname(), generalledger2.getAccountname());\n assertTrue(generalledger3.getBalance() - generalledger2.getBalance() < .01);\n assertEquals(generalledger3.getTypekind(), generalledger2.getTypekind());\n \n\n \n // generalledger4 should now have been read from the Cache and be the same object\n GeneralLedger generalledger4 = BusinessObjectDAO.getInstance().read(\"generalledger7\");\n assertEquals(generalledger3, generalledger4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(generalledger2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "81fa47e7700637769dc576d3ba88d8ef", "score": "0.60778034", "text": "public boolean couldBeCached();", "title": "" }, { "docid": "ff187092ca626d36303e360859465c6a", "score": "0.6075618", "text": "public void testIsNoCache_Accuracy_1() {\r\n instance.setNoCache(true);\r\n assertEquals(\"The noCache should match\", true, instance.isNoCache());\r\n instance.setNoCache(false);\r\n assertEquals(\"The noCache should match\", false, instance.isNoCache());\r\n }", "title": "" }, { "docid": "b34edb8d20e07613a90c44d56e766725", "score": "0.6059921", "text": "@Test\n public void TestPayment() throws Exception {\n \tPayment payment1 = BusinessObjectDAO.getInstance().create(\"Payment\", \"payment7\");\n payment1.setAmount(26.21f);\n payment1.setChange(5.01f);\n payment1.setTypekind(\"Cash\");\n payment1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n Payment payment2 = BusinessObjectDAO.getInstance().read(\"payment7\");\n assertEquals(payment1.getId().trim(), payment2.getId().trim());\n assertTrue(payment1.getAmount() - payment2.getAmount() < .01);\n assertTrue(payment1.getChange() - payment2.getChange() < .01);\n assertEquals(payment1.getTypekind(), payment2.getTypekind());\n \n\n payment2.setAmount(25.21f);\n payment2.setChange(5.91f);\n payment2.setTypekind(\"Debit\");\n payment2.save();\n \n Cache.getInstance().clear();\n \n Payment payment3 = BusinessObjectDAO.getInstance().read(\"payment7\");\n //Tests reading from the database\n assertEquals(payment3.getId().trim(), payment2.getId().trim());\n assertTrue(payment3.getAmount() - payment2.getAmount() < .01);\n assertTrue(payment3.getChange() - payment2.getChange() < .01);\n assertEquals(payment3.getTypekind(), payment2.getTypekind());\n \n\n \n // payment4 should now have been read from the Cache and be the same object\n Payment payment4 = BusinessObjectDAO.getInstance().read(\"payment7\");\n assertEquals(payment3, payment4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(payment2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "42b96ac43d0bfa762c922a2435bb4244", "score": "0.6059426", "text": "@Test\n\t@InSequence(2)\n\tpublic void testInfinispanCache() throws Exception {\n\t\tString host = System.getenv(\"CARCACHE_HOTROD_SERVICE_HOST\");\n\t\tint port = Integer.parseInt(System.getenv(\"CARCACHE_HOTROD_SERVICE_PORT\"));\n\n\t\tConfigurationBuilder b = new ConfigurationBuilder()\n .addServer()\n .host(host)\n .port(port)\n // Needed to convert cache entries back to Java objects\n .marshaller(new ProtoStreamMarshaller());\n\t\taddConfigRule(b);\n\n\t\tRemoteCacheManager cacheManager = new RemoteCacheManager(b.build());\n\t\tRemoteCache<Object, Object> cache = cacheManager.getCache(\"carcache\");\n\t\tassertNotNull(cache);\n\n\t\tregisterSchemasAndMarshallers(cacheManager);\n\n\t\tcache.put(encode(CAR.getNumberPlate()), CAR);\n\t\tCar car = (Car) cache.get(encode(CAR.getNumberPlate()));\n\n\t\tassertCarsAreSame(CAR, car);\n\t}", "title": "" }, { "docid": "bf1e41aa6d1dcbe546cf1d357a87e801", "score": "0.6057929", "text": "@Test\n public void test() {\n given().when().get(\"/trees\").then().statusCode(200).body(containsString(\"Oak\"), containsString(\"Chestnut\"));\n\n // Then, we get one specific tree. The call result is cached because of the @CacheResult annotation.\n given().when().get(\"/trees/1\").then().statusCode(200).body(containsString(\"Oak\"));\n\n // The same tree is deleted from the database.\n given().when().delete(\"/trees/1\").then().statusCode(204);\n\n // Is it really gone? Let's check.\n given().when().get(\"/trees\").then().statusCode(200).body(not(containsString(\"Oak\")), containsString(\"Chestnut\"));\n\n // If we try to get the same tree again, it is still returned because it was cached earlier.\n given().when().get(\"/trees/1\").then().statusCode(200).statusCode(200).body(containsString(\"Oak\"));\n }", "title": "" }, { "docid": "e49061c54ba86af380a87fe08ff94f52", "score": "0.6015006", "text": "@Test\n public void TestMembership() throws Exception {\n \tMembership membership1 = BusinessObjectDAO.getInstance().create(\"Membership\", \"membership7\");\n membership1.setCcnumber(\"123456789\");\n Calendar c2 = Calendar.getInstance();\n membership1.setCustomerid(\"cust1\");\n membership1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n Membership membership2 = BusinessObjectDAO.getInstance().read(\"membership7\");\n assertEquals(membership1.getId().trim(), membership2.getId().trim());\n assertEquals(membership1.getCcnumber(), membership2.getCcnumber());\n assertEquals(membership1.getCustomerid(), membership2.getCustomerid());\n \n\n membership2.setCcnumber(\"987654321\");\n Calendar c3 = Calendar.getInstance();\n membership2.setCustomerid(\"cust2\");\n membership2.save();\n \n Cache.getInstance().clear();\n \n Membership membership3 = BusinessObjectDAO.getInstance().read(\"membership7\");\n //Tests reading from the database\n assertEquals(membership3.getId().trim(), membership2.getId().trim());\n assertEquals(membership3.getCcnumber(), membership2.getCcnumber());\n assertEquals(membership3.getCustomerid(), membership2.getCustomerid());\n \n\n \n // membership4 should now have been read from the Cache and be the same object\n Membership membership4 = BusinessObjectDAO.getInstance().read(\"membership7\");\n assertEquals(membership3, membership4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(membership2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "6df62978225b1b2435280d7d62426a18", "score": "0.5985044", "text": "public void test_getFromCacheAndLoadFromNetworkIfExpired_should_return_cache_data_if_not_expired_and_not_go_to_network() throws InterruptedException {\n spiceManager.start(getContext());\n SpiceRequestStub<Integer> spiceRequestStub = new SpiceRequestFailingStub<Integer>(TEST_CLASS2);\n RequestListenerWithProgressStub<Integer> requestListenerStub = new RequestListenerWithProgressStub<Integer>();\n\n // when\n spiceManager.getFromCacheAndLoadFromNetworkIfExpired(spiceRequestStub, \"\", DurationInMillis.ONE_SECOND, requestListenerStub);\n spiceRequestStub.awaitForLoadDataFromNetworkIsCalled(REQUEST_COMPLETION_TIME_OUT);\n requestListenerStub.awaitComplete(REQUEST_COMPLETION_TIME_OUT);\n requestListenerStub.await(REQUEST_COMPLETION_TIME_OUT);\n\n // test\n assertFalse(spiceRequestStub.isLoadDataFromNetworkCalled());\n assertTrue(requestListenerStub.isSuccessful());\n assertTrue(requestListenerStub.isComplete());\n }", "title": "" }, { "docid": "9fabe544c3771232d5565b1f59062e10", "score": "0.59743935", "text": "@Test\n public void TestForSale() throws Exception {\n \tForSale forsale1 = BusinessObjectDAO.getInstance().create(\"ForSale\", \"forsale7\");\n forsale1.setUsed(true);\n forsale1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n ForSale forsale2 = BusinessObjectDAO.getInstance().read(\"forsale7\");\n assertEquals(forsale1.getId().trim(), forsale2.getId().trim());\n assertEquals(forsale1.isUsed(), forsale2.isUsed());\n \n\n forsale2.setUsed(false);\n forsale2.save();\n \n Cache.getInstance().clear();\n \n ForSale forsale3 = BusinessObjectDAO.getInstance().read(\"forsale7\");\n //Tests reading from the database\n assertEquals(forsale3.getId().trim(), forsale2.getId().trim());\n assertEquals(forsale1.isUsed(), forsale2.isUsed());\n \n\n \n // forsale4 should now have been read from the Cache and be the same object\n ForSale forsale4 = BusinessObjectDAO.getInstance().read(\"forsale7\");\n assertEquals(forsale3, forsale4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(forsale2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "a441e340476cc138382fa682b1931ef9", "score": "0.597192", "text": "@Test\n public void TestStoreProduct() throws Exception {\n \t\n \tConceptualProduct conprod = BusinessObjectDAO.getInstance().create(\"ConceptualProduct\", \"concepprod1\");\n \tStore store = BusinessObjectDAO.getInstance().create(\"Store\", \"store1\");\n \t\n StoreProduct storeproduct1 = BusinessObjectDAO.getInstance().create(\"StoreProduct\", \"storeproduct7\");\n storeproduct1.setStoreId(store);\n storeproduct1.setConceptualProductId(conprod);\n storeproduct1.setQuantity(45);\n storeproduct1.setShelf_location(\"a3s9\");\n storeproduct1.save();\n \n\n Cache.getInstance().clear();\n //Tests reading from the database\n StoreProduct storeproduct2 = BusinessObjectDAO.getInstance().read(\"storeproduct7\");\n assertEquals(storeproduct1.getId().trim(), storeproduct2.getId().trim());\n assertEquals(storeproduct1.getStoreId(), storeproduct2.getStoreId());\n assertEquals(storeproduct1.getConceptualProductId(), storeproduct2.getConceptualProductId());\n assertEquals(storeproduct1.getQuantity(), storeproduct2.getQuantity());\n assertEquals(storeproduct1.getShelf_location(), storeproduct2.getShelf_location());\n\n storeproduct2.setStoreId(store);\n storeproduct2.setConceptualProductId(conprod);\n storeproduct2.setQuantity(32);\n storeproduct2.setShelf_location(\"a5s16\");\n storeproduct2.save();\n \n Cache.getInstance().clear();\n \n StoreProduct storeproduct3 = BusinessObjectDAO.getInstance().read(\"storeproduct7\");\n //Tests reading from the database\n assertEquals(storeproduct3.getId().trim(), storeproduct2.getId().trim());\n assertEquals(storeproduct3.getStoreId(), storeproduct2.getStoreId());\n assertEquals(storeproduct3.getConceptualProductId(), storeproduct2.getConceptualProductId());\n assertEquals(storeproduct3.getQuantity(), storeproduct2.getQuantity());\n assertEquals(storeproduct3.getShelf_location(), storeproduct2.getShelf_location());\n \n \n // storeproduct4 should now have been read from the Cache and be the same object\n StoreProduct storeproduct4 = BusinessObjectDAO.getInstance().read(\"storeproduct7\");\n assertEquals(storeproduct3, storeproduct4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(storeproduct2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "0efdb4a775d30c931debc13eaa99cfe0", "score": "0.59593296", "text": "public void test_isDataInCache_when_there_is_data_in_cache() throws InterruptedException, SpiceException, ExecutionException, TimeoutException {\n spiceManager.start(getContext());\n spiceManager.removeDataFromCache(TEST_CLASS3, true);\n\n // when\n spiceManager.putDataInCache(TEST_CACHE_KEY, TEST_RETURNED_DATA3).get();\n\n // test\n assertTrue(spiceManager.isDataInCache(TEST_CLASS3, TEST_CACHE_KEY, DurationInMillis.ALWAYS_RETURNED).get(SPICE_MANAGER_WAIT_TIMEOUT, TimeUnit.MILLISECONDS));\n }", "title": "" }, { "docid": "dae3b8a745c766494cc6202e1b9f907c", "score": "0.5943472", "text": "@Pointcut(\"@annotation(com.cy.pj.common.annotation.RequiredCache)\")\r\n\tpublic void doCachePointCut() {}", "title": "" }, { "docid": "ff4d68417d6583d6234ae006d1e75f85", "score": "0.5935768", "text": "@Test\n public void overFillCache() {\n EchoProvider provider = new EchoProvider();\n final int capacity = 10;\n Cache<Integer, String> cache = new LRUCache<>(provider, capacity);\n fillCache(capacity + 1, cache);\n cache.get(0);\n assertEquals(0, (int) provider.getLastCall());\n assertEquals(capacity + 2, cache.getNumMisses());\n }", "title": "" }, { "docid": "04f328e7d7a464b66baf23a904f81e90", "score": "0.5920663", "text": "public Entity checkCache(String idIn) {\n return cache.get(idIn);\n }", "title": "" }, { "docid": "cbee86ebbd0c5528f497458842a07679", "score": "0.5911879", "text": "private boolean askLoadCache() {\r\n \t\treturn true; // TODO ask user weather to load cache ? or load anyway\r\n \t}", "title": "" }, { "docid": "29391e08685bdcbe9898d621ce47dd51", "score": "0.5881434", "text": "@Test\n public void TestFee() throws Exception {\n \tFee fee1 = BusinessObjectDAO.getInstance().create(\"Fee\", \"fee7\");\n fee1.setAmount(152.30f);\n fee1.setRentalid(\"rental1\");\n fee1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n Fee fee2 = BusinessObjectDAO.getInstance().read(\"fee7\");\n assertEquals(fee1.getId().trim(), fee2.getId().trim());\n assertTrue(fee1.getAmount() - fee2.getAmount() < 0.1);\n assertEquals(fee1.getRentalid(), fee2.getRentalid());\n \n\n fee2.setAmount(12.47f);\n fee2.setRentalid(\"rental2\");\n fee2.save();\n \n Cache.getInstance().clear();\n \n Fee fee3 = BusinessObjectDAO.getInstance().read(\"fee7\");\n //Tests reading from the database\n assertEquals(fee3.getId().trim(), fee2.getId().trim());\n assertTrue(fee3.getAmount() - fee2.getAmount() < 0.1);\n assertEquals(fee3.getRentalid(), fee2.getRentalid());\n \n\n \n // fee4 should now have been read from the Cache and be the same object\n Fee fee4 = BusinessObjectDAO.getInstance().read(\"fee7\");\n assertEquals(fee3, fee4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(fee2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "5d7a3871adfe1bec5c2b5421f597b59b", "score": "0.5874431", "text": "@Test\n public void checkWhenCacheSizeIsZero() {\n final int numOfElements = 10;\n DataProvider<Integer, String> provider = new EchoProvider();\n Cache<Integer, String> cache = new LRUCache<>(provider, 0);\n for (int i = 0; i < numOfElements; i++) cache.get(i);\n assertEquals(10, cache.getNumMisses());\n }", "title": "" }, { "docid": "8fe2cbf29b7937eb6c3cb5a805cfe5a6", "score": "0.5868778", "text": "public void testGetCacheElement() {\n\t\tthis.lruCache = new LRUCacheImpl();\n\t\tthis.lruCache.put(\"1\", \"test\");\n\t\t\n\t\tassertEquals(\"test\", this.lruCache.get(\"1\"));\n\t}", "title": "" }, { "docid": "5a357b3d1905b6bb47600721fb3cd642", "score": "0.58474916", "text": "public interface UserRepository extends JpaRepository<User, String> {\n List<User> findByNameStartsWithIgnoreCase(String name);\n\n @Cacheable(\"users\")\n List<User> findByIdStartsWithIgnoreCase(String id);\n}", "title": "" }, { "docid": "ffa02c5dd734e18379d22648a555d531", "score": "0.5846527", "text": "private void EnsureCache()\r\n {\r\n if (_cache == null) \r\n {\r\n _cache = new TextCache(this); \r\n } \r\n }", "title": "" }, { "docid": "55c6f8b011e3759105f5d761bd348f22", "score": "0.5843233", "text": "@Test\n public void TestStore() throws Exception {\n Store store1 = BusinessObjectDAO.getInstance().create(\"Store\", \"store7\");\n store1.setLocation(\"Provo\");\n store1.setPhone(\"5478851332\");\n store1.setAddress(\"11 N 400 E\");\n store1.setState(\"Utah\");\n store1.setCity(\"Provo\");\n store1.setZip(\"84604\");\n store1.setManagerid(\"emp2\");\n store1.setSalestaxrate(.06f);\n store1.save();\n \n\n Cache.getInstance().clear();\n //Tests reading from the database\n Store store2 = BusinessObjectDAO.getInstance().read(\"store7\");\n assertEquals(store1.getId().trim(), store2.getId().trim());\n assertEquals(store1.getLocation(), store2.getLocation());\n assertEquals(store1.getManagerid(), store2.getManagerid());\n assertEquals(store1.getPhone(), store2.getPhone());\n assertEquals(store1.getAddress(), store2.getAddress());\n assertEquals(store1.getState(), store2.getState());\n assertEquals(store1.getCity(), store2.getCity());\n assertEquals(store1.getZip(), store2.getZip());\n assertTrue(store1.getSalestaxrate() - store2.getSalestaxrate() == 0);\n\n store2.setLocation(\"Ogden\");\n store2.setManagerid(\"emp1\");\n store2.setPhone(\"8018675309\");\n store2.setAddress(\"250 N 900 E\");\n store2.setState(\"Utah\");\n store2.setCity(\"Ogden\");\n store2.setZip(\"84701\");\n store2.setSalestaxrate(.052f);\n store2.save();\n \n Cache.getInstance().clear();\n \n Store store3 = BusinessObjectDAO.getInstance().read(\"store7\");\n //Tests reading from the database\n assertEquals(store2.getId().trim(), store3.getId().trim());\n assertEquals(store2.getLocation(), store3.getLocation());\n assertEquals(store2.getManagerid(), store3.getManagerid());\n assertEquals(store2.getPhone(), store3.getPhone());\n assertEquals(store2.getAddress(), store3.getAddress());\n assertEquals(store2.getState(), store3.getState());\n assertEquals(store2.getCity(), store3.getCity());\n assertEquals(store2.getZip(), store3.getZip());\n assertTrue(store2.getSalestaxrate() - store3.getSalestaxrate() == 0);\n \n \n // store4 should now have been read from the Cache and be the same object\n Store store4 = BusinessObjectDAO.getInstance().read(\"store7\");\n assertEquals(store3, store4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(store2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "86c44693205e1f6206a956acc514c78d", "score": "0.5841174", "text": "@Test\n public void refreshAheadButNoExpiry() {\n Cache c = Cache2kBuilder.forUnknownTypes()\n .loader(key -> null)\n .refreshAhead(true).build();\n c.close();\n }", "title": "" }, { "docid": "6f446ff5ad2d7ab982f1524e9150a2e0", "score": "0.5835505", "text": "@Override\r\n\tpublic boolean cachable() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "256160c131969072fea74a8ba1c8c11f", "score": "0.5826235", "text": "@Test\n\tpublic void shouldGetPersonInDB() {\n\t\tPerson person = new Person();\n\t\tperson.setId(id.getAndIncrement());\n\t\tperson.setFirstname(\"Foo\");\n\t\tperson.setLastname(\"Bar\");\n\n\t\tperson = repository.saveAndFlush(person);\n\n\t\tNamedCache<Long, Person> departments = session.getCache(\"people\");\n\t\tPerson result = departments.get(person.getId());\n\t\tassertThat(result, is(notNullValue()));\n\t\tassertThat(result.getFirstname(), is(person.getFirstname()));\n\t\tassertThat(result.getLastname(), is(person.getLastname()));\n\t}", "title": "" }, { "docid": "340e3efd81d49a0b3fe8fc41a6f45d1d", "score": "0.5820109", "text": "@org.junit.Test\n public void test() {\n List<SearchEngine.Result> lsr = new ArrayList<>();\n lsr.add(new SearchEngine.Result(\"banana\", \"banana\", \"banana\"));\n lsr.add(new SearchEngine.Result(\"apple\", \"apple\", \"apple\"));\n lsr.add(new SearchEngine.Result(\"peach\", \"peach\", \"peach\"));\n\n List<String> l = new ArrayList<>(3);\n l.add(\"banana\");\n l.add(\"apple\");\n l.add(\"peach\");\n\n String tmp = System.getProperty(\"java.io.tmpdir\");\n Corpus c = new CorpusDiskCache(new CorpusSnippet(new MockSearchEngine(lsr)), Paths.get(tmp));\n\n Iterator<String> it = c.iterator(NGram.Unigram(\"UNIT_TEST_CORPUS_DISK_CACHE\"));\n\n // Writes the cache\n int idx = 0;\n while (it.hasNext())\n assertTrue(it.next().equals(l.get(idx++)));\n assertTrue(idx == l.size());\n\n it = c.iterator(NGram.Unigram(\"UNIT_TEST_CORPUS_DISK_CACHE\"));\n\n // Reads the cache\n idx = 0;\n while (it.hasNext())\n assertTrue(it.next().equals(l.get(idx++)));\n assertTrue(idx == l.size());\n\n try {\n Files.delete(Paths.get(tmp).resolve(\"UNIT_TEST_CORPUS_DISK_CACHE.gz\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "95c84b11328468471d3ef7af8bc62ecf", "score": "0.5809337", "text": "public void test_getDateOfDataInCache_when_there_is_no_data_in_cache() throws InterruptedException, SpiceException, ExecutionException, TimeoutException {\n spiceManager.start(getContext());\n spiceManager.removeDataFromCache(TEST_CLASS, true);\n\n // when\n\n // test\n assertNull(spiceManager.getDateOfDataInCache(TEST_CLASS, TEST_CACHE_KEY).get(SPICE_MANAGER_WAIT_TIMEOUT, TimeUnit.MILLISECONDS));\n }", "title": "" }, { "docid": "eab5fe52c0ef7075b721470a80b068ac", "score": "0.5806443", "text": "public void dontTestAccess() throws Exception\n {\n PSCacheItem item = null;\n String test = \"myTest\";\n Object[] keys = {\"one\", \"two\", \"Three\"};\n long size = 256;\n int id = 25;\n Date start = new Date();\n item = new PSCacheItem(id, test, keys, size);\n Date end = new Date();\n assertTrue(\"test is in memory after ctor\", item.isInMemory());\n assertTrue(\"test is on disk after ctor\", !item.isOnDisk());\n assertEquals(\"test getObject from memory\", test, item.getObject());\n assertEquals(\"test getCacheid\", id, item.getCacheId());\n assertEquals(\"test getKeys\", keys, item.getKeys());\n assertEquals(\"test getSize\", size, item.getSize());\n Date created = item.getCreatedDate();\n \n assertTrue(\"test getCreatedDate\", !created.before(start) && \n !created.after(end));\n\n Date accessed = item.getLastAccessedDate();\n assertTrue(\"test last accessed from ctor\", !accessed.before(start) &&\n !accessed.after(end));\n \n start = new Date();\n Object o = item.getObject();\n end = new Date();\n accessed = item.getLastAccessedDate();\n assertTrue(\"test last accessed after getObject\", !accessed.before(start) \n && !accessed.after(end));\n \n assertTrue(\"test is in memory after access from memory\", \n item.isInMemory());\n assertTrue(\"test is on disk after access from memory\", !item.isOnDisk());\n \n item.release();\n assertNull(item.getObject());\n \n }", "title": "" }, { "docid": "e228587449b1e973e21b0fca855cd69e", "score": "0.5803037", "text": "@Test\n public void locallyModifiedAndStaleCountTest() {\n // TODO: test locallyModifiedAndStaleCount\n }", "title": "" }, { "docid": "eaa4e0f53b46154326d6829ffc4846da", "score": "0.580059", "text": "private void initCache() {\n\t\t\r\n\t\tIgnite ignite = igniteUtils.getIgniteInstance();\r\n\t\tignite.cluster().active(true);\r\n\t\t\r\n\t\tinitPersistCache();\r\n\t}", "title": "" }, { "docid": "1006142ee4dd0ef75c4469c95adc0431", "score": "0.57963485", "text": "@Test\n public void testManualCache() throws Exception {\n final FileObject scratchFolder = getWriteFolder();\n if (FileObjectUtils.isInstanceOf(getBaseFolder(), RamFileObject.class)\n || scratchFolder.getFileSystem() instanceof VirtualFileSystem) {\n // can't check ram filesystem as every manager holds its own ram filesystem data\n return;\n }\n\n scratchFolder.delete(Selectors.EXCLUDE_SELF);\n\n final DefaultFileSystemManager fs = createManager();\n fs.setCacheStrategy(CacheStrategy.MANUAL);\n fs.init();\n final FileObject foBase2 = getBaseTestFolder(fs);\n\n final FileObject cachedFolder = foBase2.resolveFile(scratchFolder.getName().getPath());\n\n FileObject[] fos = cachedFolder.getChildren();\n assertContainsNot(fos, \"file1.txt\");\n\n scratchFolder.resolveFile(\"file1.txt\").createFile();\n\n fos = cachedFolder.getChildren();\n assertContainsNot(fos, \"file1.txt\");\n\n cachedFolder.refresh();\n fos = cachedFolder.getChildren();\n assertContains(fos, \"file1.txt\");\n }", "title": "" }, { "docid": "3194f27b77549a59155282f5db1ee0ea", "score": "0.57958573", "text": "public void validateCache();", "title": "" }, { "docid": "a8f07573926342dff48cf9993ed090de", "score": "0.5792582", "text": "@Test\n public void testForNA_CA() throws CacheException {\n doTest();\n }", "title": "" }, { "docid": "2095faf41cb9d6f4b45e1bdb272f1d01", "score": "0.5792565", "text": "public void test_getDateOfDataInCache_when_there_is_some_data_in_cache() throws InterruptedException, SpiceException, ExecutionException, TimeoutException {\n spiceManager.start(getContext());\n spiceManager.removeDataFromCache(TEST_CLASS3, true);\n\n // when\n spiceManager.putDataInCache(TEST_CACHE_KEY, TEST_RETURNED_DATA3).get();\n\n // test\n assertNotNull(spiceManager.getDateOfDataInCache(TEST_CLASS3, TEST_CACHE_KEY).get(SPICE_MANAGER_WAIT_TIMEOUT, TimeUnit.MILLISECONDS));\n }", "title": "" }, { "docid": "5437fcb6bab02498e4363eb420921111", "score": "0.5791716", "text": "@Test\n public void testCachePutWorksCorrectlyWithTtl() throws Exception {\n startIgniteServer();\n\n Ignite client = startIgniteClient();\n\n multithreaded(() -> IntStream.range(0, 20_000)\n .forEach(i -> client.cache(CACHE_NAME).put(1, LocalDateTime.now())), 8);\n\n assertTrue(GridTestUtils.waitForCondition(() -> client.cache(CACHE_NAME).size(CachePeekMode.PRIMARY) == 0,\n getTestTimeout()));\n }", "title": "" }, { "docid": "0f15ce525b7b67ed72ce0b75aa07ea86", "score": "0.5789123", "text": "@Test\n public void testCacheServiceDisabledByEmptyTokenBucket() {\n CacheService.setTimeoutStrategy(2, 1.0);\n cacheService.mockCacheTimeout();\n cacheService.mockCacheTimeout();\n assertFalse(cacheService.isCacheAvailable());\n }", "title": "" }, { "docid": "e1ac3359ceab1336bb54265f39b11e19", "score": "0.5787024", "text": "protected Object _checkCache(String key) {\n //_helperCache.put(key+\"|time\", new Long(System.currentTimeMillis()));\n Object result = _helperCache.get(key); /* already synchronized by Hashtable */\n //if (result != null) DrJava.consoleOut().println(\"Using cache for \" + key);\n return result;\n }", "title": "" }, { "docid": "bf2480fac83a8f54fa579dc7cc9fe51c", "score": "0.5781327", "text": "private boolean cacheHit(DataObject dobj) {\n return cache.contains(dobj);\n }", "title": "" }, { "docid": "f88f0173534520ca0bd72df4ea7c1ea7", "score": "0.57812274", "text": "@Test\n public void TestSale() throws Exception {\n \tConceptualProduct conprod = BusinessObjectDAO.getInstance().create(\"ConceptualProduct\", \"concepprod9\");\n \t\n \tSale sale1 = BusinessObjectDAO.getInstance().create(\"Sale\", \"sale7\");\n sale1.setQuantity(2);\n sale1.setProdid(conprod);\n sale1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n Sale sale2 = BusinessObjectDAO.getInstance().read(\"sale7\");\n assertEquals(sale1.getId().trim(), sale2.getId().trim());\n assertEquals(sale1.getQuantity(), sale2.getQuantity());\n assertEquals(sale1.getProductid(), sale2.getProductid());\n \n ConceptualProduct conprod1 = BusinessObjectDAO.getInstance().create(\"ConceptualProduct\", \"concepprod10\");\n \n \n sale2.setQuantity(5);\n sale2.setProdid(conprod1);\n sale2.save();\n \n Cache.getInstance().clear();\n \n Sale sale3 = BusinessObjectDAO.getInstance().read(\"sale7\");\n //Tests reading from the database\n assertEquals(sale3.getId().trim(), sale2.getId().trim());\n assertEquals(sale3.getQuantity(), sale2.getQuantity());\n assertEquals(sale3.getProductid(), sale2.getProductid());\n \n\n \n // sale4 should now have been read from the Cache and be the same object\n Sale sale4 = BusinessObjectDAO.getInstance().read(\"sale7\");\n assertEquals(sale3, sale4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(sale2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "9f6b8e1721b39e87886758376a0dbe9b", "score": "0.5777283", "text": "public void test_getFromCacheAndLoadFromNetworkIfExpired_should_return_cache_data_if_expired_and_go_to_network() throws InterruptedException {\n spiceManager.start(getContext());\n SpiceRequestStub<Integer> spiceRequestStub = new SpiceRequestFailingStub<Integer>(TEST_CLASS2, WAIT_BEFORE_EXECUTING_REQUEST_LARGE);\n RequestListenerWithProgressStub<Integer> requestListenerStub = new RequestListenerWithProgressStub<Integer>();\n\n // when\n spiceManager.getFromCacheAndLoadFromNetworkIfExpired(spiceRequestStub, \"\", DurationInMillis.ONE_MINUTE * 2, requestListenerStub);\n spiceRequestStub.awaitForLoadDataFromNetworkIsCalled(REQUEST_COMPLETION_TIME_OUT);\n\n // then\n requestListenerStub.await(REQUEST_COMPLETION_TIME_OUT);\n assertTrue(requestListenerStub.isSuccessful());\n requestListenerStub.resetSuccess();\n\n // when\n requestListenerStub.awaitComplete(REQUEST_COMPLETION_TIME_OUT);\n requestListenerStub.await(REQUEST_COMPLETION_TIME_OUT);\n\n // test\n assertTrue(spiceRequestStub.isLoadDataFromNetworkCalled());\n assertTrue(requestListenerStub.isExecutedInUIThread());\n assertTrue(requestListenerStub.isComplete());\n assertFalse(requestListenerStub.isSuccessful());\n }", "title": "" }, { "docid": "87842accec120ef44b0764504e1f8889", "score": "0.57570297", "text": "@Override\n public void onCaching(boolean isCatching) {\n\n }", "title": "" }, { "docid": "d9403f7319a5eb5a927995e3c4853eb2", "score": "0.5754518", "text": "public void testAddRequest_when_cache_is_not_used() throws CacheLoadingException, CacheSavingException, InterruptedException {\n\t\t// given\n\t\tString cacheKey = null;\n\t\tCachedContentRequestStub<String> stubRequest = createSuccessfulRequest(TEST_CLASS, cacheKey, TEST_DURATION, TEST_RETURNED_DATA);\n\n\t\tRequestListenerStub<String> mockRequestListener = new RequestListenerStub<String>();\n\t\tSet<RequestListener<?>> requestListenerSet = new HashSet<RequestListener<?>>();\n\t\trequestListenerSet.add(mockRequestListener);\n\n\t\tEasyMock.replay(mockCacheManager);\n\n\t\t// when\n\t\trequestProcessorUnderTest.addRequest(stubRequest, requestListenerSet);\n\t\tmockRequestListener.await(REQUEST_COMPLETION_TIME_OUT);\n\n\t\t// then\n\t\tEasyMock.verify(mockCacheManager);\n\t\tassertTrue(stubRequest.isLoadDataFromNetworkCalled());\n\t\tassertTrue(mockRequestListener.isExecutedInUIThread());\n\t\tassertTrue(mockRequestListener.isSuccessful());\n\t}", "title": "" }, { "docid": "c602022ce2b1cfd6a5a9dfe48467adf7", "score": "0.5752959", "text": "protected boolean isCacheOnSave()\n {\n return true;\n }", "title": "" }, { "docid": "f4f9ec625c608600f786198d71c509c0", "score": "0.57425827", "text": "public void cacheInitialise() {\n/* 723 */ if (this.cacheOptions.isUseNaturalKeyCache()) {\n/* 724 */ this.naturalKeyCache = this.cacheManager.getNaturalKeyCache(this.beanType);\n/* */ }\n/* 726 */ if (this.cacheOptions.isUseCache()) {\n/* 727 */ this.beanCache = this.cacheManager.getBeanCache(this.beanType);\n/* */ }\n/* */ }", "title": "" }, { "docid": "b63f7e0c9831a2f4a40f0cff5f98c7c5", "score": "0.5716335", "text": "@Test\n public void testOnResolveCache() throws Exception {\n final FileObject scratchFolder = getWriteFolder();\n if (FileObjectUtils.isInstanceOf(getBaseFolder(), RamFileObject.class)\n || scratchFolder.getFileSystem() instanceof VirtualFileSystem) {\n // can't check ram filesystem as every manager holds its own ram filesystem data\n return;\n }\n\n scratchFolder.delete(Selectors.EXCLUDE_SELF);\n\n final DefaultFileSystemManager fs = createManager();\n fs.setCacheStrategy(CacheStrategy.ON_RESOLVE);\n fs.init();\n final FileObject foBase2 = getBaseTestFolder(fs);\n\n FileObject cachedFolder = foBase2.resolveFile(scratchFolder.getName().getPath());\n\n FileObject[] fos = cachedFolder.getChildren();\n assertContainsNot(fos, \"file1.txt\");\n\n scratchFolder.resolveFile(\"file1.txt\").createFile();\n\n fos = cachedFolder.getChildren();\n assertContainsNot(fos, \"file1.txt\");\n\n cachedFolder = foBase2.resolveFile(scratchFolder.getName().getPath());\n fos = cachedFolder.getChildren();\n assertContains(fos, \"file1.txt\");\n }", "title": "" }, { "docid": "ce0aa39e430c0f7b96186d233125d569", "score": "0.57079995", "text": "protected void doTest(Cache cache) {\n assertTrue(\"Cache not proper configured.\", cache.isValid());\n\n String key1 = \"key1\";\n String value1 = \"value1\";\n String key2 = \"key2\";\n String value2 = \"value2\";\n\n // given cache must be empty\n Iterator it1 = cache.iterator();\n assertFalse(\"Cache is not empty\", it1.hasNext());\n\n // cache must return a stored value\n cache.put(key1, value1);\n cache.put(key2, value2);\n assertEquals(\"cache returned wrong value\", value1, cache.get(key1));\n assertEquals(\"cache returned wrong value\", value2, cache.get(key2));\n\n // test the iterator\n Iterator it2 = cache.iterator();\n Object returned = it2.next();\n boolean ok = (key1.equals(returned) || key2.equals(returned));\n String msg = \"Iterator returned unexpected value.\"\n + \" key1.equals(returned)=\"+key1.equals(returned)\n + \" key2.equals(returned)=\"+key2.equals(returned)\n + \" returned=\"+returned\n + \" ok=\"+ok;\n assertTrue(msg, ok);\n\n // clear the cache\n cache.delete();\n Iterator it3 = cache.iterator();\n assertFalse(\"Cache is not empty\", it1.hasNext());\n }", "title": "" }, { "docid": "6ff3c9e12d7443b8793f49a235ce52a8", "score": "0.5700623", "text": "@Override\n @Transactional\n public void run(final ApplicationArguments args) {\n List<FullUrl> urls = this.urlRepository.findAll();\n this.urlCache.putAll(urls);\n }", "title": "" }, { "docid": "e9285e33f07e1c08c5027ab94e1af0ca", "score": "0.5673705", "text": "@Override\n protected boolean isCacheable() {\n return false;\n }", "title": "" }, { "docid": "e9285e33f07e1c08c5027ab94e1af0ca", "score": "0.5673705", "text": "@Override\n protected boolean isCacheable() {\n return false;\n }", "title": "" }, { "docid": "e9285e33f07e1c08c5027ab94e1af0ca", "score": "0.5673705", "text": "@Override\n protected boolean isCacheable() {\n return false;\n }", "title": "" }, { "docid": "e9285e33f07e1c08c5027ab94e1af0ca", "score": "0.5673705", "text": "@Override\n protected boolean isCacheable() {\n return false;\n }", "title": "" }, { "docid": "dbebec4d2f5a266d5b505d6e8899bc46", "score": "0.567324", "text": "default boolean isCacheable()\n {\n return false;\n }", "title": "" }, { "docid": "daf8d04789ff814e8b19340f7ad4eb0d", "score": "0.5671455", "text": "public void runCacheWarming() {\n/* 876 */ if (this.cacheOptions == null) {\n/* */ return;\n/* */ }\n/* 879 */ String warmingQuery = this.cacheOptions.getWarmingQuery();\n/* 880 */ if (warmingQuery != null && warmingQuery.trim().length() > 0) {\n/* 881 */ Query<T> query = this.ebeanServer.createQuery(this.beanType, warmingQuery);\n/* 882 */ query.setUseCache(true);\n/* 883 */ query.setReadOnly(true);\n/* 884 */ query.setLoadBeanCache(true);\n/* 885 */ List<T> list = query.findList();\n/* 886 */ if (logger.isLoggable(Level.INFO)) {\n/* 887 */ String msg = \"Loaded \" + this.beanType + \" cache with [\" + list.size() + \"] beans\";\n/* 888 */ logger.info(msg);\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "5e0bc89de806129d70b0c5a6fa80e6af", "score": "0.5667486", "text": "boolean getCachedLocally();", "title": "" }, { "docid": "f7fa5f6b755b7b3eddc1a367501347a5", "score": "0.5664617", "text": "@Test\n public void TestCustomer() throws Exception {\n Customer customer1 = BusinessObjectDAO.getInstance().create(\"Customer\", \"cust7\");\n customer1.setFirst_name(\"Charlie\");\n customer1.setLast_name(\"Buckets\");\n customer1.setPhone(\"801-774-3564\");\n customer1.setEmail(\"charlie@buckets.com\");\n customer1.setAddress(\"16 N 987 E\");\n customer1.setState(\"Maryland\");\n customer1.setCity(\"New Hampshire\");\n customer1.setZip(\"48872\");\n customer1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n Customer customer2 = BusinessObjectDAO.getInstance().read(\"cust7\");\n assertEquals(customer1.getId().trim(), customer2.getId().trim());\n assertEquals(customer1.getFirst_name(), customer2.getFirst_name());\n assertEquals(customer1.getLast_name(), customer2.getLast_name());\n assertEquals(customer1.getPhone(), customer2.getPhone());\n assertEquals(customer1.getEmail(), customer2.getEmail());\n assertEquals(customer1.getAddress(), customer2.getAddress());\n assertEquals(customer1.getState(), customer2.getState());\n assertEquals(customer1.getCity(), customer2.getCity());\n assertEquals(customer1.getZip(), customer2.getZip());\n \n\n customer2.setFirst_name(\"Melony\");\n customer2.setLast_name(\"Sheets\");\n customer2.setPhone(\"801-321-2222\");\n customer2.setEmail(\"cMelony@buckets.com\");\n customer2.setAddress(\"160 N 74 E\");\n customer2.setState(\"New York\");\n customer2.setCity(\"New York\");\n customer2.setZip(\"33248\");\n customer2.save();\n \n Cache.getInstance().clear();\n \n Customer customer3 = BusinessObjectDAO.getInstance().read(\"cust7\");\n //Tests reading from the database\n assertEquals(customer3.getId().trim(), customer2.getId().trim());\n assertEquals(customer3.getFirst_name(), customer2.getFirst_name());\n assertEquals(customer3.getLast_name(), customer2.getLast_name());\n assertEquals(customer3.getPhone(), customer2.getPhone());\n assertEquals(customer3.getEmail(), customer2.getEmail());\n assertEquals(customer3.getAddress(), customer2.getAddress());\n assertEquals(customer3.getState(), customer2.getState());\n assertEquals(customer3.getCity(), customer2.getCity());\n assertEquals(customer3.getZip(), customer2.getZip());\n \n // customer4 should now have been read from the Cache and be the same object\n Customer customer4 = BusinessObjectDAO.getInstance().read(\"cust7\");\n assertEquals(customer3, customer4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(customer2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "6a8fdb4527a3282fd5a9a5d964740917", "score": "0.5663802", "text": "@Test\n public void testHeuristicCacheOlderThan24HoursHasWarningAttached() throws Exception {\n\n final Instant now = Instant.now();\n final Instant thirtySixHoursAgo = now.minus(26, ChronoUnit.HOURS);\n final Instant oneYearAgo = now.minus(1, ChronoUnit.HOURS);\n final Instant requestTime = thirtySixHoursAgo.minusSeconds(1);\n final Instant responseTime = thirtySixHoursAgo.plusSeconds(1);\n\n final Header[] hdrs = new Header[] {\n new BasicHeader(\"Date\", DateUtils.formatStandardDate(thirtySixHoursAgo)),\n new BasicHeader(\"Cache-Control\", \"public\"),\n new BasicHeader(\"Last-Modified\", DateUtils.formatStandardDate(oneYearAgo)),\n new BasicHeader(\"Content-Length\", \"128\")\n };\n\n final byte[] bytes = new byte[128];\n new Random().nextBytes(bytes);\n\n final HttpCacheEntry entry = HttpTestUtils.makeCacheEntry(requestTime, responseTime, hdrs, bytes);\n\n impl = new CachingExec(mockCache, null, config);\n\n request = new BasicClassicHttpRequest(\"GET\", \"/thing\");\n\n final ClassicHttpResponse validated = HttpTestUtils.make200Response();\n validated.setHeader(\"Cache-Control\", \"public\");\n validated.setHeader(\"Last-Modified\", DateUtils.formatStandardDate(oneYearAgo));\n validated.setHeader(\"Content-Length\", \"128\");\n validated.setEntity(new ByteArrayEntity(bytes, null));\n\n final HttpCacheEntry cacheEntry = HttpTestUtils.makeCacheEntry();\n\n Mockito.when(mockCache.getCacheEntry(Mockito.eq(host), RequestEquivalent.eq(request))).thenReturn(entry);\n Mockito.when(mockExecChain.proceed(Mockito.any(), Mockito.any())).thenReturn(validated);\n Mockito.when(mockCache.createCacheEntry(\n Mockito.any(),\n Mockito.any(),\n ResponseEquivalent.eq(validated),\n Mockito.any(),\n Mockito.any(),\n Mockito.any())).thenReturn(cacheEntry);\n\n final ClassicHttpResponse result = execute(request);\n\n Assertions.assertEquals(200, result.getCode());\n\n final ArgumentCaptor<ClassicHttpRequest> reqCapture = ArgumentCaptor.forClass(ClassicHttpRequest.class);\n Mockito.verify(mockExecChain, Mockito.atMostOnce()).proceed(reqCapture.capture(), Mockito.any());\n final List<ClassicHttpRequest> allRequests = reqCapture.getAllValues();\n if (allRequests.isEmpty()) {\n // heuristic cache hit\n boolean found113Warning = false;\n final Iterator<HeaderElement> it = MessageSupport.iterate(result, HttpHeaders.WARNING);\n while (it.hasNext()) {\n final HeaderElement elt = it.next();\n final String[] parts = elt.getName().split(\" \");\n if (\"113\".equals(parts[0])) {\n found113Warning = true;\n break;\n }\n }\n Assertions.assertTrue(found113Warning);\n }\n Mockito.verify(mockCache).createCacheEntry(\n Mockito.any(),\n Mockito.any(),\n Mockito.any(),\n Mockito.any(),\n Mockito.any(),\n Mockito.any());\n }", "title": "" }, { "docid": "c1f41d88e3f91303f326964e70181863", "score": "0.5662264", "text": "public void testSetNoCache_Accuracy_1() {\r\n instance.setNoCache(true);\r\n assertEquals(\"The noCache should match\", true, instance.isNoCache());\r\n instance.setNoCache(false);\r\n assertEquals(\"The noCache should match\", false, instance.isNoCache());\r\n }", "title": "" }, { "docid": "b9f1855ba5065ac8a2610dc052d84213", "score": "0.5658135", "text": "@Test\n void searchNonExistingVehicle(){\n\n Vehicle vehicle = VehicleMother.random();\n inMemoryVehicleRepository.save(vehicle);\n\n Assert.assertFalse(inMemoryVehicleRepository.search(VehicleIdMother.random()).isPresent());\n }", "title": "" }, { "docid": "d071e98c819c3cdff131d9abb4ebedd7", "score": "0.56397766", "text": "public ExtractFromCacheTestCase() {\n super();\n createdFiles = new HashSet<File>();\n }", "title": "" }, { "docid": "eff427b2eeb7994a57bf66ae6706c15c", "score": "0.5634953", "text": "@Test\n public void testGetCacheSize() throws Exception {\n assertEquals(cacheList.getCacheSize(), total);\n }", "title": "" }, { "docid": "8f820c0304043464cb01a1f8ee2252da", "score": "0.5628335", "text": "@Benchmark\n public void nonCaching() {\n run();\n }", "title": "" }, { "docid": "f81b689e86a18b40c1c6000c7b3dc3e0", "score": "0.56178", "text": "@Before\n public void setup() {\n mockTicker = new TickerMock();\n cacheService = new SimpleCacheService(TimeoutException.class);\n origCacheInitialised = CacheService.initialised;\n CacheService.initialised = true;\n CacheService.timeoutBucket = null;\n }", "title": "" }, { "docid": "34926c2336c2229a2189b6b8b62f4de8", "score": "0.5609211", "text": "@Test\n public void getAllRecipes() {\n when(recipeRepository.findAll()).thenReturn(Set.of(new Recipe()));\n\n Set<Recipe> recipes = recipeService.getAllRecipes();\n assertEquals(1, recipes.size());\n verify(recipeRepository, times(1)).findAll();\n }", "title": "" }, { "docid": "fa8617f2688120da33144a298a569321", "score": "0.56062895", "text": "@Test\n public void testAddConcurrentCacheDestroy() throws Exception {\n checkConcurrentCacheDestroy(true);\n }", "title": "" }, { "docid": "29051cfeb097a2e082cbb939d23e0663", "score": "0.5604938", "text": "@Test\n public void testLoadAndStore() throws Exception {\n String newHistoryEntryDescription = (UUID.randomUUID()).toString();\n HistoryEntry newHistoryEntry = historyService.newHistoryEntry(newHistoryEntryDescription);\n newHistoryEntry.setNotes(\"dippy\");\n\n int numberOfHistoryEntries = historyService.allHistory().size();\n\n // Store the history to the backing writeHistory\n historyService.writeHistory();\n\n // Clear the cached history and check it is empty\n historyService.clear();\n List<HistoryEntry> allHistoryEntries = historyService.allHistory();\n assertThat(allHistoryEntries.size()).isEqualTo(0);\n\n // Reload it - there should be the same number of history entries and the new history entry should be available\n historyService.loadHistory();\n\n allHistoryEntries = historyService.allHistory();\n\n assertThat(allHistoryEntries.size()).isEqualTo(numberOfHistoryEntries);\n\n List<HistoryEntry> reloadedHistoryEntries = historyService.filterHistoryByContent(newHistoryEntryDescription);\n HistoryEntry reloadedHistoryEntry = reloadedHistoryEntries.iterator().next();\n\n // Check everything round-tripped OK\n assertThat(reloadedHistoryEntry.getDescription()).isEqualTo(newHistoryEntryDescription);\n assertThat(reloadedHistoryEntry.getId()).isEqualTo(newHistoryEntry.getId());\n assertThat(reloadedHistoryEntry.getNotes()).isEqualTo(newHistoryEntry.getNotes());\n\n }", "title": "" }, { "docid": "07226ebc35b055989b69f0d51b8e8d7a", "score": "0.5604509", "text": "@Test\n public void testGetSessionById_cached() {\n assertEquals(Optional.empty(), getCachedSession(sessionId));\n\n // save a session\n SerializableFormSession session = new SerializableFormSession(sessionId);\n formSessionService.saveSession(session);\n\n // cache is populated on save\n assertEquals(session, getCachedSession(sessionId).get());\n\n // get session hits the cache (repo is mocked)\n SerializableFormSession fetchedSession = formSessionService.getSessionById(sessionId);\n assertEquals(session, fetchedSession);\n\n // update session\n session.setInstanceXml(\"xml1\");\n formSessionService.saveSession(session);\n\n // cache and find return updated session\n assertEquals(\"xml1\", getCachedSession(sessionId).get().getInstanceXml());\n assertEquals(\"xml1\", formSessionService.getSessionById(sessionId).getInstanceXml());\n }", "title": "" }, { "docid": "6e4a6989d89eb17ee003d0b3592728f7", "score": "0.56027085", "text": "@Test\n public void testOnCallCache() throws Exception {\n final FileObject scratchFolder = getWriteFolder();\n if (FileObjectUtils.isInstanceOf(getBaseFolder(), RamFileObject.class)\n || scratchFolder.getFileSystem() instanceof VirtualFileSystem) {\n // can't check ram filesystem as every manager holds its own ram filesystem data\n return;\n }\n\n scratchFolder.delete(Selectors.EXCLUDE_SELF);\n\n final DefaultFileSystemManager fs = createManager();\n fs.setCacheStrategy(CacheStrategy.ON_CALL);\n fs.init();\n final FileObject foBase2 = getBaseTestFolder(fs);\n\n final FileObject cachedFolder = foBase2.resolveFile(scratchFolder.getName().getPath());\n\n FileObject[] fos = cachedFolder.getChildren();\n assertContainsNot(fos, \"file1.txt\");\n\n scratchFolder.resolveFile(\"file1.txt\").createFile();\n\n fos = cachedFolder.getChildren();\n assertContains(fos, \"file1.txt\");\n }", "title": "" }, { "docid": "67e3557d695ec0ca9c61ad60b3fcf74e", "score": "0.5602377", "text": "private void startCache() {\n c.put(1, \"foo\");\r\n }", "title": "" }, { "docid": "604856f86b1ef74f05cb9cad07eb5f8a", "score": "0.5602265", "text": "@Test\n public void TestJournalEntry() throws Exception {\n \t\n \tJournalEntry journalentry1 = BusinessObjectDAO.getInstance().create(\"JournalEntry\", \"journalentry7\");\n journalentry1.setJedate(SDF.parse(\"2012-2-1\"));\n journalentry1.save();\n \n\n Cache.getInstance().clear();\n \n //Tests reading from the database\n JournalEntry journalentry2 = BusinessObjectDAO.getInstance().read(\"journalentry7\");\n assertEquals(journalentry1.getId().trim(), journalentry2.getId().trim());\n assertEquals(journalentry1.getJedate(), journalentry2.getJedate());\n \n\n journalentry2.setJedate(SDF.parse(\"2012-6-18\"));\n journalentry2.save();\n \n Cache.getInstance().clear();\n \n JournalEntry journalentry3 = BusinessObjectDAO.getInstance().read(\"journalentry7\");\n //Tests reading from the database\n assertEquals(journalentry3.getId().trim(), journalentry2.getId().trim());\n assertEquals(journalentry3.getJedate(), journalentry2.getJedate());\n \n\n \n // journalentry4 should now have been read from the Cache and be the same object\n JournalEntry journalentry4 = BusinessObjectDAO.getInstance().read(\"journalentry7\");\n assertEquals(journalentry3, journalentry4);\n\n // test deleting\n BusinessObjectDAO.getInstance().delete(journalentry2);\n // Employee tests the search methods, so no need to test them again -Albrecht\n }", "title": "" }, { "docid": "03de219ac80cf52363d578b7b9b7508f", "score": "0.5601125", "text": "protected boolean isUseCache() {\n return useCache;\n }", "title": "" }, { "docid": "3c810aff15bf694e868c8dbdc506f16c", "score": "0.5590918", "text": "public TSelf noCaching();", "title": "" }, { "docid": "5540a399cf171a18fb857cb4558b7e8b", "score": "0.5574479", "text": "@Test\n public void testNoStoreOnRequestIsNotStoredInCache() throws Exception {\n request.setHeader(\"Cache-Control\",\"no-store\");\n Mockito.when(mockExecChain.proceed(Mockito.any(), Mockito.any())).thenReturn(originResponse);\n\n execute(request);\n\n Mockito.verifyNoInteractions(mockCache);\n }", "title": "" }, { "docid": "abbab413ddecd952b1613f3793f88499", "score": "0.55548453", "text": "@SuppressWarnings(\"unchecked\")\r\n public void testCaches_ImmutableNodeCaches() throws Exception\r\n {\r\n final NodeRef[] nodeRefs = new NodeRef[2];\r\n final NodeRef workspaceRootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);\r\n buildNodeHierarchy(workspaceRootNodeRef, nodeRefs);\r\n final NodeRef nodeRef = nodeRefs[1];\r\n\r\n // Get the current node cache key\r\n Long nodeId = (Long) findCacheValue(nodesCache, nodeRef);\r\n assertNotNull(\"Node not found in cache\", nodeId);\r\n Node nodeOne = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeOne);\r\n NodeVersionKey nodeKeyOne = nodeOne.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsOne = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyOne);\r\n Set<QName> nodeAspectsOne = (Set<QName>) findCacheValue(aspectsCache, nodeKeyOne);\r\n ParentAssocsInfo nodeParentAssocsOne = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyOne);\r\n \r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(1L), nodeKeyOne.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsOne);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsOne);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsOne);\r\n assertEquals(\"Property count incorrect\", 1, nodePropsOne.size());\r\n assertNotNull(\"Expected a cm:name property\", nodePropsOne.get(ContentModel.PROP_NAME));\r\n assertEquals(\"Aspect count incorrect\", 1, nodeAspectsOne.size());\r\n assertTrue(\"Expected a cm:auditable aspect\", nodeAspectsOne.contains(ContentModel.ASPECT_AUDITABLE));\r\n assertEquals(\"Parent assoc count incorrect\", 1, nodeParentAssocsOne.getParentAssocs().size());\r\n \r\n // Add a property\r\n nodeService.setProperty(nodeRef, PROP_RESIDUAL, GUID.generate());\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsOneCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyOne);\r\n Set<QName> nodeAspectsOneCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeyOne);\r\n ParentAssocsInfo nodeParentAssocsOneCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyOne);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsOneCheck == nodePropsOne);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsOneCheck == nodeAspectsOne);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsOneCheck == nodeParentAssocsOne);\r\n\r\n // Get the current node cache key\r\n Node nodeTwo = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeTwo);\r\n NodeVersionKey nodeKeyTwo = nodeTwo.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsTwo = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyTwo);\r\n Set<QName> nodeAspectsTwo = (Set<QName>) findCacheValue(aspectsCache, nodeKeyTwo);\r\n ParentAssocsInfo nodeParentAssocsTwo = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyTwo);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(2L), nodeKeyTwo.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsTwo);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsTwo);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsTwo);\r\n assertTrue(\"Properties must have moved on\", nodePropsTwo != nodePropsOne);\r\n assertEquals(\"Property count incorrect\", 2, nodePropsTwo.size());\r\n assertNotNull(\"Expected a cm:name property\", nodePropsTwo.get(ContentModel.PROP_NAME));\r\n assertNotNull(\"Expected a residual property\", nodePropsTwo.get(PROP_RESIDUAL));\r\n assertTrue(\"Aspects must be carried\", nodeAspectsTwo == nodeAspectsOne);\r\n assertTrue(\"Parent assocs must be carried\", nodeParentAssocsTwo == nodeParentAssocsOne);\r\n \r\n // Remove a property\r\n nodeService.removeProperty(nodeRef, PROP_RESIDUAL);\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsTwoCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyTwo);\r\n Set<QName> nodeAspectsTwoCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeyTwo);\r\n ParentAssocsInfo nodeParentAssocsTwoCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyTwo);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsTwoCheck == nodePropsTwo);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsTwoCheck == nodeAspectsTwo);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsTwoCheck == nodeParentAssocsTwo);\r\n\r\n // Get the current node cache key\r\n Node nodeThree = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeThree);\r\n NodeVersionKey nodeKeyThree = nodeThree.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsThree = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyThree);\r\n Set<QName> nodeAspectsThree = (Set<QName>) findCacheValue(aspectsCache, nodeKeyThree);\r\n ParentAssocsInfo nodeParentAssocsThree = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyThree);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(3L), nodeKeyThree.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsThree);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsThree);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsThree);\r\n assertTrue(\"Properties must have moved on\", nodePropsThree != nodePropsTwo);\r\n assertEquals(\"Property count incorrect\", 1, nodePropsThree.size());\r\n assertNotNull(\"Expected a cm:name property\", nodePropsThree.get(ContentModel.PROP_NAME));\r\n assertNull(\"Expected no residual property\", nodePropsThree.get(PROP_RESIDUAL));\r\n assertTrue(\"Aspects must be carried\", nodeAspectsThree == nodeAspectsTwo);\r\n assertTrue(\"Parent assocs must be carried\", nodeParentAssocsThree == nodeParentAssocsTwo);\r\n \r\n // Add an aspect\r\n nodeService.addAspect(nodeRef, ContentModel.ASPECT_TITLED, null);\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsThreeCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyThree);\r\n Set<QName> nodeAspectsThreeCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeyThree);\r\n ParentAssocsInfo nodeParentAssocsThreeCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyThree);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsThreeCheck == nodePropsThree);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsThreeCheck == nodeAspectsThree);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsThreeCheck == nodeParentAssocsThree);\r\n\r\n // Get the current node cache key\r\n Node nodeFour = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeFour);\r\n NodeVersionKey nodeKeyFour = nodeFour.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsFour = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyFour);\r\n Set<QName> nodeAspectsFour = (Set<QName>) findCacheValue(aspectsCache, nodeKeyFour);\r\n ParentAssocsInfo nodeParentAssocsFour = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyFour);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(4L), nodeKeyFour.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsFour);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsFour);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsFour);\r\n assertTrue(\"Properties must be carried\", nodePropsFour == nodePropsThree);\r\n assertTrue(\"Aspects must have moved on\", nodeAspectsFour != nodeAspectsThree);\r\n assertTrue(\"Expected cm:titled aspect\", nodeAspectsFour.contains(ContentModel.ASPECT_TITLED));\r\n assertTrue(\"Parent assocs must be carried\", nodeParentAssocsFour == nodeParentAssocsThree);\r\n \r\n // Remove an aspect\r\n nodeService.removeAspect(nodeRef, ContentModel.ASPECT_TITLED);\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsFourCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyFour);\r\n Set<QName> nodeAspectsFourCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeyFour);\r\n ParentAssocsInfo nodeParentAssocsFourCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyFour);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsFourCheck == nodePropsFour);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsFourCheck == nodeAspectsFour);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsFourCheck == nodeParentAssocsFour);\r\n\r\n // Get the current node cache key\r\n Node nodeFive = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeFive);\r\n NodeVersionKey nodeKeyFive = nodeFive.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsFive = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyFive);\r\n Set<QName> nodeAspectsFive = (Set<QName>) findCacheValue(aspectsCache, nodeKeyFive);\r\n ParentAssocsInfo nodeParentAssocsFive = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyFive);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(5L), nodeKeyFive.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsFive);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsFive);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsFive);\r\n assertTrue(\"Properties must be carried\", nodePropsFive == nodePropsFour);\r\n assertTrue(\"Aspects must have moved on\", nodeAspectsFive != nodeAspectsFour);\r\n assertFalse(\"Expected no cm:titled aspect \", nodeAspectsFive.contains(ContentModel.ASPECT_TITLED));\r\n assertTrue(\"Parent assocs must be carried\", nodeParentAssocsFive == nodeParentAssocsFour);\r\n \r\n // Add an aspect, some properties and secondary association\r\n RetryingTransactionCallback<Void> nodeSixWork = new RetryingTransactionCallback<Void>()\r\n {\r\n @Override\r\n public Void execute() throws Throwable\r\n {\r\n Map<QName, Serializable> props = new HashMap<QName, Serializable>();\r\n props.put(ContentModel.PROP_TITLE, \"some title\");\r\n nodeService.addAspect(nodeRef, ContentModel.ASPECT_TITLED, props);\r\n nodeService.setProperty(nodeRef, ContentModel.PROP_DESCRIPTION, \"Some description\");\r\n nodeService.addChild(\r\n Collections.singletonList(workspaceRootNodeRef),\r\n nodeRef,\r\n ContentModel.ASSOC_CHILDREN,\r\n QName.createQName(TEST_PREFIX, \"secondary\"));\r\n return null;\r\n }\r\n };\r\n txnService.getRetryingTransactionHelper().doInTransaction(nodeSixWork);\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsFiveCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyFive);\r\n Set<QName> nodeAspectsFiveCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeyFive);\r\n ParentAssocsInfo nodeParentAssocsFiveCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyFive);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsFiveCheck == nodePropsFive);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsFiveCheck == nodeAspectsFive);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsFiveCheck == nodeParentAssocsFive);\r\n\r\n // Get the current node cache key\r\n Node nodeSix = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeSix);\r\n NodeVersionKey nodeKeySix = nodeSix.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsSix = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeySix);\r\n Set<QName> nodeAspectsSix = (Set<QName>) findCacheValue(aspectsCache, nodeKeySix);\r\n ParentAssocsInfo nodeParentAssocsSix = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeySix);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(6L), nodeKeySix.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsSix);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsSix);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsSix);\r\n assertTrue(\"Properties must have moved on\", nodePropsSix != nodePropsFive);\r\n assertEquals(\"Property count incorrect\", 3, nodePropsSix.size());\r\n assertNotNull(\"Expected a cm:name property\", nodePropsSix.get(ContentModel.PROP_NAME));\r\n assertNotNull(\"Expected a cm:title property\", nodePropsSix.get(ContentModel.PROP_TITLE));\r\n assertNotNull(\"Expected a cm:description property\", nodePropsSix.get(ContentModel.PROP_DESCRIPTION));\r\n assertTrue(\"Aspects must have moved on\", nodeAspectsSix != nodeAspectsFive);\r\n assertTrue(\"Expected cm:titled aspect \", nodeAspectsSix.contains(ContentModel.ASPECT_TITLED));\r\n assertTrue(\"Parent assocs must have moved on\", nodeParentAssocsSix != nodeParentAssocsFive);\r\n assertEquals(\"Incorrect number of parent assocs\", 2, nodeParentAssocsSix.getParentAssocs().size());\r\n \r\n // Remove an aspect, some properties and a secondary association\r\n RetryingTransactionCallback<Void> nodeSevenWork = new RetryingTransactionCallback<Void>()\r\n {\r\n @Override\r\n public Void execute() throws Throwable\r\n {\r\n nodeService.removeAspect(nodeRef, ContentModel.ASPECT_TITLED);\r\n nodeService.removeChild(workspaceRootNodeRef, nodeRef);\r\n return null;\r\n }\r\n };\r\n txnService.getRetryingTransactionHelper().doInTransaction(nodeSevenWork);\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsSixCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeySix);\r\n Set<QName> nodeAspectsSixCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeySix);\r\n ParentAssocsInfo nodeParentAssocsSixCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeySix);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsSixCheck == nodePropsSix);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsSixCheck == nodeAspectsSix);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsSixCheck == nodeParentAssocsSix);\r\n\r\n // Get the current node cache key\r\n Node nodeSeven = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeSeven);\r\n NodeVersionKey nodeKeySeven = nodeSeven.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsSeven = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeySeven);\r\n Set<QName> nodeAspectsSeven = (Set<QName>) findCacheValue(aspectsCache, nodeKeySeven);\r\n ParentAssocsInfo nodeParentAssocsSeven = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeySeven);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(7L), nodeKeySeven.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsSeven);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsSeven);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsSeven);\r\n assertTrue(\"Properties must have moved on\", nodePropsSeven != nodePropsSix);\r\n assertEquals(\"Property count incorrect\", 1, nodePropsSeven.size());\r\n assertNotNull(\"Expected a cm:name property\", nodePropsSeven.get(ContentModel.PROP_NAME));\r\n assertTrue(\"Aspects must have moved on\", nodeAspectsSeven != nodeAspectsSix);\r\n assertFalse(\"Expected no cm:titled aspect \", nodeAspectsSeven.contains(ContentModel.ASPECT_TITLED));\r\n assertTrue(\"Parent assocs must have moved on\", nodeParentAssocsSeven != nodeParentAssocsSix);\r\n assertEquals(\"Incorrect number of parent assocs\", 1, nodeParentAssocsSeven.getParentAssocs().size());\r\n \r\n // Modify cm:auditable\r\n RetryingTransactionCallback<Void> nodeEightWork = new RetryingTransactionCallback<Void>()\r\n {\r\n @Override\r\n public Void execute() throws Throwable\r\n {\r\n BehaviourFilter behaviourFilter = (BehaviourFilter) ctx.getBean(\"policyBehaviourFilter\");\r\n // Disable behaviour for txn\r\n behaviourFilter.disableBehaviour(nodeRef, ContentModel.ASPECT_AUDITABLE);\r\n nodeService.setProperty(nodeRef, ContentModel.PROP_MODIFIER, \"Fred\");\r\n return null;\r\n }\r\n };\r\n txnService.getRetryingTransactionHelper().doInTransaction(nodeEightWork);\r\n \r\n // Get the values for the previous version\r\n Map<QName, Serializable> nodePropsSevenCheck = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeySeven);\r\n Set<QName> nodeAspectsSevenCheck = (Set<QName>) findCacheValue(aspectsCache, nodeKeySeven);\r\n ParentAssocsInfo nodeParentAssocsSevenCheck = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeySeven);\r\n assertTrue(\"Previous cache entries must be left alone\", nodePropsSevenCheck == nodePropsSeven);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeAspectsSevenCheck == nodeAspectsSeven);\r\n assertTrue(\"Previous cache entries must be left alone\", nodeParentAssocsSevenCheck == nodeParentAssocsSeven);\r\n\r\n // Get the current node cache key\r\n Node nodeEight = (Node) findCacheValue(nodesCache, nodeId);\r\n assertNotNull(\"Node not found in cache\", nodeEight);\r\n NodeVersionKey nodeKeyEight = nodeEight.getNodeVersionKey();\r\n \r\n // Get the node cached values\r\n Map<QName, Serializable> nodePropsEight = (Map<QName, Serializable>) findCacheValue(propsCache, nodeKeyEight);\r\n Set<QName> nodeAspectsEight = (Set<QName>) findCacheValue(aspectsCache, nodeKeyEight);\r\n ParentAssocsInfo nodeParentAssocsEight = (ParentAssocsInfo) findCacheValue(parentAssocsCache, nodeKeyEight);\r\n\r\n // Check the values\r\n assertEquals(\"The node version is incorrect\", Long.valueOf(8L), nodeKeyEight.getVersion());\r\n assertNotNull(\"No cache entry for properties\", nodePropsEight);\r\n assertNotNull(\"No cache entry for aspects\", nodeAspectsEight);\r\n assertNotNull(\"No cache entry for parent assocs\", nodeParentAssocsEight);\r\n assertEquals(\"Expected change to cm:modifier\", \"Fred\", nodeEight.getAuditableProperties().getAuditModifier());\r\n assertTrue(\"Properties must be carried\", nodePropsEight == nodePropsSeven);\r\n assertTrue(\"Aspects be carried\", nodeAspectsEight == nodeAspectsSeven);\r\n assertTrue(\"Parent assocs must be carried\", nodeParentAssocsEight == nodeParentAssocsSeven);\r\n }", "title": "" }, { "docid": "66fe927256f89d87b83816d4837e546a", "score": "0.55341494", "text": "protected abstract void flushFromCache(Request rqst);", "title": "" }, { "docid": "13350e5cd3ed1a960f0f7eaedbba6ed1", "score": "0.55338246", "text": "public boolean isQueryCaching() {\n/* 934 */ return (this.queryCache != null);\n/* */ }", "title": "" }, { "docid": "1b06f6ebe0675f47fb1786a451bb958c", "score": "0.5530964", "text": "public long getCacheHitCount() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "e96e41376b6a566c0c798bfd0dda167b", "score": "0.55242985", "text": "public static void cacheResult(irestads.model.TestEntity testEntity) {\n\t\tgetPersistence().cacheResult(testEntity);\n\t}", "title": "" }, { "docid": "5e1317eb76617bca7c2aad10a04e1a90", "score": "0.55220395", "text": "boolean inCache(String key);", "title": "" }, { "docid": "1a57883b26b2d11dba44a10df41c3457", "score": "0.5515751", "text": "public interface TestCacheRepository extends CrudRepository<TestCache, String> {\n}", "title": "" }, { "docid": "6a7334dd6fcfcf7e695a9b83dfcbfb01", "score": "0.5513044", "text": "public static void main(String[] args) {\n RecordService rs = new SQLService(\"jdbc:mysql://localhost/testdb?user=root&password=\");\n RecordProvider rp = rs.getTable(\"users\");\n CacheService<User> cacheTest = new CacheService<>(User.class, rp);\n\n// System.out.println(\"Age 19: \" + cacheTest.findRecord(\"age\", 18).get().getUsername());\n\n System.out.println(\"Testing custom queries\");\n Query q = cacheTest.createQuery(\"SELECT * FROM <table> ORDER BY id LIMIT 2\");\n for(User x:cacheTest.findRecords(q)){\n System.out.println(\"Found record: \" + x.getUsername());\n }\n// Update q2 = cacheTest.createUpdate(\"UPDATE <table> SET age = '10' WHERE age = '6999'\");\n// System.out.println(q2.execute());\n// System.out.println(\"Adding a new user\");\n// User u = cacheTest.createRecord();\n// u.setUsername(\"Jeff\");\n// //u.setAge(69);\n// System.out.println(\"Done making user\");\n // finally\n cacheTest.shutdown();\n }", "title": "" }, { "docid": "e5ba753776ec42a9222d54690bc947b2", "score": "0.55117", "text": "public void testBasicSingleOperationsWithoutNetwork() throws Exception {\n DummyObjectMockServer.getInstance().setNetworkAvailable(false);\n\n final DummyObject d = new DummyObject(\"meow\", 0, null);\n\n assertNull(\"new object should not have a local id\", d.getId());\n assertNull(\"new object should not have a server id\", d.getServerId());\n assertFalse(\"new object should not be synced\", d.hasServerId());\n assertTrue(\"new object should be new\", d.isNew());\n\n WeakMapNetworkResourceCache cache = (WeakMapNetworkResourceCache)DummyObjectSource.getInstance().getResourceCache();\n\n Dao<UnsyncedResource, Integer> unsyncedResourceDao = GenericDatabase.getInstance().getDao(UnsyncedResource.class);\n Dao<DeletedResource, Integer> deletedResourceDao = GenericDatabase.getInstance().getDao(DeletedResource.class);\n\n assertEquals(\"object cache should be empty\", 0, cache.size());\n assertEquals(\"unsynced resources should be empty\", 0, unsyncedResourceDao.countOf());\n assertEquals(\"deleted resources should be empty\", 0, deletedResourceDao.countOf());\n\n //CREATE\n DummyObject result = (new Synchronizer<DummyObject>(){\n public void run(){\n d.save(new Source.OperationCallback<DummyObject>() {\n @Override\n public void onResult(@Nullable DummyObject r) {\n setResult(r);\n }\n });\n }\n }).blockUntilFinished();\n\n new Synchronizer<Void>() {\n @Override\n public void run() {\n BackgroundThread.postBackground(new Runnable() {\n @Override\n public void run() {\n while (!DummyObjectSource.getInstance().wasCreateCompleted()) { /*block*/ }\n DummyObjectSource.getInstance().clearCreateCompleted();\n setResult(null);\n }\n });\n }\n }.blockUntilFinished();\n\n assertEquals(\"object cache should be 1\", 1, cache.size());\n\n assertNotNull(\"saved object should be returned in callback\", result);\n assertNotNull(\"saved object should have a local id\", result.getId());\n assertNull(\"saved object should NOT have a server id\", result.getServerId());\n assertFalse(\"saved object should NOT be synced\", result.hasServerId());\n assertEquals(\"saved object should be the same instance\", d, result);\n assertNotNull(\"item should be in database\", DummyObjectSource.getInstance().getDao().queryForId(d.getId()));\n assertEquals(\"item should be in unsynced table\", 1, unsyncedResourceDao.countOf());\n UnsyncedResource unsyncedResource = unsyncedResourceDao.queryForAll().get(0);\n assertEquals(\"the unsynced resource should have the same id\", String.valueOf(d.getId()), unsyncedResource.getLocalId());\n assertEquals(\"the usynced class name should be correct\", \"audio.rabid.dev.roe.testobjects.DummyObject\", unsyncedResource.getClassName());\n assertTrue(\"the unsynced resource should be marked that a create is required\", unsyncedResource.needsCreate());\n\n //READ\n result = new Synchronizer<DummyObject>() {\n @Override\n public void run() {\n DummyObjectSource.getInstance().find(d.getId(), new Source.OperationCallback<DummyObject>() {\n @Override\n public void onResult(@Nullable DummyObject result) {\n setResult(result);\n }\n });\n }\n }.blockUntilFinished();\n\n assertEquals(\"object by id should be the same instance\", d, result);\n assertEquals(\"object cache should be 1\", 1, cache.size());\n\n //UPDATE\n d.setAge(10);\n\n result = new Synchronizer<DummyObject>() {\n @Override\n public void run() {\n d.save(new Source.OperationCallback<DummyObject>() {\n @Override\n public void onResult(@Nullable DummyObject result) {\n setResult(result);\n }\n });\n }\n }.blockUntilFinished();\n\n new Synchronizer<Void>() {\n @Override\n public void run() {\n BackgroundThread.postBackground(new Runnable() {\n @Override\n public void run() {\n while (!DummyObjectSource.getInstance().wasUpdateCompleted()) { /*block*/ }\n DummyObjectSource.getInstance().wasUpdateCompleted();\n setResult(null);\n }\n });\n }\n }.blockUntilFinished();\n\n assertNotNull(\"updated object should be returned in callback\", result);\n assertNull(\"saved object should NOT have a server id\", result.getServerId());\n assertFalse(\"saved object should NOT be synced\", result.hasServerId());\n assertEquals(\"updated object should have the same local id\", d.getId(), result.getId());\n assertEquals(\"updated object should have the new values\", 10, result.getAge());\n assertEquals(\"updated object should be the same instance\", d, result);\n assertEquals(\"object cache should be 1\", 1, cache.size());\n assertEquals(\"item should be in unsynced table\", 1, unsyncedResourceDao.countOf());\n unsyncedResource = unsyncedResourceDao.queryForAll().get(0);\n assertEquals(\"the unsynced resource should have the same id\", DummyObjectSource.getInstance().convertLocalIdToString(d.getId()), unsyncedResource.getLocalId());\n assertEquals(\"the usynced class name should be correct\", \"audio.rabid.dev.roe.testobjects.DummyObject\", unsyncedResource.getClassName());\n assertTrue(\"the unsynced resource should STILL be marked that a create is required\", unsyncedResource.needsCreate());\n\n //SYNC NO NET\n long prevUpdateTime = d.getUpdatedAt().getTime();\n List<DummyObject> synced = new Synchronizer<List<DummyObject>>() {\n @Override\n public void run() {\n DummyObjectSource.getInstance().sync(new Source.OperationCallback<List<DummyObject>>() {\n @Override\n public void onResult(@Nullable List<DummyObject> result) {\n setResult(result);\n }\n });\n }\n }.blockUntilFinished();\n\n assertEquals(\"synced list should be empty\", 0, synced.size());\n assertFalse(\"the item should not be marked as synced\", d.hasServerId());\n assertEquals(\"the new update time should be the same as the old one\", prevUpdateTime, d.getUpdatedAt().getTime());\n assertEquals(\"object cache should be 1\", 1, cache.size());\n assertEquals(\"item should still be in unsynced table\", 1, unsyncedResourceDao.countOf());\n\n //SYNC NET\n DummyObjectMockServer.getInstance().setNetworkAvailable(true); //enable network\n\n prevUpdateTime = d.getUpdatedAt().getTime();\n synced = new Synchronizer<List<DummyObject>>() {\n @Override\n public void run() {\n DummyObjectSource.getInstance().sync(new Source.OperationCallback<List<DummyObject>>() {\n @Override\n public void onResult(@Nullable List<DummyObject> result) {\n setResult(result);\n }\n });\n }\n }.blockUntilFinished();\n\n assertTrue(\"the item should be marked as synced\", d.hasServerId());\n assertNotNull(\"the item should have a server id\", d.getServerId());\n assertEquals(\"synced list should have one item\", 1, synced.size());\n assertEquals(\"synced list object should be the same\", d, synced.get(0));\n assertEquals(\"object cache should be 1\", 1, cache.size());\n assertEquals(\"there should be no more items in the unsynced table\", 0, unsyncedResourceDao.queryForAll().size());\n assertTrue(\"the new update time should be larger than the old one\", d.getUpdatedAt().getTime() > prevUpdateTime);\n }", "title": "" }, { "docid": "7554ebfac29b68ce58b6509c006ce28a", "score": "0.5511677", "text": "@Test\n public void testCacheSizeWorksCorrectlyWithTtl() throws IgniteInterruptedCheckedException {\n startIgniteServer();\n\n Ignite client = startIgniteClient();\n\n try (IgniteDataStreamer dataStreamer = client.dataStreamer(CACHE_NAME)) {\n IntStream.range(0, 100_000)\n .forEach(i -> dataStreamer.addData(1, LocalDateTime.now()));\n }\n\n assertTrue(GridTestUtils.waitForCondition(() -> client.cache(CACHE_NAME).size(CachePeekMode.PRIMARY) == 0,\n getTestTimeout()));\n }", "title": "" }, { "docid": "b8eb2449b41bceb07e2bbbaf61ec767d", "score": "0.5508043", "text": "private void initializeCache() {\n // Cache loader get user from apispark. Never returns null\n CacheLoader<UserIdentifier, UserInfo> userLoader = new CacheLoader<UserIdentifier, UserInfo>() {\n public UserInfo load(UserIdentifier userIdentifier) {\n Credentials credentials = new Credentials(\n userIdentifier.getIdentifier(),\n userIdentifier.getSecret());\n User user = authenticateClientResource\n .authenticate(credentials);\n if (user == null) {\n // Authentication should throw an error instead of returning\n // null\n throw new AgentException(\n \"Authentication should not return null\");\n }\n return new UserInfo(user, userIdentifier.getSecret());\n }\n };\n\n userLoadingCache = CacheBuilder\n .newBuilder()\n .maximumSize(authenticationSettings.getCacheSize())\n .expireAfterWrite(\n authenticationSettings.getCacheTimeToLiveSeconds(),\n TimeUnit.SECONDS).build(userLoader);\n }", "title": "" }, { "docid": "b3d2ab6d682f8baf739b12830bb7d319", "score": "0.5507099", "text": "@Test\n\tpublic void shouldUpdatePerson() {\n\t\tPerson person = new Person();\n\t\tperson.setId(id.getAndIncrement());\n\t\tperson.setFirstname(\"Foo\");\n\t\tperson.setLastname(\"Bar\");\n\t\tperson.setAge(19);\n\n\t\tperson = repository.saveAndFlush(person);\n\n\t\tNamedCache<Long, Person> cache = session.getCache(\"people\");\n\t\tPerson cached = cache.get(person.getId());\n\n\t\tassertThat(cached, is(notNullValue()));\n\t\tassertThat(cached.getId(), is(person.getId()));\n\t\tassertThat(cached.getFirstname(), is(person.getFirstname()));\n\t\tassertThat(cached.getLastname(), is(person.getLastname()));\n\t\tassertThat(cached.getAge(), is(19));\n\n\t\tcached.setAge(20);\n\t\tcache.put(cached.getId(), cached);\n\n\t\tOptional<Person> byId = repository.findById(person.getId());\n\t\tassertThat(byId.isPresent(), is(true));\n\t\tPerson result = byId.get();\n\t\tassertThat(result, is(notNullValue()));\n\t\tassertThat(result.getAge(), is(20));\n\t}", "title": "" } ]
186af59b0913ebce234462adf27c9ba5
Market identifier string market_id = 1 [json_name = "marketId"];
[ { "docid": "c5b6dae399d6507e3882de2e25ca4094", "score": "0.6877536", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
[ { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.7825968", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.78249437", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.78249437", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "ca111923cf5056198a9422279abb8d22", "score": "0.78249437", "text": "java.lang.String getMarketId();", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.71590096", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.71590096", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.71590096", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.71590096", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7158841", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.71579087", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.71579087", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157884", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157884", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157881", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157616", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a67ec3333e65e754a3efdebe512bf305", "score": "0.7157552", "text": "public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.7123941", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.7123941", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.71235335", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.71229815", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.71229815", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.71228135", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "27e14be695a61bb5cbb6eeb767144a49", "score": "0.7122779", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71212786", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71208286", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71208286", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "fe8327a3a92fc316c871505af8bb039e", "score": "0.71208286", "text": "@java.lang.Override\n public java.lang.String getMarketId() {\n java.lang.Object ref = marketId_;\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 marketId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.6985263", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.6985263", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.69847053", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.69847053", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.6984226", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.6983996", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "84d095e1789db19467626673660b18ee", "score": "0.6983462", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69533104", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69526416", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69526416", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69526416", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "18c824500156fed3f70050ab9ae70d2e", "score": "0.69526416", "text": "public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.68974555", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.68974555", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.68973154", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.6895921", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.6895762", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.6895762", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fea4daf9b7fa97d122a402a12ef92253", "score": "0.6895498", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMarketIdBytes() {\n java.lang.Object ref = marketId_;\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 marketId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "e56e8e40b6cd9bc773f45951b3a4c8be", "score": "0.6798876", "text": "public int getMarketId() {\n return marketId;\n }", "title": "" } ]
156d08972392bcf388b3a3f4cefeaac7
What your robot can do: right() => move 1 to the right left() => move 1 to the left up() => move 1 up down() => move 1 down isClearRight() => true means no block to the right isClearRight() => true means no block to the left isClearUp() => true means no block up isClearDown() => true means no block down getX() => returns x coordinate of robot getY() => returns y coordinate of robot public final int[] getData() => returns array of int data public final int getData(int idx) => returns int data from index idx public final void setData(int idx, int value) => sets value of data array at idx public final void setData(int[] newData) => replaces values in data array with values in newData
[ { "docid": "d1f02d4eb8d411e54bedcf5a4236322c", "score": "0.6078949", "text": "public void behave() {\n if (getData(0) == 0) {\n if (isClearRight()) {\n setData(0, 1);\n right();\n }\n else if (isClearDown()) {\n setData(0, 1);\n setData(1, 1);\n down();\n }\n }\n else if (getData(0) == 1) {\n if (getData(1) == 0) {\n if (!isClearUp()) {\n if (!isClearRight()) {\n if (!isClearDown()) {\n setData(1, 2);\n left();\n }\n else {\n setData(1, 1);\n down();\n }\n }\n right();\n }\n else {\n setData(1, 3);\n up();\n }\n }\n else if (getData(1) == 1) {\n if (!isClearRight()) {\n if (!isClearDown()) {\n if (!isClearLeft()) {\n setData(1, 3);\n up();\n }\n else {\n setData(1, 2);\n left();\n }\n }\n down();\n }\n else {\n setData(1, 0);\n right();\n }\n }\n else if (getData(1) == 2) {\n if (!isClearDown()) {\n if (!isClearLeft()) {\n if (!isClearUp()) {\n setData(1, 0);\n right();\n }\n else {\n setData(1, 3);\n up();\n }\n }\n left();\n }\n else {\n setData(1, 1);\n down();\n }\n }\n else if (getData(1) == 3) {\n if (!isClearLeft()) {\n if (!isClearUp()) {\n if (!isClearRight()) {\n setData(1, 1);\n down();\n }\n else {\n setData(1, 0);\n right();\n }\n }\n up();\n }\n else {\n setData(1, 2);\n left();\n }\n }\n }\n }", "title": "" } ]
[ { "docid": "b62e95d20e1150f6f9bda171d4809ca9", "score": "0.6159252", "text": "public int doRandomAction(){\n\t\tprevRobotPos = robotPos;\n\t\twhile (true){\n\t\t\tint action = rand.nextInt(4);\n\t\t\tif (action == 0){ // up\n\t\t\t\tif (robotPos[1] != 0) {\n\t\t\t\t\trobotPos[1] -= 1;\n\t\t\t\t\treturn getState(robotPos[0],robotPos[1]);\n\t\t\t\t}\n\t\t\t} else if (action == 1){ // down\n\t\t\t\tif (robotPos[1] != grid.length - 1) {\n\t\t\t\t\trobotPos[1] += 1;\n\t\t\t\t\treturn getState(robotPos[0],robotPos[1]+1);\n\t\t\t\t}\n\t\t\t} else if (action == 2){ // left\n\t\t\t\tif (robotPos[0] != 0) {\n\t\t\t\t\trobotPos[0] -= 1;\n\t\t\t\t\treturn getState(robotPos[0]-1,robotPos[1]);\n\t\t\t\t}\n\t\t\t} else { // right\n\t\t\t\tif (robotPos[0] != grid[0].length - 1) {\n\t\t\t\t\trobotPos[0] += 1;\n\t\t\t\t\treturn getState(robotPos[0]+1,robotPos[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "85744690dc72ee0551294ae93a9709bb", "score": "0.59491765", "text": "interface Robot {\n // Returns true if the cell in front is open and robot moves into the cell.\n // Returns false if the cell in front is blocked and robot stays in the current cell.\n public boolean move();\n // Robot will stay in the same cell after calling turnLeft/turnRight.\n // Each turn will be 90 degrees.\n public void turnLeft();\n public void turnRight();\n\n // Clean the current cell.\n public void clean();\n }", "title": "" }, { "docid": "0c82b319e38dc5937c993a5b8e0eab27", "score": "0.58775413", "text": "public void moveDoggie (boolean p, int x, int y, int[][] array){ \n write = p;\n spaces = x;\n coordinate = y;\n if (write == true)\n\t{ mark = 1;} \n else{mark = 0;}\n \n if (spaces < 20){ //DOWN \n\tif (coordinate == 0){\n if (spaces + position_R > 19){spaces = 19 - position_R;}\n int move = 0;\n for (int r = 0; r < spaces + 1; r++){\n move = position_R + r;\n array[move][position_C] = mark;\n }position_R = move; array[position_R][position_C] = 1;}\n \n\telse { //RIGHT\n\tif (coordinate == 1){ \n if (position_C - spaces < 0){spaces = position_C;}\n\t int move = position_C;\n for (int c = spaces; c > 0; c--){\n // while(move > -1){\n \tarray[position_R][move] = mark;\n move -= 1;\n }position_C = move; array[position_R][position_C] = 1;}\n\telse { //UP\n\tif (coordinate == 2){\n if (position_R - spaces < 0){spaces = position_R;}\n int move = position_R;\n for (int r = spaces; r > 0; r--){\n array[move][position_C] = mark;\n move -= 1;}\n\t\tposition_R = move; array[position_R][position_C] = 1;} \n\telse { //LEFT\n\tif (coordinate == 3){\n if (spaces + position_C > 19){spaces = 19 - position_C;}\n\t int move = 0;\n\t\tfor (int c = 0; c < (spaces + 1); c++){\n \tmove = position_C + c;\n array[position_R][move] = mark;} \n\t\t\tposition_C = move; \n array[position_R][position_C] = 1;}\n\t } } }//END direction statements\n}//end major IF\n else{\n System.out.println(\"In proper command entry. Please try again.\");}\n \n }", "title": "" }, { "docid": "41a3252194e024433ff1770d528ed94b", "score": "0.5684048", "text": "public int getX() {\n return state[robotTurn * 2];\n }", "title": "" }, { "docid": "7b970d3ebb04f74bbee758f9ad9ccc80", "score": "0.5563486", "text": "public void \nmovement ( int w , int o ) \n{ int mstate ;\n int p, q ;\n int k ;\n q = getnode ( 3 ) ;\n mem [q + 1 ]. setInt ( w ) ;\n mem [q + 2 ]. setInt ( dvioffset + dviptr ) ;\n if ( o == 157 ) \n { \n mem [q ]. setrh ( downptr ) ;\n downptr = q ;\n } \n else { \n mem [q ]. setrh ( rightptr ) ;\n rightptr = q ;\n } \n lab40: while ( true ) { \n p = mem [q ]. getrh () ;\n mstate = 0 ;\n lab45: while ( p != 0 ) { \n if ( mem [p + 1 ]. getInt () == w ) \n switch ( mstate + mem [p ]. getlh () ) \n { case 3 : \n case 4 : \n case 15 : \n case 16 : \n if ( mem [p + 2 ]. getInt () < dvigone ) \n break lab45 ;\n else { \n k = mem [p + 2 ]. getInt () - dvioffset ;\n if ( k < 0 ) \n k = k + dvibufsize ;\n dvibuf [k ]= dvibuf [k ]+ 5 ;\n mem [p ]. setlh ( 1 ) ;\n break lab40 ;\n } \n case 5 : \n case 9 : \n case 11 : \n if ( mem [p + 2 ]. getInt () < dvigone ) \n break lab45 ;\n else { \n k = mem [p + 2 ]. getInt () - dvioffset ;\n if ( k < 0 ) \n k = k + dvibufsize ;\n dvibuf [k ]= dvibuf [k ]+ 10 ;\n mem [p ]. setlh ( 2 ) ;\n break lab40 ;\n } \n case 1 : \n case 2 : \n case 8 : \n case 13 : \n break lab40 ;\n default: \n ;\n break ;\n } \n else switch ( mstate + mem [p ]. getlh () ) \n { case 1 : \n mstate = 6 ;\n break ;\n case 2 : \n mstate = 12 ;\n break ;\n case 8 : \n case 13 : \n break lab45 ;\n default: \n ;\n break ;\n } \n p = mem [p ]. getrh () ;\n } \n /* lab45: */ mem [q ]. setlh ( 3 ) ;\n if ( Math . abs ( w ) >= 8388608 ) \n { \n { \n dvibuf [dviptr ]= o + 3 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n dvifour ( w ) ;\n return /* lab10 */ ;\n } \n lab1: while ( true ) { \n if ( Math . abs ( w ) >= 32768 ) \n { \n { \n dvibuf [dviptr ]= o + 2 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n if ( w < 0 ) \n w = w + 16777216 ;\n { \n dvibuf [dviptr ]= w / 65536 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n w = w % 65536 ;\n { \n dvibuf [dviptr ]= w / 256 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n break lab1 ;\n } \n if ( Math . abs ( w ) >= 128 ) \n { \n { \n dvibuf [dviptr ]= o + 1 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n if ( w < 0 ) \n w = w + 65536 ;\n { \n dvibuf [dviptr ]= w / 256 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n break lab1 ;\n } \n { \n dvibuf [dviptr ]= o ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n if ( w < 0 ) \n w = w + 256 ;\n break ;\n } \n /* lab1: */ { \n dvibuf [dviptr ]= w % 256 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n return /* lab10 */ ;\n } \n /* lab40: */ mem [q ]. setlh ( mem [p ]. getlh () ) ;\n if ( mem [q ]. getlh () == 1 ) \n { \n { \n dvibuf [dviptr ]= o + 4 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n while ( mem [q ]. getrh () != p ) { \n q = mem [q ]. getrh () ;\n switch ( mem [q ]. getlh () ) \n { case 3 : \n mem [q ]. setlh ( 5 ) ;\n break ;\n case 4 : \n mem [q ]. setlh ( 6 ) ;\n break ;\n default: \n ;\n break ;\n } \n } \n } \n else { \n { \n dvibuf [dviptr ]= o + 9 ;\n dviptr = dviptr + 1 ;\n if ( dviptr == dvilimit ) \n dviswap () ;\n } \n while ( mem [q ]. getrh () != p ) { \n q = mem [q ]. getrh () ;\n switch ( mem [q ]. getlh () ) \n { case 3 : \n mem [q ]. setlh ( 4 ) ;\n break ;\n case 5 : \n mem [q ]. setlh ( 6 ) ;\n break ;\n default: \n ;\n break ;\n } \n } \n } \n}", "title": "" }, { "docid": "a83882fbf2322d727939600aa2a1117f", "score": "0.55608094", "text": "public int currentState(){\n\t\treturn robotPos[0] + robotPos[1] * 4;\n\t}", "title": "" }, { "docid": "15aeff547aba3ca9831a14708e23e5c0", "score": "0.55356264", "text": "data(int ud, int i, int w){\n\n //giving specific property values for the robot\n this.userData = ud;\n this.countI = i;\n this.countW = w; \n \n }", "title": "" }, { "docid": "35ad3e3674e871f8d2988b5ea0829131", "score": "0.54746234", "text": "public void updateOI() {\n\t\tSmartDashboard.putNumber(\"Gyro\", Robot.driveTrain.getGyro().getAngle());\n\t\tSmartDashboard.putNumber(\"Left Encoder\", Robot.driveTrain.getLeftEncoder());\n\t\tSmartDashboard.putNumber(\"Right Encoder\", Robot.driveTrain.getRightEncoder());\n\t\tSmartDashboard.putNumber(\"NAV-X\", Robot.driveTrain.getNAVX().getAngle());\n\t\tSmartDashboard.putNumber(\"Left Enc Feet\", Robot.driveTrain.encoderTicksToFeet(Robot.driveTrain.getLeftEncoder()) - SmartDashboard.getNumber(\"SetLeftChange\", 0));\n\t\tSmartDashboard.putNumber(\"Right Enc Feet\", Robot.driveTrain.encoderTicksToFeet(Robot.driveTrain.getRightEncoder()) - SmartDashboard.getNumber(\"SetRightChange\", 0));\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Encoder RPM\", Robot.rightShooter.getSpeed());\n\t\tSmartDashboard.putNumber(\"Shooter ID 8: Encoder RPM\", Robot.leftShooter.getSpeed());\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Encoder Native Units\", Robot.rightShooter.shooterMotor.get());\n\t\tSmartDashboard.putNumber(\"Shooter ID 8: Encoder Native Units\", Robot.leftShooter.shooterMotor.get());\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Encoder Position\", Robot.rightShooter.shooterMotor.getPosition());\n\t\tSmartDashboard.putNumber(\"Shooter ID 8: Encoder Position\", Robot.leftShooter.shooterMotor.getPosition());\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Encoder V\", Robot.rightShooter.shooterMotor.getEncVelocity());\n\t\tSmartDashboard.putNumber(\"Shooter ID 8: Encoder V\", Robot.leftShooter.shooterMotor.getEncVelocity());\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Voltage\", Robot.rightShooter.shooterMotor.getOutputVoltage());\n\t\tSmartDashboard.putNumber(\"Shooter ID 8: Voltage\", Robot.leftShooter.shooterMotor.getOutputVoltage());\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Current\", Robot.rightShooter.shooterMotor.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Shooter ID 8: Current\", Robot.leftShooter.shooterMotor.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Shooter ID 7: Current\", Robot.rightShooter.shooterMotor.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Ultrasonic\", Robot.ultrasonic.getRange());\n\t\tSmartDashboard.putNumber(\"Angle Gear\", Robot.visionProcessor.angleGear);\n\t\tSmartDashboard.putNumber(\"Gear Distance\", Robot.visionProcessor.distGear);\n\t\tSmartDashboard.putNumber(\"High Distance\", Robot.visionProcessor.distHigh);\n\t\t\n\t\t/*SmartDashboard.putData(\"Starting Position\", startPosition);\n\t\tSmartDashboard.putData(\"Step 1\", firstMovement);\n\t\tSmartDashboard.putData(\"Step 2\", firstAction);\n\t\tSmartDashboard.putData(\"Step 3\", secondMovement);\n\t\tSmartDashboard.putData(\"Step 4\", secondAction);\n\t\t*/\n\t\t\n\t\t//selectAuton();\n\t}", "title": "" }, { "docid": "5f39f2fd6f26f0af7535808d15df0c5d", "score": "0.5456127", "text": "void setData(int xAxis, int yAxis, int zAxis, int rAxis, int wAxis,\n int rotCam, int manTight, int botMan, int speedMode, int muxChannel,\n boolean isAutoYaw, boolean isAutoPitch, boolean isAutoDepth, boolean isLED) {\n // Values are from -100 to 100, so we can use 1 byte to send every axis\n data = new byte[packet_size];\n data[0] = (byte) xAxis;\n data[1] = (byte) yAxis;\n data[2] = (byte) zAxis;\n data[3] = (byte) rAxis;\n data[4] = (byte) wAxis;\n\n if (rotCam < 0) {\n data[5] |= (byte) 0b00000001;\n } else if (rotCam > 0) {\n data[5] |= (byte) 0b00000010;\n }\n if (manTight < 0) {\n data[5] |= (byte) 0b00000100;\n } else if (manTight > 0) {\n data[5] |= (byte) 0b00001000;\n }\n if (botMan < 0) {\n data[5] |= (byte) 0b00010000;\n } else if (botMan > 0) {\n data[5] |= (byte) 0b00100000;\n }\n if (muxChannel == 0) {\n data[5] |= (byte) 0b01000000;\n } else if (muxChannel == 1) {\n data[5] |= (byte) 0b10000000;\n }\n\n if (speedMode == 0) {\n data[6] |= (byte) 0b00000000;\n } else if (speedMode == 1) {\n data[6] |= (byte) 0b00000001;\n } else if (speedMode == 2) {\n data[6] |= (byte) 0b00000010;\n } else if (speedMode == 3) {\n data[6] |= (byte) 0b00000100;\n }\n if (isAutoYaw) {\n data[6] |= (byte) 0b00001000;\n }\n if (isAutoPitch) {\n data[6] |= (byte) 0b00010000;\n }\n if (isAutoDepth) {\n data[6] |= (byte) 0b00100000;\n }\n if (isLED) {\n data[6] |= (byte) 0b01000000;\n }\n }", "title": "" }, { "docid": "50906b0999766786aaca0d08495d321f", "score": "0.54376197", "text": "public ArrayList<int[]> whichMove(int posX, int posY){\n\t\tArrayList<int[]> ret = new ArrayList<int[]>();\n\t\tType colorPawn = this.grid[posX][posY].getPawn().getType();\n\n\t\tint horizontalMove = this.countPawnHorizontal(posX, posY) + 1;\n\t\tint verticalMove = this.countPawnVertical(posX, posY) + 1;\n\t\tint diagonalRightMove = this.countPawnRightDiagonal(posX, posY) + 1;\n\t\tint diagonalLeftMove = this.countPawnLeftDiagonal(posX, posY) + 1;\n\n\t\t// 8 different possibilities\n\n\t\t// UP\n\t\tif(upVerticalIsNotBlocked(posX, posY,verticalMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX;\n\t\t\tcoordinate[1] = posY+verticalMove;\n\t\t\tret.add(coordinate);\n\t\t}\n\n\t\t// UP RIGHT DIAGONAL\n\t\tif(upRightIsNotBlocked(posX, posY, diagonalRightMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX+diagonalRightMove;\n\t\t\tcoordinate[1] = posY+diagonalRightMove;\n\t\t\tret.add(coordinate);\n\t\t}\n\n\t\t// UP LEFT DIAGONAL\n\t\tif(upLeftIsNotBlocked(posX, posY, diagonalLeftMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX - diagonalLeftMove;\n\t\t\tcoordinate[1] = posY + diagonalLeftMove;\n\t\t\tret.add(coordinate);\n\t\t}\n\n\t\t// LEFT\n\t\tif(leftHorizontalIsNotBlocked(posX, posY, horizontalMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX - horizontalMove;\n\t\t\tcoordinate[1] = posY;\n\t\t\tret.add(coordinate);\n\t\t}\n\n\t\t// RIGHT\n\t\tif(rightHorizontalIsNotBlocked(posX, posY, horizontalMove)) {\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX + horizontalMove;\n\t\t\tcoordinate[1] = posY;\n\t\t\tret.add(coordinate);\n\t\t}\n\t\t// DOWN\n\t\tif(downVerticalIsNotBlocked(posX, posY,verticalMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX;\n\t\t\tcoordinate[1] = posY-verticalMove;\n\t\t\tret.add(coordinate);\n\t\t}\n\n\t\t// DOWN RIGHT DIAGONAL\n\t\tif(downRightIsNotBlocked(posX, posY, diagonalRightMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX-diagonalRightMove;\n\t\t\tcoordinate[1] = posY-diagonalRightMove;\n\t\t\tret.add(coordinate);\n\t\t}\n\t\t// DOWN LEFT DIAGONAL\n\t\tif(downLeftIsNotBlocked(posX, posY, diagonalLeftMove)){\n\t\t\tint[] coordinate = new int[2];\n\t\t\tcoordinate[0] = posX + diagonalLeftMove;\n\t\t\tcoordinate[1] = posY - diagonalLeftMove;\n\t\t\tret.add(coordinate);\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "e84f7e7b210605c4147baecd2920e5be", "score": "0.5426612", "text": "private int[] moveHelper(String direction, int row, int col, Piece type) {\n\n\t\t// set the array's element to -1 for invalid coordinates and move\n\t\tint[] rowColValid = { -1, -1, -1 };\n\n\t\t// checks for out-of-bound coordinates and type of Piece.NONE\n\t\tif ((row < 0 || row > 7) || (col < 0 || col > 7) || type.isNone())\n\t\t\treturn rowColValid;\n\n\t\tboolean isOpponentFound = false;\n\n\t\tif (direction.equals(\"up\")) {\n\t\t\tfor (int goingUp = row + 1; goingUp < 8; goingUp++) {\n\t\t\t\tif (board[goingUp][col].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[goingUp][col].equals(type)\n\t\t\t\t\t\t&& !board[goingUp][col].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\t\t\t\t} else if (board[goingUp][col].equals(type) && isOpponentFound) {\n\t\t\t\t\trowColValid[0] = goingUp;\n\t\t\t\t\trowColValid[1] = col;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (direction.equals(\"down\")) {\n\t\t\tfor (int goingDown = row - 1; goingDown > -1; goingDown--) {\n\t\t\t\tif (board[goingDown][col].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[goingDown][col].equals(type)\n\t\t\t\t\t\t&& !board[goingDown][col].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\t\t\t\t} else if (board[goingDown][col].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = goingDown;\n\t\t\t\t\trowColValid[1] = col;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (direction.equals(\"left\")) {\n\t\t\tfor (int goingLeft = col - 1; goingLeft > -1; goingLeft--) {\n\t\t\t\tif (board[row][goingLeft].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[row][goingLeft].equals(type)\n\t\t\t\t\t\t&& !board[row][goingLeft].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\t\t\t\t} else if (board[row][goingLeft].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = row;\n\t\t\t\t\trowColValid[1] = goingLeft;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (direction.equals(\"right\")) {\n\t\t\tfor (int goingRight = col + 1; goingRight < 8; goingRight++) {\n\t\t\t\tif (board[row][goingRight].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[row][goingRight].equals(type)\n\t\t\t\t\t\t&& !board[row][goingRight].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\t\t\t\t} else if (board[row][goingRight].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = row;\n\t\t\t\t\trowColValid[1] = goingRight;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (direction.equals(\"upLeft\")) {\n\t\t\tfor (int goingUp = row + 1, goingLeft = col - 1; goingUp < 8\n\t\t\t\t\t&& goingLeft > -1; goingUp++, goingLeft--) {\n\t\t\t\tif (board[goingUp][goingLeft].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[goingUp][goingLeft].equals(type)\n\t\t\t\t\t\t&& !board[goingUp][goingLeft].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\n\t\t\t\t} else if (board[goingUp][goingLeft].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = goingUp;\n\t\t\t\t\trowColValid[1] = goingLeft;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (direction.equals(\"upRight\")) {\n\t\t\tfor (int goingUp = row + 1, goingRight = col + 1; goingUp < 8\n\t\t\t\t\t&& goingRight < 8; goingUp++, goingRight++) {\n\t\t\t\tif (board[goingUp][goingRight].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[goingUp][goingRight].equals(type)\n\t\t\t\t\t\t&& !board[goingUp][goingRight].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\n\t\t\t\t} else if (board[goingUp][goingRight].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = goingUp;\n\t\t\t\t\trowColValid[1] = goingRight;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (direction.equals(\"downLeft\")) {\n\t\t\tfor (int goingDown = row - 1, goingLeft = col - 1; goingDown > -1\n\t\t\t\t\t&& goingLeft > -1; goingDown--, goingLeft--) {\n\t\t\t\tif (board[goingDown][goingLeft].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[goingDown][goingLeft].equals(type)\n\t\t\t\t\t\t&& !board[goingDown][goingLeft].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\t\t\t\t} else if (board[goingDown][goingLeft].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = goingDown;\n\t\t\t\t\trowColValid[1] = goingLeft;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (direction.equals(\"downRight\")) {\n\t\t\tfor (int goingDown = row - 1, goingRight = col + 1; goingDown > -1\n\t\t\t\t\t&& goingRight < 8; goingDown--, goingRight++) {\n\t\t\t\tif (board[goingDown][goingRight].isNone())\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\tif (!board[goingDown][goingRight].equals(type)\n\t\t\t\t\t\t&& !board[goingDown][goingRight].isNone()) {\n\t\t\t\t\tisOpponentFound = true;\n\t\t\t\t} else if (board[goingDown][goingRight].equals(type)\n\t\t\t\t\t\t&& isOpponentFound) {\n\t\t\t\t\trowColValid[0] = goingDown;\n\t\t\t\t\trowColValid[1] = goingRight;\n\t\t\t\t\trowColValid[2] = 1;\n\n\t\t\t\t\treturn rowColValid;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rowColValid;\n\t}", "title": "" }, { "docid": "c41613696ed199be6a367a85c7d01b2d", "score": "0.54100204", "text": "abstract protected ExParValue getMove(int downX, int downY, int upX, int upY);", "title": "" }, { "docid": "86493692f43789b49362648987f33ee1", "score": "0.5403977", "text": "public void moveRobot()\n\t{\n\t\tint pathCells =1;\n\t\tCell currentCell = moveStack.pop();\n\t\twhile(!moveStack.isEmpty())\n\t\t{\n\t\t\tCell c = moveStack.pop();\n\t\t\t++pathCells;\n\t\t\tSystem.out.println(\"X: \" +c.getX()+ \" Y: \" +c.getY());\n\t\t\tint goalX = c.getX();\n\t\t\tint goalY = c.getY();\n\t\t\t// Figures out the direction the robot needs to move from the goal state \n\t\t\t\t\t// and the current orientation of the robot.\n\t\t\t\t\tif(orientation == 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\tif(goalX<currentCell.getX())\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\telse if(goalX>currentCell.getX())\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(goalY>currentCell.getY())\n\t\t\t\t\t\t\t\tforward();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbackward();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(orientation == 1 )\n\t\t\t\t\t{\n\t\t\t\t\t\tif(goalY<currentCell.getY())\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\telse if(goalY>currentCell.getY())\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(goalX<currentCell.getX())\n\t\t\t\t\t\t\t\tforward();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbackward();\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(orientation == 2 )\n\t\t\t\t\t{\n\t\t\t\t\t\tif(goalX>currentCell.getX())\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\telse if(goalX<currentCell.getX())\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(goalY<currentCell.getY())\n\t\t\t\t\t\t\t\tforward();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbackward();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(orientation == 3 )\n\t\t\t\t\t{\n\t\t\t\t\t\tif(goalY>currentCell.getY())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(goalY<currentCell.getY())\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(goalX>currentCell.getX())\n\t\t\t\t\t\t\t\tforward();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbackward();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcurrentCell = c;\n\t\t}\n\t\tSystem.out.println(\"Black cells: \"+blackCells);\n\t\tSystem.out.println(\"Gray cells: \"+grayCells);\n\t\tSystem.out.println(\"Path length: \"+pathCells);\n\t}", "title": "" }, { "docid": "ec6cd38cd934dac199c589637440fc12", "score": "0.5380136", "text": "protected void execute() {\n// double forward = oi.getLeftVectorY();\n// double turn = -oi.getRightVectorX();\n \n double left;\n double right;\n// if(forward <= 0.0){\n left = forward + turn;\n right = forward - turn;\n// }\n// else{\n// left = forward - turn;\n// right = forward + turn;\n// }\n \n //Compensation for overflow of forward + turn: Some sent to other side.\n if(left > 1.0){\n right -= (left - 1.0) / compensationIndex;\n } else if (left < -1.0) {\n right -= (left + 1.0) / compensationIndex;\n }\n\n if (right > 1.0) {\n left -= (right - 1.0) / compensationIndex;\n } else if (right < -1.0) {\n left -= (right + 1.0) / compensationIndex;\n }\n \n //Corrects for being over |1.0|\n if(Math.abs(left) > 1.0){\n left /= Math.abs(left);\n }\n if(Math.abs(right) > 1.0){\n right /= Math.abs(right);\n }\n \n \n leftDrivePID.set(left);\n rightDrivePID.set(-right);\n }", "title": "" }, { "docid": "1db0a17e1e7c62d22ca5e91c3cfef1f2", "score": "0.53556234", "text": "private void possibleMoves(){\n for (int y = 0; y < data.length; y++){\n for(int x = 0; x < data[y].length; x++){\n data[y][x] = \"o\";\n }\n }\n }", "title": "" }, { "docid": "71cc85b35fab0f6e3ceebf71d8f704fb", "score": "0.5353708", "text": "public interface BoardModel {\r\n\r\n\t// Empty.\r\n\tbyte E = 0;\r\n\t// Black queen.\r\n\tbyte B = 1;\r\n\t// White queen.\r\n\tbyte W = 2;\r\n\t// Black arrow.\r\n\tbyte AB = 3;\r\n\t// White arrow.\r\n\tbyte AW = 4;\r\n\r\n\t/** Reinitialize blank board. */\r\n\tpublic void reinitialize();\r\n\r\n\t/**\r\n\t * Validate a given player turn, i.e. queen move and arrow.\r\n\t * \r\n\t * @param rQI\r\n\t * Initial queen row index.\r\n\t * @param cQI\r\n\t * Initial queen column index.\r\n\t * @param rQF\r\n\t * Final queen row index.\r\n\t * @param cQF\r\n\t * Final queen column index.\r\n\t * @param rA\r\n\t * Arrow row index.\r\n\t * @param cA\r\n\t * Arrow column index.\r\n\t * @return Validity of move locations.\r\n\t */\r\n\tboolean validTurn(int rQI, int cQI, int rQF, int cQF, int rA, int cA);\r\n\r\n\t/**\r\n\t * Perform a move, after determining its validity.\r\n\t * \r\n\t * @param rQI\r\n\t * Initial queen row index.\r\n\t * @param cQI\r\n\t * Initial queen column index.\r\n\t * @param rQF\r\n\t * Final queen row index.\r\n\t * @param cQF\r\n\t * Final queen column index.\r\n\t * @param rA\r\n\t * Arrow row index.\r\n\t * @param cA\r\n\t * Arrow column index.\r\n\t * @return Whether move was performed.\r\n\t */\r\n\tboolean move(int rQI, int cQI, int rQF, int cQF, int rA, int cA);\r\n\r\n\t/**\r\n\t * Generate a list of possible moves.\r\n\t * \r\n\t * @return List of possible moves.\r\n\t */\r\n\tArrayList<int[]> possibleMoves();\r\n\r\n\t/**\r\n\t * @param r\r\n\t * Row of location.\r\n\t * @param c\r\n\t * Column of location.\r\n\t * @return The value of a given board location.\r\n\t */\r\n\tint get(int r, int c);\r\n\r\n\t/** @return The row count of board. */\r\n\tint getRowCount();\r\n\r\n\t/** @return The column count of board. */\r\n\tint getColumnCount();\r\n\r\n\t/** Get the current state of the board. */\r\n\tbyte[][] getState();\r\n\r\n\t/**\r\n\t * Return three board array representations for chamber ownership. First\r\n\t * array represents all found chambers with unique labels, while second and\r\n\t * third arrays represent the number of black and white queens contained in\r\n\t * each chamber.\r\n\t * \r\n\t * @return Chamber ownership array.\r\n\t */\r\n\tpublic byte[][][] getChambers();\r\n\r\n\t/**\r\n\t * Get the shared and unshared points for black and white players.\r\n\t * \r\n\t * @return Shared and unshared points, for black and white.\r\n\t */\r\n\tpublic int[][] getPoints();\r\n\r\n\t/**\r\n\t * Check if the game is finished, i.e. there's no chambers occupied by both\r\n\t * players.\r\n\t * \r\n\t * @return Whether the game is finished, i.e. there's no chambers occupied\r\n\t * by both players.\r\n\t */\r\n\tpublic boolean checkFinished();\r\n\r\n\t/**\r\n\t * Get the current player turn.\r\n\t * \r\n\t * @return Whether its black player's turn.\r\n\t */\r\n\tpublic boolean getTurn();\r\n\r\n\t/**\r\n\t * Get the time in milliseconds since the start of the turn.\r\n\t * \r\n\t * @return Milliseconds since start of current turn.\r\n\t */\r\n\tpublic long getTime();\r\n\r\n\t/** Create a clone of this board. */\r\n\tpublic BoardModel clone();\r\n}", "title": "" }, { "docid": "80baa43087deffa2d51ed0b0b4919f15", "score": "0.53530854", "text": "public int[] getCoord()\r\n/* 75: */ {\r\n/* 76: 70 */ return getCoord(this);\r\n/* 77: */ }", "title": "" }, { "docid": "cf853cfedbe6819ce5807ea17d565929", "score": "0.53526735", "text": "protected void calculateMove(float x, float y) {\n if (y < 350 && x < 235) {\n if (gameState[0] == 0) {\n gameState[0] = 1;\n }\n } else if (y < 350 && x < 500 && x > 300) {\n if (gameState[1] == 0) {\n gameState[1] = 2;\n }\n } else if (y < 350 && x < 725 && x > 580) {\n if (gameState[2] == 0) {\n gameState[2] = 3;\n }\n } else if (y < 350 && x < 970 && x > 825) {\n if (gameState[3] == 0) {\n gameState[3] = 4;\n }\n } else if (y < 700 && y > 450 && x < 235) {\n if (gameState[4] == 0) {\n gameState[4] = 5;\n }\n } else if (y < 700 && y > 450 && x < 480 && x > 300) {\n if (gameState[5] == 0) {\n gameState[5] = 5;\n }\n } else if (y < 700 && y > 450 && x < 730 && x > 500) {\n if (gameState[6] == 0) {\n gameState[6] = 4;\n }\n } else if (y < 700 && y > 450 && x > 825) {\n if (gameState[7] == 0) {\n gameState[7] = 6;\n }\n } else if (y < 1050 && y > 800 && x < 235) {\n if (gameState[8] == 0) {\n gameState[8] = 3;\n }\n } else if (y < 1050 && y > 800 && x < 480 && x > 335) {\n if (gameState[9] == 0) {\n gameState[9] = 1;\n }\n } else if (y < 1050 && y > 800 && x < 725 && x > 580) {\n if (gameState[10] == 0) {\n gameState[10] = 7;\n }\n } else if (y < 1050 && y > 800 && x > 825) {\n if (gameState[11] == 0) {\n gameState[11] = 6;\n }\n } else if (y > 1150 && x < 235) {\n if (gameState[12] == 0) {\n gameState[12] = 7;\n }\n } else if (y > 1150 && x < 480 && x > 335) {\n if (gameState[13] == 0) {\n gameState[13] = 8;\n }\n } else if (y > 1150 && x < 725 && x > 580) {\n if (gameState[14] == 0) {\n gameState[14] = 2;\n }\n } else if (y > 1150 && x > 825) {\n if (gameState[15] == 0) {\n gameState[15] = 8;\n }\n }\n }", "title": "" }, { "docid": "bc56d8ee86c6bb5caf9a958c6e12d97c", "score": "0.53498137", "text": "public void joystickWheelControl() {\n float throttle = -gamepad1.right_stick_y;\n float direction = gamepad1.right_stick_x;\n float parallel = -gamepad1.left_stick_x;\n double diagonal = gamepad1.left_stick_y;\n float right = throttle - direction;\n float left = throttle + direction;\n double diagonal1 = parallel + diagonal;\n double diagonal2 = -parallel + diagonal;\n\n if (Math.abs(parallel) > 0.05 || Math.abs(diagonal) > 0.05) {\n\n //parallel and diagonal movement\n diagonal1 = Range.clip(diagonal1, -1, 1);\n diagonal2 = Range.clip(diagonal2, -1, 1);\n robot.motorLeftBackWheel.setPower(-diagonal2*Math.abs(diagonal2));\n robot.motorLeftFrontWheel.setPower(-diagonal1*Math.abs(diagonal1));\n robot.motorRightBackWheel.setPower(-diagonal1*Math.abs(diagonal1));\n robot.motorRightFrontWheel.setPower(-diagonal2*Math.abs(diagonal2));\n\n } else {\n\n // clip the right/left values so that the values never exceed +/- 1\n right = Range.clip(right, -1, 1);\n left = Range.clip(left, -1, 1);\n robot.motorLeftBackWheel.setPower(left);\n robot.motorLeftFrontWheel.setPower(left);\n robot.motorRightBackWheel.setPower(right);\n robot.motorRightFrontWheel.setPower(right);\n\n }\n\n // Send telemetry message to signify robot running;\n telemetry.addData(\"left\", \"%.2f\", left);\n telemetry.addData(\"right\", \"%.2f\", right);\n }", "title": "" }, { "docid": "93c2d676528d15125625d19967f2e72b", "score": "0.5345371", "text": "public void updateData(){\n possibleMoves();\n }", "title": "" }, { "docid": "0abcfbb1ad8c41ae27df1086176dc20e", "score": "0.53424275", "text": "abstract protected void movement(int let1,int let2,int num1,int num2,int mv1,int mv2,int m,int v,Board cboard);", "title": "" }, { "docid": "9d9b21ec68157885a39c99393c41c751", "score": "0.5341155", "text": "public void updateArray(){\r\n\t\tExer10.state[this.i][this.j] = Exer10.turn;\r\n\t\tExer10.count++;\t\t\t\t\t\t//counter for number of \"tira\"\r\n\t\tExer10.mainGUI.toggleButton();\t\t\t\t//refresh the UI\r\n\t\tExer10.mainGUI.setClickable(i,j,true);\r\n\t}", "title": "" }, { "docid": "7d9a81a104b712d588d5806f3a8d3022", "score": "0.5338148", "text": "public void changeData(){\n\t\tint x,y;\n\t\t\n\t\t// Setze alles auf Ground\n\t\t// Baue leveldata START\n\t\tint[][][] field = {{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}},\n\t\t\t\t{{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}}}; \n\t\t\n\t\t// Finde Böden\n\t\tfor(int i = 0; i<grounds.size(); i++){\n\t\t\tGround gr = (Ground)grounds.get(i);\n\t\t\tRectangle rg = gr.getBounds();\n\t\t\t\n\t\t\tx = (int)rg.getX()/blockSize;\n\t\t\ty = (int)rg.getY()/blockSize;\n\t\t\t\n\t\t\tfield[y][x][1] = gr.getType();\n \t\t}\n\t\t\n\t\t// Finde Wände\n\t\tfor(int i = 0; i<walls.size(); i++){\n\t\t\tWall wl = (Wall)walls.get(i);\n\t\t\tRectangle rw = wl.getBounds();\n\t\t\t\t\t\n\t\t\tx = (int)rw.getX()/blockSize;\n\t\t\ty = (int)rw.getY()/blockSize;\n\t\t\t\t\t\n\t\t\tfield[y][x][0] = 1;\n\t\t\tfield[y][x][1] = wl.getType();\n\t\t }\n\t\t\n\t\tleveldata[visibleRoom] = \"\";\n\t\t\n\t\tfor(int i=0; i<field.length;i++){\n\t\t\tfor(int j=0;j<field[i].length;j++){\n\t\t\t\tif(field[i][j][0]==1){\n\t\t\t\t\t// Wall\n\t\t\t\t\tleveldata[visibleRoom]+=\"W\"+field[i][j][1]+\" \";\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// Ground\n\t\t\t\t\tleveldata[visibleRoom]+=\"G\"+field[i][j][1] + \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Baue Leveldata ENDE\n\t\t\n\t\t// Baue Doordata\n\t\tdoordata[visibleRoom] = \"\";\n\t\tfor(int i=0;i<doors.size(); i++){\n\t\t\tDoor dr = (Door)doors.get(i);\n\t\t\tRectangle rd = dr.getBounds();\n\t\t\tString sx,sy;\n\t\t\t\n\t\t\tx = (int)rd.getX()/blockSize;\n\t\t\ty = (int)rd.getY()/blockSize;\n\t\t\t\n\t\t\tif(x>=10) sx=\"\"+x;\n\t\t\telse sx=\"0\"+x;\n\n\t\t\tif(y>=10) sy=\"\"+y;\n\t\t\telse sy=\"0\"+y;\n\t\t\t\n\t\t\tdoordata[visibleRoom]+=\"D\"+dr.getType()+\" \"+sx+\" \"+sy+\" c \";\n\t\t}\n\t\t\n\t\t// Baue Itemdata\n\t\titemdata[visibleRoom] = \"\";\n\t\tfor(int i=0;i<items.size(); i++){\n\t\t\tItem it = (Item)items.get(i);\n\t\t\tString sx,sy;\n\t\t\tString itemCode;\n\t\t\t\n\t\t\t// Format bestimmen (I oder J)\n\t\t\tint type = it.getType();\n\t\t\tif(type>=10){\n\t\t\t\ttype-=10;\n\t\t\t\titemCode=\"J\"+type;\n\t\t\t}\n\t\t\telse itemCode=\"I\"+type;\n\t\t\t\n\t\t\t// Koordinaten bestimmen\n\t\t\tx = (int)it.getX();\n\t\t\ty = (int)it.getY();\n\t\t\t\n\t\t\tif(x>=100) sx= \"\"+x;\n\t\t\telse if(x>=10) sx=\"0\"+x;\n\t\t\telse sx=\"00\"+x;\n\n\t\t\tif(y>=100) sy= \"\"+y;\n\t\t\telse if(y>=10) sy=\"0\"+y;\n\t\t\telse sy=\"00\"+y;\n\t\t\t\n\t\t\t// Codieren\n\t\t\titemdata[visibleRoom]+=itemCode + \" \" + sx + \" \" + sy + \" \";\n\t\t}\n\t\t\n\t\t// Baue interactdata -> Checkpoints, NPC und Shop\n\t\tinteractdata[visibleRoom]=\"\";\n\t\tfor(int i=0;i<checkpoints.size();i++){\n\t\t\tString sy, sx;\n\t\t\tCheckpoint cp = (Checkpoint)checkpoints.get(i);\n\t\t\t// Koordinaten bestimmen\n\t\t\tx = (int)cp.getX();\n\t\t\ty = (int)cp.getY();\n\t\t\t\t\t\t\n\t\t\tif(x>=100) sx= \"\"+x;\n\t\t\telse if(x>=10) sx=\"0\"+x;\n\t\t\telse sx=\"00\"+x;\n\n\t\t\tif(y>=100) sy= \"\"+y;\n\t\t\telse if(y>=10) sy=\"0\"+y;\n\t\t\telse sy=\"00\"+y;\n\t\t\tinteractdata[visibleRoom]=\"C0 \"+sx + \" \" + sy+ \" \";\n\t\t\t\n\t\t}\n\t\t// +NPC\n\t\tfor(int i=0;i<npcs.size();i++){\n\t\t\tString sy, sx, npcCode;\n\t\t\tNPC npc = (NPC)npcs.get(i);\n\t\t\t// Koordinaten bestimmen\n\t\t\tx = (int)npc.getX();\n\t\t\ty = (int)npc.getY();\n\t\t\t\t\t\t\n\t\t\tif(x>=100) sx= \"\"+x;\n\t\t\telse if(x>=10) sx=\"0\"+x;\n\t\t\telse sx=\"00\"+x;\n\n\t\t\tif(y>=100) sy= \"\"+y;\n\t\t\telse if(y>=10) sy=\"0\"+y;\n\t\t\telse sy=\"00\"+y;\n\t\t\t\n\t\t\t// Format bestimmen (N oder S)\n\t\t\tint type = npc.getType();\n\t\t\tif(type>=10){\n\t\t\t\ttype-=10;\n\t\t\t\tnpcCode=\"S\"+type;\n\t\t\t}\n\t\t\telse npcCode=\"N\"+type;\n\t\t\t\n\t\t\tinteractdata[visibleRoom]+=npcCode+\" \"+sx + \" \" + sy+\" \";\n\t\t\t\n\t\t}\n\t\t\n\t\t// Baue enemydata\n\t\tenemydata[visibleRoom]=\"\";\n\t\tfor(int i=0;i<enemys.size(); i++){\n\t\t\tEnemy en = (Enemy)enemys.get(i);\n\t\t\tRectangle re = en.getBounds();\n\t\t\tString sx,sy;\n\t\t\t\n\t\t\tx = (int)en.getX()/blockSize;\n\t\t\ty = (int)en.getY()/blockSize;\n\t\t\t\n\t\t\tif(x>=10) sx=\"\"+x;\n\t\t\telse sx=\"0\"+x;\n\n\t\t\tif(y>=10) sy=\"\"+y;\n\t\t\telse sy=\"0\"+y;\n\t\t\t\n\t\t\tenemydata[visibleRoom]+=\"E\"+en.getType()+\" \"+sx+\" \"+sy+\" \";\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e5b7a8673c5288fef0f6310caa7fe636", "score": "0.53296775", "text": "private void step() {\n\t\t//HashMap<Robot, Direction> newRobotDirections = new HashMap<>();\n\t\t\n\t\tArrayList<RobotUpdater> robotsToUpdate = new ArrayList<>();\n\t\t\n\t\t// Get list of robots with where they are in the array\n\t\t// Holds where robots will be.\n\t\tArrayList<Pair<Robot, Junction>> newPos = new ArrayList<>();\n\t\tfor (Entry<Robot, CommandQueue> e : robotCommands.entrySet()) {\n\t\t\tCommand com = e.getValue().getCommands().peekFirst();\n\t\t\tcom = (com == null ? new Command(CommandType.WAIT) : com);\n\t\t\tcom.setFrom(e.getKey().getGridX(), e.getKey().getGridY());\n\t\t\tnewPos.add(Pair.makePair(e.getKey(), mi.getMap().getJunction(com.getX(), com.getY())));\n\t\t}\n\t\t// Check for collisions\n\t\tfor (int i = 0; i < newPos.size(); i++) {\n\t\t\tfor (int j = i + 1; j < newPos.size(); j++) {\n\t\t\t\tPair<Robot, Junction> ith = newPos.get(i);\n\t\t\t\tPair<Robot, Junction> jth = newPos.get(j);\n\t\t\t\tif (ith.getItem2().equals(jth.getItem2())) {\n\t\t\t\t\t// Collision - add wait command to second (least prioritised robot)\n\t\t\t\t\t// Don't do this for now - might deadlock the whole system.\n\t\t\t\t\t/*\n\t\t\t\t\tRobot second = newPos.get(j).getItem1();\n\t\t\t\t\trobotCommands.get(second).getCommands().addFirst(Command.WAIT);*/\n\t\t\t\t\tSystem.out.println(\"Collision between \"\n\t\t\t\t\t\t+ ith.getItem1().getIdentity()\n\t\t\t\t\t\t+ \" and \"\n\t\t\t\t\t\t+ jth.getItem1().getIdentity() + \".\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Send commands to robots\n\t\tHashMap<Robot, Command> readyRobots = new HashMap<>();\n\t\tfor (Entry<Robot, CommandQueue> e : robotCommands.entrySet()) {\n\t\t\tCommandQueue q = e.getValue();\n\t\t\tRobot r = e.getKey();\n\t\t\tCommand com = q.getCommands().peekFirst();\n\t\t\tif (com == null) {\n\t\t\t\tcom = new Command(CommandType.WAIT);\n\t\t\t} else {\n\t\t\t\tcom.setFrom(r.getGridX(), r.getGridY());\n\t\t\t\tr.setGridX(com.getX());\n\t\t\t\tr.setGridY(com.getY());\n\t\t\t\tq.getCommands().pop();\n\t\t\t\treadyRobots.put(r, com);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending to \" + e.getKey().getIdentity() + \": \" + com);\n\t\t\t\tJob j = robotPartialJobs.get(r);\n\t\t\t\tif (j != null)\n\t\t\t\t\tmi.getServer().sendToRobot(r.getName(), \"Cancel Job:\" + j.getId());\n\t\t\t\tmi.getServer().sendCommand(r, com);\n\t\t\t\tRobotUpdater ru = new RobotUpdater(r, com);\n\t\t\t\trobotsToUpdate.add(ru);\n\t\t\t\tru.start();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tSystem.out.println(r.getIdentity() + \" disconnected.\");\n\t\t\t\tmi.removeRobot(r);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!readyRobots.isEmpty())\n\t\t\tSystem.out.println(\"Robot Manager: Waiting for robots to reply 'ready'...\");\n\t\t\n\t\tfor (Entry<Robot, Command> e : readyRobots.entrySet()) {\n\t\t\tRobot robot = e.getKey();\n\t\t\tCommand com = e.getValue();\n\t\t\t\n\t\t\tif (com.getType().equals(CommandType.PICK)) {\n\t\t\t\t// Get item at x,y\n\t\t\t\tString itemName = mi.getLocationList().getItemNameAt(robot.getGridX(), robot.getGridY());\n\t\t\t\tArrayList<ItemQuantity> items = robotPartialJobs.get(robot).getItems();\n\t\t\t\tint found = -1;\n\t\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\t\tif (items.get(i).getItem().getName().equals(itemName)) {\n\t\t\t\t\t\tfound = i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (found != -1) {\n\t\t\t\t\t// Remove completed item\n\t\t\t\t\titems.remove(found);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tmi.getServer().waitForReady(robot.getName());\n\t\t\t} catch (IOException ex) {\n\t\t\t\tSystem.out.println(robot.getIdentity() + \" disconnected.\");\n\t\t\t\tmi.removeRobot(robot);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (RobotUpdater ru : robotsToUpdate) {\n\t\t\tru.end();\n\t\t}\n\t}", "title": "" }, { "docid": "546984c5ad8e7ba6c0fbd4c471b59cda", "score": "0.5313474", "text": "double[] getPosition();", "title": "" }, { "docid": "16649d4283109866302f91bea243a71a", "score": "0.5311046", "text": "static synchronized int sendPosition(int x2, int y2,int x1, int y1, int index) {\n env.updatePosition(x2, y2, x1, y1, index);\n// else if(k==0)\n// env.removepoint(x2,y2);\n env.repaint();\n \n// System.out.println(\"=============\");\n \n//// env.action(1);\n System.out.println(index+\" \"+ x2+\" \"+ y2);\n return 1;\n \n }", "title": "" }, { "docid": "4b42b6ee845b0fb58dfbdeb99f385ce5", "score": "0.5310863", "text": "public int[] kick(int dx, int dy, int dir);", "title": "" }, { "docid": "9005a04ca122c0ec1f65aa9ece8906db", "score": "0.5300718", "text": "int[] getOvalPosition(DrawRect rect);", "title": "" }, { "docid": "082c4bc2e0d10442382e411ac8d9fa50", "score": "0.5270014", "text": "public void updateController() {\n\t\tjoystickLXAxis = controller.getRawAxis(portJoystickLXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLYAxis = controller.getRawAxis(portJoystickLYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLPress = controller.getRawButton(portJoystickLPress);\t//returns a value {0,1}\n\t\t\n\t\t//right joystick update\n\t\tjoystickRXAxis = controller.getRawAxis(portJoystickRXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRYAxis = controller.getRawAxis(portJoystickRYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRPress = controller.getRawButton(portJoystickRPress);\t//returns a value {0,1}\n\t\t\n\t\t//trigger updates\n\t\ttriggerL = controller.getRawAxis(portTriggerL);\t\t//returns a value [0,1]\n\t\ttriggerR = controller.getRawAxis(portTriggerR);\t\t//returns a value [0,1]\n\t\t\n\t\t//bumper updates\n\t\tbumperL = controller.getRawButton(portBumperL);\t\t//returns a value {0,1}\n\t\tbumperR = controller.getRawButton(portBumperR);\t\t//returns a value {0,1}\n\t\t\n\t\t//button updates\n\t\tbuttonX = controller.getRawButton(portButtonX);\t\t//returns a value {0,1}\n\t\tbuttonY = controller.getRawButton(portButtonY);\t\t//returns a value {0,1}\n\t\tbuttonA = controller.getRawButton(portButtonA);\t\t//returns a value {0,1}\n\t\tbuttonB = controller.getRawButton(portButtonB);\t\t//returns a value {0,1}\n\t\t\n\t\tbuttonBack = controller.getRawButton(portButtonBack);\t//returns a value {0,1}\n\t\tbuttonStart = controller.getRawButton(portButtonStart);\t//returns a value {0,1}\n\t\t\n\t\t//toggle checks\n\t\ttankDriveBool = checkButton(buttonX, tankDriveBool, portButtonX);\t\t//toggles boolean if button is pressed\n\t\tfastBool = checkButton(buttonB, fastBool, portButtonB);\t\t\t\t\t//toggles boolean if button is pressed\n\t\t\n\t\t\n\t\t//d-pad/POV updates\n\t\tdPad = controller.getPOV(portDPad);\t\t//returns a value {-1,0,45,90,135,180,225,270,315}\n\n\t\t//d-pad/POV turns\n\t\tif (dPad != -1) {\n\t\t\tdPad = 360 - dPad; //Converts the clockwise dPad rotation into a Gyro-readable counterclockwise rotation.\n\t\t\trobot.rotateTo(dPad);\n\t\t}\n\t\t\n\t\tjoystickDeadZone();\n\t}", "title": "" }, { "docid": "801a05908a41b63e9d561dde4c21d15b", "score": "0.52610904", "text": "public int[] getPos() {\r\n return pos;\r\n }", "title": "" }, { "docid": "fe90ef607209fef3f4de39e9380ac567", "score": "0.52238333", "text": "public void updateWorld() {\n int x, y;\n int nameA; // name in ascii\n char name = 'A';\n\n // Add robots to new coordinates\n for (int i = 0; i < n_robots * 2; i = i + 2) {\n x = state[i];\n y = state[i + 1];\n world[x][y] = name;\n nameA = (int) name;\n nameA++;\n name = (char) nameA;\n }\n\n // Take out robots from previous coordinates\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n // if at a coordinate that is a robot or a previous position of a robot\n if (world[i][j] != '0' && world[i][j] != '1') {\n for (int k = 0; k < n_robots * 2; k = k + 2) {\n x = state[k];\n y = state[k + 1];\n if (i != x || j != y)\n world[i][j] = '1';\n }\n }\n }\n }\n\n }", "title": "" }, { "docid": "3bc1bbab7a29cef1024f8d169916e5bf", "score": "0.52160114", "text": "public abstract void setMove(int cellIndex, int polarity);", "title": "" }, { "docid": "06c33bc95ef2c5371bd2840a075c6067", "score": "0.5215517", "text": "public void setMovement(int[][] movement){\n this.movement = movement;\n }", "title": "" }, { "docid": "ba95dd2edb77a5c115d586511ac736b3", "score": "0.5209924", "text": "private void update_status (int[] list, int position,char movement) {\n\n\t}", "title": "" }, { "docid": "c69b7df36fbc9a183259757437360f3a", "score": "0.52098095", "text": "@Override\n public void execute() {\n double rt = xboxController.getTriggerAxis(GenericHID.Hand.kRight);\n double lt = xboxController.getTriggerAxis(GenericHID.Hand.kLeft);\n\n if (Math.abs(rt) < DEADBAND) rt = 0;\n if (Math.abs(lt) < DEADBAND) lt = 0;\n\n boolean rb = xboxController.getBumper(GenericHID.Hand.kRight);\n boolean lb = xboxController.getBumper(GenericHID.Hand.kLeft);\n\n double rightValue = rb ? -0.5 : rt;\n double leftValue = lb ? -0.5 : lt;\n\n rightValue = drivetrain.calmEasingFunction(rightValue);\n leftValue = drivetrain.calmEasingFunction(leftValue);\n\n drivetrain.setVelocity(rightValue * SPEED_MULTIPLIER, true);\n drivetrain.setVelocity(leftValue * SPEED_MULTIPLIER, false);\n\n// drivetrain.setPower(rightValue, true);\n// drivetrain.setPower(leftValue, false);\n\n\n xboxController.setRumble(GenericHID.RumbleType.kLeftRumble, (rightValue + leftValue) / 2);\n }", "title": "" }, { "docid": "93c4109321bb10360abea3e4aff0e10f", "score": "0.5201246", "text": "public void behave(){\n //fgjhgjsfdjhfdj\n if(getData(0) == 0){\n step0();\n }else if(getData(0) == 1){\n step1();\n }else if(getData(0) == 2){\n step2();\n }else if(getData(0) == 3){\n step3();\n }else if(getData(0) == 6){\n step6();\n }else if(getData(0) == 62){\n step62();\n }else if(getData(0) == 7){\n side1();\n }else if(getData(0) == 8){\n side2();\n }else if(getData(0) == 9){\n side3();\n }else if(getData(0) == 10){\n side4();\n }\n\n }", "title": "" }, { "docid": "ddeff76607fad6f73b8acdaf8b2e312f", "score": "0.5196154", "text": "@Override\n public void run() {\n /**\n * registerMe() needs to be called for every robot. Used for\n * initialisation.\n */\n registerMe();\n \n System.out.println(getName());\n // Write your logic here\n // After trying out your robot, try uncommenting the next line:\n setAllColors(Color.YELLOW);\n //back(Math.random() * 200);\n// addCustomEvent(new Condition(\"RobotStopped\") {\n//\n// @Override\n// public boolean test() {\n// return (getVelocity()==0);\n// }\n// });\n if (this.getX() < 450) {\n left = true;\n } else {\n left = false;\n }\n\n if (this.getY() < 600) {\n up = false;\n } else {\n up = true;\n }\n\n //drugi w wezyku\n if ((getY() > 450 && getY() < 550) || (getY() > 650 && getY() < 750)) {\n for (int i = 0; i < 15; i++) {\n doNothing();\n }\n }\n\n //trzeci w wezyku\n if (getY() > 550 && getY() < 650) {\n for (int i = 0; i < 30; i++) {\n doNothing();\n }\n }\n\n\n if (up) {\n makeMove(new Point((int) this.getX(), 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n } else {\n makeMove(new Point((int) this.getX(), 70));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n }\n //back(Math.random()*200);\n \n sendMessage(MessageType.SIMPLE_POSITION);\n \n while (true) {\n sendMessage(MessageType.SIMPLE_POSITION);\n if (left) {\n if (up) {\n makeMove(new Point(870, 1170));\n //System.out.println(1);\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n } else {\n makeMove(new Point(820, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n }\n } else {\n if (up) {\n makeMove(new Point(30, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n } else {\n makeMove(new Point(80, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(80, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 1120));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(820, 80));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(30, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 1170));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n makeMove(new Point(870, 30));\n waitFor(new CustomMoveCompleteCondition(this, currentDestination));\n }\n }\n sendMessage(MessageType.SIMPLE_POSITION);\n }\n }", "title": "" }, { "docid": "6a0800b2fd8c02fcdea1fdc9c5fbe565", "score": "0.51863843", "text": "protected void getData() {\n // Get the status of all of the joysticks\n for (byte stick = 0; stick < kJoystickPorts; stick++) {\n m_joystickAxesCache[stick].m_count =\n HAL.getJoystickAxes(stick, m_joystickAxesCache[stick].m_axes);\n m_joystickPOVsCache[stick].m_count =\n HAL.getJoystickPOVs(stick, m_joystickPOVsCache[stick].m_povs);\n m_joystickButtonsCache[stick].m_buttons = HAL.getJoystickButtons(stick, m_buttonCountBuffer);\n m_joystickButtonsCache[stick].m_count = m_buttonCountBuffer.get(0);\n }\n\n HAL.getMatchInfo(m_matchInfoCache);\n\n // Force a control word update, to make sure the data is the newest.\n updateControlWord(true);\n\n // lock joystick mutex to swap cache data\n m_cacheDataMutex.lock();\n try {\n for (int i = 0; i < kJoystickPorts; i++) {\n // If buttons weren't pressed and are now, set flags in m_buttonsPressed\n m_joystickButtonsPressed[i] |=\n ~m_joystickButtons[i].m_buttons & m_joystickButtonsCache[i].m_buttons;\n\n // If buttons were pressed and aren't now, set flags in m_buttonsReleased\n m_joystickButtonsReleased[i] |=\n m_joystickButtons[i].m_buttons & ~m_joystickButtonsCache[i].m_buttons;\n }\n\n // move cache to actual data\n HALJoystickAxes[] currentAxes = m_joystickAxes;\n m_joystickAxes = m_joystickAxesCache;\n m_joystickAxesCache = currentAxes;\n\n HALJoystickButtons[] currentButtons = m_joystickButtons;\n m_joystickButtons = m_joystickButtonsCache;\n m_joystickButtonsCache = currentButtons;\n\n HALJoystickPOVs[] currentPOVs = m_joystickPOVs;\n m_joystickPOVs = m_joystickPOVsCache;\n m_joystickPOVsCache = currentPOVs;\n\n MatchInfoData currentInfo = m_matchInfo;\n m_matchInfo = m_matchInfoCache;\n m_matchInfoCache = currentInfo;\n } finally {\n m_cacheDataMutex.unlock();\n }\n\n wakeupWaitForData();\n sendMatchData();\n }", "title": "" }, { "docid": "9f05b871a74719b6d2db468854b8550c", "score": "0.51833177", "text": "public CoordData getCoord_data(int pos) {\r\n return coord_data_list[pos];\r\n }", "title": "" }, { "docid": "c239e36b95aa8ee684edc91570d2aec7", "score": "0.51736885", "text": "private int getValueAtPos(int x, int y) {\n int value = 0;\n Disc color = discs[x][y];\n List<List<Disc>> moves = getMovesAt(x, y);\n\n for (List<Disc> next : moves) {\n value += getValueForFour(color, next);\n }\n return value;\n }", "title": "" }, { "docid": "5008957ad4417f82968af535504155e3", "score": "0.51703537", "text": "public int[] getPos() {\n return new int[] {posX, posY};\n }", "title": "" }, { "docid": "fbbb6afad164e6a78063812b3ad13de2", "score": "0.5141868", "text": "public void calibratePosition(){\n double[] pos = new double[3]; \r\n boolean[] update = new boolean[3]; \r\n switch(Controller.corner){ \r\n case BOTTOM_LEFT: \r\n break; \r\n case BOTTOM_RIGHT: \r\n pos[0] = odo.getX() + 304.8; \r\n pos[1] = 0; \r\n pos[2] = odo.getAngle() + 270.0; \r\n update[0] = true; \r\n update[1] = false; \r\n update[2] = true; \r\n synchronized(Controller.lock){ \r\n odo.setPosition(pos, update); \r\n } \r\n break; \r\n case TOP_LEFT: \r\n pos[0] = 999; \r\n pos[1] = odo.getY() + 304.8; \r\n pos[2] = odo.getAngle() + 90; \r\n update[0] = false; \r\n update[1] = true; \r\n update[2] = true; \r\n synchronized(Controller.lock){ \r\n odo.setPosition(pos, update); \r\n } \r\n break; \r\n case TOP_RIGHT: \r\n pos[0] = odo.getX() + 304.8; \r\n pos[1] = odo.getY() + 304.8; \r\n pos[2] = odo.getAngle() + 180; \r\n update[0] = true; \r\n update[1] = true; \r\n update[2] = true; \r\n synchronized(Controller.lock){ \r\n odo.setPosition(pos, update); \r\n } \r\n break; \r\n default: \r\n //Same case as BOTTOM_LEFT \r\n break; } \r\n }", "title": "" }, { "docid": "c9167f5320b24fc27c7025774c3080f7", "score": "0.5136926", "text": "public int[] getTRight() {\n\t\treturn tRight;\n\t}", "title": "" }, { "docid": "a8f5c44e66ba6d308abbec1e8fa96688", "score": "0.5118279", "text": "public TypeDeplacement choseRobotMove(Robot robot) {\n Logger.getInstance().ajouteUneLigne(TypeLog.DEBUG, \"Choisie le mouvement du robot => \" + robot.toString());\n TypeDeplacement res = TypeDeplacement.getRandom();\n if (Robot.getNbTickDeRecherche() > 0) {\n if (Robot.getCaseIntru() != null) {\n if (robot.getCaseActuel().getX() > Robot.getCaseIntru().getX()) {\n if (this.terrain.getCaseViaPosition(robot.getCaseActuel().getX() + TypeDeplacement.GAUCHE.getX(), robot.getCaseActuel().getY() + TypeDeplacement.GAUCHE.getY()).getStatusCase() != StatusCase.MUR) {\n res = TypeDeplacement.GAUCHE;\n }\n } else if (robot.getCaseActuel().getX() < Robot.getCaseIntru().getX()) {\n if (this.terrain.getCaseViaPosition(robot.getCaseActuel().getX() + TypeDeplacement.DROITE.getX(), robot.getCaseActuel().getY() + TypeDeplacement.DROITE.getY()).getStatusCase() != StatusCase.MUR) {\n res = TypeDeplacement.DROITE;\n }\n } else if (robot.getCaseActuel().getY() > Robot.getCaseIntru().getY()) {\n if (this.terrain.getCaseViaPosition(robot.getCaseActuel().getX() + TypeDeplacement.HAUT.getX(), robot.getCaseActuel().getY() + TypeDeplacement.HAUT.getY()).getStatusCase() != StatusCase.MUR) {\n res = TypeDeplacement.HAUT;\n }\n } else if (robot.getCaseActuel().getY() < Robot.getCaseIntru().getY()) {\n if (this.terrain.getCaseViaPosition(robot.getCaseActuel().getX() + TypeDeplacement.BAS.getX(), robot.getCaseActuel().getY() + TypeDeplacement.BAS.getY()).getStatusCase() != StatusCase.MUR) {\n res = TypeDeplacement.BAS;\n }\n } else {\n Logger.getInstance().ajouteUneLigne(TypeLog.INFO, \"Reinitialise la recherche des robot\");\n Robot.setCaseIntru(null);\n this.terrain.getRobots().forEach(robot1 -> robot1.setStatusRobo(StatusRobo.PATROUILLE));\n }\n }\n } else if (Robot.getCaseIntru() != null) {\n Logger.getInstance().ajouteUneLigne(TypeLog.INFO, \"Reinitialise la recherche des robot\");\n Robot.setCaseIntru(null);\n this.terrain.getRobots().forEach(robot1 -> robot1.setStatusRobo(StatusRobo.PATROUILLE));\n }\n return res;\n }", "title": "" }, { "docid": "ae785b57d2f17f749d76eed158471f45", "score": "0.5112525", "text": "public void randRobotPos(){\n\t\tboolean plausible = false;\n\t\trand = new Random();\n\t\twhile (!plausible) {\n\t\t\trobotPos[0] = rand.nextInt(grid[0].length);\n\t\t\trobotPos[1] = rand.nextInt(grid.length);\n\t\t\tif (checkPlausible(robotPos[0],robotPos[1])) {\n\t\t\t\tplausible = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9ee130c505a1ade5fc1b1c664d01d970", "score": "0.511227", "text": "public void move() {\n if(_direction > 0){\r\n switch(_direction) {\r\n case 1:\r\n _location.x++;\r\n break;\r\n case 2:\r\n _location.x--;\r\n break;\r\n case 3:\r\n _location.y++;\r\n break;\r\n case 4:\r\n _location.y--;\r\n break;\r\n default:\r\n break;\r\n }\r\n } else {\r\n switch(_rand.nextInt(4)) {\r\n case 0:\r\n _location.x++;\r\n break;\r\n case 1:\r\n _location.x--;\r\n break;\r\n case 2:\r\n _location.y++;\r\n break;\r\n case 3:\r\n _location.y--;\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "79bf7ec3ae4b1a5bae03f0ff9c270e4c", "score": "0.5111384", "text": "void move(int vertical, int horizontal, int y, int x, boolean bool) {\n\t\tif(y+vertical >= 0 && y+vertical < 8 && x+horizontal >= 0 && x+horizontal < 8) { //if indexes still within range when x y changes are added\n\t\t\tif(Game.board[y+vertical][x+horizontal] == null) {\t//if new spot is empty\n\t\t\t\t//adding move\n\t\t\t\tInteger[] move = {y+vertical,x+horizontal};\t\n\t\t\t\tmoves.add(move);\n\t\t\t\tif(bool == true) {\n\t\t\t\t\tmove(vertical, horizontal,y+vertical,x+horizontal,bool); //method is called again with the updated x and y\n\t\t\t\t}//END IF \n\t\t\t}//END IF \n\t\t\telse if(Game.board[y+vertical][x+horizontal].color != this.color) {\t//if new spot is opponent's piece \n\t\t\t\t//adding move\n\t\t\t\tInteger[] move = {y+vertical,x+horizontal};\n\t\t\t\tmoves.add(move);\n\t\t\t}//END ELSE IF\n\t\t}//END IF \n\t}", "title": "" }, { "docid": "c9b774d2ba8c72cda7b35bab0cb0d0c5", "score": "0.5108208", "text": "public void moveRight(){\r\n if(canRight()){\r\n clear();\r\n for (Point p:shape.getBlocks()){\r\n p.x++;\r\n }\r\n draw();\r\n }\r\n }", "title": "" }, { "docid": "02ae511263dadde453e1cccfc3fd806c", "score": "0.51080596", "text": "public void move(rover rover,plateau plateau) throws IOException{\n \r\n int coordinateXrover = rover.getcoodX();\r\n int coordinateYrover = rover.getcoodY();\r\n CodX = coordinateXrover;\r\n CodY = coordinateYrover ;\r\n String roverfacingposition = rover.getposition();\r\n \r\n \r\n //Call the values of the plateau \r\n int lengthXplateau = plateau.getplateauXlength();\r\n int lengthYplateau = plateau.getplateauYlength();\r\n \r\n \r\n //declare a boolean that will contain TRUE or FALSE to be use in a while loop \r\n boolean stop = false ; \r\n \r\n \r\n loop:while( stop != true){\r\n \r\n \r\n //continue to prompt user to enter command till stop is not equal to true \r\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\r\n System.out.println(\"Enter your Command\"); \r\n String command = bufferRead.readLine();\r\n \r\n \r\n \r\n //switch statment to check values 1 by 1 \r\n switch(command){\r\n \r\n case \"M\" : \r\n { if(roverfacingposition.equals(\"N\")){\r\n if(coordinateYrover < lengthYplateau ){\r\n coordinateYrover++;\r\n }else{\r\n System.err.println(\"Error out of bound\");\r\n }\r\n \r\n }else if(roverfacingposition.equals(\"E\")){\r\n if(coordinateXrover < lengthXplateau){\r\n coordinateXrover++;\r\n }else{\r\n System.err.println(\"Error out of bound\");\r\n }\r\n \r\n }else if(roverfacingposition.equals(\"S\")){\r\n if(coordinateYrover > 0 ){\r\n coordinateYrover -- ;\r\n }else{\r\n System.err.println(\"Error out of bound\");\r\n }\r\n }else if(roverfacingposition.equals(\"W\")){\r\n if(coordinateXrover > 0 ) \r\n coordinateXrover -- ;\r\n }else{\r\n System.err.println(\"Error out of bound\");\r\n }\r\n \r\n break ;\r\n }\r\n \r\n case \"L\": { if(roverfacingposition.equals(\"N\")){\r\n roverfacingposition = \"W\" ;\r\n }else if(roverfacingposition.equals(\"E\")){\r\n roverfacingposition = \"N\" ;\r\n }else if(roverfacingposition.equals(\"S\")){\r\n roverfacingposition = \"E\" ;\r\n }else if(roverfacingposition.equals(\"W\")){\r\n roverfacingposition = \"S\" ;\r\n } \r\n \r\n break ;\r\n }\r\n \r\n case \"R\": { if(roverfacingposition.equals(\"N\")){\r\n roverfacingposition = \"E\" ;\r\n }else if(roverfacingposition.equals(\"E\")){\r\n roverfacingposition = \"S\" ;\r\n }else if(roverfacingposition.equals(\"S\")){\r\n roverfacingposition = \"W\" ;\r\n }else if(roverfacingposition.equals(\"W\")){\r\n roverfacingposition = \"N\" ;\r\n } \r\n \r\n break ;\r\n }\r\n case \"Q\": stop = true ;\r\n break loop ;\r\n \r\n \r\n default : System.err.println(\"Enter valid Command(i.e) Either R or L or M \" );\r\n \r\n }\r\n \r\n System.out.println(\"rover is @ point (\" +coordinateXrover+ \",\"+coordinateYrover+ \" and facing \"+roverfacingposition+\" )\");\r\n \t \r\n \r\n \r\n\r\n \r\n \r\n \r\n }\r\n \r\n }", "title": "" }, { "docid": "58b661e528ff8aa008412ad824cffe4e", "score": "0.51040375", "text": "public void move(int type){\n\t\t\n\t\tint movestep = this.ccModel.getController().getConfig().getMOVE_STEP();\n\t\tObject[] objs = this.getMainGraph().getSelectionCells();\n\t\tfor (int i= 0;i<objs.length;i++){\n\t\t\tObject ob= objs[i];\n\t\t\tif (ob instanceof CCGraphCell){\n\n\t\t\t\tCCGraphCell cell = (CCGraphCell)ob;\n\t\t\t\tswitch (type){\n\t\t\t\tcase CommandConstants.UP:\n\t\t\t\t\tcell.setPosY(cell.getPosY()-movestep);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CommandConstants.DOWN:\n\t\t\t\t\tcell.setPosY(cell.getPosY()+movestep);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CommandConstants.RIGHT:\n\t\t\t\t\tcell.setPosX(cell.getPosX()+movestep);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CommandConstants.LEFT:\n\t\t\t\t\tcell.setPosX(cell.getPosX()-movestep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if (ob instanceof CCEdgeCell){\n\t\t\t\tLinkedList<Point> list = ((CCEdgeCell)ob).getDrawEdgeList();\n\t\t\t\tCCEdgeView ev = (CCEdgeView)this.getMainGraph().getCellView(ob);\n\t\t\t\tfor (int j=0;j<list.size();j++){\n\t\t\t\t\tPoint p = (Point)list.get(j);\n\t\t\t\t\tswitch (type){\n\t\t\t\t\tcase CommandConstants.UP:\n\t\t\t\t\t\tp.translate(0,-movestep);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CommandConstants.DOWN:\n\t\t\t\t\t\tp.translate(0,movestep);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase CommandConstants.RIGHT:\n\t\t\t\t\t\tif ((j!=0)&&(j!=list.size()-1)){//first and last point do not move\n\t\t\t\t\t\t\tif ((j==1)||(j==list.size()-2)){\n\t\t\t\t\t\t\t\tif ((list.size()>3))\n\t\t\t\t\t\t\t\t\tp.translate(movestep/2,0);// second point moves only the half\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse p.translate(movestep,0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CommandConstants.LEFT:\n\t\t\t\t\t\tif ((j!=0)&&(j!=list.size()-1)){\n\t\t\t\t\t\t\tif ((j==1)||(j==list.size()-2)){\n\t\t\t\t\t\t\t\tif ((list.size()>3))\n\t\t\t\t\t\t\t\tp.translate(-movestep/2,0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse p.translate(-movestep,0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tev.setPoint(j+1,p);\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.getMainGraph().cellMoved(this.getMainGraph().getCellView(ob));\n\t\t\t \n\t\t}\n\t\t\n\t\t//proof if some elements have negative x,y-Components..\n\t\tPoint p = this.getMainGraph().getSmallestPositionValue();\n\t\tif (p.x <0 || p.y < 0){\n\t\t\tint moveX = 0;\n\t\t\tint moveY = 0;\n\t\t\tif (p.x<0) moveX = -p.x;\n\t\t\tif (p.y<0) moveY = -p.y;\n\t\t\tthis.getMainGraph().moveWholeGraph(moveX,moveY);\n\t\t}\n\t\n\t\tthis.getMainGraph().setChanged(true);\n\t\t\n\t}", "title": "" }, { "docid": "e1c81541b7a6ffa23a1793b823258b9a", "score": "0.510281", "text": "public int[] getData() {return data;}", "title": "" }, { "docid": "64579cb2db0be39d6b453b83a3b5b2b6", "score": "0.5093933", "text": "@Override\n public void move() {\n //ignore this behaviour if robot is not on table\n if(!this.isRobotOnTable()) return;\n //move robot horizontally if direction is horizontal\n if(this.direction.isHorizontal()) {\n int tempX = this.x + this.direction.getDx();\n if(tempX >=0 && tempX < this.table.getWidth()) {\n this.x = tempX;\n }\n } else {\n //move robot vertically if direction is vertical\n int tempY = this.y + this.direction.getDy();\n if(tempY >=0 && tempY < this.table.getHeight()) {\n this.y = tempY;\n }\n }\n }", "title": "" }, { "docid": "9c658cc9ed050771fb9e15ff6ffe08b4", "score": "0.5093919", "text": "public boolean moveRight()\n {\n return setMotorGpioValues(false, true, true, false);\n }", "title": "" }, { "docid": "2ee7bbeb89387eb06158eac664288bf1", "score": "0.50932163", "text": "@Override\n\tpublic ArrayList<Coord> doRobot(Board mBoard) {\n\n\t\tthis.mBoard = mBoard;\n\t\tArrayList<ArrayList<Coord>> moveList;\n\n\t\tmoveList = findAllMoves();\n\n\t\treturn pickPriority(moveList);\n\t}", "title": "" }, { "docid": "14140357bad08b5608841cbf483fbf1f", "score": "0.5089985", "text": "public int[] calculatePos(Enemy entity) {\n\t\tint[] pos = {0,0};\n\t\tint x = (int) (entity.getPosX()/40);\n\t\tint y = (int) (entity.getPosY()/40);\n\t\tif(x>15 || y >11 || x<0 || y<0)return pos;\n\t\t//1=-> 2= ^ 3=v 4 = ^orv 5 =< 6 =<||>\n\t\tif(this.mapInfo[y][x]==1) {\n\t\t\tpos[0] = 1;\n\t\t\tpos[1] = 0;\n\t\t}\n\t\telse if(this.mapInfo[y][x]==2) {\n\t\t\tpos[0] = 0;\n\t\t\tpos[1] = -1;\n\t\t}\n\t\telse if(this.mapInfo[y][x]==3) {\n\t\t\tpos[0] = 0;\n\t\t\tpos[1] = 1;\n\t\t}\n\t\telse if(this.mapInfo[y][x]==4) {\n\t\t\tRandom rand = new Random();\n\t\t\tint temp = rand.nextInt()%2;\n\t\t\tif(temp == 0)pos[1]=3;\n\t\t\telse pos[1]=-3;\n\t\t\tpos[0] = 0;\n\t\t\t\n\t\t}\n\t\telse if(this.mapInfo[y][x]==5) {\n\t\t\tRandom rand = new Random();\n\t\t\tint temp = rand.nextInt()%2;\n\t\t\tif(temp == 0)pos[0]=3;\n\t\t\telse pos[0]=-3;\n\t\t\tpos[1] = 0;\n\t\t\t\n\t\t}\n\t\telse if(this.mapInfo[y][x]==6) {\n\t\t\tpos[0] = -1;\n\t\t\tpos[1] = 0;\n\t\t}\n\n\t\treturn pos;\n\t}", "title": "" }, { "docid": "a3cede8b8b9895a8cd7ae6c21fa88d47", "score": "0.50861627", "text": "@Override\n protected void execute() {\n \t \n\n // Manual adjustment\n double height = Robot.chassis.deadZone(Robot.oi.joystick1.getZ()); // height\n RobotConstants.targetPositionRotations_w = RobotConstants.targetPositionRotations_w +\n (height * RobotConstants.kwinchManualSensitivity_w); \n SmartDashboard.putNumber(\"W Height\", height);\n SmartDashboard.putNumber(\"W \", RobotConstants.targetPositionRotations_w);\n \n if (Robot.oi.joystick1.getRawButton(RobotConstants.kpreButton)) {\n /// Preset\n RobotConstants.targetPositionRotations_w = RobotConstants.kwinchpreHt_w;\n // Redefine top\n }\n\n\n\n if (Robot.oi.joystick1.getRawButton(RobotConstants.kShootOverideButton)) {\n /// This is bad only use in an emergancy \n SmartDashboard.putNumber(\"Override\", RobotConstants.targetPositionRotations_w);\n if (RobotConstants.targetPositionRotations_w <= RobotConstants.kwinchMinHt_w) \n RobotConstants.kwinchMinHt_w =RobotConstants.targetPositionRotations_w; // Redefine bottom\n if (RobotConstants.targetPositionRotations_w >= RobotConstants.kwinchMaxHt_w )\n RobotConstants.kwinchMaxHt_w = RobotConstants.targetPositionRotations_w; // Redefine top\n } else {\n // Button not pressed - Normal mode \t\n if (RobotConstants.targetPositionRotations_w <= RobotConstants.kwinchMinHt_w) \n RobotConstants.targetPositionRotations_w = RobotConstants.kwinchMinHt_w; // Limit to zero height\n if (RobotConstants.targetPositionRotations_w >= RobotConstants.kwinchMaxHt_w )\n RobotConstants.targetPositionRotations_w = RobotConstants.kwinchMaxHt_w; // Limit to max height\n } \n // Robot.winch.winchControl();\n SmartDashboard.putNumber(\"Target Winch Position\", RobotConstants.targetPositionRotations_w);\n\n }", "title": "" }, { "docid": "e199857f89dbca83c14d98196228acc1", "score": "0.5079325", "text": "public void redoMove(){\n // check if there are moves to redo\n if(!redoarray.isEmpty()){\n // first take the field as is and add to the undo stack\n undoarray.push(field);\n // then make the field equal to the top of the redo stack\n field = redoarray.pop();\n // restore lifepoints and pirates\n lifepoints=field[all_cells] ;\n pirates = field[all_cells+1] ;\n\n // repaint the board\n repaint();\n\n }\n }", "title": "" }, { "docid": "177360e1155ca1517ece4fcf29c2ef9b", "score": "0.50789756", "text": "public void rightTurn() {\n\n\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\trightMotor.setSpeed(ROTATE_SPEED);\n\n\t\t// turn 90 degrees to avoid obstacle\n\t\tleftMotor.rotate(convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90), true);\n\t\trightMotor.rotate(-convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90), false);\n\n\t\tleftMotor.setSpeed(FORWARD_SPEED);\n\t\trightMotor.setSpeed(FORWARD_SPEED);\n\n\t\t// move to the left by a tile size\n\t\tleftMotor.rotate(convertDistance(Lab3.WHEEL_RAD, TILE_SIZE), true);\n\t\trightMotor.rotate(convertDistance(Lab3.WHEEL_RAD, TILE_SIZE), false);\n\n\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\trightMotor.setSpeed(ROTATE_SPEED);\n\n\t\t// turn again 90 back and move past the block\n\t\tleftMotor.rotate(-convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90), true);\n\t\trightMotor.rotate(convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90), false);\n\n\t\tleftMotor.setSpeed(FORWARD_SPEED);\n\t\trightMotor.setSpeed(FORWARD_SPEED);\n\n\t\tleftMotor.rotate(convertDistance(Lab3.WHEEL_RAD, TILE_SIZE + 10), true);\n\t\trightMotor.rotate(convertDistance(Lab3.WHEEL_RAD, TILE_SIZE + 10), false);\n\n\t}", "title": "" }, { "docid": "03a7773d890269c730e90def978a6508", "score": "0.50782055", "text": "public int move() {\n double x = Math.random();\n if (range(0, 0.5, x)) {\n position -= 3;\n } else if (range(0.5, 0.70, x)) {\n position += 6;\n } else {\n position += 1;\n }\n return position;\n }", "title": "" }, { "docid": "499aeb5c8ed3ca7cb94ea9899654320d", "score": "0.5077448", "text": "public interface RobotController {\r\n \r\n // *********************************\r\n // ****** QUERY METHODS ********\r\n // *********************************\r\n \r\n /**\r\n * @return this robot's current energon level\r\n */\r\n public double getEnergon();\r\n \r\n /**\r\n * @return this robot's shields\r\n */\r\n public double getShields();\r\n \r\n /**\r\n * @return total amount of resources remaining\r\n */\r\n public double getTeamPower();\r\n \r\n /**\r\n * @return this robot's current location\r\n */\r\n public MapLocation getLocation();\r\n \r\n /**\r\n * @return the current map's width\r\n */\r\n public int getMapWidth();\r\n \r\n /**\r\n * @return the current map's height\r\n */\r\n public int getMapHeight();\r\n \r\n \r\n /**\r\n * Gets the Team of this robot. Equivalent to\r\n * <code>this.getRobot().getTeam()</code>.\r\n *\r\n * @return this robot's Team\r\n * @see battlecode.common.Team\r\n */\r\n public Team getTeam();\r\n \r\n /**\r\n * Use this method to access your robot.\r\n *\r\n * @return the Robot associated with this RobotController\r\n */\r\n public Robot getRobot();\r\n \r\n /**\r\n * Gets this robot's type (SOLDIER, HQ, etc.)\r\n *\r\n * @return this robot's type.\r\n */\r\n public RobotType getType();\r\n \r\n // ***********************************\r\n // ****** SENSOR METHODS ********\r\n // ***********************************\r\n \r\n /**\r\n * Returns the object at the given location and height, or <code>null</code>\r\n * if there is no object there.\r\n *\r\n * @throws GameActionException if <code>loc</code> is not within sensor range (CANT_SENSE_THAT)\r\n */\r\n public GameObject senseObjectAtLocation(MapLocation loc) throws GameActionException;\r\n \r\n /**\r\n * Sense objects of type <code>type</code> that are within this sensor's range.\r\n */\r\n public <T extends GameObject> T[] senseNearbyGameObjects(Class<T> type);\r\n \r\n /**\r\n * Same as <code>senseNearbyGameObjects</code> except objects are returned only if they are\r\n * within the given radius\r\n */\r\n public <T extends GameObject> T[] senseNearbyGameObjects(Class<T> type, int radiusSquared);\r\n \r\n /**\r\n * Same as <code>senseNearbyGameObjects</code> excent objects are returned only if\r\n * both within the given radius and on the given team\r\n */\r\n public <T extends GameObject> T[] senseNearbyGameObjects(Class<T> type, int radiusSquared, Team team);\r\n \r\n /**\r\n * Sense the location of the object <code>o</code>.\r\n *\r\n * @throws GameActionException if <code>o</code> is not within sensor range (CANT_SENSE_THAT)\r\n */\r\n public MapLocation senseLocationOf(GameObject o) throws GameActionException;\r\n \r\n /**\r\n * Sense the RobotInfo for the robot <code>r</code>.\r\n *\r\n * @throws GameActionException if <code>r</code> is not within sensor range (CANT_SENSE_THAT)\r\n */\r\n public RobotInfo senseRobotInfo(Robot r) throws GameActionException;\r\n \r\n /**\r\n * @return true if GameObject <code>o</code> is within a robot's personal sensor range\r\n */\r\n public boolean canSenseObject(GameObject o);\r\n \r\n /**\r\n * Returns true if this robot can sense the location {@code loc}.\r\n */\r\n public boolean canSenseSquare(MapLocation loc);\r\n \r\n public MapLocation[] senseAllEncampments();\r\n public MapLocation[] senseAlliedEncampments();\r\n \r\n /**\r\n * Sense whether a mine exists at a given location\r\n * Returns either the TEAM of the mine or null if there is no mine\r\n * @param location to scan\r\n * @return team the mine belongs to or null if there is no mine there\r\n */\r\n public Team senseMine(MapLocation location);\r\n \r\n \r\n /**\r\n * @return An array of MapLocations containing all known enemy mine locations\r\n */\r\n public MapLocation[] senseAllEnemyMineLocations();\r\n \r\n \r\n /**\r\n * @return location of this robot's HQ\r\n */\r\n public MapLocation senseHQLocation();\r\n \r\n /**\r\n * @return location of the enemy team's HQ\r\n */\r\n public MapLocation senseEnemyHQLocation();\r\n \r\n /**\r\n * Check the enemy team's NUKE research progress - only HQ can do this\r\n * @return enemy NUKE research progress\r\n * @throws GameActionException if not HQ\r\n */\r\n public int senseEnemyNukeProgress() throws GameActionException;\r\n \r\n /**\r\n * Checks if the given map location is an encampment square.\r\n * Returns true if an encampement can be built on the square regardless of whether\r\n * there already exists an encampment on the square\r\n */\r\n public boolean senseEncampmentSquare(MapLocation loc);\r\n \r\n // ***********************************\r\n // ****** MOVEMENT METHODS ********\r\n // ***********************************\r\n \r\n /**\r\n * @return the number of rounds until this robot's action cooldown ends, or 0 if it is already active.\r\n */\r\n public int roundsUntilActive();\r\n \r\n /**\r\n * @return true if this robot is active. If a robot is active, it can move, mine, defuse, capture, and attack.\r\n */\r\n public boolean isActive();\r\n \r\n /**\r\n * Move in the given direction if possible.\r\n * @param dir\r\n * @throws GameActionException if the robot cannot move in this direction\r\n */\r\n public void move(Direction dir) throws GameActionException;\r\n \r\n /**\r\n * Tells whether this robot can move in the given direction. Takes into\r\n * account only the map terrain and positions of other robots. Does not take\r\n * into account whether this robot is currently active or otherwise\r\n * incapable of moving.\r\n *\r\n * @return true if there are no robots or walls preventing this robot from\r\n * moving in the given direction; false otherwise\r\n */\r\n public boolean canMove(Direction dir);\r\n \r\n // ***********************************\r\n // ****** ATTACK METHODS *******\r\n // ***********************************\r\n \r\n /**\r\n * ARTILLERY only\r\n * @return true if the given location is within this robot's attack range.\r\n * Does not take into account whether the robot is currently attacking\r\n */\r\n public boolean canAttackSquare(MapLocation loc);\r\n \r\n /**\r\n * ARTILLERY only\r\n * Attacks the given location and height.\r\n */\r\n public void attackSquare(MapLocation loc) throws GameActionException;\r\n \r\n // ***********************************\r\n // ****** BROADCAST METHODS *******\r\n // ***********************************\r\n \r\n /**\r\n * Broadcasts a message to the global message board.\r\n * The data is not written until the end of the robot's turn\r\n * @param channel - the channel to write to, from 0 to <code>MAX_RADIO_CHANNELS</code>\r\n * @param data - one int's worth of data to write\r\n * @throws GameActionException\r\n */\r\n public void broadcast(int channel, int data) throws GameActionException;\r\n \r\n /**\r\n * Retrieves the message stored at the given radio channel\r\n * @param channel - radio channel to query, from 0 to <code>MAX_RADIO_CHANNELS</code>\r\n * @return data currently stored on the channel\r\n * @throws GameActionException \r\n */\r\n public int readBroadcast(int channel) throws GameActionException;\r\n \r\n // ***********************************\r\n // ****** OTHER ACTION METHODS *******\r\n // ***********************************\r\n \r\n /**\r\n *\r\n * Queues a spawn action to be performed at the end of this robot's turn.\r\n * When the action is executed, a new robot will be created at\r\n * directly in front of this robot. The square must not already be occupied.\r\n * The new robot is created and starts executing bytecodes immediately\r\n *\r\n * @param dir the direction to spawn robot in; cannot be null.\r\n * @throws IllegalStateException if this robot is not an ARCHON\r\n * @throws GameActionException if this robot is currently moving (ALREADY_ACTIVE)\r\n * @throws GameActionException if <code>loc</code> is already occupied (CANT_MOVE_THERE)\r\n */\r\n public void spawn(Direction dir) throws GameActionException;\r\n \r\n \r\n /**\r\n * Checks whether a given upgrade has been researched and is available.\r\n * @param upgrade\r\n */\r\n public boolean hasUpgrade(Upgrade upgrade);\r\n \r\n \r\n /**\r\n * SOLDIER only\r\n * Lays a mine underneath a robot. A robot cannot move until the mine is laid\r\n * \r\n * @throws GameActionException\r\n */\r\n public void layMine() throws GameActionException;\r\n \r\n /**\r\n * SOLDIER only\r\n * Defuses a mine on the target square. A robot cannot move until the defusion is complete.\r\n * \r\n * @throws GameActionException\r\n */\r\n public void defuseMine(MapLocation loc) throws GameActionException;\r\n \r\n /**\r\n * Captures the encampment soldier is standing on. \r\n * Immediately kills the soldier and encampment, and spawns an encampment robot of the given type\r\n * @param type\r\n * @throws GameActionException\r\n */\r\n public void captureEncampment(RobotType type) throws GameActionException;\r\n \r\n /**\r\n * Checks how much it costs to start a capture\r\n */\r\n public double senseCaptureCost();\r\n \r\n /**\r\n * Researches the given upgrade for a turn.\r\n * Will only work if the robot is an HQ\r\n * @param upgrade\r\n * @throws GameActionException\r\n */\r\n public void researchUpgrade(Upgrade upgrade) throws GameActionException;\r\n \r\n /**\r\n * Checks the total number of rounds a given research has been researched\r\n * Will only work if the robot is an HQ\r\n * @param upgrade\r\n * @return the number of rounds that have been spent upgrading\r\n * @throws GameActionException\r\n */\r\n public int checkResearchProgress(Upgrade upgrade) throws GameActionException;\r\n \r\n \r\n /**\r\n * Ends the current round. This robot will receive a power bonus of\r\n * <code>GameConstants.POWER_COST_PER_BYTECODE * (GameConstants.BYTECODE_LIMIT\r\n \t\t * - RobotMonitor.getBytecodesUsed())</code>.\r\n * Never fails.\r\n */\r\n public void yield();\r\n \r\n /**\r\n * Kills your robot and ends the current round. Never fails.\r\n */\r\n public void suicide();\r\n \r\n /**\r\n * Causes your team to lose the game. It's like typing \"gg.\"\r\n */\r\n public void resign();\r\n \r\n // ***********************************\r\n // ******** MISC. METHODS *********\r\n // ***********************************\r\n \r\n /**\r\n * Puts a hat on the robot. To be monetized in a future DLC\r\n */\r\n public void wearHat();\r\n \r\n /**\r\n * Sets one of this robot's 'indicator strings' for debugging purposes.\r\n * These strings are displayed in the client. This method has no effect on\r\n * gameplay (aside from the number of bytecodes executed to call this\r\n * method).\r\n *\r\n * @param stringIndex the index of the indicator string to set. Must satisfy\r\n * <code>stringIndex >= 0 && stringIndex < GameConstants.NUMBER_OF_INDICATOR_STRINGS</code>\r\n * @param newString the value to which the indicator string should be set\r\n */\r\n public void setIndicatorString(int stringIndex, String newString);\r\n \r\n /**\r\n * Senses the terrain at <code>loc</code>, if <code>loc</code> was ever\r\n * within this robot's sensor range. Otherwise, returns <code>null</code>.\r\n */\r\n public TerrainTile senseTerrainTile(MapLocation loc);\r\n \r\n /**\r\n * Gets this robot's 'control bits' for debugging purposes. These bits can\r\n * be set manually by the user, so a robot can respond to them.\r\n *\r\n * @return this robot's control bits\r\n */\r\n public long getControlBits();\r\n \r\n /**\r\n * Adds a custom observation to the match file, such that when it is analyzed, this observation will appear.\r\n *\r\n * @param observation the observation you want to inject into the match file\r\n */\r\n public void addMatchObservation(String observation);\r\n \r\n /**\r\n * Sets the team's \"memory\", which is saved for the next game in the\r\n * match. The memory is an array of {@link GameConstants#TEAM_MEMORY_LENGTH}\r\n * longs. If this method is called more than once with the same index\r\n * in the same game, the last call is what is saved for the\r\n * next game.\r\n *\r\n * @param index the index of the array to set\r\n * @param value the data that the team should remember for the next game\r\n * @throws java.lang.ArrayIndexOutOfBoundsException\r\n * if {@code index} is less\r\n * than zero or greater than or equal to {@link GameConstants#TEAM_MEMORY_LENGTH}\r\n * @see #getTeamMemory\r\n * @see #setTeamMemory(int, long, long)\r\n */\r\n public void setTeamMemory(int index, long value);\r\n \r\n /**\r\n * Sets this team's \"memory\". This function allows for finer control\r\n * than {@link #setTeamMemory(int, long)} provides. For example,\r\n * if {@code mask == 0xFF} then only the eight least significant bits of\r\n * the memory will be set.\r\n *\r\n * @param index the index of the array to set\r\n * @param value the data that the team should remember for the next game\r\n * @param mask indicates which bits should be set\r\n * @throws java.lang.ArrayIndexOutOfBoundsException\r\n * if {@code index} is less\r\n * than zero or greater than or equal to {@link GameConstants#TEAM_MEMORY_LENGTH}\r\n * @see #getTeamMemory\r\n * @see #setTeamMemory(int, long)\r\n */\r\n public void setTeamMemory(int index, long value, long mask);\r\n \r\n /**\r\n * Returns the team memory from the last game of the match.\r\n * The return value is an array of length {@link GameConstants#TEAM_MEMORY_LENGTH}.\r\n * If setTeamMemory was not called in the last game, or there was no last game, the\r\n * corresponding long defaults to 0.\r\n *\r\n * @return the team memory from the the last game of the match\r\n * @see #setTeamMemory(int, long)\r\n * @see #setTeamMemory(int, long, long)\r\n */\r\n public long[] getTeamMemory();\r\n \r\n /**\r\n * If breakpoints are enabled, calling this method causes the game engine to\r\n * pause execution at the end of this round, until the user decides to\r\n * resume execution.\r\n */\r\n public void breakpoint();\r\n \r\n }", "title": "" }, { "docid": "b1add1a3e6108d405691ce6100c5724c", "score": "0.5075486", "text": "@Override\n\tpublic boolean[][] possibleMoves() {\n\t\t//cria uma matriz de possiveis movimentos usando o tabuleiro como tamanho\n\t\t//e iniciado todas as posicoes como false por padrao do java\n\t\tboolean[][] mat = new boolean[this.getBoard().getRows()][this.getBoard().getColumns()];\n\t\t\n\t\t//cria uma posicao qualquer para ser auxiliar\n\t\t//A classe Rook e heranda de ChessPiece que tb e herenca de Piece, entao tem uma posicao e um tabuleiro\n\t\tPosition p = new Position (0,0);\n\t\t\n\t\t//Quando se anda com a linha anda pra cima ou para baixo\n\t\t//Quando se anda com a coluna se anda para direita e para esquerda\n\t\t\n\t\t//verificar acima\n\t\tp.setValues(this.position.getRow()-1, this.position.getColumn());\n\t\t//Se a posicao existir e nao tiver peca seta true e anda e incrementa para a proxima rodada\n\t\twhile(getBoard().positionExists(p) && !this.getBoard().thereIsAPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t\tp.setRow(p.getRow()-1);\n\t\t}\n\t\t//Se existe a posicao e a peca e de um oponente entao pode mover tb \n\t\t//Essa posicao p é a posicao que sobrou do while\n\t\tif(getBoard().positionExists(p) && isThereOpponentPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\t\t\n\t\t//Para esquerda\n\t\t//E igual a condicao de cima, mas variando a coluna -1 para ir para esquerda\n\t\tp.setValues(this.position.getRow(), this.position.getColumn()-1);\n\t\twhile(getBoard().positionExists(p) && !this.getBoard().thereIsAPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t\tp.setColumn(p.getColumn()-1);\n\t\t}\n\t\tif(getBoard().positionExists(p) && isThereOpponentPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\t\t\n\t\t//Para direita\n\t\t//E igual a condicao de cima, mas variando a coluna +1 para ir para direita\n\t\tp.setValues(this.position.getRow(), this.position.getColumn()+1);\n\t\twhile(getBoard().positionExists(p) && !this.getBoard().thereIsAPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t\tp.setColumn(p.getColumn()+1);\n\t\t}\n\t\tif(getBoard().positionExists(p) && isThereOpponentPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\t\t\n\t\t//Para baixo\n\t\t//E igual a condicao de cima, mas variando a coluna +1 para ir para baixo\n\t\t//O tabuleiro de xadrez e impresso de cabeca para baixo, para cima eh para baixo e para baixa eh para cima\n\t\tp.setValues(this.position.getRow()+1, this.position.getColumn());\n\t\twhile(getBoard().positionExists(p) && !this.getBoard().thereIsAPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t\tp.setRow(p.getRow()+1);\n\t\t}\n\t\tif(getBoard().positionExists(p) && isThereOpponentPiece(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\t\t//retorna a matriz com as posicoes true setadas, as que nao foram setadas sao falses\n\t\treturn mat;\n\t}", "title": "" }, { "docid": "e398403d39e58055fcf8e69b31804eda", "score": "0.5071836", "text": "@Override\n protected void execute() {\n turn = Robot.m_oi.stick.getRawAxis(OI.RX);\n forward = Robot.m_oi.stick.getRawAxis(OI.LY)*0.75;\n Robot.drive.arcadeDrive(-forward, turn);\n\n leftTriggerPower = Robot.m_oi.stick.getRawAxis(OI.LTrigger);\n rightTriggerPower= Robot.m_oi.stick.getRawAxis(OI.RTrigger);\n //Robot.drive.neoMotorSetPower(leftTriggerPower - rightTriggerPower); //sets neo motor to the total of the left and right trigger, the right trigger is negative and left is positive\n //System.out.println(Robot.drive.sensorOutput());\n Robot.drive.sensorOutput();\n Robot.drive.neoOuput();\n }", "title": "" }, { "docid": "5856617635d237b7f872d27c7e607207", "score": "0.50665057", "text": "public void updateSingleSensor(int value, int maxValue, Coordinate sensorPos, Orientation o) {\n\t\tif(value == -1 || value > maxValue) value = maxValue;\n\t\tswitch (o) {\n\t\t\tcase RIGHT:\n\t\t\t\t// update all seen\n\t\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\t\tif(this.isCellObstacle(sensorPos.getX() + i, sensorPos.getY())) return;\n\t\t\t\t\tthis.markCellSeen(sensorPos.getX() + i, sensorPos.getY());\n\t\t\t\t}\n\t\t\t\tif (value < maxValue) { // obstacle in front\n\t\t\t\t\tthis.setObstacle(new Coordinate(sensorPos.getX() + value + 1, sensorPos.getY()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LEFT:\n\t\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\t\tif(this.isCellObstacle(sensorPos.getX() - i, sensorPos.getY())) return;\n\t\t\t\t\tthis.markCellSeen(sensorPos.getX() - i, sensorPos.getY());\n\t\t\t\t}\n\t\t\t\tif (value < maxValue) { // obstacle in front\n\t\t\t\t\tthis.setObstacle(new Coordinate(sensorPos.getX() - value - 1, sensorPos.getY()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase UP:\n\t\t\t\tfor (int j = 1; j <= value; j++) {\n\t\t\t\t\tif(this.isCellObstacle(sensorPos.getX(), sensorPos.getY() + j)) return;\n\t\t\t\t\tthis.markCellSeen(sensorPos.getX(), sensorPos.getY() + j);\n\t\t\t\t}\n\t\t\t\tif (value < maxValue) { // obstacle in front\n\t\t\t\t\tthis.setObstacle(new Coordinate(sensorPos.getX(), sensorPos.getY() + value + 1));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DOWN:\n\t\t\t\tfor (int j = 1; j <= value; j++) {\n\t\t\t\t\tif(this.isCellObstacle(sensorPos.getX(), sensorPos.getY() - j)) return;\n\t\t\t\t\tthis.markCellSeen(sensorPos.getX(), sensorPos.getY() - j);\n\t\t\t\t}\n\t\t\t\tif (value < maxValue) { // obstacle in front\n\t\t\t\t\tthis.setObstacle(new Coordinate(sensorPos.getX(), sensorPos.getY() - value - 1));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "054f11e75cabe9111166d8728107f58f", "score": "0.50648475", "text": "public int[] data();", "title": "" }, { "docid": "8b21045996421dd4804aaaabb86bcaff", "score": "0.5050057", "text": "public int move() { \n int r = this.getHeuristicTile();\n\n return r;\n }", "title": "" }, { "docid": "d92940b178ae93ade56de1b42e574073", "score": "0.50500154", "text": "public int getSensorIndex();", "title": "" }, { "docid": "e864b320c2e2eb5b0687a38cbcb4de00", "score": "0.5048833", "text": "public void dataUpdate() {\n\t\tfor (int i = 0; i < clientData.length; i++) {\n\t\t\tfor (int j = 0; j < clientData.length; j++) {\n\t\t\t\tif (clientData[i][j] == 1) {\n\t\t\t\t\tframe.placePiece(1, i, j);\n\t\t\t\t}\n\t\t\t\tif (clientData[i][j] == 0) {\n\t\t\t\t\tframe.removePiece(i, j);\n\n\t\t\t\t} else if (clientData[i][j] == 2) {\n\t\t\t\t\tframe.placePiece(2, i, j);\n\t\t\t\t}\n\t\t\t\tif (clientData[i][j] == 0) {\n\t\t\t\t\tframe.removePiece(i, j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dff82cb6423dad3c8784b23fd8ef0f61", "score": "0.5048106", "text": "public RobotNode(int[] starts) {\n state = new int[n_robots * 2];\n this.state = loadState(starts);\n// this.mazeToString();\n }", "title": "" }, { "docid": "c817758ae57d573e2d167c3ec3261035", "score": "0.5047871", "text": "@Override\n public void updateState(Perception p) {\n \tDronePerception dronePercepcion= (DronePerception) p; //seteamos a drone perception\n //Actualiza la posicion con el gps\n \tfor(int i=0;i<4;i++){\n \t\tthis.posicion[i] = dronePercepcion.getgps()[i];\n \t}\n \t\n //Actualiza la intensidad de señales con la antena\n \tint[] antena=dronePercepcion.getantena();\n \tswitch(this.posicion[0]){\n \tcase 2://Nivel alto\n \t\t//Seteo la columna 0 de la matriz de señales\n \tfor(int i=0;i<4;i++){\n \t\tthis.intensidadSenial[i][0] = antena[i];\n \t}\n \t\tbreak;\n \n \tcase 1://Nivel medio\n \t\tint cuadrante=posicion[1];\n \t\t//Seteo la fila que corresponde al cuadrante en el que estoy (con las señales de sus subcuadrantes)\n \t\tfor(int i=0;i<4;i++){\n \t\t\tthis.intensidadSenial[cuadrante-1][i+1] = antena[i];\n \t\t}\n\n \t\tbreak;\n \t\t\n \tcase 0://Nivel bajo\n \t\t//No se hace nada\n \t\tbreak;\n \t}\n\n \t\n \t//Actualiza esquinas adyacentes con la camara\n \tfor(int i=0;i<9;i++){\n \t\tthis.esquinasAdyacentes[i] = obtenerEsquinasAdyacentes(dronePercepcion)[i];\n \t}\n \t\n \t//Actualiza vista en línea recta con la camara\n \tfor(int i=0;i<9;i++){\n \t\tthis.vistaLineaRecta[i] = obtenerVistaLineaRecta(dronePercepcion)[i];\n \t}\n \t\n \t//Actualiza victimario con la camara\n \tif(this.vistaLineaRecta[0]==1) this.victimario = true;\n }", "title": "" }, { "docid": "477efe0c6d71f67c2467b7e25c5f4dcd", "score": "0.50439274", "text": "public boolean move() {\n boolean wasMove = false;\n for (Robot robot : robots) {\n // System.out.println(\"robot: \" + robot.getIdd()/* + \" stat \" + robot.getStatus()*/);\n // ktore hybu robotmi si ho musia opat spustit\n // root.game.timeLine.pause();\n System.out.println(robot.getType());\n if (robot.isActive()) { // ak mame aktivneho robota\n System.out.println(\"Move of robot \" + robot.getName());\n robot.move(); // zavolame tah\n wasMove = true; // nasli sme aktivneho\n // printSituation(); // vypis celu plochu\n } else if(robot.isMoving() || robot.isFalling()) {\n wasMove = true;\n }\n else if (robot.isStuck()){\n robot.endMoving();\n }\n else {\n pane.getChildren().remove(robot);\n removeRobot(robot);\n robot.endMoving();\n }\n }\n printSituation();\n return wasMove;\n }", "title": "" }, { "docid": "684148db772e72a949afa2401af1df43", "score": "0.50410044", "text": "void travelTo(double x, double y) {\n\t\t\t\n\t\t double position[] = new double[3]; \n\t\t\tposition = odometer.getXYT(); \n\t\t\tcurrentX = position[0];\n\t\t\tcurrentY = position[1];\n\t\t\tcurrentT = position[2];\n\t\t\t\n\t\t\tdeltaX = x - currentX; \n\t\t\tdeltaY = y - currentY; \n\t\t\tdist = Math.sqrt(deltaX * deltaX + deltaY*deltaY); \n\t\t\t\n\t\t\t//Three cases based on deltaX, deltaY\n\t\t\t\n\t\t\tif(deltaY >= 0) {\n\t\t\t\t//the robot has to move in positive Y direction to where it is facing\n\t\t\t\t\n\t\t\t\t//Y is positive, x could be anything because Math.atan calculates from pi/2 to -pi/2\n\t\t\t\t//i.e. when Y is positive (quadrants 1 and 2) \n\t\t\t\t\n\t\t\t\tdTheta = Math.atan(deltaX/deltaY); //tan is opposite divided by adjacent\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(deltaY <=0 && deltaX >= 0) {\n\t\t\t\t//y is negative, x is positive\n\t\t\t\t//quadrant 4\n\t\t\t\t\n\t\t\t\tdTheta = Math.atan(deltaX/deltaY) + Math.PI; //minimal angle calculation\n\t\t\t\t//Math.PI is factored in because the range of atan is from -pi/2 to pi/2\n\t\t\t\t//tan(-a) = -tan(a) which is why Math.PI is added not subtracted\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//y is negative, x is negative.\n\t\t\t\t//quadrant 3\n\t\t\t\t\n\t\t\t\tdTheta = Math.atan(deltaX/deltaY) - Math.PI; \n\t\t\t}\n\t\t\t\n\t\t\tdouble thetaDiff = (Math.toDegrees(dTheta)-currentT);\n\t\t\t//The robot is not always facing 0, so needs to find the difference it needs to turn\n\t\t\tturnTo(thetaDiff); \n\t\t\t\n\t\t\tleftMotor.setSpeed(250);\n\t\t\trightMotor.setSpeed(250);\n\t\t\tleftMotor.rotate(convertDistance(WHEEL_RAD, dist), true);\n\t\t rightMotor.rotate(convertDistance(WHEEL_RAD, dist), true); \n\t\t\t//convertDistance borrowed from SquareDriver\n\n\t\t\twhile(isNavigating()) { \n\t\t\t\tusSamples.fetchSample(usData,0);\n\t\t\t\tfloat distance = usData[0]*100; //we multiplied the sample by a 100 to increase its prominence\n\t\t\t\t\t\t\t\t\t\t\t\t//since it is normalized between 0 and 1\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(distance<= 12) {\n\t\t\t\t\t//if the distance is below a certain threshold, i.e. obstacle is here\n\t\t\t\t\t//run this code\n\t\t\t\t\t\n\t\t\t\t\tif(odometer.getXYT()[0] > 1.1*30.48 && odometer.getXYT()[0]<2.2*30.48\n\t\t\t\t\t\t\t&& odometer.getXYT()[1]<2.2*30.48 && odometer.getXYT()[1]>1.7*30.48 ){ \n\t\t\t\t\t\t// if robot is at the top right of the map, run this code\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//it moves a fixed pattern to avoid the block but turns to the left\n\t\t\t\t\t\t//so it doesn't fall off the grid\n\t\t\t\t\t\tleftMotor.rotate(-convertAngle(WHEEL_RAD, TRACK, 90), true); // makes sharp 90 degree turn first to avoid obstacle\n\t\t\t\t\t\trightMotor.rotate(convertAngle(WHEEL_RAD, TRACK, 90), false);\n\t\t\t\t\t\tleftMotor.rotate(convertDistance(WHEEL_RAD, 30), true); \n\t\t\t\t\t\trightMotor.rotate(convertDistance(WHEEL_RAD, 30), false);\n\t\t\t\t\t\tleftMotor.rotate(convertAngle(WHEEL_RAD, TRACK, 90), true);\n\t\t\t\t\t\trightMotor.rotate(-convertAngle(WHEEL_RAD, TRACK, 90), false);\n\t\t\t\t\t\tleftMotor.rotate(convertDistance(WHEEL_RAD, 40), true);\n\t\t\t\t\t\trightMotor.rotate(convertDistance(WHEEL_RAD, 40), false);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse {//if robot is not at top right of the map run this code\n\t\t\t\t\t\t//still moves a fixed pattern to avoid the block\n\t\t\t\t\t\t//the rotate is swapped so it moves to the left instead.\n\t\t\t\t\tleftMotor.rotate(convertAngle(WHEEL_RAD, TRACK, 90), true); \n\t\t\t\t\trightMotor.rotate(-convertAngle(WHEEL_RAD, TRACK, 90), false);\n\t\t\t\t\tleftMotor.rotate(convertDistance(WHEEL_RAD, 30), true);\n\t\t\t\t\trightMotor.rotate(convertDistance(WHEEL_RAD, 30), false);\n\t\t\t\t\tleftMotor.rotate(-convertAngle(WHEEL_RAD, TRACK, 90), true);\n\t\t\t\t\trightMotor.rotate(convertAngle(WHEEL_RAD, TRACK, 90), false);\n\t\t\t\t\tleftMotor.rotate(convertDistance(WHEEL_RAD, 40), true);\n\t\t\t\t\trightMotor.rotate(convertDistance(WHEEL_RAD, 40), false);\n\t\t\t\t\t}\n\t\t\t\t\t//the counter is subtracted here so at the end of this sequence\n\t\t\t\t\t//it would go back to the waypoint it initially was on path to\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\n\t\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "778152d9b471ead8873f7aebf2fbee59", "score": "0.50389004", "text": "public int[] getCoordinate(){return coordinate;}", "title": "" }, { "docid": "9489aca38736b1c5ffe2e2a9fea61893", "score": "0.50380284", "text": "public void teleopPeriodic() {\n { //Driving Scope : Currently Full Joystick Control, no correction\n Components.robotDrive.drive(Components.leftStick.getCoalescedY(), Components.rightStick.getCoalescedY());\n } //End Driving Scope\n \n { //Shooter Scope\n if (Components.operatorControl.getButton(XboxController.Button.Start) & !justPressed[XboxController.Button.Start.value]) { //Start button turns on shooter\n //EventBus.instance.push(new ShooterStartEvent());\n Components.shooterSystem.activate();\n justPressed[XboxController.Button.Start.value] = true;\n } else {\n justPressed[XboxController.Button.Start.value] = false;\n }\n \n if (Components.operatorControl.getButton(XboxController.Button.Back) & !justPressed[XboxController.Button.Back.value]) { //Back Button stops the shooter\n //EventBus.instance.push(new ShooterStopEvent());\n Components.shooterSystem.stop();\n justPressed[XboxController.Button.Back.value] = false;\n } else {\n justPressed[XboxController.Button.Back.value] = false;\n }\n \n\n } //End Shooter Scope\n \n { // Shooter Angle Scope\n if ((Components.operatorControl.getRawAxis(3) < 0) && !triggers[0]) { //Left Trigger lowers the shooter angle\n //EventBus.instance.push(new ShooterLowerAngleEvent());\n Components.shooterAngleSystem.deactivate();\n triggers[0] = true;\n } else {\n triggers[0] = false;\n } \n \n if ((Components.operatorControl.getRawAxis(3) > 0) && !triggers[1]) { //Right Trigger raises the shooter angle\n //EventBus.instance.push(new ShooterRaiseAngleEvent());\n Components.shooterAngleSystem.activate();\n //System.out.println(\"RT pressed\");\n triggers[1] = true;\n } else {\n triggers[1] = false;\n } \n } // End Shooter Angle Scope\n \n { //Intake Scope \n //Indexer Control: While holding A keep indexer up\n if (Components.operatorControl.getButton(XboxController.Button.A)) {\n indexerUp = true;\n } else {\n indexerUp = false;\n if (waitingForRelease) {\n Components.indexer.deactivate();\n waitingForRelease = false;\n intakeMotorAllowed = true;\n }\n }//Indexer end\n \n if (Components.operatorControl.getButton(XboxController.Button.B) & !justPressed[XboxController.Button.B.value]) { //B angles intake in\n //EventBus.instance.push(new IntakeAngleInEvent());\n Components.intakeSystem.deactivate();\n justPressed[XboxController.Button.B.value] = true;\n //Components.shooterSystem.resetTimer();\n if (indexerUp) { //If indexer stays up\n Components.indexer.activate(); //Keep Indexer Up\n waitingForRelease = true;\n intakeMotorAllowed = false; //Intake Motor Off\n } else {\n Components.indexer.deactivate(); //Indexer \n }\n } else {\n justPressed[XboxController.Button.B.value] = false;\n }\n \n if (Components.operatorControl.getButton(XboxController.Button.X) & !justPressed[XboxController.Button.X.value]) { //X angles intake out\n //EventBus.instance.push(new IntakeAngleOutEvent());\n Components.intakeSystem.activate();\n justPressed[XboxController.Button.X.value] = true;\n Components.indexer.activate(); //Indexer Up when extending intake system\n } else {\n justPressed[XboxController.Button.X.value] = false;\n }\n \n if ((Components.operatorControl.getButton(XboxController.Button.Y) & !justPressed[XboxController.Button.Y.value]) || !intakeMotorAllowed) { //Y turns off the intake motor\n //EventBus.instance.push(new IntakeMotorOffEvent());\n Components.intakeSystem.deactivateMotor();\n justPressed[XboxController.Button.Y.value] = true;\n } else {\n justPressed[XboxController.Button.Y.value] = false;\n }\n \n if (Components.operatorControl.getButton(XboxController.Button.LB) & !justPressed[XboxController.Button.LB.value] & intakeMotorAllowed) { //Left Bumper starts the intake in reverse\n //EventBus.instance.push(new IntakeMotorForwardEvent());\n Components.intakeSystem.forwardMotor();\n justPressed[XboxController.Button.LB.value] = true;\n } else {\n justPressed[XboxController.Button.LB.value] = false;\n }\n \n if (Components.operatorControl.getButton(XboxController.Button.RB) & !justPressed[XboxController.Button.RB.value] & intakeMotorAllowed) { //Right Bumper starts the intake forward\n //EventBus.instance.push(new IntakeMotorReverseEvent());\n Components.intakeSystem.reverseMotor();\n justPressed[XboxController.Button.RB.value] = true;\n } else {\n justPressed[XboxController.Button.RB.value] = false;\n } \n \n } //End Intake Scope\n \n { //Compressor Scope\n boolean safety = Components.compressorSafety.get();\n if (!safety && !compressorOn) {\n //EventBus.instance.push(new CompressorOnEvent());\n Components.compressorSpike.set(Relay.Value.kForward);\n compressorOn = true;\n }else if (safety && compressorOn) {\n //EventBus.instance.push(new CompressorOffEvent());\n Components.compressorSpike.set(Relay.Value.kOff);\n compressorOn = false;\n }\n } //End Compressor Scope\n \n { //For Testing Gyro and Encoder ... TBD comment for match\n \n double angleMoved = Components.DriveGyro.getAngle();\n Components.sfxDashboard.Gyro_ANGLE = angleMoved;\n \n if (Components.operatorControl.getButton(XboxController.Button.RightClick) & !justPressed[XboxController.Button.RightClick.value]) { //Start button turns on shooter\n // Call Gyro methods\n \n Components.driveTrain.correctAngleUsingGyro(-angleMoved,true, 3.0);\n \n \n \n justPressed[XboxController.Button.A.value] = true;\n } else {\n justPressed[XboxController.Button.A.value] = false;\n }\n // Encode\n double leftEncDist = Components.DriveEncoderLeft.getDistance();\n double rightEncDist = Components.DriveEncoderRight.getDistance();\n boolean leftEncDirection = Components.DriveEncoderLeft.getDirection();\n boolean rightEncDirection = Components.DriveEncoderRight.getDirection();\n \n Components.sfxDashboard.Left_Encoder_Value = leftEncDist;\n Components.sfxDashboard.Right_Encoder_Value = rightEncDist;\n Components.sfxDashboard.Left_Encoder_Direction = leftEncDirection;\n Components.sfxDashboard.Right_Encoder_Direction = rightEncDirection;\n \n \n \n if (Components.operatorControl.getButton(XboxController.Button.LeftClick) & !justPressed[XboxController.Button.LeftClick.value]) { //Back Button stops the shooter\n // Call Encoder methods\n Components.driveTrain.driveToDistanceUsingEnc(24.0, 3);\n justPressed[XboxController.Button.LeftClick.value] = false;\n } else {\n justPressed[XboxController.Button.LeftClick.value] = false;\n }\n \n\n } //End Testing Gyro and Encode Scope\n \n { //SFX Dashboard Scope\n \n Components.sfxDashboard.smartDashboardUpdate();\n \n } // SFX End Dashboard Scope\n \n }", "title": "" }, { "docid": "1797533ac20e1ab43e632e90dc30ce2f", "score": "0.50338733", "text": "private int[] placeOnBoard(float x, float y)\n {\n\n if(!isHorizontal && y < 200) return new int[]{ 0 };\n\n // coordinates\n int[] xy = new int[]{ 0, 0 };\n\n int halfBoat = boatLength/2;\n\n float newX;\n float newY;\n\n // do you know what you're doing (getting x)\n xy[0] = ((int)(( x ) / (tileLength + (5/2))));\n\n // get the y value\n int t = (int)y - this.getHeight() + tileLength; // don't rock the boat\n xy[1] = (t / (tileLength + (5/2)));\n\n // we offset the x if the boat is even length, else offset the y.\n int xOffset = boatLength % 2 == 0 ? tileLength/2 : 0;\n int yOffset = xOffset == 0 ? tileLength/2 : 0;\n\n if(isHorizontal) // ------\n {\n \n // x fixes\n if(xy[0] < halfBoat) xy[0] = halfBoat;\n\n if(xy[0] + boatLength > 11) xy[0] = (10 - halfBoat) - (boatLength % 2 == 1 ? 1 : 0);\n\n // y fixes\n\n int yAdjust = boatLength > 3 ? 3 : 4;\n if((xy[1] - yAdjust) < 0) xy[1] = yAdjust; // srsly what is this\n if((xy[1] - yAdjust) > 9) xy[1] = 9 + yAdjust;\n\n\n newX = ((xy[0] * tileLength) - xOffset);\n newY = (xy[1] * tileLength) - (tileLength/3) - yOffset;\n\n\n // life hacks\n xy[0] -= halfBoat;\n\n xy[1] -= yAdjust;\n }\n else // vertical |\n {\n \n // x fixes\n int even = boatLength % 2 == 0 ? 1 : 0;\n\n if(xy[0] < 0) xy[0] = 0;\n if(xy[0] > 9) xy[0] = 9;\n\n // y fixes\n \n int yAdjust = halfBoat + 4 - (even - 1);\n\n if(xy[1] - yAdjust < 0) xy[1] = yAdjust; // srsly what is this\n if((xy[1] - yAdjust) + boatLength > 10) xy[1] = (10 + yAdjust) - boatLength;\n\n newX = (((xy[0] - halfBoat) * tileLength) + xOffset);\n newY = ((xy[1]) * tileLength) - (tileLength/3) - yOffset;\n\n // life hacks\n\n xy[1] -= yAdjust;\n }\n\n this.setX(newX);\n this.setY(newY);\n\n return xy;\n }", "title": "" }, { "docid": "79f1174abae9545cb57e8ae7e9b936a5", "score": "0.5026883", "text": "public void move(){\n Random rand = new Random();\r\n int randx = rand.nextInt(3)-1;\r\n int randy = rand.nextInt(3)-1; \r\n int newx = this.mX + randx;\r\n int newy = this.mY + randy;\r\n \r\n if(!GlobalVariables.getInstance().mFishTank.isOccupied(newx, newy)){ \r\n //if the value is outside of the tank return it to the previous spot\r\n //other wise change it to the new spot in the tank.\r\n if(newx >=20 || newx <=0){\r\n return;\r\n }\r\n if(newy >= 20 || newy <=0){\r\n return;\r\n }\r\n else{\r\n this.mX = newx;\r\n this.mY = newy; \r\n }\r\n } \r\n }", "title": "" }, { "docid": "24ba545a22842f46bd697aa0539e7dd5", "score": "0.5026742", "text": "public abstract long getX(int index);", "title": "" }, { "docid": "32590f58b21d52d704c56795a49cbecb", "score": "0.50224155", "text": "public Piece movePiece(int x_from, int y_from, int x_to, int y_to){\n\n\n\n return board[x_to][y_to];\n }", "title": "" }, { "docid": "7cb35e58fbf3f41538a58f4ac78fce8b", "score": "0.5016985", "text": "public void step()\r\n {\r\n if (rightPressed) \r\n {\r\n \t//System.out.println((tileArray[(y_pos/50)][(x_pos/50) + 1]).getPassable());\r\n\t\t//System.out.println((tileArray[(y_pos/50)][(x_pos/50) + 1]));\r\n \tif((tileArray[(y_pos/50)][(x_pos/50) + 1]).getPassable() == false)\r\n \t{\r\n \t\tx_pos = x_pos;\r\n \t}\r\n \t\r\n \telse\r\n \t{\r\n \t\tx_pos += 50;\r\n \t}\r\n } \r\n\r\n if (leftPressed)\r\n {\r\n \t//System.out.println((tileArray[(y_pos/50)][(x_pos/50) - 1]).getPassable());\r\n\t\t//System.out.println((tileArray[(y_pos/50)][(x_pos/50) - 1]));\r\n \tif((tileArray[(y_pos/50)][(x_pos/50) - 1]).getPassable() == false)\r\n \t{\r\n \t\tx_pos = x_pos;\r\n \t}\r\n \t\r\n \telse\r\n \t{\r\n \t\tx_pos -= 50;\r\n \t}\r\n\t}\r\n\r\n if (upPressed) \r\n {\r\n \tif((tileArray[(y_pos/50) - 1][(x_pos/50)]).getPassable() == false)\r\n \t{\r\n \t\ty_pos = y_pos;\r\n \t}\r\n \t\r\n \telse\r\n \t{\r\n \t\ty_pos -= 50;\r\n \t}\r\n }\r\n\r\n if (downPressed)\r\n {\r\n \tSystem.out.println((tileArray[(y_pos/50 + 1)][(x_pos/50)]).getPassable());\r\n \tSystem.out.println((tileArray[(y_pos/50 + 1)][(x_pos/50)]));\r\n \tif((tileArray[(y_pos/50) + 1][(x_pos/50)]).getPassable() == false)\r\n \t{\r\n \t\ty_pos = y_pos;\r\n \t}\r\n \t\r\n \telse\r\n \t{\r\n \t\ty_pos += 50;\r\n \t}\r\n }\r\n\r\n repaint();\r\n }", "title": "" }, { "docid": "a2f57b844918e0f8e0d630ac617e6134", "score": "0.5013232", "text": "@Override\n public void runOpMode() {\n Thing1.setDirection(DcMotor.Direction.FORWARD);\n Thing2.setDirection(DcMotor.Direction.REVERSE);\n\n waitForStart();\n\n\n double leftPower;\n double rightPower;\n\n //tankdrive\n leftPower = -gamepad1.left_stick_y ;\n rightPower = -gamepad1.right_stick_y ;\n\n //power things\n Thing1.setPower(leftPower);\n Thing2.setPower(rightPower);\n\n //telemetry.addData(\"Abou: \", \"Located\"); //prints abous location to the phone\n\n }", "title": "" }, { "docid": "5445098d70112e4bb7c8c1cc1508f5d5", "score": "0.50127786", "text": "private void testMotors()\r\n {\r\n \tif (xboxController.getX() > 0)\r\n \t{\r\n \t\tleftMotors[0].set(TEST_MOTOR_SPEED);\r\n \t\tUtils.printPeriodic(\"MotorTest\", \"Testing left motor, index 0.\");\r\n \t}\r\n \telse if (xboxController.getX() < 0)\r\n \t{\r\n \t\tleftMotors[1].set(TEST_MOTOR_SPEED);\r\n \t\tUtils.printPeriodic(\"MotorTest\", \"Testing left motor, index 1.\");\r\n \t}\r\n \t\r\n \tif (xboxController.getY() > 0)\r\n \t{\r\n \t\trightMotors[0].set(TEST_MOTOR_SPEED);\r\n \t\tUtils.printPeriodic(\"MotorTest\", \"Testing right motor, index 0.\");\r\n \t}\r\n \telse if (xboxController.getY() < 0)\r\n \t{\r\n \t\trightMotors[1].set(TEST_MOTOR_SPEED);\r\n \t\tUtils.printPeriodic(\"MotorTest\", \"Testing right motor, index 1.\");\r\n \t}\r\n }", "title": "" }, { "docid": "f16004ed4233e87f8482d65e493b9d30", "score": "0.5011892", "text": "public long dataToMove() {\n return _dataToMove;\n }", "title": "" }, { "docid": "ebfe53c55ff63020fc6342721fef5ca1", "score": "0.50114214", "text": "public static int[] getDelta( int course ) {\n log_d( \"getDelta \" + course );\nint xd = 0;\nint yd = 0;\n// right\nif ( course == COURSE_RIGHT ) {\n xd = 0;\n yd = 1; \n// up right\n} else if ( course == COURSE_UP_RIGHT ) {\n xd = -1;\n yd = 1; \n// up\n} else if ( course == COURSE_UP ) {\n xd = -1;\n yd = 0; \n\n // up left\n} else if ( course == COURSE_UP_LEFT ) {\n xd = -1;\n yd = -1; \n// left \n} else if ( course == COURSE_LEFT ) {\n xd = 0;\n yd = -1; \n// down left\n} else if ( course == COURSE_DOWN_LEFT ) {\n xd = 1;\n yd = -1;\n // down\n} else if ( course == COURSE_DOWN ) {\n xd = 1;\n yd = 0; \n// down right \n} else if ( course == COURSE_DOWN_RIGHT ) {\n xd = 1;\n yd = 1; \n} // if\nint[] ret = new int[2];\nlog_d( \"delta \" +xd + \", \"+ yd );\nret[0] = xd;\nret[1] = yd;\nreturn ret;\n}", "title": "" }, { "docid": "051eebb7cefe4c92725cf79916fca94b", "score": "0.501106", "text": "public void setBoard(String data) throws Exception;", "title": "" }, { "docid": "b97be35d4cd0b240832906b9381cd078", "score": "0.5008734", "text": "public float move(boolean moveRight){\n // Log.d(\"move Direction\",\"pos_x: \"+this.pos_x+\" pos_left: \"+this.pos_left);\n if(moveRight){\n this.pos_x+=5;\n this.pos_left+=5;\n this.pos_right+=5;\n // this.pos_bottom+=5;\n }else{\n this.pos_x-=5;\n this.pos_left-=5;\n this.pos_right-=5;\n // this.pos_bottom-=5;\n }\n return this.pos_x;\n }", "title": "" }, { "docid": "0e440d059c4785cc37a9c7e93057a0b7", "score": "0.500677", "text": "boolean move(int rQI, int cQI, int rQF, int cQF, int rA, int cA);", "title": "" }, { "docid": "405cace251089f1940fadc7ca49ac5fc", "score": "0.5004062", "text": "private int simulateComputerMove() {\n return r.nextInt(3) + 1;\n }", "title": "" }, { "docid": "28b22ecfd92ff9b8b27ec759f54a452c", "score": "0.49978858", "text": "public void updateStatus() {\n\t\t//\n\t\t// Robot.table.putNumber(\"Front Left Position X\",\n\t\t// this.m_leftFront.fieldX);\n\t\t// Robot.table.putNumber(\"Front Left Position Y\",\n\t\t// this.m_leftFront.fieldY);\n\t\t//\n\t\t// Robot.table.putNumber(\"Back Left Position X\",\n\t\t// this.m_leftBack.fieldX);\n\t\t// Robot.table.putNumber(\"Back Left Position Y\",\n\t\t// this.m_leftBack.fieldY);\n\t\t//\n\t\t// Robot.table.putNumber(\"Front Right Position X\",\n\t\t// this.m_rightFront.fieldX);\n\t\t// Robot.table.putNumber(\"Front Right Position Y\",\n\t\t// this.m_rightFront.fieldY);\n\t\t//\n\t\t// Robot.table.putNumber(\"Back Right Position X\",\n\t\t// this.m_rightBack.fieldX);\n\t\t// Robot.table.putNumber(\"Back Right Position Y\",\n\t\t// this.m_rightBack.fieldY);\n\n\t\tSmartDashboard.putNumber(\"Robot Position X\", robotPosition()[0]);\n\t\tSmartDashboard.putNumber(\"Robot Position Y\", robotPosition()[1]);\n\n\t\t// SmartDashboard.putNumber(\"Front Left Error\",\n\t\t// this.m_leftFront.PIDController.getError());\n\t\t// SmartDashboard.putNumber(\"Back Left Error\",\n\t\t// this.m_leftBack.PIDController.getError());\n\t\t// SmartDashboard.putNumber(\"Front Right Error\",\n\t\t// this.m_rightFront.PIDController.getError());\n\t\t// SmartDashboard.putNumber(\"Back Right Error\",\n\t\t// this.m_rightBack.PIDController.getError());\n\n\t\t// SmartDashboard.putNumber(\"Encoder\",\n\t\t// this.m_leftFront.driveEncoder.get());\n\n\t\t// SmartDashboard.putNumber(\"Front Left Test Angle\",\n\t\t// this.m_leftFront.testAng);\n\t\t// SmartDashboard.putNumber(\"Back Left Test Angle\",\n\t\t// this.m_leftBack.testAng);\n\t\t// SmartDashboard.putNumber(\"Front Right Test Angle\",\n\t\t// this.m_rightFront.testAng);\n\t\t// SmartDashboard.putNumber(\"Back Right Test Angle\",\n\t\t// this.m_rightBack.testAng);\n\t}", "title": "" }, { "docid": "be8bb07539f7ef40f88a5b6f8347f477", "score": "0.49967176", "text": "private void computerMove(){\n if(mBoard[0] != null && mBoard[1] != null && mBoard[2] != null\r\n && mBoard[3] != null && mBoard[4] != null && mBoard[5] != null\r\n && mBoard[6] != null && mBoard[7] != null && mBoard[8] != null){\r\n return;\r\n }\r\n\r\n //lazy random ai to play tic tac toe against - uses random numbers\r\n Random r = new Random();\r\n int randomNum = r.nextInt(9);\r\n while(mBoard[randomNum] != null){\r\n\r\n randomNum = r.nextInt(9);\r\n }\r\n //change the value of the array and the text on the buttons per random number generated\r\n if(mBoard[randomNum] == null && computerTurn == true){\r\n mBoard[randomNum] = \"O\";\r\n //String buttonID = \"cell\" + randomNum;\r\n //int resID = getResources().getIdentifier(buttonID,\"id\",getPackageName());\r\n if(randomNum == 0 ){\r\n cell0.setText(\"O\");\r\n }\r\n if(randomNum == 1){\r\n cell1.setText(\"O\");\r\n }\r\n if(randomNum == 2){\r\n cell2.setText(\"O\");\r\n }\r\n if(randomNum == 3){\r\n cell3.setText(\"O\");\r\n }\r\n if(randomNum == 4){\r\n cell4.setText(\"O\");\r\n }\r\n if(randomNum == 5){\r\n cell5.setText(\"O\");\r\n }\r\n if(randomNum == 6){\r\n cell6.setText(\"O\");\r\n }\r\n if(randomNum == 7){\r\n cell7.setText(\"O\");\r\n }\r\n if(randomNum == 8){\r\n cell8.setText(\"O\");\r\n }\r\n userTurn = true;\r\n checkForWinner();\r\n }\r\n\r\n }", "title": "" }, { "docid": "c85b6a102c74ab1bfd483a304c7efb91", "score": "0.49900123", "text": "public interface ControlBoardInterface\n{\n\n // DRIVER CONTROLS\n double getThrottle();\n\n double getTurn();\n\n boolean getQuickTurn();\n\n boolean getLowGear();\n\n boolean getExample();\n\n // OPERATOR CONTROLS\n boolean getBlinkLEDButton();\n}", "title": "" }, { "docid": "b975557be6a59bec305ea6d7d9c15858", "score": "0.49852544", "text": "public int[][] points() {\n\n /* Get all the points of the rectangle */\n int zone_UL_x = zone_LL_x;\n int zone_UL_y = zone_UR_y;\n int zone_LR_x = zone_UR_x;\n int zone_LR_y = zone_LL_y;\n\n /* Get the current value of X and Y, in cm */\n double currentX = Robot.getOdo().getX();\n double currentY = Robot.getOdo().getY();\n\n /*\n * If we started on the green side and our robot enters the searching area on the x axis\n */\n if (currentX < (zone_LR_x * Robot.GRID_SIZE) && Robot.getTeamColor() == \"Green\") {\n int coordinates[][] = {{zone_LR_x, zone_LR_y}, {zone_UR_x, zone_UR_y}, {zone_UL_x, zone_UL_y},\n {zone_LL_x, zone_LL_y}};\n return coordinates;\n }\n /*\n * If we started on the red side and our robot enters the searching area on the x axis\n */\n else if (currentX < (zone_LR_x * Robot.GRID_SIZE) && Robot.getTeamColor() == \"Red\") {\n int coordinates[][] = {{zone_UL_x, zone_UL_y}, {zone_LL_x, zone_LL_y}, {zone_LR_x, zone_LR_y},\n {zone_UR_x, zone_UR_y}};\n return coordinates;\n\n }\n /*\n * If we started on the green side and our robot enters the searching area on the y axis\n */\n else if (currentY < (zone_UR_y * Robot.GRID_SIZE) && Robot.getTeamColor() == \"Green\") {\n int coordinates[][] = {{zone_UR_x, zone_UR_y}, {zone_UL_x, zone_UL_y}, {zone_LL_x, zone_LL_y},\n {zone_LR_x, zone_LR_y}};\n return coordinates;\n }\n\n /*\n * If none of the cases above apply there's only one possibility left we started on the red side\n * and our robot enters the searching area on the y axis\n */\n int coordinates[][] = {{zone_LL_x, zone_LL_y}, {zone_LR_x, zone_LR_y}, {zone_UR_x, zone_UR_y},\n {zone_UL_x, zone_UL_y}};\n return coordinates;\n\n }", "title": "" }, { "docid": "de07148b22e381ce9b584497cd5cc12d", "score": "0.49830803", "text": "public void move() {\r\n\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tif(stepsTaken >= stop){\r\n\t\t\tstepsTaken = 0;\r\n\t\t\tstop = rand.nextInt(20)+11;\r\n\t\t\tdirection = rand.nextInt(5);\r\n\t\t}\r\n\r\n\r\n\t\t// Move orc\r\n\t\tint xa = 0;\r\n\t\tint ya = 0;\r\n\r\n\r\n\t\tif(direction == 0){\r\n\t\t\tya++;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 1){\r\n\t\t\tya--;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 2){\r\n\t\t\txa--;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 3){\r\n\t\t\txa++;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 4){\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\r\n\t\tif (xa != 0 || ya != 0) {\r\n\t\t\tmove(xa, ya);\r\n\t\t\tisMoving = true;\r\n\t\t} else {\r\n\t\t\tisMoving = false;\r\n\t\t}\r\n\r\n\t\tif (level.getTile(this.x >> 3, this.y >> 3).getId() == 3) {\r\n\t\t\tisSwimming = true;\r\n\t\t}\r\n\t\tif (isSwimming && level.getTile(this.x >> 3, this.y >> 3).getId() != 3) {\r\n\t\t\tisSwimming = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "adcf932edb8640c2e0939725b828955d", "score": "0.4982257", "text": "public int[] makeMove() {\r\n \tboolean waiting = true;\r\n \tint[] move = new int[2];\r\n \twhile(waiting)\r\n \t{\r\n \t\tSystem.out.print(\"\");\r\n \t\tif(frame.getMove()[0] != -1 && frame.getMove()[1] != -1)\r\n \t\t{\r\n \t\t\tmove = frame.getMove();\r\n \t\t\twaiting = false;\r\n \t\t}\r\n \t}\r\n return move;\r\n }", "title": "" }, { "docid": "7a632e5ce4296bebec39f8f16f57a9b3", "score": "0.49815047", "text": "@Override\n\tprotected void execute() {\n\t\tif (stepCnt != stepNum) {\n\t\t\tstepCnt ++;\t\n\t\t}\n\t\t\n\t\tif (stepCnt < stepNum) {\n\t\t\ttargetPos = (int) (curPos + stepValue * stepCnt);\t\n\t//\t\tRobot.pullArmSubsystem.setSetpoint(targetPos);\n\t\t}else if(stepCnt >= stepNum) {\n\t\t\ttargetPos = setPos;\n//\t\t\tRobot.pullArmSubsystem.setSetpoint(targetPos);\n\t\t}\n\t\tSystem.out.println(\"pull arm Step Cnt = \" + stepCnt + \" target = \" + targetPos);\n\t}", "title": "" }, { "docid": "2ad8e0b44de077c4014db1ec93650ad1", "score": "0.49810815", "text": "private CarduinoData getData(){\n return carduino.dataHandler.getData();\n }", "title": "" }, { "docid": "fb8511b0ae24ae2ef00afb60dedcc755", "score": "0.49795866", "text": "public boolean[][] possibleMoves() {\n\t\tboolean[][] mat = new boolean[getBoard().getRows()][getBoard().getColumns()];\n\n\t\tPosition p = new Position(0, 0);\n\t\t/**\n\t\t * Above\n\t\t * \n\t\t * Seta valores para a posisão p(row -1) porque a peça vai andar para\n\t\t * cima(Above) Se existir posisão no tabuleiro e se existir peça na posisão\n\t\t * Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow() - 1, position.getColumn());// -1) porque a peça vai andar para cima(above)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * Below\n\t\t * \n\t\t * Seta valores para a posisão p(row +1) porque a peça vai andar para\n\t\t * baixo(below) Se existir posisão no tabuleiro e se existir peça na posisão\n\t\t * Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow() + 1, position.getColumn());// +1) porque a peça vai andar para baixo(Below)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * Left\n\t\t * \n\t\t * Seta valores para a posisão p(columnn -1) porque a peça vai andar para\n\t\t * esquerda(left) Se existir posisão no tabuleiro e se existir peça na posisão\n\t\t * Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow(), position.getColumn() - 1);// -1) porque a peça vai andar para esquerda(left)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * Rigth\n\t\t * \n\t\t * Seta valores para a posisão p(columnn +1) porque a peça vai andar para\n\t\t * direita(Rigth) Se existir posisão no tabuleiro e se existir peça na posisão\n\t\t * Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow(), position.getColumn() + 1);// +1) porque a peça vai andar para direita(Rigth)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * NW cima esquerda\n\t\t * \n\t\t * Seta valores para a posisão p(row -1)(columnn -1) porque a peça vai andar\n\t\t * para Nord-Este(cima esquerd)(NW) Se existir posisão no tabuleiro e se existir\n\t\t * peça na posisão Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow() - 1, position.getColumn() - 1);// -1)-1) porque a peça vai andar para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nord-Este(cima\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// esquerd)(NW)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * NE cima Direita\n\t\t * \n\t\t * Seta valores para a posisão p(row -1)(columnn +1) porque a peça vai andar\n\t\t * para Nord-oeste(cima direita)(NE) Se existir posisão no tabuleiro e se\n\t\t * existir peça na posisão Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow() - 1, position.getColumn() + 1);// -1)+1) porque a peça vai andar para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nord-Este(cima\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// esquerd)(NE)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * SW Baixo esquerda\n\t\t * \n\t\t * Seta valores para a posisão p(row +1)(columnn -1) porque a peça vai andar\n\t\t * para sud-Este(baixo esquerda)(SW) Se existir posisão no tabuleiro e se\n\t\t * existir peça na posisão Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow() + 1, position.getColumn() - 1);// +1)-1) porque a peça vai andar para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sud-Este(baixo esquerda)(SW)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * SE baixo Direita\n\t\t * \n\t\t * Seta valores para a posisão p(row +1)(columnn +1) porque a peça vai andar\n\t\t * para sud-oeste(baixo direita)(SE) Se existir posisão no tabuleiro e se\n\t\t * existir peça na posisão Retorna valor na matriz como True\n\t\t */\n\t\tp.setValues(position.getRow() + 1, position.getColumn() + 1);// +1)+1) porque a peça vai andar para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sud-oeste(baixo direita)(SE)\n\t\tif (getBoard().positionExists(p) && canMove(p)) {\n\t\t\tmat[p.getRow()][p.getColumn()] = true;\n\t\t}\n\n\t\t/**\n\t\t * Movimento especial Castling\n\t\t * \n\t\t */\n\n\t\tif (getMoveCount() == 0 && !chessMatch.getcheck()) {\n\t\t\t// special move castling kingside rook\n\t\t\tPosition posT1 = new Position(position.getRow(), position.getColumn() + 3);\n\t\t\tif (testRookCastling(posT1)) {\n\t\t\t\tPosition p1 = new Position(position.getRow(), position.getColumn() + 1);\n\t\t\t\tPosition p2 = new Position(position.getRow(), position.getColumn() + 2);\n\t\t\t\tif (getBoard().piece(p1) == null && getBoard().piece(p2) == null) {\n\t\t\t\t\tmat[position.getRow()][position.getColumn() + 2] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// special move castling queenside rook\n\t\t\tPosition posT2 = new Position(position.getRow(), position.getColumn() - 4);\n\t\t\tif (testRookCastling(posT2)) {\n\t\t\t\tPosition p1 = new Position(position.getRow(), position.getColumn() - 1);\n\t\t\t\tPosition p2 = new Position(position.getRow(), position.getColumn() - 2);\n\t\t\t\tPosition p3 = new Position(position.getRow(), position.getColumn() - 3);\n\t\t\t\tif (getBoard().piece(p1) == null && getBoard().piece(p2) == null && getBoard().piece(p3) == null) {\n\t\t\t\t\tmat[position.getRow()][position.getColumn() - 2] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn mat;\n\t}", "title": "" }, { "docid": "f2eb97367c0395015556bba893691cde", "score": "0.49778277", "text": "@Override\n\tpublic int getData() {\n\t\treturn currentNode.data;\n\t}", "title": "" }, { "docid": "920b05460c581944a7c92558d93f2f0c", "score": "0.4977495", "text": "public int getMovement() {\n\t\treturn movement;\n\t}", "title": "" }, { "docid": "2134860f19080e46e5464558a5c9b6e7", "score": "0.4974959", "text": "private int getXFrom(){return moves[0];}", "title": "" }, { "docid": "2817a758513ad60eb2d31cad196bfead", "score": "0.49731493", "text": "public int getData(int position){\n\t\t\n\t\tif (position >= data.length){\n\t\t\t\n\t\t\treturn 0;\n\t\t}\n\t\telse \n\t\t\treturn data[position];\n\t}", "title": "" }, { "docid": "b86f655bdaa45d74d9802cae6dc00373", "score": "0.49724105", "text": "@NonNull\n @Override\n public List<Double> getWheelPositions() {\n RevBulkData bulkData = hub2.getBulkInputData();\n\n if (bulkData == null) {\n return Arrays.asList(0.0, 0.0);\n }\n\n List<Double> wheelPositions = new ArrayList<>();\n /* for (ExpansionHubMotor encoder : encoders) {\n wheelPositions.add(encoderTicksToInches(bulkData.getMotorCurrentPosition(encoder)));\n }\n */ wheelPositions.add(-strafeencoderTicksToInches(bulkData.getMotorCurrentPosition(leftEncoder)));\n wheelPositions.add(-strafeencoderTicksToInches(bulkData.getMotorCurrentPosition(frontEncoder)));\n return wheelPositions;\n }", "title": "" } ]
ab1f82b9f793e802a959a2c6055c69ee
Set the gis objects
[ { "docid": "1d44efe34e1e86a06fcb5f46be4c3d1f", "score": "0.79468364", "text": "public void setGISObjects(GISObjects objects)\r\n\t{\r\n\t\tgISObjects = objects;\r\n\t}", "title": "" } ]
[ { "docid": "db8e1301a28181892dd3e0f070cd66cb", "score": "0.7703683", "text": "public void setGISObjects(GISObjects gISObjects)\r\n\t{\r\n\t\tthis.gISObjects = gISObjects;\r\n\t}", "title": "" }, { "docid": "089f8042dd5c58ecd62f1f153d0ce7f4", "score": "0.65967125", "text": "public GISObjects getGISObjects()\r\n\t{\r\n\t\treturn gISObjects;\r\n\t}", "title": "" }, { "docid": "18be6489b9810eaf6854c74d54b82838", "score": "0.60392046", "text": "public void setObstacles(Set<AbstractObject> obst) {\n\t\tobstacles = obst;\n\t}", "title": "" }, { "docid": "7ca6292c8dc148b7b2b623442e0da683", "score": "0.6027524", "text": "void setGame(Graphics g) {\n\t\tfor(Item img : staticImages)\n\t\t{\n\t\t\tg.drawImage(img.getImage(), img.getX(), img.getY(), this);\n\t\t}\n\t\n\t\t/* moving images */ //plane\n\t\tfor(Item item : movingImages)\n\t\t{\n\t\t\tg.drawImage(item.getImage(), item.getX(), item.getY(), this);\n\t\t}\n\t\t\n\t\t/* random appearance images */ //parachutist\n\t\tfor(RandItem randItem : randImages)\n\t\t{\n\t\t\tg.drawImage(randItem.getImage(), randItem.getX(), randItem.getY(), this);\n\t\t}\n\t\t\n\t\t/* controlled images */ //boat\n\t\tfor(ControlledItem contItem : contImages)\n\t\t{\n\t\t\tg.drawImage(contItem.getImage(), contItem.getX(), contItem.getY(), this);\n\t\t}\n\t\t\n\t g.setFont(font);\n\t /* points tracking */\n\t\tg.drawString(\"score: \" + this.score, 30, 60);\n\t\t/* number of life tracking */\n\t\tg.drawString(\"lives: \" + this.livesLeft, 30, 120);\n\t}", "title": "" }, { "docid": "e008ae247da8c51329e21618fa77ad32", "score": "0.5989434", "text": "private void createObjects() {\n bottleItem = new Item(\n 100, \"Бутылка\", \"Бутылка со спиртным\",\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"bottle_big.vrx\")),\n \"bottle.png\"\n );\n bottleItem.setUniformScale(smallScale);\n\n bottleContainer = new InteractiveObject(\n 101, \"Бутылка, лежащая на улице\", \"Здесь можно взять бутылку\", Collections.singletonList(bottleItem)\n );\n bottleContainer.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"bottle_big.vrx\"))\n );\n bottleContainer.setUniformScale(mainScale);\n bottleContainer.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n bottleContainer.setOriginalPosition(new Vector(-1, 0, 0));\n\n bottleSmall = new InteractiveObject(\n 102, \"Бутылка на постаменте\", \"Из этой бутылки пьет череп\"\n );\n bottleSmall.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"bottle_small.vrx\"))\n );\n bottleSmall.setUniformScale(mainScale);\n bottleSmall.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n\n // group of objects related to glass\n glassItem = new Item(\n 200, \"Стакан\", \"Не особенно чистый стакан\",\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"glass_big.vrx\")),\n \"glass.png\"\n );\n glassItem.setUniformScale(smallScale);\n\n glassContainer = new InteractiveObject(\n 201, \"Стакан, лежащий на улице\", \"Здесь можно взять стакан\", Collections.singletonList(glassItem)\n );\n glassContainer.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"glass_big.vrx\"))\n );\n glassContainer.setUniformScale(mainScale);\n glassContainer.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n glassContainer.setOriginalPosition(new Vector(-2, 0, 0));\n\n glassSmall = new InteractiveObject(\n 202, \"Стакан на постаменте\", \"Из этого стакана пьет череп\"\n );\n glassSmall.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"glass_small.vrx\"))\n );\n glassSmall.setUniformScale(mainScale);\n glassSmall.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n\n // group of objects related to helmet\n helmetItem = new Item(\n 300, \"Шлем\", \"Классный мотоциклетный шлем\",\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"helmet2.vrx\")),\n \"helment.png\"\n );\n helmetItem.setUniformScale(smallScale);\n\n helmetContainer = new InteractiveObject(\n 301, \"Контейнер для шлема\", \"Здесь можно взять шлем\", Collections.singletonList(helmetItem)\n );\n helmetContainer.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"helmet2.vrx\"))\n );\n helmetContainer.setUniformScale(mainScale);\n helmetContainer.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n helmetContainer.setOriginalPosition(new Vector(0, 0, -2));\n\n columnHelmet = new InteractiveObject(\n 302, \"Шлем на черепе\", \"Шлем на черепе\"\n );\n columnHelmet.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"helmet.vrx\"))\n );\n columnHelmet.setUniformScale(mainScale);\n columnHelmet.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n\n axeItem = new Item(\n 400, \"Топор\", \"Отличный топор\",\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"axe.vrx\")),\n \"axe.png\"\n );\n axeItem.setUniformScale(smallScale);\n\n // axe related objects\n axeContainer = new InteractiveObject(\n 401, \"Топор, лежащий на земле\", \"Здесь можно взять топор\", Collections.singletonList(axeItem)\n );\n axeContainer.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"axe.vrx\"))\n );\n axeContainer.setUniformScale(mainScale);\n axeContainer.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n axeContainer.setOriginalPosition(new Vector(0, 0, -4));\n\n column = new InteractiveObject(\n 1001, \"Колонна\", \"Колонна, на которой лежит череп\"\n );\n column.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"column.vrx\"))\n );\n column.setUniformScale(mainScale);\n column.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n\n map = new InteractiveObject(\n 1002, \"Карта\", \"Карта\"\n );\n map.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"map.vrx\"))\n );\n map.setUniformScale(mainScale);\n map.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeSphere(0.5f));\n\n skull = new InteractiveObject(\n 1003, \"Череп\", \"Череп\"\n );\n skull.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"skull.vrx\"))\n );\n skull.setUniformScale(mainScale);\n skull.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeBox(0.5f, 2f, 0.5f));\n\n pig = new InteractiveObject(\n 1004, \"Свин\", \"Свин\"\n );\n pig.setVisualResource(\n new VisualResource(Object3D.Type.FBX).setModelUri(asset(\"pig.vrx\"))\n );\n pig.setUniformScale(mainScale);\n pig.initPhysicsBody(PhysicsBody.RigidBodyType.KINEMATIC, 0, new PhysicsShapeBox(0.5f, 2f, 0.5f));\n pig.setOriginalPosition(new Vector(0.5, 0.5, 2.5));\n }", "title": "" }, { "docid": "7207e6fb7a268486c68217bb87d7719e", "score": "0.5902996", "text": "public void setGraphics(Graphics g1) {\n\tg=g1;\n}", "title": "" }, { "docid": "c0b363b74248df02059b82e245bd6263", "score": "0.5897376", "text": "private void initObjects() {\n \n battleShip = new Battleship();\n carrier = new Carrier();\n destroyer = new Destroyer();\n patrolBoat = new PatrolBoat();\n submarine = new Submarine();\n boardListener = new BoardListener();\n }", "title": "" }, { "docid": "1b71954545a1b16befaa5fb9284c2226", "score": "0.5823675", "text": "private void initBgObjects(){\r\n bgObjects = new ArrayList<>();\r\n this.bgObjects.add(new Cloud(cloudOne));\r\n this.bgObjects.add(new Cloud(cloudOne));\r\n this.bgObjects.add(new Cloud(cloudTwo));\r\n this.bgObjects.add(new Cloud(cloudTwo));\r\n this.bgObjects.add(new Cloud(darkCloud));\r\n this.bgObjects.add(new BgTree(bgTreeOne));\r\n this.bgObjects.add(new BgTree(bgTreeOne));\r\n this.bgObjects.add(new BgTree(bgTreeOne));\r\n this.bgObjects.add(new BgTree(bgTreeOne));\r\n }", "title": "" }, { "docid": "ad5150c5e24c3d5aaeacfb2eaa995fbf", "score": "0.58004427", "text": "public void setGraphics(Graphics2D graphics) {\n g=graphics; \n }", "title": "" }, { "docid": "881152c200933bda29b5acb348b8eb89", "score": "0.5773684", "text": "public void setMapGraphics(List mgList)\r\n\t{\r\n\t\tmapGraphics = (MapGraphic[]) mgList.toArray(new MapGraphic[mgList.size()]); \t\t\t\r\n\t}", "title": "" }, { "docid": "4e2fa0bf75262b1eebcc4e9d4bfd0cd8", "score": "0.57065237", "text": "public void setImages() {\n\t\tImageIcon[] playerIcons = new ImageIcon[16];\n\t\t\n\t\t// set north-facing frames\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tplayerIcons[i+NORTH_OFFSET] = new ImageIcon(getClass().getResource(\"resources/\" + race.toString().toLowerCase() + color.toString() + \"_n\" + i + \".png\"));\t\t\t\n\t\t}\n\t\t// set east-facing frames\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tplayerIcons[i+EAST_OFFSET] = new ImageIcon(getClass().getResource(\"resources/\" + race.toString().toLowerCase() + color.toString() + \"_e\" + i + \".png\"));\t\t\t\n\t\t}\n\t\t// set south-facing frames\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tplayerIcons[i+SOUTH_OFFSET] = new ImageIcon(getClass().getResource(\"resources/\" + race.toString().toLowerCase() + color.toString() + \"_s\" + i + \".png\"));\t\t\t\n\t\t}\n\t\t// set west-facing frames\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tplayerIcons[i+WEST_OFFSET] = new ImageIcon(getClass().getResource(\"resources/\" + race.toString().toLowerCase() + color.toString() + \"_w\" + i + \".png\"));\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.images = playerIcons;\n\t}", "title": "" }, { "docid": "3ee3ac6bdbdadd23f63ece1fd108e2db", "score": "0.5603624", "text": "public void setImagenes(Set<Imagen> imagenes) {\r\n\t\tthis.imagenes = imagenes;\r\n\t}", "title": "" }, { "docid": "6e9b6d27acaf7ae35c08bbeed2e97df4", "score": "0.55377257", "text": "private void addObjects(){\n\t\texterior = new BaseObject3D();\n//\t\tinterior = new BaseObject3D();\n\t\t/////////////\n\t\t//Add Exterior\n\t\t/////////////\n\t\t// Load opaque images - order does not matter\n\t\texterior.addChild(ground);\n\t\texterior.addChild(tree);\n\t\texterior.addChild(fgtrees);\n\t\texterior.addChild(shrooms);\n\t\texterior.addChild(rocks);\n\t\texterior.addChild(waterfallrock);\n\t\texterior.addChild(walls);\n\t\texterior.addChild(arch);\n\t\texterior.addChild(largestump);\n\t\texterior.addChild(log);\n\t\texterior.addChild(stump);\n\t\texterior.addChild(door);\n\t\texterior.addChild(pot);\t\t\n\t\texterior.addChild(gold);\n\t\texterior.addChild(tools);\n\t\t//Load transparent images - order matters\n\t\texterior.addChild(clouddome1);\n\t\texterior.addChild(sun);\n\t\texterior.addChild(mountain);\n\t\texterior.addChild(clouddome2);\n\t\texterior.addChild(rbow1);\n\t\texterior.addChild(castletowers);\n\t\texterior.addChild(castle);\n\t\texterior.addChild(flags);\n\t\texterior.addChild(garden);\n\t\texterior.addChild(path);\n\t\texterior.addChild(bird);\n\t\texterior.addChild(dirt);\n\t\texterior.addChild(shadows1);\n\t\texterior.addChild(water);\n\t\texterior.addChild(shadows2);\n\t\texterior.addChild(lilys);\n\t\texterior.addChild(gate);\n\t\texterior.addChild(stumpdecal);\n\t\texterior.addChild(vines1);\n\t\texterior.addChild(vines2);\n\t\texterior.addChild(grass1);\n\t\texterior.addChild(grass2);\n\t\texterior.addChild(grass3);\n\t\texterior.addChild(grass4);\n\t\texterior.addChild(grass5);\n\t\texterior.addChild(flowers1);\n\t\texterior.addChild(flowers2);\n\t\texterior.addChild(flowers3);\n\t\texterior.addChild(flowers4);\n\t\texterior.addChild(flowers5);\n\t\texterior.addChild(flowers6);\n\t\texterior.addChild(shamrocks);\n\t\texterior.addChild(vines3);\n\t\texterior.addChild(splashes);\n\t\texterior.addChild(treeferns);\n\t\texterior.addChild(pondferns);\n\t\texterior.addChild(fgferns);\n\t\texterior.addChild(branches);\n\t\texterior.setVisible(false);\n\t\taddChild(exterior);\n\t\t/////////////\n\t\t//Add Interior\n\t\t/////////////\n//\t\tinterior.addChild(int_tree);\n//\t\tinterior.addChild(int_floor);\n//\t\tinterior.addChild(int_door);\n//\t\tinterior.addChild(int_door_window);\n//\t\tinterior.addChild(int_stairs);\n//\t\tinterior.addChild(int_coatrack);\n//\t\tinterior.addChild(int_hat);\n//\t\tinterior.addChild(int_shoes);\n//\t\tinterior.addChild(int_buckles);\n//\t\tinterior.addChild(int_candles);\n//\t\tinterior.addChild(int_window1);\n//\t\tinterior.addChild(int_dirt);\n//\t\tinterior.addChild(int_clovers1);\n//\t\tinterior.addChild(int_clovers2);\n//\t\tinterior.addChild(int_clovers3);\n//\t\tinterior.addChild(int_clovers4);\n//\t\tinterior.addChild(int_clovers5);\n//\t\tinterior.addChild(int_clovers6);\n//\t\tinterior.addChild(int_clovers7);\n//\t\tinterior.addChild(int_board);\n//\t\tinterior.addChild(int_arches);\n//\t\tinterior.addChild(int_window2);\n//\t\tinterior.addChild(int_window2_sill);\n//\t\tinterior.addChild(int_shelf);\n//\t\tinterior.addChild(int_chair);\n//\t\tinterior.addChild(int_large_table);\n//\t\tinterior.addChild(int_tablerunner);\n//\t\tinterior.addChild(int_mug);\n//\t\tinterior.addChild(int_pipe);\n//\t\tinterior.addChild(int_gold);\n//\t\tinterior.addChild(int_vase1);\n//\t\tinterior.addChild(int_clover_table);\n//\t\tinterior.addChild(int_vase2);\n//\t\tinterior.addChild(int_stone_pad);\n//\t\tinterior.addChild(int_stove);\n//\t\tinterior.addChild(int_chimneyring);\n//\t\tinterior.addChild(int_logs);\n//\t\tinterior.addChild(int_rug);\n//\t\tinterior.addChild(int_books_rocker);\n//\t\tinterior.addChild(int_small_table);\n//\t\tinterior.addChild(int_open_book);\n//\t\tinterior.addChild(int_lamp1);\n//\t\tinterior.addChild(int_lamp2);\n//\t\tinterior.addChild(int_tapestry_rod);\n//\t\tinterior.addChild(int_tapestry);\n//\t\tinterior.addChild(int_candleFlame1);\n//\t\tinterior.addChild(int_candleFlame2);\n//\t\tinterior.addChild(int_candleFlame3);\n//\t\tinterior.setVisible(false);\n//\t\taddChild(interior);\n//\t\tinterior.addLight(pLight_candle1);\n//\t\tinterior.addLight(pLight_candle2);\n//\t\tinterior.addLight(pLight_candle3);\n\t}", "title": "" }, { "docid": "b20ec1ba0d7ff2c96fa31058ff956eb1", "score": "0.54993945", "text": "protected void setObjMap(Map<Integer, Objective> allObjs) {\n objMap = allObjs;\n }", "title": "" }, { "docid": "c7b1808e4e8565241ba43b6a0a9390f9", "score": "0.54917675", "text": "public void setItems(Game game) {\n //Set human and ghost\n for (Player p : game.getPlayers()) {\n if (p.getCharacter() instanceof Human) {\n this.human = (Human) p.getCharacter();\n } else {\n this.ghost = (Ghost) p.getCharacter();\n }\n }\n if (human.getFlashLightPolygon() != null) {\n int[] i = human.getFlashLightPolygon();\n flashlight = new Polygon();\n flashlight.getPoints().clear();\n flashlight.getPoints().addAll(new Double[]{(double) (i[0] + 100) * horScale, (double) (i[1] + 100) * verScale, (double) (i[2] + 100) * horScale, (double) (i[3] + 100) * verScale, (double) (i[4] + 100) * horScale, (double) (i[5] + 100) * verScale});\n flashlight.setFill(Color.YELLOW);\n flashlight.setBlendMode(BlendMode.SOFT_LIGHT);\n }\n //Set door and key.\n Level lvl = game.getCurrentLevel();\n this.level = lvl;\n this.levelDrawWidth = lvl.getWidth() + 200;\n this.levelDrawHeight = lvl.getHeight() + 200;\n// for (Obstacle o : lvl.getObstacles()) {\n// if (o.getBehaviour() == ObstacleType.DOOR) {\n// this.door = o;\n// } else if (o.getBehaviour() == ObstacleType.KEY) {\n// this.key = o;\n// }\n// }\n }", "title": "" }, { "docid": "593eb8ffb372cc76fe895f8206c7a00a", "score": "0.5484765", "text": "private void setSet() {\n builtins.__setitem__(\"set\", new PyJavaType() {\n {\n builtin = true;\n init(PySet.class, new HashSet<PyJavaType>());\n invalidateMethodCache();\n }\n\n @Override\n public PyObject __call__(final PyObject[] args, final String[] kws) {\n switch (args.length) {\n default:\n return super.__call__(args, kws);\n case 3: {\n final PyObject x = args[0];\n final PyType tx = x.getType();\n final PyObject y = args[1];\n final PyType ty = y.getType();\n final PyObject c = args[2];\n final PyType tc = c.getType();\n if (tx == PyInteger.TYPE && ty == PyInteger.TYPE\n && tc == PyInteger.TYPE) {\n set(x.asInt(), y.asInt(), c.asInt());\n return Py.None;\n } else if (tx == PyInteger.TYPE && ty == PyInteger.TYPE\n && tc.getProxyType() != null\n && tc.getProxyType() == PImage.class) {\n set(x.asInt(), y.asInt(), (processing.core.PImage)c\n .__tojava__(processing.core.PImage.class));\n return Py.None;\n } else {\n return super.__call__(args, kws);\n }\n }\n }\n }\n });\n }", "title": "" }, { "docid": "da56dd8ce48a802b74e91e4d368f829e", "score": "0.545745", "text": "public Vector GetGraphicObjects()\n { \n return seGraphics;\n }", "title": "" }, { "docid": "edc96f94ff38e4c2b52ccdbc2c450f21", "score": "0.5441038", "text": "@Override\n\tpublic void setObjects(List<? extends GlusterEntity> objects) {\n\t\tsetOptions((List<Option>) objects);\n\t}", "title": "" }, { "docid": "37b6cfb84220d196b0e4a6d8afabab12", "score": "0.5436653", "text": "private void putGeneralizationSet() {\n\t\tClass classElement;\n\t\tINode generalizationNode;\n\t\tINode specializationNode;\n\t\tOntoGeneralizationSet newGeneralizationSet;\n\t\t\n\t\tfor (PackageableElement packElement : pack.getPackagedElements()) {\n\t\t\tif( packElement instanceof Class ) {\n\t\t\t\tclassElement = (Class) packElement;\n\t\t\t\t\n\t\t\t\tfor (Generalization generalizationOfClass : classElement.getGeneralizations() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (generalizationOfClass.getGeneralizationSets().size() > 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgeneralizationNode = graph.getNode(generalizationOfClass.getGeneral().getName());//getNodeByName( graph, generalizationOfClass.getGeneral().getName()); \n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (GeneralizationSet generalizatinoSet : generalizationOfClass.getGeneralizationSets() ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewGeneralizationSet = new OntoGeneralizationSet( \n\t\t\t\t\t\t\t\t\tgeneralizatinoSet.getName(), \n\t\t\t\t\t\t\t\t\tgeneralizationNode,\n\t\t\t\t\t\t\t\t\tgeneralizatinoSet.isDisjoint(),\n\t\t\t\t\t\t\t\t\tgeneralizatinoSet.isCovering());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor( Generalization generalizationOfGS : generalizatinoSet.getGeneralizations() ) {\n\t\t\t\t\t\t\t\tspecializationNode = graph.getNode(generalizationOfGS.getSpecific().getName());//getNodeByName( graph, generalizationOfGS.getSpecific().getName()); \n\t\t\t\t\t\t\t\tnewGeneralizationSet.addSpecializationIfNotExists( specializationNode );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgraph.addGeneralizationSet( newGeneralizationSet );\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": "3e4e341015f8b8244033550729ccb411", "score": "0.5433805", "text": "private void setup() {\n\n\t\tgerCias = new GerenciadorCias();\n\t\tgerAero = new GerenciadorAeroportos();\n\t\tgerRotas = new GerenciadorRotas();\n\t\tgerAvioes = new GerenciadorAeronaves();\n\t\tgerPaises = new GerenciadorPaises();\n\t}", "title": "" }, { "docid": "d083e337ebfcc47d3a44fe5249ff826a", "score": "0.5418112", "text": "private void setUpObjectImageView (String path){\n\n try {\n\n FileInputStream imagePath = new FileInputStream(path);\n Image objectImage = new Image(imagePath);\n setImage(objectImage);\n\n } catch (Exception e) {\n System.out.println(\"There is something wrong in GameObjects.GameObject class.\");\n }\n }", "title": "" }, { "docid": "85edd8951d08156fcfb22485cbb2a9ce", "score": "0.54086787", "text": "public void setInitialObjects(){\n frog.row = 0;\n frog.setLayoutX(500);\n for (int i = 1; i < NUM_ROWS; i++){\n Obstacle newObstacle = new Obstacle(100 * i, i);\n obstacleList.add(newObstacle);\n gameBoard.getChildren().add(newObstacle);\n }\n }", "title": "" }, { "docid": "08a5137e595fae237ec8056c07533ffd", "score": "0.53940654", "text": "public void setOwner(JBasicPlot owner) {\n\n for (JPolyShape s : lakes) {\n s.setOwner(owner);\n }\n\n for (JPolyShape s : countries) {\n s.setOwner(owner);\n }\n\n }", "title": "" }, { "docid": "6d79b9818398a8a273bf22ab528b874c", "score": "0.53916126", "text": "public void setGraphicsContext(GraphicsContext gc) {\r\n\t\tthis.gc = gc;\r\n\t}", "title": "" }, { "docid": "28f92aa4a8f73fac8fa1b6084bd8f18e", "score": "0.536247", "text": "public Scene setGeometries(Geometries geometries) \n\t{\n\t\tthis.geometries = geometries;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "a966f207dbb2bcdc159c4878d9bb0d9a", "score": "0.5334591", "text": "public void reloadImgs(){\n view.clearCard();\n view.clearShot();\n for(int i = 2; i < boardSets.size(); i++){ // exclude first 2 sets, which are office and trailers\n view.resetCard(boardSets.get(i));\n view.resetShot(boardSets.get(i));\n }\n }", "title": "" }, { "docid": "4f0fc4323f94ed6af13bd879bc5fb9a3", "score": "0.53326505", "text": "public void SetGuiMapElements(Enumeration obs, int elementType)\n {\n islandApplicationResource iar;\n DataBuffer imgData;\n Hashtable objIds;\n GraphicGuiDetails ggd;\n DisplayLayoutDetails dld;\n GridScreenDetails gsd;\n String objId;\n String key;\n Integer intKey;\n Bitmap bmp; \n Object obj;\n byte[] img;\n int type;\n int vIndx;\n \n int imgHt = 0;\n int imgWidth = 0;\n Object imgUrl = null;\n String mediaName = \"\";\n int mediaCount = 0;\n\n if(this.guiMap == null)\n {\n this.guiMap = new MultiMap();\n } \n \n if(elementType == islandApplicationResource.FILE)\n {\n // initializations\n obj = null;\n type = elementType;\n \n try\n {\n // Gui stuffs\n for(Enumeration element = obs; element.hasMoreElements();)\n {\n obj = null;\n \n // packed resources list\n iar = (islandApplicationResource) element.nextElement();\n \n // add contents to guiMap\n for(Enumeration keys = iar.getGuiResourceKeys(); keys.hasMoreElements();)\n {\n key = (String)keys.nextElement();\n if(this.debug)\n {\n System.out.println(\"[INFO] key is :->\"+key);\n }\n \n // one to one mappings\n if(key.equals(\"Icon\")||key.equals(\"BackgroundImage\"))\n {\n if(key.equals(\"Icon\"))\n {\n type = islandSoftwareEngine.APP_ICON_GRAPHIC; \n this._hasGraphics = true;\n }\n \n if(key.equals(\"BackgroundImage\"))\n {\n type = islandSoftwareEngine.APP_BACKGROUND_GRAPHIC; \n this._hasGraphics = true;\n }\n \n switch(type)\n {\n case islandSoftwareEngine.APP_ICON_GRAPHIC:\n // create a bitmap from data\n if(iar.getGuiResourceData(key) instanceof DataBuffer)\n {\n \n imgData = (DataBuffer) iar.getGuiResourceData(key);\n img = imgData.toArray();\n bmp = Bitmap.createBitmapFromPNG(img ,0,img.length);\n ggd = this.new GraphicGuiDetails(); \n ggd.Name = \"Icon_Image\";\n ggd.GraphicsObject = bmp;\n ggd.Id = \"0\";\n obj = (Object) ggd;\n //seGraphics.addElement(obj);\n \n seGraphics.insertElementAt(obj,0);\n \n this._hasGraphics = true;\n \n if(this.debug)\n {\n System.out.println(\"[INFO] resourceData is resourceData\");\n }\n }\n else\n {\n if(this.debug)\n {\n System.out.println(\"[INFO] resourceData is resourceLocation\");\n }\n }\n \n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_ICON_GRAPHIC\");\n }\n break;\n case islandSoftwareEngine.APP_BACKGROUND_GRAPHIC:\n // create a bitmap from data\n if(iar.getGuiResourceData(key) instanceof DataBuffer)\n {\n \n imgData = (DataBuffer) iar.getGuiResourceData(key);\n img = imgData.getArray();\n bmp = Bitmap.createBitmapFromPNG(img ,0,img.length);\n ggd = this.new GraphicGuiDetails(); \n ggd.Name = \"Background_Image\";\n ggd.GraphicsObject = bmp;\n ggd.Id = \"1\"; // first and probably only background image\n obj = (Object) ggd;\n \n if(seGraphics.size()<=1)\n {\n seGraphics.addElement(null);\n }\n \n //seGraphics.addElement(obj);\n seGraphics.insertElementAt(obj, 1);\n this._hasGraphics = true;\n \n if(this.debug)\n {\n System.out.println(\"[INFO] resourceData is resourceData\");\n }\n \n }\n else\n {\n if(this.debug)\n {\n System.out.println(\"[INFO] resourceData is resourceLocation\");\n }\n }\n \n if(this.debug)\n { \n System.out.println(\"[INFO] element is of type APP_BACKGROUND_GRAPHIC\");\n }\n break;\n }\n \n this.guiMap.add(new Integer(type), obj);\n }\n else\n {\n // one to many mappings\n if(key.equals(\"BmpImages\"))\n {\n // Hashtable of random is keys to Bmp objects\n type = islandSoftwareEngine.APP_BMP_GRAPHIC;\n objIds = (Hashtable) iar.getGuiResourceData(key);\n this._hasGraphics = true;\n \n for(Enumeration keyObjIds = objIds.keys(); keyObjIds.hasMoreElements();)\n {\n try\n {\n \n // Get the key put it in ObjId and create the Details object\n objId = (String) keyObjIds.nextElement();\n imgData = (DataBuffer) objIds.get(objId);\n img = imgData.getArray();\n bmp = Bitmap.createBitmapFromBytes(img ,0,img.length,1);\n ggd = this.new GraphicGuiDetails();\n ggd.Name = getGuiGraphicName(objId); // name[id]\n ggd.GraphicsObject = bmp; // obj\n ggd.Id = getGuiId(objId); // order number of bmp image \n obj = (Object) ggd;\n //seGraphics.addElement(obj); // add to vector\n \n if(seGraphics.size() == 0)\n {\n seGraphics.addElement(null); // blank Icon\n seGraphics.addElement(null); // Blank BackgroundImage\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(obj,Integer.valueOf(ggd.Id).intValue());\n \n this.guiMap.add(new Integer(type), obj); // add to type map\n \n }\n catch(Exception exc)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems updating guiMap:\"+exc.toString());\n }\n }\n }\n }\n \n if(key.equals(\"PngImages\"))\n {\n // Hashtable of random is keys to Bmp objects\n type = islandSoftwareEngine.APP_PNG_GRAPHIC;\n objIds = (Hashtable) iar.getGuiResourceData(key);\n this._hasGraphics = true;\n\n try\n {\n imgHt = 0;\n imgWidth = 0;\n imgUrl = \"\";\n mediaName = \"\";\n\n for(Enumeration keyObjIds = objIds.keys(); keyObjIds.hasMoreElements();)\n {\n objId = (String) keyObjIds.nextElement();\n \n if(\n (!objId.equals(\"Name\"))&&\n (!objId.equals(\"Width\"))&&\n (!objId.equals(\"Height\"))&&\n (!objId.equals(\"URL\"))\n )\n {\n if(this.debug)\n {\n System.out.println(\"[INFO] adding image:\"+objId);\n }\n \n // assume old school format\n mediaName = objId;\n imgUrl = objIds.get(objId);\n \n if(this.debug)\n {\n System.out.println(\"[INFO] imgUrl=\"+imgUrl);\n }\n \n if(imgUrl instanceof DataBuffer)\n {\n if(imgUrl != \"\")\n {\n imgData = (DataBuffer) imgUrl;\n img = imgData.getArray();\n bmp = null;\n \n try\n {\n if(imgHt > 0 && imgWidth > 0)\n {\n //bmp = new Bitmap(Bitmap.getDefaultType(),imgWidth,imgHt,img);\n //bmp = new Bitmap(Bitmap.ROWWISE_16BIT_COLOR,imgWidth,imgHt,img);\n EncodedImage ei = EncodedImage.createEncodedImage(img,0,img.length);\n //ei.scaleImage32(Fixed32.tenThouToFP(2000),Fixed32.tenThouToFP(2000)); // scales between 1000 and 9999 increase image size, over 10000 decreases (divide by 10000)\n bmp = ei.getBitmap();\n }\n else\n {\n bmp = Bitmap.createBitmapFromBytes(img ,0,img.length,1);\n }\n }\n catch(Exception e)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems creating png object:\"+e.toString());\n }\n }\n \n ggd = this.new GraphicGuiDetails();\n ggd.Name = mediaName; // name[id]\n ggd.GraphicsObject = bmp; // obj\n \n if(mediaName.equals(\"Icon\")||mediaName.equals(\"Background\"))\n {\n if(mediaName.equals(\"Icon\"))\n {\n ggd.Id = \"0\";\n }\n \n if(mediaName.equals(\"Background\"))\n {\n ggd.Id = \"1\";\n }\n }\n else\n {\n if(this.debug)\n {\n System.out.println(\"[INFO] ! Background or Icon\");\n }\n \n ggd.Id = getGuiId(mediaName); // order number of bmp image \n }\n \n ggd.height = imgHt;\n ggd.width = imgWidth;\n obj = (Object) ggd;\n //seGraphics.addElement(obj); // add to vector\n \n if(seGraphics.size() == 0)\n {\n seGraphics.addElement(null); // blank Icon\n seGraphics.addElement(null); // Blank BackgroundImage\n }\n \n if(this.debug)\n {\n System.out.println(\"[INFO] padded nulls\");\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n if(this.debug)\n {\n System.out.println(\"[INFO] padded seGraphics\");\n }\n \n if(!seGraphics.contains(obj))\n {\n seGraphics.insertElementAt(obj,Integer.valueOf(ggd.Id).intValue());\n this.guiMap.add(new Integer(type), obj); // add to type map\n }\n \n if(this.debug)\n {\n System.out.println(\"[INFO] added object to seGraphics and guiMap\");\n }\n }\n }\n \n if(imgUrl instanceof Hashtable)\n {\n // get the attribute values for the image\n Hashtable imgAttributes = (Hashtable) imgUrl;\n \n mediaName = (String)imgAttributes.get(\"Name\");\n imgWidth = Integer.parseInt((String)imgAttributes.get(\"Width\"));\n imgHt = Integer.parseInt((String) imgAttributes.get(\"Height\"));\n imgUrl = (DataBuffer) imgAttributes.get(mediaName);\n \n \n // Get the key put it in ObjId and create the Details object\n if(imgUrl != \"\")\n {\n \n imgData = (DataBuffer) imgUrl;\n img = imgData.getArray();\n bmp = null;\n \n try\n {\n if(imgHt > 0 && imgWidth > 0)\n {\n bmp = Bitmap.createBitmapFromBytes(img ,0,img.length,1);\n //bmp = new Bitmap(Bitmap.getDefaultType(),imgWidth,imgHt,img);\n //bmp = new Bitmap(Bitmap.ROWWISE_16BIT_COLOR,imgWidth,imgHt,img);\n }\n else\n {\n bmp = Bitmap.createBitmapFromBytes(img ,0,img.length,1);\n }\n \n }\n catch(Exception ex)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems creating png object\"+ex.toString());\n }\n }\n \n ggd = this.new GraphicGuiDetails();\n ggd.Name = mediaName; // name[id]\n ggd.GraphicsObject = bmp; // obj\n //ggd.Id = String.valueOf(mediaCount); // order number of bmp image \n if(mediaName.equals(\"Icon\")||mediaName.equals(\"Background\"))\n {\n if(mediaName.equals(\"Icon\"))\n {\n ggd.Id = \"0\";\n }\n \n if(mediaName.equals(\"Background\"))\n {\n ggd.Id = \"1\";\n }\n }\n else\n {\n ggd.Id = getGuiId(mediaName); // order number of bmp image \n }\n \n ggd.height = imgHt;\n ggd.width = imgWidth;\n obj = (Object) ggd;\n \n if(seGraphics.size() == 0)\n {\n seGraphics.addElement(null); // blank Icon\n seGraphics.addElement(null); // Blank BackgroundImage\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n if(!seGraphics.contains(obj))\n {\n seGraphics.insertElementAt(obj,Integer.valueOf(ggd.Id).intValue());\n this.guiMap.add(new Integer(type), obj); // add to type map\n }\n }\n \n }\n }\n }\n\n \n }\n catch(Exception exc)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems updating guiMap:\"+exc.toString());\n }\n }\n }\n }\n }\n \n \n \n // translation stuff\n for(Enumeration keys = iar.getTranslationKeys(); keys.hasMoreElements();)\n {\n obj = (Object)keys.nextElement();\n \n if(obj instanceof Integer)\n {\n intKey = (Integer) obj;\n \n for(Enumeration enms = (Enumeration)iar.getTranslationData(intKey); enms.hasMoreElements();)\n {\n key = (String) enms.nextElement();\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] layout intKey is :->\"+intKey);\n //System.out.println(\"[INFO] layout key is : ->\"+key);\n }\n \n try\n {\n // switch?\n switch(intKey.intValue())\n {\n case islandSoftwareEngine.APP_GRAPHIC_WIDTH:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Width\n ggd.Width = key.substring(key.indexOf(\"_\")+1); \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n if(dld.Graphics!=null)\n {\n dld.SetGridLayoutGraphicWidth(ggd.Width, key);\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_WIDTH\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_HEIGHT:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd == null)\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiGraphicName((String)key); // name[id]\n ggd.Id = this.getGuiId((String)key);\n }\n \n // set the Height\n ggd.Height = key.substring(key.indexOf(\"_\")+1); \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n if(dld.Graphics !=null)\n {\n dld.SetGridLayoutGraphicHeight(ggd.Height, key);\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_HEIGHT\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_PLACEMENT:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)key);\n //key = (String)obj;\n GraphicGuiDetails g = null;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for \"+ggd.Name);\n //System.out.println(\"[INFO] key was actually for \"+key);\n }\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement==null)\n {\n // set the x:y\n ggd.Placement = key.substring(key.indexOf(\"_\")+1); \n }\n \n if(!key.substring(0,key.indexOf(\"_\")).equals(ggd.Name))\n {\n if(this.debug)\n {\n //System.out.println(\"[INFO] Since the names are different we change them\");\n }\n g = new GraphicGuiDetails();\n \n g.Name = key.substring(0,key.indexOf(\"_\"));\n g.Placement = key.substring(key.indexOf(\"_\")+1); \n g.PlacementSet = false;\n g.GraphicsObject = ggd.GraphicsObject;\n \n }\n \n if(!ggd.Placement.equals(key.substring(key.indexOf(\"_\")+1)))\n {\n if(g == null)\n {\n g = new GraphicGuiDetails();\n }\n \n g.Placement = key.substring(key.indexOf(\"_\")+1); \n g.PlacementSet = false;\n g.GraphicsObject = ggd.GraphicsObject;\n }\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.hasGraphics = true;\n \n if(g == null)\n {\n dld.AddGraphicGuiDetails(ggd);\n }\n else\n {\n dld.AddGraphicGuiDetails(g);\n }\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n if(g==null)\n {\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,g);\n }\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n if(g == null)\n {\n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,g);\n }\n }\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n \n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n ggd.Placement = this.getGuiPlacement((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for \"+ggd.Name);\n //System.out.println(\"[INFO] key was actually for \"+key);\n }\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n if(dld != null)\n {\n dld.hasGraphics = true;\n dld.AddGraphicGuiDetails(ggd);\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n \n }\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.parseInt(ggd.Id); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_PLACEMENT\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_PLACEMENTS:\n // find corresponding graphic and set RandomImage[1]_x(+):y(+) \n vIndx = this.guiGraphicExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement == null)\n {\n if((ggd.xPlacementIncrement ==0)||(ggd.yPlacementIncrement == 0))\n {\n ggd.Placement = key.substring(key.indexOf(\"_\")+1);\n ggd.SetPlacementIncrement();\n }\n } \n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n ggd.Placement = this.getGuiPlacements((String)key);\n ggd.SetPlacementIncrement();\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_PLACEMENTS\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_EVENT:\n vIndx = this.guiGraphicExists((String)key);\n //key = (String)key;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Event\n ggd.Event = key.substring(key.indexOf(\"_\")+1); \n ggd.AddEventToStack();\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.SetGridLayoutGraphicEvent(ggd.Event, key);\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiGraphicName((String)key); // name[id]\n ggd.Event = this.getGuiEvent((String)key);\n ggd.AddEventToStack();\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n if(dld != null)\n {\n dld.SetGridLayoutGraphicEvent(ggd.Event, key);\n }\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasGraphics = true;\n \n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_EVENT\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_LOCATION:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Event\n ggd.Location = key.substring(key.indexOf(\"_\")+1); \n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiGraphicName((String)key); // name[id]\n ggd.Location = this.getGuiLocation((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_LOCATION\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_COLOR:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Color\n ggd.SetColor(key.substring(key.indexOf(\"_\")+1)); \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.SetGridLayoutGraphicColor(ggd.ObjectColor, key);\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_COLOR\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_COLOR:\n // find corresponding graphic and set TextBox[1]_Color:White \n vIndx = this.guiComponentExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the color\n ggd.ObjectColor = getObjectColor(key); \n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n ggd.ObjectColor = this.getObjectColor((String)key);\n ggd.ComponentsObject = this.getGuiComponent((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_COLOR\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_PLACEMENT:\n try\n {\n // find corresponding graphic and set TextBox[1]_x:y \n vIndx = this.guiComponentExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement == null)\n {\n // set the x:y\n ggd.Placement = key.substring(key.indexOf(\"_\")+1);\n } \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.hasComponents = true;\n dld.AddGraphicGuiDetails(ggd);\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n gsd.Layout = dld;\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n gsd.Layout = dld;\n \n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n \n }\n }\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n ggd.Placement = this.getGuiPlacement((String)key);\n ggd.ComponentsObject = this.getGuiComponent((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n if(dld != null)\n {\n dld.hasComponents = true;\n dld.AddGraphicGuiDetails(ggd);\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n gsd.Layout = dld;\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n gsd.Layout = dld;\n \n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n \n }\n }\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_PLACEMENT\");\n }\n }\n catch(Exception e)\n {\n System.out.println(\"[ERROR] problems loading objects for APP_GUI_PLACEMENT:\"+e.toString());\n }\n break;\n case islandSoftwareEngine.APP_GUI_PLACEMENTS:\n // find corresponding graphic and set TextBox[1]_x(+):y(+) \n vIndx = this.guiComponentExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement == null)\n {\n if((ggd.xPlacementIncrement == 0)||(ggd.yPlacementIncrement == 0))\n {\n // set the x:y\n ggd.Placement = key.substring(key.indexOf(\"_\")+1);\n ggd.SetPlacementIncrement();\n }\n } \n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n ggd.Placement = this.getGuiPlacements((String)key);\n ggd.SetPlacementIncrement();\n ggd.ComponentsObject = this.getGuiComponent((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_PLACEMENTS\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_EVENT:\n //\n vIndx = this.guiComponentExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the EventName:Action\n ggd.Event = key.substring(key.indexOf(\"_\")+1); \n ggd.AddEventToStack(); \n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n ggd.Event = this.getGuiEvent((String)key);\n ggd.AddEventToStack();\n ggd.ComponentsObject = this.getGuiComponent((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_EVENT\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_HEIGHT:\n //\n vIndx = this.guiComponentExists((String)key);\n //key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayHeight\"))\n {\n ggd.height = this.displayHeight; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutHeight\"))\n {\n ggd.Height = \"LayoutHeight\"; \n }\n } \n else\n {\n ggd.Height = key.substring(key.indexOf(\"_\")+1);\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n }\n }\n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentHeight(ggd.Height, key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayHeight\"))\n {\n ggd.height = this.displayHeight; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutHeight\"))\n {\n ggd.Height = \"LayoutHeight\"; \n }\n } \n else\n {\n ggd.Height = key.substring(key.indexOf(\"_\")+1);\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n }\n } \n \n ggd.ComponentsObject = this.getGuiComponent((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentHeight(ggd.Height, key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n \n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_HEIGHT\");\n }\n break;\n \n case islandSoftwareEngine.APP_GUI_WIDTH:\n //\n vIndx = this.guiComponentExists((String)key);\n //key = (String)obj;\n dld = null;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayWidth\"))\n {\n ggd.width = this.displayWidth; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutWidth\"))\n {\n ggd.Width = \"LayoutWidth\"; \n }\n } \n else\n {\n ggd.Width = ggd.Width = key.substring(key.indexOf(\"_\")+1);\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n } \n } \n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentWidth(ggd.Width,key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)key); // name[id]\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n \n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayWidth\"))\n {\n ggd.width = this.displayWidth; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutWidth\"))\n {\n ggd.Width = \"LayoutWidth\"; \n }\n }\n else\n {\n ggd.Width = ggd.Width = key.substring(key.indexOf(\"_\")+1);\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n }\n } \n \n ggd.ComponentsObject = this.getGuiComponent((String)key);\n ggd.Id = this.getGuiId((String)key);\n obj = (Object) ggd;\n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentWidth(ggd.Width,key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_WIDTH\");\n }\n break;\n }\n }\n catch(Exception exc)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems updating guiMap with translation file items:\"+exc.toString());\n }\n }\n }\n }\n }\n }\n }\n catch(Exception ex)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems updating guiMap with resource file items:\"+ex.toString());\n }\n }\n \n }\n else\n {\n try\n {\n // loop through these elements for dispersion\n for (Enumeration elementContainer = obs; elementContainer.hasMoreElements();) \n {\n obj = (Object) elementContainer.nextElement();\n \n \n // switch?\n switch(elementType)\n {\n case islandSoftwareEngine.APP_ICON_GRAPHIC:\n \n // create a bitmap from data\n imgData = (DataBuffer) obj;\n bmp = Bitmap.createBitmapFromBytes(imgData.getArray() ,0,imgData.getLength(),1);\n obj = (Object) bmp;\n ggd = this.new GraphicGuiDetails();\n ggd.Name = \"Icon_Image\"; // name[id]\n ggd.GraphicsObject = bmp; // obj\n ggd.Id = \"0\"; // first and probably only Icon image\n obj = (Object) ggd;\n //seGraphics.addElement(obj); // add to vector\n\n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(obj,0);\n \n this._hasGraphics = true;\n \n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_ICON_GRAPHIC\");\n }\n \n // fill what details we know\n \n break;\n case islandSoftwareEngine.APP_BACKGROUND_GRAPHIC:\n \n // create a bitmap from data\n imgData = (DataBuffer) obj;\n bmp = Bitmap.createBitmapFromBytes(imgData.getArray() ,0,imgData.getLength(),1);\n obj = (Object) bmp;\n ggd = this.new GraphicGuiDetails();\n ggd.Name = \"Background_Image\"; // name[id]\n ggd.GraphicsObject = bmp; // obj\n ggd.Id = \"1\"; // first (and probably only) background image\n obj = (Object) ggd;\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(obj,1); // add to vector\n this._hasGraphics = true;\n \n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_BACKGROUND_GRAPHIC\");\n }\n \n break;\n case islandSoftwareEngine.APP_BMP_GRAPHIC:\n // \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_BMP_GRAPHIC\");\n }\n break;\n case islandSoftwareEngine.APP_PNG_GRAPHIC:\n // \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_PNG_GRAPHIC\");\n }\n break;\n case islandSoftwareEngine.APP_TEXT_GRAPHIC:\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_TEXT_GRAPHIC\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_WIDTH:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd == null)\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiGraphicName((String)key); // name[id]\n ggd.Id = this.getGuiId((String)key);\n }\n \n // set the Width\n ggd.Width = key.substring(key.indexOf(\"_\")+1); \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n if(dld.Graphics != null)\n {\n dld.SetGridLayoutGraphicWidth(ggd.Width, key);\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_WIDTH\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_HEIGHT:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Height\n ggd.Height = key.substring(key.indexOf(\"_\")+1); \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n if(dld.Graphics!=null)\n {\n dld.SetGridLayoutGraphicHeight(ggd.Height, key);\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_HEIGHT\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_PLACEMENT:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n GraphicGuiDetails g = null;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for \"+ggd.Name);\n //System.out.println(\"[INFO] key was actually for \"+key);\n }\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement==null)\n {\n // set the x:y\n ggd.Placement = key.substring(key.indexOf(\"_\")+1); \n }\n \n if(!key.substring(0,key.indexOf(\"_\")).equals(ggd.Name))\n {\n if(this.debug)\n {\n System.out.println(\"[INFO] Since the names are different we change them\");\n }\n g = new GraphicGuiDetails();\n \n g.Name = key.substring(0,key.indexOf(\"_\"));\n g.Placement = key.substring(key.indexOf(\"_\")+1); \n g.PlacementSet = false;\n g.GraphicsObject = ggd.GraphicsObject;\n \n }\n \n if(!ggd.Placement.equals(key.substring(key.indexOf(\"_\")+1)))\n {\n if(g == null)\n {\n g = new GraphicGuiDetails();\n }\n \n g.Placement = key.substring(key.indexOf(\"_\")+1); \n g.PlacementSet = false;\n g.GraphicsObject = ggd.GraphicsObject;\n }\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.hasGraphics = true;\n \n if(g == null)\n {\n dld.AddGraphicGuiDetails(ggd);\n }\n else\n {\n dld.AddGraphicGuiDetails(g);\n }\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n if(g==null)\n {\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,g);\n }\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n if(g == null)\n {\n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,g);\n }\n }\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n \n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n ggd.Placement = this.getGuiPlacement((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for \"+ggd.Name);\n //System.out.println(\"[INFO] key was actually for \"+key);\n }\n\n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n if(dld != null)\n {\n dld.hasGraphics = true;\n dld.AddGraphicGuiDetails(ggd);\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n \n }\n }\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.parseInt(ggd.Id); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_PLACEMENT\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_PLACEMENTS:\n // find corresponding graphic and set RandomImage[1]_x(+):y(+) \n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement == null)\n {\n if((ggd.xPlacementIncrement ==0)||(ggd.yPlacementIncrement == 0))\n {\n ggd.Placement = key.substring(key.indexOf(\"_\")+1);\n ggd.SetPlacementIncrement();\n }\n } \n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n ggd.Placement = this.getGuiPlacements((String)obj);\n ggd.SetPlacementIncrement();\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_PLACEMENTS\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_EVENT:\n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Event\n ggd.Event = key.substring(key.indexOf(\"_\")+1); \n ggd.AddEventToStack();\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.SetGridLayoutGraphicEvent(ggd.Event, key);\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiGraphicName((String)obj); // name[id]\n ggd.Event = this.getGuiEvent((String)obj);\n ggd.AddEventToStack();\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n if(dld != null)\n {\n dld.SetGridLayoutGraphicEvent(ggd.Event, key);\n }\n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasGraphics = true;\n \n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_EVENT\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_LOCATION:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Event\n ggd.Location = key.substring(key.indexOf(\"_\")+1); \n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiGraphicName((String)obj); // name[id]\n ggd.Location = this.getGuiLocation((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seGraphics.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_LOCATION\");\n }\n break;\n case islandSoftwareEngine.APP_GRAPHIC_COLOR:\n // find corresponding graphic and set BackgroundImage[1]_x:y \n vIndx = this.guiGraphicExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seGraphics.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the Color\n ggd.SetColor(key.substring(key.indexOf(\"_\")+1)); \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.SetGridLayoutGraphicColor(ggd.ObjectColor, key);\n }\n \n if(seGraphics.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seGraphics.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seGraphics.addElement(null);\n \n if(seGraphics.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seGraphics.setElementAt(ggd,vIndx);\n }\n \n this._hasGraphics = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GRAPHIC_COLOR\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_COLOR:\n // find corresponding graphic and set TextBox[1]_Color:White \n vIndx = this.guiComponentExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the color\n ggd.ObjectColor = getObjectColor(key); \n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n ggd.ObjectColor = this.getObjectColor((String)obj);\n ggd.ComponentsObject = this.getGuiComponent((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_COLOR\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_PLACEMENT:\n try\n {\n // find corresponding graphic and set TextBox[1]_x:y \n vIndx = this.guiComponentExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement == null)\n {\n // set the x:y\n ggd.Placement = key.substring(key.indexOf(\"_\")+1);\n } \n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n }\n \n if(dld != null)\n {\n dld.hasComponents = true;\n dld.AddGraphicGuiDetails(ggd);\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n gsd.Layout = dld;\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n gsd.Layout = dld;\n \n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n \n }\n }\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n ggd.Placement = this.getGuiPlacement((String)obj);\n ggd.ComponentsObject = this.getGuiComponent((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n \n if(dld != null)\n {\n dld.hasComponents = true;\n dld.AddGraphicGuiDetails(ggd);\n \n if(!dld.ScreenName.equals(\"\"))\n {\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n gsd.Layout = dld;\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n }\n else\n {\n if(!dld.Name.equals(\"\"))\n {\n // set Screenname\n dld.ScreenName = dld.Name.substring(0,dld.Name.indexOf(\"[\"));\n \n // update Layout vector\n seLayouts.setElementAt(dld, dld.indx);\n \n // get Grid\n gsd = (GridScreenDetails) seGrids.elementAt(Integer.parseInt(this.getGridId(dld.Name)));\n \n gsd.Layout = dld;\n \n // update the grid\n gsd.SetScreenLayoutGgd(dld.ScreenName,dld.Name,ggd);\n \n }\n }\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_PLACEMENT\");\n }\n }\n catch(Exception e)\n {\n System.out.println(\"[ERROR] problems loading objects for APP_GUI_PLACEMENT:\"+e.toString());\n }\n break;\n case islandSoftwareEngine.APP_GUI_PLACEMENTS:\n // find corresponding graphic and set TextBox[1]_x(+):y(+) \n vIndx = this.guiComponentExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(ggd.Placement == null)\n {\n if((ggd.xPlacementIncrement == 0)||(ggd.yPlacementIncrement == 0))\n {\n // set the x:y\n ggd.Placement = key.substring(key.indexOf(\"_\")+1);\n ggd.SetPlacementIncrement();\n }\n } \n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n ggd.Placement = this.getGuiPlacements((String)obj);\n ggd.SetPlacementIncrement();\n ggd.ComponentsObject = this.getGuiComponent((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_PLACEMENTS\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_EVENT:\n //\n vIndx = this.guiComponentExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n // set the EventName:Action\n ggd.Event = key.substring(key.indexOf(\"_\")+1); \n ggd.AddEventToStack(); \n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n ggd.Event = this.getGuiEvent((String)obj);\n ggd.AddEventToStack();\n ggd.ComponentsObject = this.getGuiComponent((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n \n if(this.debug)\n {\n //System.out.println(\"[INFO] creating object for event:\"+ggd.Event);\n }\n\n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_EVENT\");\n }\n break;\n case islandSoftwareEngine.APP_GUI_HEIGHT:\n //\n vIndx = this.guiComponentExists((String)obj);\n key = (String)obj;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayHeight\"))\n {\n ggd.height = this.displayHeight; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutHeight\"))\n {\n ggd.Height = \"LayoutHeight\"; \n }\n } \n else\n {\n ggd.Height = key.substring(key.indexOf(\"_\")+1);\n \n // see if this is tied to a layout\n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n }\n }\n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentHeight(ggd.Height, key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayHeight\"))\n {\n ggd.height = this.displayHeight; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutHeight\"))\n {\n ggd.Height = \"LayoutHeight\"; \n }\n } \n else\n {\n ggd.Height = key.substring(key.indexOf(\"_\")+1);\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n }\n } \n \n ggd.ComponentsObject = this.getGuiComponent((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentHeight(ggd.Height, key);\n }\n\n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n \n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_HEIGHT\");\n }\n break;\n \n case islandSoftwareEngine.APP_GUI_WIDTH:\n //\n vIndx = this.guiComponentExists((String)obj);\n key = (String)obj;\n dld = null;\n \n // if it already exists\n if(vIndx>=0)\n {\n ggd = (GraphicGuiDetails) seComponents.elementAt(vIndx);\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayWidth\"))\n {\n ggd.width = this.displayWidth; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutWidth\"))\n {\n ggd.Width = \"LayoutWidth\"; \n }\n } \n else\n {\n ggd.Width = ggd.Width = key.substring(key.indexOf(\"_\")+1);\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n } \n } \n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentWidth(ggd.Width,key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n // update the object\n seComponents.setElementAt(ggd,vIndx);\n }\n else\n {\n ggd = this.new GraphicGuiDetails();\n ggd.Name = this.getGuiComponentName((String)obj); // name[id]\n dld = null;\n \n // split value by _\n if(key.indexOf(\"_\")>=0)\n {\n \n if(key.indexOf(\"Set\")<0)\n {\n // set the height:value\n if(key.substring(key.indexOf(\":\")+1).equals(\"DisplayWidth\"))\n {\n ggd.width = this.displayWidth; \n } \n \n if(key.substring(key.indexOf(\":\")+1).equals(\"LayoutWidth\"))\n {\n ggd.Width = \"LayoutWidth\"; \n }\n }\n else\n {\n ggd.Width = ggd.Width = key.substring(key.indexOf(\"_\")+1);\n \n dld = (DisplayLayoutDetails)seLayouts.elementAt(Integer.parseInt(this.getGuiLayoutId(key)));\n }\n } \n \n ggd.ComponentsObject = this.getGuiComponent((String)obj);\n ggd.Id = this.getGuiId((String)obj);\n obj = (Object) ggd;\n \n if(dld!=null)\n {\n dld.SetGridLayoutComponentWidth(ggd.Width,key);\n }\n \n if(seComponents.size()<=Integer.valueOf(ggd.Id).intValue())\n {\n // backfill with nulls\n for(int a=seComponents.size(); a<Integer.valueOf(ggd.Id).intValue(); a++)\n {\n seComponents.addElement(null);\n \n if(seComponents.size()>Integer.valueOf(ggd.Id).intValue())\n {\n break;\n }\n }\n }\n \n seComponents.insertElementAt(ggd,Integer.valueOf(ggd.Id).intValue());\n }\n this._hasComponents = true;\n if(this.debug)\n {\n System.out.println(\"[INFO] element is of type APP_GUI_WIDTH\");\n }\n break;\n }\n \n // save to gui map as graphic placement & event\n this.guiMap.add(new Integer(elementType),obj);\n \n }\n }\n catch(Exception e)\n {\n if(this.debug)\n {\n System.out.println(\"[ERROR] problems updating guiMap with graphics and components:\"+e.toString());\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "3753b5844fc28c87e7ddd65d5d9eb68d", "score": "0.5326676", "text": "public void setGraphics(Graphics2D graphics) {\r\n\t\tthis.graphics = graphics;\r\n\t}", "title": "" }, { "docid": "d0b30fbc986a9187f6c173c6db836e41", "score": "0.5310308", "text": "public void setGraphicsStates( Map<String,PDExtendedGraphicsState> states )\n {\n Iterator<String> iter = states.keySet().iterator();\n COSDictionary dic = new COSDictionary();\n while( iter.hasNext() )\n {\n String name = (String)iter.next();\n PDExtendedGraphicsState state = states.get( name );\n dic.setItem( COSName.getPDFName( name ), state.getCOSObject() );\n }\n resources.setItem( COSName.EXT_G_STATE, dic );\n }", "title": "" }, { "docid": "bf3a0300223c1596dc132a976df738e5", "score": "0.5308427", "text": "public void setIcons(){\r\n this.icons = getIcons();\r\n }", "title": "" }, { "docid": "7ee4c4b99ced88be0060f9fe137057b0", "score": "0.53057766", "text": "private void setsInit(){\n\t\tint h = getHeight() - ((getHeight()/10 < cpHeight) ? cpHeight : getHeight()/10);\r\n\t\t//creates mandlebrot set viewer with slightly non-standard sizing, as having realMAx at 1 looks better\r\n\t\tmandelbrotViewer = new ComplexSetViewerPanel(new MandelbrotSet(100), -2, 1, -1.6, 1.6);\r\n\t\tmandelbrotViewer.setBounds(0, 0, getWidth()/2, h);\r\n\t\t\r\n\t\t//This listener updates the julia set viewer as the mouse moves, just switch 'mouseMoved' for 'mouseClicked'\r\n\t\t//and change the method to 'addMouseListener' to make it work on click instead\r\n\t\tmandelbrotViewer.addMouseMotionListener(new MouseAdapter() {\r\n\t\t\t//TODO:make this run in a different thread\r\n\t\t\tpublic void mouseMoved(MouseEvent e){\r\n\t\t\t\t//update the current point\r\n\t\t\t\tuserSelectedPoint = mandelbrotViewer.getComplexAtPoint(e.getPoint());\r\n\t\t\t\tuserPointLbl.setText(userSelectedPoint.toString());\r\n\t\t\t\t//update the julia set\r\n\t\t\t\tjuliaViewer.updateSet(new JuliaSet(200, userSelectedPoint));\r\n\t\t\t}\r\n\t\t});\t\r\n\t\tmainPanel.add(mandelbrotViewer);\r\n\t\t\r\n\t\t//Set initial values for selected point and julia set\r\n\t\tuserSelectedPoint = new ComplexNumber(0, 0);\r\n\t\tjuliaViewer = new ComplexSetViewerPanel(new JuliaSet(100, userSelectedPoint));\r\n\t\tjuliaViewer.setBounds(getWidth()/2, 0, getWidth()/2, mandelbrotViewer.getHeight());\r\n\t\tmainPanel.add(juliaViewer);\r\n\t}", "title": "" }, { "docid": "692076f656bf74423cb41e22b32723f3", "score": "0.5303177", "text": "public void setSlideAtomsSets( SlideAtomsSet[] sas ) { slideAtomsSets = sas; }", "title": "" }, { "docid": "0abcd2705bba6d6af1c2b65e4a0a4700", "score": "0.5300602", "text": "public void setSons(ArrayList<Vertex> sons) {\n\t\tthis.sons = sons;\n\t}", "title": "" }, { "docid": "1c8677da02bf7c232a73c1a03ac4ca77", "score": "0.5299293", "text": "void setShapeType(Shapes s);", "title": "" }, { "docid": "8b30a035056fe8a7b2d1289441accf52", "score": "0.52750784", "text": "private void setAll() {\n setFrame();\n setStat();\n }", "title": "" }, { "docid": "e09c53eed07373e784c7958c8d9b744a", "score": "0.52506673", "text": "private void setImagens() {\n\t\tsprite = new ArrayList<>();\n\n\t\tsprite.add(new ImageIcon(ImageTools.ReadImage(ImageTools.PIGCESTA1,\n\t\t\t\tthis)));\n\t\tsprite.add(new ImageIcon(ImageTools.ReadImage(ImageTools.PIGCESTA2,\n\t\t\t\tthis)));\n\t\tsprite.add(new ImageIcon(ImageTools.ReadImage(ImageTools.PIGCESTA3,\n\t\t\t\tthis)));\n\t\tsprite.add(new ImageIcon(ImageTools.ReadImage(ImageTools.PIGCESTA4,\n\t\t\t\tthis)));\n\t\tsprite.add(new ImageIcon(ImageTools.ReadImage(ImageTools.PIGCESTA5,\n\t\t\t\tthis)));\n\t\tsprite.add(new ImageIcon(ImageTools.ReadImage(ImageTools.PIGCESTA6,\n\t\t\t\tthis)));\n\n\t\tsetSprite(ImageTools.PIGCESTA0, 1);\n\n\t\tFont f = new Font(\"impact\", Font.BOLD, 45);\n\t\tlblTotalCesta = new JLabel();\n\t\tlblTotalCesta.setFont(f);\n\t\tlblTotalCesta.setText(\"0\");\n\t\tlblTotalCesta.setSize(lblTotalCesta.getPreferredSize());\n\t\tlblTotalCesta.setLocation(43 + (107 - lblTotalCesta.getWidth()) / 2,\n\t\t\t\tgetHeight() - lblTotalCesta.getHeight());\n\t\t\n\t\tadd(lblTotalCesta);\n\t}", "title": "" }, { "docid": "4736357f8396c7238eb82621b5ffdbf8", "score": "0.5248663", "text": "public GhostSet setGhosts(CopyOnWriteArrayList<Ghost> ghosts) {\n\t\tthis.ghosts = ghosts;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "6e646a2c4620e852085fc0da625248b7", "score": "0.52474403", "text": "public void setGsAndOil(boolean gsAndOil) {\n\t\tthis.gsAndOil = gsAndOil;\n\t}", "title": "" }, { "docid": "8efb91502fc3c7e7cbc73bec69e7068e", "score": "0.524441", "text": "public void setGsmc(Object gsmc) {\n this.gsmc = gsmc;\n }", "title": "" }, { "docid": "a2a497c064cff18f298c5f052201fac5", "score": "0.5241701", "text": "private void addSomeObjects() {\n\n\t\taddWorldObject(new Colony(GroupMembership.PLAYER,\n\t\t\t\tnew CartesianCoordinate(200, 100)));\n\t\taddWorldObject(new ResourceSpawner(new CartesianCoordinate(100, 200),\n\t\t\t\t100));\n\t\taddWorldObject(new ResourceSpawner(new CartesianCoordinate(200, 200),\n\t\t\t\t100));\n\n\t\taddWorldObject(new Colony(GroupMembership.FOE1,\n\t\t\t\tnew CartesianCoordinate(900, 600)));\n\t\taddWorldObject(new ResourceSpawner(new CartesianCoordinate(900, 500),\n\t\t\t\t100));\n\t\taddWorldObject(new ResourceSpawner(new CartesianCoordinate(800, 500),\n\t\t\t\t100));\n\t}", "title": "" }, { "docid": "8128aa80e656b7a35bc4dce0562d6b1e", "score": "0.52337307", "text": "public void init()\n\t{\n\t\t// Add Objects to ImageManager\n\t\t// MISC\n\t\timgmgr.add(\"grass\", ObjectCategory.misc, \"res/grass.png\");\n\t\timgmgr.add(\"wall\", ObjectCategory.misc, \"res/wall.png\");\n\t\timgmgr.add(\"0\", ObjectCategory.misc, \"res/tp.png\");\n\t\timgmgr.add(\"1\", ObjectCategory.misc, \"res/goal.png\");\n\t\timgmgr.add(\"2\", ObjectCategory.misc, \"res/trap.png\");\n\t\timgmgr.add(\"7\", ObjectCategory.misc, \"res/tp2.png\");\n\t\t\n\t\t// ENEMIES\n\t\timgmgr.add(\"3\", ObjectCategory.enemies, \"res/enemy1.png\");\n\t\timgmgr.add(\"4\", ObjectCategory.enemies, \"res/enemy1.png\");\n\t\t\n\t\t// NPCs\n\t\timgmgr.add(\"5\", ObjectCategory.npcs, \"res/shop.png\");\n\t\timgmgr.add(\"6\", ObjectCategory.npcs, \"res/shop.png\");\n\t\timgmgr.add(\"8\", ObjectCategory.npcs, \"res/shop.png\");\n\t\t\n\t\t// Items\n\t\timgmgr.add(\"100\", ObjectCategory.items, \"res/icons/smallhealpotion.png\");\n\t\timgmgr.add(\"101\", ObjectCategory.items, \"res/icons/smallmanapotion.png\");\n\t\timgmgr.add(\"102\", ObjectCategory.items, \"res/icons/leatherarmor.png\");\n\t\timgmgr.add(\"103\", ObjectCategory.items, \"res/icons/leathergloves.png\");\n\t\timgmgr.add(\"104\", ObjectCategory.items, \"res/icons/leatherboots.png\");\n\t\timgmgr.add(\"105\", ObjectCategory.items, \"res/icons/rustyhelmet.png\");\n\t\timgmgr.add(\"106\", ObjectCategory.items, \"res/icons/ring1.png\");\n\t\timgmgr.add(\"107\", ObjectCategory.items, \"res/icons/sword.png\");\n\t\timgmgr.add(\"108\", ObjectCategory.items, \"res/icons/staff.png\");\n\t\t\n\t\t\n\t\t// Create toolpages\n\t\tMEToolpage newPage;\n\t\tfor(int i=0; i<5; i++)\n\t\t{\n\t\t\t// 0 = Category List\n\t\t\t// 1-4 = Categories\n\t\t\tnewPage = new METoolpage(me, this);\n\t\t\ttoolpages.add(newPage);\n\t\t\tthis.add(newPage);\n\t\t}\n\t\ttoolpages.get(0).setVisible(true);\n\t\tcurPage=0;\n\n\t\t\n\t\tJLabel tmp;\n\t\t// Create category page\n\t\t// MISC Page\n\t\ttmp = new JLabel(\"MISC\");\n\t\ttmp.setSize(me.TILE_SIZE, me.TILE_SIZE);\n\t\ttmp.setFont(new Font(tmp.getFont().getName(), tmp.getFont().getStyle(), 11));\n\t\ttmp.setName(\"cV1\");\n\t\ttoolpages.get(0).addTool(tmp);\n\t\t\n\t\t// ENEMIES Page\n\t\ttmp = new JLabel(\"ENEMIES\");\n\t\ttmp.setSize(me.TILE_SIZE, me.TILE_SIZE);\n\t\ttmp.setFont(new Font(tmp.getFont().getName(), tmp.getFont().getStyle(), 6));\n\t\ttmp.setName(\"cV2\");\n\t\ttoolpages.get(0).addTool(tmp);\n\t\t\n\t\t// NPCs Page\n\t\ttmp = new JLabel(\"NPCs\");\n\t\ttmp.setSize(me.TILE_SIZE, me.TILE_SIZE);\n\t\ttmp.setFont(new Font(tmp.getFont().getName(), tmp.getFont().getStyle(), 10));\n\t\ttmp.setName(\"cV3\");\n\t\ttoolpages.get(0).addTool(tmp);\n\t\t\n\t\t// ITEMS Page\n\t\ttmp = new JLabel(\"ITEMS\");\n\t\ttmp.setSize(me.TILE_SIZE, me.TILE_SIZE);\n\t\ttmp.setFont(new Font(tmp.getFont().getName(), tmp.getFont().getStyle(), 10));\n\t\ttmp.setName(\"cV4\");\n\t\ttoolpages.get(0).addTool(tmp);\n\t\t\n\t\ttoolpages.get(0).setCurrentSelection(0);\n\t\t\n\t\t// Put a BACK Button on every tool page\n\t\tfor(int i=1; i<5; i++)\n\t\t{\n\t\t\ttmp = new JLabel(\"BACK\");\n\t\t\ttmp.setSize(me.TILE_SIZE, me.TILE_SIZE);\n\t\t\ttmp.setFont(new Font(tmp.getFont().getName(), tmp.getFont().getStyle(), 10));\n\t\t\ttmp.setName(\"cV0\");\n\t\t\ttoolpages.get(i).addTool(tmp);\n\t\t}\n\t\t\n\t\t// Put tools on toolpages\n\t\tfor(int i=0; i<imgmgr.getSize(); i++)\n\t\t{\n\t\t\ttmp = new JLabel(new ImageIcon(imgmgr.getImage(i)));\n\t\t\ttmp.setSize(me.TILE_SIZE, me.TILE_SIZE);\n\t\t\t\n\t\t\tString id = imgmgr.getID(i);\n\t\t\ttmp.setName(id);\n\t\t\t\n\t\t\ttoolpages.get(imgmgr.getCategory(id)+1).addTool(tmp);\n\t\t}\n\t}", "title": "" }, { "docid": "8c9668d2eafb89d72fcff80af1ff982e", "score": "0.5229734", "text": "private void init() {\n\t\tobjects2 = new ArrayList<>();\r\n\t}", "title": "" }, { "docid": "aca1fd95e4b9772cfd2281b11c052b02", "score": "0.52277327", "text": "private void setPlatforms(EdaContext xContext)\n throws IcofException {\n\n\tlogInfo(xContext, \"\\nDetermining Platforms ...\", true);\n\n\t// Look up the supported platforms for this tool kit to determine\n\t// .ship-<platform> directories\n\t\n\tPlatformShow allPlats = new PlatformShow(xContext, getToolKit());\n\tallPlats.setPlatforms(xContext);\n\tfor (Platform_Db plat : allPlats.getPlatforms()) {\n\t getPlatforms().add(plat);\n\t logInfo(xContext, \" Ship platform: \" + plat.getShippingName(), \n\t getVerboseInd(xContext));\n\t}\n\t\n }", "title": "" }, { "docid": "451124e9dbd4d0922f5715a1bfe2755e", "score": "0.52263653", "text": "public void initializeCollections(){\n coastlines = new ArrayList<>();\n memberReferences = new ArrayList<>();\n addressList = new ArrayList<>();\n wayCoords = new ArrayList<>();\n node_longMap = new LongHashMap<OSMNode>();\n keyValue_map = new HashMap<>();\n wayId_longMap = new LongHashMap<Path2D>();\n vertices = new Vertices();\n graph = new Graph();\n }", "title": "" }, { "docid": "ef8466b72c2c506d840ca3a845599288", "score": "0.5221281", "text": "public void setEntireGenome(Genome gChild) {\n for (int i = 0; i < numofGenes; i++) {\n this.setGenome(i, gChild.getGenome(i));\n }\n //set the fitness\n //this.setFitness();\n\n }", "title": "" }, { "docid": "f92a020bf79dcfebbc5e9c741f2d5b71", "score": "0.5211178", "text": "public void setGraphic(Image img) {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "17f9f4b90e56f1fa4c953bb35ee03f63", "score": "0.52110726", "text": "private void drawGameObjects(Graphics g){\n \n for (GameObj obj: gameObjectList){\n obj.draw(g);\n }\n }", "title": "" }, { "docid": "de21ad6f02d9ba40bd879837a812e91f", "score": "0.5210054", "text": "public void setRelatedObjects(SET<IfcObjectDefinition> RelatedObjects)\n\t{\n\t\tsynchronizeInversesRemoveRelatedObjects(this.RelatedObjects);\n\t\tthis.RelatedObjects = RelatedObjects;\n\t\tsynchronizeInversesAddRelatedObjects(this.RelatedObjects);\n\t\tfireChangeEvent();\n\t}", "title": "" }, { "docid": "5b6a5dcba946cc715bec4a8e927364f8", "score": "0.5203579", "text": "private void setInitialFeatures() {\n vertices = new Point3d[0];\n colors = new Color3f[0];\n indices = new int[0];\n\n setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);\n setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);\n setCapability(Shape3D.ALLOW_APPEARANCE_READ);\n }", "title": "" }, { "docid": "5b701a81cea99ca613c4d35dbb155e2a", "score": "0.5195453", "text": "public final void setGsaIntersections(FeatureSet gsaIntersections) {\n this.gsaIntersections = gsaIntersections;\n }", "title": "" }, { "docid": "35f43626e71573d002222df14ccccfbb", "score": "0.5191117", "text": "public void setWeather(){\n for (place:neighborhoods) {\n setWeather();\n\n }\n }", "title": "" }, { "docid": "bc760450b3d107e949e4a7791cd6c52a", "score": "0.5187351", "text": "private void writeClassesSet(Iterable<GraphClass> set) throws SAXException{\n for (GraphClass gc : set){\n \tif(gc.getID()==null){\n \t\tSystem.out.println(\"missing ID at: \" +gc);//intID\n \t\tgc.setID(Integer.MAX_VALUE);//intID\n \t\t//IDGenerator temp = new IDGenerator(1, cachefile) //is AUTO !\n \t\t//wie soll ich fehlende ID fixen? ... IDGenerator übergeben?\n \t}\n writer.dataElement(Tags.GCREF, gc.getID().toString());//intID\n }\n }", "title": "" }, { "docid": "68147c1e5fde600117145bf145b33a1e", "score": "0.5180013", "text": "@Override\n public void setupConvenienceObjects() {\n\n // setup ObjectCodeGlobal convenience objects,\n // make sure all possible sub-objects are populated\n objectCodeGlobal = (ObjectCodeGlobal) super.getNewBo();\n\n // forces refreshes on all the sub-objects in the lists\n for (ObjectCodeGlobalDetail objectCodeGlobalDetail : objectCodeGlobal.getObjectCodeGlobalDetails()) {\n objectCodeGlobalDetail.refreshNonUpdateableReferences();\n }\n }", "title": "" }, { "docid": "58963ecd8a44be30017eba1baf9fae60", "score": "0.51760894", "text": "private void setGearSkills(Gear gear) {\n\t\t\n\t}", "title": "" }, { "docid": "ebfb622dbb6be70d7b607d77840923dd", "score": "0.5175415", "text": "private void inicializaGrafo(){\n Iterator<String> llaves = diccionario.iteradorLlaves();\n while(llaves.hasNext()) {\n grafica.agrega(llaves.next());\n }\n\n }", "title": "" }, { "docid": "a9c3aa1d9a8cf981bf7fb38340f52d9e", "score": "0.51721203", "text": "private void initImages() {\r\n\t\tbgImage = createImage(\"frogboard.png\");\r\n\r\n\t\tImage[] frog = new Image[4];\r\n\t\tfrog[0] = createImage(\"frogU.png\");\r\n\t\tfrog[1] = createImage(\"frogD.png\");\r\n\t\tfrog[2] = createImage(\"frogL.png\");\r\n\t\tfrog[3] = createImage(\"frogR.png\");\r\n\t\tplayer.newFrog(frog);\r\n\r\n\t\tinitCars();\r\n\r\n\t}", "title": "" }, { "docid": "e5fe7449951b0dc103084aa49b7ea919", "score": "0.5168093", "text": "@Override\n public void init(graph g) {\n this.g=g;\n }", "title": "" }, { "docid": "8d9a9d8cc4ab12fd6d8128a998faead9", "score": "0.5161816", "text": "public void setGisAttributeMappings(GISAttributeMappings gisAttributeMappings)\r\n\t{\r\n\t\tthis.gisAttributeMappings = gisAttributeMappings;\r\n\t}", "title": "" }, { "docid": "642d79ce9edd6603a9a9841b16ce82f7", "score": "0.5159934", "text": "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n inputValidation = new InputValidation(activity);\n infoMed = new InfoMed( );\n\n }", "title": "" }, { "docid": "22a2b517f4ce556d30da5ee7d24facb1", "score": "0.5144187", "text": "private void setPictures()\n {\n ImageView image = null;\n\n for(int i = 1; i < clothes.size(); i++)\n {\n Log.v(\"tester\", \"Size: \" + clothes.size());\n Log.v(\"tester\", \"i: \" + i);\n image = (ImageView)adapter.getView(i, image, gridView);\n }\n }", "title": "" }, { "docid": "672c8b097fc941275fdb697b676c0a2e", "score": "0.51430637", "text": "private void processObjects() {\r\n square.updateWorld();\r\n hex.updateWorld();\r\n triangle.updateWorld();\r\n }", "title": "" }, { "docid": "d0d01e9bc337c9ea1db63c7f494efe08", "score": "0.51309866", "text": "@Override\n\tpublic void setG(int g) {\n\t\t\n\t}", "title": "" }, { "docid": "3110017d753ae78b07db3451fe5d80e6", "score": "0.5130461", "text": "void setGraph(IGraph in);", "title": "" }, { "docid": "7ee1605a592945ee7a7da825521b0edd", "score": "0.5129909", "text": "public ISearch setScope(IIID classiid, IIID objectiid) throws OculusException;", "title": "" }, { "docid": "fd2d4c5cc629d85af5f99c7cf8d9a7f1", "score": "0.5129877", "text": "public SvgConstructor(IGame game) {\r\n\t\tthis.universe = new SVGUniverse();\r\n\t\tthis.game = game;\r\n\t\tresetSvg();\r\n\t}", "title": "" }, { "docid": "b5abfaf01f38cc6c6ff28bbb5e60ea4f", "score": "0.5124329", "text": "public void setGISRelatedTableModel(GISRelatedTableModel gisRelatedTableModel)\r\n\t{\r\n\t\tthis.gisRelatedTableModel = gisRelatedTableModel;\r\n\t}", "title": "" }, { "docid": "6e8ebc3457f96ad501ff7131e63d7f16", "score": "0.5121832", "text": "public void setGrid(GridMap grid) {\n\t\tthis.grid = grid;\n\t\tgridLayer.setGrid(grid);\n\t\totherItemsLayer.setGrid(grid);\n\t}", "title": "" }, { "docid": "cbbc3a25958e737a9a5084eda8eafa52", "score": "0.5112311", "text": "public void setGInstance(java.lang.Object param0) {\n this.gInstance = param0;\n }", "title": "" }, { "docid": "50f9049a5b3c190d2d22a6f5de9ee21a", "score": "0.51067996", "text": "public void setup()\n\t\t{\n\t\tsize(600, 600);\n\t\tsmooth();\n\t\tn = (int)random(50, 100);\n\t\to = new Obj[n];\n\t\tfor(int i = 0; i < n; i++)\n\t\t\t{\n\t\t\to[i]=new Obj(this);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9d87ccc144d475eda2eb85e505eb0ed9", "score": "0.50922966", "text": "@Override\n public void init(GameContainer gc) throws SlickException {\n world = new World();\n gc.setTargetFrameRate(60);\n }", "title": "" }, { "docid": "c561f1461d4562fbde1dcc4af33695a4", "score": "0.5088979", "text": "@PostConstruct\n public void init() {\n geoModel = new DefaultMapModel(); // Creates a new gmap instance\n }", "title": "" }, { "docid": "302717e910817782d63c11894f7239d0", "score": "0.50817585", "text": "void setPatchSet(PatchSet ps);", "title": "" }, { "docid": "b1c16181308a0d3628fe005b4a38417f", "score": "0.5079693", "text": "Grafo(){\n\t\tthis.grafo = new HashSet<ArrayList<Integer>>();\n\t\tthis.dim = new ArrayList<Integer>();\n\t}", "title": "" }, { "docid": "32f85fd1b03af8dec80a33f38464f9b4", "score": "0.50683546", "text": "private void initGoden() {\n goldStandard = new Path();\n goldStandard.setTag(\"Gold Standard\");\n goldStandard.add(new Step(new Patient(), new Prescription(), new Tool(\"codeblue\", \"Call Code\",\n 0), (int)Calendar.getInstance().getTimeInMillis()));\n goldStandard.add(new Step(new Patient(), new Prescription(), new Tool(\"OxygenMask\",\n \"Face Mask\", 100), (int)Calendar.getInstance().getTimeInMillis()));\n goldStandard\n .add(new Step(new Patient(), new Prescription(new Drug(\"naloxone\", \"Naloxone\", \"naloxone\"),\n 200.0, \"mcg\"), new Tool(), (int)Calendar.getInstance().getTimeInMillis()));\n }", "title": "" }, { "docid": "c20bb7a3f4de06fc914eb4f9245f3cef", "score": "0.50674534", "text": "public void setEnv(String gisBase, \n String gisRcreate, \n String gisRc, \n String mapset, \n String location,\n String gisDBase, \n String proj) {\n \tString os = System.getProperty(\"os.name\");\n if (os.startsWith(\"Windows\")) {\n this.osenv = \";\";\n } else {\n \tthis.osenv = \":\";\n }\n\n \t\n if (gisRcreate == null)\n gisRcreate = \"GISRC\";\n \n if (gisRcreate.equals(\"GISRC\")) {\n String[] env = { \n \t\t\"GISBASE=\" + gisBase, \n \t\t\"GIS_LOCK=\" + this.cid,\n \"PATH=\" + (os.startsWith(\"Windows\")?\"%PATH%\":\"$PATH:/usr/bin:/bin\") + this.osenv + gisBase + \"/bin\" + \n this.osenv + gisBase + \"/lib\" + \n this.osenv + gisBase + \"/scripts\" + \n this.osenv + gisBase + \"/etc\",\n \"GISRC=\" + gisRc, \n \"SHELL=/bin/bash\"}; \n this.env = env;\n } else {\n \n // Create the mapset\n /*\n * / create gisdbase and set env / http://www.grassbook.org/scripts/create_location.sh.txt /\n */\n // Creating location and mapset\n try {\n boolean bLoc = (new java.io.File(gisDBase + \"/\" + location)).mkdir();\n boolean bMap = (new java.io.File(gisDBase + \"/\" + location + \"/\" + mapset)).mkdir();\n if (bMap && bLoc) {\n System.out.println(this.cid + \"|INFO|Directory: \" + gisDBase + \" LOCATION and MAPSET created.\");\n } else {\n System.out.println(this.cid + \"|INFO|Directory LOCATION and MAPSET existing.\");\n }\n\n } catch (Exception e) { // Catch exception if any\n System.err.println(this.cid + \"|ERROR|\" + e.getMessage());\n // throw new Exception(e);\n }\n\n // Creating Grass env gisrc file\n try {\n java.io.FileWriter fstream = new java.io.FileWriter(gisRc);\n java.io.BufferedWriter out = new java.io.BufferedWriter(fstream);\n out.write(\"LOCATION_NAME: \" + location + \" \\n\");\n out.write(\"GISDBASE: \" + gisDBase + \"\\n\");\n out.write(\"MAPSET: \" + mapset + \" \\n\");\n out.write(\"DIGITIZER: none\\n\");\n out.write(\"OVERWRITE: 1\\n\");\n out.write(\"GRASS_GUI: text\\n\");\n\n out.close();\n } catch (Exception e) { // Catch exception if any\n System.err.println(this.cid + \"|ERROR|\" + e.getMessage());\n // throw new Exception(e);\n }\n\n // TODO : create proj\n String[] env = { \n \t\t\"GISBASE=\" + gisBase, \n \t\t\"GIS_LOCK=cid\",\n \"PATH=\" + (os.startsWith(\"Windows\")?\"%PATH%\":\"$PATH:/usr/bin:/bin\") + this.osenv + gisBase + \"/bin\" + \n \tthis.osenv + gisBase + \"/lib\" + \n \tthis.osenv + gisBase + \"/scripts\" + \n \tthis.osenv + gisBase + \"/etc\",\n \"GISRC=\" + gisRc, \n \"LOCATION_NAME=location\", \n \"GISDBASE=\" + gisDBase , \n \"SHELL=/bin/bash\"};\n this.env = env;\n\n }\n \n \n }", "title": "" }, { "docid": "1ccf569e6cc13c2c6bf2d7f3c7a6125d", "score": "0.506644", "text": "void setSOG(int sog);", "title": "" }, { "docid": "79990cbdb2efd064dc9490bbb7c93436", "score": "0.5065224", "text": "public void setWorld(GameWorld gw){\r\n\t\tthis.gw = gw;\r\n\t}", "title": "" }, { "docid": "96baf5e4e3ca4b95e89a196eb316d84a", "score": "0.50571346", "text": "private void loadGarments() {\n garments.add(new Garment(1, \"Cotton\", 3, 60, 1800, 333, false));\n garments.add(new Garment(2, \"Denim\", 5, 40, 900, 99, false));\n garments.add(new Garment(3, \"Nylon\", 2, 30, 1200, 12, true));\n garments.add(new Garment(4, \"Silk\", 1, 15, 300, 134, true));\n }", "title": "" }, { "docid": "6aa8afdbd0abccbbaada8d6f78e8f400", "score": "0.50565577", "text": "private void setCursors()\n {\n for ( EntityInstanceImpl ei : selectedInstances )\n {\n EntityDef entityDef = ei.getEntityDef();\n EntityCursorImpl cursor = (EntityCursorImpl) view.cursor( entityDef );\n\n // Use setEntityInstance() because we are setting all cursors. This is\n // faster than using setCursor().\n cursor.setEntityInstance( ei );\n }\n }", "title": "" }, { "docid": "1227f6529a82b10a8133e60b3c2008b7", "score": "0.50531834", "text": "public void paint(Graphics g) {\n for (UiObject o : uiObjects) {\n o.paint(g);\n }\n }", "title": "" }, { "docid": "e60cc0798aeed7699d52d1693241692d", "score": "0.5042398", "text": "public void setInfo(GameObject go);", "title": "" }, { "docid": "9b2895e6bd5ad9ce11666246011cd809", "score": "0.50393313", "text": "public void updateShapes(List<IShapes> l) {\n shapes = l;\n }", "title": "" }, { "docid": "b5c7917cedca1c2b5224c11d4b88a43d", "score": "0.5038462", "text": "public void setGsid(Object gsid) {\n this.gsid = gsid;\n }", "title": "" }, { "docid": "0aec91f9748db62ac4aa4bd7812ebd7d", "score": "0.5033089", "text": "public void setShapes(List shapes) {\n this.shapes = shapes;\n }", "title": "" }, { "docid": "84113c5ec4954d051722af157bb0fe8a", "score": "0.50299585", "text": "private void writeClassesSet(GraphClass gc) throws SAXException {\n writer.dataElement(Tags.GCREF, gc.getID().toString());//intID\n }", "title": "" }, { "docid": "a566d2221bf764fee366020c74703828", "score": "0.50207585", "text": "public final native void setGeodesic(boolean geodesic) /*-{\n this.geodesic = geodesic;\n }-*/;", "title": "" }, { "docid": "8cd1a3c7b5dcf85a1d1aa9d7406f889f", "score": "0.50201136", "text": "private void setLegs(List<Leg> legs) {\n\t\tthis.legs = legs;\n\t}", "title": "" }, { "docid": "658ef97e31f163bb4b9659882a3f23fb", "score": "0.50163025", "text": "public synchronized void setObjectives(final Collection<? extends Objective> newValues) {\n objectives = copyCollection(newValues, objectives, Objective.class);\n }", "title": "" }, { "docid": "795144cfe658a1685db658302ffc98e6", "score": "0.5010976", "text": "public SpriteCollection() {\r\n this.objects = new ArrayList<Sprite>();\r\n }", "title": "" }, { "docid": "c29dc30cbed7efdb3ac7ccbba3d607e6", "score": "0.50033724", "text": "void setLocation(ITileGrid grid, int x, int y);", "title": "" }, { "docid": "7841a341f90ae1af69ca5222f8d322d9", "score": "0.5001112", "text": "private void setPool() {\r\n \tthis.plasmaballPool = new Pool<PlasmaModel>() {\r\n @Override\r\n protected PlasmaModel newObject() {\r\n return new PlasmaModel(0,0);\r\n }\r\n };\r\n }", "title": "" }, { "docid": "2c9c1de4e2170a71002ce3ca8d2b0192", "score": "0.50004894", "text": "private void setup() {\n myOldDrawings = new ArrayList<CanvasDrawing>();\n myRemovedDrawings = new Stack<CanvasDrawing>();\n myGridsVisible = false;\n myCurrentDrawingAvailable = false;\n myCurrentDrawing = new Path2D.Double();\n myCurrentLineWidth = 1;\n myCurrentColor = Color.BLACK;\n myCurrentTool = new PencilTool();\n }", "title": "" }, { "docid": "5a398a5962f0d932922e179b4037a7be", "score": "0.4996533", "text": "public final native void setMorphTargets(JsArray<JavaScriptObject> morphTargets)/*-{\r\nthis.morphTargets = morphTargets;\r\n}-*/;", "title": "" }, { "docid": "45c1a5c46590bf31f8c4fc3f33ec9844", "score": "0.49890533", "text": "public void setObjetos(ItemContainer a)\r\n\t{\r\n\t\tobjetos=a;\r\n\t\tnumFilas=objetos.numberOfItems();\r\n\t}", "title": "" }, { "docid": "875805563bc2eabbf9f529e511d112dc", "score": "0.49869165", "text": "private void drawObjects(Graphics g) {\n \t// draw sprite for map\n \tif (activemap.isVisible()) {\n g.drawImage(activemap.getImage(), activemap.getX(), activemap.getY(), this);\n }\n \t\n \t// draw sprite for player\n if (player.sprite.isVisible()) {\n \tplayer.updateSprite();\n g.drawImage(player.sprite.getImage(), player.sprite.getX(), player.sprite.getY(), this);\n g.setColor(Color.red);\n g.fillRect(player.sprite.getX()+5,player.sprite.getY()-5,(int) Math.round(20*((float) player.health/ (float) player.maxhealth)),5);\n }\n \n // draw sprites for enemies\n for(Enemy enm : enemies) {\n \tif(enm.sprite.isVisible()) {\n \t\tenm.updateSprite();\n \t\tg.drawImage(enm.sprite.getImage(), enm.sprite.getX(), enm.sprite.getY(), this);\n \t\tg.setColor(Color.red);\n g.fillRect(enm.sprite.getX()+5,enm.sprite.getY()-5,(int) Math.round(20*((float) enm.health/ (float) enm.maxhealth)),5);\n \t}\n }\n \n // draw sprites for objects\n for(GameObject obj : objects) {\n \tif(obj.sprite.isVisible()) {\n \t\tobj.updateSprite();\n \t\tg.drawImage(obj.sprite.getImage(), obj.sprite.getX(), obj.sprite.getY(), this);\n \t}\n }\n \n // draw sprites for inventory and items\n if(show_inventory) {\n \tinventorysprite.setVisible(show_inventory);\n \tg.drawImage(inventorysprite.getImage(), inventorysprite.getX(), inventorysprite.getY(), this);\n \t\n \tfor(InventoryItem item : inventoryitems) {\n \tif(item.sprite.isVisible()) {\n \t\titem.updateSprite();\n \t\tg.drawImage(item.sprite.getImage(), item.sprite.getX(), item.sprite.getY(), this);\n \t}\n }\n\t // tooltips\n\t Point mouse = MouseInfo.getPointerInfo().getLocation();\n\t Point reference = getRootPane().getLocationOnScreen();\n\t mouse.x -= reference.x;\n\t mouse.y -= reference.y;\n\t //System.out.println(mouse.x +\", \" +mouse.y);\n\t for(InventoryItem item : inventoryitems) {\n\t \tif(item.sprite.isVisible()) {\n\t \t\tif((mouse.x > item.sprite.x) && (mouse.y > item.sprite.y)) {\n\t \t\t\tif((mouse.x < item.sprite.x+(37*item.sizeX)) && (mouse.y < item.sprite.y+(37*item.sizeY))) {\n\t \t\t\t\tg.setFont(new Font(\"TimesRoman\", Font.PLAIN, 20));\n\t \t\t\t g.setColor(Color.black);\n\t \t\t\t\tg.drawString(item.name, 520, 470);\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t }\n }\n }", "title": "" }, { "docid": "6a6a056443b384dea31d9b25d55616c1", "score": "0.49815592", "text": "public void init(GameContainer gc, StateBasedGame sbg) throws SlickException\n {\n \t\n \tworld = new World(); //creates new set of world parameters\n\t\tlvl1 = new PlatformLevel(); //create new level object\n\t\tlvl1.loadBackground(\"data/testbackground.png\",\n\t\t\t\t\"data/testfloor.png\", \"data/floor_tile.png\");\n\t\tlvl1.loadTiles(\"data/testfloormap.tmx\");\n\n\t\tplayer1 = new Character();\n\t\tplayer1.loadCharacterImage(\"data/testplayer.png\");\n }", "title": "" }, { "docid": "b3f0ef9737332e32faa2084849f10756", "score": "0.49747643", "text": "public void SetCurrentGears(int num) {\r\n\t\tCurrentGear = num;\r\n\t}", "title": "" }, { "docid": "ebd218fa844810d3d3cc0803edb6b9bc", "score": "0.49656725", "text": "public void setInstanceSet(CynosdbInstance [] InstanceSet) {\n this.InstanceSet = InstanceSet;\n }", "title": "" }, { "docid": "063b35c9d6986d95fda20af7c3262d43", "score": "0.49643347", "text": "private void putGeneralizations() {\n\t\tClass classElement;\n\t\tINode generalizationNode;\n\t\tINode specializationNode;\n\t\tString gName;\n\t\t\n \t\tfor (PackageableElement packElement : pack.getPackagedElements()) {\n\t\t\tif( packElement instanceof Class ) {\n\t\t\t\tclassElement = (Class) packElement;\n\t\t\t\t\n\t\t\t\tfor (Generalization generalization : classElement.getGeneralizations()) {\n\t\t\t\t\t\n\t\t\t\t\tgeneralizationNode = graph.getNode(generalization.getGeneral().getName());// getNodeByName( graph, generalization.getGeneral().getName()); \n\t\t\t\t\tspecializationNode = graph.getNode(generalization.getSpecific().getName()); //getNodeByName( graph, generalization.getSpecific().getName()); \n\t\t\t\t\t\n\t\t\t\t\tgName = \"Generalization_\"+ getNextNum();\n\t\t\t\t\tgraph.addGeneralization(new OntoGeneralization(gName, generalizationNode, specializationNode, null) );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n \t\t}\n\t}", "title": "" }, { "docid": "016164577c2c02c4a082617c34055e97", "score": "0.49599683", "text": "private void setupScenery1() {}", "title": "" } ]